|
|
(()=>{var __webpack_modules__={78490:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},92615:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={black:"#000",white:"#fff"}},11311:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},20573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"}},89356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"}},42252:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"}},18543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},53976:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(87695),i=n(5544),a=n(80045),s=n(96540),l=(n(44363),n(20053)),c=n(69440),u=n(3148),d=n(32150),f=n(72973),p=n(28060),h=s.forwardRef((function(e,t){var n=e.children,d=e.classes,h=e.className,m=e.defaultExpanded,g=void 0!==m&&m,v=e.disabled,y=void 0!==v&&v,b=e.expanded,w=e.onChange,E=e.square,x=void 0!==E&&E,O=e.TransitionComponent,S=void 0===O?c.A:O,A=e.TransitionProps,_=(0,a.A)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),C=(0,p.A)({controlled:b,default:g,name:"Accordion",state:"expanded"}),T=(0,i.A)(C,2),k=T[0],P=T[1],I=s.useCallback((function(e){P(!k),w&&w(e,!k)}),[k,w,P]),R=s.Children.toArray(n),j=(0,o.A)(R),D=j[0],N=j.slice(1),M=s.useMemo((function(){return{expanded:k,disabled:y,toggle:I}}),[k,y,I]);return s.createElement(u.A,(0,r.A)({className:(0,l.default)(d.root,h,k&&d.expanded,y&&d.disabled,!x&&d.rounded),ref:t,square:x},_),s.createElement(f.A.Provider,{value:M},D),s.createElement(S,(0,r.A)({in:k,timeout:"auto"},A),s.createElement("div",{"aria-labelledby":D.props.id,id:D.props["aria-controls"],role:"region"},N)))}));const m=(0,d.A)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(h)},72973:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96540).createContext({})},56494:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=(0,o.A)(e,["classes","className"]);return i.createElement("div",(0,r.A)({className:(0,a.default)(n.root,s),ref:t},l))}));const c=(0,s.A)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(l)},86074:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(17688),l=n(42460),c=n(32150),u=n(72973),d=i.forwardRef((function(e,t){var n=e.children,c=e.classes,d=e.className,f=e.expandIcon,p=e.focusVisibleClassName,h=e.IconButtonProps,m=void 0===h?{}:h,g=e.onClick,v=(0,o.A)(e,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),y=i.useContext(u.A),b=y.disabled,w=void 0!==b&&b,E=y.expanded,x=y.toggle;return i.createElement(s.A,(0,r.A)({focusRipple:!1,disableRipple:!0,disabled:w,component:"div","aria-expanded":E,className:(0,a.default)(c.root,d,w&&c.disabled,E&&c.expanded),focusVisibleClassName:(0,a.default)(c.focusVisible,c.focused,p),onClick:function(e){x&&x(e),g&&g(e)},ref:t},v),i.createElement("div",{className:(0,a.default)(c.content,E&&c.expanded)},n),f&&i.createElement(l.A,(0,r.A)({className:(0,a.default)(c.expandIcon,E&&c.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},m),f))}));const f=(0,c.A)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(d)},61434:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(67515),c=n(3148),u=i.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,d=void 0===u?"primary":u,f=e.position,p=void 0===f?"fixed":f,h=(0,o.A)(e,["classes","className","color","position"]);return i.createElement(c.A,(0,r.A)({square:!0,component:"header",elevation:4,className:(0,a.default)(n.root,n["position".concat((0,l.A)(p))],n["color".concat((0,l.A)(d))],s,"fixed"===p&&"mui-fixed"),ref:t},h))}));const d=(0,s.A)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(u)},91004:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150);const l=(0,n(95126).A)(i.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var c=i.forwardRef((function(e,t){var n,s=e.alt,c=e.children,u=e.classes,d=e.className,f=e.component,p=void 0===f?"div":f,h=e.imgProps,m=e.sizes,g=e.src,v=e.srcSet,y=e.variant,b=void 0===y?"circular":y,w=(0,o.A)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),E=function(e){var t=e.src,n=e.srcSet,r=i.useState(!1),o=r[0],a=r[1];return i.useEffect((function(){if(t||n){a(!1);var e=!0,r=new Image;return r.src=t,r.srcSet=n,r.onload=function(){e&&a("loaded")},r.onerror=function(){e&&a("error")},function(){e=!1}}}),[t,n]),o}({src:g,srcSet:v}),x=g||v,O=x&&"error"!==E;return n=O?i.createElement("img",(0,r.A)({alt:s,src:g,srcSet:v,sizes:m,className:u.img},h)):null!=c?c:x&&s?s[0]:i.createElement(l,{className:u.fallback}),i.createElement(p,(0,r.A)({className:(0,a.default)(u.root,u.system,u[b],d,!O&&u.colorDefault),ref:t},w),n)}));const u=(0,s.A)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(c)},53058:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(95834),c=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.invisible,d=void 0!==u&&u,f=e.open,p=e.transitionDuration,h=e.TransitionComponent,m=void 0===h?l.A:h,g=(0,o.A)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return i.createElement(m,(0,r.A)({in:f,timeout:p},g),i.createElement("div",{className:(0,a.default)(s.root,c,d&&s.invisible),"aria-hidden":!0,ref:t},n))}));const u=(0,s.A)({root:{zIndex:-1,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"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(c)},36936:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(67515),c=i.forwardRef((function(e,t){var n=e.anchorOrigin,s=void 0===n?{vertical:"top",horizontal:"right"}:n,c=e.badgeContent,u=e.children,d=e.classes,f=e.className,p=e.color,h=void 0===p?"default":p,m=e.component,g=void 0===m?"span":m,v=e.invisible,y=e.max,b=void 0===y?99:y,w=e.overlap,E=void 0===w?"rectangle":w,x=e.showZero,O=void 0!==x&&x,S=e.variant,A=void 0===S?"standard":S,_=(0,o.A)(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),C=v;null==v&&(0===c&&!O||null==c&&"dot"!==A)&&(C=!0);var T="";return"dot"!==A&&(T=c>b?"".concat(b,"+"):c),i.createElement(g,(0,r.A)({className:(0,a.default)(d.root,f),ref:t},_),u,i.createElement("span",{className:(0,a.default)(d.badge,d["".concat(s.horizontal).concat((0,l.A)(s.vertical),"}")],d["anchorOrigin".concat((0,l.A)(s.vertical)).concat((0,l.A)(s.horizontal)).concat((0,l.A)(E))],"default"!==h&&d["color".concat((0,l.A)(h))],C&&d.invisible,"dot"===A&&d.dot)},T))}));const u=(0,s.A)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(c)},96746:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(80045),o=n(58168),i=n(96540),a=n(20053),s=n(32150),l=n(19773),c=n(17688),u=n(67515),d=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,d=e.color,f=void 0===d?"default":d,p=e.component,h=void 0===p?"button":p,m=e.disabled,g=void 0!==m&&m,v=e.disableElevation,y=void 0!==v&&v,b=e.disableFocusRipple,w=void 0!==b&&b,E=e.endIcon,x=e.focusVisibleClassName,O=e.fullWidth,S=void 0!==O&&O,A=e.size,_=void 0===A?"medium":A,C=e.startIcon,T=e.type,k=void 0===T?"button":T,P=e.variant,I=void 0===P?"text":P,R=(0,r.A)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),j=C&&i.createElement("span",{className:(0,a.default)(s.startIcon,s["iconSize".concat((0,u.A)(_))])},C),D=E&&i.createElement("span",{className:(0,a.default)(s.endIcon,s["iconSize".concat((0,u.A)(_))])},E);return i.createElement(c.A,(0,o.A)({className:(0,a.default)(s.root,s[I],l,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(I).concat((0,u.A)(f))],"medium"!==_&&[s["".concat(I,"Size").concat((0,u.A)(_))],s["size".concat((0,u.A)(_))]],y&&s.disableElevation,g&&s.disabled,S&&s.fullWidth),component:h,disabled:g,focusRipple:!w,focusVisibleClassName:(0,a.default)(s.focusVisible,x),ref:t,type:k},R),i.createElement("span",{className:s.label},j,n,D))}));const f=(0,s.A)((function(e){return{root:(0,o.A)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,l.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,l.X4)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,l.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,l.X4)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,l.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(d)},17688:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var r=n(58168),o=n(80045),i=n(96540),a=n(40961),s=n(20053),l=n(74801),c=n(22319),u=n(32150),d=n(20364),f=n(60436),p=n(98587),h=n(9417),m=n(77387),g=n(17241);function v(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function y(e,t,n){return null!=n[t]?n[t]:e.props[t]}function b(e,t,n){var r=v(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:y(s,"exit",e),enter:y(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:y(s,"exit",e),enter:y(s,"enter",e)})}})),o}var w=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},E=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,h.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,m.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,v(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:y(e,"appear",n),enter:y(e,"enter",n),exit:y(e,"exit",n)})}))):b(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=v(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,p.A)(e,["component","childFactory"]),o=this.state.contextValue,a=w(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(g.A.Provider,{value:o},a):i.createElement(g.A.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);E.propTypes={},E.defaultProps={component:"div",childFactory:function(e){return e}};const x=E;var O="undefined"==typeof window?i.useEffect:i.useLayoutEffect;const S=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,a=e.rippleY,l=e.rippleSize,u=e.in,d=e.onExited,f=void 0===d?function(){}:d,p=e.timeout,h=i.useState(!1),m=h[0],g=h[1],v=(0,s.default)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:l,height:l,top:-l/2+a,left:-l/2+o},b=(0,s.default)(t.child,m&&t.childLeaving,r&&t.childPulsate),w=(0,c.A)(f);return O((function(){if(!u){g(!0);var e=setTimeout(w,p);return function(){clearTimeout(e)}}}),[w,u,p]),i.createElement("span",{className:v,style:y},i.createElement("span",{className:b}))};var A=i.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,l=e.classes,c=e.className,u=(0,o.A)(e,["center","classes","className"]),d=i.useState([]),p=d[0],h=d[1],m=i.useRef(0),g=i.useRef(null);i.useEffect((function(){g.current&&(g.current(),g.current=null)}),[p]);var v=i.useRef(!1),y=i.useRef(null),b=i.useRef(null),w=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var E=i.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;h((function(e){return[].concat((0,f.A)(e),[i.createElement(S,{key:m.current,classes:l,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),m.current+=1,g.current=a}),[l]),O=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,s=void 0===i?a||t.pulsate:i,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var u,d,f,p=c?null:w.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,g=m.clientX,x=m.clientY;u=Math.round(g-h.left),d=Math.round(x-h.top)}if(s)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(f+=1);else{var O=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,S=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(O,2)+Math.pow(S,2))}e.touches?null===b.current&&(b.current=function(){E({pulsate:o,rippleX:u,rippleY:d,rippleSize:f,cb:n})},y.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):E({pulsate:o,rippleX:u,rippleY:d,rippleSize:f,cb:n})}}),[a,E]),A=i.useCallback((function(){O({},{pulsate:!0})}),[O]),_=i.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(y.current=setTimeout((function(){_(e,t)})));b.current=null,h((function(e){return e.length>0?e.slice(1):e})),g.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:A,start:O,stop:_}}),[A,O,_]),i.createElement("span",(0,r.A)({className:(0,s.default)(l.root,c),ref:w},u),i.createElement(x,{component:null,exit:!0},p))}));const _=(0,u.A)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(A));var C=i.forwardRef((function(e,t){var n=e.action,u=e.buttonRef,f=e.centerRipple,p=void 0!==f&&f,h=e.children,m=e.classes,g=e.className,v=e.component,y=void 0===v?"button":v,b=e.disabled,w=void 0!==b&&b,E=e.disableRipple,x=void 0!==E&&E,O=e.disableTouchRipple,S=void 0!==O&&O,A=e.focusRipple,C=void 0!==A&&A,T=e.focusVisibleClassName,k=e.onBlur,P=e.onClick,I=e.onFocus,R=e.onFocusVisible,j=e.onKeyDown,D=e.onKeyUp,N=e.onMouseDown,M=e.onMouseLeave,L=e.onMouseUp,z=e.onTouchEnd,W=e.onTouchMove,B=e.onTouchStart,F=e.onDragLeave,H=e.tabIndex,V=void 0===H?0:H,U=e.TouchRippleProps,G=e.type,q=void 0===G?"button":G,$=(0,o.A)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),K=i.useRef(null),Z=i.useRef(null),X=i.useState(!1),Y=X[0],Q=X[1];w&&Y&&Q(!1);var J=(0,d.A)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return(0,c.A)((function(r){return t&&t(r),!n&&Z.current&&Z.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){Q(!0),K.current.focus()}}}),[]),i.useEffect((function(){Y&&C&&!x&&Z.current.pulsate()}),[x,C,Y]);var oe=re("start",N),ie=re("stop",F),ae=re("stop",L),se=re("stop",(function(e){Y&&e.preventDefault(),M&&M(e)})),le=re("start",B),ce=re("stop",z),ue=re("stop",W),de=re("stop",(function(e){Y&&(te(e),Q(!1)),k&&k(e)}),!1),fe=(0,c.A)((function(e){K.current||(K.current=e.currentTarget),ee(e)&&(Q(!0),R&&R(e)),I&&I(e)})),pe=function(){var e=a.findDOMNode(K.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),me=(0,c.A)((function(e){C&&!he.current&&Y&&Z.current&&" "===e.key&&(he.current=!0,e.persist(),Z.current.stop(e,(function(){Z.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),j&&j(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!w&&(e.preventDefault(),P&&P(e))})),ge=(0,c.A)((function(e){C&&" "===e.key&&Z.current&&Y&&!e.defaultPrevented&&(he.current=!1,e.persist(),Z.current.stop(e,(function(){Z.current.pulsate(e)}))),D&&D(e),P&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&P(e)})),ve=y;"button"===ve&&$.href&&(ve="a");var ye={};"button"===ve?(ye.type=q,ye.disabled=w):("a"===ve&&$.href||(ye.role="button"),ye["aria-disabled"]=w);var be=(0,l.A)(u,t),we=(0,l.A)(ne,K),Ee=(0,l.A)(be,we),xe=i.useState(!1),Oe=xe[0],Se=xe[1];i.useEffect((function(){Se(!0)}),[]);var Ae=Oe&&!x&&!w;return i.createElement(ve,(0,r.A)({className:(0,s.default)(m.root,g,Y&&[m.focusVisible,T],w&&m.disabled),onBlur:de,onClick:P,onFocus:fe,onKeyDown:me,onKeyUp:ge,onMouseDown:oe,onMouseLeave:se,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:ue,onTouchStart:le,ref:Ee,tabIndex:w?-1:V},ye,$),h,Ae?i.createElement(_,(0,r.A)({ref:Z,center:p},U)):null)}));const T=(0,u.A)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(C)},20426:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(3148),l=n(32150),c=i.forwardRef((function(e,t){var n=e.classes,l=e.className,c=e.raised,u=void 0!==c&&c,d=(0,o.A)(e,["classes","className","raised"]);return i.createElement(s.A,(0,r.A)({className:(0,a.default)(n.root,l),elevation:u?8:1,ref:t},d))}));const u=(0,l.A)({root:{overflow:"hidden"}},{name:"MuiCard"})(c)},6272:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=(0,o.A)(e,["classes","className","component"]);return i.createElement(c,(0,r.A)({className:(0,a.default)(n.root,s),ref:t},u))}));const c=(0,s.A)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(l)},33615:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(80045),i=n(96540),a=n(20053);const s=(0,n(95126).A)(i.createElement("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");var l=n(32150),c=n(19773),u=n(74801),d=n(67515),f=n(17688);function p(e){return"Backspace"===e.key||"Delete"===e.key}var h=i.forwardRef((function(e,t){var n=e.avatar,l=e.classes,c=e.className,h=e.clickable,m=e.color,g=void 0===m?"default":m,v=e.component,y=e.deleteIcon,b=e.disabled,w=void 0!==b&&b,E=e.icon,x=e.label,O=e.onClick,S=e.onDelete,A=e.onKeyDown,_=e.onKeyUp,C=e.size,T=void 0===C?"medium":C,k=e.variant,P=void 0===k?"default":k,I=(0,o.A)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),R=i.useRef(null),j=(0,u.A)(R,t),D=function(e){e.stopPropagation(),S&&S(e)},N=!(!1===h||!O)||h,M="small"===T,L=v||(N?f.A:"div"),z=L===f.A?{component:"div"}:{},W=null;if(S){var B=(0,a.default)("default"!==g&&("default"===P?l["deleteIconColor".concat((0,d.A)(g))]:l["deleteIconOutlinedColor".concat((0,d.A)(g))]),M&&l.deleteIconSmall);W=y&&i.isValidElement(y)?i.cloneElement(y,{className:(0,a.default)(y.props.className,l.deleteIcon,B),onClick:D}):i.createElement(s,{className:(0,a.default)(l.deleteIcon,B),onClick:D})}var F=null;n&&i.isValidElement(n)&&(F=i.cloneElement(n,{className:(0,a.default)(l.avatar,n.props.className,M&&l.avatarSmall,"default"!==g&&l["avatarColor".concat((0,d.A)(g))])}));var H=null;return E&&i.isValidElement(E)&&(H=i.cloneElement(E,{className:(0,a.default)(l.icon,E.props.className,M&&l.iconSmall,"default"!==g&&l["iconColor".concat((0,d.A)(g))])})),i.createElement(L,(0,r.A)({role:N||S?"button":void 0,className:(0,a.default)(l.root,c,"default"!==g&&[l["color".concat((0,d.A)(g))],N&&l["clickableColor".concat((0,d.A)(g))],S&&l["deletableColor".concat((0,d.A)(g))]],"default"!==P&&[l.outlined,{primary:l.outlinedPrimary,secondary:l.outlinedSecondary}[g]],w&&l.disabled,M&&l.sizeSmall,N&&l.clickable,S&&l.deletable),"aria-disabled":!!w||void 0,tabIndex:N||S?0:void 0,onClick:O,onKeyDown:function(e){e.currentTarget===e.target&&p(e)&&e.preventDefault(),A&&A(e)},onKeyUp:function(e){e.currentTarget===e.target&&(S&&p(e)?S(e):"Escape"===e.key&&R.current&&R.current.blur()),_&&_(e)},ref:j},z,I),F||H,i.createElement("span",{className:(0,a.default)(l.label,M&&l.labelSmall)},x),W)}));const m=(0,l.A)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,c.X4)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,c.tL)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,c.tL)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,c.tL)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,c.tL)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,c.tL)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,c.tL)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,c.X4)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,c.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,c.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,c.X4)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,c.X4)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,c.X4)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,c.X4)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,c.X4)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(h)},83182:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(67515),c=44,u=i.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,d=void 0===u?"primary":u,f=e.disableShrink,p=void 0!==f&&f,h=e.size,m=void 0===h?40:h,g=e.style,v=e.thickness,y=void 0===v?3.6:v,b=e.value,w=void 0===b?0:b,E=e.variant,x=void 0===E?"indeterminate":E,O=(0,o.A)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),S={},A={},_={};if("determinate"===x||"static"===x){var C=2*Math.PI*((c-y)/2);S.strokeDasharray=C.toFixed(3),_["aria-valuenow"]=Math.round(w),S.strokeDashoffset="".concat(((100-w)/100*C).toFixed(3),"px"),A.transform="rotate(-90deg)"}return i.createElement("div",(0,r.A)({className:(0,a.default)(n.root,s,"inherit"!==d&&n["color".concat((0,l.A)(d))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[x]),style:(0,r.A)({width:m,height:m},A,g),ref:t,role:"progressbar"},_,O),i.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(c," ").concat(c)},i.createElement("circle",{className:(0,a.default)(n.circle,p&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[x]),style:S,cx:c,cy:c,r:(c-y)/2,fill:"none",strokeWidth:y})))}));const d=(0,s.A)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(u)},54462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(83182)},43292:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(96540),o=n(40961),i=n(61475),a=n(74801),s=n(22319);function l(e){return e.substring(2).toLowerCase()}const c=function(e){var t=e.children,n=e.disableReactTree,c=void 0!==n&&n,u=e.mouseEvent,d=void 0===u?"onClick":u,f=e.onClickAway,p=e.touchEvent,h=void 0===p?"onTouchEnd":p,m=r.useRef(!1),g=r.useRef(null),v=r.useRef(!1),y=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){v.current=!0}),0),function(){v.current=!1}}),[]);var b=r.useCallback((function(e){g.current=o.findDOMNode(e)}),[]),w=(0,a.A)(t.ref,b),E=(0,s.A)((function(e){var t=y.current;if(y.current=!1,v.current&&g.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(m.current)m.current=!1;else{(e.composedPath?e.composedPath().indexOf(g.current)>-1:!(0,i.A)(g.current).documentElement.contains(e.target)||g.current.contains(e.target))||!c&&t||f(e)}})),x=function(e){return function(n){y.current=!0;var r=t.props[e];r&&r(n)}},O={ref:w};return!1!==h&&(O[h]=x(h)),r.useEffect((function(){if(!1!==h){var e=l(h),t=(0,i.A)(g.current),n=function(){m.current=!0};return t.addEventListener(e,E),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,E),t.removeEventListener("touchmove",n)}}}),[E,h]),!1!==d&&(O[d]=x(d)),r.useEffect((function(){if(!1!==d){var e=l(d),t=(0,i.A)(g.current);return t.addEventListener(e,E),function(){t.removeEventListener(e,E)}}}),[E,d]),r.createElement(r.Fragment,null,r.cloneElement(t,O))}},69440:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(5544),i=n(80045),a=n(96540),s=n(20053),l=n(37353),c=n(32150),u=n(63870),d=n(33173),f=n(26232),p=n(74801),h=a.forwardRef((function(e,t){var n=e.children,c=e.classes,h=e.className,m=e.collapsedHeight,g=e.collapsedSize,v=void 0===g?"0px":g,y=e.component,b=void 0===y?"div":y,w=e.disableStrictModeCompat,E=void 0!==w&&w,x=e.in,O=e.onEnter,S=e.onEntered,A=e.onEntering,_=e.onExit,C=e.onExited,T=e.onExiting,k=e.style,P=e.timeout,I=void 0===P?u.p0.standard:P,R=e.TransitionComponent,j=void 0===R?l.Ay:R,D=(0,i.A)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),N=(0,f.A)(),M=a.useRef(),L=a.useRef(null),z=a.useRef(),W="number"==typeof(m||v)?"".concat(m||v,"px"):m||v;a.useEffect((function(){return function(){clearTimeout(M.current)}}),[]);var B=N.unstable_strictMode&&!E,F=a.useRef(null),H=(0,p.A)(t,B?F:void 0),V=function(e){return function(t,n){if(e){var r=B?[F.current,t]:[t,n],i=(0,o.A)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},U=V((function(e,t){e.style.height=W,O&&O(e,t)})),G=V((function(e,t){var n=L.current?L.current.clientHeight:0,r=(0,d.c)({style:k,timeout:I},{mode:"enter"}).duration;if("auto"===I){var o=N.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),z.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),A&&A(e,t)})),q=V((function(e,t){e.style.height="auto",S&&S(e,t)})),$=V((function(e){var t=L.current?L.current.clientHeight:0;e.style.height="".concat(t,"px"),_&&_(e)})),K=V(C),Z=V((function(e){var t=L.current?L.current.clientHeight:0,n=(0,d.c)({style:k,timeout:I},{mode:"exit"}).duration;if("auto"===I){var r=N.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),z.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=W,T&&T(e)}));return a.createElement(j,(0,r.A)({in:x,onEnter:U,onEntered:q,onEntering:G,onExit:$,onExited:K,onExiting:Z,addEndListener:function(e,t){var n=B?e:t;"auto"===I&&(M.current=setTimeout(n,z.current||0))},nodeRef:B?F:void 0,timeout:"auto"===I?null:I},D),(function(e,t){return a.createElement(b,(0,r.A)({className:(0,s.default)(c.root,c.container,h,{entered:c.entered,exited:!x&&"0px"===W&&c.hidden}[e]),style:(0,r.A)({minHeight:W},k),ref:H},t),a.createElement("div",{className:c.wrapper,ref:L},a.createElement("div",{className:c.wrapperInner},n)))}))}));h.muiSupportAuto=!0;const m=(0,c.A)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(h)},39870:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(58168),o=n(80045),i=n(64467),a=n(96540),s=n(20053),l=n(32150),c=n(67515),u=n(5014),d=n(53058),f=n(95834),p=n(63870),h=n(3148),m={enter:p.p0.enteringScreen,exit:p.p0.leavingScreen},g=a.forwardRef((function(e,t){var n=e.BackdropProps,i=e.children,l=e.classes,p=e.className,g=e.disableBackdropClick,v=void 0!==g&&g,y=e.disableEscapeKeyDown,b=void 0!==y&&y,w=e.fullScreen,E=void 0!==w&&w,x=e.fullWidth,O=void 0!==x&&x,S=e.maxWidth,A=void 0===S?"sm":S,_=e.onBackdropClick,C=e.onClose,T=e.onEnter,k=e.onEntered,P=e.onEntering,I=e.onEscapeKeyDown,R=e.onExit,j=e.onExited,D=e.onExiting,N=e.open,M=e.PaperComponent,L=void 0===M?h.A:M,z=e.PaperProps,W=void 0===z?{}:z,B=e.scroll,F=void 0===B?"paper":B,H=e.TransitionComponent,V=void 0===H?f.A:H,U=e.transitionDuration,G=void 0===U?m:U,q=e.TransitionProps,$=e["aria-describedby"],K=e["aria-labelledby"],Z=(0,o.A)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),X=a.useRef();return a.createElement(u.A,(0,r.A)({className:(0,s.default)(l.root,p),BackdropComponent:d.A,BackdropProps:(0,r.A)({transitionDuration:G},n),closeAfterTransition:!0},v?{disableBackdropClick:v}:{},{disableEscapeKeyDown:b,onEscapeKeyDown:I,onClose:C,open:N,ref:t},Z),a.createElement(V,(0,r.A)({appear:!0,in:N,timeout:G,onEnter:T,onEntering:P,onEntered:k,onExit:R,onExiting:D,onExited:j,role:"none presentation"},q),a.createElement("div",{className:(0,s.default)(l.container,l["scroll".concat((0,c.A)(F))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===X.current&&(X.current=null,_&&_(e),!v&&C&&C(e,"backdropClick"))},onMouseDown:function(e){X.current=e.target}},a.createElement(L,(0,r.A)({elevation:24,role:"dialog","aria-describedby":$,"aria-labelledby":K},W,{className:(0,s.default)(l.paper,l["paperScroll".concat((0,c.A)(F))],l["paperWidth".concat((0,c.A)(String(A)))],W.className,E&&l.paperFullScreen,O&&l.paperFullWidth)}),i))))}));const v=(0,l.A)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,i.A)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,i.A)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,i.A)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,i.A)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,i.A)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(g)},65816:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=i.forwardRef((function(e,t){var n=e.disableSpacing,s=void 0!==n&&n,l=e.classes,c=e.className,u=(0,o.A)(e,["disableSpacing","classes","className"]);return i.createElement("div",(0,r.A)({className:(0,a.default)(l.root,c,!s&&l.spacing),ref:t},u))}));const c=(0,s.A)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(l)},68016:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.dividers,c=void 0!==l&&l,u=(0,o.A)(e,["classes","className","dividers"]);return i.createElement("div",(0,r.A)({className:(0,a.default)(n.root,s,c&&n.dividers),ref:t},u))}));const c=(0,s.A)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(l)},30240:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540),i=n(32150),a=n(54392),s=o.forwardRef((function(e,t){return o.createElement(a.A,(0,r.A)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));const l=(0,i.A)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(s)},5696:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(54392),c=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.disableTypography,d=void 0!==u&&u,f=(0,o.A)(e,["children","classes","className","disableTypography"]);return i.createElement("div",(0,r.A)({className:(0,a.default)(s.root,c),ref:t},f),d?n:i.createElement(l.A,{component:"h2",variant:"h6"},n))}));const u=(0,s.A)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(c)},30048:(e,t,n)=>{"use strict";n.d(t,{$b:()=>g,Ay:()=>w,iB:()=>v});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(5014),l=n(53058),c=n(32150),u=n(10716),d=n(3148),f=n(67515),p=n(63870),h=n(26232),m={left:"right",right:"left",top:"down",bottom:"up"};function g(e){return-1!==["left","right"].indexOf(e)}function v(e,t){return"rtl"===e.direction&&g(t)?m[t]:t}var y={enter:p.p0.enteringScreen,exit:p.p0.leavingScreen},b=i.forwardRef((function(e,t){var n=e.anchor,c=void 0===n?"left":n,p=e.BackdropProps,g=e.children,b=e.classes,w=e.className,E=e.elevation,x=void 0===E?16:E,O=e.ModalProps,S=(O=void 0===O?{}:O).BackdropProps,A=(0,o.A)(O,["BackdropProps"]),_=e.onClose,C=e.open,T=void 0!==C&&C,k=e.PaperProps,P=void 0===k?{}:k,I=e.SlideProps,R=e.TransitionComponent,j=void 0===R?u.A:R,D=e.transitionDuration,N=void 0===D?y:D,M=e.variant,L=void 0===M?"temporary":M,z=(0,o.A)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),W=(0,h.A)(),B=i.useRef(!1);i.useEffect((function(){B.current=!0}),[]);var F=v(W,c),H=i.createElement(d.A,(0,r.A)({elevation:"temporary"===L?x:0,square:!0},P,{className:(0,a.default)(b.paper,b["paperAnchor".concat((0,f.A)(F))],P.className,"temporary"!==L&&b["paperAnchorDocked".concat((0,f.A)(F))])}),g);if("permanent"===L)return i.createElement("div",(0,r.A)({className:(0,a.default)(b.root,b.docked,w),ref:t},z),H);var V=i.createElement(j,(0,r.A)({in:T,direction:m[F],timeout:N,appear:B.current},I),H);return"persistent"===L?i.createElement("div",(0,r.A)({className:(0,a.default)(b.root,b.docked,w),ref:t},z),V):i.createElement(s.A,(0,r.A)({BackdropProps:(0,r.A)({},p,S,{transitionDuration:N}),BackdropComponent:l.A,className:(0,a.default)(b.root,b.modal,w),open:T,onClose:_,ref:t},z,A),V)}));const w=(0,c.A)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(b)},24488:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(80045),o=n(58168),i=n(96540),a=n(20053),s=n(32150),l=n(17688),c=n(67515),u=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,d=e.color,f=void 0===d?"default":d,p=e.component,h=void 0===p?"button":p,m=e.disabled,g=void 0!==m&&m,v=e.disableFocusRipple,y=void 0!==v&&v,b=e.focusVisibleClassName,w=e.size,E=void 0===w?"large":w,x=e.variant,O=void 0===x?"circular":x,S=(0,r.A)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return i.createElement(l.A,(0,o.A)({className:(0,a.default)(s.root,u,"large"!==E&&s["size".concat((0,c.A)(E))],g&&s.disabled,"extended"===O&&s.extended,{primary:s.primary,secondary:s.secondary,inherit:s.colorInherit}[f]),component:h,disabled:g,focusRipple:!y,focusVisibleClassName:(0,a.default)(s.focusVisible,b),ref:t},S),i.createElement("span",{className:s.label},n))}));const d=(0,s.A)((function(e){return{root:(0,o.A)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(u)},95834:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(58168),o=n(5544),i=n(80045),a=n(96540),s=n(37353),l=n(63870),c=n(26232),u=n(33173),d=n(74801),f={entering:{opacity:1},entered:{opacity:1}},p={enter:l.p0.enteringScreen,exit:l.p0.leavingScreen};const h=a.forwardRef((function(e,t){var n=e.children,l=e.disableStrictModeCompat,h=void 0!==l&&l,m=e.in,g=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,w=e.onExited,E=e.onExiting,x=e.style,O=e.TransitionComponent,S=void 0===O?s.Ay:O,A=e.timeout,_=void 0===A?p:A,C=(0,i.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),T=(0,c.A)(),k=T.unstable_strictMode&&!h,P=a.useRef(null),I=(0,d.A)(n.ref,t),R=(0,d.A)(k?P:void 0,I),j=function(e){return function(t,n){if(e){var r=k?[P.current,t]:[t,n],i=(0,o.A)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},D=j(y),N=j((function(e,t){(0,u.q)(e);var n=(0,u.c)({style:x,timeout:_},{mode:"enter"});e.style.webkitTransition=T.transitions.create("opacity",n),e.style.transition=T.transitions.create("opacity",n),g&&g(e,t)})),M=j(v),L=j(E),z=j((function(e){var t=(0,u.c)({style:x,timeout:_},{mode:"exit"});e.style.webkitTransition=T.transitions.create("opacity",t),e.style.transition=T.transitions.create("opacity",t),b&&b(e)})),W=j(w);return a.createElement(S,(0,r.A)({appear:!0,in:m,nodeRef:k?P:void 0,onEnter:N,onEntered:M,onEntering:D,onExit:z,onExited:W,onExiting:L,timeout:_},C),(function(e,t){return a.cloneElement(n,(0,r.A)({style:(0,r.A)({opacity:0,visibility:"exited"!==e||m?void 0:"hidden"},f[e],x,n.props.style),ref:R},t))}))}))},87508:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(25820),l=n(32150),c=i.forwardRef((function(e,t){var n=e.disableUnderline,l=e.classes,c=e.fullWidth,u=void 0!==c&&c,d=e.inputComponent,f=void 0===d?"input":d,p=e.multiline,h=void 0!==p&&p,m=e.type,g=void 0===m?"text":m,v=(0,o.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(s.A,(0,r.A)({classes:(0,r.A)({},l,{root:(0,a.default)(l.root,!n&&l.underline),underline:null}),fullWidth:u,inputComponent:f,multiline:h,ref:t,type:g},v))}));c.muiName="Input";const u=(0,l.A)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.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"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(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:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(c)},69312:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(33576),l=n(32150),c=n(67515),u=n(77570),d=n(97589),f=i.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,p=e.color,h=void 0===p?"primary":p,m=e.component,g=void 0===m?"div":m,v=e.disabled,y=void 0!==v&&v,b=e.error,w=void 0!==b&&b,E=e.fullWidth,x=void 0!==E&&E,O=e.focused,S=e.hiddenLabel,A=void 0!==S&&S,_=e.margin,C=void 0===_?"none":_,T=e.required,k=void 0!==T&&T,P=e.size,I=e.variant,R=void 0===I?"standard":I,j=(0,o.A)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),D=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if((0,u.A)(t,["Input","Select"])){var n=(0,u.A)(t,["Select"])?t.props.input:t;n&&(0,s.gr)(n.props)&&(e=!0)}})),e})),N=D[0],M=D[1],L=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){(0,u.A)(t,["Input","Select"])&&(0,s.lq)(t.props,!0)&&(e=!0)})),e})),z=L[0],W=L[1],B=i.useState(!1),F=B[0],H=B[1],V=void 0!==O?O:F;y&&V&&H(!1);var U=i.useCallback((function(){W(!0)}),[]),G={adornedStart:N,setAdornedStart:M,color:h,disabled:y,error:w,filled:z,focused:V,fullWidth:x,hiddenLabel:A,margin:("small"===P?"dense":void 0)||C,onBlur:function(){H(!1)},onEmpty:i.useCallback((function(){W(!1)}),[]),onFilled:U,onFocus:function(){H(!0)},registerEffect:void 0,required:k,variant:R};return i.createElement(d.A.Provider,{value:G},i.createElement(g,(0,r.A)({className:(0,a.default)(l.root,f,"none"!==C&&l["margin".concat((0,c.A)(C))],x&&l.fullWidth),ref:t},j),n))}));const p=(0,l.A)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(f)},97589:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,t:()=>i});var r=n(96540),o=r.createContext();function i(){return r.useContext(o)}const a=o},10771:(e,t,n)=>{"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}n.d(t,{A:()=>r})},49029:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(96540),o=n(97589);function i(){return r.useContext(o.A)}},15776:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(49029),l=n(32150),c=n(54392),u=n(67515),d=i.forwardRef((function(e,t){e.checked;var n=e.classes,l=e.className,d=e.control,f=e.disabled,p=(e.inputRef,e.label),h=e.labelPlacement,m=void 0===h?"end":h,g=(e.name,e.onChange,e.value,(0,o.A)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),v=(0,s.A)(),y=f;void 0===y&&void 0!==d.props.disabled&&(y=d.props.disabled),void 0===y&&v&&(y=v.disabled);var b={disabled:y};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===d.props[t]&&void 0!==e[t]&&(b[t]=e[t])})),i.createElement("label",(0,r.A)({className:(0,a.default)(n.root,l,"end"!==m&&n["labelPlacement".concat((0,u.A)(m))],y&&n.disabled),ref:t},g),i.cloneElement(d,b),i.createElement(c.A,{component:"span",className:(0,a.default)(n.label,y&&n.disabled)},p))}));const f=(0,l.A)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(d)},95652:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(80045),o=n(58168),i=n(96540),a=n(20053),s=n(10771),l=n(49029),c=n(32150),u=i.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,d=e.component,f=void 0===d?"p":d,p=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,r.A)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),h=(0,l.A)(),m=(0,s.A)({props:e,muiFormControl:h,states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(f,(0,o.A)({className:(0,a.default)(c.root,("filled"===m.variant||"outlined"===m.variant)&&c.contained,u,m.disabled&&c.disabled,m.error&&c.error,m.filled&&c.filled,m.focused&&c.focused,m.required&&c.required,"dense"===m.margin&&c.marginDense),ref:t},p)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));const d=(0,c.A)((function(e){return{root:(0,o.A)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(u)},96340:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(80045),o=n(58168),i=n(96540),a=n(20053),s=n(10771),l=n(49029),c=n(67515),u=n(32150),d=i.forwardRef((function(e,t){var n=e.children,u=e.classes,d=e.className,f=(e.color,e.component),p=void 0===f?"label":f,h=(e.disabled,e.error,e.filled,e.focused,e.required,(0,r.A)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),m=(0,l.A)(),g=(0,s.A)({props:e,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]});return i.createElement(p,(0,o.A)({className:(0,a.default)(u.root,u["color".concat((0,c.A)(g.color||"primary"))],d,g.disabled&&u.disabled,g.error&&u.error,g.filled&&u.filled,g.focused&&u.focused,g.required&&u.required),ref:t},h),n,g.required&&i.createElement("span",{"aria-hidden":!0,className:(0,a.default)(u.asterisk,g.error&&u.error)}," ","*"))}));const f=(0,u.A)((function(e){return{root:(0,o.A)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(d)},27606:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(80045),o=n(58168),i=n(96540),a=n(20053),s=n(32150),l=[0,1,2,3,4,5,6,7,8,9,10],c=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var d=i.forwardRef((function(e,t){var n=e.alignContent,s=void 0===n?"stretch":n,l=e.alignItems,c=void 0===l?"stretch":l,u=e.classes,d=e.className,f=e.component,p=void 0===f?"div":f,h=e.container,m=void 0!==h&&h,g=e.direction,v=void 0===g?"row":g,y=e.item,b=void 0!==y&&y,w=e.justify,E=e.justifyContent,x=void 0===E?"flex-start":E,O=e.lg,S=void 0!==O&&O,A=e.md,_=void 0!==A&&A,C=e.sm,T=void 0!==C&&C,k=e.spacing,P=void 0===k?0:k,I=e.wrap,R=void 0===I?"wrap":I,j=e.xl,D=void 0!==j&&j,N=e.xs,M=void 0!==N&&N,L=e.zeroMinWidth,z=void 0!==L&&L,W=(0,r.A)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),B=(0,a.default)(u.root,d,m&&[u.container,0!==P&&u["spacing-xs-".concat(String(P))]],b&&u.item,z&&u.zeroMinWidth,"row"!==v&&u["direction-xs-".concat(String(v))],"wrap"!==R&&u["wrap-xs-".concat(String(R))],"stretch"!==c&&u["align-items-xs-".concat(String(c))],"stretch"!==s&&u["align-content-xs-".concat(String(s))],"flex-start"!==(w||x)&&u["justify-content-xs-".concat(String(w||x))],!1!==M&&u["grid-xs-".concat(String(M))],!1!==T&&u["grid-sm-".concat(String(T))],!1!==_&&u["grid-md-".concat(String(_))],!1!==S&&u["grid-lg-".concat(String(S))],!1!==D&&u["grid-xl-".concat(String(D))]);return i.createElement(p,(0,o.A)({className:B,ref:t},W))}));const f=(0,s.A)((function(e){return(0,o.A)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e){var t={};return l.forEach((function(n){var r=e.spacing(n);0!==r&&(t["spacing-".concat("xs","-").concat(n)]={margin:"-".concat(u(r,2)),width:"calc(100% + ".concat(u(r),")"),"& > $item":{padding:u(r,2)}})})),t}(e),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};c.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,o.A)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(d)},78896:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(58168),o=n(5544),i=n(80045),a=n(96540),s=n(37353),l=n(26232),c=n(33173),u=n(74801);function d(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var f={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},p=a.forwardRef((function(e,t){var n=e.children,p=e.disableStrictModeCompat,h=void 0!==p&&p,m=e.in,g=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,w=e.onExited,E=e.onExiting,x=e.style,O=e.timeout,S=void 0===O?"auto":O,A=e.TransitionComponent,_=void 0===A?s.Ay:A,C=(0,i.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=a.useRef(),k=a.useRef(),P=(0,l.A)(),I=P.unstable_strictMode&&!h,R=a.useRef(null),j=(0,u.A)(n.ref,t),D=(0,u.A)(I?R:void 0,j),N=function(e){return function(t,n){if(e){var r=I?[R.current,t]:[t,n],i=(0,o.A)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},M=N(y),L=N((function(e,t){(0,c.q)(e);var n,r=(0,c.c)({style:x,timeout:S},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===S?(n=P.transitions.getAutoHeightDuration(e.clientHeight),k.current=n):n=o,e.style.transition=[P.transitions.create("opacity",{duration:n,delay:i}),P.transitions.create("transform",{duration:.666*n,delay:i})].join(","),g&&g(e,t)})),z=N(v),W=N(E),B=N((function(e){var t,n=(0,c.c)({style:x,timeout:S},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===S?(t=P.transitions.getAutoHeightDuration(e.clientHeight),k.current=t):t=r,e.style.transition=[P.transitions.create("opacity",{duration:t,delay:o}),P.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=d(.75),b&&b(e)})),F=N(w);return a.useEffect((function(){return function(){clearTimeout(T.current)}}),[]),a.createElement(_,(0,r.A)({appear:!0,in:m,nodeRef:I?R:void 0,onEnter:L,onEntered:z,onEntering:M,onExit:B,onExited:F,onExiting:W,addEndListener:function(e,t){var n=I?e:t;"auto"===S&&(T.current=setTimeout(n,k.current||0))},timeout:"auto"===S?null:S},C),(function(e,t){return a.cloneElement(n,(0,r.A)({style:(0,r.A)({opacity:0,transform:d(.75),visibility:"exited"!==e||m?void 0:"hidden"},f[e],x,n.props.style),ref:D},t))}))}));p.muiSupportAuto=!0;const h=p},42460:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(19773),c=n(17688),u=n(67515),d=i.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,l=e.children,d=e.classes,f=e.className,p=e.color,h=void 0===p?"default":p,m=e.disabled,g=void 0!==m&&m,v=e.disableFocusRipple,y=void 0!==v&&v,b=e.size,w=void 0===b?"medium":b,E=(0,o.A)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(c.A,(0,r.A)({className:(0,a.default)(d.root,f,"default"!==h&&d["color".concat((0,u.A)(h))],g&&d.disabled,"small"===w&&d["size".concat((0,u.A)(w))],{start:d.edgeStart,end:d.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:g,ref:t},E),i.createElement("span",{className:d.label},l))}));const f=(0,s.A)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(d)},8728:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(25820),l=n(32150),c=i.forwardRef((function(e,t){var n=e.disableUnderline,l=e.classes,c=e.fullWidth,u=void 0!==c&&c,d=e.inputComponent,f=void 0===d?"input":d,p=e.multiline,h=void 0!==p&&p,m=e.type,g=void 0===m?"text":m,v=(0,o.A)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(s.A,(0,r.A)({classes:(0,r.A)({},l,{root:(0,a.default)(l.root,!n&&l.underline),underline:null}),fullWidth:u,inputComponent:f,multiline:h,ref:t,type:g},v))}));c.muiName="Input";const u=(0,l.A)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.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"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),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($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(c)},64054:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(54392),l=n(32150),c=n(97589),u=i.forwardRef((function(e,t){var n=e.children,l=e.classes,u=e.className,d=e.component,f=void 0===d?"div":d,p=e.disablePointerEvents,h=void 0!==p&&p,m=e.disableTypography,g=void 0!==m&&m,v=e.position,y=e.variant,b=(0,o.A)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),w=(0,c.t)()||{},E=y;return y&&w.variant,w&&!E&&(E=w.variant),i.createElement(c.A.Provider,{value:null},i.createElement(f,(0,r.A)({className:(0,a.default)(l.root,u,"end"===v?l.positionEnd:l.positionStart,h&&l.disablePointerEvents,w.hiddenLabel&&l.hiddenLabel,"filled"===E&&l.filled,"dense"===w.margin&&l.marginDense),ref:t},b),"string"!=typeof n||g?n:i.createElement(s.A,{color:"textSecondary"},n)))}));const d=(0,l.A)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(u)},25820:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(80045),o=n(58168),i=n(77860),a=n(96540),s=n(20053),l=n(10771),c=n(97589),u=n(32150),d=n(67515),f=n(74801),p=n(75818),h=n(33576),m="undefined"==typeof window?a.useEffect:a.useLayoutEffect,g=a.forwardRef((function(e,t){var n=e["aria-describedby"],u=e.autoComplete,g=e.autoFocus,v=e.classes,y=e.className,b=(e.color,e.defaultValue),w=e.disabled,E=e.endAdornment,x=(e.error,e.fullWidth),O=void 0!==x&&x,S=e.id,A=e.inputComponent,_=void 0===A?"input":A,C=e.inputProps,T=void 0===C?{}:C,k=e.inputRef,P=(e.margin,e.multiline),I=void 0!==P&&P,R=e.name,j=e.onBlur,D=e.onChange,N=e.onClick,M=e.onFocus,L=e.onKeyDown,z=e.onKeyUp,W=e.placeholder,B=e.readOnly,F=e.renderSuffix,H=e.rows,V=e.rowsMax,U=e.rowsMin,G=e.maxRows,q=e.minRows,$=e.startAdornment,K=e.type,Z=void 0===K?"text":K,X=e.value,Y=(0,r.A)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),Q=null!=T.value?T.value:X,J=a.useRef(null!=Q).current,ee=a.useRef(),te=a.useCallback((function(e){}),[]),ne=(0,f.A)(T.ref,te),re=(0,f.A)(k,ne),oe=(0,f.A)(ee,re),ie=a.useState(!1),ae=ie[0],se=ie[1],le=(0,c.t)(),ce=(0,l.A)({props:e,muiFormControl:le,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ce.focused=le?le.focused:ae,a.useEffect((function(){!le&&w&&ae&&(se(!1),j&&j())}),[le,w,ae,j]);var ue=le&&le.onFilled,de=le&&le.onEmpty,fe=a.useCallback((function(e){(0,h.lq)(e)?ue&&ue():de&&de()}),[ue,de]);m((function(){J&&fe({value:Q})}),[Q,fe,J]),a.useEffect((function(){fe(ee.current)}),[]);var pe=_,he=(0,o.A)({},T,{ref:oe});return"string"!=typeof pe?he=(0,o.A)({inputRef:oe,type:Z},he,{ref:null}):I?!H||G||q||V||U?(he=(0,o.A)({minRows:H||q,rowsMax:V,maxRows:G},he),pe=p.A):pe="textarea":he=(0,o.A)({type:Z},he),a.useEffect((function(){le&&le.setAdornedStart(Boolean($))}),[le,$]),a.createElement("div",(0,o.A)({className:(0,s.default)(v.root,v["color".concat((0,d.A)(ce.color||"primary"))],y,ce.disabled&&v.disabled,ce.error&&v.error,O&&v.fullWidth,ce.focused&&v.focused,le&&v.formControl,I&&v.multiline,$&&v.adornedStart,E&&v.adornedEnd,"dense"===ce.margin&&v.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),N&&N(e)},ref:t},Y),$,a.createElement(c.A.Provider,{value:null},a.createElement(pe,(0,o.A)({"aria-invalid":ce.error,"aria-describedby":n,autoComplete:u,autoFocus:g,defaultValue:b,disabled:ce.disabled,id:S,onAnimationStart:function(e){fe("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:R,placeholder:W,readOnly:B,required:ce.required,rows:H,value:Q,onKeyDown:L,onKeyUp:z},he,{className:(0,s.default)(v.input,T.className,ce.disabled&&v.disabled,I&&v.inputMultiline,ce.hiddenLabel&&v.inputHiddenLabel,$&&v.inputAdornedStart,E&&v.inputAdornedEnd,"search"===Z&&v.inputTypeSearch,"dense"===ce.margin&&v.inputMarginDense),onBlur:function(e){j&&j(e),T.onBlur&&T.onBlur(e),le&&le.onBlur?le.onBlur(e):se(!1)},onChange:function(e){if(!J){var t=e.target||ee.current;if(null==t)throw new Error((0,i.A)(1));fe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];T.onChange&&T.onChange.apply(T,[e].concat(r)),D&&D.apply(void 0,[e].concat(r))},onFocus:function(e){ce.disabled?e.stopPropagation():(M&&M(e),T.onFocus&&T.onFocus(e),le&&le.onFocus?le.onFocus(e):se(!0))}}))),E,F?F((0,o.A)({},ce,{startAdornment:$})):null)}));const v=(0,u.A)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,o.A)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(g)},33576:(e,t,n)=>{"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{gr:()=>i,lq:()=>o})},38306:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(10771),l=n(49029),c=n(32150),u=n(96340),d=i.forwardRef((function(e,t){var n=e.classes,c=e.className,d=e.disableAnimation,f=void 0!==d&&d,p=(e.margin,e.shrink),h=(e.variant,(0,o.A)(e,["classes","className","disableAnimation","margin","shrink","variant"])),m=(0,l.A)(),g=p;void 0===g&&m&&(g=m.filled||m.focused||m.adornedStart);var v=(0,s.A)({props:e,muiFormControl:m,states:["margin","variant"]});return i.createElement(u.A,(0,r.A)({"data-shrink":g,className:(0,a.default)(n.root,c,m&&n.formControl,!f&&n.animated,g&&n.shrink,"dense"===v.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[v.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},h))}));const f=(0,c.A)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(d)},10782:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(67515),l=n(32150),c=n(20364),u=n(74801),d=n(54392),f=i.forwardRef((function(e,t){var n=e.classes,l=e.className,f=e.color,p=void 0===f?"primary":f,h=e.component,m=void 0===h?"a":h,g=e.onBlur,v=e.onFocus,y=e.TypographyClasses,b=e.underline,w=void 0===b?"hover":b,E=e.variant,x=void 0===E?"inherit":E,O=(0,o.A)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),S=(0,c.A)(),A=S.isFocusVisible,_=S.onBlurVisible,C=S.ref,T=i.useState(!1),k=T[0],P=T[1],I=(0,u.A)(t,C);return i.createElement(d.A,(0,r.A)({className:(0,a.default)(n.root,n["underline".concat((0,s.A)(w))],l,k&&n.focusVisible,"button"===m&&n.button),classes:y,color:p,component:m,onBlur:function(e){k&&(_(),P(!1)),g&&g(e)},onFocus:function(e){A(e)&&P(!0),v&&v(e)},ref:I,variant:x},O))}));const p=(0,l.A)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(f)},73486:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(76171),c=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.component,d=void 0===u?"ul":u,f=e.dense,p=void 0!==f&&f,h=e.disablePadding,m=void 0!==h&&h,g=e.subheader,v=(0,o.A)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=i.useMemo((function(){return{dense:p}}),[p]);return i.createElement(l.A.Provider,{value:y},i.createElement(d,(0,r.A)({className:(0,a.default)(s.root,c,p&&s.dense,!m&&s.padding,g&&s.subheader),ref:t},v),g,n))}));const u=(0,s.A)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(c)},76171:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96540).createContext({})},50384:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(17688),c=n(77570),u=n(74801),d=n(76171),f=n(40961),p="undefined"==typeof window?i.useEffect:i.useLayoutEffect,h=i.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,h=e.autoFocus,m=void 0!==h&&h,g=e.button,v=void 0!==g&&g,y=e.children,b=e.classes,w=e.className,E=e.component,x=e.ContainerComponent,O=void 0===x?"li":x,S=e.ContainerProps,A=(S=void 0===S?{}:S).className,_=(0,o.A)(S,["className"]),C=e.dense,T=void 0!==C&&C,k=e.disabled,P=void 0!==k&&k,I=e.disableGutters,R=void 0!==I&&I,j=e.divider,D=void 0!==j&&j,N=e.focusVisibleClassName,M=e.selected,L=void 0!==M&&M,z=(0,o.A)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),W=i.useContext(d.A),B={dense:T||W.dense||!1,alignItems:s},F=i.useRef(null);p((function(){m&&F.current&&F.current.focus()}),[m]);var H=i.Children.toArray(y),V=H.length&&(0,c.A)(H[H.length-1],["ListItemSecondaryAction"]),U=i.useCallback((function(e){F.current=f.findDOMNode(e)}),[]),G=(0,u.A)(U,t),q=(0,r.A)({className:(0,a.default)(b.root,w,B.dense&&b.dense,!R&&b.gutters,D&&b.divider,P&&b.disabled,v&&b.button,"center"!==s&&b.alignItemsFlexStart,V&&b.secondaryAction,L&&b.selected),disabled:P},z),$=E||"li";return v&&(q.component=E||"div",q.focusVisibleClassName=(0,a.default)(b.focusVisible,N),$=l.A),V?($=q.component||E?$:"div","li"===O&&("li"===$?$="div":"li"===q.component&&(q.component="div")),i.createElement(d.A.Provider,{value:B},i.createElement(O,(0,r.A)({className:(0,a.default)(b.container,A),ref:G},_),i.createElement($,q,H),H.pop()))):i.createElement(d.A.Provider,{value:B},i.createElement($,(0,r.A)({ref:G},q),H))}));const m=(0,s.A)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(h)},61466:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(76171),c=i.forwardRef((function(e,t){var n=e.classes,s=e.className,c=(0,o.A)(e,["classes","className"]),u=i.useContext(l.A);return i.createElement("div",(0,r.A)({className:(0,a.default)(n.root,s,"flex-start"===u.alignItems&&n.alignItemsFlexStart),ref:t},c))}));const u=(0,s.A)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(c)},77430:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(54392),c=n(76171),u=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,d=e.disableTypography,f=void 0!==d&&d,p=e.inset,h=void 0!==p&&p,m=e.primary,g=e.primaryTypographyProps,v=e.secondary,y=e.secondaryTypographyProps,b=(0,o.A)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),w=i.useContext(c.A).dense,E=null!=m?m:n;null==E||E.type===l.A||f||(E=i.createElement(l.A,(0,r.A)({variant:w?"body2":"body1",className:s.primary,component:"span",display:"block"},g),E));var x=v;return null==x||x.type===l.A||f||(x=i.createElement(l.A,(0,r.A)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},y),x)),i.createElement("div",(0,r.A)({className:(0,a.default)(s.root,u,w&&s.dense,h&&s.inset,E&&x&&s.multiline),ref:t},b),E,x)}));const d=(0,s.A)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(u)},45152:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(67515),c=i.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.color,u=void 0===c?"default":c,d=e.component,f=void 0===d?"li":d,p=e.disableGutters,h=void 0!==p&&p,m=e.disableSticky,g=void 0!==m&&m,v=e.inset,y=void 0!==v&&v,b=(0,o.A)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return i.createElement(f,(0,r.A)({className:(0,a.default)(n.root,s,"default"!==u&&n["color".concat((0,l.A)(u))],y&&n.inset,!g&&n.sticky,!h&&n.gutters),ref:t},b))}));const u=(0,s.A)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(c)},70032:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(58168),o=n(80045),i=n(96540),a=(n(44363),n(20053)),s=n(32150),l=n(11760),c=n(19008),u=n(40961),d=n(24960),f=n(26232),p={vertical:"top",horizontal:"right"},h={vertical:"top",horizontal:"left"},m=i.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,m=e.children,g=e.classes,v=e.disableAutoFocusItem,y=void 0!==v&&v,b=e.MenuListProps,w=void 0===b?{}:b,E=e.onClose,x=e.onEntering,O=e.open,S=e.PaperProps,A=void 0===S?{}:S,_=e.PopoverClasses,C=e.transitionDuration,T=void 0===C?"auto":C,k=e.TransitionProps,P=(k=void 0===k?{}:k).onEntering,I=(0,o.A)(k,["onEntering"]),R=e.variant,j=void 0===R?"selectedMenu":R,D=(0,o.A)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),N=(0,f.A)(),M=s&&!y&&O,L=i.useRef(null),z=i.useRef(null),W=-1;i.Children.map(m,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==j&&e.props.selected||-1===W)&&(W=t))}));var B=i.Children.map(m,(function(e,t){return t===W?i.cloneElement(e,{ref:function(t){z.current=u.findDOMNode(t),(0,d.A)(e.ref,t)}}):e}));return i.createElement(l.Ay,(0,r.A)({getContentAnchorEl:function(){return z.current},classes:_,onClose:E,TransitionProps:(0,r.A)({onEntering:function(e,t){L.current&&L.current.adjustStyleForScrollbar(e,N),x&&x(e,t),P&&P(e,t)}},I),anchorOrigin:"rtl"===N.direction?p:h,transformOrigin:"rtl"===N.direction?p:h,PaperProps:(0,r.A)({},A,{classes:(0,r.A)({},A.classes,{root:g.paper})}),open:O,ref:t,transitionDuration:T},D),i.createElement(c.A,(0,r.A)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),E&&E(e,"tabKeyDown"))},actions:L,autoFocus:s&&(-1===W||y),autoFocusItem:M,variant:j},w,{className:(0,a.default)(g.list,w.className)}),B))}));const g=(0,s.A)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(m)},84630:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(80045),o=n(64467),i=n(58168),a=n(96540),s=n(20053),l=n(32150),c=n(50384),u=a.forwardRef((function(e,t){var n,o=e.classes,l=e.className,u=e.component,d=void 0===u?"li":u,f=e.disableGutters,p=void 0!==f&&f,h=e.ListItemClasses,m=e.role,g=void 0===m?"menuitem":m,v=e.selected,y=e.tabIndex,b=(0,r.A)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==y?y:-1),a.createElement(c.A,(0,i.A)({button:!0,role:g,tabIndex:n,component:d,selected:v,disableGutters:p,classes:(0,i.A)({dense:o.dense},h),className:(0,s.default)(o.root,l,v&&o.selected,!p&&o.gutters),ref:t},b))}));const d=(0,l.A)((function(e){return{root:(0,i.A)({},e.typography.body1,(0,o.A)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,i.A)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(u)},19008:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(58168),o=n(80045),i=n(96540),a=(n(44363),n(40961)),s=n(61475),l=n(73486),c=n(6674),u=n(74801);function d(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function f(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function p(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function h(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&p(s,i)&&!l)return void s.focus();s=o(e,s,n)}}var m="undefined"==typeof window?i.useEffect:i.useLayoutEffect;const g=i.forwardRef((function(e,t){var n=e.actions,g=e.autoFocus,v=void 0!==g&&g,y=e.autoFocusItem,b=void 0!==y&&y,w=e.children,E=e.className,x=e.disabledItemsFocusable,O=void 0!==x&&x,S=e.disableListWrap,A=void 0!==S&&S,_=e.onKeyDown,C=e.variant,T=void 0===C?"selectedMenu":C,k=(0,o.A)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),P=i.useRef(null),I=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});m((function(){v&&P.current.focus()}),[v]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!P.current.style.width;if(e.clientHeight<P.current.clientHeight&&n){var r="".concat((0,c.A)(!0),"px");P.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,P.current.style.width="calc(100% + ".concat(r,")")}return P.current}}}),[]);var R=i.useCallback((function(e){P.current=a.findDOMNode(e)}),[]),j=(0,u.A)(R,t),D=-1;i.Children.forEach(w,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===T&&e.props.selected||-1===D)&&(D=t))}));var N=i.Children.map(w,(function(e,t){if(t===D){var n={};return b&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===T&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return i.createElement(l.A,(0,r.A)({role:"menu",ref:j,className:E,onKeyDown:function(e){var t=P.current,n=e.key,r=(0,s.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),h(t,r,A,O,d);else if("ArrowUp"===n)e.preventDefault(),h(t,r,A,O,f);else if("Home"===n)e.preventDefault(),h(t,null,A,O,d);else if("End"===n)e.preventDefault(),h(t,null,A,O,f);else if(1===n.length){var o=I.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);var l=r&&!o.repeating&&p(r,o);o.previousKeyMatched&&(l||h(t,r,!1,O,d,o))?e.preventDefault():o.previousKeyMatched=!1}_&&_(e)},tabIndex:v?0:-1},k),N)}))},5014:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(80045),o=n(58168),i=n(96540),a=n(40961),s=n(42143),l=n(16081),c=n(61475),u=n(71846),d=n(8521),f=n(74801),p=n(22319),h=n(39474),m=n(67793),g=n(84190),v={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const y=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,l=(0,r.A)(e,["invisible","open"]);return s?i.createElement("div",(0,o.A)({"aria-hidden":!0,ref:t},l,{style:(0,o.A)({},v.root,a?v.invisible:{},l.style)})):null}));var b=new m.A;const w=i.forwardRef((function(e,t){var n=(0,s.A)(),v=(0,l.A)({name:"MuiModal",props:(0,o.A)({},e),theme:n}),w=v.BackdropComponent,E=void 0===w?y:w,x=v.BackdropProps,O=v.children,S=v.closeAfterTransition,A=void 0!==S&&S,_=v.container,C=v.disableAutoFocus,T=void 0!==C&&C,k=v.disableBackdropClick,P=void 0!==k&&k,I=v.disableEnforceFocus,R=void 0!==I&&I,j=v.disableEscapeKeyDown,D=void 0!==j&&j,N=v.disablePortal,M=void 0!==N&&N,L=v.disableRestoreFocus,z=void 0!==L&&L,W=v.disableScrollLock,B=void 0!==W&&W,F=v.hideBackdrop,H=void 0!==F&&F,V=v.keepMounted,U=void 0!==V&&V,G=v.manager,q=void 0===G?b:G,$=v.onBackdropClick,K=v.onClose,Z=v.onEscapeKeyDown,X=v.onRendered,Y=v.open,Q=(0,r.A)(v,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),J=i.useState(!0),ee=J[0],te=J[1],ne=i.useRef({}),re=i.useRef(null),oe=i.useRef(null),ie=(0,f.A)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(v),se=function(){return(0,c.A)(re.current)},le=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},ce=function(){q.mount(le(),{disableScrollLock:B}),oe.current.scrollTop=0},ue=(0,p.A)((function(){var e=function(e){return e="function"==typeof e?e():e,a.findDOMNode(e)}(_)||se().body;q.add(le(),e),oe.current&&ce()})),de=i.useCallback((function(){return q.isTopModal(le())}),[q]),fe=(0,p.A)((function(e){re.current=e,e&&(X&&X(),Y&&de()?ce():(0,m.M)(oe.current,!0))})),pe=i.useCallback((function(){q.remove(le())}),[q]);if(i.useEffect((function(){return function(){pe()}}),[pe]),i.useEffect((function(){Y?ue():ae&&A||pe()}),[Y,pe,ae,A,ue]),!U&&!Y&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:h.A}),me={};return void 0===O.props.tabIndex&&(me.tabIndex=O.props.tabIndex||"-1"),ae&&(me.onEnter=(0,d.A)((function(){te(!1)}),O.props.onEnter),me.onExited=(0,d.A)((function(){te(!0),A&&pe()}),O.props.onExited)),i.createElement(u.A,{ref:fe,container:_,disablePortal:M},i.createElement("div",(0,o.A)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&de()&&(Z&&Z(e),D||(e.stopPropagation(),K&&K(e,"escapeKeyDown")))},role:"presentation"},Q,{style:(0,o.A)({},he.root,!Y&&ee?he.hidden:{},Q.style)}),H?null:i.createElement(E,(0,o.A)({open:Y,onClick:function(e){e.target===e.currentTarget&&($&&$(e),!P&&K&&K(e,"backdropClick"))}},x)),i.createElement(g.A,{disableEnforceFocus:R,disableAutoFocus:T,disableRestoreFocus:z,getDoc:se,isEnabled:de,open:Y},i.cloneElement(O,me))))}))},67793:(e,t,n)=>{"use strict";n.d(t,{A:()=>p,M:()=>c});var r=n(23029),o=n(92901),i=n(60436),a=n(6674),s=n(61475),l=n(76182);function c(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function u(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function d(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,a=[t,n].concat((0,i.A)(r)),s=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===a.indexOf(e)&&-1===s.indexOf(e.tagName)&&c(e,o)}))}function f(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}var p=function(){function e(){(0,r.A)(this,e),this.modals=[],this.containers=[]}return(0,o.A)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&c(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);d(t,e.mountNode,e.modalRef,r,!0);var o=f(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=f(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=function(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,s.A)(e);return t.body===e?(0,l.A)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var c=(0,a.A)();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(u(i)+c,"px"),n=(0,s.A)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(u(e)+c,"px")}))}var d=i.parentElement,f="HTML"===d.nodeName&&"scroll"===window.getComputedStyle(d)["overflow-y"]?d:i;r.push({value:f.style.overflow,key:"overflow",el:f}),f.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=f(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&c(e.modalRef,!0),d(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&c(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}()},63400:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,R:()=>f});var r=n(58168),o=n(80045),i=n(96540),a=n(27994),s=n(32150),l=n(10771),c=n(49029),u=n(83639),d=n(8728),f=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},p=i.createElement(d.A,null),h=i.forwardRef((function(e,t){var n=e.children,s=e.classes,d=e.IconComponent,f=void 0===d?u.A:d,h=e.input,m=void 0===h?p:h,g=e.inputProps,v=(e.variant,(0,o.A)(e,["children","classes","IconComponent","input","inputProps","variant"])),y=(0,c.A)(),b=(0,l.A)({props:e,muiFormControl:y,states:["variant"]});return i.cloneElement(m,(0,r.A)({inputComponent:a.A,inputProps:(0,r.A)({children:n,classes:s,IconComponent:f,variant:b.variant,type:void 0},g,m?m.props.inputProps:{}),ref:t},v))}));h.muiName="Select";const m=(0,s.A)(f,{name:"MuiNativeSelect"})(h)},27994:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(67515);const l=i.forwardRef((function(e,t){var n=e.classes,l=e.className,c=e.disabled,u=e.IconComponent,d=e.inputRef,f=e.variant,p=void 0===f?"standard":f,h=(0,o.A)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return i.createElement(i.Fragment,null,i.createElement("select",(0,r.A)({className:(0,a.default)(n.root,n.select,n[p],l,c&&n.disabled),disabled:c,ref:d||t},h)),e.multiple?null:i.createElement(u,{className:(0,a.default)(n.icon,n["icon".concat((0,s.A)(p))],c&&n.disabled)}))}))},88016:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(25820),l=n(64467),c=n(32150),u=n(26232),d=n(67515),f=i.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,c=e.label,f=e.labelWidth,p=e.notched,h=e.style,m=(0,o.A)(e,["children","classes","className","label","labelWidth","notched","style"]),g="rtl"===(0,u.A)().direction?"right":"left";if(void 0!==c)return i.createElement("fieldset",(0,r.A)({"aria-hidden":!0,className:(0,a.default)(n.root,s),ref:t,style:h},m),i.createElement("legend",{className:(0,a.default)(n.legendLabelled,p&&n.legendNotched)},c?i.createElement("span",null,c):i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var v=f>0?.75*f+8:.01;return i.createElement("fieldset",(0,r.A)({"aria-hidden":!0,style:(0,r.A)((0,l.A)({},"padding".concat((0,d.A)(g)),8),h),className:(0,a.default)(n.root,s),ref:t},m),i.createElement("legend",{className:n.legend,style:{width:p?v:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}));const p=(0,c.A)((function(e){return{root:{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"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(f);var h=i.forwardRef((function(e,t){var n=e.classes,l=e.fullWidth,c=void 0!==l&&l,u=e.inputComponent,d=void 0===u?"input":u,f=e.label,h=e.labelWidth,m=void 0===h?0:h,g=e.multiline,v=void 0!==g&&g,y=e.notched,b=e.type,w=void 0===b?"text":b,E=(0,o.A)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(s.A,(0,r.A)({renderSuffix:function(e){return i.createElement(p,{className:n.notchedOutline,label:f,labelWidth:m,notched:void 0!==y?y:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,r.A)({},n,{root:(0,a.default)(n.root,n.underline),notchedOutline:null}),fullWidth:c,inputComponent:d,multiline:v,ref:t,type:w},E))}));h.muiName="Input";const m=(0,c.A)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(h)},3148:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(80045),o=n(58168),i=n(96540),a=n(20053),s=n(32150),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=e.square,d=void 0!==u&&u,f=e.elevation,p=void 0===f?1:f,h=e.variant,m=void 0===h?"elevation":h,g=(0,r.A)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(c,(0,o.A)({className:(0,a.default)(n.root,s,"outlined"===m?n.outlined:n["elevation".concat(p)],!d&&n.rounded),ref:t},g))}));const c=(0,s.A)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,o.A)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(l)},11760:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>E});var r=n(58168),o=n(80045),i=n(96540),a=n(40961),s=n(31198),l=n(20053),c=n(61475),u=n(76182),d=n(8521),f=n(32150),p=n(5014),h=n(78896),m=n(3148);function g(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function v(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function y(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function b(e){return"function"==typeof e?e():e}var w=i.forwardRef((function(e,t){var n=e.action,f=e.anchorEl,w=e.anchorOrigin,E=void 0===w?{vertical:"top",horizontal:"left"}:w,x=e.anchorPosition,O=e.anchorReference,S=void 0===O?"anchorEl":O,A=e.children,_=e.classes,C=e.className,T=e.container,k=e.elevation,P=void 0===k?8:k,I=e.getContentAnchorEl,R=e.marginThreshold,j=void 0===R?16:R,D=e.onEnter,N=e.onEntered,M=e.onEntering,L=e.onExit,z=e.onExited,W=e.onExiting,B=e.open,F=e.PaperProps,H=void 0===F?{}:F,V=e.transformOrigin,U=void 0===V?{vertical:"top",horizontal:"left"}:V,G=e.TransitionComponent,q=void 0===G?h.A:G,$=e.transitionDuration,K=void 0===$?"auto":$,Z=e.TransitionProps,X=void 0===Z?{}:Z,Y=(0,o.A)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Q=i.useRef(),J=i.useCallback((function(e){if("anchorPosition"===S)return x;var t=b(f),n=(t&&1===t.nodeType?t:(0,c.A)(Q.current).body).getBoundingClientRect(),r=0===e?E.vertical:"center";return{top:n.top+g(n,r),left:n.left+v(n,E.horizontal)}}),[f,E.horizontal,E.vertical,x,S]),ee=i.useCallback((function(e){var t=0;if(I&&"anchorEl"===S){var n=I(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[E.vertical,S,I]),te=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:g(e,U.vertical)+t,horizontal:v(e,U.horizontal)}}),[U.horizontal,U.vertical]),ne=i.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===S)return{top:null,left:null,transformOrigin:y(r)};var o=J(t),i=o.top-r.vertical,a=o.left-r.horizontal,s=i+n.height,l=a+n.width,c=(0,u.A)(b(f)),d=c.innerHeight-j,p=c.innerWidth-j;if(i<j){var h=i-j;i-=h,r.vertical+=h}else if(s>d){var m=s-d;i-=m,r.vertical+=m}if(a<j){var g=a-j;a-=g,r.horizontal+=g}else if(l>p){var v=l-p;a-=v,r.horizontal+=v}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:y(r)}}),[f,S,J,ee,te,j]),re=i.useCallback((function(){var e=Q.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),oe=i.useCallback((function(e){Q.current=a.findDOMNode(e)}),[]);i.useEffect((function(){B&&re()})),i.useImperativeHandle(n,(function(){return B?{updatePosition:function(){re()}}:null}),[B,re]),i.useEffect((function(){if(B){var e=(0,s.A)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[B,re]);var ie=K;"auto"!==K||q.muiSupportAuto||(ie=void 0);var ae=T||(f?(0,c.A)(b(f)).body:void 0);return i.createElement(p.A,(0,r.A)({container:ae,open:B,ref:t,BackdropProps:{invisible:!0},className:(0,l.default)(_.root,C)},Y),i.createElement(q,(0,r.A)({appear:!0,in:B,onEnter:D,onEntered:N,onExit:L,onExited:z,onExiting:W,timeout:ie},X,{onEntering:(0,d.A)((function(e,t){M&&M(e,t),re()}),X.onEntering)}),i.createElement(m.A,(0,r.A)({elevation:P,ref:oe},H,{className:(0,l.default)(_.paper,H.className)}),A)))}));const E=(0,f.A)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(w)},16408:(e,t,n)=>{"use strict";n.d(t,{A:()=>he});var r=n(58168),o=n(80045),i=n(96540),a="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,s=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(a&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),l=a&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),s))}};function c(e){return e&&"[object Function]"==={}.toString.call(e)}function u(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function d(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function f(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=u(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:f(d(e))}function p(e){return e&&e.referenceNode?e.referenceNode:e}var h=a&&!(!window.MSInputMethodContext||!document.documentMode),m=a&&/MSIE 10/.test(navigator.userAgent);function g(e){return 11===e?h:10===e?m:h||m}function v(e){if(!e)return document.documentElement;for(var t=g(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===u(n,"position")?v(n):n:e?e.ownerDocument.documentElement:document.documentElement}function y(e){return null!==e.parentNode?y(e.parentNode):e}function b(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&v(a.firstElementChild)!==a?v(l):l;var c=y(e);return c.host?b(c.host,t):b(e,y(t).host)}function w(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function E(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function x(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],g(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function O(e){var t=e.body,n=e.documentElement,r=g(10)&&getComputedStyle(n);return{height:x("Height",t,n,r),width:x("Width",t,n,r)}}var S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),A=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function C(e){return _({},e,{right:e.left+e.width,bottom:e.top+e.height})}function T(e){var t={};try{if(g(10)){t=e.getBoundingClientRect();var n=w(e,"top"),r=w(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?O(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var d=u(e);l-=E(d,"x"),c-=E(d,"y"),o.width-=l,o.height-=c}return C(o)}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(10),o="HTML"===t.nodeName,i=T(e),a=T(t),s=f(e),l=u(t),c=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=C({top:i.top-a.top-c,left:i.left-a.left-d,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var h=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);p.top-=c-h,p.bottom-=c-h,p.left-=d-m,p.right-=d-m,p.marginTop=h,p.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=w(t,"top"),o=w(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(p,t)),p}function P(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===u(e,"position"))return!0;var n=d(e);return!!n&&P(n)}function I(e){if(!e||!e.parentElement||g())return document.documentElement;for(var t=e.parentElement;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function R(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?I(e):b(e,p(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=k(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:w(n),s=t?0:w(n,"left");return C({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=f(d(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=k(s,a,o);if("HTML"!==s.nodeName||P(a))i=l;else{var c=O(e.ownerDocument),u=c.height,h=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=h+l.left}}var m="number"==typeof(n=n||0);return i.left+=m?n:n.left||0,i.top+=m?n:n.top||0,i.right-=m?n:n.right||0,i.bottom-=m?n:n.bottom||0,i}function j(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=R(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return _({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function D(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(n,r?I(t):b(t,p(n)),r)}function N(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function M(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var r=N(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[M(s)],o}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function W(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=z(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&c(n)&&(t.offsets.popper=C(t.offsets.popper),t.offsets.reference=C(t.offsets.reference),t=n(t,e))})),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=j(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=W(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function F(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function H(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function V(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||G(f(i.parentNode),t,n,r),r.push(i)}function q(e,t,n,r){n.updateBound=r,U(e).addEventListener("resize",n.updateBound,{passive:!0});var o=f(e);return G(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function $(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function K(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,U(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function X(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Z(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Y=a&&/Firefox/i.test(navigator.userAgent);function Q(e,t,n){var r=z(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ee=J.slice(3);function te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:A({},l,i[l]),end:A({},l,i[l]+i[c]-a[c])};e.offsets.popper=_({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,o=e.placement,i=e.offsets,a=i.popper,s=i.reference,l=o.split("-")[0];return n=Z(+r)?[+r,0]:function(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(z(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];return i?0===a.indexOf("%")?C("%p"===a?n:r)[t]/100*i:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:e}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){Z(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}(r,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||v(e.instance.popper);e.instance.reference===n&&(n=v(n));var r=H("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=R(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),A({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),A({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=_({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Q(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",m=N(r)[c];s[h]-m<a[f]&&(e.offsets.popper[f]-=a[f]-(s[h]-m)),s[f]+m>a[h]&&(e.offsets.popper[f]+=s[f]+m-a[h]),e.offsets.popper=C(e.offsets.popper);var g=s[f]+s[c]/2-m/2,v=u(e.instance.popper),y=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),w=g-e.offsets.popper[f]-y-b;return w=Math.max(Math.min(a[c]-m,w),0),e.arrowElement=r,e.offsets.arrow=(A(n={},f,Math.round(w)),A(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(F(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=R(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=M(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[r,o];break;case"clockwise":a=te(r);break;case"counterclockwise":a=te(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=M(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),p=d(c.left)<d(n.left),h=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g),w=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&p||!y&&"start"===i&&g||!y&&"end"===i&&m),E=b||w;(f||v||E)&&(e.flipped=!0,(f||v)&&(r=a[l+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=_({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=W(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=M(t),e.offsets.popper=C(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0!==i?i:t.gpuAcceleration,c=v(e.instance.popper),u=T(c),d={position:o.position},f=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||l%2==c%2?i:a:s,p=t?i:s;return{left:f(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!Y),p="bottom"===n?"top":"bottom",h="right"===r?"left":"right",m=H("transform");if(s="bottom"===p?"HTML"===c.nodeName?-c.clientHeight+f.bottom:-u.height+f.bottom:f.top,a="right"===h?"HTML"===c.nodeName?-c.clientWidth+f.right:-u.width+f.right:f.left,l&&m)d[m]="translate3d("+a+"px, "+s+"px, 0)",d[p]=0,d[h]=0,d.willChange="transform";else{var g="bottom"===p?-1:1,y="right"===h?-1:1;d[p]=s*g,d[h]=a*y,d.willChange=p+", "+h}var b={"x-placement":e.placement};return e.attributes=_({},b,e.attributes),e.styles=_({},d,e.styles),e.arrowStyles=_({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return X(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&X(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=D(o,t,e,n.positionFixed),a=j(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),X(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},re=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=l(this.update.bind(this)),this.options=_({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=_({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return _({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&c(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return S(e,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return V.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();re.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,re.placements=J,re.Defaults=ne;const oe=re;var ie=n(42143),ae=n(71846),se=n(8521),le=n(24960),ce=n(74801);function ue(e){return"function"==typeof e?e():e}var de="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,fe={},pe=i.forwardRef((function(e,t){var n=e.anchorEl,a=e.children,s=e.container,l=e.disablePortal,c=void 0!==l&&l,u=e.keepMounted,d=void 0!==u&&u,f=e.modifiers,p=e.open,h=e.placement,m=void 0===h?"bottom":h,g=e.popperOptions,v=void 0===g?fe:g,y=e.popperRef,b=e.style,w=e.transition,E=void 0!==w&&w,x=(0,o.A)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),O=i.useRef(null),S=(0,ce.A)(O,t),A=i.useRef(null),_=(0,ce.A)(A,y),C=i.useRef(_);de((function(){C.current=_}),[_]),i.useImperativeHandle(y,(function(){return A.current}),[]);var T=i.useState(!0),k=T[0],P=T[1],I=function(e,t){if("ltr"===(t&&t.direction||"ltr"))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}}(m,(0,ie.A)()),R=i.useState(I),j=R[0],D=R[1];i.useEffect((function(){A.current&&A.current.update()}));var N=i.useCallback((function(){if(O.current&&n&&p){A.current&&(A.current.destroy(),C.current(null));var e=function(e){D(e.placement)},t=(ue(n),new oe(ue(n),O.current,(0,r.A)({placement:I},v,{modifiers:(0,r.A)({},c?{}:{preventOverflow:{boundariesElement:"window"}},f,v.modifiers),onCreate:(0,se.A)(e,v.onCreate),onUpdate:(0,se.A)(e,v.onUpdate)})));C.current(t)}}),[n,c,f,p,I,v]),M=i.useCallback((function(e){(0,le.A)(S,e),N()}),[S,N]),L=function(){A.current&&(A.current.destroy(),C.current(null))};if(i.useEffect((function(){return function(){L()}}),[]),i.useEffect((function(){p||E||L()}),[p,E]),!d&&!p&&(!E||k))return null;var z={placement:j};return E&&(z.TransitionProps={in:p,onEnter:function(){P(!1)},onExited:function(){P(!0),L()}}),i.createElement(ae.A,{disablePortal:c,container:s},i.createElement("div",(0,r.A)({ref:M,role:"tooltip"},x,{style:(0,r.A)({position:"fixed",top:0,left:0,display:p||!d||E?null:"none"},b)}),"function"==typeof a?a(z):a))}));const he=pe},71846:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(96540),o=n(40961),i=n(24960),a=n(74801),s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;const l=r.forwardRef((function(e,t){var n=e.children,l=e.container,c=e.disablePortal,u=void 0!==c&&c,d=e.onRendered,f=r.useState(null),p=f[0],h=f[1],m=(0,a.A)(r.isValidElement(n)?n.ref:null,t);return s((function(){u||h(function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(l)||document.body)}),[l,u]),s((function(){if(p&&!u)return(0,i.A)(t,p),function(){(0,i.A)(t,null)}}),[t,p,u]),s((function(){d&&(p||u)&&d()}),[d,p,u]),u?r.isValidElement(n)?r.cloneElement(n,{ref:m}):n:p?o.createPortal(n,p):p}))},98448:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(58168),o=n(80045),i=n(96540),a=n(13043),s=n(5544),l=n(82284),c=n(77860),u=(n(44363),n(20053)),d=n(61475),f=n(67515),p=n(70032),h=n(33576),m=n(74801),g=n(28060);function v(e,t){return"object"===(0,l.A)(t)&&null!==t?e===t:String(e)===String(t)}const y=i.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,l=e.autoWidth,y=e.children,b=e.classes,w=e.className,E=e.defaultValue,x=e.disabled,O=e.displayEmpty,S=e.IconComponent,A=e.inputRef,_=e.labelId,C=e.MenuProps,T=void 0===C?{}:C,k=e.multiple,P=e.name,I=e.onBlur,R=e.onChange,j=e.onClose,D=e.onFocus,N=e.onOpen,M=e.open,L=e.readOnly,z=e.renderValue,W=e.SelectDisplayProps,B=void 0===W?{}:W,F=e.tabIndex,H=(e.type,e.value),V=e.variant,U=void 0===V?"standard":V,G=(0,o.A)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),q=(0,g.A)({controlled:H,default:E,name:"Select"}),$=(0,s.A)(q,2),K=$[0],Z=$[1],X=i.useRef(null),Y=i.useState(null),Q=Y[0],J=Y[1],ee=i.useRef(null!=M).current,te=i.useState(),ne=te[0],re=te[1],oe=i.useState(!1),ie=oe[0],ae=oe[1],se=(0,m.A)(t,A);i.useImperativeHandle(se,(function(){return{focus:function(){Q.focus()},node:X.current,value:K}}),[Q,K]),i.useEffect((function(){a&&Q&&Q.focus()}),[a,Q]),i.useEffect((function(){if(Q){var e=(0,d.A)(Q).getElementById(_);if(e){var t=function(){getSelection().isCollapsed&&Q.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[_,Q]);var le,ce,ue=function(e,t){e?N&&N(t):j&&j(t),ee||(re(l?null:Q.clientWidth),ae(e))},de=i.Children.toArray(y),fe=function(e){return function(t){var n;if(k||ue(!1,t),k){n=Array.isArray(K)?K.slice():[];var r=K.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),K!==n&&(Z(n),R&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:P}}),R(t,e)))}},pe=null!==Q&&(ee?M:ie);delete G["aria-invalid"];var he=[],me=!1;((0,h.lq)({value:K})||O)&&(z?le=z(K):me=!0);var ge=de.map((function(e){if(!i.isValidElement(e))return null;var t;if(k){if(!Array.isArray(K))throw new Error((0,c.A)(2));(t=K.some((function(t){return v(t,e.props.value)})))&&me&&he.push(e.props.children)}else(t=v(K,e.props.value))&&me&&(ce=e.props.children);return i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:fe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));me&&(le=k?he.join(", "):ce);var ve,ye=ne;!l&&ee&&Q&&(ye=Q.clientWidth),ve=void 0!==F?F:x?null:0;var be=B.id||(P?"mui-component-select-".concat(P):void 0);return i.createElement(i.Fragment,null,i.createElement("div",(0,r.A)({className:(0,u.default)(b.root,b.select,b.selectMenu,b[U],w,x&&b.disabled),ref:J,tabIndex:ve,role:"button","aria-disabled":x?"true":void 0,"aria-expanded":pe?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[_,be].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){L||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ue(!0,e))},onMouseDown:x||L?null:function(e){0===e.button&&(e.preventDefault(),Q.focus(),ue(!0,e))},onBlur:function(e){!pe&&I&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:K,name:P}}),I(e))},onFocus:D},B,{id:be}),function(e){return null==e||"string"==typeof e&&!e.trim()}(le)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):le),i.createElement("input",(0,r.A)({value:Array.isArray(K)?K.join(","):K,name:P,ref:X,"aria-hidden":!0,onChange:function(e){var t=de.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=de[t];Z(n.props.value),R&&R(e,n)}},tabIndex:-1,className:b.nativeInput,autoFocus:a},G)),i.createElement(S,{className:(0,u.default)(b.icon,b["icon".concat((0,f.A)(U))],pe&&b.iconOpen,x&&b.disabled)}),i.createElement(p.A,(0,r.A)({id:"menu-".concat(P||""),anchorEl:Q,open:pe,onClose:function(e){ue(!1,e)}},T,{MenuListProps:(0,r.A)({"aria-labelledby":_,role:"listbox",disableListWrap:!0},T.MenuListProps),PaperProps:(0,r.A)({},T.PaperProps,{style:(0,r.A)({minWidth:ye},null!=T.PaperProps?T.PaperProps.style:null)})}),ge))}));var b=n(10771),w=n(49029),E=n(32150),x=n(83639),O=n(8728),S=n(63400),A=n(27994),_=n(87508),C=n(88016),T=S.R,k=i.createElement(O.A,null),P=i.createElement(_.A,null),I=i.forwardRef((function e(t,n){var s=t.autoWidth,l=void 0!==s&&s,c=t.children,u=t.classes,d=t.displayEmpty,f=void 0!==d&&d,p=t.IconComponent,h=void 0===p?x.A:p,m=t.id,g=t.input,v=t.inputProps,E=t.label,O=t.labelId,S=t.labelWidth,_=void 0===S?0:S,T=t.MenuProps,I=t.multiple,R=void 0!==I&&I,j=t.native,D=void 0!==j&&j,N=t.onClose,M=t.onOpen,L=t.open,z=t.renderValue,W=t.SelectDisplayProps,B=t.variant,F=void 0===B?"standard":B,H=(0,o.A)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),V=D?A.A:y,U=(0,w.A)(),G=(0,b.A)({props:t,muiFormControl:U,states:["variant"]}).variant||F,q=g||{standard:k,outlined:i.createElement(C.A,{label:E,labelWidth:_}),filled:P}[G];return i.cloneElement(q,(0,r.A)({inputComponent:V,inputProps:(0,r.A)({children:c,IconComponent:h,variant:G,type:void 0,multiple:R},D?{id:m}:{autoWidth:l,displayEmpty:f,labelId:O,MenuProps:T,onClose:N,onOpen:M,open:L,renderValue:z,SelectDisplayProps:(0,r.A)({id:m},W)},v,{classes:v?(0,a.A)({baseClasses:u,newClasses:v.classes,Component:e}):u},g?g.props.inputProps:{}),ref:n},H))}));I.muiName="Select";const R=(0,E.A)(T,{name:"MuiSelect"})(I)},10716:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(80045),i=n(96540),a=n(40961),s=n(31198),l=n(37353),c=n(74801),u=n(26232),d=n(63870),f=n(33173);function p(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var h={enter:d.p0.enteringScreen,exit:d.p0.leavingScreen};const m=i.forwardRef((function(e,t){var n=e.children,d=e.direction,m=void 0===d?"down":d,g=e.in,v=e.onEnter,y=e.onEntered,b=e.onEntering,w=e.onExit,E=e.onExited,x=e.onExiting,O=e.style,S=e.timeout,A=void 0===S?h:S,_=e.TransitionComponent,C=void 0===_?l.Ay:_,T=(0,o.A)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),k=(0,u.A)(),P=i.useRef(null),I=i.useCallback((function(e){P.current=a.findDOMNode(e)}),[]),R=(0,c.A)(n.ref,I),j=(0,c.A)(R,t),D=function(e){return function(t){e&&(void 0===t?e(P.current):e(P.current,t))}},N=D((function(e,t){p(m,e),(0,f.q)(e),v&&v(e,t)})),M=D((function(e,t){var n=(0,f.c)({timeout:A,style:O},{mode:"enter"});e.style.webkitTransition=k.transitions.create("-webkit-transform",(0,r.A)({},n,{easing:k.transitions.easing.easeOut})),e.style.transition=k.transitions.create("transform",(0,r.A)({},n,{easing:k.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",b&&b(e,t)})),L=D(y),z=D(x),W=D((function(e){var t=(0,f.c)({timeout:A,style:O},{mode:"exit"});e.style.webkitTransition=k.transitions.create("-webkit-transform",(0,r.A)({},t,{easing:k.transitions.easing.sharp})),e.style.transition=k.transitions.create("transform",(0,r.A)({},t,{easing:k.transitions.easing.sharp})),p(m,e),w&&w(e)})),B=D((function(e){e.style.webkitTransition="",e.style.transition="",E&&E(e)})),F=i.useCallback((function(){P.current&&p(m,P.current)}),[m]);return i.useEffect((function(){if(!g&&"down"!==m&&"right"!==m){var e=(0,s.A)((function(){P.current&&p(m,P.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[m,g]),i.useEffect((function(){g||F()}),[g,F]),i.createElement(C,(0,r.A)({nodeRef:P,onEnter:N,onEntered:L,onEntering:M,onExit:W,onExited:B,onExiting:z,appear:!0,in:g,timeout:A},T),(function(e,t){return i.cloneElement(n,(0,r.A)({ref:j,style:(0,r.A)({visibility:"exited"!==e||g?void 0:"hidden"},O,n.props.style)},t))}))}))},44041:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(60436),o=n(5544),i=n(80045),a=n(58168),s=n(96540),l=n(20053),c=n(32150),u=n(26232),d=n(19773),f=n(20364),p=n(61475),h=n(22319),m=n(74801),g=n(67515),v=n(28060);const y=(0,c.A)((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:(0,a.A)({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,o=e.open,i=e.value,a=e.valueLabelDisplay;return"off"===a?t:s.cloneElement(t,{className:(0,l.default)(t.props.className,(o||"on"===a)&&n.open,n.thumb)},s.createElement("span",{className:(0,l.default)(n.offset,r)},s.createElement("span",{className:n.circle},s.createElement("span",{className:n.label},i))))}));function b(e,t){return e-t}function w(e,t,n){return Math.min(Math.max(t,e),n)}function E(e,t){return e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null).index}function x(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function O(e,t,n){return 100*(e-t)/(n-t)}function S(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function A(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=t.slice();return i[o]=r,i}function _(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var C={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},T=function(e){return e},k=s.forwardRef((function(e,t){var n=e["aria-label"],c=e["aria-labelledby"],d=e["aria-valuetext"],k=e.classes,P=e.className,I=e.color,R=void 0===I?"primary":I,j=e.component,D=void 0===j?"span":j,N=e.defaultValue,M=e.disabled,L=void 0!==M&&M,z=e.getAriaLabel,W=e.getAriaValueText,B=e.marks,F=void 0!==B&&B,H=e.max,V=void 0===H?100:H,U=e.min,G=void 0===U?0:U,q=e.name,$=e.onChange,K=e.onChangeCommitted,Z=e.onMouseDown,X=e.orientation,Y=void 0===X?"horizontal":X,Q=e.scale,J=void 0===Q?T:Q,ee=e.step,te=void 0===ee?1:ee,ne=e.ThumbComponent,re=void 0===ne?"span":ne,oe=e.track,ie=void 0===oe?"normal":oe,ae=e.value,se=e.ValueLabelComponent,le=void 0===se?y:se,ce=e.valueLabelDisplay,ue=void 0===ce?"off":ce,de=e.valueLabelFormat,fe=void 0===de?T:de,pe=(0,i.A)(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),he=(0,u.A)(),me=s.useRef(),ge=s.useState(-1),ve=ge[0],ye=ge[1],be=s.useState(-1),we=be[0],Ee=be[1],xe=(0,v.A)({controlled:ae,default:N,name:"Slider"}),Oe=(0,o.A)(xe,2),Se=Oe[0],Ae=Oe[1],_e=Array.isArray(Se),Ce=_e?Se.slice().sort(b):[Se];Ce=Ce.map((function(e){return w(e,G,V)}));var Te=!0===F&&null!==te?(0,r.A)(Array(Math.floor((V-G)/te)+1)).map((function(e,t){return{value:G+te*t}})):F||[],ke=(0,f.A)(),Pe=ke.isFocusVisible,Ie=ke.onBlurVisible,Re=ke.ref,je=s.useState(-1),De=je[0],Ne=je[1],Me=s.useRef(),Le=(0,m.A)(Re,Me),ze=(0,m.A)(t,Le),We=(0,h.A)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Pe(e)&&Ne(t),Ee(t)})),Be=(0,h.A)((function(){-1!==De&&(Ne(-1),Ie()),Ee(-1)})),Fe=(0,h.A)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Ee(t)})),He=(0,h.A)((function(){Ee(-1)})),Ve="rtl"===he.direction,Ue=(0,h.A)((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=Ce[n],o=(V-G)/10,i=Te.map((function(e){return e.value})),a=i.indexOf(r),s=Ve?"ArrowLeft":"ArrowRight",l=Ve?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=G;break;case"End":t=V;break;case"PageUp":te&&(t=r+o);break;case"PageDown":te&&(t=r-o);break;case s:case"ArrowUp":t=te?r+te:i[a+1]||i[i.length-1];break;case l:case"ArrowDown":t=te?r-te:i[a-1]||i[0];break;default:return}if(e.preventDefault(),te&&(t=S(t,te,G)),t=w(t,G,V),_e){var c=t;t=A({values:Ce,source:Se,newValue:t,index:n}).sort(b),_({sliderRef:Me,activeIndex:t.indexOf(c)})}Ae(t),Ne(n),$&&$(e,t),K&&K(e,t)})),Ge=s.useRef(),qe=Y;Ve&&"vertical"!==Y&&(qe+="-reverse");var $e=function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,s=e.source,l=Me.current.getBoundingClientRect(),c=l.width,u=l.height,d=l.bottom,f=l.left;if(t=0===qe.indexOf("vertical")?(d-r.y)/u:(r.x-f)/c,-1!==qe.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,G,V),te)n=S(n,te,G);else{var p=Te.map((function(e){return e.value}));n=p[E(p,n)]}n=w(n,G,V);var h=0;if(_e){var m=n;h=(n=A({values:a,source:s,newValue:n,index:h=i?Ge.current:E(a,n)}).sort(b)).indexOf(m),Ge.current=h}return{newValue:n,activeIndex:h}},Ke=(0,h.A)((function(e){var t=x(e,me);if(t){var n=$e({finger:t,move:!0,values:Ce,source:Se}),r=n.newValue,o=n.activeIndex;_({sliderRef:Me,activeIndex:o,setActive:ye}),Ae(r),$&&$(e,r)}})),Ze=(0,h.A)((function(e){var t=x(e,me);if(t){var n=$e({finger:t,values:Ce,source:Se}).newValue;ye(-1),"touchend"===e.type&&Ee(-1),K&&K(e,n),me.current=void 0;var r=(0,p.A)(Me.current);r.removeEventListener("mousemove",Ke),r.removeEventListener("mouseup",Ze),r.removeEventListener("touchmove",Ke),r.removeEventListener("touchend",Ze)}})),Xe=(0,h.A)((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(me.current=t.identifier);var n=x(e,me),r=$e({finger:n,values:Ce,source:Se}),o=r.newValue,i=r.activeIndex;_({sliderRef:Me,activeIndex:i,setActive:ye}),Ae(o),$&&$(e,o);var a=(0,p.A)(Me.current);a.addEventListener("touchmove",Ke),a.addEventListener("touchend",Ze)}));s.useEffect((function(){var e=Me.current;e.addEventListener("touchstart",Xe);var t=(0,p.A)(e);return function(){e.removeEventListener("touchstart",Xe),t.removeEventListener("mousemove",Ke),t.removeEventListener("mouseup",Ze),t.removeEventListener("touchmove",Ke),t.removeEventListener("touchend",Ze)}}),[Ze,Ke,Xe]);var Ye=(0,h.A)((function(e){Z&&Z(e),e.preventDefault();var t=x(e,me),n=$e({finger:t,values:Ce,source:Se}),r=n.newValue,o=n.activeIndex;_({sliderRef:Me,activeIndex:o,setActive:ye}),Ae(r),$&&$(e,r);var i=(0,p.A)(Me.current);i.addEventListener("mousemove",Ke),i.addEventListener("mouseup",Ze)})),Qe=O(_e?Ce[0]:G,G,V),Je=O(Ce[Ce.length-1],G,V)-Qe,et=(0,a.A)({},C[qe].offset(Qe),C[qe].leap(Je));return s.createElement(D,(0,a.A)({ref:ze,className:(0,l.default)(k.root,k["color".concat((0,g.A)(R))],P,L&&k.disabled,Te.length>0&&Te.some((function(e){return e.label}))&&k.marked,!1===ie&&k.trackFalse,"vertical"===Y&&k.vertical,"inverted"===ie&&k.trackInverted),onMouseDown:Ye},pe),s.createElement("span",{className:k.rail}),s.createElement("span",{className:k.track,style:et}),s.createElement("input",{value:Ce.join(","),name:q,type:"hidden"}),Te.map((function(e,t){var n,r=O(e.value,G,V),o=C[qe].offset(r);return n=!1===ie?-1!==Ce.indexOf(e.value):"normal"===ie&&(_e?e.value>=Ce[0]&&e.value<=Ce[Ce.length-1]:e.value<=Ce[0])||"inverted"===ie&&(_e?e.value<=Ce[0]||e.value>=Ce[Ce.length-1]:e.value>=Ce[0]),s.createElement(s.Fragment,{key:e.value},s.createElement("span",{style:o,"data-index":t,className:(0,l.default)(k.mark,n&&k.markActive)}),null!=e.label?s.createElement("span",{"aria-hidden":!0,"data-index":t,style:o,className:(0,l.default)(k.markLabel,n&&k.markLabelActive)},e.label):null)})),Ce.map((function(e,t){var r=O(e,G,V),o=C[qe].offset(r);return s.createElement(le,{key:t,valueLabelFormat:fe,valueLabelDisplay:ue,className:k.valueLabel,value:"function"==typeof fe?fe(J(e),t):fe,index:t,open:we===t||ve===t||"on"===ue,disabled:L},s.createElement(re,{className:(0,l.default)(k.thumb,k["thumbColor".concat((0,g.A)(R))],ve===t&&k.active,L&&k.disabled,De===t&&k.focusVisible),tabIndex:L?null:0,role:"slider",style:o,"data-index":t,"aria-label":z?z(t):n,"aria-labelledby":c,"aria-orientation":Y,"aria-valuemax":J(V),"aria-valuemin":J(G),"aria-valuenow":J(e),"aria-valuetext":W?W(J(e),t):d,onKeyDown:Ue,onFocus:We,onBlur:Be,onMouseOver:Fe,onMouseLeave:He}))})))}));const P=(0,c.A)((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?(0,d.a)(e.palette.primary.main,.62):(0,d.e$)(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,d.X4)(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,d.X4)(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,d.X4)(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,d.X4)(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:(0,a.A)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(k)},21209:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(44041)},65936:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(80045),o=n(64467),i=n(58168),a=n(96540),s=n(20053),l=n(32150),c=n(63870),u=n(43292),d=n(22319),f=n(67515),p=n(8521),h=n(78896),m=n(98200),g=a.forwardRef((function(e,t){var n=e.action,o=e.anchorOrigin,l=(o=void 0===o?{vertical:"bottom",horizontal:"center"}:o).vertical,g=o.horizontal,v=e.autoHideDuration,y=void 0===v?null:v,b=e.children,w=e.classes,E=e.className,x=e.ClickAwayListenerProps,O=e.ContentProps,S=e.disableWindowBlurListener,A=void 0!==S&&S,_=e.message,C=e.onClose,T=e.onEnter,k=e.onEntered,P=e.onEntering,I=e.onExit,R=e.onExited,j=e.onExiting,D=e.onMouseEnter,N=e.onMouseLeave,M=e.open,L=e.resumeHideDuration,z=e.TransitionComponent,W=void 0===z?h.A:z,B=e.transitionDuration,F=void 0===B?{enter:c.p0.enteringScreen,exit:c.p0.leavingScreen}:B,H=e.TransitionProps,V=(0,r.A)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),U=a.useRef(),G=a.useState(!0),q=G[0],$=G[1],K=(0,d.A)((function(){C&&C.apply(void 0,arguments)})),Z=(0,d.A)((function(e){C&&null!=e&&(clearTimeout(U.current),U.current=setTimeout((function(){K(null,"timeout")}),e))}));a.useEffect((function(){return M&&Z(y),function(){clearTimeout(U.current)}}),[M,y,Z]);var X=function(){clearTimeout(U.current)},Y=a.useCallback((function(){null!=y&&Z(null!=L?L:.5*y)}),[y,L,Z]);return a.useEffect((function(){if(!A&&M)return window.addEventListener("focus",Y),window.addEventListener("blur",X),function(){window.removeEventListener("focus",Y),window.removeEventListener("blur",X)}}),[A,Y,M]),!M&&q?null:a.createElement(u.A,(0,i.A)({onClickAway:function(e){C&&C(e,"clickaway")}},x),a.createElement("div",(0,i.A)({className:(0,s.default)(w.root,w["anchorOrigin".concat((0,f.A)(l)).concat((0,f.A)(g))],E),onMouseEnter:function(e){D&&D(e),X()},onMouseLeave:function(e){N&&N(e),Y()},ref:t},V),a.createElement(W,(0,i.A)({appear:!0,in:M,onEnter:(0,p.A)((function(){$(!1)}),T),onEntered:k,onEntering:P,onExit:I,onExited:(0,p.A)((function(){$(!0)}),R),onExiting:j,timeout:F,direction:"top"===l?"down":"up"},H),b||a.createElement(m.A,(0,i.A)({message:_,action:n},O)))))}));const v=(0,l.A)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},a={justifyContent:"flex-start"},s={top:24},l={bottom:24},c={right:24},u={left:24},d={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,i.A)({},t,(0,o.A)({},e.breakpoints.up("sm"),(0,i.A)({},s,d))),anchorOriginBottomCenter:(0,i.A)({},n,(0,o.A)({},e.breakpoints.up("sm"),(0,i.A)({},l,d))),anchorOriginTopRight:(0,i.A)({},t,r,(0,o.A)({},e.breakpoints.up("sm"),(0,i.A)({left:"auto"},s,c))),anchorOriginBottomRight:(0,i.A)({},n,r,(0,o.A)({},e.breakpoints.up("sm"),(0,i.A)({left:"auto"},l,c))),anchorOriginTopLeft:(0,i.A)({},t,a,(0,o.A)({},e.breakpoints.up("sm"),(0,i.A)({right:"auto"},s,u))),anchorOriginBottomLeft:(0,i.A)({},n,a,(0,o.A)({},e.breakpoints.up("sm"),(0,i.A)({right:"auto"},l,u)))}}),{flip:!1,name:"MuiSnackbar"})(g)},98200:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(80045),o=n(64467),i=n(58168),a=n(96540),s=n(20053),l=n(32150),c=n(3148),u=n(19773),d=a.forwardRef((function(e,t){var n=e.action,o=e.classes,l=e.className,u=e.message,d=e.role,f=void 0===d?"alert":d,p=(0,r.A)(e,["action","classes","className","message","role"]);return a.createElement(c.A,(0,i.A)({role:f,square:!0,elevation:6,className:(0,s.default)(o.root,l),ref:t},p),a.createElement("div",{className:o.message},u),n?a.createElement("div",{className:o.action},n):null)}));const f=(0,l.A)((function(e){var t="light"===e.palette.type?.8:.98,n=(0,u.tL)(e.palette.background.default,t);return{root:(0,i.A)({},e.typography.body2,(0,o.A)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(d)},41728:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(67515),c=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.color,d=void 0===u?"inherit":u,f=e.component,p=void 0===f?"svg":f,h=e.fontSize,m=void 0===h?"medium":h,g=e.htmlColor,v=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,w=(0,o.A)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,(0,r.A)({className:(0,a.default)(s.root,c,"inherit"!==d&&s["color".concat((0,l.A)(d))],"default"!==m&&"medium"!==m&&s["fontSize".concat((0,l.A)(m))]),focusable:"false",viewBox:b,color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},w),n,v?i.createElement("title",null,v):null)}));c.muiName="SvgIcon";const u=(0,s.A)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c)},51547:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(41728)},67264:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(80045),o=n(64467),i=n(58168),a=n(96540),s=n(20053),l=n(32150),c=n(17688),u=n(67515),d=a.forwardRef((function(e,t){var n=e.classes,o=e.className,l=e.disabled,d=void 0!==l&&l,f=e.disableFocusRipple,p=void 0!==f&&f,h=e.fullWidth,m=e.icon,g=e.indicator,v=e.label,y=e.onChange,b=e.onClick,w=e.onFocus,E=e.selected,x=e.selectionFollowsFocus,O=e.textColor,S=void 0===O?"inherit":O,A=e.value,_=e.wrapped,C=void 0!==_&&_,T=(0,r.A)(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]);return a.createElement(c.A,(0,i.A)({focusRipple:!p,className:(0,s.default)(n.root,n["textColor".concat((0,u.A)(S))],o,d&&n.disabled,E&&n.selected,v&&m&&n.labelIcon,h&&n.fullWidth,C&&n.wrapped),ref:t,role:"tab","aria-selected":E,disabled:d,onClick:function(e){y&&y(e,A),b&&b(e)},onFocus:function(e){x&&!E&&y&&y(e,A),w&&w(e)},tabIndex:E?0:-1},T),a.createElement("span",{className:n.wrapper},m,v),g)}));const f=(0,l.A)((function(e){var t;return{root:(0,i.A)({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},(0,o.A)(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),(0,o.A)(t,"overflow","hidden"),(0,o.A)(t,"whiteSpace","normal"),(0,o.A)(t,"textAlign","center"),(0,o.A)(t,e.breakpoints.up("sm"),{minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(d)},47668:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(77604),l=n(71071),c=n(32150),u=n(17688),d=i.createElement(s.A,{fontSize:"small"}),f=i.createElement(l.A,{fontSize:"small"}),p=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.direction,c=e.orientation,p=e.disabled,h=(0,o.A)(e,["classes","className","direction","orientation","disabled"]);return i.createElement(u.A,(0,r.A)({component:"div",className:(0,a.default)(n.root,s,p&&n.disabled,"vertical"===c&&n.vertical),ref:t,role:null,tabIndex:null},h),"left"===l?d:f)}));const h=(0,c.A)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(p)},37098:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r,o=n(58168),i=n(80045),a=n(64467),s=n(96540),l=(n(44363),n(20053)),c=n(31198),u=n(76182);function d(){if(r)return r;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function f(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(d()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function p(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var h={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function m(e){var t=e.onChange,n=(0,i.A)(e,["onChange"]),r=s.useRef(),a=s.useRef(null),l=function(){r.current=a.current.offsetHeight-a.current.clientHeight};return s.useEffect((function(){var e=(0,c.A)((function(){var e=r.current;l(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),s.useEffect((function(){l(),t(r.current)}),[t]),s.createElement("div",(0,o.A)({style:h,ref:a},n))}var g=n(32150),v=n(67515),y=s.forwardRef((function(e,t){var n=e.classes,r=e.className,a=e.color,c=e.orientation,u=(0,i.A)(e,["classes","className","color","orientation"]);return s.createElement("span",(0,o.A)({className:(0,l.default)(n.root,n["color".concat((0,v.A)(a))],r,"vertical"===c&&n.vertical),ref:t},u))}));const b=(0,g.A)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(y);var w=n(47668),E=n(22319),x=n(26232),O=s.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],h=e.action,g=e.centered,v=void 0!==g&&g,y=e.children,O=e.classes,S=e.className,A=e.component,_=void 0===A?"div":A,C=e.indicatorColor,T=void 0===C?"secondary":C,k=e.onChange,P=e.orientation,I=void 0===P?"horizontal":P,R=e.ScrollButtonComponent,j=void 0===R?w.A:R,D=e.scrollButtons,N=void 0===D?"auto":D,M=e.selectionFollowsFocus,L=e.TabIndicatorProps,z=void 0===L?{}:L,W=e.TabScrollButtonProps,B=e.textColor,F=void 0===B?"inherit":B,H=e.value,V=e.variant,U=void 0===V?"standard":V,G=(0,i.A)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),q=(0,x.A)(),$="scrollable"===U,K="rtl"===q.direction,Z="vertical"===I,X=Z?"scrollTop":"scrollLeft",Y=Z?"top":"left",Q=Z?"bottom":"right",J=Z?"clientHeight":"clientWidth",ee=Z?"height":"width",te=s.useState(!1),ne=te[0],re=te[1],oe=s.useState({}),ie=oe[0],ae=oe[1],se=s.useState({start:!1,end:!1}),le=se[0],ce=se[1],ue=s.useState({overflow:"hidden",marginBottom:null}),de=ue[0],fe=ue[1],pe=new Map,he=s.useRef(null),me=s.useRef(null),ge=function(){var e,t,n=he.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:f(n,q.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==H){var o=me.current.children;if(o.length>0){var i=o[pe.get(H)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},ve=(0,E.A)((function(){var e,t=ge(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(Z)o=r.top-n.top+n.scrollTop;else{var i=K?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var s=(e={},(0,a.A)(e,Y,o),(0,a.A)(e,ee,r?r[ee]:0),e);if(isNaN(ie[Y])||isNaN(ie[ee]))ae(s);else{var l=Math.abs(ie[Y]-s[Y]),c=Math.abs(ie[ee]-s[ee]);(l>=1||c>=1)&&ae(s)}})),ye=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?p:i,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1;u===n?o(new Error("Element already at target position")):requestAnimationFrame((function r(i){if(d)o(new Error("Animation cancelled"));else{null===c&&(c=i);var s=Math.min(1,(i-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}}))}(X,he.current,e)},be=function(e){var t=he.current[X];Z?t+=e:(t+=e*(K?-1:1),t*=K&&"reverse"===d()?-1:1),ye(t)},we=function(){be(-he.current[J])},Ee=function(){be(he.current[J])},xe=s.useCallback((function(e){fe({overflow:null,marginBottom:-e})}),[]),Oe=(0,E.A)((function(){var e=ge(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[Y]<t[Y]){var r=t[X]+(n[Y]-t[Y]);ye(r)}else if(n[Q]>t[Q]){var o=t[X]+(n[Q]-t[Q]);ye(o)}})),Se=(0,E.A)((function(){if($&&"off"!==N){var e,t,n=he.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(Z)e=r>1,t=r<o-i-1;else{var l=f(he.current,q.direction);e=K?l<a-s-1:l>1,t=K?l>1:l<a-s-1}e===le.start&&t===le.end||ce({start:e,end:t})}}));s.useEffect((function(){var e=(0,c.A)((function(){ve(),Se()})),t=(0,u.A)(he.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[ve,Se]);var Ae=s.useCallback((0,c.A)((function(){Se()})));s.useEffect((function(){return function(){Ae.clear()}}),[Ae]),s.useEffect((function(){re(!0)}),[]),s.useEffect((function(){ve(),Se()})),s.useEffect((function(){Oe()}),[Oe,ie]),s.useImperativeHandle(h,(function(){return{updateIndicator:ve,updateScrollButtons:Se}}),[ve,Se]);var _e=s.createElement(b,(0,o.A)({className:O.indicator,orientation:I,color:T},z,{style:(0,o.A)({},ie,z.style)})),Ce=0,Te=s.Children.map(y,(function(e){if(!s.isValidElement(e))return null;var t=void 0===e.props.value?Ce:e.props.value;pe.set(t,Ce);var n=t===H;return Ce+=1,s.cloneElement(e,{fullWidth:"fullWidth"===U,indicator:n&&!ne&&_e,selected:n,selectionFollowsFocus:M,onChange:k,textColor:F,value:t})})),ke=function(){var e={};e.scrollbarSizeListener=$?s.createElement(m,{className:O.scrollable,onChange:xe}):null;var t=le.start||le.end,n=$&&("auto"===N&&t||"desktop"===N||"on"===N);return e.scrollButtonStart=n?s.createElement(j,(0,o.A)({orientation:I,direction:K?"right":"left",onClick:we,disabled:!le.start,className:(0,l.default)(O.scrollButtons,"on"!==N&&O.scrollButtonsDesktop)},W)):null,e.scrollButtonEnd=n?s.createElement(j,(0,o.A)({orientation:I,direction:K?"left":"right",onClick:Ee,disabled:!le.end,className:(0,l.default)(O.scrollButtons,"on"!==N&&O.scrollButtonsDesktop)},W)):null,e}();return s.createElement(_,(0,o.A)({className:(0,l.default)(O.root,S,Z&&O.vertical),ref:t},G),ke.scrollButtonStart,ke.scrollbarSizeListener,s.createElement("div",{className:(0,l.default)(O.scroller,$?O.scrollable:O.fixed),style:de,ref:he,onScroll:Ae},s.createElement("div",{"aria-label":n,"aria-labelledby":r,className:(0,l.default)(O.flexContainer,Z&&O.flexContainerVertical,v&&!$&&O.centered),onKeyDown:function(e){var t=e.target;if("tab"===t.getAttribute("role")){var n=null,r="vertical"!==I?"ArrowLeft":"ArrowUp",o="vertical"!==I?"ArrowRight":"ArrowDown";switch("vertical"!==I&&"rtl"===q.direction&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:n=t.previousElementSibling||me.current.lastChild;break;case o:n=t.nextElementSibling||me.current.firstChild;break;case"Home":n=me.current.firstChild;break;case"End":n=me.current.lastChild}null!==n&&(n.focus(),e.preventDefault())}},ref:me,role:"tablist"},Te),ne&&_e),ke.scrollButtonEnd)}));const S=(0,g.A)((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:(0,a.A)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(O)},72572:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(8728),l=n(87508),c=n(88016),u=n(38306),d=n(69312),f=n(95652),p=n(98448),h=n(32150),m={standard:s.A,filled:l.A,outlined:c.A},g=i.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,l=void 0!==s&&s,c=e.children,h=e.classes,g=e.className,v=e.color,y=void 0===v?"primary":v,b=e.defaultValue,w=e.disabled,E=void 0!==w&&w,x=e.error,O=void 0!==x&&x,S=e.FormHelperTextProps,A=e.fullWidth,_=void 0!==A&&A,C=e.helperText,T=e.hiddenLabel,k=e.id,P=e.InputLabelProps,I=e.inputProps,R=e.InputProps,j=e.inputRef,D=e.label,N=e.multiline,M=void 0!==N&&N,L=e.name,z=e.onBlur,W=e.onChange,B=e.onFocus,F=e.placeholder,H=e.required,V=void 0!==H&&H,U=e.rows,G=e.rowsMax,q=e.maxRows,$=e.minRows,K=e.select,Z=void 0!==K&&K,X=e.SelectProps,Y=e.type,Q=e.value,J=e.variant,ee=void 0===J?"standard":J,te=(0,o.A)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),ne={};if("outlined"===ee&&(P&&void 0!==P.shrink&&(ne.notched=P.shrink),D)){var re,oe=null!==(re=null==P?void 0:P.required)&&void 0!==re?re:V;ne.label=i.createElement(i.Fragment,null,D,oe&&" *")}Z&&(X&&X.native||(ne.id=void 0),ne["aria-describedby"]=void 0);var ie=C&&k?"".concat(k,"-helper-text"):void 0,ae=D&&k?"".concat(k,"-label"):void 0,se=m[ee],le=i.createElement(se,(0,r.A)({"aria-describedby":ie,autoComplete:n,autoFocus:l,defaultValue:b,fullWidth:_,multiline:M,name:L,rows:U,rowsMax:G,maxRows:q,minRows:$,type:Y,value:Q,id:k,inputRef:j,onBlur:z,onChange:W,onFocus:B,placeholder:F,inputProps:I},ne,R));return i.createElement(d.A,(0,r.A)({className:(0,a.default)(h.root,g),disabled:E,error:O,fullWidth:_,hiddenLabel:T,ref:t,required:V,color:y,variant:ee},te),D&&i.createElement(u.A,(0,r.A)({htmlFor:k,id:ae},P),D),Z?i.createElement(p.A,(0,r.A)({"aria-describedby":ie,id:k,labelId:ae,value:Q,input:le},X),c):le,C&&i.createElement(f.A,(0,r.A)({id:ie},S),C))}));const v=(0,h.A)({root:{}},{name:"MuiTextField"})(g)},75818:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(58168),o=n(80045),i=n(96540),a=n(31198),s=n(74801);function l(e,t){return parseInt(e[t],10)||0}var c="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,u={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const d=i.forwardRef((function(e,t){var n=e.onChange,d=e.rows,f=e.rowsMax,p=e.rowsMin,h=e.maxRows,m=e.minRows,g=void 0===m?1:m,v=e.style,y=e.value,b=(0,o.A)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),w=h||f,E=d||p||g,x=i.useRef(null!=y).current,O=i.useRef(null),S=(0,s.A)(t,O),A=i.useRef(null),_=i.useRef(0),C=i.useState({}),T=C[0],k=C[1],P=i.useCallback((function(){var t=O.current,n=window.getComputedStyle(t),r=A.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=l(n,"padding-bottom")+l(n,"padding-top"),a=l(n,"border-bottom-width")+l(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var c=r.scrollHeight-i,u=s;E&&(u=Math.max(Number(E)*c,u)),w&&(u=Math.min(Number(w)*c,u));var d=(u=Math.max(u,c))+("border-box"===o?i+a:0),f=Math.abs(u-s)<=1;k((function(e){return _.current<20&&(d>0&&Math.abs((e.outerHeightStyle||0)-d)>1||e.overflow!==f)?(_.current+=1,{overflow:f,outerHeightStyle:d}):e}))}),[w,E,e.placeholder]);return i.useEffect((function(){var e=(0,a.A)((function(){_.current=0,P()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[P]),c((function(){P()})),i.useEffect((function(){_.current=0}),[y]),i.createElement(i.Fragment,null,i.createElement("textarea",(0,r.A)({value:y,onChange:function(e){_.current=0,x||P(),n&&n(e)},ref:S,rows:E,style:(0,r.A)({height:T.outerHeightStyle,overflow:T.overflow?"hidden":null},v)},b)),i.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:A,tabIndex:-1,style:(0,r.A)({},u,v)}))}))},35376:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(64467),a=n(96540),s=n(20053),l=n(32150),c=a.forwardRef((function(e,t){var n=e.classes,i=e.className,l=e.component,c=void 0===l?"div":l,u=e.disableGutters,d=void 0!==u&&u,f=e.variant,p=void 0===f?"regular":f,h=(0,o.A)(e,["classes","className","component","disableGutters","variant"]);return a.createElement(c,(0,r.A)({className:(0,s.default)(n.root,n[p],i,!d&&n.gutters),ref:t},h))}));const u=(0,l.A)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,i.A)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(c)},96232:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>_});var r=n(58168),o=n(5544),i=n(80045),a=n(64467),s=n(96540),l=n(40961),c=n(20053),u=n(12851),d=n(19773),f=n(32150),p=n(67515),h=n(78896),m=n(16408),g=n(74801),v=n(14232),y=n(24960),b=n(20364),w=n(28060),E=n(26232);function x(e){return Math.round(1e5*e)/1e5}var O=!1,S=null,A=s.forwardRef((function(e,t){var n=e.arrow,a=void 0!==n&&n,d=e.children,f=e.classes,x=e.disableFocusListener,A=void 0!==x&&x,_=e.disableHoverListener,C=void 0!==_&&_,T=e.disableTouchListener,k=void 0!==T&&T,P=e.enterDelay,I=void 0===P?100:P,R=e.enterNextDelay,j=void 0===R?0:R,D=e.enterTouchDelay,N=void 0===D?700:D,M=e.id,L=e.interactive,z=void 0!==L&&L,W=e.leaveDelay,B=void 0===W?0:W,F=e.leaveTouchDelay,H=void 0===F?1500:F,V=e.onClose,U=e.onOpen,G=e.open,q=e.placement,$=void 0===q?"bottom":q,K=e.PopperComponent,Z=void 0===K?m.A:K,X=e.PopperProps,Y=e.title,Q=e.TransitionComponent,J=void 0===Q?h.A:Q,ee=e.TransitionProps,te=(0,i.A)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ne=(0,E.A)(),re=s.useState(),oe=re[0],ie=re[1],ae=s.useState(null),se=ae[0],le=ae[1],ce=s.useRef(!1),ue=s.useRef(),de=s.useRef(),fe=s.useRef(),pe=s.useRef(),he=(0,w.A)({controlled:G,default:!1,name:"Tooltip",state:"open"}),me=(0,o.A)(he,2),ge=me[0],ve=me[1],ye=ge,be=(0,v.A)(M);s.useEffect((function(){return function(){clearTimeout(ue.current),clearTimeout(de.current),clearTimeout(fe.current),clearTimeout(pe.current)}}),[]);var we=function(e){clearTimeout(S),O=!0,ve(!0),U&&U(e)},Ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=d.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),ce.current&&"touchstart"!==t.type||(oe&&oe.removeAttribute("title"),clearTimeout(de.current),clearTimeout(fe.current),I||O&&j?(t.persist(),de.current=setTimeout((function(){we(t)}),O?j:I)):we(t))}},xe=(0,b.A)(),Oe=xe.isFocusVisible,Se=xe.onBlurVisible,Ae=xe.ref,_e=s.useState(!1),Ce=_e[0],Te=_e[1],ke=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){oe||ie(t.currentTarget),Oe(t)&&(Te(!0),Ee()(t));var n=d.props;n.onFocus&&e&&n.onFocus(t)}},Pe=function(e){clearTimeout(S),S=setTimeout((function(){O=!1}),800+B),ve(!1),V&&V(e),clearTimeout(ue.current),ue.current=setTimeout((function(){ce.current=!1}),ne.transitions.duration.shortest)},Ie=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=d.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),Ce&&(Te(!1),Se())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===oe&&n.onMouseLeave(t),clearTimeout(de.current),clearTimeout(fe.current),t.persist(),fe.current=setTimeout((function(){Pe(t)}),B)}},Re=function(e){ce.current=!0;var t=d.props;t.onTouchStart&&t.onTouchStart(e)},je=(0,g.A)(ie,t),De=(0,g.A)(Ae,je),Ne=s.useCallback((function(e){(0,y.A)(De,l.findDOMNode(e))}),[De]),Me=(0,g.A)(d.ref,Ne);""===Y&&(ye=!1);var Le=!ye&&!C,ze=(0,r.A)({"aria-describedby":ye?be:null,title:Le&&"string"==typeof Y?Y:null},te,d.props,{className:(0,c.default)(te.className,d.props.className),onTouchStart:Re,ref:Me}),We={};k||(ze.onTouchStart=function(e){Re(e),clearTimeout(fe.current),clearTimeout(ue.current),clearTimeout(pe.current),e.persist(),pe.current=setTimeout((function(){Ee()(e)}),N)},ze.onTouchEnd=function(e){d.props.onTouchEnd&&d.props.onTouchEnd(e),clearTimeout(pe.current),clearTimeout(fe.current),e.persist(),fe.current=setTimeout((function(){Pe(e)}),H)}),C||(ze.onMouseOver=Ee(),ze.onMouseLeave=Ie(),z&&(We.onMouseOver=Ee(!1),We.onMouseLeave=Ie(!1))),A||(ze.onFocus=ke(),ze.onBlur=Ie(),z&&(We.onFocus=ke(!1),We.onBlur=Ie(!1)));var Be=s.useMemo((function(){return(0,u.A)({popperOptions:{modifiers:{arrow:{enabled:Boolean(se),element:se}}}},X)}),[se,X]);return s.createElement(s.Fragment,null,s.cloneElement(d,ze),s.createElement(Z,(0,r.A)({className:(0,c.default)(f.popper,z&&f.popperInteractive,a&&f.popperArrow),placement:$,anchorEl:oe,open:!!oe&&ye,id:ze["aria-describedby"],transition:!0},We,Be),(function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(J,(0,r.A)({timeout:ne.transitions.duration.shorter},n,ee),s.createElement("div",{className:(0,c.default)(f.tooltip,f["tooltipPlacement".concat((0,p.A)(t.split("-")[0]))],ce.current&&f.touch,a&&f.tooltipArrow)},Y,a?s.createElement("span",{className:f.arrow,ref:le}):null))})))}));const _=(0,f.A)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,d.X4)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(x(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,d.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(x(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,a.A)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,a.A)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,a.A)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,a.A)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(A)},54392:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(32150),l=n(67515),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},u=i.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,u=e.classes,d=e.className,f=e.color,p=void 0===f?"initial":f,h=e.component,m=e.display,g=void 0===m?"initial":m,v=e.gutterBottom,y=void 0!==v&&v,b=e.noWrap,w=void 0!==b&&b,E=e.paragraph,x=void 0!==E&&E,O=e.variant,S=void 0===O?"body1":O,A=e.variantMapping,_=void 0===A?c:A,C=(0,o.A)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),T=h||(x?"p":_[S]||c[S])||"span";return i.createElement(T,(0,r.A)({className:(0,a.default)(u.root,d,"inherit"!==S&&u[S],"initial"!==p&&u["color".concat((0,l.A)(p))],w&&u.noWrap,y&&u.gutterBottom,x&&u.paragraph,"inherit"!==s&&u["align".concat((0,l.A)(s))],"initial"!==g&&u["display".concat((0,l.A)(g))]),ref:t},C))}));const d=(0,s.A)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(u)},84190:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(96540),o=n(40961),i=n(61475),a=n(74801);const s=function(e){var t=e.children,n=e.disableAutoFocus,s=void 0!==n&&n,l=e.disableEnforceFocus,c=void 0!==l&&l,u=e.disableRestoreFocus,d=void 0!==u&&u,f=e.getDoc,p=e.isEnabled,h=e.open,m=r.useRef(),g=r.useRef(null),v=r.useRef(null),y=r.useRef(),b=r.useRef(null),w=r.useCallback((function(e){b.current=o.findDOMNode(e)}),[]),E=(0,a.A)(t.ref,w),x=r.useRef();return r.useEffect((function(){x.current=h}),[h]),!x.current&&h&&"undefined"!=typeof window&&(y.current=f().activeElement),r.useEffect((function(){if(h){var e=(0,i.A)(b.current);s||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!c&&p()&&!m.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():m.current=!1)},n=function(t){!c&&p()&&9===t.keyCode&&e.activeElement===b.current&&(m.current=!0,t.shiftKey?v.current.focus():g.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),d||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[s,c,d,p,h]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:E}),r.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))}},1670:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},72771:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={black:"#000",white:"#fff"}},64843:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},9169:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"}},81664:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"}},38544:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},52278:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"}},59275:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},37639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Accordion:()=>Q.A,AccordionActions:()=>re,AccordionDetails:()=>oe.A,AccordionSummary:()=>ie.A,AppBar:()=>ae.A,Avatar:()=>se.A,Backdrop:()=>le.A,Badge:()=>ce.A,BottomNavigation:()=>de,BottomNavigationAction:()=>he,Box:()=>Te,Breadcrumbs:()=>Ne,Button:()=>Me.A,ButtonBase:()=>fe.A,ButtonGroup:()=>We,Card:()=>Be.A,CardActionArea:()=>He,CardActions:()=>Ue,CardContent:()=>Ge.A,CardHeader:()=>$e,CardMedia:()=>Xe,Checkbox:()=>ut,Chip:()=>dt.A,CircularProgress:()=>ft.A,ClickAwayListener:()=>pt.A,Collapse:()=>ht.A,Container:()=>gt,CssBaseline:()=>bt,Dialog:()=>wt.A,DialogActions:()=>Et.A,DialogContent:()=>xt.A,DialogContentText:()=>Ot.A,DialogTitle:()=>St.A,Divider:()=>_t,Drawer:()=>Ct.Ay,ExpansionPanel:()=>Rt,ExpansionPanelActions:()=>Dt,ExpansionPanelDetails:()=>Mt,ExpansionPanelSummary:()=>zt,Fab:()=>Wt.A,Fade:()=>Bt.A,FilledInput:()=>Ft.A,FormControl:()=>Ht.A,FormControlLabel:()=>Vt.A,FormGroup:()=>Gt,FormHelperText:()=>qt.A,FormLabel:()=>$t.A,Grid:()=>Kt.A,GridList:()=>Xt,GridListTile:()=>tn,GridListTileBar:()=>rn,Grow:()=>on.A,Hidden:()=>fn,Icon:()=>hn,IconButton:()=>et.A,ImageList:()=>gn,ImageListItem:()=>bn,ImageListItemBar:()=>En,Input:()=>xn.A,InputAdornment:()=>On.A,InputBase:()=>Sn.A,InputLabel:()=>An.A,LinearProgress:()=>Cn,Link:()=>Tn.A,List:()=>kn.A,ListItem:()=>Pn.A,ListItemAvatar:()=>jn,ListItemIcon:()=>Dn.A,ListItemSecondaryAction:()=>Mn,ListItemText:()=>Ln.A,ListSubheader:()=>zn.A,Menu:()=>Wn.A,MenuItem:()=>Bn.A,MenuList:()=>Fn.A,MobileStepper:()=>Vn,Modal:()=>Un.A,ModalManager:()=>Gn.A,MuiThemeProvider:()=>X.A,NativeSelect:()=>qn.A,NoSsr:()=>Kn,OutlinedInput:()=>Zn.A,Paper:()=>kt.A,Popover:()=>Xn.Ay,Popper:()=>Yn.A,Portal:()=>Qn.A,Radio:()=>lr,RadioGroup:()=>dr,RootRef:()=>br,Select:()=>wr.A,ServerStyleSheets:()=>K.A,Slide:()=>Er.A,Slider:()=>xr.A,Snackbar:()=>Or.A,SnackbarContent:()=>Sr.A,Step:()=>_r,StepButton:()=>Mr,StepConnector:()=>zr,StepContent:()=>Br,StepIcon:()=>Rr,StepLabel:()=>Dr,Stepper:()=>Vr,StylesProvider:()=>Z.Ay,SvgIcon:()=>kr.A,SwipeableDrawer:()=>io,Switch:()=>so,Tab:()=>lo.A,TabScrollButton:()=>Zo.A,Table:()=>po,TableBody:()=>yo,TableCell:()=>wo,TableContainer:()=>xo,TableFooter:()=>_o,TableHead:()=>Po,TablePagination:()=>Ho,TableRow:()=>Uo,TableSortLabel:()=>$o,Tabs:()=>Ko.A,TextField:()=>Xo.A,TextareaAutosize:()=>Yo.A,ThemeProvider:()=>X.A,Toolbar:()=>Io.A,Tooltip:()=>Qo.Ay,Typography:()=>Pe.A,Unstable_TrapFocus:()=>Jo.A,Zoom:()=>ci,alpha:()=>S.X4,capitalize:()=>Y.capitalize,colors:()=>r,createChainedFunction:()=>Y.createChainedFunction,createGenerateClassName:()=>q.A,createMuiTheme:()=>A.D,createStyles:()=>k,createSvgIcon:()=>Y.createSvgIcon,createTheme:()=>A.A,darken:()=>S.e$,debounce:()=>Y.debounce,decomposeColor:()=>S.rP,deprecatedPropType:()=>Y.deprecatedPropType,duration:()=>H.p0,easing:()=>H.cz,emphasize:()=>S.tL,fade:()=>S.Rv,getContrastRatio:()=>S.eM,getLuminance:()=>S.J1,hexToRgb:()=>S.E2,hslToRgb:()=>S.YL,isMuiElement:()=>Y.isMuiElement,isWidthDown:()=>ln.Jf,isWidthUp:()=>ln.o4,jssPreset:()=>$.A,lighten:()=>S.a,makeStyles:()=>j,ownerDocument:()=>Y.ownerDocument,ownerWindow:()=>Y.ownerWindow,recomposeColor:()=>S.X0,requirePropFactory:()=>Y.requirePropFactory,responsiveFontSizes:()=>W,rgbToHex:()=>S.Ob,setRef:()=>Y.setRef,styleFunction:()=>Ce,styled:()=>F,unstable_createMuiStrictModeTheme:()=>C,unstable_useId:()=>Y.unstable_useId,unsupportedProp:()=>Y.unsupportedProp,useControlled:()=>Y.useControlled,useEventCallback:()=>Y.useEventCallback,useForkRef:()=>Y.useForkRef,useFormControl:()=>Je.A,useIsFocusVisible:()=>Y.useIsFocusVisible,useMediaQuery:()=>ei.A,useRadioGroup:()=>or,useScrollTrigger:()=>ri,useTheme:()=>V.A,withMobileDialog:()=>oi,withStyles:()=>U.A,withTheme:()=>G,withWidth:()=>ln.Ay});var r={};n.r(r),n.d(r,{amber:()=>y,blue:()=>u.A,blueGrey:()=>O,brown:()=>E,common:()=>o.A,cyan:()=>f,deepOrange:()=>w,deepPurple:()=>l,green:()=>h.A,grey:()=>x.A,indigo:()=>c.A,lightBlue:()=>d,lightGreen:()=>m,lime:()=>g,orange:()=>b.A,pink:()=>a.A,purple:()=>s,red:()=>i.A,teal:()=>p,yellow:()=>v});var o=n(72771),i=n(59275),a=n(52278);const s={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},l={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"};var c=n(81664),u=n(1670);const d={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},f={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},p={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};var h=n(64843);const m={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},g={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},v={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},y={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"};var b=n(38544);const w={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},E={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"};var x=n(9169);const O={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"};var S=n(19773),A=n(88093),_=n(12851);function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A.A.apply(void 0,[(0,_.A)({unstable_strictMode:!0},e)].concat(n))}var T=n(70235);function k(e){return(0,T.A)(e)}var P=n(58168),I=n(59815),R=n(87114);const j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,I.A)(e,(0,P.A)({defaultTheme:R.A},t))};var D=n(77860),N=n(64467);function M(e){return String(parseFloat(e)).length===String(e).length}function L(e){return parseFloat(e)}function z(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)}function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.breakpoints,r=void 0===n?["sm","md","lg"]:n,o=t.disableAlign,i=void 0!==o&&o,a=t.factor,s=void 0===a?2:a,l=t.variants,c=void 0===l?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:l,u=(0,P.A)({},e);u.typography=(0,P.A)({},u.typography);var d,f=u.typography,p=(d=f.htmlFontSize,function(e,t){var n=String(e).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(n===t)return e;var r=L(e);if("px"!==n)if("em"===n)r=L(e)*L(d);else if("rem"===n)return r=L(e)*L(d),e;var o=r;if("px"!==t)if("em"===t)o=r/L(d);else{if("rem"!==t)return e;o=r/L(d)}return parseFloat(o.toFixed(5))+t}),h=r.map((function(e){return u.breakpoints.values[e]}));return c.forEach((function(e){var t=f[e],n=parseFloat(p(t.fontSize,"rem"));if(!(n<=1)){var r=n,o=1+(r-1)/s,a=t.lineHeight;if(!M(a)&&!i)throw new Error((0,D.A)(6));M(a)||(a=parseFloat(p(a,"rem"))/parseFloat(n));var l=null;i||(l=function(e){return function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o}({size:e,grid:z({pixels:4,lineHeight:a,htmlFontSize:f.htmlFontSize})})}),f[e]=(0,P.A)({},t,function(e){var t=e.cssProperty,n=e.min,r=e.max,o=e.unit,i=void 0===o?"rem":o,a=e.breakpoints,s=void 0===a?[600,960,1280]:a,l=e.transform,c=void 0===l?null:l,u=(0,N.A)({},t,"".concat(n).concat(i)),d=(r-n)/s[s.length-1];return s.forEach((function(e){var r=n+d*e;null!==c&&(r=c(r)),u["@media (min-width:".concat(e,"px)")]=(0,N.A)({},t,"".concat(Math.round(1e4*r)/1e4).concat(i))})),u}({cssProperty:"fontSize",min:o,max:r,unit:"rem",breakpoints:h,transform:l}))}})),u}var B=n(6633);const F=function(e){var t=(0,B.A)(e);return function(e,n){return t(e,(0,P.A)({defaultTheme:R.A},n))}};var H=n(63870),V=n(26232),U=n(32150);const G=(0,n(75349).u)({defaultTheme:R.A});var q=n(21233),$=n(79350),K=n(11065),Z=n(49117),X=n(65429),Y=n(1305),Q=n(53976),J=n(80045),ee=n(96540),te=n(20053),ne=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disableSpacing,i=void 0!==o&&o,a=(0,J.A)(e,["classes","className","disableSpacing"]);return ee.createElement("div",(0,P.A)({className:(0,te.default)(n.root,r,!i&&n.spacing),ref:t},a))}));const re=(0,U.A)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiAccordionActions"})(ne);var oe=n(56494),ie=n(86074),ae=n(61434),se=n(91004),le=n(53058),ce=n(36936),ue=(n(44363),ee.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,s=e.onChange,l=e.showLabels,c=void 0!==l&&l,u=e.value,d=(0,J.A)(e,["children","classes","className","component","onChange","showLabels","value"]);return ee.createElement(a,(0,P.A)({className:(0,te.default)(r.root,o),ref:t},d),ee.Children.map(n,(function(e,t){if(!ee.isValidElement(e))return null;var n=void 0===e.props.value?t:e.props.value;return ee.cloneElement(e,{selected:n===u,showLabel:void 0!==e.props.showLabel?e.props.showLabel:c,value:n,onChange:s})})))})));const de=(0,U.A)((function(e){return{root:{display:"flex",justifyContent:"center",height:56,backgroundColor:e.palette.background.paper}}}),{name:"MuiBottomNavigation"})(ue);var fe=n(17688),pe=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.icon,i=e.label,a=e.onChange,s=e.onClick,l=e.selected,c=e.showLabel,u=e.value,d=(0,J.A)(e,["classes","className","icon","label","onChange","onClick","selected","showLabel","value"]);return ee.createElement(fe.A,(0,P.A)({ref:t,className:(0,te.default)(n.root,r,l?n.selected:!c&&n.iconOnly),focusRipple:!0,onClick:function(e){a&&a(e,u),s&&s(e)}},d),ee.createElement("span",{className:n.wrapper},o,ee.createElement("span",{className:(0,te.default)(n.label,l?n.selected:!c&&n.iconOnly)},i)))}));const he=(0,U.A)((function(e){return{root:{transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:e.palette.text.secondary,flex:"1","&$iconOnly":{paddingTop:16},"&$selected":{paddingTop:6,color:e.palette.primary.main}},selected:{},iconOnly:{},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},label:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s","&$iconOnly":{opacity:0,transitionDelay:"0s"},"&$selected":{fontSize:e.typography.pxToRem(14)}}}}),{name:"MuiBottomNavigationAction"})(pe);var me=n(91663),ge=n(39817),ve=n(99718),ye=n(62995),be=n(30193),we=n(47385),Ee=n(47369),xe=n(45418),Oe=n(40700),Se=n(49999),Ae=n(86535),_e=n(8068),Ce=(0,me.h)((0,ge.A)(ve.Ay,ye.Ay,be.Ay,we.Ay,Ee.Ay,xe.Ay,Oe.A,Se.Ay,Ae.A,_e.Ay));const Te=F("div")(Ce,{name:"MuiBox"});var ke=n(60436),Pe=n(54392),Ie=n(95126);const Re=(0,Ie.A)(ee.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),je=(0,U.A)((function(e){return{root:{display:"flex",marginLeft:e.spacing(.5),marginRight:e.spacing(.5),backgroundColor:e.palette.grey[100],color:e.palette.grey[700],borderRadius:2,cursor:"pointer","&:hover, &:focus":{backgroundColor:e.palette.grey[200]},"&:active":{boxShadow:e.shadows[0],backgroundColor:(0,S.tL)(e.palette.grey[200],.12)}},icon:{width:24,height:16}}}),{name:"PrivateBreadcrumbCollapsed"})((function(e){var t=e.classes,n=(0,J.A)(e,["classes"]);return ee.createElement(fe.A,(0,P.A)({component:"li",className:t.root,focusRipple:!0},n),ee.createElement(Re,{className:t.icon}))}));var De=ee.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"nav":i,s=e.expandText,l=void 0===s?"Show path":s,c=e.itemsAfterCollapse,u=void 0===c?1:c,d=e.itemsBeforeCollapse,f=void 0===d?1:d,p=e.maxItems,h=void 0===p?8:p,m=e.separator,g=void 0===m?"/":m,v=(0,J.A)(e,["children","classes","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),y=ee.useState(!1),b=y[0],w=y[1],E=ee.Children.toArray(n).filter((function(e){return ee.isValidElement(e)})).map((function(e,t){return ee.createElement("li",{className:r.li,key:"child-".concat(t)},e)}));return ee.createElement(Pe.A,(0,P.A)({ref:t,component:a,color:"textSecondary",className:(0,te.default)(r.root,o)},v),ee.createElement("ol",{className:r.ol},function(e,t,n){return e.reduce((function(r,o,i){return i<e.length-1?r=r.concat(o,ee.createElement("li",{"aria-hidden":!0,key:"separator-".concat(i),className:t},n)):r.push(o),r}),[])}(b||h&&E.length<=h?E:function(e){return f+u>=e.length?e:[].concat((0,ke.A)(e.slice(0,f)),[ee.createElement(je,{"aria-label":l,key:"ellipsis",onClick:function(e){w(!0);var t=e.currentTarget.parentNode.querySelector("a[href],button,[tabindex]");t&&t.focus()}})],(0,ke.A)(e.slice(e.length-u,e.length)))}(E),r.separator,g)))}));const Ne=(0,U.A)({root:{},ol:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"},li:{},separator:{display:"flex",userSelect:"none",marginLeft:8,marginRight:8}},{name:"MuiBreadcrumbs"})(De);var Me=n(96746),Le=n(67515);Me.A.styles;var ze=ee.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"div":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,p=e.disableFocusRipple,h=void 0!==p&&p,m=e.disableRipple,g=void 0!==m&&m,v=e.fullWidth,y=void 0!==v&&v,b=e.orientation,w=void 0===b?"horizontal":b,E=e.size,x=void 0===E?"medium":E,O=e.variant,S=void 0===O?"outlined":O,A=(0,J.A)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),_=(0,te.default)(r.grouped,r["grouped".concat((0,Le.A)(w))],r["grouped".concat((0,Le.A)(S))],r["grouped".concat((0,Le.A)(S)).concat((0,Le.A)(w))],r["grouped".concat((0,Le.A)(S)).concat("default"!==a?(0,Le.A)(a):"")],u&&r.disabled);return ee.createElement(l,(0,P.A)({role:"group",className:(0,te.default)(r.root,o,y&&r.fullWidth,f&&r.disableElevation,"contained"===S&&r.contained,"vertical"===w&&r.vertical),ref:t},A),ee.Children.map(n,(function(e){return ee.isValidElement(e)?ee.cloneElement(e,{className:(0,te.default)(_,e.props.className),color:e.props.color||a,disabled:e.props.disabled||u,disableElevation:e.props.disableElevation||f,disableFocusRipple:h,disableRipple:g,fullWidth:y,size:e.props.size||x,variant:e.props.variant||S}):null})))}));const We=(0,U.A)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:(0,S.X4)(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:(0,S.X4)(e.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:e.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:e.palette.secondary.dark}}}}),{name:"MuiButtonGroup"})(ze);var Be=n(20426),Fe=ee.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.focusVisibleClassName,a=(0,J.A)(e,["children","classes","className","focusVisibleClassName"]);return ee.createElement(fe.A,(0,P.A)({className:(0,te.default)(r.root,o),focusVisibleClassName:(0,te.default)(i,r.focusVisible),ref:t},a),n,ee.createElement("span",{className:r.focusHighlight}))}));const He=(0,U.A)((function(e){return{root:{display:"block",textAlign:"inherit",width:"100%","&:hover $focusHighlight":{opacity:e.palette.action.hoverOpacity},"&$focusVisible $focusHighlight":{opacity:.12}},focusVisible:{},focusHighlight:{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}}}),{name:"MuiCardActionArea"})(Fe);var Ve=ee.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,o=e.classes,i=e.className,a=(0,J.A)(e,["disableSpacing","classes","className"]);return ee.createElement("div",(0,P.A)({className:(0,te.default)(o.root,i,!r&&o.spacing),ref:t},a))}));const Ue=(0,U.A)({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiCardActions"})(Ve);var Ge=n(6272),qe=ee.forwardRef((function(e,t){var n=e.action,r=e.avatar,o=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.disableTypography,c=void 0!==l&&l,u=e.subheader,d=e.subheaderTypographyProps,f=e.title,p=e.titleTypographyProps,h=(0,J.A)(e,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),m=f;null==m||m.type===Pe.A||c||(m=ee.createElement(Pe.A,(0,P.A)({variant:r?"body2":"h5",className:o.title,component:"span",display:"block"},p),m));var g=u;return null==g||g.type===Pe.A||c||(g=ee.createElement(Pe.A,(0,P.A)({variant:r?"body2":"body1",className:o.subheader,color:"textSecondary",component:"span",display:"block"},d),g)),ee.createElement(s,(0,P.A)({className:(0,te.default)(o.root,i),ref:t},h),r&&ee.createElement("div",{className:o.avatar},r),ee.createElement("div",{className:o.content},m,g),n&&ee.createElement("div",{className:o.action},n))}));const $e=(0,U.A)({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(qe);var Ke=["video","audio","picture","iframe","img"],Ze=ee.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,s=e.image,l=e.src,c=e.style,u=(0,J.A)(e,["children","classes","className","component","image","src","style"]),d=-1!==Ke.indexOf(a),f=!d&&s?(0,P.A)({backgroundImage:'url("'.concat(s,'")')},c):c;return ee.createElement(a,(0,P.A)({className:(0,te.default)(r.root,o,d&&r.media,-1!=="picture img".indexOf(a)&&r.img),ref:t,style:f,src:d?s||l:void 0},u),n)}));const Xe=(0,U.A)({root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},{name:"MuiCardMedia"})(Ze);var Ye=n(5544),Qe=n(28060),Je=n(49029),et=n(42460),tt=ee.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,o=e.checkedIcon,i=e.classes,a=e.className,s=e.defaultChecked,l=e.disabled,c=e.icon,u=e.id,d=e.inputProps,f=e.inputRef,p=e.name,h=e.onBlur,m=e.onChange,g=e.onFocus,v=e.readOnly,y=e.required,b=e.tabIndex,w=e.type,E=e.value,x=(0,J.A)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),O=(0,Qe.A)({controlled:r,default:Boolean(s),name:"SwitchBase",state:"checked"}),S=(0,Ye.A)(O,2),A=S[0],_=S[1],C=(0,Je.A)(),T=l;C&&void 0===T&&(T=C.disabled);var k="checkbox"===w||"radio"===w;return ee.createElement(et.A,(0,P.A)({component:"span",className:(0,te.default)(i.root,a,A&&i.checked,T&&i.disabled),disabled:T,tabIndex:null,role:void 0,onFocus:function(e){g&&g(e),C&&C.onFocus&&C.onFocus(e)},onBlur:function(e){h&&h(e),C&&C.onBlur&&C.onBlur(e)},ref:t},x),ee.createElement("input",(0,P.A)({autoFocus:n,checked:r,defaultChecked:s,className:i.input,disabled:T,id:k&&u,name:p,onChange:function(e){var t=e.target.checked;_(t),m&&m(e,t)},readOnly:v,ref:f,required:y,tabIndex:b,type:w,value:E},d)),A?o:c)}));const nt=(0,U.A)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(tt),rt=(0,Ie.A)(ee.createElement("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"),ot=(0,Ie.A)(ee.createElement("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"),it=(0,Ie.A)(ee.createElement("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");var at=ee.createElement(ot,null),st=ee.createElement(rt,null),lt=ee.createElement(it,null),ct=ee.forwardRef((function(e,t){var n=e.checkedIcon,r=void 0===n?at:n,o=e.classes,i=e.color,a=void 0===i?"secondary":i,s=e.icon,l=void 0===s?st:s,c=e.indeterminate,u=void 0!==c&&c,d=e.indeterminateIcon,f=void 0===d?lt:d,p=e.inputProps,h=e.size,m=void 0===h?"medium":h,g=(0,J.A)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),v=u?f:l,y=u?f:r;return ee.createElement(nt,(0,P.A)({type:"checkbox",classes:{root:(0,te.default)(o.root,o["color".concat((0,Le.A)(a))],u&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:a,inputProps:(0,P.A)({"data-indeterminate":u},p),icon:ee.cloneElement(v,{fontSize:void 0===v.props.fontSize&&"small"===m?m:v.props.fontSize}),checkedIcon:ee.cloneElement(y,{fontSize:void 0===y.props.fontSize&&"small"===m?m:y.props.fontSize}),ref:t},g))}));const ut=(0,U.A)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,S.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,S.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(ct);var dt=n(33615),ft=n(83182),pt=n(43292),ht=n(69440),mt=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.disableGutters,s=void 0!==a&&a,l=e.fixed,c=void 0!==l&&l,u=e.maxWidth,d=void 0===u?"lg":u,f=(0,J.A)(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return ee.createElement(i,(0,P.A)({className:(0,te.default)(n.root,r,c&&n.fixed,s&&n.disableGutters,!1!==d&&n["maxWidth".concat((0,Le.A)(String(d)))]),ref:t},f))}));const gt=(0,U.A)((function(e){return{root:(0,N.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:(0,N.A)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:(0,N.A)({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:(0,N.A)({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:(0,N.A)({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:(0,N.A)({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(mt);var vt={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},yt=function(e){return(0,P.A)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};const bt=(0,U.A)((function(e){return{"@global":{html:vt,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,P.A)({margin:0},yt(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var t=e.children,n=void 0===t?null:t;return e.classes,ee.createElement(ee.Fragment,null,n)}));var wt=n(39870),Et=n(65816),xt=n(68016),Ot=n(30240),St=n(5696),At=ee.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,p=void 0===f?"horizontal":f,h=e.role,m=void 0===h?"hr"!==s?"separator":void 0:h,g=e.variant,v=void 0===g?"fullWidth":g,y=(0,J.A)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return ee.createElement(s,(0,P.A)({className:(0,te.default)(o.root,i,"fullWidth"!==v&&o[v],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===p&&o.vertical),role:m,ref:t},y))}));const _t=(0,U.A)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,S.X4)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(At);var Ct=n(30048),Tt=n(87695),kt=n(3148);const Pt=ee.createContext({});var It=ee.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.defaultExpanded,a=void 0!==i&&i,s=e.disabled,l=void 0!==s&&s,c=e.expanded,u=e.onChange,d=e.square,f=void 0!==d&&d,p=e.TransitionComponent,h=void 0===p?ht.A:p,m=e.TransitionProps,g=(0,J.A)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),v=(0,Qe.A)({controlled:c,default:a,name:"ExpansionPanel",state:"expanded"}),y=(0,Ye.A)(v,2),b=y[0],w=y[1],E=ee.useCallback((function(e){w(!b),u&&u(e,!b)}),[b,u,w]),x=ee.Children.toArray(n),O=(0,Tt.A)(x),S=O[0],A=O.slice(1),_=ee.useMemo((function(){return{expanded:b,disabled:l,toggle:E}}),[b,l,E]);return ee.createElement(kt.A,(0,P.A)({className:(0,te.default)(r.root,o,b&&r.expanded,l&&r.disabled,!f&&r.rounded),ref:t,square:f},g),ee.createElement(Pt.Provider,{value:_},S),ee.createElement(h,(0,P.A)({in:b,timeout:"auto"},m),ee.createElement("div",{"aria-labelledby":S.props.id,id:S.props["aria-controls"],role:"region"},A)))}));const Rt=(0,U.A)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiExpansionPanel"})(It);var jt=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disableSpacing,i=void 0!==o&&o,a=(0,J.A)(e,["classes","className","disableSpacing"]);return ee.createElement("div",(0,P.A)({className:(0,te.default)(n.root,r,!i&&n.spacing),ref:t},a))}));const Dt=(0,U.A)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiExpansionPanelActions"})(jt);var Nt=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,J.A)(e,["classes","className"]);return ee.createElement("div",(0,P.A)({className:(0,te.default)(n.root,r),ref:t},o))}));const Mt=(0,U.A)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiExpansionPanelDetails"})(Nt);var Lt=ee.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.expandIcon,a=e.IconButtonProps,s=e.onBlur,l=e.onClick,c=e.onFocusVisible,u=(0,J.A)(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),d=ee.useState(!1),f=d[0],p=d[1],h=ee.useContext(Pt),m=h.disabled,g=void 0!==m&&m,v=h.expanded,y=h.toggle;return ee.createElement(fe.A,(0,P.A)({focusRipple:!1,disableRipple:!0,disabled:g,component:"div","aria-expanded":v,className:(0,te.default)(r.root,o,g&&r.disabled,v&&r.expanded,f&&r.focused),onFocusVisible:function(e){p(!0),c&&c(e)},onBlur:function(e){p(!1),s&&s(e)},onClick:function(e){y&&y(e),l&&l(e)},ref:t},u),ee.createElement("div",{className:(0,te.default)(r.content,v&&r.expanded)},n),i&&ee.createElement(et.A,(0,P.A)({className:(0,te.default)(r.expandIcon,v&&r.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},a),i))}));const zt=(0,U.A)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiExpansionPanelSummary"})(Lt);var Wt=n(24488),Bt=n(95834),Ft=n(87508),Ht=n(69312),Vt=n(15776),Ut=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.row,i=void 0!==o&&o,a=(0,J.A)(e,["classes","className","row"]);return ee.createElement("div",(0,P.A)({className:(0,te.default)(n.root,r,i&&n.row),ref:t},a))}));const Gt=(0,U.A)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(Ut);var qt=n(95652),$t=n(96340),Kt=n(27606),Zt=ee.forwardRef((function(e,t){var n=e.cellHeight,r=void 0===n?180:n,o=e.children,i=e.classes,a=e.className,s=e.cols,l=void 0===s?2:s,c=e.component,u=void 0===c?"ul":c,d=e.spacing,f=void 0===d?4:d,p=e.style,h=(0,J.A)(e,["cellHeight","children","classes","className","cols","component","spacing","style"]);return ee.createElement(u,(0,P.A)({className:(0,te.default)(i.root,a),ref:t,style:(0,P.A)({margin:-f/2},p)},h),ee.Children.map(o,(function(e){if(!ee.isValidElement(e))return null;var t=e.props.cols||1,n=e.props.rows||1;return ee.cloneElement(e,{style:(0,P.A)({width:"".concat(100/l*t,"%"),height:"auto"===r?"auto":r*n+f,padding:f/2},e.props.style)})})))}));const Xt=(0,U.A)({root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}},{name:"MuiGridList"})(Zt);var Yt=n(31198),Qt=n(77570),Jt=function(e,t){var n,r,o,i;e&&e.complete&&(e.width/e.height>e.parentElement.offsetWidth/e.parentElement.offsetHeight?((n=e.classList).remove.apply(n,(0,ke.A)(t.imgFullWidth.split(" "))),(r=e.classList).add.apply(r,(0,ke.A)(t.imgFullHeight.split(" ")))):((o=e.classList).remove.apply(o,(0,ke.A)(t.imgFullHeight.split(" "))),(i=e.classList).add.apply(i,(0,ke.A)(t.imgFullWidth.split(" ")))))},en=ee.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=(e.cols,e.component),a=void 0===i?"li":i,s=(e.rows,(0,J.A)(e,["children","classes","className","cols","component","rows"])),l=ee.useRef(null);return ee.useEffect((function(){!function(e,t){e&&(e.complete?Jt(e,t):e.addEventListener("load",(function(){Jt(e,t)})))}(l.current,r)})),ee.useEffect((function(){var e=(0,Yt.A)((function(){Jt(l.current,r)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[r]),ee.createElement(a,(0,P.A)({className:(0,te.default)(r.root,o),ref:t},s),ee.createElement("div",{className:r.tile},ee.Children.map(n,(function(e){return ee.isValidElement(e)?"img"===e.type||(0,Qt.A)(e,["Image"])?ee.cloneElement(e,{ref:l}):e:null}))))}));const tn=(0,U.A)({root:{boxSizing:"border-box",flexShrink:0},tile:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",top:"50%"}},{name:"MuiGridListTile"})(en);var nn=ee.forwardRef((function(e,t){var n=e.actionIcon,r=e.actionPosition,o=void 0===r?"right":r,i=e.classes,a=e.className,s=e.subtitle,l=e.title,c=e.titlePosition,u=void 0===c?"bottom":c,d=(0,J.A)(e,["actionIcon","actionPosition","classes","className","subtitle","title","titlePosition"]),f=n&&o;return ee.createElement("div",(0,P.A)({className:(0,te.default)(i.root,a,"top"===u?i.titlePositionTop:i.titlePositionBottom,s&&i.rootSubtitle),ref:t},d),ee.createElement("div",{className:(0,te.default)(i.titleWrap,{left:i.titleWrapActionPosLeft,right:i.titleWrapActionPosRight}[f])},ee.createElement("div",{className:i.title},l),s?ee.createElement("div",{className:i.subtitle},s):null),n?ee.createElement("div",{className:(0,te.default)(i.actionIcon,"left"===f&&i.actionIconActionPosLeft)},n):null)}));const rn=(0,U.A)((function(e){return{root:{position:"absolute",left:0,right:0,height:48,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily},titlePositionBottom:{bottom:0},titlePositionTop:{top:0},rootSubtitle:{height:68},titleWrap:{flexGrow:1,marginLeft:16,marginRight:16,color:e.palette.common.white,overflow:"hidden"},titleWrapActionPosLeft:{marginLeft:0},titleWrapActionPosRight:{marginRight:0},title:{fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{},actionIconActionPosLeft:{order:-1}}}),{name:"MuiGridListTileBar"})(nn);var on=n(78896),an=n(5556),sn=n.n(an),ln=n(44768);function cn(e){var t=e.children,n=e.only,r=e.width,o=(0,V.A)(),i=!0;if(n)if(Array.isArray(n)){for(var a=0;a<n.length;a+=1)if(r===n[a]){i=!1;break}}else n&&r===n&&(i=!1);if(i)for(var s=0;s<o.breakpoints.keys.length;s+=1){var l=o.breakpoints.keys[s],c=e["".concat(l,"Up")],u=e["".concat(l,"Down")];if(c&&(0,ln.o4)(l,r)||u&&(0,ln.Jf)(l,r)){i=!1;break}}return i?t:null}cn.propTypes={children:sn().node,className:sn().string,implementation:sn().oneOf(["js","css"]),initialWidth:sn().oneOf(["xs","sm","md","lg","xl"]),lgDown:sn().bool,lgUp:sn().bool,mdDown:sn().bool,mdUp:sn().bool,only:sn().oneOfType([sn().oneOf(["xs","sm","md","lg","xl"]),sn().arrayOf(sn().oneOf(["xs","sm","md","lg","xl"]))]),smDown:sn().bool,smUp:sn().bool,width:sn().string.isRequired,xlDown:sn().bool,xlUp:sn().bool,xsDown:sn().bool,xsUp:sn().bool};const un=(0,ln.Ay)()(cn),dn=(0,U.A)((function(e){var t={display:"none"};return e.breakpoints.keys.reduce((function(n,r){return n["only".concat((0,Le.A)(r))]=(0,N.A)({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=(0,N.A)({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=(0,N.A)({},e.breakpoints.down(r),t),n}),{})}),{name:"PrivateHiddenCss"})((function(e){var t=e.children,n=e.classes,r=e.className,o=e.only,i=((0,J.A)(e,["children","classes","className","only"]),(0,V.A)()),a=[];r&&a.push(r);for(var s=0;s<i.breakpoints.keys.length;s+=1){var l=i.breakpoints.keys[s],c=e["".concat(l,"Up")],u=e["".concat(l,"Down")];c&&a.push(n["".concat(l,"Up")]),u&&a.push(n["".concat(l,"Down")])}return o&&(Array.isArray(o)?o:[o]).forEach((function(e){a.push(n["only".concat((0,Le.A)(e))])})),ee.createElement("div",{className:a.join(" ")},t)})),fn=function(e){var t=e.implementation,n=void 0===t?"js":t,r=e.lgDown,o=void 0!==r&&r,i=e.lgUp,a=void 0!==i&&i,s=e.mdDown,l=void 0!==s&&s,c=e.mdUp,u=void 0!==c&&c,d=e.smDown,f=void 0!==d&&d,p=e.smUp,h=void 0!==p&&p,m=e.xlDown,g=void 0!==m&&m,v=e.xlUp,y=void 0!==v&&v,b=e.xsDown,w=void 0!==b&&b,E=e.xsUp,x=void 0!==E&&E,O=(0,J.A)(e,["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);return"js"===n?ee.createElement(un,(0,P.A)({lgDown:o,lgUp:a,mdDown:l,mdUp:u,smDown:f,smUp:h,xlDown:g,xlUp:y,xsDown:w,xsUp:x},O)):ee.createElement(dn,(0,P.A)({lgDown:o,lgUp:a,mdDown:l,mdUp:u,smDown:f,smUp:h,xlDown:g,xlUp:y,xsDown:w,xsUp:x},O))};var pn=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"inherit":o,a=e.component,s=void 0===a?"span":a,l=e.fontSize,c=void 0===l?"medium":l,u=(0,J.A)(e,["classes","className","color","component","fontSize"]);return ee.createElement(s,(0,P.A)({className:(0,te.default)("material-icons",n.root,r,"inherit"!==i&&n["color".concat((0,Le.A)(i))],"default"!==c&&"medium"!==c&&n["fontSize".concat((0,Le.A)(c))]),"aria-hidden":!0,ref:t},u))}));pn.muiName="Icon";const hn=(0,U.A)((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(pn);var mn=ee.forwardRef((function(e,t){var n=e.cellHeight,r=e.children,o=e.classes,i=e.className,a=e.cols,s=void 0===a?2:a,l=e.component,c=void 0===l?"ul":l,u=e.gap,d=void 0===u?4:u,f=e.rowHeight,p=void 0===f?180:f,h=e.spacing,m=e.style,g=(0,J.A)(e,["cellHeight","children","classes","className","cols","component","gap","rowHeight","spacing","style"]),v=h||d,y=n||p;return ee.createElement(c,(0,P.A)({className:(0,te.default)(o.root,i),ref:t,style:(0,P.A)({margin:-v/2},m)},g),ee.Children.map(r,(function(e){if(!ee.isValidElement(e))return null;var t=e.props.cols||1,n=e.props.rows||1;return ee.cloneElement(e,{style:(0,P.A)({width:"".concat(100/s*t,"%"),height:"auto"===y?"auto":y*n+v,padding:v/2},e.props.style)})})))}));const gn=(0,U.A)({root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}},{name:"MuiImageList"})(mn);var vn=function(e,t){var n,r,o,i;e&&e.complete&&(e.width/e.height>e.parentElement.offsetWidth/e.parentElement.offsetHeight?((n=e.classList).remove.apply(n,(0,ke.A)(t.imgFullWidth.split(" "))),(r=e.classList).add.apply(r,(0,ke.A)(t.imgFullHeight.split(" ")))):((o=e.classList).remove.apply(o,(0,ke.A)(t.imgFullHeight.split(" "))),(i=e.classList).add.apply(i,(0,ke.A)(t.imgFullWidth.split(" ")))))},yn=ee.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=(e.cols,e.component),a=void 0===i?"li":i,s=(e.rows,(0,J.A)(e,["children","classes","className","cols","component","rows"])),l=ee.useRef(null);return ee.useEffect((function(){!function(e,t){e&&(e.complete?vn(e,t):e.addEventListener("load",(function(){vn(e,t)})))}(l.current,r)})),ee.useEffect((function(){var e=(0,Yt.A)((function(){vn(l.current,r)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[r]),ee.createElement(a,(0,P.A)({className:(0,te.default)(r.root,o),ref:t},s),ee.createElement("div",{className:r.item},ee.Children.map(n,(function(e){return ee.isValidElement(e)?"img"===e.type||(0,Qt.A)(e,["Image"])?ee.cloneElement(e,{ref:l}):e:null}))))}));const bn=(0,U.A)({root:{boxSizing:"border-box",flexShrink:0},item:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",top:"50%"}},{name:"MuiImageListItem"})(yn);var wn=ee.forwardRef((function(e,t){var n=e.actionIcon,r=e.actionPosition,o=void 0===r?"right":r,i=e.classes,a=e.className,s=e.subtitle,l=e.title,c=e.position,u=void 0===c?"bottom":c,d=e.titlePosition,f=(0,J.A)(e,["actionIcon","actionPosition","classes","className","subtitle","title","position","titlePosition"]),p=d||u,h=n&&o;return ee.createElement("div",(0,P.A)({className:(0,te.default)(i.root,a,s&&i.rootSubtitle,{bottom:i.positionBottom,top:i.positionTop}[p]),ref:t},f),ee.createElement("div",{className:(0,te.default)(i.titleWrap,{left:i.titleWrapActionPosLeft,right:i.titleWrapActionPosRight}[h])},ee.createElement("div",{className:i.title},l),s?ee.createElement("div",{className:i.subtitle},s):null),n?ee.createElement("div",{className:(0,te.default)(i.actionIcon,"left"===h&&i.actionIconActionPosLeft)},n):null)}));const En=(0,U.A)((function(e){return{root:{position:"absolute",left:0,right:0,height:48,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily},positionBottom:{bottom:0},positionTop:{top:0},rootSubtitle:{height:68},titleWrap:{flexGrow:1,marginLeft:16,marginRight:16,color:e.palette.common.white,overflow:"hidden"},titleWrapActionPosLeft:{marginLeft:0},titleWrapActionPosRight:{marginRight:0},title:{fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{},actionIconActionPosLeft:{order:-1}}}),{name:"MuiImageListItemBar"})(wn);var xn=n(8728),On=n(64054),Sn=n(25820),An=n(38306),_n=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.value,s=e.valueBuffer,l=e.variant,c=void 0===l?"indeterminate":l,u=(0,J.A)(e,["classes","className","color","value","valueBuffer","variant"]),d=(0,V.A)(),f={},p={bar1:{},bar2:{}};if(("determinate"===c||"buffer"===c)&&void 0!==a){f["aria-valuenow"]=Math.round(a),f["aria-valuemin"]=0,f["aria-valuemax"]=100;var h=a-100;"rtl"===d.direction&&(h=-h),p.bar1.transform="translateX(".concat(h,"%)")}if("buffer"===c&&void 0!==s){var m=(s||0)-100;"rtl"===d.direction&&(m=-m),p.bar2.transform="translateX(".concat(m,"%)")}return ee.createElement("div",(0,P.A)({className:(0,te.default)(n.root,n["color".concat((0,Le.A)(i))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[c]),role:"progressbar"},f,{ref:t},u),"buffer"===c?ee.createElement("div",{className:(0,te.default)(n.dashed,n["dashedColor".concat((0,Le.A)(i))])}):null,ee.createElement("div",{className:(0,te.default)(n.bar,n["barColor".concat((0,Le.A)(i))],("indeterminate"===c||"query"===c)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[c]),style:p.bar1}),"determinate"===c?null:ee.createElement("div",{className:(0,te.default)(n.bar,("indeterminate"===c||"query"===c)&&n.bar2Indeterminate,"buffer"===c?[n["color".concat((0,Le.A)(i))],n.bar2Buffer]:n["barColor".concat((0,Le.A)(i))]),style:p.bar2}))}));const Cn=(0,U.A)((function(e){var t=function(t){return"light"===e.palette.type?(0,S.a)(t,.62):(0,S.e$)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(_n);var Tn=n(10782),kn=n(73486),Pn=n(50384),In=n(76171),Rn=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,J.A)(e,["classes","className"]),i=ee.useContext(In.A);return ee.createElement("div",(0,P.A)({className:(0,te.default)(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))}));const jn=(0,U.A)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(Rn);var Dn=n(61466),Nn=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,J.A)(e,["classes","className"]);return ee.createElement("div",(0,P.A)({className:(0,te.default)(n.root,r),ref:t},o))}));Nn.muiName="ListItemSecondaryAction";const Mn=(0,U.A)({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(Nn);var Ln=n(77430),zn=n(45152),Wn=n(70032),Bn=n(84630),Fn=n(19008),Hn=ee.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,o=e.backButton,i=e.classes,a=e.className,s=e.LinearProgressProps,l=e.nextButton,c=e.position,u=void 0===c?"bottom":c,d=e.steps,f=e.variant,p=void 0===f?"dots":f,h=(0,J.A)(e,["activeStep","backButton","classes","className","LinearProgressProps","nextButton","position","steps","variant"]);return ee.createElement(kt.A,(0,P.A)({square:!0,elevation:0,className:(0,te.default)(i.root,i["position".concat((0,Le.A)(u))],a),ref:t},h),o,"text"===p&&ee.createElement(ee.Fragment,null,r+1," / ",d),"dots"===p&&ee.createElement("div",{className:i.dots},(0,ke.A)(new Array(d)).map((function(e,t){return ee.createElement("div",{key:t,className:(0,te.default)(i.dot,t===r&&i.dotActive)})}))),"progress"===p&&ee.createElement(Cn,(0,P.A)({className:i.progress,variant:"determinate",value:Math.ceil(r/(d-1)*100)},s)),l)}));const Vn=(0,U.A)((function(e){return{root:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:e.palette.background.default,padding:8},positionBottom:{position:"fixed",bottom:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionTop:{position:"fixed",top:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionStatic:{},dots:{display:"flex",flexDirection:"row"},dot:{backgroundColor:e.palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},dotActive:{backgroundColor:e.palette.primary.main},progress:{width:"50%"}}}),{name:"MuiMobileStepper"})(Hn);var Un=n(5014),Gn=n(67793),qn=n(63400),$n="undefined"!=typeof window?ee.useLayoutEffect:ee.useEffect;const Kn=function(e){var t=e.children,n=e.defer,r=void 0!==n&&n,o=e.fallback,i=void 0===o?null:o,a=ee.useState(!1),s=a[0],l=a[1];return $n((function(){r||l(!0)}),[r]),ee.useEffect((function(){r&&l(!0)}),[r]),ee.createElement(ee.Fragment,null,s?t:i)};var Zn=n(88016),Xn=n(11760),Yn=n(16408),Qn=n(71846);const Jn=(0,Ie.A)(ee.createElement("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"),er=(0,Ie.A)(ee.createElement("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"),tr=(0,U.A)((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes,r=e.fontSize;return ee.createElement("div",{className:(0,te.default)(n.root,t&&n.checked)},ee.createElement(Jn,{fontSize:r}),ee.createElement(er,{fontSize:r,className:n.layer}))}));var nr=n(8521);const rr=ee.createContext();function or(){return ee.useContext(rr)}var ir=ee.createElement(tr,{checked:!0}),ar=ee.createElement(tr,null),sr=ee.forwardRef((function(e,t){var n=e.checked,r=e.classes,o=e.color,i=void 0===o?"secondary":o,a=e.name,s=e.onChange,l=e.size,c=void 0===l?"medium":l,u=(0,J.A)(e,["checked","classes","color","name","onChange","size"]),d=or(),f=n,p=(0,nr.A)(s,d&&d.onChange),h=a;return d&&(void 0===f&&(f=d.value===e.value),void 0===h&&(h=d.name)),ee.createElement(nt,(0,P.A)({color:i,type:"radio",icon:ee.cloneElement(ar,{fontSize:"small"===c?"small":"medium"}),checkedIcon:ee.cloneElement(ir,{fontSize:"small"===c?"small":"medium"}),classes:{root:(0,te.default)(r.root,r["color".concat((0,Le.A)(i))]),checked:r.checked,disabled:r.disabled},name:h,checked:f,onChange:p,ref:t},u))}));const lr=(0,U.A)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,S.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,S.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(sr);var cr=n(74801),ur=n(14232);const dr=ee.forwardRef((function(e,t){var n=e.actions,r=e.children,o=e.name,i=e.value,a=e.onChange,s=(0,J.A)(e,["actions","children","name","value","onChange"]),l=ee.useRef(null),c=(0,Qe.A)({controlled:i,default:e.defaultValue,name:"RadioGroup"}),u=(0,Ye.A)(c,2),d=u[0],f=u[1];ee.useImperativeHandle(n,(function(){return{focus:function(){var e=l.current.querySelector("input:not(:disabled):checked");e||(e=l.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var p=(0,cr.A)(t,l),h=(0,ur.A)(o);return ee.createElement(rr.Provider,{value:{name:h,onChange:function(e){f(e.target.value),a&&a(e,e.target.value)},value:d}},ee.createElement(Gt,(0,P.A)({role:"radiogroup",ref:p},s),r))}));var fr=n(23029),pr=n(92901),hr=n(85501),mr=n(56822),gr=n(53954),vr=n(40961),yr=n(24960);const br=function(e){(0,hr.A)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,gr.A)(t);if(n){var o=(0,gr.A)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,mr.A)(this,e)});function o(){return(0,fr.A)(this,o),r.apply(this,arguments)}return(0,pr.A)(o,[{key:"componentDidMount",value:function(){this.ref=vr.findDOMNode(this),(0,yr.A)(this.props.rootRef,this.ref)}},{key:"componentDidUpdate",value:function(e){var t=vr.findDOMNode(this);e.rootRef===this.props.rootRef&&this.ref===t||(e.rootRef!==this.props.rootRef&&(0,yr.A)(e.rootRef,null),this.ref=t,(0,yr.A)(this.props.rootRef,this.ref))}},{key:"componentWillUnmount",value:function(){this.ref=null,(0,yr.A)(this.props.rootRef,null)}},{key:"render",value:function(){return this.props.children}}]),o}(ee.Component);var wr=n(98448),Er=n(10716),xr=n(44041),Or=n(65936),Sr=n(98200),Ar=ee.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.alternativeLabel,i=e.children,a=e.classes,s=e.className,l=e.completed,c=void 0!==l&&l,u=e.connector,d=e.disabled,f=void 0!==d&&d,p=e.expanded,h=void 0!==p&&p,m=e.index,g=e.last,v=e.orientation,y=(0,J.A)(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","expanded","index","last","orientation"]),b=u?ee.cloneElement(u,{orientation:v,alternativeLabel:o,index:m,active:r,completed:c,disabled:f}):null,w=ee.createElement("div",(0,P.A)({className:(0,te.default)(a.root,a[v],s,o&&a.alternativeLabel,c&&a.completed),ref:t},y),b&&o&&0!==m?b:null,ee.Children.map(i,(function(e){return ee.isValidElement(e)?ee.cloneElement(e,(0,P.A)({active:r,alternativeLabel:o,completed:c,disabled:f,expanded:h,last:g,icon:m+1,orientation:v},e.props)):null})));return b&&!o&&0!==m?ee.createElement(ee.Fragment,null,b,w):w}));const _r=(0,U.A)({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(Ar),Cr=(0,Ie.A)(ee.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Tr=(0,Ie.A)(ee.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var kr=n(41728),Pr=ee.createElement("circle",{cx:"12",cy:"12",r:"12"}),Ir=ee.forwardRef((function(e,t){var n=e.completed,r=void 0!==n&&n,o=e.icon,i=e.active,a=void 0!==i&&i,s=e.error,l=void 0!==s&&s,c=e.classes;if("number"==typeof o||"string"==typeof o){var u=(0,te.default)(c.root,a&&c.active,l&&c.error,r&&c.completed);return l?ee.createElement(Tr,{className:u,ref:t}):r?ee.createElement(Cr,{className:u,ref:t}):ee.createElement(kr.A,{className:u,ref:t},Pr,ee.createElement("text",{className:c.text,x:"12",y:"16",textAnchor:"middle"},o))}return o}));const Rr=(0,U.A)((function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$completed":{color:e.palette.primary.main},"&$active":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}}),{name:"MuiStepIcon"})(Ir);var jr=ee.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.alternativeLabel,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.completed,u=void 0!==c&&c,d=e.disabled,f=void 0!==d&&d,p=e.error,h=void 0!==p&&p,m=(e.expanded,e.icon),g=(e.last,e.optional),v=e.orientation,y=void 0===v?"horizontal":v,b=e.StepIconComponent,w=e.StepIconProps,E=(0,J.A)(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","expanded","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),x=b;return m&&!x&&(x=Rr),ee.createElement("span",(0,P.A)({className:(0,te.default)(s.root,s[y],l,f&&s.disabled,i&&s.alternativeLabel,h&&s.error),ref:t},E),m||x?ee.createElement("span",{className:(0,te.default)(s.iconContainer,i&&s.alternativeLabel)},ee.createElement(x,(0,P.A)({completed:u,active:r,error:h,icon:m},w))):null,ee.createElement("span",{className:s.labelContainer},a?ee.createElement(Pe.A,{variant:"body2",component:"span",display:"block",className:(0,te.default)(s.label,i&&s.alternativeLabel,u&&s.completed,r&&s.active,h&&s.error)},a):null,g))}));jr.muiName="StepLabel";const Dr=(0,U.A)((function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}}),{name:"MuiStepLabel"})(jr);var Nr=ee.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,o=e.children,i=e.classes,a=e.className,s=e.completed,l=e.disabled,c=(e.expanded,e.icon),u=(e.last,e.optional),d=e.orientation,f=(0,J.A)(e,["active","alternativeLabel","children","classes","className","completed","disabled","expanded","icon","last","optional","orientation"]),p={active:n,alternativeLabel:r,completed:s,disabled:l,icon:c,optional:u,orientation:d},h=(0,Qt.A)(o,["StepLabel"])?ee.cloneElement(o,p):ee.createElement(Dr,p,o);return ee.createElement(fe.A,(0,P.A)({focusRipple:!0,disabled:l,TouchRippleProps:{className:i.touchRipple},className:(0,te.default)(i.root,i[d],a),ref:t},f),h)}));const Mr=(0,U.A)({root:{width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},horizontal:{},vertical:{justifyContent:"flex-start",padding:"8px",margin:"-8px"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}},{name:"MuiStepButton"})(Nr);var Lr=ee.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,o=void 0!==r&&r,i=e.classes,a=e.className,s=e.completed,l=e.disabled,c=(e.index,e.orientation),u=void 0===c?"horizontal":c,d=(0,J.A)(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return ee.createElement("div",(0,P.A)({className:(0,te.default)(i.root,i[u],a,o&&i.alternativeLabel,n&&i.active,s&&i.completed,l&&i.disabled),ref:t},d),ee.createElement("span",{className:(0,te.default)(i.line,{horizontal:i.lineHorizontal,vertical:i.lineVertical}[u])}))}));const zr=(0,U.A)((function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(Lr);var Wr=ee.forwardRef((function(e,t){var n=e.active,r=(e.alternativeLabel,e.children),o=e.classes,i=e.className,a=(e.completed,e.expanded),s=e.last,l=(e.optional,e.orientation,e.TransitionComponent),c=void 0===l?ht.A:l,u=e.transitionDuration,d=void 0===u?"auto":u,f=e.TransitionProps,p=(0,J.A)(e,["active","alternativeLabel","children","classes","className","completed","expanded","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),h=d;return"auto"!==d||c.muiSupportAuto||(h=void 0),ee.createElement("div",(0,P.A)({className:(0,te.default)(o.root,i,s&&o.last),ref:t},p),ee.createElement(c,(0,P.A)({in:n||a,className:o.transition,timeout:h,unmountOnExit:!0},f),r))}));const Br=(0,U.A)((function(e){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat("light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600])},last:{borderLeft:"none"},transition:{}}}),{name:"MuiStepContent"})(Wr);var Fr=ee.createElement(zr,null),Hr=ee.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,o=e.alternativeLabel,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.connector,u=void 0===c?Fr:c,d=e.nonLinear,f=void 0!==d&&d,p=e.orientation,h=void 0===p?"horizontal":p,m=(0,J.A)(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),g=ee.isValidElement(u)?ee.cloneElement(u,{orientation:h}):null,v=ee.Children.toArray(a),y=v.map((function(e,t){var n={index:t,active:!1,completed:!1,disabled:!1};return r===t?n.active=!0:!f&&r>t?n.completed=!0:!f&&r<t&&(n.disabled=!0),ee.cloneElement(e,(0,P.A)({alternativeLabel:i,connector:g,last:t+1===v.length,orientation:h},n,e.props))}));return ee.createElement(kt.A,(0,P.A)({square:!0,elevation:0,className:(0,te.default)(s.root,s[h],l,i&&s.alternativeLabel),ref:t},m),y)}));const Vr=(0,U.A)({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(Hr);var Ur=n(16081),Gr=n(61475),qr=n(22319),$r=n(33173),Kr=ee.forwardRef((function(e,t){var n=e.anchor,r=e.classes,o=e.className,i=e.width,a=(0,J.A)(e,["anchor","classes","className","width"]);return ee.createElement("div",(0,P.A)({className:(0,te.default)(r.root,r["anchor".concat((0,Le.A)(n))],o),ref:t,style:(0,N.A)({},(0,Ct.$b)(n)?"width":"height",i)},a))}));const Zr=(0,U.A)((function(e){return{root:{position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},anchorLeft:{right:"auto"},anchorRight:{left:"auto",right:0},anchorTop:{bottom:"auto",right:0},anchorBottom:{top:"auto",bottom:0,right:0}}}),{name:"PrivateSwipeArea"})(Kr);var Xr=null;function Yr(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function Qr(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function Jr(e,t){return e?t.clientWidth:t.clientHeight}function eo(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var to="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),no={enter:H.p0.enteringScreen,exit:H.p0.leavingScreen},ro="undefined"!=typeof window?ee.useLayoutEffect:ee.useEffect,oo=ee.forwardRef((function(e,t){var n=(0,V.A)(),r=(0,Ur.A)({name:"MuiSwipeableDrawer",props:(0,P.A)({},e),theme:n}),o=r.anchor,i=void 0===o?"left":o,a=r.disableBackdropTransition,s=void 0!==a&&a,l=r.disableDiscovery,c=void 0!==l&&l,u=r.disableSwipeToOpen,d=void 0===u?to:u,f=r.hideBackdrop,p=r.hysteresis,h=void 0===p?.52:p,m=r.minFlingVelocity,g=void 0===m?450:m,v=r.ModalProps,y=(v=void 0===v?{}:v).BackdropProps,b=(0,J.A)(v,["BackdropProps"]),w=r.onClose,E=r.onOpen,x=r.open,O=r.PaperProps,S=void 0===O?{}:O,A=r.SwipeAreaProps,_=r.swipeAreaWidth,C=void 0===_?20:_,T=r.transitionDuration,k=void 0===T?no:T,I=r.variant,R=void 0===I?"temporary":I,j=(0,J.A)(r,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),D=ee.useState(!1),N=D[0],M=D[1],L=ee.useRef({isSwiping:null}),z=ee.useRef(),W=ee.useRef(),B=ee.useRef(),F=ee.useRef(!1),H=ee.useRef();ro((function(){H.current=null}),[x]);var U=ee.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.mode,o=void 0===r?null:r,a=t.changeTransition,l=void 0===a||a,c=(0,Ct.iB)(n,i),u=-1!==["right","bottom"].indexOf(c)?1:-1,d=(0,Ct.$b)(i),p=d?"translate(".concat(u*e,"px, 0)"):"translate(0, ".concat(u*e,"px)"),h=B.current.style;h.webkitTransform=p,h.transform=p;var m="";if(o&&(m=n.transitions.create("all",(0,$r.c)({timeout:k},{mode:o}))),l&&(h.webkitTransition=m,h.transition=m),!s&&!f){var g=W.current.style;g.opacity=1-e/Jr(d,B.current),l&&(g.webkitTransition=m,g.transition=m)}}),[i,s,f,n,k]),G=(0,qr.A)((function(e){if(F.current)if(Xr=null,F.current=!1,M(!1),L.current.isSwiping){L.current.isSwiping=null;var t,r=(0,Ct.iB)(n,i),o=(0,Ct.$b)(i);t=o?Yr(r,e.changedTouches):Qr(r,e.changedTouches);var a=o?L.current.startX:L.current.startY,s=Jr(o,B.current),l=eo(t,a,x,s),c=l/s;Math.abs(L.current.velocity)>g&&(H.current=1e3*Math.abs((s-l)/L.current.velocity)),x?L.current.velocity>g||c>h?w():U(0,{mode:"exit"}):L.current.velocity<-g||1-c>h?E():U(Jr(o,B.current),{mode:"enter"})}else L.current.isSwiping=null})),q=(0,qr.A)((function(e){if(B.current&&F.current&&(null==Xr||Xr===L.current)){var t=(0,Ct.iB)(n,i),r=(0,Ct.$b)(i),o=Yr(t,e.touches),a=Qr(t,e.touches);if(x&&B.current.contains(e.target)&&null==Xr){var s=function(e){var t=e.start,n=e.current,r=e.anchor,o={x:"scrollLeft",y:"scrollTop"},i={x:"scrollWidth",y:"scrollHeight"},a={x:"clientWidth",y:"clientHeight"};return e.domTreeShapes.some((function(e){var s=n>=t;"top"!==r&&"left"!==r||(s=!s);var l="left"===r||"right"===r?"x":"y",c=e[o[l]],u=c>0,d=c+e[a[l]]<e[i[l]];return s&&d||!s&&u?e:null}))}({domTreeShapes:function(e,t){for(var n=[];e&&e!==t;){var r=window.getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,B.current),start:r?L.current.startX:L.current.startY,current:r?o:a,anchor:i});if(s)return void(Xr=s);Xr=L.current}if(null==L.current.isSwiping){var l=Math.abs(o-L.current.startX),u=Math.abs(a-L.current.startY);l>u&&e.cancelable&&e.preventDefault();var d=r?l>u&&l>3:u>l&&u>3;if(!0===d||(r?u>3:l>3)){if(L.current.isSwiping=d,!d)return void G(e);L.current.startX=o,L.current.startY=a,c||x||(r?L.current.startX-=C:L.current.startY-=C)}}if(L.current.isSwiping){var f=Jr(r,B.current),p=r?L.current.startX:L.current.startY;x&&!L.current.paperHit&&(p=Math.min(p,f));var h=eo(r?o:a,p,x,f);if(x)if(L.current.paperHit)0===h&&(L.current.startX=o,L.current.startY=a);else{if(!(r?o<f:a<f))return;L.current.paperHit=!0,L.current.startX=o,L.current.startY=a}null===L.current.lastTranslate&&(L.current.lastTranslate=h,L.current.lastTime=performance.now()+1);var m=(h-L.current.lastTranslate)/(performance.now()-L.current.lastTime)*1e3;L.current.velocity=.4*L.current.velocity+.6*m,L.current.lastTranslate=h,L.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),U(h)}}})),$=(0,qr.A)((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!x||W.current.contains(e.target)||B.current.contains(e.target))){var t=(0,Ct.iB)(n,i),r=(0,Ct.$b)(i),o=Yr(t,e.touches),a=Qr(t,e.touches);if(!x){if(d||e.target!==z.current)return;if(r){if(o>C)return}else if(a>C)return}e.muiHandled=!0,Xr=null,L.current.startX=o,L.current.startY=a,M(!0),!x&&B.current&&U(Jr(r,B.current)+(c?20:-C),{changeTransition:!1}),L.current.velocity=0,L.current.lastTime=null,L.current.lastTranslate=null,L.current.paperHit=!1,F.current=!0}}));ee.useEffect((function(){if("temporary"===R){var e=(0,Gr.A)(B.current);return e.addEventListener("touchstart",$),e.addEventListener("touchmove",q,{passive:!1}),e.addEventListener("touchend",G),function(){e.removeEventListener("touchstart",$),e.removeEventListener("touchmove",q,{passive:!1}),e.removeEventListener("touchend",G)}}}),[R,$,q,G]),ee.useEffect((function(){return function(){Xr===L.current&&(Xr=null)}}),[]),ee.useEffect((function(){x||M(!1)}),[x]);var K=ee.useCallback((function(e){W.current=vr.findDOMNode(e)}),[]);return ee.createElement(ee.Fragment,null,ee.createElement(Ct.Ay,(0,P.A)({open:!("temporary"!==R||!N)||x,variant:R,ModalProps:(0,P.A)({BackdropProps:(0,P.A)({},y,{ref:K})},b),PaperProps:(0,P.A)({},S,{style:(0,P.A)({pointerEvents:"temporary"!==R||x?"":"none"},S.style),ref:B}),anchor:i,transitionDuration:H.current||k,onClose:w,ref:t},j)),!d&&"temporary"===R&&ee.createElement(Kn,null,ee.createElement(Zr,(0,P.A)({anchor:i,ref:z,width:C},A))))}));const io=oo;var ao=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"secondary":o,a=e.edge,s=void 0!==a&&a,l=e.size,c=void 0===l?"medium":l,u=(0,J.A)(e,["classes","className","color","edge","size"]),d=ee.createElement("span",{className:n.thumb});return ee.createElement("span",{className:(0,te.default)(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[s],"small"===c&&n["size".concat((0,Le.A)(c))])},ee.createElement(nt,(0,P.A)({type:"checkbox",icon:d,checkedIcon:d,classes:{root:(0,te.default)(n.switchBase,n["color".concat((0,Le.A)(i))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},u)),ee.createElement("span",{className:n.track}))}));const so=(0,U.A)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,S.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,S.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(ao);var lo=n(67264);const co=ee.createContext();var uo="table",fo=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?uo:o,a=e.padding,s=void 0===a?"normal":a,l=e.size,c=void 0===l?"medium":l,u=e.stickyHeader,d=void 0!==u&&u,f=(0,J.A)(e,["classes","className","component","padding","size","stickyHeader"]),p=ee.useMemo((function(){return{padding:s,size:c,stickyHeader:d}}),[s,c,d]);return ee.createElement(co.Provider,{value:p},ee.createElement(i,(0,P.A)({role:i===uo?null:"table",ref:t,className:(0,te.default)(n.root,r,d&&n.stickyHeader)},f)))}));const po=(0,U.A)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,P.A)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(fo),ho=ee.createContext();var mo={variant:"body"},go="tbody",vo=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?go:o,a=(0,J.A)(e,["classes","className","component"]);return ee.createElement(ho.Provider,{value:mo},ee.createElement(i,(0,P.A)({className:(0,te.default)(n.root,r),ref:t,role:i===go?null:"rowgroup"},a)))}));const yo=(0,U.A)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(vo);var bo=ee.forwardRef((function(e,t){var n,r,o=e.align,i=void 0===o?"inherit":o,a=e.classes,s=e.className,l=e.component,c=e.padding,u=e.scope,d=e.size,f=e.sortDirection,p=e.variant,h=(0,J.A)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),m=ee.useContext(co),g=ee.useContext(ho),v=g&&"head"===g.variant;l?(r=l,n=v?"columnheader":"cell"):r=v?"th":"td";var y=u;!y&&v&&(y="col");var b=c||(m&&m.padding?m.padding:"normal"),w=d||(m&&m.size?m.size:"medium"),E=p||g&&g.variant,x=null;return f&&(x="asc"===f?"ascending":"descending"),ee.createElement(r,(0,P.A)({ref:t,className:(0,te.default)(a.root,a[E],s,"inherit"!==i&&a["align".concat((0,Le.A)(i))],"normal"!==b&&a["padding".concat((0,Le.A)(b))],"medium"!==w&&a["size".concat((0,Le.A)(w))],"head"===E&&m&&m.stickyHeader&&a.stickyHeader),"aria-sort":x,role:n,scope:y},h))}));const wo=(0,U.A)((function(e){return{root:(0,P.A)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,S.a)((0,S.X4)(e.palette.divider,1),.88):(0,S.e$)((0,S.X4)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(bo);var Eo=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=(0,J.A)(e,["classes","className","component"]);return ee.createElement(i,(0,P.A)({ref:t,className:(0,te.default)(n.root,r)},a))}));const xo=(0,U.A)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(Eo);var Oo={variant:"footer"},So="tfoot",Ao=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?So:o,a=(0,J.A)(e,["classes","className","component"]);return ee.createElement(ho.Provider,{value:Oo},ee.createElement(i,(0,P.A)({className:(0,te.default)(n.root,r),ref:t,role:i===So?null:"rowgroup"},a)))}));const _o=(0,U.A)({root:{display:"table-footer-group"}},{name:"MuiTableFooter"})(Ao);var Co={variant:"head"},To="thead",ko=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?To:o,a=(0,J.A)(e,["classes","className","component"]);return ee.createElement(ho.Provider,{value:Co},ee.createElement(i,(0,P.A)({className:(0,te.default)(n.root,r),ref:t,role:i===To?null:"rowgroup"},a)))}));const Po=(0,U.A)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(ko);var Io=n(35376),Ro=n(77604),jo=n(71071),Do=ee.createElement(jo.A,null),No=ee.createElement(Ro.A,null),Mo=ee.createElement(Ro.A,null),Lo=ee.createElement(jo.A,null);const zo=ee.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,o=e.nextIconButtonProps,i=e.onChangePage,a=void 0===i?function(){}:i,s=e.onPageChange,l=void 0===s?function(){}:s,c=e.page,u=e.rowsPerPage,d=(0,J.A)(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","onPageChange","page","rowsPerPage"]),f=(0,V.A)();return ee.createElement("div",(0,P.A)({ref:t},d),ee.createElement(et.A,(0,P.A)({onClick:function(e){a(e,c-1),l(e,c-1)},disabled:0===c,color:"inherit"},n),"rtl"===f.direction?Do:No),ee.createElement(et.A,(0,P.A)({onClick:function(e){a(e,c+1),l(e,c+1)},disabled:-1!==r&&c>=Math.ceil(r/u)-1,color:"inherit"},o),"rtl"===f.direction?Mo:Lo))}));var Wo=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))},Bo=[10,25,50,100],Fo=ee.forwardRef((function(e,t){var n,r=e.ActionsComponent,o=void 0===r?zo:r,i=e.backIconButtonProps,a=e.backIconButtonText,s=void 0===a?"Previous page":a,l=e.classes,c=e.className,u=e.colSpan,d=e.component,f=void 0===d?wo:d,p=e.count,h=e.labelDisplayedRows,m=void 0===h?Wo:h,g=e.labelRowsPerPage,v=void 0===g?"Rows per page:":g,y=e.nextIconButtonProps,b=e.nextIconButtonText,w=void 0===b?"Next page":b,E=e.onChangePage,x=e.onPageChange,O=e.onChangeRowsPerPage,S=e.onRowsPerPageChange,A=e.page,_=e.rowsPerPage,C=e.rowsPerPageOptions,T=void 0===C?Bo:C,k=e.SelectProps,I=void 0===k?{}:k,R=(0,J.A)(e,["ActionsComponent","backIconButtonProps","backIconButtonText","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","nextIconButtonText","onChangePage","onPageChange","onChangeRowsPerPage","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps"]),j=O||S;f!==wo&&"td"!==f||(n=u||1e3);var D=(0,ur.A)(),N=(0,ur.A)(),M=I.native?"option":Bn.A;return ee.createElement(f,(0,P.A)({className:(0,te.default)(l.root,c),colSpan:n,ref:t},R),ee.createElement(Io.A,{className:l.toolbar},ee.createElement("div",{className:l.spacer}),T.length>1&&ee.createElement(Pe.A,{color:"inherit",variant:"body2",className:l.caption,id:N},v),T.length>1&&ee.createElement(wr.A,(0,P.A)({classes:{select:l.select,icon:l.selectIcon},input:ee.createElement(Sn.A,{className:(0,te.default)(l.input,l.selectRoot)}),value:_,onChange:j,id:D,labelId:N},I),T.map((function(e){return ee.createElement(M,{className:l.menuItem,key:e.value?e.value:e,value:e.value?e.value:e},e.label?e.label:e)}))),ee.createElement(Pe.A,{color:"inherit",variant:"body2",className:l.caption},m({from:0===p?0:A*_+1,to:-1!==p?Math.min(p,(A+1)*_):(A+1)*_,count:-1===p?-1:p,page:A})),ee.createElement(o,{className:l.actions,backIconButtonProps:(0,P.A)({title:s,"aria-label":s},i),count:p,nextIconButtonProps:(0,P.A)({title:w,"aria-label":w},y),onChangePage:E,onPageChange:x,page:A,rowsPerPage:_})))}));const Ho=(0,U.A)((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),overflow:"auto","&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(Fo);var Vo=ee.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tr":o,a=e.hover,s=void 0!==a&&a,l=e.selected,c=void 0!==l&&l,u=(0,J.A)(e,["classes","className","component","hover","selected"]),d=ee.useContext(ho);return ee.createElement(i,(0,P.A)({ref:t,className:(0,te.default)(n.root,r,d&&{head:n.head,footer:n.footer}[d.variant],s&&n.hover,c&&n.selected),role:"tr"===i?null:"row"},u))}));const Uo=(0,U.A)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:(0,S.X4)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(Vo),Go=(0,Ie.A)(ee.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var qo=ee.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.children,i=e.classes,a=e.className,s=e.direction,l=void 0===s?"asc":s,c=e.hideSortIcon,u=void 0!==c&&c,d=e.IconComponent,f=void 0===d?Go:d,p=(0,J.A)(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return ee.createElement(fe.A,(0,P.A)({className:(0,te.default)(i.root,a,r&&i.active),component:"span",disableRipple:!0,ref:t},p),o,u&&!r?null:ee.createElement(f,{className:(0,te.default)(i.icon,i["iconDirection".concat((0,Le.A)(l))])}))}));const $o=(0,U.A)((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:.5}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(qo);var Ko=n(37098),Zo=n(47668),Xo=n(72572),Yo=n(75818),Qo=n(96232),Jo=n(84190),ei=n(56424);function ti(e,t){var n=t.disableHysteresis,r=void 0!==n&&n,o=t.threshold,i=void 0===o?100:o,a=t.target,s=e.current;return a&&(e.current=void 0!==a.pageYOffset?a.pageYOffset:a.scrollTop),!(!r&&void 0!==s&&e.current<s)&&e.current>i}var ni="undefined"!=typeof window?window:null;function ri(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getTrigger,n=void 0===t?ti:t,r=e.target,o=void 0===r?ni:r,i=(0,J.A)(e,["getTrigger","target"]),a=ee.useRef(),s=ee.useState((function(){return n(a,i)})),l=s[0],c=s[1];return ee.useEffect((function(){var e=function(){c(n(a,(0,P.A)({target:o},i)))};return e(),o.addEventListener("scroll",e),function(){o.removeEventListener("scroll",e)}}),[o,n,JSON.stringify(i)]),l}const oi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.breakpoint,r=void 0===n?"sm":n;return(0,ln.Ay)()((function(e){return ee.createElement(t,(0,P.A)({fullScreen:(0,ln.Jf)(r,e.width)},e))}))}};var ii=n(37353),ai={entering:{transform:"none"},entered:{transform:"none"}},si={enter:H.p0.enteringScreen,exit:H.p0.leavingScreen},li=ee.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,p=e.timeout,h=void 0===p?si:p,m=e.TransitionComponent,g=void 0===m?ii.Ay:m,v=(0,J.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),y=(0,V.A)(),b=y.unstable_strictMode&&!o,w=ee.useRef(null),E=(0,cr.A)(n.ref,t),x=(0,cr.A)(b?w:void 0,E),O=function(e){return function(t,n){if(e){var r=b?[w.current,t]:[t,n],o=(0,Ye.A)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},S=O(l),A=O((function(e,t){(0,$r.q)(e);var n=(0,$r.c)({style:f,timeout:h},{mode:"enter"});e.style.webkitTransition=y.transitions.create("transform",n),e.style.transition=y.transitions.create("transform",n),a&&a(e,t)})),_=O(s),C=O(d),T=O((function(e){var t=(0,$r.c)({style:f,timeout:h},{mode:"exit"});e.style.webkitTransition=y.transitions.create("transform",t),e.style.transition=y.transitions.create("transform",t),c&&c(e)})),k=O(u);return ee.createElement(g,(0,P.A)({appear:!0,in:i,nodeRef:b?w:void 0,onEnter:A,onEntered:_,onEntering:S,onExit:T,onExited:k,onExiting:C,timeout:h},v),(function(e,t){return ee.cloneElement(n,(0,P.A)({style:(0,P.A)({transform:"scale(0)",visibility:"exited"!==e||i?void 0:"hidden"},ai[e],f,n.props.style),ref:x},t))}))}));const ci=li},83639:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(96540);const o=(0,n(95126).A)(r.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},77604:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(96540);const o=(0,n(95126).A)(r.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},71071:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(96540);const o=(0,n(95126).A)(r.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},19773:(e,t,n)=>{"use strict";n.d(t,{E2:()=>i,J1:()=>d,Ob:()=>a,Rv:()=>p,X0:()=>c,X4:()=>h,YL:()=>s,a:()=>g,e$:()=>m,eM:()=>u,rP:()=>l,tL:()=>f});var r=n(77860);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){if(0===e.indexOf("#"))return e;var t=l(e).values;return"#".concat(t.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join(""))}function s(e){var t=(e=l(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),c({type:s,values:u})}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(i(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.A)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function c(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function u(e,t){var n=d(e),r=d(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function d(e){var t="hsl"===(e=l(e)).type?l(s(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return d(e)>.5?m(e,t):g(e,t)}function p(e,t){return h(e,t)}function h(e,t){return e=l(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,c(e)}function m(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return c(e)}function g(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return c(e)}},52250:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,H:()=>i});var r=n(58168),o=n(80045),i=["xs","sm","md","lg","xl"];function a(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,a=e.unit,s=void 0===a?"px":a,l=e.step,c=void 0===l?5:l,u=(0,o.A)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=i.indexOf(t);return r===i.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[i[r+1]]?n[i[r+1]]:t)-c/100).concat(s,")")}return(0,r.A)({keys:i,values:n,up:d,down:function(e){var t=i.indexOf(e)+1,r=n[i[t]];return t===i.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},u)}},88093:(e,t,n)=>{"use strict";n.d(t,{D:()=>D,A:()=>N});var r=n(80045),o=n(12851),i=n(52250),a=n(64467),s=n(58168);function l(e,t,n){var r;return(0,s.A)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,s.A)({paddingLeft:t(2),paddingRight:t(2)},n,(0,a.A)({},e.up("sm"),(0,s.A)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,a.A)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,a.A)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(77860),u=n(72771),d=n(9169),f=n(81664),p=n(52278),h=n(59275),m=n(38544),g=n(1670),v=n(64843),y=n(19773),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.A.white,default:d.A[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:u.A.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d.A[800],default:"#303030"},action:{active:u.A.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,y.a)(e.main,o):"dark"===t&&(e.dark=(0,y.e$)(e.main,i)))}function x(e){return Math.round(1e5*e)/1e5}function O(e){return x(e)}var S={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function _(e,t){var n="function"==typeof t?t(e):t,i=n.fontFamily,a=void 0===i?A:i,l=n.fontSize,c=void 0===l?14:l,u=n.fontWeightLight,d=void 0===u?300:u,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,g=n.fontWeightBold,v=void 0===g?700:g,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,E=n.pxToRem,_=(0,r.A)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),C=c/14,T=E||function(e){return"".concat(e/b*C,"rem")},k=function(e,t,n,r,o){return(0,s.A)({fontFamily:a,fontWeight:e,fontSize:T(t),lineHeight:n},a===A?{letterSpacing:"".concat(x(r/t),"em")}:{},o,w)},P={h1:k(d,96,1.167,-1.5),h2:k(d,60,1.2,-.5),h3:k(p,48,1.167,0),h4:k(p,34,1.235,.25),h5:k(p,24,1.334,0),h6:k(m,20,1.6,.15),subtitle1:k(p,16,1.75,.15),subtitle2:k(m,14,1.57,.1),body1:k(p,16,1.5,.15),body2:k(p,14,1.43,.15),button:k(m,14,1.75,.4,S),caption:k(p,12,1.66,.4),overline:k(p,12,2.66,1,S)};return(0,o.A)((0,s.A)({htmlFontSize:b,pxToRem:T,round:O,fontFamily:a,fontSize:c,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:v},P),_,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const T=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],k={borderRadius:4};var P=n(86535),I=n(63870),R=n(39474);function j(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.mixins,x=void 0===a?{}:a,O=e.palette,S=void 0===O?{}:O,A=e.spacing,C=e.typography,j=void 0===C?{}:C,D=(0,r.A)(e,["breakpoints","mixins","palette","spacing","typography"]),N=function(e){var t=e.primary,n=void 0===t?{light:f.A[300],main:f.A[500],dark:f.A[700]}:t,i=e.secondary,a=void 0===i?{light:p.A.A200,main:p.A.A400,dark:p.A.A700}:i,l=e.error,x=void 0===l?{light:h.A[300],main:h.A[500],dark:h.A[700]}:l,O=e.warning,S=void 0===O?{light:m.A[300],main:m.A[500],dark:m.A[700]}:O,A=e.info,_=void 0===A?{light:g.A[300],main:g.A[500],dark:g.A[700]}:A,C=e.success,T=void 0===C?{light:v.A[300],main:v.A[500],dark:v.A[700]}:C,k=e.type,P=void 0===k?"light":k,I=e.contrastThreshold,R=void 0===I?3:I,j=e.tonalOffset,D=void 0===j?.2:j,N=(0,r.A)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return(0,y.eM)(e,w.text.primary)>=R?w.text.primary:b.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,s.A)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.A)(4,t));if("string"!=typeof e.main)throw new Error((0,c.A)(5,JSON.stringify(e.main)));return E(e,"light",n,D),E(e,"dark",r,D),e.contrastText||(e.contrastText=M(e.main)),e},z={dark:w,light:b};return(0,o.A)((0,s.A)({common:u.A,type:P,primary:L(n),secondary:L(a,"A400","A200","A700"),error:L(x),warning:L(S),info:L(_),success:L(T),grey:d.A,contrastThreshold:R,getContrastText:M,augmentColor:L,tonalOffset:D},z[P]),N)}(S),M=(0,i.A)(n),L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,P.L)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(A),z=(0,o.A)({breakpoints:M,direction:"ltr",mixins:l(M,L,x),overrides:{},palette:N,props:{},shadows:T,typography:_(N,j),spacing:L,shape:k,transitions:I.Ay,zIndex:R.A},D),W=arguments.length,B=new Array(W>1?W-1:0),F=1;F<W;F++)B[F-1]=arguments[F];return B.reduce((function(e,t){return(0,o.A)(e,t)}),z)}function D(){return j.apply(void 0,arguments)}const N=j},87114:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(88093).A)()},63870:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,cz:()=>o,p0:()=>i});var r=n(80045),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}const s={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?i.standard:n,l=t.easing,c=void 0===l?o.easeInOut:l,u=t.delay,d=void 0===u?0:u;return(0,r.A)(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:a(s)," ").concat(c," ").concat("string"==typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},26232:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(42143),o=(n(96540),n(87114));function i(){return(0,r.A)()||o.A}},32150:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(58168),o=n(7155),i=n(87114);const a=function(e,t){return(0,o.A)(e,(0,r.A)({defaultTheme:i.A},t))}},39474:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},33173:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,q:()=>r});var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},77267:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(56424)},56424:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(58168),o=n(96540),i=n(42143),a=n(16081);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.A)(),s=(0,a.A)({theme:n,name:"MuiUseMediaQuery",props:{}}),l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");var c="undefined"!=typeof window&&void 0!==window.matchMedia,u=(0,r.A)({},s,t),d=u.defaultMatches,f=void 0!==d&&d,p=u.matchMedia,h=void 0===p?c?window.matchMedia:null:p,m=u.noSsr,g=void 0!==m&&m,v=u.ssrMatchMedia,y=void 0===v?null:v,b=o.useState((function(){return g&&c?h(l).matches:y?y(l).matches:f})),w=b[0],E=b[1];return o.useEffect((function(){var e=!0;if(c){var t=h(l),n=function(){e&&E(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[l,h,c]),w}},67515:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77860);function o(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},8521:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{A:()=>r})},95126:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(58168),o=n(96540),i=n(41728);function a(e,t){var n=function(t,n){return o.createElement(i.A,(0,r.A)({ref:n},t),e)};return n.muiName=i.A.muiName,o.memo(o.forwardRef(n))}},31198:(e,t,n)=>{"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{A:()=>r})},6674:(e,t,n)=>{"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,{A:()=>r})},1305:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.A,createChainedFunction:()=>o.A,createSvgIcon:()=>i.A,debounce:()=>a.A,deprecatedPropType:()=>s,isMuiElement:()=>l.A,ownerDocument:()=>c.A,ownerWindow:()=>u.A,requirePropFactory:()=>d,setRef:()=>f.A,unstable_useId:()=>v.A,unsupportedProp:()=>p,useControlled:()=>h.A,useEventCallback:()=>m.A,useForkRef:()=>g.A,useIsFocusVisible:()=>y.A});var r=n(67515),o=n(8521),i=n(95126),a=n(31198);function s(e,t){return function(){return null}}var l=n(77570),c=n(61475),u=n(76182);function d(e){return function(){return null}}var f=n(24960);function p(e,t,n,r,o){return null}var h=n(28060),m=n(22319),g=n(74801),v=n(14232),y=n(20364)},77570:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(96540);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},61475:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},76182:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(61475);function o(e){return(0,r.A)(e).defaultView||window}},24960:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},14232:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(96540);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},28060:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(96540);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],s=i[1];return[o?t:a,r.useCallback((function(e){o||s(e)}),[])]}},22319:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(96540),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},74801:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(96540),o=n(24960);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.A)(e,n),(0,o.A)(t,n)}}),[e,t])}},20364:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(96540),o=n(40961),i=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!l[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:f,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},44768:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m,Jf:()=>p,o4:()=>f});var r=n(58168),o=n(80045),i=n(96540),a=n(16081),s=n(4146),l=n.n(s),c=n(26232),u=n(52250),d=n(56424),f=function(e,t){return arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?u.H.indexOf(e)<u.H.indexOf(t):u.H.indexOf(e)<=u.H.indexOf(t)},p=function(e,t){return arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?u.H.indexOf(t)<u.H.indexOf(e):u.H.indexOf(t)<=u.H.indexOf(e)},h="undefined"==typeof window?i.useEffect:i.useLayoutEffect;const m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,s=void 0!==n&&n,u=e.noSSR,f=void 0!==u&&u,p=e.initialWidth;function m(e){var n=(0,c.A)(),l=e.theme||n,u=(0,a.A)({theme:l,name:"MuiWithWidth",props:(0,r.A)({},e)}),m=u.initialWidth,g=u.width,v=(0,o.A)(u,["initialWidth","width"]),y=i.useState(!1),b=y[0],w=y[1];h((function(){w(!0)}),[]);var E=l.breakpoints.keys.slice().reverse().reduce((function(e,t){var n=(0,d.A)(l.breakpoints.up(t));return!e&&n?t:e}),null),x=(0,r.A)({width:g||(b||f?E:void 0)||m||p},s?{theme:l}:{},v);return void 0===x.width?null:i.createElement(t,x)}return l()(m,t),m}}},19681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=i,t.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=s(e).values;return"#".concat(t.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join(""))},t.hslToRgb=a,t.decomposeColor=s,t.recomposeColor=l,t.getContrastRatio=function(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.getLuminance=c,t.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(e)>.5?d(e,t):f(e,t)},t.fade=function(e,t){return u(e,t)},t.alpha=u,t.darken=d,t.lighten=f;var r=n(7032);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){var t=(e=s(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}function s(e){if(e.type)return e;if("#"===e.charAt(0))return s(i(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.formatMuiErrorMessage)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function l(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function c(e){var t="hsl"===(e=s(e)).type?s(a(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=s(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,l(e)}function d(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function f(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return l(e)}},19526:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,s=void 0===r?"px":r,l=e.step,c=void 0===l?5:l,u=(0,i.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-c/100).concat(s,")")}return(0,o.default)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},u)},t.keys=void 0;var o=r(n(94634)),i=r(n(91847)),a=["xs","sm","md","lg","xl"];t.keys=a},34030:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r;return(0,i.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,i.default)({paddingLeft:t(2),paddingRight:t(2)},n,(0,o.default)({},e.up("sm"),(0,i.default)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,o.default)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(r,e.up("sm"),{minHeight:64}),r)},n)};var o=r(n(43693)),i=r(n(94634))},57337:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.primary,n=void 0===t?{light:c.default[300],main:c.default[500],dark:c.default[700]}:t,r=e.secondary,b=void 0===r?{light:u.default.A200,main:u.default.A400,dark:u.default.A700}:r,w=e.error,E=void 0===w?{light:d.default[300],main:d.default[500],dark:d.default[700]}:w,x=e.warning,O=void 0===x?{light:f.default[300],main:f.default[500],dark:f.default[700]}:x,S=e.info,A=void 0===S?{light:p.default[300],main:p.default[500],dark:p.default[700]}:S,_=e.success,C=void 0===_?{light:h.default[300],main:h.default[500],dark:h.default[700]}:_,T=e.type,k=void 0===T?"light":T,P=e.contrastThreshold,I=void 0===P?3:P,R=e.tonalOffset,j=void 0===R?.2:R,D=(0,i.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function N(e){return(0,m.getContrastRatio)(e,v.text.primary)>=I?v.text.primary:g.text.primary}var M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.default)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,a.formatMuiErrorMessage)(4,t));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return y(e,"light",n,j),y(e,"dark",r,j),e.contrastText||(e.contrastText=N(e.main)),e},L={dark:v,light:g};return(0,a.deepmerge)((0,o.default)({common:s.default,type:k,primary:M(n),secondary:M(b,"A400","A200","A700"),error:M(E),warning:M(O),info:M(A),success:M(C),grey:l.default,contrastThreshold:I,getContrastText:N,augmentColor:M,tonalOffset:j},L[k]),D)},t.dark=t.light=void 0;var o=r(n(94634)),i=r(n(91847)),a=n(7032),s=r(n(92615)),l=r(n(20573)),c=r(n(89356)),u=r(n(890)),d=r(n(18543)),f=r(n(42252)),p=r(n(78490)),h=r(n(11311)),m=n(19681),g={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:s.default.white,default:l.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};t.light=g;var v={text:{primary:s.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:l.default[800],default:"#303030"},action:{active:s.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function y(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,m.lighten)(e.main,o):"dark"===t&&(e.dark=(0,m.darken)(e.main,i)))}t.dark=v},24307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,r.createUnarySpacing)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n};var r=n(90557)},79663:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.createMuiTheme=function(){return m.apply(void 0,arguments)},t.default=void 0,r(n(43693));var o=r(n(91847)),i=n(7032),a=r(n(19526)),s=r(n(34030)),l=r(n(57337)),c=r(n(12173)),u=r(n(50507)),d=r(n(67215)),f=r(n(24307)),p=r(n(47306)),h=r(n(63974));function m(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,m=void 0===r?{}:r,g=e.palette,v=void 0===g?{}:g,y=e.spacing,b=e.typography,w=void 0===b?{}:b,E=(0,o.default)(e,["breakpoints","mixins","palette","spacing","typography"]),x=(0,l.default)(v),O=(0,a.default)(n),S=(0,f.default)(y),A=(0,i.deepmerge)({breakpoints:O,direction:"ltr",mixins:(0,s.default)(O,S,m),overrides:{},palette:x,props:{},shadows:u.default,typography:(0,c.default)(x,w),spacing:S,shape:d.default,transitions:p.default,zIndex:h.default},E),_=arguments.length,C=new Array(_>1?_-1:0),T=1;T<_;T++)C[T-1]=arguments[T];return C.reduce((function(e,t){return(0,i.deepmerge)(e,t)}),A)}var g=m;t.default=g},12173:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,d=void 0===r?u:r,f=n.fontSize,p=void 0===f?14:f,h=n.fontWeightLight,m=void 0===h?300:h,g=n.fontWeightRegular,v=void 0===g?400:g,y=n.fontWeightMedium,b=void 0===y?500:y,w=n.fontWeightBold,E=void 0===w?700:w,x=n.htmlFontSize,O=void 0===x?16:x,S=n.allVariants,A=n.pxToRem,_=(0,i.default)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),C=p/14,T=A||function(e){return"".concat(e/O*C,"rem")},k=function(e,t,n,r,i){return(0,o.default)({fontFamily:d,fontWeight:e,fontSize:T(t),lineHeight:n},d===u?{letterSpacing:"".concat(s(r/t),"em")}:{},i,S)},P={h1:k(m,96,1.167,-1.5),h2:k(m,60,1.2,-.5),h3:k(v,48,1.167,0),h4:k(v,34,1.235,.25),h5:k(v,24,1.334,0),h6:k(b,20,1.6,.15),subtitle1:k(v,16,1.75,.15),subtitle2:k(b,14,1.57,.1),body1:k(v,16,1.5,.15),body2:k(v,14,1.43,.15),button:k(b,14,1.75,.4,c),caption:k(v,12,1.66,.4),overline:k(v,12,2.66,1,c)};return(0,a.deepmerge)((0,o.default)({htmlFontSize:O,pxToRem:T,round:l,fontFamily:d,fontSize:p,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:E},P),_,{clone:!1})};var o=r(n(94634)),i=r(n(91847)),a=n(7032);function s(e){return Math.round(1e5*e)/1e5}function l(e){return s(e)}var c={textTransform:"uppercase"},u='"Roboto", "Helvetica", "Arial", sans-serif'},74614:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,r(n(79663)).default)();t.default=o},93796:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94634)),i=n(91384),a=r(n(74614));t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.makeStyles)(e,(0,o.default)({defaultTheme:a.default},t))}},50507:(e,t)=>{"use strict";function n(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["none",n(0,2,1,-1,0,1,1,0,0,1,3,0),n(0,3,1,-2,0,2,2,0,0,1,5,0),n(0,3,3,-2,0,3,4,0,0,1,8,0),n(0,2,4,-1,0,4,5,0,0,1,10,0),n(0,3,5,-1,0,5,8,0,0,1,14,0),n(0,3,5,-1,0,6,10,0,0,1,18,0),n(0,4,5,-2,0,7,10,1,0,2,16,1),n(0,5,5,-3,0,8,10,1,0,3,14,2),n(0,5,6,-3,0,9,12,1,0,3,16,2),n(0,6,6,-3,0,10,14,1,0,4,18,3),n(0,6,7,-4,0,11,15,1,0,4,20,3),n(0,7,8,-4,0,12,17,2,0,5,22,4),n(0,7,8,-4,0,13,19,2,0,5,24,4),n(0,7,9,-4,0,14,21,2,0,5,26,4),n(0,8,9,-5,0,15,22,2,0,6,28,5),n(0,8,10,-5,0,16,24,2,0,6,30,5),n(0,8,11,-5,0,17,26,2,0,6,32,5),n(0,9,11,-5,0,18,28,2,0,7,34,6),n(0,9,12,-6,0,19,29,2,0,7,36,6),n(0,10,13,-6,0,20,31,3,0,8,38,7),n(0,10,13,-6,0,21,33,3,0,8,40,7),n(0,10,14,-6,0,22,35,3,0,8,42,7),n(0,11,14,-7,0,23,36,3,0,9,44,8),n(0,11,15,-7,0,24,38,3,0,9,46,8)];t.default=r},67215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={borderRadius:4}},47306:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.duration=t.easing=void 0;var o=r(n(91847)),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};t.easing=i;var a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s(e){return"".concat(Math.round(e),"ms")}t.duration=a;var l={easing:i,duration:a,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?a.standard:n,l=t.easing,c=void 0===l?i.easeInOut:l,u=t.delay,d=void 0===u?0:u;return(0,o.default)(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:s(r)," ").concat(c," ").concat("string"==typeof d?d:s(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=l},12244:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,o.useTheme)()||i.default};var o=n(91384),i=(r(n(96540)),r(n(74614)))},79626:(e,t,n)=>{"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94634)),i=n(91384),a=r(n(74614));t.default=function(e,t){return(0,i.withStyles)(e,(0,o.default)({defaultTheme:a.default},t))}},7639:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var o=n(91384),i=r(n(74614)),a=(0,o.withThemeCreator)({defaultTheme:i.default});t.A=a},63974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},21179:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutlineSharp");t.A=a},43489:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddSharp");t.A=a},87618:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBackSharp");t.A=a},66372:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"}),"ArrowForwardSharp");t.A=a},63472:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M14 7l-5 5 5 5V7z"}),"ArrowLeftSharp");t.A=a},33613:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M10 17l5-5-5-5v10z"}),"ArrowRightSharp");t.A=a},34186:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpwardSharp");t.A=a},51759:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M19 18l2 1V1H7v2h12v15zM17 5H3v18l7-3 7 3V5z"}),"BookmarksSharp");t.A=a},70220:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"}),"Brightness5");t.A=a},35364:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"}),"CheckSharp");t.A=a},55898:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}),"ChevronLeftSharp");t.A=a},51059:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");t.A=a},77055:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightSharp");t.A=a},73546:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("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");t.default=a},28296:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("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 12 19 6.41z"}),"CloseSharp");t.A=a},41351:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M21.99 2H2v16h16l4 4-.01-20zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}),"CommentSharp");t.A=a},73091:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91c.48.22 1.05.34 1.7.34.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"CopyrightSharp");t.A=a},84127:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M21 3H3v18h18V3zm-2 16H5V5h14v14z"}),"CropDinSharp");t.A=a},7161:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M21 3H3v18h18V3zm-2 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"}),"CropOriginalSharp");t.A=a},74454:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleSharp");t.A=a},5277:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicatorSharp");t.A=a},67622:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.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"}),"ErrorOutlineSharp");t.A=a},14713:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");t.A=a},42561:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.A=a},19425:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");t.A=a},5925:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M21 3H3v18h18V3zM6 7h5v1.5H6V7zm13 12H5L19 5v14zm-4.5-3v2H16v-2h2v-1.5h-2v-2h-1.5v2h-2V16h2z"}),"ExposureSharp");t.A=a},88149:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExitSharp");t.A=a},7501:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"FullscreenSharp");t.A=a},91404:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm2-7h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2h2v-2H5V5h14v6z"}),"Gradient");t.A=a},95222:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"InfoSharp");t.A=a},59282:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"}),"Input");t.A=a},72379:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M4.01 2L4 22h16V8l-6-6H4.01zM13 9V3.5L18.5 9H13z"}),"InsertDriveFileSharp");t.A=a},58520:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z"}),"InvertColors");t.A=a},57482:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownSharp");t.A=a},83325:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z"}),"KeyboardArrowUpSharp");t.A=a},90652:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"}),"LayersSharp");t.A=a},84322:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"ListSharp");t.A=a},42487:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M20 8h-3V6.21c0-2.61-1.91-4.94-4.51-5.19C9.51.74 7 3.08 7 6v2H4v14h16V8zm-8 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z"}),"LockSharp");t.A=a},97823:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"MenuSharp");t.A=a},97571:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHorizSharp");t.A=a},63624:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVertSharp");t.A=a},14503:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"}),"Opacity");t.default=a},91195:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"}),"OpacitySharp");t.A=a},16965:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNewSharp");t.A=a},13045:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"Palette");t.default=a},34477:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"PaletteSharp");t.A=a},63380:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutlineSharp");t.A=a},23578:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"RemoveCircleOutlineSharp");t.A=a},19685:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"}),"ReorderSharp");t.A=a},46807:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"ReplaySharp");t.A=a},71762:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47zm1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93z"}),"RotateLeft");t.A=a},62645:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47h2.02zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42l1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z"}),"RotateRight");t.A=a},8876:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M19 12v7H5v-7H3v9h18v-9h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2v9.67z"}),"SaveAltSharp");t.A=a},44122:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{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"}),"SearchSharp");t.A=a},80845:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"}),"SettingsBackupRestore");t.default=a},92105:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M19.44 12.99l-.01.02c.04-.33.08-.67.08-1.01 0-.34-.03-.66-.07-.99l.01.02 2.44-1.92-2.43-4.22-2.87 1.16.01.01c-.52-.4-1.09-.74-1.71-1h.01L14.44 2H9.57l-.44 3.07h.01c-.62.26-1.19.6-1.71 1l.01-.01-2.88-1.17-2.44 4.22 2.44 1.92.01-.02c-.04.33-.07.65-.07.99 0 .34.03.68.08 1.01l-.01-.02-2.1 1.65-.33.26 2.43 4.2 2.88-1.15-.02-.04c.53.41 1.1.75 1.73 1.01h-.03L9.58 22h4.85s.03-.18.06-.42l.38-2.65h-.01c.62-.26 1.2-.6 1.73-1.01l-.02.04 2.88 1.15 2.43-4.2s-.14-.12-.33-.26l-2.11-1.66zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"}),"SettingsSharp");t.A=a},23362:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortSharp");t.A=a},71090:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"}),"Subject");t.default=a},47625:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"}),"SwapHoriz");t.A=a},51130:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}),"TextFields");t.default=a},79320:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.65.68 1H13V7zm0 3h6.74c.08.33.15.66.19 1H13v-1zm0 9.93V19h2.87c-.87.48-1.84.8-2.87.93zM18.24 17H13v-1h5.92c-.2.35-.43.69-.68 1zm1.5-3H13v-1h6.93c-.04.34-.11.67-.19 1z"}),"Tonality");t.A=a},34188:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}),"TuneSharp");t.A=a},87888:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTopSharp");t.A=a},75787:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"}),"ViewColumn");t.A=a},88365:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M3 14h4v-4H3v4zm0 5h4v-4H3v4zM3 9h4V5H3v4zm5 5h12v-4H8v4zm0 5h12v-4H8v4zM8 5v4h12V5H8z"}),"ViewListSharp");t.A=a},10823:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM3.42 2.45L2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l3.43 3.43 1.41-1.41L3.42 2.45zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64l2.64 2.64z"}),"VisibilityOffSharp");t.A=a},38582:(e,t,n)=>{"use strict";var r=n(24994),o=n(6305);t.A=void 0;var i=o(n(96540)),a=(0,r(n(76447)).default)(i.createElement("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"VisibilitySharp");t.A=a},76447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(1305)},22488:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(19773),l=n(32150),c=i.forwardRef((function(e,t){var n=e.animation,s=void 0===n?"pulse":n,l=e.classes,c=e.className,u=e.component,d=void 0===u?"span":u,f=e.height,p=e.variant,h=void 0===p?"text":p,m=e.width,g=(0,o.A)(e,["animation","classes","className","component","height","variant","width"]),v=Boolean(g.children);return i.createElement(d,(0,r.A)({ref:t,className:(0,a.default)(l.root,l[h],c,v&&[l.withChildren,!m&&l.fitContent,!f&&l.heightAuto],!1!==s&&l[s])},g,{style:(0,r.A)({width:m,height:f},g.style)}))}));const u=(0,l.A)((function(e){return{root:{display:"block",backgroundColor:(0,s.X4)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(c)},81863:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(96540);const o=(0,n(95126).A)(r.createElement("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")},11065:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(23029),i=n(92901),a=n(96540),s=n(73317),l=n(49117),c=n(21233),u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.A)(this,e),this.options=t}return(0,i.A)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new s.SN;var n=(0,c.A)();return a.createElement(l.Ay,(0,r.A)({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return a.createElement("style",(0,r.A)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}()},49117:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m,Az:()=>f,si:()=>h});var r,o=n(58168),i=n(80045),a=n(96540),s=n(21233),l=n(73317),c=n(79350),u=(0,l.vt)((0,c.A)()),d=(0,s.A)(),f=new Map,p={disableGeneration:!1,generateClassName:d,jss:u,sheetsCache:null,sheetsManager:f,sheetsRegistry:null},h=a.createContext(p);function m(e){var t=e.children,n=e.injectFirst,s=void 0!==n&&n,u=e.disableGeneration,d=void 0!==u&&u,f=(0,i.A)(e,["children","injectFirst","disableGeneration"]),p=a.useContext(h),m=(0,o.A)({},p,{disableGeneration:d},f);if(!m.jss.options.insertionPoint&&s&&"undefined"!=typeof window){if(!r){var g=document.head;r=document.createComment("mui-inject-first"),g.insertBefore(r,g.firstChild)}m.jss=(0,l.vt)({plugins:(0,c.A)().plugins,insertionPoint:r})}return a.createElement(h.Provider,{value:m},t)}},65429:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540),i=n(16895),a=n(42143),s=n(4910);const l=function(e){var t=e.children,n=e.theme,l=(0,a.A)(),c=o.useMemo((function(){var e=null===l?n:function(e,t){return"function"==typeof t?t(e):(0,r.A)({},e,t)}(l,n);return null!=e&&(e[s.A]=null!==l),e}),[n,l]);return o.createElement(i.A.Provider,{value:c},t)}},4910:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},21233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4910),o=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,i=e.productionPrefix,a=void 0===i?"jss":i,s=e.seed,l=void 0===s?"":s,c=""===l?"":"".concat(l,"-"),u=0,d=function(){return u+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!n){if(-1!==o.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(c).concat(i,"-").concat(e.key);return t.options.theme[r.A]&&""===l?"".concat(s,"-").concat(d()):s}return"".concat(c).concat(a).concat(d())}}},70235:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{A:()=>r})},16081:(e,t,n)=>{"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{A:()=>r})},91384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheets:()=>c.A,StylesContext:()=>d.si,StylesProvider:()=>d.Ay,ThemeProvider:()=>f.A,createGenerateClassName:()=>r.A,createStyles:()=>o.A,getThemeProps:()=>i.A,jssPreset:()=>a.A,makeStyles:()=>s.A,mergeClasses:()=>l.A,sheetsManager:()=>d.Az,styled:()=>u.A,useTheme:()=>p.A,withStyles:()=>h.A,withTheme:()=>m.A,withThemeCreator:()=>m.u});var r=n(21233),o=n(70235),i=n(16081),a=n(79350),s=n(59815),l=n(13043),c=n(11065),u=n(6633),d=n(49117),f=n(65429),p=n(42143),h=n(7155),m=n(75349)},79350:(e,t,n)=>{"use strict";n.d(t,{A:()=>De});var r=n(73317),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o;const s=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.D_)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,s=o[a];s&&(o.style=s(e)||{});var l=o[i];if(l)for(var c in l)o.prop(c,l[c](e),r)}}};var l=n(58168),c="@global",u=function(){function e(e,t,n){for(var o in this.type="global",this.at=c,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.VZ((0,l.A)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),d=function(){function e(e,t,n){this.type="global",this.at=c,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,l.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),f=/\s*,\s*/g;function p(e,t){for(var n=e.split(f),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}const h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===c)return new u(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new d(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[c]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,l.A)({},n,{selector:p(i,e.selector)}));delete r[c]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===c){var i=p(o.substr(7),e.selector);t.addRule(i,r[o],(0,l.A)({},n,{selector:i})),delete r[o]}}(e,t))}}};var m=/\s*,\s*/g,g=/&/g,v=/\$([\w-]+)/g;const y=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(m),r=e.split(m),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(g,a):a+" "+l}return o}function n(e,t,n){if(n)return(0,l.A)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,l.A)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,c=o,u=c.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(a=n(c,u,a),f){var h=t(d,c.selector);s||(s=e(u,i)),h=h.replace(v,s);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,r[d],(0,l.A)({},a,{selector:h})):u.addRule(m,r[d],(0,l.A)({},a,{selector:h}))}else p&&u.addRule(d,{},a).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}};var b=/[A-Z]/g,w=/^ms-/,E={};function x(e){return"-"+e.toLowerCase()}const O=function(e){if(E.hasOwnProperty(e))return E[e];var t=e.replace(b,x);return E[e]=w.test(t)?"-"+t:t};function S(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:O(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(S):t.fallbacks=S(e.fallbacks)),t}const A=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=S(e[t]);return e}return S(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=O(t);return t===r?e:(n.prop(r,e),null)}}};var _=r.rN&&CSS?CSS.px:"px",C=r.rN&&CSS?CSS.ms:"ms",T=r.rN&&CSS?CSS.percent:"%";function k(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var P=k({"animation-delay":C,"animation-duration":C,"background-position":_,"background-position-x":_,"background-position-y":_,"background-size":_,border:_,"border-bottom":_,"border-bottom-left-radius":_,"border-bottom-right-radius":_,"border-bottom-width":_,"border-left":_,"border-left-width":_,"border-radius":_,"border-right":_,"border-right-width":_,"border-top":_,"border-top-left-radius":_,"border-top-right-radius":_,"border-top-width":_,"border-width":_,"border-block":_,"border-block-end":_,"border-block-end-width":_,"border-block-start":_,"border-block-start-width":_,"border-block-width":_,"border-inline":_,"border-inline-end":_,"border-inline-end-width":_,"border-inline-start":_,"border-inline-start-width":_,"border-inline-width":_,"border-start-start-radius":_,"border-start-end-radius":_,"border-end-start-radius":_,"border-end-end-radius":_,margin:_,"margin-bottom":_,"margin-left":_,"margin-right":_,"margin-top":_,"margin-block":_,"margin-block-end":_,"margin-block-start":_,"margin-inline":_,"margin-inline-end":_,"margin-inline-start":_,padding:_,"padding-bottom":_,"padding-left":_,"padding-right":_,"padding-top":_,"padding-block":_,"padding-block-end":_,"padding-block-start":_,"padding-inline":_,"padding-inline-end":_,"padding-inline-start":_,"mask-position-x":_,"mask-position-y":_,"mask-size":_,height:_,width:_,"min-height":_,"max-height":_,"min-width":_,"max-width":_,bottom:_,left:_,top:_,right:_,inset:_,"inset-block":_,"inset-block-end":_,"inset-block-start":_,"inset-inline":_,"inset-inline-end":_,"inset-inline-start":_,"box-shadow":_,"text-shadow":_,"column-gap":_,"column-rule":_,"column-rule-width":_,"column-width":_,"font-size":_,"font-size-delta":_,"letter-spacing":_,"text-decoration-thickness":_,"text-indent":_,"text-stroke":_,"text-stroke-width":_,"word-spacing":_,motion:_,"motion-offset":_,outline:_,"outline-offset":_,"outline-width":_,perspective:_,"perspective-origin-x":T,"perspective-origin-y":T,"transform-origin":T,"transform-origin-x":T,"transform-origin-y":T,"transform-origin-z":T,"transition-delay":C,"transition-duration":C,"vertical-align":_,"flex-basis":_,"shape-margin":_,size:_,gap:_,grid:_,"grid-gap":_,"row-gap":_,"grid-row-gap":_,"grid-column-gap":_,"grid-template-rows":_,"grid-template-columns":_,"grid-auto-rows":_,"grid-auto-columns":_,"box-shadow-x":_,"box-shadow-y":_,"box-shadow-blur":_,"box-shadow-spread":_,"font-line-height":_,"text-shadow-x":_,"text-shadow-y":_,"text-shadow-blur":_});function I(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=I(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=I(o,t[o],n);else for(var i in t)t[i]=I(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||P[e];return!a||0===t&&a===_?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}const R=function(e){void 0===e&&(e={});var t=k(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=I(r,e[r],t);return e},onChangeValue:function(e,n){return I(n,e,t)}}};var j=n(94175),D=n(60436),N="",M="",L="",z="",W=j.A&&"ontouchstart"in document.documentElement;if(j.A){var B={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},F=document.createElement("p").style;for(var H in B)if(H+"Transform"in F){N=H,M=B[H];break}"Webkit"===N&&"msHyphens"in F&&(N="ms",M=B.ms,z="edge"),"Webkit"===N&&"-apple-trailing-word"in F&&(L="apple")}var V=N,U=M,G=L,q=z,$=W,K={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===V?"-webkit-"+e:U+e)}},Z={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===V?U+"print-"+e:e)}},X=/[-\s]+(.)?/g;function Y(e,t){return t?t.toUpperCase():""}function Q(e){return e.replace(X,Y)}function J(e){return Q("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===V){var n="mask-image";if(Q(n)in t)return e;if(V+J(n)in t)return U+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==G||$?e:U+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:U+e)}},oe={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:U+e)}},ie={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===V||"ms"===V&&"edge"!==q?U+e:e)}},ae={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===V||"ms"===V||"apple"===G?U+e:e)}},se={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===V?"WebkitColumn"+J(e)in t&&U+"column-"+e:"Moz"===V&&"page"+J(e)in t&&"page-"+e)}},le={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===V)return e;var n=e.replace("-inline","");return V+J(n)in t&&U+n}},ce={supportedProperty:function(e,t){return Q(e)in t&&e}},ue={supportedProperty:function(e,t){var n=J(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:V+n in t?U+e:"Webkit"!==V&&"Webkit"+n in t&&"-webkit-"+e}},de={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===V?""+U+e:e)}},fe={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===V?U+"scroll-chaining":e)}},pe={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=pe[e];return!!n&&V+J(n)in t&&U+n}},me={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ge=Object.keys(me),ve=function(e){return U+e},ye={supportedProperty:function(e,t,n){var r=n.multiple;if(ge.indexOf(e)>-1){var o=me[e];if(!Array.isArray(o))return V+J(o)in t&&U+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(V+J(o[0])in t))return!1;return o.map(ve)}return!1}},be=[K,Z,te,ne,re,oe,ie,ae,se,le,ce,ue,de,fe,he,ye],we=be.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ee=be.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,D.A)(t.noPrefill)),e}),[]),xe={};if(j.A){ee=document.createElement("p");var Oe=window.getComputedStyle(document.documentElement,"");for(var Se in Oe)isNaN(Se)||(xe[Oe[Se]]=Oe[Se]);Ee.forEach((function(e){return delete xe[e]}))}function Ae(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=xe[e])return xe[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<we.length&&(xe[e]=we[n](e,ee.style,t),!xe[e]);n++);try{ee.style[e]=""}catch(e){return!1}return xe[e]}var _e,Ce={},Te={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ke=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Pe(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?Ae(t):", "+Ae(n))||t||n}function Ie(e,t){var n=t;if(!_e||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Ce[r])return Ce[r];try{_e.style[e]=n}catch(e){return Ce[r]=!1,!1}if(Te[e])n=n.replace(ke,Pe);else if(""===_e.style[e]&&("-ms-flex"===(n=U+n)&&(_e.style[e]="-ms-flexbox"),_e.style[e]=n,""===_e.style[e]))return Ce[r]=!1,!1;return _e.style[e]="",Ce[r]=n,Ce[r]}j.A&&(_e=document.createElement("p"));const Re=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=Ae(n);a&&a!==n&&(i=!0);var s=!1,l=Ie(a,(0,r.Sg)(o));l&&l!==o&&(s=!0),(i||s)&&(i&&delete t[n],t[a||n]=l||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===V?e:"@"+U+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Ie(t,(0,r.Sg)(e))||e}}},je=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function De(){return{plugins:[s(),h(),y(),A(),R(),"undefined"==typeof window?null:Re(),je()]}}},59815:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(80045),o=n(58168),i=n(96540),a=n(73317),s=n(13043);const l={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};var c=n(42143),u=n(49117),d=-1e9,f=n(12851);const p={};function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,h=t.classNamePrefix,m=t.Component,g=t.defaultTheme,v=void 0===g?p:g,y=(0,r.A)(t,["name","classNamePrefix","Component","defaultTheme"]),b=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],s=(0,o.A)({},i);return Object.keys(a).forEach((function(e){s[e]=(0,f.A)(s[e],a[e])})),s},options:{}}}(e),w=n||h||"makeStyles";return b.options={index:d+=1,name:n,meta:w,classNamePrefix:w},function(){var e,t,r,d,f,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},h=(0,c.A)()||v,g=(0,o.A)({},i.useContext(u.si),y),w=i.useRef(),E=i.useRef();e=[h,b],d=i.useRef([]),f=i.useMemo((function(){return{}}),e),d.current!==f&&(d.current=f,function(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,c=e.stylesCreator,u=e.name;if(!i.disableGeneration){var d=l.get(i.sheetsManager,c,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},l.set(i.sheetsManager,c,r,d));var f=(0,o.A)({},c.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});f.generateId=f.serverGenerateClassName||f.generateClassName;var p=i.sheetsRegistry;if(0===d.refs){var h;i.sheetsCache&&(h=l.get(i.sheetsCache,c,r));var m=c.create(r,u);h||((h=i.jss.createStyleSheet(m,(0,o.A)({link:!1},f))).attach(),i.sheetsCache&&l.set(i.sheetsCache,c,r,h)),p&&p.add(h),d.staticSheet=h,d.dynamicStyles=(0,a.ih)(m)}if(d.dynamicStyles){var g=i.jss.createStyleSheet(d.dynamicStyles,(0,o.A)({link:!0},f));g.update(t),g.attach(),n.dynamicSheet=g,n.classes=(0,s.A)({baseClasses:d.staticSheet.classes,newClasses:g.classes}),p&&p.add(g)}else n.classes=d.staticSheet.classes;d.refs+=1}}(r={name:n,state:{},stylesCreator:b,stylesOptions:g,theme:h},p),E.current=!1,w.current=r,t=function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=l.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(l.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(r)}),i.useEffect((function(){return function(){t&&t()}}),[f]),i.useEffect((function(){E.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(w.current,p),E.current=!0}));var x=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,s.A)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(w.current,p.classes,m);return x}}},13043:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(58168);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var o=(0,r.A)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},6633:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),o=n(80045),i=n(96540),a=n(20053),s=n(4146),l=n.n(s),c=n(59815);function u(e){return function(t){var n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=s.name,d=(0,o.A)(s,["name"]),f=u,p="function"==typeof t?function(e){return{root:function(n){return t((0,r.A)({theme:e},n))}}}:{root:t},h=(0,c.A)(p,(0,r.A)({Component:e,name:u||e.displayName,classNamePrefix:f},d));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var m=i.forwardRef((function(t,s){var l,c,u,d=t.children,f=t.className,p=t.clone,m=t.component,g=(0,o.A)(t,["children","className","clone","component"]),v=h(t),y=(0,a.default)(v.root,f),b=g;if(n&&(l=b,c=n,u={},Object.keys(l).forEach((function(e){-1===c.indexOf(e)&&(u[e]=l[e])})),b=u),p)return i.cloneElement(d,(0,r.A)({className:(0,a.default)(d.props.className,y)},b));if("function"==typeof d)return d((0,r.A)({className:y},b));var w=m||e;return i.createElement(w,(0,r.A)({ref:s,className:y},b),d)}));return l()(m,e),m}}},16895:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96540).createContext(null)},42143:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(96540),o=n(16895);function i(){return r.useContext(o.A)}},7155:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(58168),o=n(80045),i=n(96540),a=n(4146),s=n.n(a),l=n(59815),c=n(16081),u=n(42143);const d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,p=t.name,h=(0,o.A)(t,["defaultTheme","withTheme","name"]),m=p,g=(0,l.A)(e,(0,r.A)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),v=i.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,d=(0,o.A)(e,["classes","innerRef"]),h=g((0,r.A)({},n.defaultProps,e)),m=d;return("string"==typeof p||f)&&(s=(0,u.A)()||a,p&&(m=(0,c.A)({theme:s,name:p,props:d})),f&&!m.theme&&(m.theme=s)),i.createElement(n,(0,r.A)({ref:l||t,classes:h},m))}));return s()(v,n),v}}},75349:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,u:()=>c});var r=n(58168),o=n(80045),i=n(96540),a=n(4146),s=n.n(a),l=n(42143);function c(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=i.forwardRef((function(n,a){var s=n.innerRef,c=(0,o.A)(n,["innerRef"]),u=(0,l.A)()||e;return i.createElement(t,(0,r.A)({theme:u,ref:s||a},c))}));return s()(n,t),n}}const u=c()},99718:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Cz:()=>d,I5:()=>c,Iy:()=>s,Kz:()=>u,PQ:()=>a,Vq:()=>f,fo:()=>l});var r=n(10080),o=n(39817);function i(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var a=(0,r.A)({prop:"border",themeKey:"borders",transform:i}),s=(0,r.A)({prop:"borderTop",themeKey:"borders",transform:i}),l=(0,r.A)({prop:"borderRight",themeKey:"borders",transform:i}),c=(0,r.A)({prop:"borderBottom",themeKey:"borders",transform:i}),u=(0,r.A)({prop:"borderLeft",themeKey:"borders",transform:i}),d=(0,r.A)({prop:"borderColor",themeKey:"palette"}),f=(0,r.A)({prop:"borderRadius",themeKey:"shape"});const p=(0,o.A)(a,s,l,c,u,d,f)},7969:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,N:()=>c});var r=n(60436),o=n(58168),i=n(82284),a=n(92777),s={xs:0,sm:600,md:960,lg:1280,xl:1920},l={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(s[e],"px)")}};function c(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||l;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,i.A)(t)){var o=e.theme.breakpoints||l;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}const u=function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||l,i=r.keys.reduce((function(n,i){return t[i]&&((n=n||{})[r.up(i)]=e((0,o.A)({theme:t.theme},t[i]))),n}),null);return(0,a.A)(n,i)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat((0,r.A)(e.filterProps)),t}},39817:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(92777);const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=function(e){return t.reduce((function(t,n){var o=n(e);return o?(0,r.A)(t,o):t}),{})};return o.propTypes={},o.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),o}},62995:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d});var r=n(10080),o=n(39817),i=(0,r.A)({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),a=(0,r.A)({prop:"display"}),s=(0,r.A)({prop:"overflow"}),l=(0,r.A)({prop:"textOverflow"}),c=(0,r.A)({prop:"visibility"}),u=(0,r.A)({prop:"whiteSpace"});const d=(0,o.A)(i,a,s,l,c,u)},30193:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y,D0:()=>a,OO:()=>i,Px:()=>g,Uu:()=>f,aR:()=>s,fB:()=>p,fq:()=>d,gV:()=>v,i4:()=>m,j_:()=>u,mt:()=>c,v2:()=>h,wt:()=>l});var r=n(10080),o=n(39817),i=(0,r.A)({prop:"flexBasis"}),a=(0,r.A)({prop:"flexDirection"}),s=(0,r.A)({prop:"flexWrap"}),l=(0,r.A)({prop:"justifyContent"}),c=(0,r.A)({prop:"alignItems"}),u=(0,r.A)({prop:"alignContent"}),d=(0,r.A)({prop:"order"}),f=(0,r.A)({prop:"flex"}),p=(0,r.A)({prop:"flexGrow"}),h=(0,r.A)({prop:"flexShrink"}),m=(0,r.A)({prop:"alignSelf"}),g=(0,r.A)({prop:"justifyItems"}),v=(0,r.A)({prop:"justifySelf"});const y=(0,o.A)(i,a,s,l,c,u,d,f,p,h,m,g,v)},47385:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v,FB:()=>l,Iz:()=>g,RK:()=>d,T_:()=>i,XH:()=>a,Zh:()=>f,by:()=>m,co:()=>h,hI:()=>s,lJ:()=>c,s:()=>u,y9:()=>p});var r=n(10080),o=n(39817),i=(0,r.A)({prop:"gridGap"}),a=(0,r.A)({prop:"gridColumnGap"}),s=(0,r.A)({prop:"gridRowGap"}),l=(0,r.A)({prop:"gridColumn"}),c=(0,r.A)({prop:"gridRow"}),u=(0,r.A)({prop:"gridAutoFlow"}),d=(0,r.A)({prop:"gridAutoColumns"}),f=(0,r.A)({prop:"gridAutoRows"}),p=(0,r.A)({prop:"gridTemplateColumns"}),h=(0,r.A)({prop:"gridTemplateRows"}),m=(0,r.A)({prop:"gridTemplateAreas"}),g=(0,r.A)({prop:"gridArea"});const v=(0,o.A)(i,a,s,l,c,u,d,f,p,h,m,g)},90557:(e,t,n)=>{"use strict";n.r(t),n.d(t,{alignContent:()=>l.j_,alignItems:()=>l.mt,alignSelf:()=>l.i4,bgcolor:()=>u.N_,border:()=>r.PQ,borderBottom:()=>r.I5,borderColor:()=>r.Cz,borderLeft:()=>r.Kz,borderRadius:()=>r.Vq,borderRight:()=>r.fo,borderTop:()=>r.Iy,borders:()=>r.Ay,bottom:()=>d.sQ,boxSizing:()=>p.K,breakpoints:()=>o.A,color:()=>u.yW,compose:()=>i.A,createUnarySpacing:()=>h.L,css:()=>a.A,display:()=>s.Ay,flex:()=>l.Uu,flexBasis:()=>l.OO,flexDirection:()=>l.D0,flexGrow:()=>l.fB,flexShrink:()=>l.v2,flexWrap:()=>l.aR,flexbox:()=>l.Ay,fontFamily:()=>g.mw,fontSize:()=>g.J,fontStyle:()=>g.xC,fontWeight:()=>g.Wy,grid:()=>c.Ay,gridArea:()=>c.Iz,gridAutoColumns:()=>c.RK,gridAutoFlow:()=>c.s,gridAutoRows:()=>c.Zh,gridColumn:()=>c.FB,gridColumnGap:()=>c.XH,gridGap:()=>c.T_,gridRow:()=>c.lJ,gridRowGap:()=>c.hI,gridTemplateAreas:()=>c.by,gridTemplateColumns:()=>c.y9,gridTemplateRows:()=>c.co,height:()=>p.uJ,justifyContent:()=>l.wt,justifyItems:()=>l.Px,justifySelf:()=>l.gV,left:()=>d.kb,letterSpacing:()=>g.oU,lineHeight:()=>g.K_,maxHeight:()=>p.Kr,maxWidth:()=>p.JX,minHeight:()=>p.yO,minWidth:()=>p.bV,order:()=>l.fq,palette:()=>u.Ay,position:()=>d.G1,positions:()=>d.Ay,right:()=>d.pG,shadows:()=>f.A,sizeHeight:()=>p.fu,sizeWidth:()=>p.E$,sizing:()=>p.Ay,spacing:()=>h.A,style:()=>m.A,styleFunctionSx:()=>a.h,textAlign:()=>g.Jh,top:()=>d.Mn,typography:()=>g.Ay,width:()=>p.VL,zIndex:()=>d.fE});var r=n(99718),o=n(7969),i=n(39817),a=n(91663),s=n(62995),l=n(30193),c=n(47385),u=n(45418),d=n(47369),f=n(40700),p=n(49999),h=n(86535),m=n(10080),g=n(8068)},92777:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(12851);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},45418:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,N_:()=>a,yW:()=>i});var r=n(10080),o=n(39817),i=(0,r.A)({prop:"color",themeKey:"palette"}),a=(0,r.A)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"});const s=(0,o.A)(i,a)},47369:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,G1:()=>i,Mn:()=>s,fE:()=>a,kb:()=>u,pG:()=>l,sQ:()=>c});var r=n(10080),o=n(39817),i=(0,r.A)({prop:"position"}),a=(0,r.A)({prop:"zIndex",themeKey:"zIndex"}),s=(0,r.A)({prop:"top"}),l=(0,r.A)({prop:"right"}),c=(0,r.A)({prop:"bottom"}),u=(0,r.A)({prop:"left"});const d=(0,o.A)(i,a,s,l,c,u)},40700:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(10080).A)({prop:"boxShadow",themeKey:"shadows"})},49999:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m,E$:()=>f,JX:()=>s,K:()=>h,Kr:()=>u,VL:()=>a,bV:()=>l,fu:()=>p,uJ:()=>c,yO:()=>d});var r=n(10080),o=n(39817);function i(e){return e<=1?"".concat(100*e,"%"):e}var a=(0,r.A)({prop:"width",transform:i}),s=(0,r.A)({prop:"maxWidth",transform:i}),l=(0,r.A)({prop:"minWidth",transform:i}),c=(0,r.A)({prop:"height",transform:i}),u=(0,r.A)({prop:"maxHeight",transform:i}),d=(0,r.A)({prop:"minHeight",transform:i}),f=(0,r.A)({prop:"size",cssProperty:"width",transform:i}),p=(0,r.A)({prop:"size",cssProperty:"height",transform:i}),h=(0,r.A)({prop:"boxSizing"});const m=(0,o.A)(a,s,l,c,u,d,h)},86535:(e,t,n)=>{"use strict";n.d(t,{L:()=>p,A:()=>m});var r,o,i=n(5544),a=n(7969),s=n(92777),l={m:"margin",p:"padding"},c={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=(r=function(e){if(e.length>2){if(!u[e])return[e];e=u[e]}var t=e.split(""),n=(0,i.A)(t,2),r=n[0],o=n[1],a=l[r],s=c[o]||"";return Array.isArray(s)?s.map((function(e){return a+e})):[a+s]},o={},function(e){return void 0===o[e]&&(o[e]=r(e)),o[e]}),f=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function p(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function h(e){var t=p(e.theme);return Object.keys(e).map((function(n){if(-1===f.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}(d(n),t),o=e[n];return(0,a.N)(e,o,r)})).reduce(s.A,{})}h.propTypes={},h.filterProps=f;const m=h},10080:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(64467),o=n(7969);function i(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}const a=function(e){var t=e.prop,n=e.cssProperty,a=void 0===n?e.prop:n,s=e.themeKey,l=e.transform,c=function(e){if(null==e[t])return null;var n=e[t],c=i(e.theme,s)||{};return(0,o.N)(e,n,(function(e){var t;return"function"==typeof c?t=c(e):Array.isArray(c)?t=c[e]||e:(t=i(c,e)||e,l&&(t=l(t))),!1===a?t:(0,r.A)({},a,t)}))};return c.propTypes={},c.filterProps=[t],c}},91663:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,h:()=>c});var r=n(60436),o=n(58168),i=n(92777);function a(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function s(e){var t=function(t){var n=e(t);return t.css?(0,o.A)({},(0,i.A)(n,e((0,o.A)({theme:t.theme},t.css))),a(t.css,[e.filterProps])):t.sx?(0,o.A)({},(0,i.A)(n,e((0,o.A)({theme:t.theme},t.sx))),a(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat((0,r.A)(e.filterProps)),t}function l(e){return s(e)}const c=s},8068:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>f,J:()=>a,Jh:()=>d,K_:()=>u,Wy:()=>l,mw:()=>i,oU:()=>c,xC:()=>s});var r=n(10080),o=n(39817),i=(0,r.A)({prop:"fontFamily",themeKey:"typography"}),a=(0,r.A)({prop:"fontSize",themeKey:"typography"}),s=(0,r.A)({prop:"fontStyle",themeKey:"typography"}),l=(0,r.A)({prop:"fontWeight",themeKey:"typography"}),c=(0,r.A)({prop:"letterSpacing"}),u=(0,r.A)({prop:"lineHeight"}),d=(0,r.A)({prop:"textAlign"});const f=(0,o.A)(i,a,s,l,c,u,d)},12851:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(58168),o=n(82284);function i(e){return e&&"object"===(0,o.A)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},77860:(e,t,n)=>{"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},7032:(e,t,n)=>{"use strict";function r(e,t){return function(){return null}}n.r(t),n.d(t,{HTMLElementType:()=>y,chainPropTypes:()=>r,deepmerge:()=>o.A,elementAcceptingRef:()=>l,elementTypeAcceptingRef:()=>c,exactProp:()=>u,formatMuiErrorMessage:()=>d.A,getDisplayName:()=>v,ponyfillGlobal:()=>b,refType:()=>w});var o=n(12851),i=n(5556),a=n.n(i),s=(a().element,function(){return null});s.isRequired=(a().element.isRequired,function(){return null});const l=s,c=(i.elementType,function(){return null});function u(e){return e}n(64467),n(58168);var d=n(77860),f=n(82284),p=n(44363),h=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function m(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||(t="".concat(e).match(h))&&t[1]||""||n}function g(e,t,n){var r=m(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function v(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return m(e,"Component");if("object"===(0,f.A)(e))switch(e.$$typeof){case p.ForwardRef:return g(e,e.render,"ForwardRef");case p.Memo:return g(e,e.type,"memo");default:return}}}function y(e,t,n,r,o){return null}const b="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),w=a().oneOfType([a().func,a().object])},72954:(e,t,n)=>{"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return r[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.d(t,{V:()=>r})},49194:(e,t,n)=>{"use strict";function r(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}n.d(t,{b:()=>r})},16873:(e,t,n)=>{"use strict";n.d(t,{$:()=>J,A:()=>j,B:()=>C,C:()=>N,D:()=>v,E:()=>w,F:()=>L,G:()=>U,H:()=>c,J:()=>z,L:()=>Z,M:()=>ie,N:()=>le,O:()=>ne,P:()=>R,Q:()=>me,R:()=>D,S:()=>B,T:()=>I,U:()=>ue,V:()=>k,W:()=>ee,X:()=>q,Y:()=>X,Z:()=>Y,_:()=>Q,a:()=>M,a0:()=>re,a1:()=>oe,a2:()=>ae,a3:()=>se,a4:()=>ce,a5:()=>de,a6:()=>fe,a7:()=>pe,a8:()=>he,b:()=>W,d:()=>F,e:()=>P,f:()=>H,g:()=>V,h:()=>G,i:()=>y,j:()=>A,k:()=>s,l:()=>S,m:()=>b,o:()=>p,p:()=>u,q:()=>g,r:()=>f,s:()=>O,t:()=>l,u:()=>d,v:()=>_,y:()=>x,z:()=>E});var r=n(63821),o=n(58168),i=n(21225);const a=function(e,t){var n;void 0===t&&(t=!0);var o=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return o[r.bO]=function(){clearTimeout(n)},o};var s=function(){return function(){return true}}(),l=function(){},c=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var u=function(e,t){(0,o.A)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},d=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function f(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function p(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},m=function(e){return{value:e,done:!0}};function g(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:m,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function v(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var y=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},b=function(e){return Array.apply(null,new Array(e))},w=function(e){return function(t){return e(Object.defineProperty(t,r.q8,{value:!0}))}},E=function(e){return e===r.a6},x=function(e){return e===r.nm},O=function(e){return E(e)||x(e)};function S(e,t){var n,r=Object.keys(e),o=r.length,a=0,s=(0,i.YO)(e)?b(o):{},c={};return r.forEach((function(e){var r=function(r,i){n||(i||O(r)?(t.cancel(),t(r,i)):(s[e]=r,++a===o&&(n=!0,t(s))))};r.cancel=l,c[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return c[e].cancel()})))},c}function A(e){return{name:e.name||"anonymous",location:_(e)}}function _(e){return e[r.x2]}function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function T(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:c=2*e,n=l(),r=n.length,o=n.length,i=0,n.length=c,e=c,a(s)}},take:s,flush:l}}var k=function(e){return T(e,3)},P=function(e){return T(e,4)},I="TAKE",R="PUT",j="ALL",D="RACE",N="CALL",M="CPS",L="FORK",z="JOIN",W="CANCEL",B="SELECT",F="ACTION_CHANNEL",H="CANCELLED",V="FLUSH",U="GET_CONTEXT",G="SET_CONTEXT",q=Object.freeze({__proto__:null,TAKE:I,PUT:R,ALL:j,RACE:D,CALL:N,CPS:M,FORK:L,JOIN:z,CANCEL:W,SELECT:B,ACTION_CHANNEL:F,CANCELLED:H,FLUSH:V,GET_CONTEXT:U,SET_CONTEXT:G}),$=function(e,t){var n;return(n={})[r.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n},K=function(e){return $(L,(0,o.A)({},e.payload,{detached:!0}))};function Z(e,t){return void 0===e&&(e="*"),(0,i.T1)(e)?((0,i.uQ)(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),$(I,{pattern:e})):(0,i.fD)(e)&&(0,i.uQ)(t)&&(0,i.T1)(t)?$(I,{channel:e,pattern:t}):(0,i.Ix)(e)?((0,i.uQ)(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),$(I,{channel:e})):void 0}var X=function(){var e=Z.apply(void 0,arguments);return e.payload.maybe=!0,e};function Y(e,t){return(0,i.vD)(t)&&(t=e,e=void 0),$(R,{channel:e,action:t})}var Q=function(){var e=Y.apply(void 0,arguments);return e.payload.resolve=!0,e};function J(e){var t=$(j,e);return t.combinator=!0,t}function ee(e){var t=$(D,e);return t.combinator=!0,t}function te(e,t){var n,r=null;return(0,i.Pc)(e)?n=e:((0,i.YO)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&(0,i.Yj)(n)&&(0,i.Pc)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function ne(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $(N,te(e,n))}function re(e,t,n){return void 0===n&&(n=[]),$(N,te([e,t],n))}function oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $(M,te(e,n))}function ie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $(L,te(e,n))}function ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return K(ie.apply(void 0,[e].concat(n)))}function se(e){return $(z,e)}function le(e){return void 0===e&&(e=r.Pe),$(W,e)}function ce(e){void 0===e&&(e=c);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $(B,{selector:e,args:n})}function ue(e,t){return $(F,{pattern:e,buffer:t})}function de(){return $(H,{})}function fe(e){return $(V,e)}function pe(e){return $(U,e)}function he(e){return $(G,e)}var me=ne.bind(null,a)},21225:(e,t,n)=>{"use strict";n.d(t,{HR:()=>h,Ix:()=>f,Pc:()=>a,T1:()=>d,YO:()=>l,Yj:()=>s,fD:()=>m,iv:()=>c,lJ:()=>u,mr:()=>p,uQ:()=>i,vD:()=>o});var r=n(63821),o=function(e){return null==e},i=function(e){return null!=e},a=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},l=Array.isArray,c=function(e){return e&&a(e.then)},u=function(e){return e&&a(e.next)&&a(e.throw)},d=function e(t){return t&&(s(t)||h(t)||a(t)||l(t)&&t.every(e))},f=function(e){return e&&a(e.take)&&a(e.close)},p=function(e){return a(e)&&e.hasOwnProperty("toString")},h=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},m=function(e){return f(e)&&e[r.Xl]}},63821:(e,t,n)=>{"use strict";n.d(t,{E_:()=>s,IO:()=>a,Pe:()=>u,Xl:()=>l,a6:()=>p,bO:()=>o,nm:()=>f,q8:()=>c,wn:()=>d,x2:()=>h,x7:()=>i});var r=function(e){return"@@redux-saga/"+e},o=r("CANCEL_PROMISE"),i=r("CHANNEL_END"),a=r("IO"),s=r("MATCH"),l=r("MULTICAST"),c=r("SAGA_ACTION"),u=r("SELF_CANCELLATION"),d=r("TASK"),f=r("TASK_CANCEL"),p=r("TERMINATE"),h=r("LOCATION")},69200:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y});var r,o=n(96540),i=n(40961),a=/^-?\d*\.?\d+(px|%)$/;function s(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length?e.some((function(n,r){return s(e[r],t[r])})):e!==t}var l=(r=Object.prototype).hasOwnProperty,c=r.toString,u=new Map;function d(e,t){var n=u.get(e);if(n)for(var r=n.values(),o=void 0;o=r.next().value;)if(o.target===t.target)return o;return null}function f(e,t){for(var n=0;n<e.length;n++){var r=d(t,e[n]);r&&r.handleChange(e[n])}}var p,h=(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},p(e,t)},function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=["root","rootMargin","threshold"],g=["root","rootMargin","threshold","disabled"],v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleChange=function(e){t.props.onChange(e,t.externalUnobserve)},t.handleNode=function(e){var n=t.props.children;if(function(e){return e&&l.call(e,"ref")}(n)){var r=n.ref;"function"==typeof r?r(e):r&&l.call(r,"current")&&(r.current=e)}if(t.targetNode=void 0,e){var o=(0,i.findDOMNode)(e);o&&1===o.nodeType&&(t.targetNode=o)}},t.observe=function(){if(null==t.props.children||t.props.disabled)return!1;if(!t.targetNode)throw new Error("ReactIntersectionObserver: Can't find DOM node in the provided children. Make sure to render at least one DOM node in the tree.");var e;return t.observer=function(e){var t=function(e){void 0===e&&(e={});for(var t,n=e.root||null,r=function(e){var t=(e?e.trim():"0px").split(/\s+/).map((function(e){if(!a.test(e))throw new Error("rootMargin must be a string literal containing pixels and/or percent values");return e})),n=t.shift(),r=t[0],o=void 0===r?n:r,i=t[1],s=void 0===i?n:i,l=t[2];return n+" "+o+" "+s+" "+(void 0===l?o:l)}(e.rootMargin),o=Array.isArray(e.threshold)?e.threshold:[null!=e.threshold?e.threshold:0],i=u.keys();t=i.next().value;)if(n===t.root&&r===t.rootMargin&&!s(o,t.thresholds))return t;return null}(e);if(t)return t;var n=new IntersectionObserver(f,e);return u.set(n,new Set),n}((e=t.props,m.reduce((function(t,n){var r,o="root"===n&&"[object String]"===c.call(e.root);return Object.assign(t,((r={})[n]=o?document.querySelector(e[n]):e[n],r))}),{}))),t.target=t.targetNode,function(e){var t;e.observer&&!u.has(e.observer)&&u.set(e.observer,new Set),null===(t=u.get(e.observer))||void 0===t||t.add(e),e.observer.observe(e.target)}(t),!0},t.unobserve=function(e){!function(e,t){if(u.has(e.observer)){var n=u.get(e.observer);(null==n?void 0:n.delete(e))&&(n.size>0?e.observer.unobserve(t):(e.observer.disconnect(),u.delete(e.observer)))}}(t,e)},t.externalUnobserve=function(){t.targetNode&&t.unobserve(t.targetNode)},t}return h(t,e),t.prototype.getSnapshotBeforeUpdate=function(e){var t=this;this.prevTargetNode=this.targetNode;var n=g.some((function(n){return s(t.props[n],e[n])}));return n&&this.prevTargetNode&&(e.disabled||this.unobserve(this.prevTargetNode)),n},t.prototype.componentDidUpdate=function(e,t,n){var r=!1;n||(r=this.prevTargetNode!==this.targetNode)&&null!=this.prevTargetNode&&this.unobserve(this.prevTargetNode),(n||r)&&this.observe()},t.prototype.componentDidMount=function(){this.observe()},t.prototype.componentWillUnmount=function(){this.targetNode&&this.unobserve(this.targetNode)},t.prototype.render=function(){var e=this.props.children;return null!=e?o.cloneElement(o.Children.only(e),{ref:this.handleNode}):null},t.displayName="IntersectionObserver",t}(o.Component);const y=v},40370:(e,t,n)=>{"use strict";var r=n(99798);function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o<r&&(r=o),e[o]||(e[o]=[]),e[o].push(i),t++},process:function(){for(var t=r;t<=n;t++)for(var o=e[t],i=0;i<o.length;i++)(0,o[i])()},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),i=r.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=o(),l=!1;function c(){for(l=!0;s.size();){var e=s;s=o(),e.process()}l=!1}function u(){a=setTimeout(c,0)}return{add:function(e,t){!l&&i&&n&&0===s.size()&&u(),s.add(e,t)},force:function(e){l||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?u():c())}}}},99798:e=>{"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}},38075:(e,t,n)=>{"use strict";var r=n(70453),o=n(10487),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},10487:(e,t,n)=>{"use strict";var r=n(66743),o=n(70453),i=n(96897),a=n(69675),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,s),u=n(30655),d=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,l,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(r,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},20053:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.r(t),n.d(t,{clsx:()=>o,default:()=>i});const i=o},17965:(e,t,n)=>{"use strict";var r=n(16426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},14744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||o,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(n);return c===Array.isArray(e)?c?l.arrayMerge(e,n,l):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,l):r(n,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;e.exports=l},30041:(e,t,n)=>{"use strict";var r=n(30655),o=n(58068),i=n(69675),a=n(75795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},50853:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HTML5DragTransition:()=>i,MouseTransition:()=>a,MultiBackend:()=>d,PreviewManager:()=>u,TouchTransition:()=>o,createTransition:()=>r,default:()=>f});const r=function(e,t){return{_isMBTransition:!0,event:e,check:t}};var o=r("touchstart",(function(e){return null!=e.touches})),i=r("dragstart",(function(e){return!!e.type&&(-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop"))})),a=r("mousedown",(function(e){return!!e.type&&-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse")}));function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=new function e(){var t=this;c(this,e),this.register=function(e){t.previews.push(e)},this.unregister=function(e){for(var n;-1!==(n=t.previews.indexOf(e));)t.previews.splice(n,1)},this.backendChanged=function(e){var n,r=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=s(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(t.previews);try{for(r.s();!(n=r.n()).done;)n.value.backendChanged(e)}catch(e){r.e(e)}finally{r.f()}},this.previews=[]},d=function e(t,n,r){var o=this;c(this,e),this.setup=function(){if("undefined"!=typeof window){if(o.constructor.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");o.constructor.isSetUp=!0,o.addEventListeners(window),o.backends[o.current].instance.setup()}},this.teardown=function(){"undefined"!=typeof window&&(o.constructor.isSetUp=!1,o.removeEventListeners(window),o.backends[o.current].instance.teardown())},this.connectDragSource=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.connectBackend("connectDragSource",t)},this.connectDragPreview=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.connectBackend("connectDragPreview",t)},this.connectDropTarget=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.connectBackend("connectDropTarget",t)},this.previewEnabled=function(){return o.backends[o.current].preview},this.addEventListeners=function(e){o.backends.forEach((function(t){t.transition&&e.addEventListener(t.transition.event,o.backendSwitcher,!0)}))},this.removeEventListeners=function(e){o.backends.forEach((function(t){t.transition&&e.removeEventListener(t.transition.event,o.backendSwitcher,!0)}))},this.backendSwitcher=function(e){var t=o.current,n=0;if(o.backends.some((function(t){return n!==o.current&&t.transition&&t.transition.check(e)?(o.current=n,!0):(n+=1,!1)})),o.current!==t){o.backends[t].instance.teardown(),Object.keys(o.nodes).forEach((function(e){var t=o.nodes[e];t.handler(),t.handler=o.callBackend(t.func,t.args)})),u.backendChanged(o);var r=o.backends[o.current];if(r.instance.setup(),r.skipDispatchOnTransition)return;var i=null;try{i=new e.constructor(e.type,e)}catch(t){(i=document.createEvent("Event")).initEvent(e.type,e.bubbles,e.cancelable)}e.target.dispatchEvent(i)}},this.callBackend=function(e,t){var n,r;return(n=o.backends[o.current].instance)[e].apply(n,function(e){if(Array.isArray(e))return l(e)}(r=t)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||s(r)||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.")}())},this.connectBackend=function(e,t){var n="".concat(e,"_").concat(t[0]),r=o.callBackend(e,t);return o.nodes[n]={func:e,args:t,handler:r},function(){var e,t=(e=o.nodes[n]).handler.apply(e,arguments);return delete o.nodes[n],t}};var i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach((function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}({backends:[]},r||{});if(i.backends.length<1)throw new Error("You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx");this.current=0,this.backends=[],i.backends.forEach((function(e){if(!e.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(e));var r=e.transition;if(r&&!r._isMBTransition)throw new Error("You must specify a valid 'transition' property (either undefined or the return of 'createTransition') in your Backend entry: ".concat(e));o.backends.push({instance:e.backend(t,n,e.options),preview:e.preview||!1,transition:r,skipDispatchOnTransition:Boolean(e.skipDispatchOnTransition)})})),this.nodes={}};const f=function(e,t,n){return new d(e,t,n)}},42838:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},n.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(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){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(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 o(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 i=Object.hasOwnProperty,a=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,d=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,h=p.apply,m=p.construct;h||(h=function(e,t,n){return e.apply(t,n)}),u||(u=function(e){return e}),d||(d=function(e){return e}),m||(m=function(e,t){return n(e,r(t))});var g,v=T(Array.prototype.forEach),y=T(Array.prototype.pop),b=T(Array.prototype.push),w=T(String.prototype.toLowerCase),E=T(String.prototype.toString),x=T(String.prototype.match),O=T(String.prototype.replace),S=T(String.prototype.indexOf),A=T(String.prototype.trim),_=T(RegExp.prototype.test),C=(g=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(g,t)});function T(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return h(e,t,r)}}function k(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:w,a&&a(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var l=n(i);l!==i&&(s(t)||(t[o]=l),i=l)}e[i]=!0}return e}function P(e){var t,n=f(null);for(t in e)!0===h(i,e,[t])&&(n[t]=e[t]);return n}function I(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return T(n.get);if("function"==typeof n.value)return T(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var R=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),j=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),L=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=u(["#text"]),W=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=d(/<%[\w\W]*|[\w\W]*%>/gm),G=d(/\${[\w\W]*}/gm),q=d(/^data-[\-\w.\u00B7-\uFFFF]/),$=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=d(/^(?:\w+script|data):/i),X=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=d(/^html$/i),Q=d(/^[a-z][.\w]*(-[.\w]+)+$/i),J=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),o=function(e){return t(e)};if(o.version="2.5.7",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var i=n.document,a=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,d=n.Element,f=n.NodeFilter,p=n.NamedNodeMap,h=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,m=n.HTMLFormElement,g=n.DOMParser,T=n.trustedTypes,ee=d.prototype,te=I(ee,"cloneNode"),ne=I(ee,"nextSibling"),re=I(ee,"childNodes"),oe=I(ee,"parentNode");if("function"==typeof l){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(T,i),se=ae?ae.createHTML(""):"",le=a,ce=le.implementation,ue=le.createNodeIterator,de=le.createDocumentFragment,fe=le.getElementsByTagName,pe=i.importNode,he={};try{he=P(a).documentMode?a.documentMode:{}}catch(e){}var me={};o.isSupported="function"==typeof oe&&ce&&void 0!==ce.createHTMLDocument&&9!==he;var ge,ve,ye=V,be=U,we=G,Ee=q,xe=$,Oe=Z,Se=X,Ae=Q,_e=K,Ce=null,Te=k({},[].concat(r(R),r(j),r(D),r(M),r(z))),ke=null,Pe=k({},[].concat(r(W),r(B),r(F),r(H))),Ie=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Re=null,je=null,De=!0,Ne=!0,Me=!1,Le=!0,ze=!1,We=!0,Be=!1,Fe=!1,He=!1,Ve=!1,Ue=!1,Ge=!1,qe=!0,$e=!1,Ke=!0,Ze=!1,Xe={},Ye=null,Qe=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Je=null,et=k({},["audio","video","img","source","image","track"]),tt=null,nt=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",at=it,st=!1,lt=null,ct=k({},[rt,ot,it],E),ut=["application/xhtml+xml","text/html"],dt=null,ft=a.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=P(t),ge=ge=-1===ut.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ge?E:w,Ce="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS,ve):Te,ke="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR,ve):Pe,lt="ALLOWED_NAMESPACES"in t?k({},t.ALLOWED_NAMESPACES,E):ct,tt="ADD_URI_SAFE_ATTR"in t?k(P(nt),t.ADD_URI_SAFE_ATTR,ve):nt,Je="ADD_DATA_URI_TAGS"in t?k(P(et),t.ADD_DATA_URI_TAGS,ve):et,Ye="FORBID_CONTENTS"in t?k({},t.FORBID_CONTENTS,ve):Qe,Re="FORBID_TAGS"in t?k({},t.FORBID_TAGS,ve):{},je="FORBID_ATTR"in t?k({},t.FORBID_ATTR,ve):{},Xe="USE_PROFILES"in t&&t.USE_PROFILES,De=!1!==t.ALLOW_ARIA_ATTR,Ne=!1!==t.ALLOW_DATA_ATTR,Me=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ze=t.SAFE_FOR_TEMPLATES||!1,We=!1!==t.SAFE_FOR_XML,Be=t.WHOLE_DOCUMENT||!1,Ve=t.RETURN_DOM||!1,Ue=t.RETURN_DOM_FRAGMENT||!1,Ge=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,qe=!1!==t.SANITIZE_DOM,$e=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,Ze=t.IN_PLACE||!1,_e=t.ALLOWED_URI_REGEXP||_e,at=t.NAMESPACE||it,Ie=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ze&&(Ne=!1),Ue&&(Ve=!0),Xe&&(Ce=k({},r(z)),ke=[],!0===Xe.html&&(k(Ce,R),k(ke,W)),!0===Xe.svg&&(k(Ce,j),k(ke,B),k(ke,H)),!0===Xe.svgFilters&&(k(Ce,D),k(ke,B),k(ke,H)),!0===Xe.mathMl&&(k(Ce,M),k(ke,F),k(ke,H))),t.ADD_TAGS&&(Ce===Te&&(Ce=P(Ce)),k(Ce,t.ADD_TAGS,ve)),t.ADD_ATTR&&(ke===Pe&&(ke=P(ke)),k(ke,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&k(tt,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Ye===Qe&&(Ye=P(Ye)),k(Ye,t.FORBID_CONTENTS,ve)),Ke&&(Ce["#text"]=!0),Be&&k(Ce,["html","head","body"]),Ce.table&&(k(Ce,["tbody"]),delete Re.tbody),u&&u(t),dt=t)},mt=k({},["mi","mo","mn","ms","mtext"]),gt=k({},["annotation-xml"]),vt=k({},["title","style","font","a","script"]),yt=k({},j);k(yt,D),k(yt,N);var bt=k({},M);k(bt,L);var wt=function(e){b(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},Et=function(e,t){try{b(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Ve||Ue)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){var t,n;if(He)e="<remove></remove>"+e;else{var r=x(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&at===it&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(at===it)try{t=(new g).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(at,"template",null);try{t.documentElement.innerHTML=st?se:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),at===it?fe.call(t,Be?"html":"body")[0]:Be?t.documentElement:i},Ot=function(e){return ue.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null,!1)},St=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){me[e]&&v(me[e],(function(e){e.call(o,t,n,dt)}))},Ct=function(e){var t;if(_t("beforeSanitizeElements",e,null),St(e))return wt(e),!0;if(_(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var n=ve(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:n,allowedTags:Ce}),e.hasChildNodes()&&!At(e.firstElementChild)&&(!At(e.content)||!At(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===n&&_(/<template/i,e.innerHTML))return wt(e),!0;if(7===e.nodeType)return wt(e),!0;if(We&&8===e.nodeType&&_(/<[/\w]/g,e.data))return wt(e),!0;if(!Ce[n]||Re[n]){if(!Re[n]&&kt(n)){if(Ie.tagNameCheck instanceof RegExp&&_(Ie.tagNameCheck,n))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))return!1}if(Ke&&!Ye[n]){var r=oe(e)||e.parentNode,i=re(e)||e.childNodes;if(i&&r)for(var a=i.length-1;a>=0;--a){var s=te(i[a],!0);s.__removalCount=(e.__removalCount||0)+1,r.insertBefore(s,ne(e))}}return wt(e),!0}return e instanceof d&&!function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});var n=w(e.tagName),r=w(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===it?"svg"===n:t.namespaceURI===rt?"svg"===n&&("annotation-xml"===r||mt[r]):Boolean(yt[n]):e.namespaceURI===rt?t.namespaceURI===it?"math"===n:t.namespaceURI===ot?"math"===n&>[r]:Boolean(bt[n]):e.namespaceURI===it?!(t.namespaceURI===ot&&!gt[r])&&!(t.namespaceURI===rt&&!mt[r])&&!bt[n]&&(vt[n]||!yt[n]):!("application/xhtml+xml"!==ge||!lt[e.namespaceURI]))}(e)?(wt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(ze&&3===e.nodeType&&(t=e.textContent,t=O(t,ye," "),t=O(t,be," "),t=O(t,we," "),e.textContent!==t&&(b(o.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(wt(e),!0)},Tt=function(e,t,n){if(qe&&("id"===t||"name"===t)&&(n in a||n in ft))return!1;if(Ne&&!je[t]&&_(Ee,t));else if(De&&_(xe,t));else if(!ke[t]||je[t]){if(!(kt(e)&&(Ie.tagNameCheck instanceof RegExp&&_(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&_(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&_(Ie.tagNameCheck,n)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))))return!1}else if(tt[t]);else if(_(_e,O(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Je[e])if(Me&&!_(Oe,O(n,Se,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&x(e,Ae)},Pt=function(t){var n,r,i,a;_t("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(a=s.length;a--;){var c=n=s[a],u=c.name,d=c.namespaceURI;if(r="value"===u?n.value:A(n.value),i=ve(u),l.attrName=i,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,l),r=l.attrValue,!l.forceKeepAttr&&(Et(u,t),l.keepAttr))if(Le||!_(/\/>/i,r)){ze&&(r=O(r,ye," "),r=O(r,be," "),r=O(r,we," "));var f=ve(t.nodeName);if(Tt(f,i,r))if(!$e||"id"!==i&&"name"!==i||(Et(u,t),r="user-content-"+r),We&&_(/((--!?|])>)|<\/(style|title)/i,r))Et(u,t);else{if(ae&&"object"===e(T)&&"function"==typeof T.getAttributeType)if(d);else switch(T.getAttributeType(f,i)){case"TrustedHTML":r=ae.createHTML(r);break;case"TrustedScriptURL":r=ae.createScriptURL(r)}try{d?t.setAttributeNS(d,u,r):t.setAttribute(u,r),St(t)?wt(t):y(o.removed)}catch(e){}}}else Et(u,t)}_t("afterSanitizeAttributes",t,null)}},It=function e(t){var n,r=Ot(t);for(_t("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)_t("uponSanitizeShadowNode",n,null),Ct(n)||(n.content instanceof s&&e(n.content),Pt(n));_t("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(t){var r,a,l,u,d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((st=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!At(t)){if("function"!=typeof t.toString)throw C("toString is not a function");if("string"!=typeof(t=t.toString()))throw C("dirty is not a string, aborting")}if(!o.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(At(t))return n.toStaticHTML(t.outerHTML)}return t}if(Fe||ht(f),o.removed=[],"string"==typeof t&&(Ze=!1),Ze){if(t.nodeName){var p=ve(t.nodeName);if(!Ce[p]||Re[p])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(a=(r=xt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Ve&&!ze&&!Be&&-1===t.indexOf("<"))return ae&&Ge?ae.createHTML(t):t;if(!(r=xt(t)))return Ve?null:Ge?se:""}r&&He&&wt(r.firstChild);for(var h=Ot(Ze?t:r);l=h.nextNode();)3===l.nodeType&&l===u||Ct(l)||(l.content instanceof s&&It(l.content),Pt(l),u=l);if(u=null,Ze)return t;if(Ve){if(Ue)for(d=de.call(r.ownerDocument);r.firstChild;)d.appendChild(r.firstChild);else d=r;return(ke.shadowroot||ke.shadowrootmod)&&(d=pe.call(i,d,!0)),d}var m=Be?r.outerHTML:r.innerHTML;return Be&&Ce["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&_(Y,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),ze&&(m=O(m,ye," "),m=O(m,be," "),m=O(m,we," ")),ae&&Ge?ae.createHTML(m):m},o.setConfig=function(e){ht(e),Fe=!0},o.clearConfig=function(){dt=null,Fe=!1},o.isValidAttribute=function(e,t,n){dt||ht({});var r=ve(e),o=ve(t);return Tt(r,o,n)},o.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],b(me[e],t))},o.removeHook=function(e){if(me[e])return y(me[e])},o.removeHooks=function(e){me[e]&&(me[e]=[])},o.removeAllHooks=function(){me={}},o}()}()},44581:e=>{"use strict";var t=e.exports={};t.isIE=function(e){return!(-1===(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===t.indexOf("trident")&&-1===t.indexOf(" edge/")||e&&e!==function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},t.isLegacyOpera=function(){return!!window.opera}},24660:e=>{"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},26057:(e,t,n)=>{"use strict";var r=n(44581);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function i(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function a(e){return o(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,r.isIE(8)?s(a):function(a,s){var l=i(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,u=window.getComputedStyle(a),d=a.offsetWidth,f=a.offsetHeight;function p(){function n(){if("static"===u.position){a.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,o){var i=r[o];"auto"!==i&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+o+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",n),n.style.setProperty(o,"0",e.important?"important":""))};n(t,a,u,"top"),n(t,a,u,"right"),n(t,a,u,"bottom"),n(t,a,u,"left")}}""!==u.position&&(n(),c=!0);var i=document.createElement("object");i.style.cssText=l,i.tabIndex=-1,i.type="text/html",i.setAttribute("aria-hidden","true"),i.onload=function(){c||n(),function e(t,n){if(!t.contentDocument){var r=o(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(a)}))},r.isIE()||(i.data="about:blank"),o(a)&&(a.appendChild(i),o(a).object=i,r.isIE()&&(i.data="about:blank"))}o(a).startSize={width:d,height:f},n?n.add(p):p()}(a,s)},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))o(e).object={proxy:n},e.attachEvent("onresize",n);else{var i=a(e);if(!i)throw new Error("Element is not detectable by this strategy.");i.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(o(e)){var t=a(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),o(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(e).checkForObjectDocumentTimeoutId),delete o(e).object)}}}}},57055:(e,t,n)=>{"use strict";var r=n(24660).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState,i=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=function(){var e=document.createElement("div");e.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,r=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:r}}(),s="erd_scroll_detection_container";function l(e){!function(e,t,n){if(!e.getElementById(t)){var r=n+"_animation",o=n+"_animation_active",i="/* Created by the element-resize-detector library. */\n";i+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",i+="."+o+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",i+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");o.innerHTML=n,o.id=t,r(o)}(i+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",s)}function c(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function d(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function f(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,l,d){function h(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function m(e){var t=o(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function g(){var e=window.getComputedStyle(l),t={};return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(h("storeStyle invoked."),o(l)){var e=g();o(l).style=e}else h("Aborting because element has been uninstalled")}function y(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function b(){return 2*a.width+1}function w(){return 2*a.height+1}function E(e){return e+10+b()}function x(e){return e+10+w()}function O(e,t,n){var r=f(e),o=p(e),i=E(t),a=x(n),s=function(e){return 2*e+b()}(t),l=function(e){return 2*e+w()}(n);r.scrollLeft=i,r.scrollTop=a,o.scrollLeft=s,o.scrollTop=l}function S(){var e=o(l).container;if(!e){(e=document.createElement("div")).className=s,e.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(l).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),l.appendChild(e);var t=function(){o(l).onRendered&&o(l).onRendered()};u(e,"animationstart",t),o(l).onAnimationStart=t}return e}function A(){if(h("Injecting elements"),o(l)){!function(){var n=o(l).style;if("static"===n.position){l.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,l,n,"top"),r(t,l,n,"right"),r(t,l,n,"bottom"),r(t,l,n,"left")}}();var n=o(l).container;n||(n=S());var r,i,d,f,p=a.width,m=a.height,g=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+p))?r+"px":"0"),"top: "+(i=(i=-(1+m))?i+"px":"0"),"right: "+(f=(f=-p)?f+"px":"0"),"bottom: "+(d=(d=-m)?d+"px":"0")])),y=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=c(["position: absolute","left: 0","top: 0"]),E=c(["position: absolute","width: 200%","height: 200%"]),x=document.createElement("div"),O=document.createElement("div"),A=document.createElement("div"),_=document.createElement("div"),C=document.createElement("div"),T=document.createElement("div");x.dir="ltr",x.style.cssText=g,x.className=s,O.className=s,O.style.cssText=v,A.style.cssText=y,_.style.cssText=w,C.style.cssText=b,T.style.cssText=E,A.appendChild(_),C.appendChild(T),O.appendChild(A),O.appendChild(C),x.appendChild(O),n.appendChild(x),u(A,"scroll",k),u(C,"scroll",P),o(l).onExpandScroll=k,o(l).onShrinkScroll=P}else h("Aborting because element has been uninstalled");function k(){var e=o(l);e&&e.onExpand?e.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function P(){var e=o(l);e&&e.onShrink?e.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}}function _(){function a(t,n,r){var o=function(e){return f(e).childNodes[0]}(t),i=E(n),a=x(r);o.style.setProperty("width",i+"px",e.important?"important":""),o.style.setProperty("height",a+"px",e.important?"important":"")}function s(r){var s=l.offsetWidth,u=l.offsetHeight,d=s!==o(l).lastWidth||u!==o(l).lastHeight;h("Storing current size",s,u),y(l,s,u),n.add(0,(function(){if(d)if(o(l))if(c()){if(e.debug){var n=l.offsetWidth,r=l.offsetHeight;n===s&&r===u||t.warn(i.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,u)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){o(l)?c()?O(l,s,u):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),d&&r&&n.add(2,(function(){o(l)?c()?r():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function c(){return!!o(l).container}function u(){h("notifyListenersIfNeeded invoked");var e=o(l);return void 0===o(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(o(l).listeners,(function(e){e(l)})))}function d(){h("Scroll detected."),m(l)?h("Scroll event fired while unrendered. Ignoring..."):s(u)}if(h("registerListenersAndPositionElements invoked."),o(l)){o(l).onRendered=function(){if(h("startanimation triggered."),m(l))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=f(l),t=p(l);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),s(u))}},o(l).onExpand=d,o(l).onShrink=d;var g=o(l).style;a(l,g.width,g.height)}else h("Aborting because element has been uninstalled")}function C(){if(h("finalizeDomMutation invoked."),o(l)){var e=o(l).style;y(l,e.width,e.height),O(l,e.width,e.height)}else h("Aborting because element has been uninstalled")}function T(){d(l)}function k(){var e;h("Installing..."),o(l).listeners=[],e=g(),o(l).startSize={width:e.width,height:e.height},h("Element start size",o(l).startSize),n.add(0,v),n.add(1,A),n.add(2,_),n.add(3,C),n.add(4,T)}d||(d=l,l=e,e=null),e=e||{},h("Making detectable..."),function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(l)?(h("Element is detached"),S(),h("Waiting until element is attached..."),o(l).onRendered=function(){h("Element is now attached"),k()}):k()},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&d(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&d(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&d(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},22558:(e,t,n)=>{"use strict";var r=n(24660).forEach,o=n(28182),i=n(43933),a=n(90265),s=n(98860),l=n(20569),c=n(44581),u=n(40370),d=n(51766),f=n(26057),p=n(57055);function h(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function g(e){return e&&1===e.nodeType}function v(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=a(),y=s({idGenerator:n,stateHandler:d});t=y}var b=e.reporter;b||(b=l(!1===b));var w=v(e,"batchProcessor",u({reporter:b})),E={};E.callOnAdd=!!v(e,"callOnAdd",!0),E.debug=!!v(e,"debug",!1);var x,O=i(t),S=o({stateHandler:d}),A=v(e,"strategy","object"),_=v(e,"important",!1),C={reporter:b,batchProcessor:w,stateHandler:d,idHandler:t,important:_};if("scroll"===A&&(c.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),A="object"):c.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),A="object")),"scroll"===A)x=p(C);else{if("object"!==A)throw new Error("Invalid strategy name: "+A);x=f(C)}var T={};return{listenTo:function(e,n,o){function i(e){var t=O.get(e);r(t,(function(t){t(e)}))}function a(e,t,n){O.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(g(n))n=[n];else{if(!h(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=m(n)}var s=0,l=v(e,"callOnAdd",E.callOnAdd),c=v(e,"onReady",(function(){})),u=v(e,"debug",E.debug);r(n,(function(e){d.getState(e)||(d.initState(e),t.set(e));var f=t.get(e);if(u&&b.log("Attaching listener to element",f,e),!S.isDetectable(e))return u&&b.log(f,"Not detectable."),S.isBusy(e)?(u&&b.log(f,"System busy making it detectable"),a(l,e,o),T[f]=T[f]||[],void T[f].push((function(){++s===n.length&&c()}))):(u&&b.log(f,"Making detectable..."),S.markBusy(e,!0),x.makeDetectable({debug:u,important:_},e,(function(e){if(u&&b.log(f,"onElementDetectable"),d.getState(e)){S.markAsDetectable(e),S.markBusy(e,!1),x.addListener(e,i),a(l,e,o);var t=d.getState(e);if(t&&t.startSize){var p=e.offsetWidth,h=e.offsetHeight;t.startSize.width===p&&t.startSize.height===h||i(e)}T[f]&&r(T[f],(function(e){e()}))}else u&&b.log(f,"Element uninstalled before being detectable.");delete T[f],++s===n.length&&c()})));u&&b.log(f,"Already detecable, adding listener."),a(l,e,o),s++})),s===n.length&&c()},removeListener:O.removeListener,removeAllListeners:O.removeAllListeners,uninstall:function(e){if(!e)return b.error("At least one element is required.");if(g(e))e=[e];else{if(!h(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=m(e)}r(e,(function(e){O.removeAllListeners(e),x.uninstall(e),d.cleanState(e)}))},initDocument:function(e){x.initDocument&&x.initDocument(e)}}}},28182:e=>{"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},90265:e=>{"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},98860:e=>{"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return r.id=o,o}}}},43933:e=>{"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,i=r.length;o<i;++o)if(r[o]===t){r.splice(o,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},20569:e=>{"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},51766:e=>{"use strict";var t="_erd";function n(e){return e[t]}e.exports={initState:function(e){return e[t]={},n(e)},getState:n,cleanState:function(e){delete e[t]}}},30655:(e,t,n)=>{"use strict";var r=n(70453)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},41237:e=>{"use strict";e.exports=EvalError},69383:e=>{"use strict";e.exports=Error},79290:e=>{"use strict";e.exports=RangeError},79538:e=>{"use strict";e.exports=ReferenceError},58068:e=>{"use strict";e.exports=SyntaxError},69675:e=>{"use strict";e.exports=TypeError},35345:e=>{"use strict";e.exports=URIError},66405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},o=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],i=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],a=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],s="undefined"!=typeof window&&void 0!==window.document?window.document:{},l="fullscreenEnabled"in s&&Object.keys(r)||o[0]in s&&o||i[0]in s&&i||a[0]in s&&a||[];const c={requestFullscreen:function(e){return e[l[r.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[l[r.requestFullscreen]]},get exitFullscreen(){return s[l[r.exitFullscreen]].bind(s)},get fullscreenPseudoClass(){return":"+l[r.fullscreen]},addEventListener:function(e,t,n){return s.addEventListener(l[r[e]],t,n)},removeEventListener:function(e,t,n){return s.removeEventListener(l[r[e]],t,n)},get fullscreenEnabled(){return Boolean(s[l[r.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return s[l[r.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return s[("on"+l[r.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return s[("on"+l[r.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return s[("on"+l[r.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return s[("on"+l[r.fullscreenerror]).toLowerCase()]=e}}},89353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},66743:(e,t,n)=>{"use strict";var r=n(89353);e.exports=Function.prototype.bind||r},70453:(e,t,n)=>{"use strict";var r,o=n(69383),i=n(41237),a=n(79290),s=n(79538),l=n(58068),c=n(69675),u=n(35345),d=Function,f=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var h=function(){throw new c},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(e){return h}}}():h,g=n(64039)(),v=n(80024)(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},w="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(e){var x=y(y(e));E["%Error.prototype%"]=x}var O=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return E[t]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=n(66743),_=n(9957),C=A.call(Function.call,Array.prototype.concat),T=A.call(Function.apply,Array.prototype.splice),k=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),I=A.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,D=function(e,t){var n,r=e;if(_(S,r)&&(r="%"+(n=S[r])[0]+"%"),_(E,r)){var o=E[r];if(o===b&&(o=O(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,R,(function(e,t,n,o){r[r.length]=n?k(o,j,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=D("%"+r+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(r=u[0],T(n,C([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=P(h,0,1),g=P(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),_(E,i="%"+(r+="."+h)+"%"))a=E[i];else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var v=p(a,h);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[h]}else f=_(a,h),a=a[h];f&&!s&&(E[i]=a)}}return a}},75795:(e,t,n)=>{"use strict";var r=n(70453)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},30592:(e,t,n)=>{"use strict";var r=n(30655),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},80024:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},64039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(41333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},41333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9957:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(66743);e.exports=i.call(r,o)},4146:(e,t,n)=>{"use strict";var r=n(73404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{c(t,v,y)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||E(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},73404:(e,t,n)=>{"use strict";e.exports=n(3072)},22645:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(96540)),a=s(n(5556));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onReceiveMessage=n.onReceiveMessage.bind(n),n.onLoad=n.onLoad.bind(n),n.sendMessage=n.sendMessage.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.onReceiveMessage),this._frame&&this._frame.addEventListener("load",this.onLoad)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.onReceiveMessage,!1)}},{key:"componentWillReceiveProps",value:function(e){this.props.postMessageData!==e.postMessageData&&this.sendMessage(e.postMessageData)}},{key:"onReceiveMessage",value:function(e){var t=this.props.handleReceiveMessage;t&&t(e)}},{key:"onLoad",value:function(){var e=this.props.handleReady;e&&e(),this.sendMessage(this.props.postMessageData)}},{key:"sendMessage",value:function(e){this._frame.contentWindow.postMessage(e,this.props.targetOrigin)}},{key:"render",value:function(){var e=this,n=this.props.attributes;return i.default.createElement("iframe",r({ref:function(t){e._frame=t}},Object.assign({},t.defaultAttributes,n)))}}]),t}(i.default.Component);l.propTypes={attributes:a.default.shape({frameBorder:a.default.oneOfType([a.default.string,a.default.number]),height:a.default.oneOfType([a.default.string,a.default.number]),name:a.default.string,scrolling:a.default.string,sandbox:a.default.string,srcDoc:a.default.string,src:a.default.string.isRequired,width:a.default.oneOfType([a.default.string,a.default.number])}),handleReceiveMessage:a.default.func,handleReady:a.default.func,postMessageData:a.default.any,targetOrigin:a.default.string},l.defaultProps={targetOrigin:"*"},l.defaultAttributes={frameBorder:0},t.A=l},46894:(e,t)=>{"use strict";function n(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var r="object"==typeof process&&!0;function o(e,t){if(!e){if(r)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=o;var i=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString;function l(e){return s.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return u(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var f=function(){function e(){this.commands=c({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,r="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(r)||o(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),o("object"==typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var a=e;return u(r).forEach((function(t){if(i.call(n.commands,t)){var o=e===a;a=n.commands[t](r[t],a,r,e),o&&n.isEquals(a,e)&&(a=e)}else{var s="Map"===l(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),c="Map"===l(a)?a.get(t):a[t];n.isEquals(s,c)&&(void 0!==s||i.call(e,t))||(a===e&&(a=d(e)),"Map"===l(a)?a.set(t,s):a[t]=s)}})),a},e}();t.Context=f;var p={$push:function(e,t,n){return m(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return m(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,i){return function(e,t){o(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+n(e)})),v(t.$splice)}(t,r),e.forEach((function(e){v(e),t===i&&e.length&&(t=d(i)),a.apply(t,e)})),t},$set:function(e,t,n){return function(e){o(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),e},$toggle:function(e,t){g(e,"$toggle");var n=e.length?d(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return g(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=d(r)),delete t[e])})),t},$add:function(e,t,n,r){return y(t,"$add"),g(e,"$add"),"Map"===l(t)?e.forEach((function(e){var n=e[0],o=e[1];t===r&&t.get(n)!==o&&(t=d(r)),t.set(n,o)})):e.forEach((function(e){t!==r||t.has(e)||(t=d(r)),t.add(e)})),t},$remove:function(e,t,n,r){return y(t,"$remove"),g(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=d(r)),t.delete(e)})),t},$merge:function(e,t,r,i){var a,s;return a=t,o((s=e)&&"object"==typeof s,(function(){return"update(): $merge expects a spec of type 'object'; got "+n(s)})),o(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+n(a)})),u(e).forEach((function(n){e[n]!==t[n]&&(t===i&&(t=d(i)),t[n]=e[n])})),t},$apply:function(e,t){var r;return o("function"==typeof(r=e),(function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."})),e(t)}},h=new f;function m(e,t,r){o(Array.isArray(e),(function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(e)+"."})),g(t[r],r)}function g(e,t){o(Array.isArray(e),(function(){return"update(): expected spec of "+n(t)+" to be an array; got "+n(e)+". Did you forget to wrap your parameter in an array?"}))}function v(e){o(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(e)+". Did you forget to wrap your parameters in an array?"}))}function y(e,t){var r=l(e);o("Map"===r||"Set"===r,(function(){return"update(): "+n(t)+" expects a target of type Set or Map; got "+n(r)}))}t.isEquals=h.update.isEquals,t.extend=h.extend,t.default=h.update,t.default.default=e.exports=c(t.default,t)},95127:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[],n=null,r=null;i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?u(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},i._resetCrossOriginUpdater=function(){n=null,r=null},i.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},i.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},i.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,i=null;if(this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(i=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),s(e,"resize",r,!0)),s(t,"scroll",r,!0),i&&i.disconnect()})),t!=(this.root&&this.root.ownerDocument||e)){var l=p(t);l&&this._monitorIntersections(l.ownerDocument)}}},i.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&this.root.ownerDocument||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=p(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=r){var a=p(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},i.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,a=l(i),s=this._rootContainsTarget(i),c=r.entry,u=e&&s&&this._computeTargetAndRootIntersection(i,a,t),d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n&&!this.root?null:t,intersectionRect:u});c?e&&s?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},i.prototype._computeTargetAndRootIntersection=function(t,o,i){if("none"!=window.getComputedStyle(t).display){for(var a,s,c,d,p,h,m,g,v=o,y=f(t),b=!1;!b&&y;){var w=null,E=1==y.nodeType?window.getComputedStyle(y):{};if("none"==E.display)return null;if(y==this.root||9==y.nodeType)if(b=!0,y==this.root||y==e)n&&!this.root?!r||0==r.width&&0==r.height?(y=null,w=null,v=null):w=r:w=i;else{var x=f(y),O=x&&l(x),S=x&&this._computeTargetAndRootIntersection(x,O,i);O&&S?(y=x,w=u(O,S)):(y=null,v=null)}else{var A=y.ownerDocument;y!=A.body&&y!=A.documentElement&&"visible"!=E.overflow&&(w=l(y))}if(w&&(a=w,s=v,void 0,void 0,void 0,void 0,void 0,void 0,c=Math.max(a.top,s.top),d=Math.min(a.bottom,s.bottom),p=Math.max(a.left,s.left),g=d-c,v=(m=(h=Math.min(a.right,s.right))-p)>=0&&g>=0&&{top:c,bottom:d,left:p,right:h,width:m,height:g}||null),!v)break;y=y&&f(y)}return v}},i.prototype._getRootRect=function(){var t;if(this.root)t=l(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},i.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},i.prototype._rootContainsTarget=function(t){return d(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=o}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=c(e.rootBounds),this.boundingClientRect=c(e.boundingClientRect),this.intersectionRect=c(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var n,r,o,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function l(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function u(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?p(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}function p(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}}()},20311:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},94175:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType},50916:(e,t,n)=>{e.exports=self.fetch||(self.fetch=n(76782).default||n(76782))},27571:(e,t,n)=>{"use strict";var r=n(45431),o=r.default||r;t.A=function(e){var t=void 0===e?{}:e,n=t.enabled,r=void 0===n||n,i=t.opt,a=void 0===i?"out":i;return{onProcessStyle:function(e,t,n){if("font-face"===t.type)return e;if(!r)return"boolean"==typeof e.flip&&delete e.flip,e;var i="out"===a;return"boolean"==typeof n.options.flip&&(i=n.options.flip),"boolean"==typeof e.flip&&(i=e.flip,delete e.flip),i?o("function"==typeof t.toJSON?t.toJSON():e):e}}}},73317:(e,t,n)=>{"use strict";n.d(t,{D_:()=>d,SN:()=>Y,Sg:()=>p,VZ:()=>K,ih:()=>ve,rN:()=>ge,vt:()=>me});var r=n(58168),o=n(94175),i=n(92901),a=n(77387),s=n(9417),l=n(98587),c={}.constructor;function u(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(u);if(e.constructor!==c)return e;var t={};for(var n in e)t[n]=u(e[n]);return t}function d(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=u(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var f=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},p=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=f(e[n]," ");else t=f(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function h(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function m(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function g(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=h(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var g=d[f];null!=g&&(r&&(r+=l),r+=m(f+":"+c+p(g)+";",i))}}else for(var v in a){var y=a[v];null!=y&&(r&&(r+=l),r+=m(v+":"+c+p(y)+";",i))}for(var b in t){var w=t[b];null!=w&&"fallbacks"!==b&&(r&&(r+=l),r+=m(b+":"+c+p(w)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),m(""+e+c+"{"+r,--i)+m("}",i)):r}var v=/([[\].#*$><+~=|^:(),"'`\s])/g,y="undefined"!=typeof CSS&&CSS.escape,b=function(e){return y?y(e):e.replace(v,"\\$1")},w=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),E=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,c=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=c((0,s.A)((0,s.A)(o)),l),o.selectorText="."+b(o.id)),o}(0,a.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=p(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.A)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},(0,i.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(w),x={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new E(e,t,n)}},O={indent:1,children:!0},S=/@([\w-]+)/,A=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var o=e.match(S);for(var i in this.at=o?o[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new K((0,r.A)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=O);var t=h(e).linebreak;if(null==e.indent&&(e.indent=O.indent),null==e.children&&(e.children=O.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),_=/@container|@media|@supports\s+/,C={onCreateRule:function(e,t,n){return _.test(e)?new A(e,t,n):null}},T={indent:1,children:!0},k=/@keyframes\s+([\w-]+)/,P=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=e.match(k);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:b(s(this,a)),this.rules=new K((0,r.A)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,r.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=T);var t=h(e).linebreak;if(null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),I=/@keyframes\s+/,R=/\$([\w-]+)/g,j=function(e,t){return"string"==typeof e?e.replace(R,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],o=j(r,n);o!==r&&(e[t]=o)},N={onCreateRule:function(e,t,n){return"string"==typeof e&&I.test(e)?new P(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return j(e,r.keyframes);default:return e}}},M=function(e){function t(){return e.apply(this,arguments)||this}return(0,a.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.A)({},e,{allowEmpty:!0}):e;return g(this.key,this.style,n)},t}(w),L={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new M(e,t,n):null}},z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=h(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=g(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return g(this.at,this.style,e)},e}(),W=/@font-face/,B={onCreateRule:function(e,t,n){return W.test(e)?new z(e,t,n):null}},F=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return g(this.key,this.style,e)},e}(),H={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new F(e,t,n):null}},V=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),U={"@charset":!0,"@import":!0,"@namespace":!0},G=[x,C,N,L,B,H,{onCreateRule:function(e,t,n){return e in U?new V(e,t,n):null}}],q={process:!0},$={force:!0,process:!0},K=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var o=this.options,i=o.parent,a=o.sheet,s=o.jss,l=o.Renderer,c=o.generateId,u=o.scoped,f=(0,r.A)({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(f.selector="."+b(this.classes[p]));var h=d(p,t,f);if(!h)return null;this.register(h);var m=void 0===f.index?this.index.length:f.index;return this.index.splice(m,0,h),h},t.replace=function(e,t,n){var o=this.get(e),i=this.index.indexOf(o);o&&this.remove(o);var a=n;return-1!==i&&(a=(0,r.A)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof E?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof P&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof E?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof P&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=q);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,$)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,$)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=h(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Z=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,r.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new K(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),X=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Y=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,l.A)(t,["attached"]),o=h(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},(0,i.A)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Q=new Y,J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";null==J[ee]&&(J[ee]=0);var te=J[ee]++,ne=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+te+o+t:i+n.key+"-"+te+(o?"-"+o:"")+"-"+t}},re=function(e){var t;return function(){return t||(t=e()),t}},oe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ie=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=p(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},ae=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},le=re((function(){return document.querySelector("head")}));var ce=re((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ue=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},de=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},fe=function(){function e(e){this.getPropertyValue=oe,this.setProperty=ie,this.removeProperty=ae,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,o=n.meta,i=n.element;this.element=i||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),o&&this.element.setAttribute("data-meta",o);var a=ce();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=Q.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=le(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else le().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=de(n,t);if(!1===(o=ue(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=de(n,t),l=ue(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Z&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),pe=0,he=function(){function e(e){this.id=pe++,this.version="10.10.0",this.plugins=new X,this.options={id:{minify:!1},createGenerateId:ne,Renderer:o.A?fe:null,plugins:[]},this.generateId=ne({minify:!1});for(var t=0;t<G.length;t++)this.plugins.use(G[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,r.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Q.index?0:Q.index+1);var o=new Z(e,(0,r.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(o),o},t.removeStyleSheet=function(e){return e.detach(),Q.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var o=(0,r.A)({},n,{name:e,jss:this,Renderer:this.options.Renderer});o.generateId||(o.generateId=this.generateId),o.classes||(o.classes={}),o.keyframes||(o.keyframes={});var i=d(e,t,o);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),me=function(e){return new he(e)},ge="object"==typeof CSS&&null!=CSS&&"number"in CSS;function ve(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=ve(r);i&&(t||(t={}),t[n]=i)}}return t}me()},55580:(e,t,n)=>{var r=n(56110)(n(9325),"DataView");e.exports=r},21549:(e,t,n)=>{var r=n(22032),o=n(63862),i=n(66721),a=n(12749),s=n(35749);function l(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])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},30980:(e,t,n)=>{var r=n(39344),o=n(94033);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},80079:(e,t,n)=>{var r=n(63702),o=n(70080),i=n(24739),a=n(48655),s=n(31175);function l(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])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},56017:(e,t,n)=>{var r=n(39344),o=n(94033);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},68223:(e,t,n)=>{var r=n(56110)(n(9325),"Map");e.exports=r},53661:(e,t,n)=>{var r=n(63040),o=n(17670),i=n(90289),a=n(4509),s=n(72949);function l(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])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},32804:(e,t,n)=>{var r=n(56110)(n(9325),"Promise");e.exports=r},76545:(e,t,n)=>{var r=n(56110)(n(9325),"Set");e.exports=r},38859:(e,t,n)=>{var r=n(53661),o=n(31380),i=n(51459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},37217:(e,t,n)=>{var r=n(80079),o=n(51420),i=n(90938),a=n(63605),s=n(29817),l=n(80945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},51873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},37828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},28303:(e,t,n)=>{var r=n(56110)(n(9325),"WeakMap");e.exports=r},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},63945:e=>{e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},83729:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},79770:e=>{e.exports=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}},15325:(e,t,n)=>{var r=n(96131);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},29905:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},70695:(e,t,n)=>{var r=n(78096),o=n(72428),i=n(56449),a=n(3656),s=n(30361),l=n(37167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},34932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},14528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},14248:e=>{e.exports=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}},16547:(e,t,n)=>{var r=n(43360),o=n(75288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},26025:(e,t,n)=>{var r=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},62429:(e,t,n)=>{var r=n(80909);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},74733:(e,t,n)=>{var r=n(21791),o=n(95950);e.exports=function(e,t){return e&&r(t,o(t),e)}},43838:(e,t,n)=>{var r=n(21791),o=n(37241);e.exports=function(e,t){return e&&r(t,o(t),e)}},43360:(e,t,n)=>{var r=n(93243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},87133:e=>{e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},9999:(e,t,n)=>{var r=n(37217),o=n(83729),i=n(16547),a=n(74733),s=n(43838),l=n(70909),c=n(23007),u=n(92271),d=n(48948),f=n(50002),p=n(83349),h=n(5861),m=n(76189),g=n(77199),v=n(35529),y=n(56449),b=n(3656),w=n(87730),E=n(23805),x=n(38440),O=n(95950),S=n(37241),A="[object Arguments]",_="[object Function]",C="[object Object]",T={};T[A]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[C]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[_]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,k,P,I,R){var j,D=1&n,N=2&n,M=4&n;if(k&&(j=I?k(t,P,I,R):k(t)),void 0!==j)return j;if(!E(t))return t;var L=y(t);if(L){if(j=m(t),!D)return c(t,j)}else{var z=h(t),W=z==_||"[object GeneratorFunction]"==z;if(b(t))return l(t,D);if(z==C||z==A||W&&!I){if(j=N||W?{}:v(t),!D)return N?d(t,s(j,t)):u(t,a(j,t))}else{if(!T[z])return I?t:{};j=g(t,z,D)}}R||(R=new r);var B=R.get(t);if(B)return B;R.set(t,j),x(t)?t.forEach((function(r){j.add(e(r,n,k,r,t,R))})):w(t)&&t.forEach((function(r,o){j.set(o,e(r,n,k,o,t,R))}));var F=L?void 0:(M?N?p:f:N?S:O)(t);return o(F||t,(function(r,o){F&&(r=t[o=r]),i(j,o,e(r,n,k,o,t,R))})),j}},39344:(e,t,n)=>{var r=n(23805),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},20085:e=>{e.exports=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)}},83915:(e,t,n)=>{var r=n(38859),o=n(15325),i=n(29905),a=n(34932),s=n(27301),l=n(19219);e.exports=function(e,t,n,c){var u=-1,d=o,f=!0,p=e.length,h=[],m=t.length;if(!p)return h;n&&(t=a(t,s(n))),c?(d=i,f=!1):t.length>=200&&(d=l,f=!1,t=new r(t));e:for(;++u<p;){var g=e[u],v=null==n?g:n(g);if(g=c||0!==g?g:0,f&&v==v){for(var y=m;y--;)if(t[y]===v)continue e;h.push(g)}else d(t,v,c)||h.push(g)}return h}},80909:(e,t,n)=>{var r=n(30641),o=n(38329)(r);e.exports=o},93599:(e,t,n)=>{var r=n(44394);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,c=a}return c}},16574:(e,t,n)=>{var r=n(80909);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},2523:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},83120:(e,t,n)=>{var r=n(14528),o=n(45891);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},86649:(e,t,n)=>{var r=n(83221)();e.exports=r},30641:(e,t,n)=>{var r=n(86649),o=n(95950);e.exports=function(e,t){return e&&r(e,t,o)}},47422:(e,t,n)=>{var r=n(31769),o=n(77797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},82199:(e,t,n)=>{var r=n(14528),o=n(56449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},72552:(e,t,n)=>{var r=n(51873),o=n(659),i=n(59350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},3335:e=>{e.exports=function(e,t){return e>t}},28077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},96131:(e,t,n)=>{var r=n(2523),o=n(85463),i=n(76959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},27534:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},60270:(e,t,n)=>{var r=n(87068),o=n(40346);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},87068:(e,t,n)=>{var r=n(37217),o=n(25911),i=n(21986),a=n(50689),s=n(5861),l=n(56449),c=n(3656),u=n(37167),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?f:s(e),E=b?f:s(t),x=(w=w==d?p:w)==p,O=(E=E==d?p:E)==p,S=w==E;if(S&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(S&&!x)return v||(v=new r),y||u(e)?o(e,t,n,m,g,v):i(e,t,w,n,m,g,v);if(!(1&n)){var A=x&&h.call(e,"__wrapped__"),_=O&&h.call(t,"__wrapped__");if(A||_){var C=A?e.value():e,T=_?t.value():t;return v||(v=new r),g(C,T,n,m,v)}}return!!S&&(v||(v=new r),a(e,t,n,m,g,v))}},29172:(e,t,n)=>{var r=n(5861),o=n(40346);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},41799:(e,t,n)=>{var r=n(37217),o=n(60270);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(i)var h=i(d,f,u,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},85463:e=>{e.exports=function(e){return e!=e}},45083:(e,t,n)=>{var r=n(1882),o=n(87296),i=n(23805),a=n(47473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},16038:(e,t,n)=>{var r=n(5861),o=n(40346);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},4901:(e,t,n)=>{var r=n(72552),o=n(30294),i=n(40346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},15389:(e,t,n)=>{var r=n(93663),o=n(87978),i=n(83488),a=n(56449),s=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},88984:(e,t,n)=>{var r=n(55527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},72903:(e,t,n)=>{var r=n(23805),o=n(55527),i=n(90181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},94033:e=>{e.exports=function(){}},5128:(e,t,n)=>{var r=n(80909),o=n(64894);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},93663:(e,t,n)=>{var r=n(41799),o=n(10776),i=n(67197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},87978:(e,t,n)=>{var r=n(60270),o=n(58156),i=n(80631),a=n(28586),s=n(30756),l=n(67197),c=n(77797);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},46155:(e,t,n)=>{var r=n(34932),o=n(47422),i=n(15389),a=n(5128),s=n(73937),l=n(27301),c=n(43714),u=n(83488),d=n(56449);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[u];var f=-1;t=r(t,l(i));var p=a(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return s(p,(function(e,t){return c(e,t,n)}))}},97420:(e,t,n)=>{var r=n(47422),o=n(73170),i=n(31769);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=r(e,c);n(u,c)&&o(l,i(c,e),u)}return l}},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},17255:(e,t,n)=>{var r=n(47422);e.exports=function(e){return function(t){return r(t,e)}}},54552:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},69302:(e,t,n)=>{var r=n(83488),o=n(56757),i=n(32865);e.exports=function(e,t){return i(o(e,t,r),e+"")}},73170:(e,t,n)=>{var r=n(16547),o=n(31769),i=n(30361),a=n(23805),s=n(77797);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:i(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},68882:(e,t,n)=>{var r=n(83488),o=n(48152),i=o?function(e,t){return o.set(e,t),e}:r;e.exports=i},19570:(e,t,n)=>{var r=n(37334),o=n(93243),i=n(83488),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},25160:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},73937:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},78096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},77556:(e,t,n)=>{var r=n(51873),o=n(34932),i=n(56449),a=n(44394),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128:(e,t,n)=>{var r=n(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},55765:(e,t,n)=>{var r=n(38859),o=n(15325),i=n(29905),a=n(19219),s=n(44517),l=n(84247);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=i;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<d;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v==v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else u(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},19931:(e,t,n)=>{var r=n(31769),o=n(68090),i=n(68969),a=n(77797);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},58725:(e,t,n)=>{var r=n(47422),o=n(73170);e.exports=function(e,t,n,i){return o(e,t,n(r(e,t)),i)}},30514:(e,t,n)=>{var r=n(34932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},75927:(e,t,n)=>{var r=n(83915),o=n(83120),i=n(55765);e.exports=function(e,t,n){var a=e.length;if(a<2)return a?i(e[0]):[];for(var s=-1,l=Array(a);++s<a;)for(var c=e[s],u=-1;++u<a;)u!=s&&(l[s]=r(l[s]||c,e[u],t,n));return i(o(l,1),t,n)}},19219:e=>{e.exports=function(e,t){return e.has(t)}},24066:(e,t,n)=>{var r=n(83488);e.exports=function(e){return"function"==typeof e?e:r}},31769:(e,t,n)=>{var r=n(56449),o=n(28586),i=n(61802),a=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},49653:(e,t,n)=>{var r=n(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},70909:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},76169:(e,t,n)=>{var r=n(49653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},73201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},93736:(e,t,n)=>{var r=n(51873),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},71961:(e,t,n)=>{var r=n(49653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},53730:(e,t,n)=>{var r=n(44394);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}},43714:(e,t,n)=>{var r=n(53730);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,l=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=l?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},91596:e=>{var t=Math.max;e.exports=function(e,n,r,o){for(var i=-1,a=e.length,s=r.length,l=-1,c=n.length,u=t(a-s,0),d=Array(c+u),f=!o;++l<c;)d[l]=n[l];for(;++i<s;)(f||i<a)&&(d[r[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}},53320:e=>{var t=Math.max;e.exports=function(e,n,r,o){for(var i=-1,a=e.length,s=-1,l=r.length,c=-1,u=n.length,d=t(a-l,0),f=Array(d+u),p=!o;++i<d;)f[i]=e[i];for(var h=i;++c<u;)f[h+c]=n[c];for(;++s<l;)(p||i<a)&&(f[h+r[s]]=e[i++]);return f}},23007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},21791:(e,t,n)=>{var r=n(16547),o=n(43360);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},92271:(e,t,n)=>{var r=n(21791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},48948:(e,t,n)=>{var r=n(21791),o=n(86375);e.exports=function(e,t){return r(e,o(e),t)}},55481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},58523:e=>{e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},42e3:(e,t,n)=>{var r=n(63945),o=n(62429),i=n(15389),a=n(56449);e.exports=function(e,t){return function(n,s){var l=a(n)?r:o,c=t?t():{};return l(n,e,i(s,2),c)}}},38329:(e,t,n)=>{var r=n(64894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},83221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},11842:(e,t,n)=>{var r=n(82819),o=n(9325);e.exports=function(e,t,n){var i=1&t,a=r(e);return function t(){return(this&&this!==o&&this instanceof t?a:e).apply(i?n:this,arguments)}}},82819:(e,t,n)=>{var r=n(39344),o=n(23805);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),i=e.apply(n,t);return o(i)?i:n}}},77078:(e,t,n)=>{var r=n(91033),o=n(82819),i=n(37471),a=n(18073),s=n(11287),l=n(36306),c=n(9325);e.exports=function(e,t,n){var u=o(e);return function o(){for(var d=arguments.length,f=Array(d),p=d,h=s(o);p--;)f[p]=arguments[p];var m=d<3&&f[0]!==h&&f[d-1]!==h?[]:l(f,h);return(d-=m.length)<n?a(e,t,i,o.placeholder,void 0,f,m,void 0,void 0,n-d):r(this&&this!==c&&this instanceof o?u:e,this,f)}}},66929:(e,t,n)=>{var r=n(56017),o=n(38816),i=n(37381),a=n(62284),s=n(56449),l=n(85087);e.exports=function(e){return o((function(t){var n=t.length,o=n,c=r.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if("function"!=typeof u)throw new TypeError("Expected a function");if(c&&!d&&"wrapper"==a(u))var d=new r([],!0)}for(o=d?o:n;++o<n;){u=t[o];var f=a(u),p="wrapper"==f?i(u):void 0;d=p&&l(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[a(p[0])].apply(d,p[3]):1==u.length&&l(u)?d[f]():d.thru(u)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&s(r))return d.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}},37471:(e,t,n)=>{var r=n(91596),o=n(53320),i=n(58523),a=n(82819),s=n(18073),l=n(11287),c=n(68294),u=n(36306),d=n(9325);e.exports=function e(t,n,f,p,h,m,g,v,y,b){var w=128&n,E=1&n,x=2&n,O=24&n,S=512&n,A=x?void 0:a(t);return function _(){for(var C=arguments.length,T=Array(C),k=C;k--;)T[k]=arguments[k];if(O)var P=l(_),I=i(T,P);if(p&&(T=r(T,p,h,O)),m&&(T=o(T,m,g,O)),C-=I,O&&C<b){var R=u(T,P);return s(t,n,e,_.placeholder,f,T,R,v,y,b-C)}var j=E?f:this,D=x?j[t]:t;return C=T.length,v?T=c(T,v):S&&C>1&&T.reverse(),w&&y<C&&(T.length=y),this&&this!==d&&this instanceof _&&(D=A||a(D)),D.apply(j,T)}}},24168:(e,t,n)=>{var r=n(91033),o=n(82819),i=n(9325);e.exports=function(e,t,n,a){var s=1&t,l=o(e);return function t(){for(var o=-1,c=arguments.length,u=-1,d=a.length,f=Array(d+c),p=this&&this!==i&&this instanceof t?l:e;++u<d;)f[u]=a[u];for(;c--;)f[u++]=arguments[++o];return r(p,s?n:this,f)}}},18073:(e,t,n)=>{var r=n(85087),o=n(54641),i=n(70981);e.exports=function(e,t,n,a,s,l,c,u,d,f){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?l:void 0,p?c:void 0,p?void 0:l,p?void 0:c,u,d,f],m=n.apply(void 0,h);return r(e)&&o(m,h),m.placeholder=a,i(m,e,t)}},44517:(e,t,n)=>{var r=n(76545),o=n(63950),i=n(84247),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},66977:(e,t,n)=>{var r=n(68882),o=n(11842),i=n(77078),a=n(37471),s=n(24168),l=n(37381),c=n(3209),u=n(54641),d=n(70981),f=n(61489),p=Math.max;e.exports=function(e,t,n,h,m,g,v,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=m=void 0),v=void 0===v?v:p(f(v),0),y=void 0===y?y:f(y),w-=m?m.length:0,64&t){var E=h,x=m;h=m=void 0}var O=b?void 0:l(e),S=[e,t,n,h,m,E,x,g,v,y];if(O&&c(S,O),e=S[0],t=S[1],n=S[2],h=S[3],m=S[4],!(y=S[9]=void 0===S[9]?b?0:e.length:p(S[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||16==t?i(e,t,y):32!=t&&33!=t||m.length?a.apply(void 0,S):s(e,t,n,h);else var A=o(e,t,n);return d((O?r:u)(A,S),e,t)}},53138:(e,t,n)=>{var r=n(11331);e.exports=function(e){return r(e)?void 0:e}},24647:(e,t,n)=>{var r=n(54552)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},93243:(e,t,n)=>{var r=n(56110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},25911:(e,t,n)=>{var r=n(38859),o=n(14248),i=n(19219);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},21986:(e,t,n)=>{var r=n(51873),o=n(37828),i=n(75288),a=n(25911),s=n(20317),l=n(84247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){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||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,c,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},50689:(e,t,n)=>{var r=n(50002),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[f=c[d]],y=t[f];if(i)var b=l?i(y,v,f,t,e,s):i(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(m=!1)}return s.delete(e),s.delete(t),m}},38816:(e,t,n)=>{var r=n(35970),o=n(56757),i=n(32865);e.exports=function(e){return i(o(e,void 0,r),e+"")}},34840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},50002:(e,t,n)=>{var r=n(82199),o=n(4664),i=n(95950);e.exports=function(e){return r(e,i,o)}},83349:(e,t,n)=>{var r=n(82199),o=n(86375),i=n(37241);e.exports=function(e){return r(e,i,o)}},37381:(e,t,n)=>{var r=n(48152),o=n(63950),i=r?function(e){return r.get(e)}:o;e.exports=i},62284:(e,t,n)=>{var r=n(84629),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],i=o.call(r,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}},11287:e=>{e.exports=function(e){return e.placeholder}},12651:(e,t,n)=>{var r=n(74218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10776:(e,t,n)=>{var r=n(30756),o=n(95950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},56110:(e,t,n)=>{var r=n(45083),o=n(10392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},28879:(e,t,n)=>{var r=n(74335)(Object.getPrototypeOf,Object);e.exports=r},659:(e,t,n)=>{var r=n(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664:(e,t,n)=>{var r=n(79770),o=n(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},86375:(e,t,n)=>{var r=n(14528),o=n(28879),i=n(4664),a=n(63345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},5861:(e,t,n)=>{var r=n(55580),o=n(68223),i=n(32804),a=n(76545),s=n(28303),l=n(72552),c=n(47473),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),g=c(o),v=c(i),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},75251:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;e.exports=function(e){var r=e.match(t);return r?r[1].split(n):[]}},49326:(e,t,n)=>{var r=n(31769),o=n(72428),i=n(56449),a=n(30361),s=n(30294),l=n(77797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(i(e)||o(e))}},22032:(e,t,n)=>{var r=n(81042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},12749:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},35749:(e,t,n)=>{var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},76189:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},77199:(e,t,n)=>{var r=n(49653),o=n(76169),i=n(73201),a=n(93736),s=n(71961);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(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 s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},35529:(e,t,n)=>{var r=n(39344),o=n(28879),i=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},62060:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,n){var r=n.length;if(!r)return e;var o=r-1;return n[o]=(r>1?"& ":"")+n[o],n=n.join(r>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+n+"] */\n")}},45891:(e,t,n)=>{var r=n(51873),o=n(72428),i=n(56449),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},36800:(e,t,n)=>{var r=n(75288),o=n(64894),i=n(30361),a=n(23805);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},28586:(e,t,n)=>{var r=n(56449),o=n(44394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},85087:(e,t,n)=>{var r=n(30980),o=n(37381),i=n(62284),a=n(53758);e.exports=function(e){var t=i(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=o(n);return!!s&&e===s[0]}},87296:(e,t,n)=>{var r,o=n(55481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},55527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},30756:(e,t,n)=>{var r=n(23805);e.exports=function(e){return e==e&&!r(e)}},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},70080:(e,t,n)=>{var r=n(26025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},24739:(e,t,n)=>{var r=n(26025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},48655:(e,t,n)=>{var r=n(26025);e.exports=function(e){return r(this.__data__,e)>-1}},31175:(e,t,n)=>{var r=n(26025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},63040:(e,t,n)=>{var r=n(21549),o=n(80079),i=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},17670:(e,t,n)=>{var r=n(12651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},90289:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},72949:(e,t,n)=>{var r=n(12651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},20317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},67197:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},62224:(e,t,n)=>{var r=n(50104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},3209:(e,t,n)=>{var r=n(91596),o=n(53320),i=n(36306),a="__lodash_placeholder__",s=Math.min;e.exports=function(e,t){var n=e[1],l=t[1],c=n|l,u=c<131,d=128==l&&8==n||128==l&&256==n&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==n;if(!u&&!d)return e;1&l&&(e[2]=t[2],c|=1&n?0:4);var f=t[3];if(f){var p=e[3];e[3]=p?r(p,f,t[4]):f,e[4]=p?i(e[3],a):t[4]}return(f=t[5])&&(p=e[5],e[5]=p?o(p,f,t[6]):f,e[6]=p?i(e[5],a):t[6]),(f=t[7])&&(e[7]=f),128&l&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},48152:(e,t,n)=>{var r=n(28303),o=r&&new r;e.exports=o},81042:(e,t,n)=>{var r=n(56110)(Object,"create");e.exports=r},3650:(e,t,n)=>{var r=n(74335)(Object.keys,Object);e.exports=r},90181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},86009:(e,t,n)=>{e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},56757:(e,t,n)=>{var r=n(91033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},68969:(e,t,n)=>{var r=n(47422),o=n(25160);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},84629:e=>{e.exports={}},68294:(e,t,n)=>{var r=n(23007),o=n(30361),i=Math.min;e.exports=function(e,t){for(var n=e.length,a=i(t.length,n),s=r(e);a--;){var l=t[a];e[a]=o(l,n)?s[l]:void 0}return e}},36306:e=>{var t="__lodash_placeholder__";e.exports=function(e,n){for(var r=-1,o=e.length,i=0,a=[];++r<o;){var s=e[r];s!==n&&s!==t||(e[r]=t,a[i++]=r)}return a}},9325:(e,t,n)=>{var r=n(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},54641:(e,t,n)=>{var r=n(68882),o=n(51811)(r);e.exports=o},84247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},32865:(e,t,n)=>{var r=n(19570),o=n(51811)(r);e.exports=o},70981:(e,t,n)=>{var r=n(75251),o=n(62060),i=n(32865),a=n(75948);e.exports=function(e,t,n){var s=t+"";return i(e,o(s,a(r(s),n)))}},51811:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},51420:(e,t,n)=>{var r=n(80079);e.exports=function(){this.__data__=new r,this.size=0}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},80945:(e,t,n)=>{var r=n(80079),o=n(68223),i=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},76959:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},61802:(e,t,n)=>{var r=n(62224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},77797:(e,t,n)=>{var r=n(44394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},75948:(e,t,n)=>{var r=n(83729),o=n(15325),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(i,(function(n){var r="_."+n[0];t&n[1]&&!o(e,r)&&e.push(r)})),e.sort()}},80257:(e,t,n)=>{var r=n(30980),o=n(56017),i=n(23007);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},64626:(e,t,n)=>{var r=n(66977);e.exports=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,r(e,128,void 0,void 0,void 0,void 0,t)}},78659:(e,t,n)=>{var r=n(87133),o=n(99374);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=o(n))==n?n:0),void 0!==t&&(t=(t=o(t))==t?t:0),r(o(e),t,n)}},32629:(e,t,n)=>{var r=n(9999);e.exports=function(e){return r(e,4)}},83673:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}},37334:e=>{e.exports=function(e){return function(){return e}}},74154:(e,t,n)=>{var r=n(43360),o=n(42e3),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?++e[n]:r(e,n,1)}));e.exports=a},49747:(e,t,n)=>{var r=n(66977);function o(e,t,n){var i=r(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return i.placeholder=o.placeholder,i}o.placeholder={},e.exports=o},38221:(e,t,n)=>{var r=n(23805),o=n(10124),i=n(99374),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function w(){var e=o();if(b(e))return E(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function E(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function x(){var e=o(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},x.flush=function(){return void 0===f?d:E(o())},x}},50828:(e,t,n)=>{var r=n(24647),o=n(13222),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},64112:(e,t,n)=>{var r=n(20085),o=n(69302)((function(e,t){return r(e,1,t)}));e.exports=o},66245:(e,t,n)=>{var r=n(83915),o=n(83120),i=n(69302),a=n(83693),s=i((function(e,t){return a(e)?r(e,o(t,1,a,!0)):[]}));e.exports=s},3739:(e,t,n)=>{var r=n(25160),o=n(61489);e.exports=function(e,t,n){var i=null==e?0:e.length;return i?(t=n||void 0===t?1:o(t),r(e,t<0?0:t,i)):[]}},27537:(e,t,n)=>{var r=n(25160),o=n(61489);e.exports=function(e,t,n){var i=null==e?0:e.length;return i?(t=n||void 0===t?1:o(t),r(e,0,(t=i-t)<0?0:t)):[]}},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},87612:(e,t,n)=>{var r=n(79770),o=n(16574),i=n(15389),a=n(56449);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},35970:(e,t,n)=>{var r=n(83120);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},3176:(e,t,n)=>{var r=n(83120),o=1/0;e.exports=function(e){return null!=e&&e.length?r(e,o):[]}},71382:(e,t,n)=>{var r=n(66929)(!0);e.exports=r},73424:(e,t,n)=>{var r=n(16962),o=n(2874),i=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function l(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}e.exports=function e(t,n,c,u){var d="function"==typeof n,f=n===Object(n);if(f&&(u=c,c=n,n=void 0),null==c)throw new TypeError;u||(u={});var p=!("cap"in u)||u.cap,h=!("curry"in u)||u.curry,m=!("fixed"in u)||u.fixed,g=!("immutable"in u)||u.immutable,v=!("rearg"in u)||u.rearg,y=d?c:o,b="curry"in u&&u.curry,w="fixed"in u&&u.fixed,E="rearg"in u&&u.rearg,x=d?c.runInContext():void 0,O=d?c:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},S=O.ary,A=O.assign,_=O.clone,C=O.curry,T=O.forEach,k=O.isArray,P=O.isError,I=O.isFunction,R=O.isWeakMap,j=O.keys,D=O.rearg,N=O.toInteger,M=O.toPath,L=j(r.aryMethod),z={castArray:function(e){return function(){var t=arguments[0];return k(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),r=n.length;return p&&"number"==typeof t?(t=t>2?t-2:1,r&&r<=t?n:a(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!I(n))return e(n,Object(t));var r=[];return T(j(t),(function(e){I(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),T(r,(function(e){var t=e[1];I(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:N(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),u)}}};function W(e,t,n){if(m&&(w||!r.skipFixed[e])){var o=r.methodSpread[e],a=o&&o.start;return void 0===a?S(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var a=o[t],s=o.slice(0,t);return a&&i.apply(s,a),t!=r&&i.apply(s,o.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function B(e,t,n){return v&&n>1&&(E||!r.skipRearg[e])?D(t,r.methodRearg[e]||r.aryRearg[n]):t}function F(e,t){for(var n=-1,r=(t=M(t)).length,o=r-1,i=_(Object(e)),a=i;null!=a&&++n<r;){var s=t[n],l=a[s];null==l||I(l)||P(l)||R(l)||(a[s]=_(n==o?l:Object(l))),a=a[s]}return i}function H(t,n){var o=r.aliasToReal[t]||t,i=r.remap[o]||o,a=u;return function(t){var r=d?x:O,s=d?x[i]:n,l=A(A({},a),t);return e(r,o,s,l)}}function V(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=v?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function U(e,t,n){var o,i=r.aliasToReal[e]||e,c=t,u=z[i];return u?c=u(t):g&&(r.mutate.array[i]?c=l(t,s):r.mutate.object[i]?c=l(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[i]&&(c=l(t,F))),T(L,(function(e){return T(r.aryMethod[e],(function(t){if(i==t){var n=r.methodSpread[i],s=n&&n.afterRearg;return o=s?W(i,B(i,c,e),e):B(i,W(i,c,e),e),o=function(e,t,n){return b||h&&n>1?C(t,n):t}(0,o=function(e,t){if(p){var n=r.iterateeRearg[e];if(n)return function(e,t){return V(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(D(a(e,n),t),n)}))}(t,n);var o=!d&&r.iterateeAry[e];if(o)return function(e,t){return V(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}(i,o),e),!1}})),!o})),o||(o=c),o==t&&(o=b?C(o,1):function(){return t.apply(this,arguments)}),o.convert=H(i,t),o.placeholder=t.placeholder=n,o}if(!f)return U(n,c,y);var G=c,q=[];return T(L,(function(e){T(r.aryMethod[e],(function(e){var t=G[r.remap[e]||e];t&&q.push([e,U(e,t,G)])}))})),T(j(G),(function(e){var t=G[e];if("function"==typeof t){for(var n=q.length;n--;)if(q[n][0]==e)return;t.convert=H(e,t),q.push([e,t])}})),T(q,(function(e){G[e[0]]=e[1]})),G.convert=function(e){return G.runInContext.convert(e)(void 0)},G.placeholder=G,T(j(G),(function(e){T(r.realToAlias[e]||[],(function(t){G[t]=G[e]}))})),G}},16962:(e,t)=>{t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},47934:(e,t,n)=>{e.exports={ary:n(64626),assign:n(74733),clone:n(32629),curry:n(49747),forEach:n(83729),isArray:n(56449),isError:n(23546),isFunction:n(1882),isWeakMap:n(47886),iteratee:n(33855),keys:n(88984),rearg:n(84195),toInteger:n(61489),toPath:n(42072)}},79920:(e,t,n)=>{var r=n(73424),o=n(47934);e.exports=function(e,t,n){return r(o,e,t,n)}},2874:e=>{e.exports={}},77731:(e,t,n)=>{var r=n(79920)("set",n(63560));r.placeholder=n(2874),e.exports=r},55918:(e,t,n)=>{var r=n(79920)("update",n(8483));r.placeholder=n(2874),e.exports=r},58156:(e,t,n)=>{var r=n(47422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},94394:(e,t,n)=>{var r=n(43360),o=n(42e3),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},80631:(e,t,n)=>{var r=n(28077),o=n(49326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},83488:e=>{e.exports=function(e){return e}},72428:(e,t,n)=>{var r=n(27534),o=n(40346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},56449:e=>{var t=Array.isArray;e.exports=t},64894:(e,t,n)=>{var r=n(1882),o=n(30294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},83693:(e,t,n)=>{var r=n(64894),o=n(40346);e.exports=function(e){return o(e)&&r(e)}},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(89935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},62193:(e,t,n)=>{var r=n(88984),o=n(5861),i=n(72428),a=n(56449),s=n(64894),l=n(3656),c=n(55527),u=n(37167),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},2404:(e,t,n)=>{var r=n(60270);e.exports=function(e,t){return r(e,t)}},23546:(e,t,n)=>{var r=n(72552),o=n(40346),i=n(11331);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},1882:(e,t,n)=>{var r=n(72552),o=n(23805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},87730:(e,t,n)=>{var r=n(29172),o=n(27301),i=n(86009),a=i&&i.isMap,s=a?o(a):r;e.exports=s},5187:e=>{e.exports=function(e){return null===e}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},11331:(e,t,n)=>{var r=n(72552),o=n(28879),i=n(40346),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},38440:(e,t,n)=>{var r=n(16038),o=n(27301),i=n(86009),a=i&&i.isSet,s=a?o(a):r;e.exports=s},85015:(e,t,n)=>{var r=n(72552),o=n(56449),i=n(40346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},44394:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},37167:(e,t,n)=>{var r=n(4901),o=n(27301),i=n(86009),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},62216:e=>{e.exports=function(e){return void 0===e}},47886:(e,t,n)=>{var r=n(5861),o=n(40346);e.exports=function(e){return o(e)&&"[object WeakMap]"==r(e)}},33855:(e,t,n)=>{var r=n(9999),o=n(15389);e.exports=function(e){return o("function"==typeof e?e:r(e,1))}},95950:(e,t,n)=>{var r=n(70695),o=n(88984),i=n(64894);e.exports=function(e){return i(e)?r(e):o(e)}},37241:(e,t,n)=>{var r=n(70695),o=n(72903),i=n(64894);e.exports=function(e){return i(e)?r(e,!0):o(e)}},68090:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},94506:(e,t,n)=>{var r=n(93599),o=n(3335),i=n(83488);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},50104:(e,t,n)=>{var r=n(53661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},63950:e=>{e.exports=function(){}},10124:(e,t,n)=>{var r=n(9325);e.exports=function(){return r.Date.now()}},90179:(e,t,n)=>{var r=n(34932),o=n(9999),i=n(19931),a=n(31769),s=n(21791),l=n(53138),c=n(38816),u=n(83349),d=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),n),c&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},71086:(e,t,n)=>{var r=n(34932),o=n(15389),i=n(97420),a=n(83349);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},50583:(e,t,n)=>{var r=n(47237),o=n(17255),i=n(28586),a=n(77797);e.exports=function(e){return i(e)?r(a(e)):o(e)}},84195:(e,t,n)=>{var r=n(66977),o=n(38816)((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=o},63560:(e,t,n)=>{var r=n(73170);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},33031:(e,t,n)=>{var r=n(83120),o=n(46155),i=n(69302),a=n(36800),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=s},63345:e=>{e.exports=function(){return[]}},89935:e=>{e.exports=function(){return!1}},34921:(e,t,n)=>{var r=n(25160),o=n(61489);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:o(t),r(e,0,t<0?0:t)):[]}},7350:(e,t,n)=>{var r=n(38221),o=n(23805);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},17400:(e,t,n)=>{var r=n(99374),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},61489:(e,t,n)=>{var r=n(17400);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},99374:(e,t,n)=>{var r=n(54128),o=n(23805),i=n(44394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},42072:(e,t,n)=>{var r=n(34932),o=n(23007),i=n(56449),a=n(44394),s=n(61802),l=n(77797),c=n(13222);e.exports=function(e){return i(e)?r(e,l):a(e)?[e]:o(s(c(e)))}},13222:(e,t,n)=>{var r=n(77556);e.exports=function(e){return null==e?"":r(e)}},80299:(e,t,n)=>{var r=n(83120),o=n(69302),i=n(55765),a=n(83693),s=o((function(e){return i(r(e,1,a,!0))}));e.exports=s},63375:(e,t,n)=>{var r=n(55765);e.exports=function(e){return e&&e.length?r(e):[]}},8483:(e,t,n)=>{var r=n(58725),o=n(24066);e.exports=function(e,t,n){return null==e?e:r(e,t,o(n))}},35880:(e,t,n)=>{var r=n(30514),o=n(95950);e.exports=function(e){return null==e?[]:r(e,o(e))}},91648:(e,t,n)=>{var r=n(83915),o=n(69302),i=n(83693),a=o((function(e,t){return i(e)?r(e,t):[]}));e.exports=a},53758:(e,t,n)=>{var r=n(30980),o=n(56017),i=n(94033),a=n(56449),s=n(40346),l=n(80257),c=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return l(e)}return new o(e)}u.prototype=i.prototype,u.prototype.constructor=u,e.exports=u},56625:(e,t,n)=>{var r=n(79770),o=n(69302),i=n(75927),a=n(83693),s=o((function(e){return i(r(e,a))}));e.exports=s},46346:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(9)),r(n(10)),r(n(11)),r(n(12)),r(n(13)),r(n(14)),r(n(15)),r(n(16)),r(n(17)),r(n(31)),r(n(32)),r(n(33)),r(n(34)),r(n(35)),r(n(38)),r(n(39)),r(n(40)),r(n(41)),r(n(42)),r(n(43)),r(n(44)),r(n(45)),r(n(46)),r(n(47)),r(n(48)),r(n(49)),r(n(50)),r(n(3))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BOOKMARKING="oa:bookmarking",e.CLASSIFYING="oa:classifying",e.COMMENTING="oa:commenting",e.DESCRIBING="oa:describing",e.EDITING="oa:editing",e.HIGHLIGHTING="oa:highlighting",e.IDENTIFYING="oa:identifying",e.LINKING="oa:linking",e.MODERATING="oa:moderating",e.PAINTING="sc:painting",e.QUESTIONING="oa:questioning",e.REPLYING="oa:replying",e.TAGGING="oa:tagging",e.TRANSCRIBING="oad:transcribing"}(t.AnnotationMotivation||(t.AnnotationMotivation={})),function(e){e.AUTO_ADVANCE="auto-advance",e.CONTINUOUS="continuous",e.FACING_PAGES="facing-pages",e.HIDDEN="hidden",e.INDIVIDUALS="individuals",e.MULTI_PART="multi-part",e.NO_NAV="no-nav",e.NON_PAGED="non-paged",e.PAGED="paged",e.REPEAT="repeat",e.SEQUENCE="sequence",e.THUMBNAIL_NAV="thumbnail-nav",e.TOGETHER="together",e.UNORDERED="unordered"}(t.Behavior||(t.Behavior={})),function(e){e.CANVAS="canvas",e.CHOICE="choice",e.OA_CHOICE="oa:choice",e.CONTENT_AS_TEXT="contentastext",e.DATASET="dataset",e.DOCUMENT="document",e.IMAGE="image",e.MODEL="model",e.MOVING_IMAGE="movingimage",e.PDF="pdf",e.PHYSICAL_OBJECT="physicalobject",e.SOUND="sound",e.TEXT="text",e.TEXTUALBODY="textualbody",e.VIDEO="video"}(t.ExternalResourceType||(t.ExternalResourceType={})),function(e){e.ANNOTATION="annotation",e.CANVAS="canvas",e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range",e.SEQUENCE="sequence"}(t.IIIFResourceType||(t.IIIFResourceType={})),function(e){e.AUDIO_MP4="audio/mp4",e.CORTO="application/corto",e.DICOM="application/dicom",e.DRACO="application/draco",e.EPUB="application/epub+zip",e.GIRDER="image/vnd.kitware.girder",e.GLB="model/gltf-binary",e.GLTF="model/gltf+json",e.IIIF_PRESENTATION_2='application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"',e.IIIF_PRESENTATION_3='application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"',e.JPG="image/jpeg",e.M3U8="application/vnd.apple.mpegurl",e.MP3="audio/mp3",e.MPEG_DASH="application/dash+xml",e.OBJ="text/plain",e.OPF="application/oebps-package+xml",e.PDF="application/pdf",e.PLY="application/ply",e.THREEJS="application/vnd.threejs+json",e.USDZ="model/vnd.usd+zip",e.VIDEO_MP4="video/mp4",e.WAV="audio/wav",e.WEBM="video/webm"}(t.MediaType||(t.MediaType={})),function(e){e.DOC="application/msword",e.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.PDF="application/pdf"}(t.RenderingFormat||(t.RenderingFormat={})),function(e){e.IMAGE_0_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",e.IMAGE_0_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",e.IMAGE_0_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",e.IMAGE_0_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",e.IMAGE_0_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",e.IMAGE_0_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",e.IMAGE_1_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",e.IMAGE_1_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",e.IMAGE_1_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",e.IMAGE_1_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",e.IMAGE_1_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",e.IMAGE_1_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",e.IMAGE_1_LEVEL_0="http://iiif.io/api/image/1/level0.json",e.IMAGE_1_PROFILE_LEVEL_0="http://iiif.io/api/image/1/profiles/level0.json",e.IMAGE_1_LEVEL_1="http://iiif.io/api/image/1/level1.json",e.IMAGE_1_PROFILE_LEVEL_1="http://iiif.io/api/image/1/profiles/level1.json",e.IMAGE_1_LEVEL_2="http://iiif.io/api/image/1/level2.json",e.IMAGE_1_PROFILE_LEVEL_2="http://iiif.io/api/image/1/profiles/level2.json",e.IMAGE_2_LEVEL_0="http://iiif.io/api/image/2/level0.json",e.IMAGE_2_PROFILE_LEVEL_0="http://iiif.io/api/image/2/profiles/level0.json",e.IMAGE_2_LEVEL_1="http://iiif.io/api/image/2/level1.json",e.IMAGE_2_PROFILE_LEVEL_1="http://iiif.io/api/image/2/profiles/level1.json",e.IMAGE_2_LEVEL_2="http://iiif.io/api/image/2/level2.json",e.IMAGE_2_PROFILE_LEVEL_2="http://iiif.io/api/image/2/profiles/level2.json",e.AUTH_0_CLICK_THROUGH="http://iiif.io/api/auth/0/login/clickthrough",e.AUTH_0_LOGIN="http://iiif.io/api/auth/0/login",e.AUTH_0_LOGOUT="http://iiif.io/api/auth/0/logout",e.AUTH_0_RESTRICTED="http://iiif.io/api/auth/0/login/restricted",e.AUTH_0_TOKEN="http://iiif.io/api/auth/0/token",e.AUTH_1_CLICK_THROUGH="http://iiif.io/api/auth/1/clickthrough",e.AUTH_1_EXTERNAL="http://iiif.io/api/auth/1/external",e.AUTH_1_KIOSK="http://iiif.io/api/auth/1/kiosk",e.AUTH_1_LOGIN="http://iiif.io/api/auth/1/login",e.AUTH_1_LOGOUT="http://iiif.io/api/auth/1/logout",e.AUTH_1_PROBE="http://iiif.io/api/auth/1/probe",e.AUTH_1_TOKEN="http://iiif.io/api/auth/1/token",e.SEARCH_0="http://iiif.io/api/search/0/search",e.SEARCH_0_AUTO_COMPLETE="http://iiif.io/api/search/0/autocomplete",e.SEARCH_1="http://iiif.io/api/search/1/search",e.SEARCH_1_AUTO_COMPLETE="http://iiif.io/api/search/1/autocomplete",e.TRACKING_EXTENSIONS="http://universalviewer.io/tracking-extensions-profile",e.UI_EXTENSIONS="http://universalviewer.io/ui-extensions-profile",e.PRINT_EXTENSIONS="http://universalviewer.io/print-extensions-profile",e.SHARE_EXTENSIONS="http://universalviewer.io/share-extensions-profile",e.DOWNLOAD_EXTENSIONS="http://universalviewer.io/download-extensions-profile",e.OTHER_MANIFESTATIONS="http://iiif.io/api/otherManifestations.json",e.IXIF="http://wellcomelibrary.org/ld/ixif/0/alpha.json"}(t.ServiceProfile||(t.ServiceProfile={})),function(e){e.IMAGE_SERVICE_2="ImageService2",e.IMAGE_SERVICE_3="ImageService3"}(t.ServiceType||(t.ServiceType={})),function(e){e.BOTTOM_TO_TOP="bottom-to-top",e.LEFT_TO_RIGHT="left-to-right",e.RIGHT_TO_LEFT="right-to-left",e.TOP_TO_BOTTOM="top-to-bottom"}(t.ViewingDirection||(t.ViewingDirection={})),function(e){e.CONTINUOUS="continuous",e.INDIVIDUALS="individuals",e.NON_PAGED="non-paged",e.PAGED="paged",e.TOP="top"}(t.ViewingHint||(t.ViewingHint={}))},function(e,t,n){var r=n(21).Symbol;e.exports=r},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=n(36);n(37);var l=function(){function e(){}return e.getMediaType=function(e){return(e=(e=e.toLowerCase()).split(";")[0]).trim()},e.getImageQuality=function(e){return e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_LEVEL_1||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_LEVEL_2||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2?"native":"default"},e.getInexactLocale=function(e){return-1!==e.indexOf("-")?e.substr(0,e.indexOf("-")):e},e.getLocalisedValue=function(e,t){if(!Array.isArray(e))return e;for(var n=0;n<e.length;n++){var r=e[n];if(t===r["@language"])return r["@value"]}var o=t.substr(0,t.indexOf("-"));for(n=0;n<e.length;n++){var i=e[n];if(i["@language"]===o)return i["@value"]}return null},e.generateTreeNodeIds=function(t,n){var r;void 0===n&&(n=0),r=t.parentNode?t.parentNode.id+"-"+n:"0",t.id=r;for(var o=0;o<t.nodes.length;o++){var i=t.nodes[o];e.generateTreeNodeIds(i,o)}},e.normaliseType=function(e){return-1!==(e=(e||"").toLowerCase()).indexOf(":")?e.split(":")[1]:e},e.normaliseUrl=function(e){return-1!==(e=e.substr(e.indexOf("://"))).indexOf("#")&&(e=e.split("#")[0]),e},e.normalisedUrlsMatch=function(t,n){return e.normaliseUrl(t)===e.normaliseUrl(n)},e.isImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.isImageServiceType=function(e){return null!==e&&e.toLowerCase()===a.ServiceType.IMAGE_SERVICE_2.toLowerCase()||e===a.ServiceType.IMAGE_SERVICE_3.toLowerCase()},e.isLevel0ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0))},e.isLevel1ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1))},e.isLevel2ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.parseManifest=function(e,t){return i.Deserialiser.parse(e,t)},e.checkStatus=function(e){if(e.ok)return e;var t=new Error(e.statusText);return t.response=e,Promise.reject(t)},e.loadManifest=function(t){return new Promise((function(n,r){fetch(t).then(e.checkStatus).then((function(e){return e.json()})).then((function(e){n(e)})).catch((function(e){r()}))}))},e.loadExternalResourcesAuth1=function(t,n,r,o,i,a,s,l){return new Promise((function(c,u){var d=t.map((function(t){return e.loadExternalResourceAuth1(t,n,r,o,i,a,s,l)}));Promise.all(d).then((function(){c(t)})).catch((function(e){u(e)}))}))},e.loadExternalResourceAuth1=function(t,n,i,a,l,c,u,d){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return[4,a(t)];case 1:return(r=o.sent())?[4,t.getData(r)]:[3,6];case 2:return o.sent(),t.status!==s.OK?[3,3]:[2,t];case 3:return[4,e.doAuthChain(t,n,i,l,c,u,d)];case 4:o.sent(),o.label=5;case 5:if(t.status===s.OK||t.status===s.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError();case 6:return[4,t.getData()];case 7:return o.sent(),t.status!==s.MOVED_TEMPORARILY&&t.status!==s.UNAUTHORIZED?[3,9]:[4,e.doAuthChain(t,n,i,l,c,u,d)];case 8:o.sent(),o.label=9;case 9:if(t.status===s.OK||t.status===s.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError()}}))}))},e.doAuthChain=function(t,n,i,a,l,c,u){return r(this,void 0,void 0,(function(){var r,d,f,p,h,m,g,v;return o(this,(function(o){switch(o.label){case 0:return t.isAccessControlled()?((r=t.externalService)&&(r.options=t.options),(d=t.kioskService)&&(d.options=t.options),(f=t.clickThroughService)&&(f.options=t.options),(p=t.loginService)&&(p.options=t.options),t.isResponseHandled||t.status!==s.MOVED_TEMPORARILY?[3,2]:[4,c(t)]):[2,t];case 1:case 3:case 6:case 10:case 14:return o.sent(),[2,t];case 2:return h=null,m=null,(h=r)?(m=h,[4,e.attemptResourceWithToken(t,i,h)]):[3,4];case 4:return(h=d)?(m=h,(g=n(h))?[4,a(g)]:[3,7]):[3,7];case 5:case 9:case 13:return o.sent(),[4,e.attemptResourceWithToken(t,i,h)];case 7:return(h=f)?(m=h,[4,l(t,h)]):[3,11];case 8:return(v=o.sent())?[4,a(v)]:[3,11];case 11:return(h=p)?(m=h,[4,l(t,h)]):[3,15];case 12:return(v=o.sent())?[4,a(v)]:[3,15];case 15:return m&&u(t,m),[2]}}))}))},e.attemptResourceWithToken=function(e,t,n){return r(this,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:return(r=n.getService(a.ServiceProfile.AUTH_1_TOKEN))?[4,t(e,r)]:[3,3];case 1:return(i=o.sent())&&i.accessToken?[4,e.getData(i)]:[3,3];case 2:return o.sent(),[2,e];case 3:return[2]}}))}))},e.loadExternalResourcesAuth09=function(t,n,r,o,i,a,s,l,c,u){return new Promise((function(d,f){var p=t.map((function(t){return e.loadExternalResourceAuth09(t,n,r,o,i,a,s,l,c,u)}));Promise.all(p).then((function(){d(t)})).catch((function(e){f(e)}))}))},e.loadExternalResourceAuth09=function(t,n,r,o,i,a,l,c,u,d){return new Promise((function(f,p){d&&d.pessimisticAccessControl?t.getData().then((function(){t.isAccessControlled()?t.clickThroughService?(f(r(t)),f(o(t))):i(t).then((function(){a(t,!0).then((function(n){t.getData(n).then((function(){f(u(t))})).catch((function(t){p(e.createInternalServerError(t))}))})).catch((function(t){p(e.createInternalServerError(t))}))})).catch((function(t){p(e.createInternalServerError(t))})):f(t)})).catch((function(t){p(e.createInternalServerError(t))})):c(t,n).then((function(d){d?t.getData(d).then((function(){t.status===s.OK?f(u(t)):e.authorize(t,n,r,o,i,a,l,c).then((function(){f(u(t))})).catch((function(t){p(e.createAuthorizationFailedError())}))})).catch((function(t){p(e.createAuthorizationFailedError())})):e.authorize(t,n,r,o,i,a,l,c).then((function(){f(u(t))})).catch((function(t){p(e.createAuthorizationFailedError())}))})).catch((function(t){p(e.createAuthorizationFailedError())}))}))},e.createError=function(e,t){var n=new Error;return n.message=t,n.name=String(e),n},e.createAuthorizationFailedError=function(){return e.createError(i.StatusCode.AUTHORIZATION_FAILED,"Authorization failed")},e.createRestrictedError=function(){return e.createError(i.StatusCode.RESTRICTED,"Restricted")},e.createInternalServerError=function(t){return e.createError(i.StatusCode.INTERNAL_SERVER_ERROR,t)},e.authorize=function(t,n,r,o,i,a,l,c){return new Promise((function(u,d){t.getData().then((function(){t.isAccessControlled()?c(t,n).then((function(c){c?t.getData(c).then((function(){t.status===s.OK?u(t):e.showAuthInteraction(t,n,r,o,i,a,l,u,d)})).catch((function(t){d(e.createInternalServerError(t))})):a(t,!1).then((function(c){c?l(t,c,n).then((function(){t.getData(c).then((function(){t.status===s.OK?u(t):e.showAuthInteraction(t,n,r,o,i,a,l,u,d)})).catch((function(t){d(e.createInternalServerError(t))}))})).catch((function(t){d(e.createInternalServerError(t))})):e.showAuthInteraction(t,n,r,o,i,a,l,u,d)}))})).catch((function(t){d(e.createInternalServerError(t))})):u(t)}))}))},e.showAuthInteraction=function(t,n,r,o,i,a,l,c,u){t.status!==s.MOVED_TEMPORARILY||t.isResponseHandled?t.clickThroughService&&!t.isResponseHandled?r(t).then((function(){a(t,!0).then((function(r){l(t,r,n).then((function(){t.getData(r).then((function(){c(t)})).catch((function(t){u(e.createInternalServerError(t))}))})).catch((function(t){u(e.createInternalServerError(t))}))})).catch((function(t){u(e.createInternalServerError(t))}))})):i(t).then((function(){a(t,!0).then((function(r){l(t,r,n).then((function(){t.getData(r).then((function(){c(t)})).catch((function(t){u(e.createInternalServerError(t))}))})).catch((function(t){u(e.createInternalServerError(t))}))})).catch((function(t){u(e.createInternalServerError(t))}))})):c(t)},e.getService=function(e,t){for(var n=this.getServices(e),r=0;r<n.length;r++){var o=n[r];if(o.getProfile()===t)return o}return null},e.getResourceById=function(t,n){return e.traverseAndFind(t.__jsonld,"@id",n)},e.traverseAndFind=function(t,n,r){if(t.hasOwnProperty(n)&&t[n]===r)return t;for(var o=0;o<Object.keys(t).length;o++)if("object"==typeof t[Object.keys(t)[o]]){var i=e.traverseAndFind(t[Object.keys(t)[o]],n,r);if(null!=i)return i}},e.getServices=function(t,n){var r=void 0===n?{}:n,o=r.onlyService,a=void 0!==o&&o,s=r.onlyServices,l=void 0!==s&&s,c=r.skipParentResources,u=[];(void 0===c||!c)&&t&&t.options&&t.options.resource&&t.options.resource!==t&&u.push.apply(u,e.getServices(t.options.resource,{onlyServices:!0}));var d=l?[]:(t.__jsonld||t).service||[];if(Array.isArray(d)||(d=[d]),a||d.push.apply(d,(t.__jsonld||t).services||[]),0===d.length)return u;for(var f=0;f<d.length;f++){var p=d[f];if("string"==typeof p){var h=this.getResourceById(t.options.resource,p);h&&u.push(new i.Service(h.__jsonld||h,t.options))}else u.push(new i.Service(p,t.options))}return u},e.getTemporalComponent=function(e){var t=/t=([^&]+)/g.exec(e),n=null;return t&&t[1]&&(n=t[1].split(",")),n},e}();t.Utils=l},function(e,t,n){var r=n(19),o=n(20);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},l=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:l,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)}))}},function(e,t,n){e.exports=n(8)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(0));var r=n(3);t.loadManifest=function(e){return r.Utils.loadManifest(e)},t.parseManifest=function(e,t){return r.Utils.parseManifest(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.__jsonld=e,this.context=this.getProperty("context"),this.id=this.getProperty("id")}return e.prototype.getProperty=function(e){var t=null;return this.__jsonld&&((t=this.__jsonld[e])||(t=this.__jsonld["@"+e])),t},e}();t.JSONLDResource=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.options=n,r}return o(t,e),t.prototype.getIIIFResourceType=function(){return i.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){var e=this.getProperty("label");return e?i.PropertyValue.parse(e,this.options.locale):new i.PropertyValue([],this.options.locale)},t.prototype.getDefaultLabel=function(){return this.getLabel().getValue(this.options.locale)},t.prototype.getMetadata=function(){var e=this.getProperty("metadata"),t=[];if(!e)return t;for(var n=0;n<e.length;n++){var r=e[n],o=new i.LabelValuePair(this.options.locale);o.parse(r),t.push(o)}return t},t.prototype.getRendering=function(e){for(var t=this.getRenderings(),n=0;n<t.length;n++){var r=t[n];if(r.getFormat()===e)return r}return null},t.prototype.getRenderings=function(){var e,t=[];if(!(e=this.__jsonld?this.__jsonld.rendering:this.rendering))return t;Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];t.push(new i.Rendering(r,this.options))}return t},t.prototype.getRequiredStatement=function(){var e=null,t=this.getProperty("requiredStatement");return t&&(e=new i.LabelValuePair(this.options.locale)).parse(t),e},t.prototype.getService=function(e){return i.Utils.getService(this,e)},t.prototype.getServices=function(){return i.Utils.getServices(this)},t.prototype.getThumbnail=function(){var e=this.getProperty("thumbnail");return Array.isArray(e)&&(e=e[0]),e?new i.Thumbnail(e,this.options):null},t.prototype.isAnnotation=function(){return this.getIIIFResourceType()===a.IIIFResourceType.ANNOTATION},t.prototype.isCanvas=function(){return this.getIIIFResourceType()===a.IIIFResourceType.CANVAS},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.isRange=function(){return this.getIIIFResourceType()===a.IIIFResourceType.RANGE},t.prototype.isSequence=function(){return this.getIIIFResourceType()===a.IIIFResourceType.SEQUENCE},t}(i.JSONLDResource);t.ManifestResource=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?e.toLowerCase():null},t.prototype.getResources=function(){var e=[];if(!this.__jsonld.resources)return e;for(var t=0;t<this.__jsonld.resources.length;t++){var n=this.__jsonld.resources[t],r=new i.Annotation(n,this.options);e.push(r)}return e},t.prototype.getType=function(){var e=this.getProperty("type");return e?i.Utils.normaliseType(e):null},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getMaxWidth=function(){return this.getProperty("maxWidth")},t.prototype.getMaxHeight=function(){return this.getProperty("maxHeight")?null:this.getMaxWidth()},t}(i.ManifestResource);t.Resource=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.index=-1,r.isLoaded=!1;var o={defaultLabel:"-",locale:"en-GB",resource:r,pessimisticAccessControl:!1};return r.options=Object.assign(o,n),r}return o(t,e),t.prototype.getAttribution=function(){var e=this.getProperty("attribution");return e?i.PropertyValue.parse(e,this.options.locale):new i.PropertyValue([],this.options.locale)},t.prototype.getDescription=function(){var e=this.getProperty("description");return e?i.PropertyValue.parse(e,this.options.locale):new i.PropertyValue([],this.options.locale)},t.prototype.getHomepage=function(){var e=this.getProperty("homepage");return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getIIIFResourceType=function(){return i.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLogo=function(){var e=this.getProperty("logo");if(!e){var t=this.getProperty("provider");if(!t)return null;var n=t.find((function(e){return void 0!==e.logo}));e=void 0===n.logo?null:n.logo}return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getLicense=function(){return i.Utils.getLocalisedValue(this.getProperty("license"),this.options.locale)},t.prototype.getRights=function(){var e=this.getProperty("rights");return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getNavDate=function(){return new Date(this.getProperty("navDate"))},t.prototype.getRelated=function(){return this.getProperty("related")},t.prototype.getSeeAlso=function(){return this.getProperty("seeAlso")},t.prototype.getTrackingLabel=function(){var e=this.getService(a.ServiceProfile.TRACKING_EXTENSIONS);return e?e.getProperty("trackingLabel"):""},t.prototype.getDefaultTree=function(){return this.defaultTree=new i.TreeNode("root"),this.defaultTree.data=this,this.defaultTree},t.prototype.getRequiredStatement=function(){var e=null,t=this.getProperty("requiredStatement");if(t)(e=new i.LabelValuePair(this.options.locale)).parse(t);else{var n=this.getAttribution();n&&((e=new i.LabelValuePair(this.options.locale)).value=n)}return e},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.load=function(){var e=this;return new Promise((function(t){if(e.isLoaded)t(e);else{var n=e.options;n.navDate=e.getNavDate();var r=e.__jsonld.id;r||(r=e.__jsonld["@id"]),i.Utils.loadManifest(r).then((function(r){e.parentLabel=e.getLabel().getValue(n.locale);var o=i.Deserialiser.parse(r,n);(e=Object.assign(e,o)).index=n.index,t(e)}))}}))},t}(i.ManifestResource);t.IIIFResource=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getBody=function(){var e=[],t=this.getProperty("body");if(t)if(Array.isArray(t))for(var n=0;n<t.length;n++)if((a=t[n]).items)for(var r=0;r<a.items.length;r++){var o=a.items[r];e.push(new i.AnnotationBody(o,this.options))}else e.push(new i.AnnotationBody(a,this.options));else if(t.items)for(n=0;n<t.items.length;n++){var a=t.items[n];e.push(new i.AnnotationBody(a,this.options))}else e.push(new i.AnnotationBody(t,this.options));return e},t.prototype.getMotivation=function(){return this.getProperty("motivation")||null},t.prototype.getOn=function(){return this.getProperty("on")},t.prototype.getTarget=function(){return this.getProperty("target")},t.prototype.getResource=function(){return new i.Resource(this.getProperty("resource"),this.options)},t}(i.ManifestResource);t.Annotation=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?i.Utils.getMediaType(e):null},t.prototype.getType=function(){return this.getProperty("type")?i.Utils.normaliseType(this.getProperty("type")):null},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t}(i.ManifestResource);t.AnnotationBody=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.label=t,o.options=r,o}return o(t,e),t.prototype.getIIIFResourceType=function(){return i.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){return this.label},t.prototype.getResources=function(){var e=this;return this.getProperty("resources").map((function(t){return new i.Annotation(t,e.options)}))},t.prototype.load=function(){var e=this;return new Promise((function(t,n){if(e.isLoaded)t(e);else{var r=e.__jsonld.id;r||(r=e.__jsonld["@id"]),i.Utils.loadManifest(r).then((function(n){e.__jsonld=n,e.context=e.getProperty("context"),e.id=e.getProperty("id"),e.isLoaded=!0,t(e)})).catch(n)}}))},t}(i.JSONLDResource);t.AnnotationList=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getItems=function(){return this.getProperty("items")},t}(n(0).ManifestResource);t.AnnotationPage=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=i(n(18)),c=i(n(30)),u=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getCanonicalImageUri=function(e){var t,n=null,r="default",o=e;if(this.externalResource&&this.externalResource.data&&this.externalResource.data["@id"])n=this.externalResource.data["@id"],o||(o=this.externalResource.data.width),this.externalResource.data["@context"]&&(this.externalResource.data["@context"].indexOf("/1.0/context.json")>-1||this.externalResource.data["@context"].indexOf("/1.1/context.json")>-1||this.externalResource.data["@context"].indexOf("/1/context.json")>-1)&&(r="native");else{var i=void 0;if((i=this.getImages())&&i.length){var a=i[0].getResource(),l=a.getServices();if(o||(o=a.getWidth()),c=l?l.find((function(e){return s.Utils.isImageProfile(e.getProfile())||s.Utils.isImageServiceType(e.getIIIFResourceType())})):null)n=c.id,r=s.Utils.getImageQuality(c.getProfile());else if(o===a.getWidth())return a.id}if((i=this.getContent())&&i.length){var c,u=i[0].getBody()[0];if(l=u.getServices(),o||(o=u.getWidth()),c=l?l.find((function(e){return s.Utils.isImageServiceType(e.getIIIFResourceType())})):null)n=c.id,r=s.Utils.getImageQuality(c.getProfile());else if(o===u.getWidth())return u.id}if(!n){var d=this.getProperty("thumbnail");if(d){if("string"==typeof d)return d;if(d["@id"])return d["@id"];if(d.length)return d[0].id}}}return t=o+",",n&&n.endsWith("/")&&(n=n.substr(0,n.length-1)),[n,"full",t,0,r+".jpg"].join("/")},t.prototype.getMaxDimensions=function(){var e,t=null;return this.externalResource&&this.externalResource.data&&this.externalResource.data.profile&&(e=this.externalResource.data.profile,Array.isArray(e)&&(e=e.filter((function(e){return e.maxWidth}))[0])&&(t=new s.Size(e.maxWidth,e.maxHeight?e.maxHeight:e.maxWidth))),t},t.prototype.getContent=function(){var e=[],t=this.__jsonld.items||this.__jsonld.content;if(!t)return e;var n=null;if(t.length&&(n=new s.AnnotationPage(t[0],this.options)),!n)return e;for(var r=n.getItems(),o=0;o<r.length;o++){var i=r[o],a=new s.Annotation(i,this.options);e.push(a)}return e},t.prototype.getDuration=function(){return this.getProperty("duration")},t.prototype.getImages=function(){var e=[];if(!this.__jsonld.images)return e;for(var t=0;t<this.__jsonld.images.length;t++){var n=this.__jsonld.images[t],r=new s.Annotation(n,this.options);e.push(r)}return e},t.prototype.getIndex=function(){return this.getProperty("index")},t.prototype.getOtherContent=function(){var e=this,t=(Array.isArray(this.getProperty("otherContent"))?this.getProperty("otherContent"):[this.getProperty("otherContent")]).filter((function(e){return e&&"string"==typeof(t=e["@type"])&&t.toLowerCase()==t.toLowerCase();var t})).map((function(t,n){return new s.AnnotationList(t.label||"Annotation list "+n,t,e.options)})).map((function(e){return e.load()}));return Promise.all(t)},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},Object.defineProperty(t.prototype,"imageResources",{get:function(){var e=this,n=c.default([this.getImages().map((function(e){return e.getResource()})),this.getContent().map((function(e){return e.getBody()}))]);return l.default(n.map((function(n){switch(n.getProperty("type").toLowerCase()){case a.ExternalResourceType.CHOICE:case a.ExternalResourceType.OA_CHOICE:return new t({images:l.default([n.getProperty("default"),n.getProperty("item")]).map((function(e){return{resource:e}}))},e.options).getImages().map((function(e){return e.getResource()}));default:return n}})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resourceAnnotations",{get:function(){return c.default([this.getImages(),this.getContent()])},enumerable:!0,configurable:!0}),t.prototype.resourceAnnotation=function(e){return this.resourceAnnotations.find((function(t){return t.getResource().id===e||l.default(new Array(t.getBody())).some((function(t){return t.id===e}))}))},t.prototype.onFragment=function(e){var t=this.resourceAnnotation(e);if(t){var n=t.getProperty("on"),r=t.getProperty("target");if(n&&r){var o=(n||r).match(/xywh=(.*)$/);if(o)return o[1].split(",").map((function(e){return parseInt(e,10)}))}}},Object.defineProperty(t.prototype,"iiifImageResources",{get:function(){return this.imageResources.filter((function(e){return e&&e.getServices()[0]&&e.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageServiceIds",{get:function(){return this.iiifImageResources.map((function(e){return e.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){return this.getWidth()/this.getHeight()},enumerable:!0,configurable:!0}),t}(s.Resource);t.Canvas=u},function(e,t,n){var r=n(4);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(2),o=n(24),i=n(29),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(22),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(23))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(25),o=n(5),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){var r=n(26),o=n(5);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(2),o=n(27),i=n(28),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(2),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(4);e.exports=function(e){return null!=e&&e.length?r(e,1/0):[]}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.items=[],r._collections=null,r._manifests=null,t.__collection=r,r}return o(t,e),t.prototype.getCollections=function(){return this._collections?this._collections:this._collections=this.items.filter((function(e){return e.isCollection()}))},t.prototype.getManifests=function(){return this._manifests?this._manifests:this._manifests=this.items.filter((function(e){return e.isManifest()}))},t.prototype.getCollectionByIndex=function(e){for(var t,n=this.getCollections(),r=0;r<n.length;r++){var o=n[r];o.index===e&&(t=o)}if(t)return t.options.index=e,t.load();throw new Error("Collection index not found")},t.prototype.getManifestByIndex=function(e){for(var t,n=this.getManifests(),r=0;r<n.length;r++){var o=n[r];o.index===e&&(t=o)}if(t)return t.options.index=e,t.load();throw new Error("Manifest index not found")},t.prototype.getTotalCollections=function(){return this.getCollections().length},t.prototype.getTotalManifests=function(){return this.getManifests().length},t.prototype.getTotalItems=function(){return this.items.length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):i.ViewingDirection.LEFT_TO_RIGHT},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.getDefaultTree=function(){return e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=a.Utils.normaliseType(a.TreeNodeType.COLLECTION),this._parseManifests(this),this._parseCollections(this),a.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._parseManifests=function(e){if(e.getManifests()&&e.getManifests().length)for(var t=0;t<e.getManifests().length;t++){var n=e.getManifests()[t],r=n.getDefaultTree();r.label=n.parentLabel||n.getLabel().getValue(this.options.locale)||"manifest "+(t+1),r.navDate=n.getNavDate(),r.data.id=n.id,r.data.type=a.Utils.normaliseType(a.TreeNodeType.MANIFEST),e.defaultTree.addNode(r)}},t.prototype._parseCollections=function(e){if(e.getCollections()&&e.getCollections().length)for(var t=0;t<e.getCollections().length;t++){var n=e.getCollections()[t],r=n.getDefaultTree();r.label=n.parentLabel||n.getLabel().getValue(this.options.locale)||"collection "+(t+1),r.navDate=n.getNavDate(),r.data.id=n.id,r.data.type=a.Utils.normaliseType(a.TreeNodeType.COLLECTION),e.defaultTree.addNode(r)}},t}(a.IIIFResource);t.Collection=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.getLength=function(){return this.end-this.start},e}();t.Duration=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e){this.defaultLocale=e}return e.prototype.parse=function(e){this.resource=e,this.label=r.PropertyValue.parse(this.resource.label,this.defaultLocale),this.value=r.PropertyValue.parse(this.resource.value,this.defaultLocale)},e.prototype.getLabel=function(e){return null===this.label?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.label.getValue(e||this.defaultLocale))},e.prototype.setLabel=function(e){null===this.label&&(this.label=new r.PropertyValue([])),this.label.setValue(e,this.defaultLocale)},e.prototype.getValue=function(e,t){return void 0===t&&(t="<br/>"),null===this.value?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValue(e||this.defaultLocale,t))},e.prototype.getValues=function(e){return null===this.value?[]:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValues(e||this.defaultLocale))},e.prototype.setValue=function(e){null===this.value&&(this.value=new r.PropertyValue([])),this.value.setValue(e,this.defaultLocale)},e}();t.LabelValuePair=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getValue=function(e,t){return e.getValue(t,"<br/>")},t.getValues=function(e,t){return e.getValues(t)},t}(Array);t.LanguageMap=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s=function(){function e(e,t,n){void 0===n&&(n="none"),Array.isArray(e)&&1===e.length?this._value=e[0]:this._value=e,"none"!==t&&"@none"!==t||(t=void 0),this._locale=t,this._defaultLocale=n}return e.parseV2Value=function(t,n){return"string"==typeof t?new e(t,void 0,n):t["@value"]?new e(t["@value"],t["@language"],n):null},Object.defineProperty(e.prototype,"value",{get:function(){return Array.isArray(this._value)?this._value.join("<br/>"):this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return void 0===this._locale?this._defaultLocale:this._locale},enumerable:!0,configurable:!0}),e.prototype.addValue=function(e){Array.isArray(this._value)||(this._value=[this._value]),Array.isArray(e)?this._value=this._value.concat(e):this._value.push(e)},e}();t.LocalizedValue=s;var l=function(e){function t(n,r){void 0===n&&(n=[]);var o=e.apply(this,n)||this;return o.__proto__=t.prototype,o._defaultLocale=r,o}return o(t,e),t.parse=function(e,n){if(!e)return new t([],n);if(Array.isArray(e)){var r=(o=e.map((function(e){return s.parseV2Value(e,n)})).filter((function(e){return null!==e}))).reduce((function(e,t){var n=t._locale;return n||(n="none"),e[n]?e[n].addValue(t._value):e[n]=t,e}),{});return new t(Object.values(r),n)}return"string"==typeof e?new t([new s(e,void 0,n)],n):e["@language"]||e["@value"]?new t(null!==(o=s.parseV2Value(e))?[o]:[],n):new t(Object.keys(e).map((function(t){var r=e[t];if(!Array.isArray(r))throw new Error("A IIIF v3 localized property value must have an array as the value for a given language.");return new s(r,t,n)})),n);var o},t.prototype.getSuitableLocale=function(e){for(var t=i(this).map((function(e){return e._locale})).filter((function(e){return void 0!==e})),n=function(e){var n=t.find((function(t){return t===e}));if(n)return{value:n}},r=0,o=e;r<o.length;r++){var s=n(o[r]);if("object"==typeof s)return s.value}for(var l=function(e){var n=t.find((function(t){return a.Utils.getInexactLocale(t)===a.Utils.getInexactLocale(e)}));if(n)return{value:n}},c=0,u=e;c<u.length;c++){var d=l(u[c]);if("object"==typeof d)return d.value}},t.prototype.setValue=function(e,t){var n=void 0;if(t){var r=this.getSuitableLocale([t]);r&&(n=this.find((function(e){return e._locale===r})))}else n=this.find((function(e){return void 0===e._locale}));n?n._value=e:this.push(new s(e,t,this._defaultLocale))},t.prototype.getValue=function(e,t){var n=this.getValues(e);return 0===n.length?null:t?n.join(t):n[0]},t.prototype.getValues=function(e){if(!this.length)return[];var t;if(t=e?Array.isArray(e)?e:[e]:[],1===this.length&&void 0===this[0]._locale){var n=this[0]._value;return Array.isArray(n)?n:[n]}var r=this.getSuitableLocale(t);if(r)return n=this.find((function(e){return e._locale===r}))._value,Array.isArray(n)?n:[n];if(!this.find((function(e){return void 0===e._locale})))return n=this[0]._value,Array.isArray(n)?n:[n];var o=this.find((function(e){return void 0===e._locale}));return o?Array.isArray(o._value)?o._value:[o._value]:[]},t}(Array);t.PropertyValue=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTINUE=100,t.SWITCHING_PROTOCOLS=101,t.PROCESSING=102,t.OK=200,t.CREATED=201,t.ACCEPTED=202,t.NON_AUTHORITATIVE_INFORMATION=203,t.NO_CONTENT=204,t.RESET_CONTENT=205,t.PARTIAL_CONTENT=206,t.MULTI_STATUS=207,t.MULTIPLE_CHOICES=300,t.MOVED_PERMANENTLY=301,t.MOVED_TEMPORARILY=302,t.SEE_OTHER=303,t.NOT_MODIFIED=304,t.USE_PROXY=305,t.TEMPORARY_REDIRECT=307,t.BAD_REQUEST=400,t.UNAUTHORIZED=401,t.PAYMENT_REQUIRED=402,t.FORBIDDEN=403,t.NOT_FOUND=404,t.METHOD_NOT_ALLOWED=405,t.NOT_ACCEPTABLE=406,t.PROXY_AUTHENTICATION_REQUIRED=407,t.REQUEST_TIME_OUT=408,t.CONFLICT=409,t.GONE=410,t.LENGTH_REQUIRED=411,t.PRECONDITION_FAILED=412,t.REQUEST_ENTITY_TOO_LARGE=413,t.REQUEST_URI_TOO_LARGE=414,t.UNSUPPORTED_MEDIA_TYPE=415,t.REQUESTED_RANGE_NOT_SATISFIABLE=416,t.EXPECTATION_FAILED=417,t.IM_A_TEAPOT=418,t.UNPROCESSABLE_ENTITY=422,t.LOCKED=423,t.FAILED_DEPENDENCY=424,t.UNORDERED_COLLECTION=425,t.UPGRADE_REQUIRED=426,t.PRECONDITION_REQUIRED=428,t.TOO_MANY_REQUESTS=429,t.REQUEST_HEADER_FIELDS_TOO_LARGE=431,t.INTERNAL_SERVER_ERROR=500,t.NOT_IMPLEMENTED=501,t.BAD_GATEWAY=502,t.SERVICE_UNAVAILABLE=503,t.GATEWAY_TIME_OUT=504,t.HTTP_VERSION_NOT_SUPPORTED=505,t.VARIANT_ALSO_NEGOTIATES=506,t.INSUFFICIENT_STORAGE=507,t.BANDWIDTH_LIMIT_EXCEEDED=509,t.NOT_EXTENDED=510,t.NETWORK_AUTHENTICATION_REQUIRED=511},function(e,t,n){e.exports=window.fetch||(window.fetch=n(6).default||n(6))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;if(r.index=0,r._allRanges=null,r.items=[],r._topRanges=[],r.__jsonld.structures&&r.__jsonld.structures.length)for(var o=r._getTopRanges(),i=0;i<o.length;i++){var a=o[i];r._parseRanges(a,String(i))}return r}return o(t,e),t.prototype.getPosterCanvas=function(){var e=this.getProperty("posterCanvas");return e&&(e=new a.Canvas(e,this.options)),e},t.prototype.getAccompanyingCanvas=function(){var e=this.getProperty("accompanyingCanvas");return e&&(e=new a.Canvas(e,this.options)),e},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getDefaultTree=function(){if(e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=a.Utils.normaliseType(a.TreeNodeType.MANIFEST),!this.isLoaded)return this.defaultTree;var t=this.getTopRanges();return t.length&&t[0].getTree(this.defaultTree),a.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._getTopRanges=function(){var e=[];if(this.__jsonld.structures&&this.__jsonld.structures.length){for(var t=0;t<this.__jsonld.structures.length;t++){var n=this.__jsonld.structures[t];n.viewingHint===i.ViewingHint.TOP&&e.push(n)}if(!e.length){var r={};r.ranges=this.__jsonld.structures,e.push(r)}}return e},t.prototype.getTopRanges=function(){return this._topRanges},t.prototype._getRangeById=function(e){if(this.__jsonld.structures&&this.__jsonld.structures.length)for(var t=0;t<this.__jsonld.structures.length;t++){var n=this.__jsonld.structures[t];if(n["@id"]===e||n.id===e)return n}return null},t.prototype._parseRanges=function(e,t,n){var r,o=null;if("string"==typeof e&&(o=e,e=this._getRangeById(o)),e){(r=new a.Range(e,this.options)).parentRange=n,r.path=t,n?n.items.push(r):this._topRanges.push(r);var i=e.items||e.members;if(i)for(var s=0;s<i.length;s++){var l=i[s];if(l["@type"]&&"sc:range"===l["@type"].toLowerCase()||l.type&&"range"===l.type.toLowerCase())this._parseRanges(l,t+"/"+s,r);else if(l["@type"]&&"sc:canvas"===l["@type"].toLowerCase()||l.type&&"canvas"===l.type.toLowerCase()){r.canvases||(r.canvases=[]);var c=l.id||l["@id"];r.canvases.push(c)}}else if(e.ranges)for(s=0;s<e.ranges.length;s++)this._parseRanges(e.ranges[s],t+"/"+s,r)}else console.warn("Range:",o,"does not exist")},t.prototype.getAllRanges=function(){if(null!=this._allRanges)return this._allRanges;this._allRanges=[];for(var e=this.getTopRanges(),t=function(t){var r=e[t];r.id&&n._allRanges.push(r);var o=function(e,t){e.add(t);var n=t.getRanges();return n.length?n.reduce(o,e):e},i=Array.from(r.getRanges().reduce(o,new Set));n._allRanges=n._allRanges.concat(i)},n=this,r=0;r<e.length;r++)t(r);return this._allRanges},t.prototype.getRangeById=function(e){for(var t=this.getAllRanges(),n=0;n<t.length;n++){var r=t[n];if(r.id===e)return r}return null},t.prototype.getRangeByPath=function(e){for(var t=this.getAllRanges(),n=0;n<t.length;n++){var r=t[n];if(r.path===e)return r}return null},t.prototype.getSequences=function(){if(this.items.length)return this.items;var e=this.__jsonld.mediaSequences||this.__jsonld.sequences;if(e)for(var t=0;t<e.length;t++){var n=e[t],r=new a.Sequence(n,this.options);this.items.push(r)}else this.__jsonld.items&&(r=new a.Sequence(this.__jsonld.items,this.options),this.items.push(r));return this.items},t.prototype.getSequenceByIndex=function(e){return this.getSequences()[e]},t.prototype.getTotalSequences=function(){return this.getSequences().length},t.prototype.getManifestType=function(){var e=this.getService(i.ServiceProfile.UI_EXTENSIONS);return e?e.getProperty("manifestType"):a.ManifestType.EMPTY},t.prototype.isMultiSequence=function(){return this.getTotalSequences()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();if(e)return e===i.ViewingHint.PAGED;var t=this.getBehavior();return!!t&&t===i.Behavior.PAGED},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t}(a.IIIFResource);t.Manifest=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EMPTY="",e.MANUSCRIPT="manuscript",e.MONOGRAPH="monograph"}(t.ManifestType||(t.ManifestType={}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._ranges=null,r.canvases=null,r.items=[],r}return o(t,e),t.prototype.getCanvasIds=function(){return this.__jsonld.canvases?this.__jsonld.canvases:this.canvases?this.canvases:[]},t.prototype.getDuration=function(){if(this.canvases&&this.canvases.length){for(var e=[],t=[],n=0,r=this.canvases;n<r.length;n++)if(h=r[n]){var o=h.match(/(.*)#t=([0-9.]+),?([0-9.]+)?/)||[void 0,h],a=o[1],s=o[2],l=o[3];a&&(e.push(parseFloat(s)),t.push(parseFloat(l)))}if(e.length&&t.length)return new i.Duration(Math.min.apply(Math,e),Math.max.apply(Math,t))}else{e=[],t=[];for(var c=0,u=g=this.getRanges();c<u.length;c++)(v=u[c].getDuration())&&(e.push(v.start),t.push(v.end));if(e.length&&t.length)return new i.Duration(Math.min.apply(Math,e),Math.max.apply(Math,t))}var d,f;if(this.canvases&&this.canvases.length)for(var p=0;p<this.canvases.length;p++){var h=this.canvases[p],m=i.Utils.getTemporalComponent(h);m&&m.length>1&&(0===p&&(d=Number(m[0])),p===this.canvases.length-1&&(f=Number(m[1])))}else{var g=this.getRanges();for(p=0;p<g.length;p++){var v;(v=g[p].getDuration())&&(0===p&&(d=v.start),p===g.length-1&&(f=v.end))}}if(void 0!==d&&void 0!==f)return new i.Duration(d,f)},t.prototype.getRanges=function(){return this._ranges?this._ranges:this._ranges=this.items.filter((function(e){return e.isRange()}))},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.getTree=function(e){e.data=this,this.treeNode=e;var t=this.getRanges();if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n],o=new i.TreeNode;e.addNode(o),this._parseTreeNode(o,r)}return i.Utils.generateTreeNodeIds(e),e},t.prototype.spansTime=function(e){var t=this.getDuration();return!!(t&&e>=t.start&&e<=t.end)},t.prototype._parseTreeNode=function(e,t){e.label=t.getLabel().getValue(this.options.locale),e.data=t,e.data.type=i.Utils.normaliseType(i.TreeNodeType.RANGE),t.treeNode=e;var n=t.getRanges();if(n&&n.length)for(var r=0;r<n.length;r++){var o=n[r];if(o.getBehavior()!==a.Behavior.NO_NAV){var s=new i.TreeNode;e.addNode(s),this._parseTreeNode(s,o)}}},t}(i.ManifestResource);t.Range=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getFormat=function(){return this.getProperty("format")},t}(n(0).ManifestResource);t.Rendering=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.items=[],r._thumbnails=null,r}return o(t,e),t.prototype.getCanvases=function(){if(this.items.length)return this.items;var e=this.__jsonld.canvases||this.__jsonld.elements;if(e)for(var t=0;t<e.length;t++){var n=e[t];(r=new a.Canvas(n,this.options)).index=t,this.items.push(r)}else if(this.__jsonld)for(t=0;t<this.__jsonld.length;t++){var r;n=this.__jsonld[t],(r=new a.Canvas(n,this.options)).index=t,this.items.push(r)}return this.items},t.prototype.getCanvasById=function(e){for(var t=0;t<this.getTotalCanvases();t++){var n=this.getCanvasByIndex(t),r=a.Utils.normaliseUrl(n.id);if(a.Utils.normaliseUrl(e)===r)return n}return null},t.prototype.getCanvasByIndex=function(e){return this.getCanvases()[e]},t.prototype.getCanvasIndexById=function(e){for(var t=0;t<this.getTotalCanvases();t++)if(this.getCanvasByIndex(t).id===e)return t;return null},t.prototype.getCanvasIndexByLabel=function(e,t){e=e.trim(),isNaN(e)||(e=parseInt(e,10).toString(),t&&(e+="r"));for(var n,r,o,i=/(\d*)\D+(\d*)/,a=0;a<this.getTotalCanvases();a++){var s=this.getCanvasByIndex(a);if(s.getLabel().getValue(this.options.locale)===e)return a;if((n=i.exec(e))&&(r=n[1],(o=n[2])&&new RegExp("^"+r+"\\D+"+o+"$").test(s.getLabel().toString())))return a}return-1},t.prototype.getLastCanvasLabel=function(e){for(var t=this.getTotalCanvases()-1;t>=0;t--){var n=this.getCanvasByIndex(t).getLabel().getValue(this.options.locale);if(e){if(/^[a-zA-Z0-9]*$/.test(n))return n}else if(n)return n}return this.options.defaultLabel},t.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},t.prototype.getNextPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),o=this.getViewingDirection();n=o&&o===i.ViewingDirection.RIGHT_TO_LEFT?r[0]+1:r[r.length-1]+1}else n=e+1;return n>this.getLastPageIndex()?-1:n},t.prototype.getPagedIndices=function(e,t){var n=[];if(t){n=this.isFirstCanvas(e)||this.isLastCanvas(e)?[e]:e%2?[e,e+1]:[e-1,e];var r=this.getViewingDirection();r&&r===i.ViewingDirection.RIGHT_TO_LEFT&&(n=n.reverse())}else n.push(e);return n},t.prototype.getPrevPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),o=this.getViewingDirection();n=o&&o===i.ViewingDirection.RIGHT_TO_LEFT?r[r.length-1]-1:r[0]-1}else n=e-1;return n},t.prototype.getStartCanvasIndex=function(){var e=this.getStartCanvas();if(e)for(var t=0;t<this.getTotalCanvases();t++)if(this.getCanvasByIndex(t).id===e)return t;return 0},t.prototype.getThumbs=function(e,t){for(var n=[],r=this.getTotalCanvases(),o=0;o<r;o++){var i=this.getCanvasByIndex(o),s=new a.Thumb(e,i);n.push(s)}return n},t.prototype.getThumbnails=function(){if(null!=this._thumbnails)return this._thumbnails;this._thumbnails=[];for(var e=this.getCanvases(),t=0;t<e.length;t++){var n=e[t].getThumbnail();n&&this._thumbnails.push(n)}return this._thumbnails},t.prototype.getStartCanvas=function(){return this.getProperty("startCanvas")},t.prototype.getTotalCanvases=function(){return this.getCanvases().length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):this.options.resource.getViewingDirection?this.options.resource.getViewingDirection():null},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.isCanvasIndexOutOfRange=function(e){return e>this.getTotalCanvases()-1},t.prototype.isFirstCanvas=function(e){return 0===e},t.prototype.isLastCanvas=function(e){return e===this.getTotalCanvases()-1},t.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();return!!e&&e===i.ViewingHint.PAGED},t.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2==0},t}(a.ManifestResource);t.Sequence=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){}return e.parse=function(e,t){return"string"==typeof e&&(e=JSON.parse(e)),this.parseJson(e,t)},e.parseJson=function(e,t){var n;if(t&&t.navDate&&!isNaN(t.navDate.getTime())&&(e.navDate=t.navDate.toString()),e["@type"])switch(e["@type"]){case"sc:Collection":n=this.parseCollection(e,t);break;case"sc:Manifest":n=this.parseManifest(e,t);break;default:return null}else switch(e.type){case"Collection":n=this.parseCollection(e,t);break;case"Manifest":n=this.parseManifest(e,t);break;default:return null}return n.isLoaded=!0,n},e.parseCollection=function(e,t){var n=new r.Collection(e,t);return t?(n.index=t.index||0,t.resource&&(n.parentCollection=t.resource.parentCollection)):n.index=0,this.parseCollections(n,t),this.parseManifests(n,t),this.parseItems(n,t),n},e.parseCollections=function(e,t){var n;if(e.__jsonld.collections?n=e.__jsonld.collections:e.__jsonld.items&&(n=e.__jsonld.items.filter((function(e){return"collection"===e.type.toLowerCase()}))),n)for(var r=0;r<n.length;r++){t&&(t.index=r);var o=this.parseCollection(n[r],t);o.index=r,o.parentCollection=e,e.items.push(o)}},e.parseManifest=function(e,t){return new r.Manifest(e,t)},e.parseManifests=function(e,t){var n;if(e.__jsonld.manifests?n=e.__jsonld.manifests:e.__jsonld.items&&(n=e.__jsonld.items.filter((function(e){return"manifest"===e.type.toLowerCase()}))),n)for(var r=0;r<n.length;r++){var o=this.parseManifest(n[r],t);o.index=r,o.parentCollection=e,e.items.push(o)}},e.parseItem=function(e,t){if(e["@type"]){if("sc:manifest"===e["@type"].toLowerCase())return this.parseManifest(e,t);if("sc:collection"===e["@type"].toLowerCase())return this.parseCollection(e,t)}else if(e.type){if("manifest"===e.type.toLowerCase())return this.parseManifest(e,t);if("collection"===e.type.toLowerCase())return this.parseCollection(e,t)}return null},e.parseItems=function(e,t){var n=e.__jsonld.members||e.__jsonld.items;if(n)for(var r=function(r){t&&(t.index=r);var i=o.parseItem(n[r],t);return i?e.items.filter((function(e){return e.id===i.id}))[0]?"continue":(i.index=r,i.parentCollection=e,void e.items.push(i)):{value:void 0}},o=this,i=0;i<n.length;i++){var a=r(i);if("object"==typeof a)return a.value}},e}();t.Deserialiser=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getProfile=function(){var e=this.getProperty("profile");return e||(e=this.getProperty("dcterms:conformsTo")),Array.isArray(e)?e[0]:e},t.prototype.getConfirmLabel=function(){return i.Utils.getLocalisedValue(this.getProperty("confirmLabel"),this.options.locale)},t.prototype.getDescription=function(){return i.Utils.getLocalisedValue(this.getProperty("description"),this.options.locale)},t.prototype.getFailureDescription=function(){return i.Utils.getLocalisedValue(this.getProperty("failureDescription"),this.options.locale)},t.prototype.getFailureHeader=function(){return i.Utils.getLocalisedValue(this.getProperty("failureHeader"),this.options.locale)},t.prototype.getHeader=function(){return i.Utils.getLocalisedValue(this.getProperty("header"),this.options.locale)},t.prototype.getServiceLabel=function(){return i.Utils.getLocalisedValue(this.getProperty("label"),this.options.locale)},t.prototype.getInfoUri=function(){var e=this.id;return e.endsWith("/")||(e+="/"),e+"info.json"},t}(i.ManifestResource);t.Service=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Size=function(e,t){this.width=e,this.height=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.AUTHORIZATION_FAILED=1]="AUTHORIZATION_FAILED",e[e.FORBIDDEN=2]="FORBIDDEN",e[e.INTERNAL_SERVER_ERROR=3]="INTERNAL_SERVER_ERROR",e[e.RESTRICTED=4]="RESTRICTED"}(t.StatusCode||(t.StatusCode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Thumb=function(e,t){this.data=t,this.index=t.index,this.width=e;var n=t.getHeight()/t.getWidth();this.height=n?Math.floor(this.width*n):e,this.uri=t.getCanonicalImageUri(e),this.label=t.getLabel().getValue(),this.viewingHint=t.getViewingHint()}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t}(n(0).Resource);t.Thumbnail=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e,t){this.label=e,this.data=t||{},this.nodes=[]}return e.prototype.addNode=function(e){this.nodes.push(e),e.parentNode=this},e.prototype.isCollection=function(){return this.data.type===r.Utils.normaliseType(r.TreeNodeType.COLLECTION)},e.prototype.isManifest=function(){return this.data.type===r.Utils.normaliseType(r.TreeNodeType.MANIFEST)},e.prototype.isRange=function(){return this.data.type===r.Utils.normaliseType(r.TreeNodeType.RANGE)},e}();t.TreeNode=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range"}(t.TreeNodeType||(t.TreeNodeType={}))}])},39228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=a(n(40961)),i=(a(n(5556)),a(n(83715)));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var c=function(e){var t,n;function a(t){var n,o,i,a;return a=function(e){var t=(void 0===e?{}:e).lines;return t&&t.length>0&&t.some((function(e){var t=e.text,n=e.spans;return t||n&&n.length>0}))},(i="shouldRenderPage")in(o=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call(this,t)||this))?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,n.renderRefs=[r.default.createRef(),r.default.createRef()],n.containerRef=r.default.createRef(),n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var s=a.prototype;return s.componentDidMount=function(){var e=this.props,t=e.enabled,n=e.viewer;t&&n&&this.registerOsdCallback(),this.patchAnnotationOverlay()},s.componentDidUpdate=function(e){var t=this.props,n=t.enabled,r=t.viewer,o=t.pageTexts,i=t.textColor,a=t.bgColor,s=t.useAutoColors,l=t.visible,c=t.selectable,u=this.props.opacity;this.patchAnnotationOverlay(),n&&r&&r!==e.viewer&&this.registerOsdCallback(),(this.shouldRender()&&!this.shouldRender(e)||o.filter(this.shouldRenderPage).length!==e.pageTexts.filter(this.shouldRenderPage).length)&&this.onUpdateViewport(),c!==e.selectable&&this.renderRefs.filter((function(e){return e.current})).forEach((function(e){return e.current.updateSelectability(c)}));var d=function(e){return void 0===e&&(e={}),void 0!==e.textColor};l===e.visible&&u===e.opacity&&a===e.bgColor&&i===e.textColor&&s===e.useAutoColors&&o.filter(d).length===e.pageTexts.filter(d).length||(l||(u=0),this.renderRefs.forEach((function(e,t){if(e.current){var n=i,r=a;if(s){var l=o[t],c=l.textColor,d=l.bgColor;c&&(n=c,r=d)}e.current.updateColors(n,r,u)}})))},s.onUpdateViewport=function(){if(this.shouldRender){var e=this.props,t=e.viewer,n=e.canvasWorld,r=t.viewport.getBounds(!0),o=t.viewport.getZoom(!0);if(this.containerRef.current){var i=t.container,a=i.clientWidth,s=i.clientHeight,l=t.viewport.getFlip(),c=t.viewport.getRotation(),u=[];if(l&&(u.push("translate("+a+"px, 0px)"),u.push("scale(-1, 1)")),0!==c){switch(c){case 90:u.push("translate("+a+"px, 0px)");break;case 180:u.push("translate("+a+"px, "+s+"px)");break;case 270:u.push("translate(0px, "+s+"px)");break;default:console.error("Unsupported rotation: "+c)}u.push("rotate("+c+"deg)")}this.containerRef.current.style.transform=u.join(" ")}for(var d=0;d<t.world.getItemCount();d+=1)if(this.renderRefs[d].current){var f=t.world.getItemAt(d),p=n.canvasDimensions[d],h=d>0?f.source.dimensions.x-p.width+n.canvasDimensions[d-1].width:0,m=f.source.dimensions.x/p.width;this.renderRefs[d].current.updateTransforms(f.viewportToImageZoom(o),r.x*m-h,r.y*m)}}},s.shouldRender=function(e){var t=null!=e?e:this.props,n=t.enabled,r=t.pageTexts;return n&&r.length>0},s.registerOsdCallback=function(){this.props.viewer.addHandler("update-viewport",this.onUpdateViewport.bind(this))},s.patchAnnotationOverlay=function(){var e,t,n=this.props,r=n.enabled,o=n.selectable;if(r){var i=null===(e=this.containerRef.current)||void 0===e||null===(t=e.parentElement.querySelector("div.openseadragon-canvas > div > canvas"))||void 0===t?void 0:t.parentElement;i&&(i.style.zIndex=100,i.style.pointerEvents=o?"none":null)}},s.render=function(){var e=this,t=this.props,n=t.pageTexts,a=t.selectable,s=t.visible,l=t.viewer,c=t.opacity,u=t.textColor,d=t.bgColor,f=t.useAutoColors,p=t.fontFamily;return this.shouldRender()&&l&&n?o.default.createPortal(r.default.createElement("div",{ref:this.containerRef,style:{position:"absolute",display:a||s?null:"none"}},n.map((function(t,n){if(!t||!e.shouldRenderPage(t))return null;var o=t.lines,l=t.source,h=t.width,m=t.height,g=t.textColor,v=t.bgColor;return r.default.createElement(i.default,{ref:e.renderRefs[n],key:l,lines:o,source:l,selectable:a,visible:s,opacity:c,width:h,height:m,textColor:u,fontFamily:p,bgColor:d,useAutoColors:f,pageColors:g?{textColor:g,bgColor:v}:void 0})}))),l.canvas):null},a}(r.Component);c.propTypes={},c.defaultProps={canvasWorld:void 0,enabled:!0,opacity:.75,pageTexts:void 0,selectable:!0,viewer:void 0,visible:!1,textColor:"#000000",fontFamily:void 0,bgColor:"#ffffff",useAutoColors:!0};var u=c;t.default=u},83715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(96540)),o=(a(n(5556)),n(19681)),i=a(n(79626));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=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},s.apply(this,arguments)}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var d=function(e){var t,n;function i(t){var n,o,i,a;return a=function(e){n.props.selectable&&e.stopPropagation()},(i="onPointerDown")in(o=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call(this,t)||this))?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,n.containerRef=r.default.createRef(),n.textContainerRef=r.default.createRef(),n.boxContainerRef=r.default.createRef(),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var a=i.prototype;return a.componentDidMount=function(){this.textContainerRef.current.addEventListener("pointerdown",this.onPointerDown),this.textContainerRef.current.addEventListener("touchstart",this.onPointerDown)},a.shouldComponentUpdate=function(e){var t=this.props.source;return e.source!==t},a.updateTransforms=function(e,t,n){if(this.containerRef.current){var r=this.props,o=["translate("+((e-1)*r.width/2+t*e*-1)+"px, "+((e-1)*r.height/2+n*e*-1)+"px)","scale("+e+")"];this.containerRef.current.style.display=null,this.containerRef.current.style.transform=o.join(" ")}},a.updateColors=function(e,t,n){if(this.textContainerRef.current&&this.boxContainerRef.current){for(var r,i=l(this.boxContainerRef.current.querySelectorAll("rect"));!(r=i()).done;)r.value.style.fill=(0,o.fade)(t,n);for(var a,s=l(this.textContainerRef.current.querySelectorAll("text"));!(a=s()).done;)a.value.style.fill=(0,o.fade)(e,n)}},a.updateSelectability=function(e){this.textContainerRef.current&&(this.textContainerRef.current.parentElement.style.userSelect=e?"text":"none")},a.render=function(){var e=this.props,t=e.selectable,n=e.visible,i=e.lines,a=e.width,l=e.height,c=e.opacity,u=e.textColor,d=e.bgColor,f=e.useAutoColors,p=e.pageColors,h=e.classes,m={left:0,top:0,width:a,height:l,userSelect:t?"text":"none",whiteSpace:"pre"},g=u,v=d;f&&p&&(g=p.textColor,v=p.bgColor);var y=!n&&t?0:c,b={fill:(0,o.fade)(v,y)},w={fill:(0,o.fade)(g,y)},E=i.filter((function(e){return e.width>0&&e.height>0})),x=navigator.userAgent.indexOf("Gecko/")>=0,O=function(e){var t=e.children;return r.default.createElement("text",{style:w},t)},S=function(e){return r.default.createElement("tspan",e)};return x&&(O=r.default.Fragment,S=function(e){return r.default.createElement("text",s({style:w},e))}),r.default.createElement("div",{ref:this.containerRef,style:{willChange:"transform",position:"absolute",display:"none"}},r.default.createElement("svg",{style:s({},m,{userSelect:"none"})},r.default.createElement("g",{ref:this.boxContainerRef},E.map((function(e){return r.default.createElement("rect",{key:"rect-"+e.x+"."+e.y,x:e.x,y:e.y,width:e.width,height:e.height,style:b})})))),r.default.createElement("svg",{style:s({},m,{position:"absolute"}),className:h.textOverlay},r.default.createElement("g",{ref:this.textContainerRef},E.map((function(e){return e.spans?r.default.createElement(O,{key:"line-"+e.x+"-"+e.y},e.spans.filter((function(e){return e.width>0&&e.height>0})).map((function(t){var n=t.x,o=t.y,i=t.width,a=t.text;return r.default.createElement(S,{key:"text-"+n+"-"+o,x:n,y:e.y+.75*e.height,textLength:i,fontSize:.75*e.height+"px",lengthAdjust:"spacingAndGlyphs"},a)}))):r.default.createElement("text",{key:"line-"+e.x+"-"+e.y,x:e.x,y:e.y+.75*e.height,textLength:e.width,fontSize:e.height+"px",lengthAdjust:"spacingAndGlyphs",style:w},e.text)})))))},i}(r.default.Component);d.propTypes={},d.defaultProps={classes:{},pageColors:void 0};var f=(0,i.default)((function(e){var t,n,r,o,i,a,s,l;return{textOverlay:{"font-family":null!==(t=null==e||null===(n=e.textOverlay)||void 0===n?void 0:n.overlayFont)&&void 0!==t?t:"sans-serif","& ::selection":{fill:null!==(r=null==e||null===(o=e.textOverlay)||void 0===o?void 0:o.selectionTextColor)&&void 0!==r?r:"rgba(255, 255, 255, 1)",color:null!==(i=null==e||null===(a=e.textOverlay)||void 0===a?void 0:a.selectionTextColor)&&void 0!==i?i:"rgba(255, 255, 255, 1)","background-color":null!==(s=null==e||null===(l=e.textOverlay)||void 0===l?void 0:l.selectionBackgroundColor)&&void 0!==s?s:"rgba(0, 55, 255, 1)"}}}}))(d);t.default=f},423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.default.createElement(o.default,a({viewBox:"0 0 24 24"},e),r.default.createElement("path",{d:"M13 19a1 1 0 0 0 1 1h2v2h-2.5c-.55 0-1.5-.45-1.5-1c0 .55-.95 1-1.5 1H8v-2h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H8V2h2.5c.55 0 1.5.45 1.5 1c0-.55.95-1 1.5-1H16v2h-2a1 1 0 0 0-1 1v14z"}))};var r=i(n(96540)),o=i(n(51547));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return a=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},a.apply(this,arguments)}},95708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(96540)),o=(a(n(5556)),a(n(93796))),i=n(19681);function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.default)((function(e){var t,n=e.palette,r=e.breakpoints,o=n.shades.main,a=n.getContrastText(o),s="linear-gradient(to bottom, "+(0,i.fade)(a,0)+" 20%, "+(0,i.fade)(a,.2)+" 20% 80%, "+(0,i.fade)(a,0)+" 80%)",l=s.replace("to bottom","to right");return{root:(t={display:"flex",padding:function(e){var t=e.paddingPrev,n=e.paddingNext;return[[0,null!=n?n:0,0,null!=t?t:0]]},borderRight:function(e){return e.withBorder?"1px solid "+(0,i.fade)(a,.2):"none"},borderImageSlice:function(e){return e.withBorder?1:"unset"},borderImageSource:s,flexDirection:"column"},t[r.down("sm")]={flexDirection:"row",borderRight:function(e){return"none"},borderBottom:function(e){return e.withBorder?"1px solid "+(0,i.fade)(a,.2):"none"},borderImageSource:l,padding:function(e){var t=e.paddingPrev,n=e.paddingNext;return[[null!=t?t:0,0,null!=n?n:0,0]]}},t)}})),l=function(e){var t=e.children,n=e.withBorder,o=e.paddingPrev,i=e.paddingNext,a=s({withBorder:n,paddingPrev:o,paddingNext:i});return r.default.createElement("div",{className:a.root},t)};l.propTypes={},l.defaultProps={withBorder:!1,paddingNext:void 0,paddingPrev:void 0};var c=l;t.default=c},28450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(96540)),o=(a(n(5556)),a(n(93796))),i=n(50375);function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.default)({container:{width:48,height:48,padding:8,boxSizing:"border-box"},input:{display:"inline-block",width:32,height:32,borderRadius:16,backgroundColor:function(e){var t,n=e.color,r=e.autoColors,o=(null!=r?r:[]).filter((function(e){return e}));return 2!==o.length&&null!==(t=null==o?void 0:o[0])&&void 0!==t?t:n},backgroundImage:function(e){var t,n,r=e.color,o=e.autoColors,i=(null!=o?o:[]).filter((function(e){return e}));return 2!==i.length?"none":"linear-gradient(90deg, "+(null!==(t=i[0])&&void 0!==t?t:r)+" 50%, "+(null!==(n=i[1])&&void 0!==n?n:r)+" 50%)"}}}),l=function(e){var t=e.color,n=e.onChange,o=e.title,a=e.autoColors,l=e.className,c=s({color:t,autoColors:a});return r.default.createElement("label",{className:c.container+" "+l},r.default.createElement("div",{title:o,className:"MuiPaper-elevation2 "+c.input}),r.default.createElement("input",{type:"color",value:(0,i.toHexRgb)(a&&a[0]?a[0]:t),style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},onChange:function(e){return n(e.target.value)},onInput:function(e){return n(e.target.value)}}))};l.propTypes={},l.defaultProps={autoColors:void 0,className:""};var c=l;t.default=c},69896:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(96540)),o=(u(n(5556)),n(38554)),i=u(n(80845)),a=u(n(93796)),s=n(19681),l=u(n(28450)),c=n(50375);function u(e){return e&&e.__esModule?e:{default:e}}var d=(0,a.default)((function(e){var t,n,r,o=e.palette,i=e.breakpoints,a=o.shades.main;return{root:(t={display:"flex",flexDirection:"column",position:"absolute",top:48,zIndex:100,borderRadius:[[0,0,25,25]],backgroundColor:(0,s.fade)(a,.8)},t[i.down("sm")]={flexDirection:"row",right:48,top:"auto",borderRadius:[[25,0,0,25]],clipPath:"inset(-8px 0 -8px -8px)"},t),foreground:(n={height:40,padding:[[8,8,0,8]],margin:function(e){return[[e.showResetButton?-12:0,0,0,0]]}},n[i.down("sm")]={height:48,width:40,padding:[[8,0,8,8]],marginTop:0,margin:function(e){return[[0,0,0,e.showResetButton?-12:0]]}},n),background:(r={marginTop:-6,zIndex:-5,height:40,padding:[[0,8,8,8]]},r[i.down("sm")]={height:48,width:40,padding:[[8,8,8,0]],marginTop:0,marginLeft:-6},r)}})),f=function(e){var t=e.textColor,n=e.bgColor,a=e.onChange,s=e.t,u=e.pageColors,f=e.useAutoColors,p=e.containerId,h=!f&&u&&u.some((function(e){return e&&(e.textColor||e.bgColor)})),m=d({showResetButton:h});return r.default.createElement("div",{className:"MuiPaper-elevation4 "+m.root},h&&r.default.createElement(o.MiradorMenuButton,{containerId:p,"aria-label":s("resetTextColors"),onClick:function(){var e,r;return a({useAutoColors:!0,textColor:null!==(e=u.map((function(e){return e.textColor})).filter((function(e){return e}))[0])&&void 0!==e?e:t,bgColor:null!==(r=u.map((function(e){return e.bgColor})).filter((function(e){return e}))[0])&&void 0!==r?r:n})}},r.default.createElement(i.default,null)),r.default.createElement(l.default,{title:s("textColor"),autoColors:f?u.map((function(e){return e.textColor})):void 0,color:t,onChange:function(e){var t;f&&e===(0,c.toHexRgb)(null==u||null===(t=u[0])||void 0===t?void 0:t.bgColor)||a({textColor:e,bgColor:n,useAutoColors:!1})},className:m.foreground}),r.default.createElement(l.default,{title:s("backgroundColor"),color:n,autoColors:f?u.map((function(e){return e.bgColor})):void 0,onChange:function(e){var n;f&&e===(0,c.toHexRgb)(null==u||null===(n=u[0])||void 0===n?void 0:n.bgColor)||a({bgColor:e,textColor:t,useAutoColors:!1})},className:m.background}))};f.propTypes={};var p=f;t.default=p},95266:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(96540)),o=(c(n(5556)),c(n(21209))),i=c(n(93796)),a=c(n(77267)),s=n(19681),l=n(37639);function c(e){return e&&e.__esModule?e:{default:e}}var u=(0,i.default)((function(e){var t,n=e.palette,r=e.breakpoints,o=n.shades.main;return{root:(t={backgroundColor:(0,s.fade)(o,.8),borderRadius:[[0,0,25,25]],height:150,padding:[[16,8,8,8]],position:"absolute",top:48,zIndex:100},t[r.down("sm")]={top:"auto",right:48,height:"auto",width:150,borderRadius:[[25,0,0,25]],clipPath:"inset(-8px 0 -8px -8px)",paddingTop:12,paddingBottom:2},t)}})),d=function(e){var t=e.opacity,n=e.onChange,i=e.t,s=u(),c=(0,l.useTheme)(),d=(0,a.default)(c.breakpoints.down("sm"));return r.default.createElement("div",{"data-test-id":"text-opacity-slider",id:"text-opacity-slider","aria-labelledby":"text-opacity-slider-label",className:"MuiPaper-elevation4 "+s.root},r.default.createElement(o.default,{orientation:d?"horizontal":"vertical",min:1,max:100,value:100*t,getAriaValueText:function(e){return i("opacityCurrentValue",{value:e})},onChange:function(e,t){return n(t/100)}}))};d.propTypes={};var f=d;t.default=f},62506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=(b(n(5556)),n(38554)),i=b(n(51130)),a=b(n(73546)),s=b(n(71090)),l=b(n(14503)),c=b(n(13045)),u=b(n(54462)),d=b(n(12244)),f=b(n(93796)),p=b(n(77267)),h=n(19681),m=b(n(423)),g=b(n(95708)),v=b(n(95266)),y=b(n(69896));function b(e){return e&&e.__esModule?e:{default:e}}function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function E(){return E=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},E.apply(this,arguments)}var x=(0,f.default)((function(e){var t,n=e.palette,r=e.breakpoints,o=n.shades.main;return{bubbleContainer:(t={display:"flex",flexDirection:"row",backgroundColor:(0,h.fade)(o,.8),borderRadius:function(e){return[[25,25,25,25]]},position:"absolute",right:8,top:function(e){return e.imageToolsEnabled?66:8},zIndex:999},t[r.down("sm")]={flexDirection:"column",top:function(e){return 8},right:function(e){return e.imageToolsEnabled?66:8},borderRadius:function(e){return[[25,25,25,!e.textsFetching&&e.open&&e.showColorPicker?0:25]]}},t)}})),O=function(e){var t,n,f=e.windowTextOverlayOptions,b=e.imageToolsEnabled,w=e.textsAvailable,O=e.textsFetching,S=e.updateWindowTextOverlayOptions,A=e.t,_=e.pageColors,C=e.containerId,T=f.enabled,k=f.visible,P=f.selectable,I=f.opacity,R=f.textColor,j=f.bgColor,D=f.useAutoColors,N=(0,r.useState)(T&&(k||P)),M=N[0],L=N[1],z=(0,r.useState)(!1),W=z[0],B=z[1],F=(0,r.useState)(!1),H=F[0],V=F[1],U=(0,d.default)(),G=(0,p.default)(U.breakpoints.down("sm")),q=(0,d.default)().palette,$=q.shades.main,K=q.getContrastText($),Z=(0,h.fade)(K,.25),X=x({imageToolsEnabled:b,open:M,showColorPicker:H,textsFetching:O}),Y=D&&null!==(t=_.map((function(e){return e.textColor})).filter((function(e){return e}))[0])&&void 0!==t?t:R,Q=D&&null!==(n=_.map((function(e){return e.bgColor})).filter((function(e){return e}))[0])&&void 0!==n?n:j,J=M&&!O;if(!T||!w)return null;var ee=r.default.createElement(g.default,{withBorder:!O&&M&&G},r.default.createElement(o.MiradorMenuButton,{containerId:C,"aria-expanded":J,"aria-haspopup":!0,"aria-label":A(M?"collapseTextOverlayOptions":"expandTextOverlayOptions"),disabled:O,onClick:function(){return L(!M)}},J?r.default.createElement(a.default,null):r.default.createElement(s.default,null)));return r.default.createElement("div",{className:"MuiPaper-elevation4 "+X.bubbleContainer},G&&ee,J&&r.default.createElement(r.default.Fragment,null,r.default.createElement(g.default,{withBorder:!0,paddingPrev:G?8:0,paddingNext:8},r.default.createElement(o.MiradorMenuButton,{containerId:C,"aria-label":A("textSelect"),onClick:function(){return S(E({},f,{selectable:!P}))},"aria-pressed":P,style:{backgroundColor:P&&Z}},r.default.createElement(m.default,null))),r.default.createElement(g.default,{paddingPrev:8},r.default.createElement(o.MiradorMenuButton,{containerId:C,"aria-label":A("textVisible"),onClick:function(){S(E({},f,{visible:!k})),W&&k&&B(!1),H&&k&&V(!1)},"aria-pressed":k,style:{backgroundColor:k&&Z}},r.default.createElement(i.default,null))),r.default.createElement(g.default,null,r.default.createElement(o.MiradorMenuButton,{id:"text-opacity-slider-label",containerId:C,disabled:!k,"aria-label":A("textOpacity"),"aria-controls":"text-opacity-slider","aria-expanded":W,onClick:function(){return B(!W)},style:{backgroundColor:W&&(0,h.fade)(K,.1)}},r.default.createElement(l.default,null)),k&&W&&r.default.createElement(v.default,{t:A,opacity:I,onChange:function(e){return S(E({},f,{opacity:e}))}})),r.default.createElement(g.default,{withBorder:!G,paddingNext:G?0:8},r.default.createElement(o.MiradorMenuButton,{id:"color-picker-label",containerId:C,disabled:!k,"aria-label":A("colorPicker"),"aria-controls":"color-picker","aria-expanded":H,onClick:function(){return V(!H)},style:{backgroundColor:H&&(0,h.fade)(K,.1)}},r.default.createElement(c.default,null)),k&&H&&r.default.createElement(y.default,{t:A,containerId:C,bgColor:Q,textColor:Y,pageColors:_,useAutoColors:D,onChange:function(e){return S(E({},f,e))}}))),O&&r.default.createElement(u.default,{disableShrink:!0,size:50,style:{position:"absolute"}}),!G&&ee)};O.propTypes={};var S=O;t.default=S},30420:(e,t,n)=>{"use strict";t.A=void 0;var r=n(86078),o=n(79731),i=n(66961),a=u(n(2287)),s=n(58436),l=u(n(39228)),c=u(n(62506));function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=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},d.apply(this,arguments)}var f=[{component:l.default,mapStateToProps:function(e,t){var n=t.windowId;return d({pageTexts:(0,s.getTextsForVisibleCanvases)(e,{windowId:n}).map((function(e){if(void 0!==e&&!e.isFetching)return d({},e.text,{source:e.source,textColor:e.textColor,bgColor:e.bgColor})})),windowId:n},(0,s.getWindowTextOverlayOptions)(e,{windowId:n}))},mode:"add",reducers:{texts:i.textsReducer},saga:a.default,target:"OpenSeadragonViewer"},{component:c.default,mapDispatchToProps:function(e,t){var n=t.windowId;return{updateWindowTextOverlayOptions:function(t){return e((0,r.updateWindow)(n,{textOverlay:t}))}}},mapStateToProps:function(e,t){var n=t.windowId,r=(0,o.getWindowConfig)(e,{windowId:n}).imageToolsEnabled,i=void 0!==r&&r;return{containerId:(0,o.getContainerId)(e),imageToolsEnabled:i,textsAvailable:(0,s.getTextsForVisibleCanvases)(e,{windowId:n}).length>0,textsFetching:(0,s.getTextsForVisibleCanvases)(e,{windowId:n}).some((function(e){return null==e?void 0:e.isFetching})),pageColors:(0,s.getTextsForVisibleCanvases)(e,{windowId:n}).filter((function(e){return void 0!==e})).map((function(e){return{textColor:e.textColor,bgColor:e.bgColor}})),windowTextOverlayOptions:(0,s.getWindowTextOverlayOptions)(e,{windowId:n})}},mode:"add",target:"OpenSeadragonViewer"}];t.A=f},50375:(e,t)=>{"use strict";function n(e){return e.replace(/rgba?\((.+)\)/,"$1").split(",").map((function(e){return Number.parseInt(e.trim(),10)}))}function r(e){var t=[e[0],e[1],e[2]].map((function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]}Object.defineProperty(t,"__esModule",{value:!0}),t.toHexRgb=function(e){return e&&e.startsWith("rgb")?"#"+e.replace(/rgba?\((.+)\)/,"$1").split(",").slice(0,3).map((function(e){return e.trim()})).map((function(e){return Number.parseInt(e,10)})).map((function(e){return e.toString(16)})).join(""):e},t.getPageColors=function(e){for(var t={},o=0;o<e.length-3;o+=4){var i,a="rgb("+e[o]+","+e[o+1]+","+e[o+2]+")";t[a]=(null!==(i=t[a])&&void 0!==i?i:0)+1}var s=Object.entries(t).sort((function(e,t){var n=e[1];return t[1]-n})),l=s[0][0];s.push(["rgba(0, 0, 0)",0],["rgb(255, 255, 255)",0]);var c=s.slice(1).find((function(e){var t=e[0];return function(e,t){Array.isArray(e)||(e=n(e)),Array.isArray(t)||(t=n(t));var o=r(e),i=r(t);return(Math.max(o,i)+.05)/(Math.min(o,i)+.05)}(l,t)>=7}))[0];return{textColor:l,bgColor:c}}},56978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseHocr=d,t.parseAlto=p,t.parseOcr=function(e,t){var n;return(n=e.indexOf("<alto")>=0?p(e,t):d(e,t)).width&&n.height||(n=i({},n,h(n.lines))),n},t.parseIiifAnnotations=function(e,t){var n=/.+#xywh=(\d+),(\d+),(\d+),(\d+)/g,r=e.filter((function(e){return"line"===e.textGranularity||"Line"===e.dcType})),o=(r.length>0?r:e).map((function(e){var t,r;t=e.resource?null!==(r=e.resource.chars)&&void 0!==r?r:e.resource.value:e.body.value;var o=e.target||e.on,i=(o=Array.isArray(o)?o[0]:o).matchAll(n).next().value.slice(1,5),a=i[0],s=i[1],l=i[2],c=i[3];return{height:parseInt(c,10),text:t,width:parseInt(l,10),x:parseInt(a,10),y:parseInt(s,10)}}));return i({},null!=t?t:h(o),{lines:o})};var r,o=(r=n(94506))&&r.__esModule?r:{default:r};function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=new DOMParser;function c(e){return e.split(";").map((function(e){return e.trim()})).reduce((function(e,t){var n=t.split(" ")[0];return e[n]="bbox"===n?t.split(" ").slice(1,5).map((function(e){return Number.parseInt(e,10)})):t.split(" ").slice(1,5).join(" "),e}),{})}function u(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=1);var r=c(e.title).bbox.map((function(e){return e*n})),o=r[0],i=r[1],a=r[2],s=r[3],l=e.getAttribute("style");l&&(l=l.replace(/font-size:.+;/,""));var u=[{height:s-i,style:l,text:e.textContent,width:a-o,x:o,y:i,isExtra:!1}];if(e.nextSibling instanceof Text){var d=e.nextSibling.wholeText.replace(/\s+/," ");t&&(d=d.trimEnd()),d.length>0&&u.push({height:s-i,text:d,x:a,y:i,isExtra:!0})}var f=u.slice(-1)[0];return t&&""!==f.text.slice(-1)&&(f.text+="\n"),u}function d(e,t){var n=l.parseFromString(e,"text/html").querySelector("div.ocr_page"),r=c(n.title).bbox,o=1;if(r[2]!==t.width||r[3]!==t.height){var i=t.width/r[2],s=t.height/r[3],d=Math.round(s*r[2]),f=Math.round(i*r[3]);d===t.width&&f===t.height||console.warn("Differing scale factors for x and y axis: x="+i+", y="+s),o=i}for(var p,h=[],m=a(n.querySelectorAll("span.ocr_line, span.ocrx_line"));!(p=m()).done;){var g=p.value,v=g.querySelectorAll("span.ocrx_word");if(0===v.length)h.push(u(g,!0,o));else{for(var y,b,w=u(g,!0,o)[0],E=[],x=a(v.entries());!(b=x()).done;){var O,S=b.value,A=S[0],_=u(S[1],A===v.length-1,o),C=null===(O=E.slice(-1).filter((function(e){return e.isExtra})))||void 0===O?void 0:O[0];if(C){var T=_[0].x-C.x;0===T&&(T=1e-4,C.x-=T),C.width=T}E.push.apply(E,_)}var k=null===(y=E.slice(-1).filter((function(e){return e.isExtra})))||void 0===y?void 0:y[0];if(k){var P=w.x+w.width-k.x;0===P&&(P=1e-4,k.x-=P),k.width=P}w.spans=E,w.text=E.map((function(e){return e.text})).join("").trim(),h.push(w)}}return{height:r[3]*o,lines:h,width:r[2]*o}}function f(e){var t={bold:"font-weight: bold",italics:"font-style: italic",smallcaps:"font-variant: small-caps",underline:"text-decoration: underline"},n=[];if(e.hasAttribute("FONTFAMILY")&&n.push("font-family: "+e.getAttribute("FONTFAMILY")),e.hasAttribute("FONTTYPE")&&n.push("font-type: "+e.getAttribute("FONTTYPE")),e.hasAttribute("FONTCOLOR")&&n.push("color: #"+e.getAttribute("FONTCOLOR")),e.hasAttribute("FONTSTYLE")){var r=e.getAttribute("FONTSTYLE");r in t&&n.push(t[r])}return n.join(";")}function p(e,t){var n,r=l.parseFromString(e,"text/xml"),o=null===(n=r.querySelector("alto > Description > MeasurementUnit"))||void 0===n?void 0:n.textContent,i=r.querySelector("alto > Layout > Page, alto > Layout > Page > PrintSpace"),s=Number.parseInt(i.getAttribute("WIDTH"),10),c=Number.parseInt(i.getAttribute("HEIGHT"),10),u=1,d=1;"pixel"!==o&&(s*=u=t.width/s,c*=d=t.height/c);for(var p,h={},m=a(r.querySelectorAll("alto > Styles > TextStyle"));!(p=m()).done;){var g=p.value;h[g.getAttribute("ID")]=f(g)}for(var v,y=null!==r.querySelector("SP"),b=[],w=!1,E=a(r.querySelectorAll("TextLine"));!(v=E()).done;){for(var x,O=v.value,S={height:Number.parseInt(O.getAttribute("HEIGHT"),10)*d,text:"",width:Number.parseInt(O.getAttribute("WIDTH"),10)*u,spans:[],x:Number.parseInt(O.getAttribute("HPOS"),10)*u,y:Number.parseInt(O.getAttribute("VPOS"),10)*d},A=O.querySelectorAll("String, SP, HYP"),_=a(A.entries());!(x=_()).done;){var C=x.value,T=C[0],k=C[1],P=T===A.length-1,I=k.getAttribute("STYLEREFS"),R=null;null!==I&&(R=I.split(" ").map((function(e){return h[e]})).filter((function(e){return void 0!==e})).join(""));var j=Number.parseInt(k.getAttribute("WIDTH"),10)*u,D=Number.parseInt(k.getAttribute("HEIGHT"),10)*d;Number.isNaN(D)&&(D=S.height);var N=Number.parseInt(k.getAttribute("HPOS"),10)*u,M=Number.parseInt(k.getAttribute("VPOS"),10)*d;if(Number.isNaN(M)&&(M=S.y),"String"===k.tagName||"HYP"===k.tagName){var L,z=k.getAttribute("CONTENT"),W=null===(L=S.spans.slice(-1).filter((function(e){return e.isExtra})))||void 0===L?void 0:L[0];if(W){var B=N-W.x;0===B&&(B=1e-4,W.x-=B),W.width=B}S.spans.push({isExtra:!1,x:N,y:M,width:j,height:D,text:z,style:R}),y||P||S.spans.push({isExtra:!0,x:N+j,y:M,height:D,text:" "}),w="HYP"===k.tagName}else"SP"===k.tagName&&(0===j&&(N-=j=1e-4),S.spans.push({isExtra:!1,x:N,y:M,width:j,height:D,text:" "}))}0!==S.spans.length&&(w||(S.spans.slice(-1)[0].text+="\n"),w=!1,S.text=S.spans.map((function(e){return e.text})).join(""),b.push(S))}return{height:c,lines:b,width:s}}function h(e){return{width:(0,o.default)(e.map((function(e){return e.x+e.width}))),height:(0,o.default)(e.map((function(e){return e.y+e.height})))}}},81511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={de:{collapseTextOverlayOptions:"Optionen für die Textdarstellung einklappen",disableTextOverlay:"Textdarstellung deaktivieren",enableTextOverlay:"Textdarstellung aktivieren",expandTextOverlayOptions:"Optionen für die Textdarstellung ausklappen",textOpacity:"Text-Transparenz",textSelect:"Text auswählbar",textVisible:"Text sichtbar",colorPicker:"Farbauswahl",textColor:"Farbe für Text",backgroundColor:"Farbe für Zeilenhintergrund",resetTextColors:"Farben zurücksetzen"},en:{collapseTextOverlayOptions:"Collapse text overlay options",disableTextOverlay:"Disable text overlay",enableTextOverlay:"Enable text overlay",expandTextOverlayOptions:"Expand text overlay options",textOpacity:"Text opacity",textSelect:"Text selectable",textVisible:"Text visible",colorPicker:"Color picker",textColor:"Text color",backgroundColor:"Line background color",resetTextColors:"Reset colors"},sr:{collapseTextOverlayOptions:"Затворите опције приказа текста",disableTextOverlay:"Приказ текста онемогућен",enableTextOverlay:"Приказ текста омогућен",expandTextOverlayOptions:"Опције приказа текста отоворен",textOpacity:"Видљивост текста",textSelect:"Селекција текста",textVisible:"Видљив текст",colorPicker:"Избор боја",textColor:"Боја текста",backgroundColor:"Боја позадине реда",resetTextColors:"Ресет боја"}}},22573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.discoveredText=function(e,t,r){return void 0===r&&(r="ocr"),{targetId:e,textUri:t,sourceType:r,type:n.DISCOVERED_TEXT}},t.requestText=function(e,t,r){return{canvasSize:r,targetId:e,textUri:t,type:n.REQUEST_TEXT}},t.receiveText=function(e,t,r,o){return{parsedText:o,sourceType:r,targetId:e,textUri:t,type:n.RECEIVE_TEXT}},t.receiveTextFailure=function(e,t,r){return{error:r,targetId:e,textUri:t,type:n.RECEIVE_TEXT_FAILURE}},t.requestColors=function(e,t){return{targetId:e,infoId:t,type:n.REQUEST_COLORS}},t.receiveColors=function(e,t,r){return{targetId:e,textColor:t,bgColor:r,type:n.RECEIVE_COLORS}},t.PluginActionTypes=void 0;var n={DISCOVERED_TEXT:"mirador-textoverlay/DISCOVERED_TEXT",RECEIVE_TEXT:"mirador-textoverlay/RECEIVE_TEXT",RECEIVE_TEXT_FAILURE:"mirador-textoverlay/RECEIVE_TEXT_FAILURE",REQUEST_TEXT:"mirador-textoverlay/REQUEST_TEXT",REQUEST_COLORS:"mirador-textoverlay/REQUEST_COLORS",RECEIVE_COLORS:"mirador-textoverlay/RECEIVE_COLORS"};t.PluginActionTypes=n},66961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.textsReducer=void 0;var r=n(22573);function o(){return o=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},o.apply(this,arguments)}t.textsReducer=function(e,t){var n,i,a,s,l;switch(void 0===e&&(e={}),t.type){case r.PluginActionTypes.DISCOVERED_TEXT:return o({},e,((n={})[t.targetId]=o({},e[t.targetId],{canvasId:t.targetId,source:t.textUri,sourceType:t.sourceType}),n));case r.PluginActionTypes.REQUEST_TEXT:return o({},e,((i={})[t.targetId]=o({},e[t.targetId],{canvasId:t.targetId,isFetching:!0,source:t.textUri}),i));case r.PluginActionTypes.RECEIVE_TEXT:var c=e[t.targetId];return void 0===c||c.error||c.isFetching||"ocr"!==c.sourceType?o({},e,((a={})[t.targetId]=o({},e[t.targetId],{canvasId:t.targetId,isFetching:!1,source:t.textUri,sourceType:t.sourceType,text:t.parsedText}),a)):e;case r.PluginActionTypes.RECEIVE_TEXT_FAILURE:return o({},e,((s={})[t.targetId]=o({},e[t.targetId],{canvasId:t.targetId,error:t.error,isFetching:!1,source:t.textUri,sourceType:t.sourceType}),s));case r.PluginActionTypes.RECEIVE_COLORS:return o({},e,((l={})[t.targetId]=o({},e[t.targetId],{bgColor:t.bgColor,textColor:t.textColor}),l));default:return e}}},2287:(e,t,n)=>{"use strict";var r=n(54756);Object.defineProperty(t,"__esModule",{value:!0}),t.fetchOcrMarkup=N,t.discoverExternalOcr=L,t.fetchAndProcessOcr=z,t.fetchAnnotationResource=W,t.fetchExternalAnnotationResources=F,t.processTextsFromAnnotations=H,t.onConfigChange=V,t.injectTranslations=U,t.loadImageData=G,t.fetchColors=$,t.default=K;var o=v(n(54756)),i=v(n(63375)),a=n(43786),s=v(n(50916)),l=v(n(91754)),c=n(86078),u=n(79731),d=v(n(45196)),f=n(22573),p=n(58436),h=v(n(81511)),m=n(56978),g=n(50375);function v(e){return e&&e.__esModule?e:{default:e}}function y(){return y=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},y.apply(this,arguments)}var b=r.mark(L),w=r.mark(z),E=r.mark(F),x=r.mark(H),O=r.mark(V),S=r.mark(U),A=r.mark($),_=r.mark(K);function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(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 k(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 P(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){k(i,r,o,a,s,"next",e)}function s(e){k(i,r,o,a,s,"throw",e)}a(void 0)}))}}var I=/^(.+)#char=(\d+),(\d+)$/;function R(e){var t,n;return void 0===(null===(t=e.resource)||void 0===t?void 0:t.chars)&&void 0===(null===(n=e.body)||void 0===n?void 0:n.value)&&1===Object.keys(e.resource).length&&void 0!==e.resource["@id"]}var j=function(e){return e&&("application/xml+alto"===e.format||"application/alto+xml"===e.format||e.profile&&e.profile.startsWith("http://www.loc.gov/standards/alto/"))},D=function(e){return e&&("text/vnd.hocr+html"===e.format||e.profile&&("https://github.com/kba/hocr-spec/blob/master/hocr-spec.md"===e.profile||e.profile.startsWith("http://kba.cloud/hocr-spec/")||e.profile.startsWith("http://kba.github.io/hocr-spec/")))};function N(e){return M.apply(this,arguments)}function M(){return(M=P(o.default.mark((function e(t){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.default)(t);case 2:return n=e.sent,e.abrupt("return",n.text());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e){var t,n,r,i,s,l,c,h,m,g,v,y,w,E,x,O,S,A,_,T,k,P;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n=e.visibleCanvases,r=e.windowId,o.next=3,(0,a.select)(u.getWindowConfig,{windowId:r});case 3:if(o.t1=t=o.sent.textOverlay,o.t0=null!==o.t1,!o.t0){o.next=7;break}o.t0=void 0!==t;case 7:if(!o.t0){o.next=11;break}o.t2=t,o.next=12;break;case 11:o.t2={enabled:!1};case 12:if(i=o.t2,s=i.enabled,l=i.selectable,c=i.visible,s){o.next=18;break}return o.abrupt("return");case 18:return o.next=20,(0,a.select)(u.getCanvases,{windowId:r});case 20:return h=o.sent,m=(h||[]).filter((function(e){return n.includes(e.id)})),o.next=24,(0,a.select)(p.getTexts);case 24:g=o.sent,v=C(m);case 26:if((y=v()).done){o.next=51;break}if(w=y.value,E=w.__jsonld,x=E.width,O=E.height,void 0===(S=(Array.isArray(w.__jsonld.seeAlso)?w.__jsonld.seeAlso:[w.__jsonld.seeAlso]).filter((function(e){return j(e)||D(e)}))[0])){o.next=49;break}if(_=S["@id"],(null===(A=g[w.id])||void 0===A?void 0:A.source)!==_){o.next=35;break}return o.abrupt("continue",49);case 35:if(!l&&!c){o.next=40;break}return o.next=38,(0,a.put)((0,f.requestText)(w.id,_,{height:O,width:x}));case 38:o.next=42;break;case 40:return o.next=42,(0,a.put)((0,f.discoveredText)(w.id,_));case 42:if(T=new d.default(w),k=T.iiifImageResources[0],P=null==k?void 0:k.getServices()[0].id){o.next=47;break}return o.abrupt("return");case 47:return o.next=49,(0,a.put)((0,f.requestColors)(w.id,P));case 49:o.next=26;break;case 51:case"end":return o.stop()}}),b)}function z(e){var t,n,r,i,s;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.targetId,n=e.textUri,r=e.canvasSize,o.prev=1,o.next=4,(0,a.call)(N,n);case 4:return i=o.sent,o.next=7,(0,a.call)(m.parseOcr,i,r);case 7:return s=o.sent,o.next=10,(0,a.put)((0,f.receiveText)(t,n,"ocr",s));case 10:o.next=16;break;case 12:return o.prev=12,o.t0=o.catch(1),o.next=16,(0,a.put)((0,f.receiveTextFailure)(t,n,o.t0));case 16:case"end":return o.stop()}}),w,null,[[1,12]])}function W(e){return B.apply(this,arguments)}function B(){return(B=P(o.default.mark((function e(t){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.default)(t);case 2:return n=e.sent,e.abrupt("return",n.json());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){var t,n,r,s,l,u,d;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.targetId,n=e.annotationId,(r=e.annotationJson).resources.some(R)){o.next=3;break}return o.abrupt("return");case 3:return s=(0,i.default)(r.resources.map((function(e){return e.resource["@id"].split("#")[0]}))),o.next=6,(0,a.all)(s.map((function(e){return(0,a.call)(W,e)})));case 6:return l=o.sent,u=Object.fromEntries(l.map((function(e){var t;return[null!==(t=e.id)&&void 0!==t?t:e["@id"],e]}))),d=r.resources.map((function(e){if(!R(e))return e;var t,n=e.resource["@id"].match(I);if(!n)return y({},e,{resource:null!==(t=u[e.resource["@id"]])&&void 0!==t?t:e.resource});var r=u[n[1]],o=Number.parseInt(n[2],10),i=Number.parseInt(n[3],10),a=r.value.substring(o,i);return y({},e,{resource:y({},e.resource,{value:a})})})),o.next=11,(0,a.put)((0,c.receiveAnnotation)(t,n,y({},r,{resources:d})));case 11:case"end":return o.stop()}}),E)}function H(e){var t,n,r,i,s;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.targetId,n=e.annotationId,r=e.annotationJson,!((i=r.resources.filter((function(e){var t;return"supplementing"===e.motivation||"cnt:contentastext"===(null===(t=e.resource["@type"])||void 0===t?void 0:t.toLowerCase())||["Line","Word"].indexOf(e.dcType)>=0}))).length>0)){o.next=8;break}return o.next=5,(0,a.call)(m.parseIiifAnnotations,i);case 5:return s=o.sent,o.next=8,(0,a.put)((0,f.receiveText)(t,n,"annos",s));case 8:case"end":return o.stop()}}),x)}function V(e){var t,n,r,i,s,l,c,d,h,m,g,v;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.payload,r=e.id,i=null!==(t=n.textOverlay)&&void 0!==t?t:{},s=i.enabled,l=i.selectable,c=i.visible,s&&(l||c)){o.next=4;break}return o.abrupt("return");case 4:return o.next=6,(0,a.select)(p.getTextsForVisibleCanvases,{windowId:r});case 6:if(d=o.sent,h=d.filter((function(e){var t=e.sourceType,n=e.text;return"ocr"===t&&void 0===n})),m=0===d.length||d.filter((function(e){return"annos"===(void 0===e?{}:e).sourceType})).length>0,0!==h.length||m){o.next=11;break}return o.abrupt("return");case 11:return o.next=13,(0,a.select)(u.getVisibleCanvases,{windowId:r});case 13:return g=o.sent,o.next=16,(0,a.all)(h.map((function(e){var t=e.canvasId,n=e.source,r=g.find((function(e){return e.id===t})).__jsonld,o=r.width,i=r.height;return(0,a.put)((0,f.requestText)(t,n,{height:i,width:o}))})));case 16:if(!m){o.next=20;break}return v=g.map((function(e){return e.id})),o.next=20,(0,a.call)(L,{visibleCanvases:v,windowId:r});case 20:case"end":return o.stop()}}),O)}function U(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.put)((0,c.updateConfig)({translations:h.default}));case 2:case"end":return e.stop()}}),S)}function G(e){return q.apply(this,arguments)}function q(){return(q=P(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var r=new Image;r.crossOrigin="Anonymous",r.onload=function(){var t=document.createElement("canvas").getContext("2d");t.drawImage(r,0,0),e(t.getImageData(0,0,r.width,r.height).data)},r.onerror=n,r.src=t})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $(e){var t,n,r,i,s,c,d,p,h,m,v,y;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.targetId,n=e.infoId,o.next=3,(0,a.select)(u.selectInfoResponse,{infoId:n});case 3:if(r=o.sent,i=null==r?void 0:r.id){o.next=14;break}return o.next=8,(0,a.race)({success:(0,a.take)((function(e){return e.type===l.default.RECEIVE_INFO_RESPONSE&&e.infoId===n})),failure:(0,a.take)((function(e){return e.type===l.default.RECEIVE_INFO_RESPONSE_FAILURE&&e.infoId===n}))});case 8:if(c=o.sent,d=c.success,!c.failure){o.next=13;break}return o.abrupt("return");case 13:i=null===(s=d.infoJson)||void 0===s?void 0:s["@id"];case 14:return o.prev=14,p=i+"/full/200,/0/default.jpg",o.next=18,(0,a.call)(G,p);case 18:return h=o.sent,o.next=21,(0,a.call)(g.getPageColors,h);case 21:return m=o.sent,v=m.textColor,y=m.bgColor,o.next=26,(0,a.put)((0,f.receiveColors)(t,v,y));case 26:o.next=31;break;case 28:o.prev=28,o.t0=o.catch(14),console.error(o.t0);case 31:case"end":return o.stop()}}),A,null,[[14,28]])}function K(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.all)([(0,a.takeEvery)(l.default.IMPORT_CONFIG,U),(0,a.takeEvery)(l.default.RECEIVE_ANNOTATION,F),(0,a.takeEvery)(l.default.RECEIVE_ANNOTATION,H),(0,a.takeEvery)(l.default.SET_CANVAS,L),(0,a.takeEvery)(l.default.UPDATE_WINDOW,V),(0,a.takeEvery)(f.PluginActionTypes.REQUEST_TEXT,z),(0,a.takeEvery)(f.PluginActionTypes.REQUEST_COLORS,$)]);case 2:case"end":return e.stop()}}),_)}},58436:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTextsForVisibleCanvases=t.getTexts=t.getWindowTextOverlayOptions=void 0;var r=n(22325),o=n(79731),i=n(5006);function a(){return a=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},a.apply(this,arguments)}var s={enabled:!0,opacity:1,selectable:!1,visible:!1,useAutoColors:!0,textColor:"#000000",bgColor:"#ffffff"},l=(0,r.createSelector)([o.getWindowConfig,o.getTheme],(function(e,t){var n=e.textOverlay;return a({fontFamily:t.typography.fontFamily},s,null!=n?n:{})}));t.getWindowTextOverlayOptions=l;var c=function(e){return(0,i.miradorSlice)(e).texts};t.getTexts=c;var u=(0,r.createSelector)([o.getVisibleCanvases,c],(function(e,t){if(!t||!e)return[];var n=e.map((function(e){return t[e.id]}));return n.every((function(e){return void 0===e}))?[]:n}));t.getTextsForVisibleCanvases=u},22735:(e,t,n)=>{"use strict";n.d(t,{P:()=>u});var r=n(96540),o=n(54392),i=n(28465),a=n(35366);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,u,d,f=(u=p,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(u);if(d){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"render",value:function(){var e=this.props,t=e.defaultLabel,n=e.labelValuePairs;return 0===n.length?r.createElement(r.Fragment,null):r.createElement("dl",{className:(0,a.A)("label-value-metadata")},n.reduce((function(e,n,a){return e.concat([r.createElement(o.A,{component:"dt",key:"label-".concat(a),variant:"subtitle2"},n.label||t),r.createElement(o.A,{style:{marginBottom:".5em",marginLeft:"0px"},component:"dd",key:"value-".concat(a),variant:"body1"},r.createElement(i.A,{htmlString:n.values.join(", "),ruleSet:"iiif"}))])}),[]))}}])&&s(t.prototype,n),p}(r.Component);u.defaultProps={defaultLabel:void 0}},38554:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MiradorMenuButton:()=>c});var r=n(96540),o=n(36936),i=n(42460),a=n(96232),s=n(35366),l=["badge","children","containerId","dispatch","BadgeProps","TooltipProps"];function c(e){var t=e["aria-label"],n=e.badge,c=e.children,u=e.containerId,d=(e.dispatch,e.BadgeProps),f=e.TooltipProps,p=function(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}(e,l),h=r.createElement(i.A,p,n?r.createElement(o.A,d,c):c);return p.disabled?h:r.createElement(a.Ay,Object.assign({PopperProps:{container:document.querySelector("#".concat(u," .").concat((0,s.A)("viewer")))},title:t},f),h)}c.defaultProps={badge:!1,BadgeProps:{},dispatch:function(){},TooltipProps:{}}},13377:(e,t,n)=>{"use strict";n.d(t,{F:()=>l});var r=n(96540),o=["classes"];function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=r.forwardRef((function(e,t){var n=e.PluginComponents,i=(e.classes,function(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}(e,o));return n?n.map((function(e,n){return r.isValidElement(e)?r.cloneElement(e,a(a({},i),{},{ref:t})):r.createElement(e,Object.assign({ref:t},i,{key:n}))})):null}))},35366:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(33266),o=n(35970),i=n.n(o);const a=function(e){return i()([e]).map((function(e){return[r.A.createGenerateClassNameOptions.productionPrefix,e].join("-")})).join(" ")}},33266:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(54011);function o(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 i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a={state:{},canvasNavigation:{height:50,width:50},selectedTheme:"light",themes:{dark:{palette:{type:"dark",primary:{main:"#4db6ac"},secondary:{main:"#4db6ac"},shades:{dark:"#000000",main:"#424242",light:"#616161"}}},light:{palette:{type:"light"}}},theme:{palette:{type:"light",primary:{main:"#1967d2"},secondary:{main:"#1967d2"},shades:{dark:"#eeeeee",main:"#ffffff",light:"#f5f5f5"},error:{main:"#b00020"},notification:{main:"#ffa224"},hitCounter:{default:"#bdbdbd"},highlights:{primary:"#ffff00",secondary:"#00BFFF"},section_divider:"rgba(0, 0, 0, 0.25)",annotations:{hidden:{globalAlpha:0},default:{strokeStyle:"#00BFFF",globalAlpha:1},hovered:{strokeStyle:"#BF00FF",globalAlpha:1},selected:{strokeStyle:"#ffff00",globalAlpha:1}},search:{default:{fillStyle:"#00BFFF",globalAlpha:.3},hovered:{fillStyle:"#00FFFF",globalAlpha:.3},selected:{fillStyle:"#ffff00",globalAlpha:.3}}},typography:{body1:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.6em"},body2:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},button:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem",textTransform:"uppercase"},caption:{fontSize:"0.772rem",letterSpacing:"0.033em",lineHeight:"1.6rem"},body1Next:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.6em"},body2Next:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},buttonNext:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem"},captionNext:{fontSize:"0.772rem",letterSpacing:"0.33em",lineHeight:"1.6rem"},overline:{fontSize:"0.678rem",fontWeight:500,letterSpacing:"0.166em",lineHeight:"2em",textTransform:"uppercase"},h1:{fontSize:"2.822rem",letterSpacing:"-0.015em",lineHeight:"1.2em"},h2:{fontSize:"1.575rem",letterSpacing:"0em",lineHeight:"1.33em"},h3:{fontSize:"1.383rem",fontWeight:300,letterSpacing:"0em",lineHeight:"1.33em"},h4:{fontSize:"1.215rem",letterSpacing:"0.007em",lineHeight:"1.45em"},h5:{fontSize:"1.138rem",letterSpacing:"0.005em",lineHeight:"1.55em"},h6:{fontSize:"1.067rem",fontWeight:400,letterSpacing:"0.01em",lineHeight:"1.6em"},subtitle1:{fontSize:"0.937rem",letterSpacing:"0.015em",lineHeight:"1.6em",fontWeight:300},subtitle2:{fontSize:"0.878rem",fontWeight:500,letterSpacing:"0.02em",lineHeight:"1.75em"},useNextVariants:!0},overrides:{MuiListSubheader:{root:{'&[role="presentation"]:focus':{outline:0}}},MuiTooltip:{tooltipPlacementLeft:i({},"@media (min-width:600px)",{margin:0}),tooltipPlacementRight:i({},"@media (min-width:600px)",{margin:0}),tooltipPlacementTop:i({},"@media (min-width:600px)",{margin:0}),tooltipPlacementBottom:i({},"@media (min-width:600px)",{margin:0})},MuiTouchRipple:{childPulsate:{animation:"none"},rippleVisible:{animation:"none"}}},props:{MuiButtonBase:{disableTouchRipple:!0},MuiLink:{underline:"always"}}},language:"en",availableLanguages:{ar:"العربية",de:"Deutsch",en:"English",fr:"Français",ja:"日本語",kr:"한국어",lt:"Lietuvių",nl:"Nederlands","nb-NO":"Norwegian Bokmål",pl:"Polski","pt-BR":"Português do Brasil",vi:"Tiếng Việt","zh-CN":"中文(简体)","zh-TW":"中文(繁體)",it:"Italiano",sr:"Српски",sv:"Svenska"},annotations:{htmlSanitizationRuleSet:"iiif",filteredMotivations:["oa:commenting","oa:tagging","sc:painting","commenting","tagging"]},createGenerateClassNameOptions:{productionPrefix:"mirador"},requests:{preprocessors:[],postprocessors:[]},translations:{},window:{allowClose:!1,allowFullscreen:!1,allowMaximize:!1,allowTopMenuButton:!1,allowWindowSideBar:!0,authNewWindowCenter:"parent",sideBarPanel:"search",defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,defaultView:"single",forceDrawAnnotations:!1,hideWindowTitle:!0,highlightAllAnnotations:!1,showLocalePicker:!1,sideBarOpen:!0,switchCanvasOnSearch:!0,panels:{info:!1,attribution:!1,canvas:!1,annotations:!1,search:!0,layers:!1},views:[{key:"single",behaviors:["individuals"]},{key:"book",behaviors:["paged"]},{key:"scroll",behaviors:["continuous"]},{key:"gallery"}],elastic:{height:400,width:480}},windows:[],thumbnails:{preferredFormats:["jpg","png","webp","tif"]},thumbnailNavigation:{defaultPosition:"off",displaySettings:!0,height:130,width:100},workspace:{draggingEnabled:!0,allowNewWindows:!0,id:(0,r.A)(),isWorkspaceAddVisible:!1,exposeModeOn:!1,height:5e3,showZoomControls:!1,type:"mosaic",viewportPosition:{x:0,y:0},width:5e3},workspaceControlPanel:{enabled:!1},galleryView:{height:120,width:null},osdConfig:{alwaysBlend:!1,blendTime:.1,preserveImageSizeOnResize:!0,preserveViewport:!0,showNavigationControl:!1},export:{catalog:!0,companionWindows:!1,config:!0,elasticLayout:!0,layers:!0,manifests:{filter:function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0];return r[1],!i.startsWith("http")}},viewers:!0,windows:!0,workspace:!0},audioOptions:{controls:!0,crossOrigin:"anonymous"},videoOptions:{controls:!0,crossOrigin:"anonymous"},auth:{serviceProfiles:[{profile:"http://iiif.io/api/auth/1/external",external:!0},{profile:"http://iiif.io/api/auth/1/kiosk",kiosk:!0},{profile:"http://iiif.io/api/auth/1/clickthrough"},{profile:"http://iiif.io/api/auth/1/login"},{profile:"http://iiif.io/api/auth/0/external",external:!0},{profile:"http://iiif.io/api/auth/0/kiosk",kiosk:!0},{profile:"http://iiif.io/api/auth/0/clickthrough"},{profile:"http://iiif.io/api/auth/0/login"}]}}},43770:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(61225),o=n(68238),i=n(26524),a=n(32150),s=n(41733),l=n(96540);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(r);if(o){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.captions,n=e.classes,r=e.audioOptions,o=e.audioResources;return l.createElement("div",{className:n.container},l.createElement("audio",Object.assign({className:n.audio},r),o.map((function(e){return l.createElement(l.Fragment,{key:e.id},l.createElement("source",{src:e.id,type:e.getFormat()}))})),t.map((function(e){return l.createElement(l.Fragment,{key:e.id},l.createElement("track",{src:e.id,label:e.getDefaultLabel(),srcLang:e.getProperty("language")}))}))))}}])&&c(t.prototype,n),a}(l.Component);f.defaultProps={audioOptions:{},audioResources:[],captions:[]};var p=n(90361),h=n(46946);const m=(0,o.Zz)((0,i.C)(),(0,a.A)((function(){return{audio:{width:"100%"},container:{alignItems:"center",display:"flex",width:"100%"}}})),(0,r.Ng)((function(e,t){var n=t.windowId;return{audioOptions:(0,p.zj)(e).audioOptions,audioResources:(0,h._K)(e,{windowId:n})||[],captions:(0,h.mK)(e,{windowId:n})||[]}}),null),(0,s.h)("AudioViewer"))(f)},65298:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(68238),o=n(26524),i=n(32150),a=n(96540),s=n(54392),l=n(57482),c=n(83325),u=n(80866);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(m,e);var t,n,r,o,i=(r=m,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(o){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,e)});function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(t=i.call(this,e)).state={open:!0},t.toggleSection=t.toggleSection.bind(p(t)),t}return t=m,(n=[{key:"toggleSection",value:function(){var e=this.state.open;this.setState({open:!e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=e.id,o=e.label,i=e.t,d=this.state.open;return a.createElement(a.Fragment,null,a.createElement("div",{className:n.container},a.createElement(s.A,{className:n.heading,id:r,onClick:this.toggleSection,variant:"overline",component:"h4"},o),a.createElement(u.A,{"aria-label":i(d?"collapseSection":"expandSection",{section:o}),"aria-expanded":d,className:n.button,onClick:this.toggleSection},d?a.createElement(c.A,null):a.createElement(l.A,null))),d&&t)}}])&&d(t.prototype,n),m}(a.Component);const g=(0,r.Zz)((0,o.C)(),(0,i.A)({button:{padding:0},container:{display:"flex",justifyContent:"space-between"},heading:{cursor:"pointer"}}))(m)},18502:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(68238),o=n(61225),i=n(26524),a=n(32150),s=n(59008),l=n(41733),c=n(96540),u=n(20124),d=n(86078),f=n(51636),p=n(17006),h=n(90361),m=n(28296),g=n(16965),v=n(5277),y=n(3148),b=n(54392),w=n(35376),E=n(77698),x=n(80866),O=n(35366);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},T(e,t)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(r);if(o){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"openInNewStyle",value:function(){return"rtl"===this.props.direction?{transform:"scale(-1, 1)"}:{}}},{key:"resizeHandles",value:function(){var e=this.props,t=e.direction,n=e.position,r={ltr:{default:"left",opposite:"right"},rtl:{default:"right",opposite:"left"}},o={bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1};return"right"===n||"far-right"===n?A(A({},o),{},_({},r[t].default,!0)):"left"===n?A(A({},o),{},_({},r[t].opposite,!0)):"bottom"===n||"far-bottom"===n?A(A({},o),{},{top:!0}):o}},{key:"render",value:function(){var e=this.props,t=e.ariaLabel,n=e.classes,r=e.paperClassName,o=e.onCloseClick,i=e.updateCompanionWindow,a=e.isDisplayed,s=e.position,l=e.t,u=e.title,d=e.children,f=e.titleControls,p=e.size,h=e.defaultSidebarPanelWidth,S=e.defaultSidebarPanelHeight,A="bottom"===s||"far-bottom"===s,_=c.Children.map(d,(function(e){return e?c.cloneElement(e,{parentactions:{closeCompanionWindow:o}}):null}));return c.createElement(y.A,{className:[n.root,"bottom"===s?n.horizontal:n.vertical,n["companionWindow-".concat(s)],(0,O.A)("companion-window-".concat(s)),r].join(" "),style:{display:a?null:"none",order:"left"===s?-1:null},square:!0,component:"aside","aria-label":t||u},c.createElement(E.p,{className:[n.rnd],style:{display:"flex",position:"relative"},default:{height:A?S:"100%",width:A?"auto":h},disableDragging:!0,enableResizing:this.resizeHandles(),minHeight:50,minWidth:"left"===s?235:100},c.createElement(w.A,{className:[n.toolbar,n.companionWindowHeader,p.width<370?n.small:null,(0,O.A)("companion-window-header")].join(" "),disableGutters:!0},c.createElement(b.A,{variant:"h3",className:n.windowSideBarTitle},u),"left"===s?i&&c.createElement(x.A,{"aria-label":l("openInCompanionWindow"),onClick:function(){i({position:"right"})}},c.createElement(g.A,{style:this.openInNewStyle()})):c.createElement(c.Fragment,null,i&&c.createElement(x.A,{"aria-label":l("bottom"===s?"moveCompanionWindowToRight":"moveCompanionWindowToBottom"),className:n.positionButton,onClick:function(){i({position:"bottom"===s?"right":"bottom"})}},c.createElement(v.A,null)),c.createElement(x.A,{"aria-label":l("closeCompanionWindow"),className:n.closeButton,onClick:o},c.createElement(m.A,null))),f&&c.createElement("div",{className:[n.titleControls,A?n.companionWindowTitleControlsBottom:n.companionWindowTitleControls,(0,O.A)("companion-window-title-controls")].join(" ")},f)),c.createElement(y.A,{className:[n.content,(0,O.A)("scrollto-scrollable")].join(" "),elevation:0},_)))}}])&&C(t.prototype,n),a}(c.Component);function I(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}P.defaultProps={ariaLabel:void 0,children:void 0,defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,isDisplayed:!1,onCloseClick:function(){},paperClassName:"",position:null,size:{},t:function(e){return e},title:null,titleControls:null,updateCompanionWindow:void 0};const D=(0,r.Zz)((function(e){return(0,c.forwardRef)((function(t,n){return c.createElement(e,Object.assign({innerRef:n},t))}))}),(0,i.C)(),(0,a.A)((function(e){return{closeButton:{order:4},"companionWindow-bottom":{borderTop:"0.5px solid ".concat(e.palette.divider)},"companionWindow-left":{borderRight:"0.5px solid ".concat(e.palette.divider)},"companionWindow-right":{borderLeft:"0.5px solid ".concat(e.palette.divider)},companionWindowHeader:{flexWrap:"wrap"},companionWindowTitleControls:{flexGrow:1,order:1e3},companionWindowTitleControlsBottom:{order:"unset"},content:{overflowY:"auto",wordBreak:"break-word"},horizontal:{},positionButton:{marginLeft:-16,order:-100,width:24},rnd:{display:"flex",flexDirection:"column",minHeight:0},root:{boxShadow:"none",boxSizing:"border-box",display:"flex",flexDirection:"column",minHeight:0},small:{},titleControls:{alignItems:"center",display:"flex",flexFlow:"row wrap",minHeight:48,order:3},toolbar:{"&$small":{"& $closeButton":{order:"unset"},"& $titleControls":{order:"unset"}},alignItems:"flex-start",background:e.palette.shades.light,justifyContent:"space-between",minHeight:"max-content",paddingLeft:e.spacing(2)},vertical:{},windowSideBarTitle:R(R({},e.typography.subtitle1),{},{alignSelf:"center",flexGrow:1,width:160})}})),(0,s.withSize)(),(0,o.Ng)((function(e,t){var n=t.id,r=t.windowId,o=(0,f.DS)(e,{companionWindowId:n}),i=(0,p.R2)(e,{windowId:r}),a=i.defaultSidebarPanelHeight,s=i.defaultSidebarPanelWidth;return R(R({},o),{},{defaultSidebarPanelHeight:a,defaultSidebarPanelWidth:s,direction:(0,h.b3)(e),isDisplayed:o&&o.content&&o.content.length>0})}),(function(e,t){var n=t.windowId,r=t.id;return{onCloseClick:function(){return e(u.l2(n,r))},updateCompanionWindow:function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e(u.u3.apply(d,[n,r].concat(o)))}}})),(0,l.h)("CompanionWindow"))(P)},48465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>V});var r=n(68238),o=n(61225),i=n(32150),a=n(41733),s=n(96540),l=n(3148),c=n(35970),u=n.n(c),d=n(91068),f=n(52529),p=n(12664),h=n(86078),m=n(91004),g=n(33615),v=n(41351),y=n(44122),b=n(46942),w=n.n(b),E=(n(95127),n(69200)),x=n(45196),O=n(93290);function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(r);if(o){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={requestedAnnotations:!1},t.handleSelect=t.handleSelect.bind(_(t)),t.handleKey=t.handleKey.bind(_(t)),t.handleIntersection=t.handleIntersection.bind(_(t)),t}return t=a,n=[{key:"handleSelect",value:function(){var e=this.props,t=e.canvas,n=e.selected,r=e.setCanvas,o=e.focusOnCanvas;n?o():r(t.id)}},{key:"handleKey",value:function(e){var t=this.props,n=t.canvas,r=t.setCanvas,o=t.focusOnCanvas;this.keys={enter:"Enter",space:" "},this.chars={enter:13,space:32},e.key===this.keys.enter||e.which===this.chars.enter||e.key===this.keys.space||e.which===this.chars.space?o():r(n.id)}},{key:"handleIntersection",value:function(e){var t=e.isIntersecting,n=this.props,r=n.annotationsCount,o=n.requestCanvasAnnotations,i=this.state.requestedAnnotations;!t||void 0===r||r>0||i||(this.setState({requestedAnnotations:!0}),o())}},{key:"render",value:function(){var e=this.props,t=e.annotationsCount,n=e.searchAnnotationsCount,r=e.canvas,o=e.classes,i=e.config,a=e.selected,l=new x.default(r);return s.createElement(E.Ay,{onChange:this.handleIntersection},s.createElement("div",{key:r.index,className:w()(o.galleryViewItem,a?o.selected:"",n>0?o.hasAnnotations:""),onClick:this.handleSelect,onKeyUp:this.handleKey,role:"button",tabIndex:0},s.createElement(O.A,{resource:r,labelled:!0,variant:"outside",maxWidth:i.width,maxHeight:i.height,style:{margin:"0 auto",maxWidth:"".concat(Math.ceil(i.height*l.aspectRatio),"px")}},s.createElement("div",{className:o.chips},n>0&&s.createElement(g.A,{avatar:s.createElement(m.A,{className:o.avatar,classes:{circle:o.avatarIcon}},s.createElement(y.A,{fontSize:"small"})),label:n,className:w()(o.searchChip),size:"small"}),(t||0)>0&&s.createElement(g.A,{avatar:s.createElement(m.A,{className:o.avatar,classes:{circle:o.avatarIcon}},s.createElement(v.A,{className:o.annotationIcon})),label:t,className:w()(o.annotationsChip),size:"small"})))))}}],n&&S(t.prototype,n),a}(s.Component);T.defaultProps={annotationsCount:void 0,config:{height:100,width:null},requestCanvasAnnotations:function(){},searchAnnotationsCount:0,selected:!1};var k=n(46946),P=n(73015),I=n(51636),R=n(74389),j=n(90361);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const L=(0,r.Zz)((0,o.Ng)((function(e,t){var n=t.canvas,r=t.windowId,o=(0,k.kR)(e,{windowId:r}),i=(0,P.sC)(e,{windowId:r}),a=u()(i.map((function(e){return e.resources}))).filter((function(e){return e.targetId===n.id})),s=(0,I.Ih)(e,{content:"annotations",windowId:r}).length>0;return{annotationsCount:function(){if(s)return(0,R.Su)(e,{canvasId:n.id}).reduce((function(e,t){return e+t.resources.filter((function(e){return e.targetId===n.id})).length}),0)}(),config:(0,j.zj)(e).galleryView,searchAnnotationsCount:a.length,selected:o&&o.id===n.id}}),(function(e,t){var n=t.canvas,r=(t.id,t.windowId);return{focusOnCanvas:function(){return e(d.QO(r,"single"))},requestCanvasAnnotations:function(){return e(f.aw(r,n.id))},setCanvas:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e(p.h5.apply(h,[r].concat(n)))}}})),(0,i.A)((function(e){return{annotationIcon:{height:"1rem",width:"1rem"},annotationsChip:N({},e.typography.caption),avatar:{backgroundColor:"transparent"},chips:{opacity:.875,position:"absolute",right:0,textAlign:"right",top:0},galleryViewItem:{"&$hasAnnotations":{border:"2px solid ".concat(e.palette.action.selected)},"&$selected,&$selected$hasAnnotations":{border:"2px solid ".concat(e.palette.primary.main)},"&:focus":{outline:"none"},"&:hover":{backgroundColor:e.palette.action.hover},border:"2px solid transparent",cursor:"pointer",display:"inline-block",margin:"".concat(e.spacing(1),"px ").concat(e.spacing(.5),"px"),maxHeight:function(e){return e.config.height+45},minWidth:"60px",overflow:"hidden",padding:e.spacing(.5),position:"relative",width:"min-content"},hasAnnotations:{},searchChip:N(N({},e.typography.caption),{},{"&$selected $avatar":{backgroundColor:e.palette.highlights.primary},marginTop:2}),selected:{}}})))(T);function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},W(e,t)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=B(r);if(o){var n=B(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.canvases,n=e.classes,r=e.viewingDirection,o=e.windowId,i="right-to-left"===r?"rtl":"ltr";return s.createElement(l.A,{component:"section",dir:i,square:!0,elevation:0,className:n.galleryContainer,id:"".concat(o,"-gallery")},t.map((function(e){return s.createElement(L,{key:e.id,windowId:o,canvas:e})})))}}],n&&z(t.prototype,n),a}(s.Component);F.defaultProps={classes:{},viewingDirection:""};var H=n(38925);const V=(0,r.Zz)((0,i.A)((function(e){return{galleryContainer:{alignItems:"flex-start",display:"flex",flexDirection:"row",flexWrap:"wrap",overflowX:"hidden",overflowY:"scroll",padding:"50px 0 50px 20px",width:"100%"}}})),(0,o.Ng)((function(e,t){var n=t.windowId;return{canvases:(0,k.P)(e,{windowId:n}),viewingDirection:(0,H.Kb)(e,{windowId:n})}})),(0,a.h)("GalleryView"))(F)},93290:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(68238),o=n(61225),i=n(26524),a=n(32150),s=n(41733),l=n(90361),c=n(96540),u=(n(95127),n(54392)),d=n(69200),f=n(46942),p=n.n(f),h=n(89824);function m(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=E(o);if(i){var n=E(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={loaded:!1},t.handleIntersection=t.handleIntersection.bind(w(t)),t}return t=s,r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],(n=[{key:"componentDidMount",value:function(){var e=this;this.setState((function(t){return g(g({},t),{},{image:e.image()})}))}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.maxHeight,o=n.maxWidth,i=n.resource;e.maxHeight===r&&e.maxWidth===o&&e.resource===i||this.setState((function(e){return g(g({},e),{},{image:t.image()})}))}},{key:"handleIntersection",value:function(e){!this.state.loaded&&e.isIntersecting&&this.setState((function(e){return g(g({},e),{},{loaded:!0})}))}},{key:"imageStyles",value:function(){var e=this.props,t=e.maxHeight,n=e.maxWidth,r=e.style,o=this.image(),i={height:"auto",width:"auto"};if(!o)return g(g({},r),{},{height:t||"auto",width:n||"auto"});var a=o.height,s=o.width;if(a&&s)if(t&&a>t||n&&s>n){var l=s/a;t&&n?n/t<l?(i.height=Math.round(n/l),i.width=n):(i.height=t,i.width=Math.round(t*l)):t?(i.height=t,i.maxWidth=Math.round(t*l)):n&&(i.width=n,i.maxHeight=Math.round(n/l))}else i.width=s,i.height=a;else a&&!s?i.height=t:!a&&s?i.width=n:(i.width=n,i.height=t);return g(g({},i),r)}},{key:"image",value:function(){var e=this.props,t=e.thumbnail,n=e.resource,r=e.maxHeight,o=e.maxWidth,i=e.thumbnailsConfig;if(t)return t;var a=(0,h.A)(n,g(g({},i),{},{maxHeight:r,maxWidth:o}));return a&&a.url?a:void 0}},{key:"label",value:function(){var e=this.props,t=e.label,n=e.resource;return t||s.getUseableLabel(n)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=e.imagePlaceholder,o=e.labelled,i=e.thumbnail,a=e.variant,s=this.state,l=s.image,f=(s.loaded&&(i||l)||{}).url,h=void 0===f?r:f;return c.createElement("div",{className:p()(n.root,v({},n["".concat(a,"Root")],a))},c.createElement(d.Ay,{onChange:this.handleIntersection},c.createElement("img",{alt:"",role:"presentation",src:h,style:this.imageStyles(),className:n.image})),o&&c.createElement("div",{className:p()(n.label,v({},n["".concat(a,"Label")],a))},c.createElement(u.A,{variant:"caption",classes:{root:p()(n.caption,v({},n["".concat(a,"Caption")],a))}},this.label())),t)}}])&&y(t.prototype,n),r&&y(t,r),s}(c.Component);x.defaultProps={children:null,classes:{},imagePlaceholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mMMDQmtBwADgwF/Op8FmAAAAABJRU5ErkJggg==",label:void 0,labelled:!1,maxHeight:null,maxWidth:null,style:{},thumbnail:null,thumbnailsConfig:{},variant:null};const O=(0,r.Zz)((0,a.A)((function(e){return{caption:{lineHeight:"1.5em",wordBreak:"break-word"},image:{},insideCaption:{color:"#ffffff",lineClamp:"1",whiteSpace:"nowrap"},insideLabel:{background:"linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%)",bottom:"5px",boxSizing:"border-box",left:"0px",padding:"4px",position:"absolute",width:"100%"},insideRoot:{display:"inline-block",height:"inherit",position:"relative"},label:{overflow:"hidden",textOverflow:"ellipsis"},outsideCaption:{boxOrient:"vertical",display:"-webkit-box",lineClamp:"2",maxHeight:"3em"},outsideLabel:{},outsideRoot:{},root:{}}})),(0,i.C)(),(0,o.Ng)((function(e){return{thumbnailsConfig:(0,l.zj)(e).thumbnails}})),(0,s.h)("IIIFThumbnail"))(x)},32295:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(68238),o=n(61225),i=n(26524),a=n(41733),s=n(73893),l=n(96540),c=n(54392),u=n(65298),d=n(28465),f=n(22735),p=n(13377);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(r);if(o){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.manifestDescription,n=e.manifestLabel,r=e.manifestMetadata,o=e.id,i=e.t;return l.createElement(u.A,{id:"".concat(o,"-resource"),label:i("resource")},n&&l.createElement(c.A,{"aria-labelledby":"".concat(o,"-resource ").concat(o,"-resource-heading"),id:"".concat(o,"-resource-heading"),variant:"h4",component:"h5"},n),t&&l.createElement(c.A,{variant:"body1"},l.createElement(d.A,{htmlString:t,ruleSet:"iiif"})),r.length>0&&l.createElement(f.P,{labelValuePairs:r}),l.createElement(p.F,this.props))}}])&&h(t.prototype,n),a}(l.Component);v.defaultProps={manifestDescription:null,manifestLabel:null,manifestMetadata:[],t:function(e){return e}};const y=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e,t){var n=t.id,r=t.manifestId,o=t.windowId;return{manifestDescription:(0,s.CG)(e,{companionWindowId:n,manifestId:r,windowId:o}),manifestLabel:(0,s.aY)(e,{companionWindowId:n,manifestId:r,windowId:o}),manifestMetadata:(0,s.dB)(e,{companionWindowId:n,manifestId:r,windowId:o})}})),(0,a.h)("ManifestInfo"))(v)},80866:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(68238),o=n(61225),i=n(41733),a=n(38554),s=n(90361);const l=(0,r.Zz)((0,o.Ng)((function(e){return{containerId:(0,s.TW)(e)}}),null),(0,i.h)("MiradorMenuButton"))(a.MiradorMenuButton)},12585:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>me});var r=n(68238),o=n(61225),i=n(26524),a=n(32150),s=n(35970),l=n.n(s),c=n(41733),u=n(96540),d=n(38221),f=n.n(d),p=n(2404),h=n.n(p),m=n(14791),g=n.n(m),v=n(46942),y=n.n(v),b=n(35366),w=n(40961),E=n(33031),x=n.n(E),O=n(56625),S=n.n(O);function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _=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.viewer=t,this.ref=n,this.containerWidth=0,this.containerHeight=0,this.imgAspectRatio=1}var t,n;return t=e,(n=[{key:"canvas",get:function(){return this.canvasDiv.firstElementChild}},{key:"canvasDiv",get:function(){return this.ref.current}},{key:"context2d",get:function(){return this.canvas.getContext("2d")}},{key:"clear",value:function(){this.context2d.clearRect(0,0,this.containerWidth,this.containerHeight)}},{key:"resize",value:function(){this.containerWidth!==this.viewer.container.clientWidth&&(this.containerWidth=this.viewer.container.clientWidth,this.canvasDiv.setAttribute("width",this.containerWidth),this.canvas.setAttribute("width",this.containerWidth)),this.containerHeight!==this.viewer.container.clientHeight&&(this.containerHeight=this.viewer.container.clientHeight,this.canvasDiv.setAttribute("height",this.containerHeight),this.canvas.setAttribute("height",this.containerHeight)),this.viewportOrigin=new(g().Point)(0,0);var e=this.viewer.viewport.getBoundsNoRotate(!0);this.viewportOrigin.x=e.x,this.viewportOrigin.y=e.y*this.imgAspectRatio,this.viewportWidth=e.width,this.viewportHeight=e.height*this.imgAspectRatio;var t=this.viewer.world.getItemAt(0);t&&(this.imgWidth=t.source.dimensions.x,this.imgHeight=t.source.dimensions.y,this.imgAspectRatio=this.imgWidth/this.imgHeight)}},{key:"canvasUpdate",value:function(e){var t=this.viewer.viewport.getZoom(!0),n=this.viewer.world.getItemAt(0);if(n){var r=n.viewportToImageZoom(t),o=(this.viewportOrigin.x/this.imgWidth-this.viewportOrigin.x)/this.viewportWidth*this.containerWidth,i=(this.viewportOrigin.y/this.imgHeight-this.viewportOrigin.y)/this.viewportHeight*this.containerHeight;this.clearBeforeRedraw&&this.clear(),this.context2d.translate(o,i),this.context2d.scale(r,r);var a=this.viewer.viewport.getCenter();this.viewer.viewport.getFlip()&&(this.context2d.translate(2*a.x,0),this.context2d.scale(-1,1));var s=this.viewer.viewport.getRotation();0!==s&&(this.context2d.translate(a.x,a.y),this.context2d.rotate(s*Math.PI/180),this.context2d.translate(-1*a.x,-1*a.y)),e(),this.context2d.setTransform(1,0,0,1,0,0)}}}])&&A(t.prototype,n),e}();function C(e){return function(e){if(Array.isArray(e))return T(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){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(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 T(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 k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P=function(){function e(t){var n=t.resource,r=t.palette,o=t.zoomRatio,i=t.offset,a=t.selected,s=t.hovered;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resource=n,this.palette=r,this.zoomRatio=o,this.offset=i,this.selected=a,this.hovered=s}var t,n;return t=e,(n=[{key:"toContext",value:function(e){this.context=e,this.resource.svgSelector?this.svgContext():this.resource.fragmentSelector&&this.fragmentContext()}},{key:"svgString",get:function(){return this.resource.svgSelector.value}},{key:"svgContext",value:function(){var e,t=this;0!==(e=this.hovered?this.palette.hovered:this.selected?this.palette.selected:this.palette.default).globalAlpha&&C(this.svgPaths).forEach((function(n){t.context.save(),t.context.translate(t.offset.x,t.offset.y);var r=new Path2D(n.attributes.d.nodeValue);t.context.strokeStyle=t.color,n.attributes["stroke-dasharray"]&&t.context.setLineDash(n.attributes["stroke-dasharray"].nodeValue.split(","));var o={fill:"fillStyle",stroke:"strokeStyle","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterlimit","stroke-width":"lineWidth"};Object.keys(o).forEach((function(e){n.attributes[e]&&(t.context[o[e]]=n.attributes[e].nodeValue)})),t.context.lineWidth/=t.zoomRatio,(t.selected||t.hovered)&&(t.context.strokeStyle=e.strokeStyle||e.fillStyle),n.attributes["stroke-opacity"]?t.context.globalAlpha=e.globalAlpha*n.attributes["stroke-opacity"].nodeValue:t.context.globalAlpha=e.globalAlpha,t.context.stroke(r),n.attributes.fill&&"none"!==n.attributes.fill.nodeValue&&(n.attributes["fill-opacity"]?t.context.globalAlpha=e.globalAlpha*n.attributes["fill-opacity"].nodeValue:t.context.globalAlpha=e.globalAlpha,t.context.fill(r)),t.context.restore()}))}},{key:"fragmentContext",value:function(){var e,t,n,r=this,o=this.resource.fragmentSelector;o[0]+=this.offset.x,o[1]+=this.offset.y,e=this.selected?this.palette.selected:this.hovered?this.palette.hovered:this.palette.default,this.context.save(),Object.keys(e).forEach((function(t){r.context[t]=e[t]})),0!==e.globalAlpha&&(e.fillStyle?(t=this.context).fillRect.apply(t,C(o)):(this.context.lineWidth=1/this.zoomRatio,(n=this.context).strokeRect.apply(n,C(o))),this.context.restore())}},{key:"svgPaths",get:function(){return(new DOMParser).parseFromString(this.svgString,"text/xml").getElementsByTagName("path")}}])&&k(t.prototype,n),e}();function I(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||M(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 N(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||M(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 M(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(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 z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},W(e,t)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=F(o);if(i){var n=F(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return B(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).ref=u.createRef(),t.osdCanvasOverlay=null,t.updateCanvas=function(){},t.onUpdateViewport=t.onUpdateViewport.bind(B(t)),t.onCanvasClick=t.onCanvasClick.bind(B(t)),t.onCanvasMouseMove=f()(t.onCanvasMouseMove.bind(B(t)),10),t.onCanvasExit=t.onCanvasExit.bind(B(t)),t}return t=s,n=[{key:"componentDidMount",value:function(){this.initializeViewer()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.drawAnnotations,r=t.drawSearchAnnotations,o=t.annotations,i=t.searchAnnotations,a=t.hoveredAnnotationIds,l=t.selectedAnnotationId,c=t.highlightAllAnnotations,u=t.viewer;this.initializeViewer();var d=!s.annotationsMatch(o,e.annotations),f=!s.annotationsMatch(i,e.searchAnnotations),p=S()(a,e.hoveredAnnotationIds).length>0;this.osdCanvasOverlay&&p&&(a.length>0?this.osdCanvasOverlay.canvasDiv.style.cursor="pointer":this.osdCanvasOverlay.canvasDiv.style.cursor="");var h=l!==e.selectedAnnotationId,m=n!==e.drawAnnotations||r!==e.drawSearchAnnotations||c!==e.highlightAllAnnotations;(f||d||h||p||m)&&(this.updateCanvas=this.canvasUpdateCallback(),u.forceRedraw())}},{key:"componentWillUnmount",value:function(){var e=this.props.viewer;e.removeHandler("canvas-click",this.onCanvasClick),e.removeHandler("canvas-exit",this.onCanvasExit),e.removeHandler("update-viewport",this.onUpdateViewport),e.removeHandler("mouse-move",this.onCanvasMouseMove)}},{key:"onCanvasClick",value:function(e){var t=this,n=this.props.canvasWorld,r=e.position,o=e.eventSource.viewport.pointFromPixel(r),i=n.canvasAtPoint(o);if(i){var a=N(n.canvasToWorldCoordinates(i.id),4),s=(a[0],a[1],a[2]),l=a[3],c=this.annotationsAtPoint(i,o);if(c.length>0&&(e.preventDefaultAction=!0),1===c.length)this.toggleAnnotation(c[0].id);else if(c.length>0){var u=function(e){var n=Math.PI/180;return function(r){for(var a=0,s=0;s<360;s+=1){var l=Math.cos(s*n)*e+o.x,c=Math.sin(s*n)*e+o.y;t.isAnnotationAtPoint(r,i,{x:l,y:c})&&(a+=1)}return{anno:r,score:a}}},d=[],f=1;for(d=x()(c.map(u(f)),"score");f<Math.max(s,l)&&d[0].score===d[1].score;)f*=2,d=x()(c.map(u(f)),"score");this.toggleAnnotation(d[0].anno.id)}}}},{key:"onCanvasMouseMove",value:function(e){var t=this.props,n=t.annotations,r=t.canvasWorld,o=t.hoverAnnotation,i=t.hoveredAnnotationIds,a=t.searchAnnotations,s=t.viewer,l=t.windowId;if(0!==n.length||0!==a.length){var c=e.position,u=s.viewport.pointFromPixel(c),d=r.canvasAtPoint(u);if(d){var f=this.annotationsAtPoint(d,u);S()(i,f.map((function(e){return e.id}))).length>0&&o(l,f.map((function(e){return e.id})))}else o(l,[])}}},{key:"onCanvasExit",value:function(e){var t=this.props,n=t.hoverAnnotation,r=t.windowId;this.onCanvasMouseMove.cancel(),n(r,[])}},{key:"onUpdateViewport",value:function(e){this.updateCanvas()}},{key:"initializeViewer",value:function(){var e=this.props.viewer;e&&(this.osdCanvasOverlay||(this.osdCanvasOverlay=new _(e,this.ref),e.addHandler("canvas-click",this.onCanvasClick),e.addHandler("canvas-exit",this.onCanvasExit),e.addHandler("update-viewport",this.onUpdateViewport),e.addHandler("mouse-move",this.onCanvasMouseMove),this.updateCanvas=this.canvasUpdateCallback()))}},{key:"canvasUpdateCallback",value:function(){var e=this;return function(){e.osdCanvasOverlay.clear(),e.osdCanvasOverlay.resize(),e.osdCanvasOverlay.canvasUpdate(e.renderAnnotations.bind(e))}}},{key:"isAnnotationAtPoint",value:function(e,t,n){var r=N(this.props.canvasWorld.canvasToWorldCoordinates(t.id),2),o=r[0],i=r[1],a=n.x-o,s=n.y-i;if(e.svgSelector){var l=this.osdCanvasOverlay.context2d;return D(new P({resource:e}).svgPaths).some((function(e){return l.isPointInPath(new Path2D(e.attributes.d.nodeValue),a,s)}))}if(e.fragmentSelector){var c=N(e.fragmentSelector,4),u=c[0],d=c[1],f=c[2],p=c[3];return u<=a&&a<=u+f&&d<=s&&s<=d+p}return!1}},{key:"annotationsAtPoint",value:function(e,t){var n=this,r=this.props,o=r.annotations,i=r.searchAnnotations,a=[].concat(D(o),D(i));return l()(a.map((function(e){return e.resources}))).filter((function(r){return e.id===r.targetId&&n.isAnnotationAtPoint(r,e,t)}))}},{key:"toggleAnnotation",value:function(e){var t=this.props,n=t.selectedAnnotationId,r=t.selectAnnotation,o=t.deselectAnnotation,i=t.windowId;n===e?o(i,e):r(i,e)}},{key:"annotationsToContext",value:function(e,t){var n=this.props,r=n.highlightAllAnnotations,o=n.hoveredAnnotationIds,i=n.selectedAnnotationId,a=n.canvasWorld,s=n.viewer,l=this.osdCanvasOverlay.context2d,c=s.viewport.getZoom(!0)/s.viewport.getMaxZoom();e.forEach((function(e){e.resources.forEach((function(e){if(a.canvasIds.includes(e.targetId)){var n=a.offsetByCanvas(e.targetId);new P({hovered:o.includes(e.id),offset:n,palette:R(R({},t),{},{default:R(R({},t.default),!r&&t.hidden)}),resource:e,selected:i===e.id,zoomRatio:c}).toContext(l)}}))}))}},{key:"renderAnnotations",value:function(){var e=this.props,t=e.annotations,n=e.drawAnnotations,r=e.drawSearchAnnotations,o=e.searchAnnotations,i=e.palette;r&&this.annotationsToContext(o,i.search),n&&this.annotationsToContext(t,i.annotations)}},{key:"render",value:function(){var e=this.props.viewer;return e?w.createPortal(u.createElement("div",{ref:this.ref,style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"}},u.createElement("canvas",null)),e.canvas):u.createElement(u.Fragment,null)}}],r=[{key:"annotationsMatch",value:function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(0===e.length&&0===t.length||e.length===t.length&&e.every((function(e,n){var r=e.resources.map((function(e){return e.id})),o=t[n].resources.map((function(e){return e.id}));return 0===r.length&&0===o.length||r.length===o.length&&!(e.id!==t[n].id||!h()(r,o))})))}}],n&&z(t.prototype,n),r&&z(t,r),s}(u.Component);H.defaultProps={annotations:[],deselectAnnotation:function(){},drawAnnotations:!0,drawSearchAnnotations:!0,highlightAllAnnotations:!1,hoverAnnotation:function(){},hoveredAnnotationIds:[],palette:{},searchAnnotations:[],selectAnnotation:function(){},selectedAnnotationId:void 0,viewer:null};var V=n(52529),U=n(74389),G=n(13069),q=n(90361),$=n(51636),K=n(65419),Z=n(73015),X={deselectAnnotation:V.PW,hoverAnnotation:V.GW,selectAnnotation:V.gN};const Y=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e,t){var n=t.windowId;return{annotations:(0,U.Su)(e,{windowId:n}),canvasWorld:(0,G.k)(e,{windowId:n}),drawAnnotations:(0,q.zj)(e).window.forceDrawAnnotations||(0,$.Ih)(e,{content:"annotations",windowId:n}).length>0,drawSearchAnnotations:(0,q.zj)(e).window.forceDrawAnnotations||(0,$.Ih)(e,{content:"search",windowId:n}).length>0,highlightAllAnnotations:(0,K.zk)(e,{windowId:n}).highlightAllAnnotations,hoveredAnnotationIds:(0,K.zk)(e,{windowId:n}).hoveredAnnotationIds,palette:(0,q.O4)(e).palette,searchAnnotations:(0,Z.sC)(e,{windowId:n}),selectedAnnotationId:(0,U.e3)(e,{windowId:n})}}),X),(0,c.h)("AnnotationsOverlay"))(H);var Q=n(13377),J={get:function(e){return this.refs[e]},refs:{},set:function(e,t){this.refs[e]=t}};function ee(e,t,n){return ee=ce()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&se(o,n.prototype),o},ee.apply(null,arguments)}function te(e){return function(e){if(Array.isArray(e))return ne(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){if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}(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 ne(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 re(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 oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function se(e,t){return se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},se(e,t)}function le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ce(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}var de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(a,e);var t,n,r,o,i=(r=a,o=ce(),function(){var e,t=ue(r);if(o){var n=ue(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return le(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={viewer:void 0},t.ref=u.createRef(),t.apiRef=u.createRef(),J.set(e.windowId,t.apiRef),t.onCanvasMouseMove=f()(t.onCanvasMouseMove.bind(le(t)),10),t.onViewportChange=t.onViewportChange.bind(le(t)),t.zoomToWorld=t.zoomToWorld.bind(le(t)),t.osdUpdating=!1,t}return t=a,n=[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.osdConfig,r=t.t,o=t.windowId;if(this.ref.current){var i=new(g())(oe({id:this.ref.current.id},n)),a=i.canvas&&i.canvas.firstElementChild;a&&(a.setAttribute("role","img"),a.setAttribute("aria-label",r("digitizedView")),a.setAttribute("aria-describedby","".concat(o,"-osd"))),this.apiRef.current=i,this.setState({viewer:i}),i.addHandler("animation-start",(function(){e.osdUpdating=!0})),i.addHandler("animation-finish",this.onViewportChange),i.addHandler("animation-finish",(function(){e.osdUpdating=!1})),i.innerTracker&&(i.innerTracker.moveHandler=this.onCanvasMouseMove)}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.viewerConfig,o=n.canvasWorld,i=this.state.viewer;if(this.apiRef.current=i,void 0===t.viewer)return r&&(i.viewport.panTo(r,!0),i.viewport.zoomTo(r.zoom,r,!0),void 0!==r.degrees&&i.viewport.setRotation(r.degrees),void 0!==r.flip&&i.viewport.setFlip(r.flip)),void this.addAllImageSources(!r);if(this.infoResponsesMatch(e.infoResponses)&&this.nonTiledImagedMatch(e.nonTiledImages))if(h()(o.layers,e.canvasWorld.layers)){if(r&&!this.osdUpdating){var a=i.viewport;r.x===a.centerSpringX.target.value&&r.y===a.centerSpringY.target.value||a.panTo(r,!1),r.zoom!==a.zoomSpring.target.value&&a.zoomTo(r.zoom,r,!1),r.rotation!==a.getRotation()&&a.setRotation(r.rotation),r.flip!==a.getFlip()&&a.setFlip(r.flip)}}else this.refreshTileProperties();else{i.close();var s=!h()(o.canvasIds,e.canvasWorld.canvasIds);this.addAllImageSources(s||!r)}}},{key:"componentWillUnmount",value:function(){var e=this.state.viewer;e.innerTracker&&e.innerTracker.moveHandler===this.onCanvasMouseMove&&(e.innerTracker.moveHandler=null),e.removeAllHandlers(),this.apiRef.current=void 0}},{key:"onCanvasMouseMove",value:function(e){this.state.viewer.raiseEvent("mouse-move",e)}},{key:"onViewportChange",value:function(e){var t=this.props,n=t.updateViewport,r=t.windowId,o=e.eventSource.viewport;n(r,{flip:o.getFlip(),rotation:o.getRotation(),x:Math.round(o.centerSpringX.target.value),y:Math.round(o.centerSpringY.target.value),zoom:o.zoomSpring.target.value})}},{key:"addAllImageSources",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.props,r=n.nonTiledImages,o=n.infoResponses;Promise.all(o.map((function(t){return e.addTileSource(t)})),r.map((function(t){return e.addNonTiledImage(t)}))).then((function(){(o[0]||r[0])&&(t&&e.zoomToWorld(),e.refreshTileProperties())}))}},{key:"addNonTiledImage",value:function(e){var t=this.props.canvasWorld,n=this.state.viewer,r=e.getProperty("type"),o=e.getProperty("format")||"";return"Image"===r||"dctypes:Image"===r||o.startsWith("image/")?new Promise((function(r,o){n||o(),n.addSimpleImage({error:function(e){return o(e)},fitBounds:ee(g().Rect,te(t.contentResourceToWorldCoordinates(e))),index:t.layerIndexOfImageResource(e),opacity:t.layerOpacityOfImageResource(e),success:function(e){return r(e)},url:e.id})})):Promise.resolve()}},{key:"addTileSource",value:function(e){var t=this.props.canvasWorld,n=this.state.viewer;return new Promise((function(r,o){n||o();var i=oe({},e.json),a=t.contentResource(e.id);a&&n.addTiledImage({error:function(e){return o(e)},fitBounds:ee(g().Rect,te(t.contentResourceToWorldCoordinates(a))),index:t.layerIndexOfImageResource(a),opacity:t.layerOpacityOfImageResource(a),success:function(e){return r(e)},tileSource:i})}))}},{key:"refreshTileProperties",value:function(){for(var e=this.props.canvasWorld,t=this.state.viewer.world,n=[],r=0;r<t.getItemCount();r+=1)n.push(t.getItemAt(r));n.forEach((function(n,r){var o=e.contentResource(n.source["@id"]||n.source.id);if(o){var i=e.layerIndexOfImageResource(o);r!==i&&t.setItemIndex(n,i),n.setOpacity(e.layerOpacityOfImageResource(o))}}))}},{key:"fitBounds",value:function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];this.state.viewer.viewport.fitBounds(new(g().Rect)(e,t,n,r),o)}},{key:"infoResponsesMatch",value:function(e){var t=this.props.infoResponses;return 0===t.length&&0===e.length||t.length===e.length&&t.every((function(t,n){return!!(e[n]&&t.json&&e[n].json&&t.tokenServiceId===e[n].tokenServiceId&&(t.json["@id"]&&t.json["@id"]===e[n].json["@id"]||t.json.id&&t.json.id===e[n].json.id))}))}},{key:"nonTiledImagedMatch",value:function(e){var t=this.props.nonTiledImages;return 0===t.length&&0===e.length||t.some((function(t,n){return!!e[n]&&t.id===e[n].id}))}},{key:"zoomToWorld",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.canvasWorld;this.fitBounds.apply(this,te(t.worldBounds()).concat([e]))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.classes,o=t.label,i=t.t,a=t.windowId,s=t.drawAnnotations,l=this.state.viewer,c=u.Children.map(n,(function(t){return u.cloneElement(t,{zoomToWorld:e.zoomToWorld})}));return u.createElement(u.Fragment,null,u.createElement("section",{className:y()((0,b.A)("osd-container"),r.osdContainer),id:"".concat(a,"-osd"),ref:this.ref,"aria-label":i("item",{label:o}),"aria-live":"polite"},s&&u.createElement(Y,{viewer:l,windowId:a}),c,u.createElement(Q.F,Object.assign({viewer:l},oe(oe({},this.props),{},{children:null})))))}}],n&&ae(t.prototype,n),a}(u.Component);de.defaultProps={children:null,drawAnnotations:!1,infoResponses:[],label:null,nonTiledImages:[],osdConfig:{},viewerConfig:null};var fe=n(12664),pe=n(46946),he={updateViewport:fe.yR};const me=(0,r.Zz)((0,a.A)({osdContainer:{flex:1,position:"relative"}}),(0,i.C)(),(0,o.Ng)((function(e,t){var n=t.windowId,r=(0,G.k)(e,{windowId:n}),o=(0,pe.dN)(e),i=l()(r.canvases.map((function(e){return e.imageServiceIds})));return{canvasWorld:r,drawAnnotations:(0,q.zj)(e).window.forceDrawAnnotations||(0,$.Ih)(e,{content:"annotations",windowId:n}).length>0||(0,$.Ih)(e,{content:"search",windowId:n}).length>0,infoResponses:i.map((function(e){return o[e]})).filter((function(e){return void 0!==e&&!1===e.isFetching&&void 0===e.error})),label:(0,pe.T2)(e,{canvasId:((0,pe.kR)(e,{windowId:n})||{}).id,windowId:n}),nonTiledImages:(0,pe.RP)(e,{windowId:n}),osdConfig:(0,q.zj)(e).osdConfig,viewerConfig:(0,K.tk)(e,{windowId:n})}}),he),(0,c.h)("OpenSeadragonViewer"))(de)},28465:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(32150),o=n(96540),i=n(42838),a=n.n(i),s=n(35366);const l={iiif:{ALLOWED_ATTR:["href","src","alt"],ALLOWED_TAGS:["a","b","br","i","img","p","span"]},liberal:{},mirador2:{ALLOWED_ATTR:["href","target","src","alt","dir"],ALLOWED_TAGS:["a","b","br","i","img","p","span","strong","em","ul","ol","li"]},noHtml:{ALLOWED_TAGS:[]}};function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(p,e);var t,n,r,i,f=(r=p,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(r);if(i){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.htmlString,r=e.ruleSet;return a().addHook("afterSanitizeAttributes",(function(e){"target"in e&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))})),o.createElement("span",{className:[t.root,(0,s.A)("third-party-html")].join(" "),dangerouslySetInnerHTML:{__html:a().sanitize(n,l[r])}})}}])&&c(t.prototype,n),p}(o.Component);f.defaultProps={classes:{}};const p=(0,r.A)((function(e){return{root:{"& a":{color:e.palette.primary.main,textDecoration:"underline"}}}}))(f)},48628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(68238),o=n(61225),i=n(26524),a=n(32150),s=n(91068),l=n(41733),c=n(65419),u=n(96540),d=n(96746),f=n(27606),p=n(54392),h=n(84322);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(o){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).openCollectionDialog=t.openCollectionDialog.bind(v(t)),t}return t=a,(n=[{key:"openCollectionDialog",value:function(){var e=this.props,t=e.collectionPath,n=e.manifestId,r=e.showCollectionDialog,o=e.windowId;r(n,t.slice(0,-1),o)}},{key:"render",value:function(){var e=this.props.t;return u.createElement(f.A,{container:!0,justify:"center",alignItems:"center"},u.createElement(f.A,{container:!0,direction:"column",alignItems:"center"},u.createElement(p.A,{variant:"h4",paragraph:!0},u.createElement("em",null,e("noItemSelected"))),u.createElement(d.A,{color:"primary",variant:"contained",onClick:this.openCollectionDialog,startIcon:u.createElement(h.A,null)},e("showCollection"))))}}])&&m(t.prototype,n),a}(u.Component);b.defaultProps={collectionPath:[],manifestId:null,t:function(){},windowId:null};var w={showCollectionDialog:s.Az};const E=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{}})),(0,o.Ng)((function(e,t){var n=t.windowId,r=(0,c.zk)(e,{windowId:n})||{};return{collectionPath:r.collectionPath,manifestId:r.manifestId}}),w),(0,l.h)("SelectCollection"))(b)},94412:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(61225),o=n(68238),i=n(26524),a=n(32150),s=n(41733),l=n(96540);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(r);if(o){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.captions,n=e.classes,r=e.videoOptions,o=e.videoResources;return l.createElement("div",{className:n.container},l.createElement("video",Object.assign({className:n.video},r),o.map((function(e){return l.createElement(l.Fragment,{key:e.id},l.createElement("source",{src:e.id,type:e.getFormat()}))})),t.map((function(e){return l.createElement(l.Fragment,{key:e.id},l.createElement("track",{src:e.id,label:e.getDefaultLabel(),srcLang:e.getProperty("language")}))}))))}}])&&c(t.prototype,n),a}(l.Component);f.defaultProps={captions:[],videoOptions:{},videoResources:[]};var p=n(46946),h=n(90361);const m=(0,o.Zz)((0,i.C)(),(0,a.A)((function(){return{container:{alignItems:"center",display:"flex",width:"100%"},video:{maxHeight:"100%",width:"100%"}}})),(0,r.Ng)((function(e,t){var n=t.windowId;return{captions:(0,p.mK)(e,{windowId:n})||[],videoOptions:(0,h.zj)(e).videoOptions,videoResources:(0,p.HS)(e,{windowId:n})||[]}}),null),(0,s.h)("VideoViewer"))(f)},5231:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>te});var r=n(68238),o=n(41733),i=n(96540),a=n(61225),s=n(59008),l=n(32150),c=n(19681),u=n(65419),d=n(46942),f=n.n(d),p=n(3148),h=n(54392),m=n(26524),g=n(12664),v=n(90361),y=n(21179),b=n(23578),w=n(41728);function E(e){return i.createElement(w.A,e,i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},i.createElement("path",{d:"M6,15H9v3h2V13H6Zm9-6V6H13v5h5V9Z"}),i.createElement("path",{d:"M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8,8,8,0,0,1-8,8Z"})))}var x=n(80866);function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(s,e);var t,n,r,o,a=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_(r);if(o){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).handleZoomInClick=t.handleZoomInClick.bind(A(t)),t.handleZoomOutClick=t.handleZoomOutClick.bind(A(t)),t}return t=s,(n=[{key:"handleZoomInClick",value:function(){var e=this.props,t=e.windowId;(0,e.updateViewport)(t,{zoom:2*e.viewer.zoom})}},{key:"handleZoomOutClick",value:function(){var e=this.props,t=e.windowId;(0,e.updateViewport)(t,{zoom:e.viewer.zoom/2})}},{key:"render",value:function(){var e=this.props,t=e.displayDivider,n=e.showZoomControls,r=e.classes,o=e.t,a=e.zoomToWorld;return n?i.createElement("div",{className:r.zoom_controls},i.createElement(x.A,{"aria-label":o("zoomIn"),onClick:this.handleZoomInClick},i.createElement(y.A,null)),i.createElement(x.A,{"aria-label":o("zoomOut"),onClick:this.handleZoomOutClick},i.createElement(b.A,null)),i.createElement(x.A,{"aria-label":o("zoomReset"),onClick:function(){return a(!1)}},i.createElement(E,null)),t&&i.createElement("span",{className:r.divider})):i.createElement(i.Fragment,null)}}])&&O(t.prototype,n),s}(i.Component);C.defaultProps={displayDivider:!0,showZoomControls:!1,t:function(e){return e},updateViewport:function(){},viewer:{},windowId:""};var T={updateViewport:g.yR};const k=(0,r.Zz)((0,m.C)(),(0,l.A)((function(e){return{divider:{borderRight:"1px solid #808080",display:"inline-block",height:"24px",margin:"12px 6px"},ListItem:{paddingBottom:0,paddingTop:0},zoom_controls:{display:"flex",flexDirection:"row",justifyContent:"center"}}})),(0,a.Ng)((function(e,t){var n=t.windowId;return{showZoomControls:(0,v.X3)(e),viewer:(0,u.tk)(e,{windowId:n})}}),T),(0,o.h)("ZoomControls"))(C);var P=n(35366);function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},R(e,t)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(s,e);var t,n,r,o,a=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(r);if(o){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasCount,n=e.canvasIndex,r=e.canvasLabel,o=e.classes,a=e.t;return i.createElement("div",{className:f()((0,P.A)("osd-info"),o.osdInfo)},i.createElement(h.A,{display:"inline",variant:"caption",className:(0,P.A)("canvas-count")},a("pagination",{current:n+1,total:t})),i.createElement(h.A,{display:"inline",variant:"caption",className:(0,P.A)("canvas-label")},r&&" • ".concat(r)))}}])&&I(t.prototype,n),s}(i.Component);D.defaultProps={canvasLabel:void 0,t:function(){}};var N=n(46946),M=n(38925);const L=(0,r.Zz)((0,l.A)({osdInfo:{order:2,overflow:"hidden",paddingBottom:3,textOverflow:"ellipsis",unicodeBidi:"plaintext",whiteSpace:"nowrap",width:"100%"}}),(0,m.C)(),(0,a.Ng)((function(e,t){var n=t.windowId,r=(0,N.P)(e,{windowId:n}),o=(0,M.PB)(e,{windowId:n}),i=((0,N.kR)(e,{windowId:n})||{}).id;return{canvasCount:r.length,canvasIndex:o,canvasLabel:(0,N.T2)(e,{canvasId:i,windowId:n})}}),null),(0,o.h)("ViewerInfo"))(D);var z=n(63380);function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},B(e,t)}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(s,e);var t,n,r,o,a=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=F(r);if(o){var n=F(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"render",value:function(){var e=this.props,t=e.hasNextCanvas,n=e.hasPreviousCanvas,r=e.setNextCanvas,o=e.setPreviousCanvas,a=e.t,s=e.classes,l="ltr",c={},u={};switch(e.viewingDirection){case"top-to-bottom":c={transform:"rotate(270deg)"},u={transform:"rotate(90deg)"};break;case"bottom-to-top":c={transform:"rotate(90deg)"},u={transform:"rotate(270deg)"};break;case"right-to-left":l="rtl",c={},u={transform:"rotate(180deg)"};break;default:c={transform:"rotate(180deg)"},u={}}return i.createElement("div",{className:f()((0,P.A)("osd-navigation"),s.osdNavigation),dir:l},i.createElement(x.A,{"aria-label":a("previousCanvas"),className:(0,P.A)("previous-canvas-button"),disabled:!n,onClick:function(){n&&o()}},i.createElement(z.A,{style:c})),i.createElement(x.A,{"aria-label":a("nextCanvas"),className:(0,P.A)("next-canvas-button"),disabled:!t,onClick:function(){t&&r()}},i.createElement(z.A,{style:u})))}}])&&W(t.prototype,n),s}(i.Component);H.defaultProps={hasNextCanvas:!1,hasPreviousCanvas:!1,setNextCanvas:function(){},setPreviousCanvas:function(){},viewingDirection:""};const V=(0,r.Zz)((0,l.A)({osdNavigation:{order:1}}),(0,m.C)(),(0,a.Ng)((function(e,t){var n=t.windowId;return{hasNextCanvas:!!(0,N.BL)(e,{windowId:n}),hasPreviousCanvas:!!(0,N.Nj)(e,{windowId:n}),viewingDirection:(0,M.Kb)(e,{windowId:n})}}),(function(e,t){var n=t.windowId;return{setNextCanvas:function(){return e(g.OZ(n))},setPreviousCanvas:function(){return e(g.Kh(n))}}})),(0,o.h)("ViewerNavigation"))(H);var U=n(13377);function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t){return q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},q(e,t)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(s,e);var t,n,r,o,a=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$(r);if(o){var n=$(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"canvasNavControlsAreStacked",value:function(){var e=this.props.size;return e&&e.width&&e.width<=253}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.visible,r=e.windowId,o=e.zoomToWorld;return n?i.createElement(p.A,{square:!0,className:f()(t.controls,(0,P.A)("canvas-nav"),t.canvasNav,this.canvasNavControlsAreStacked()?(0,P.A)("canvas-nav-stacked"):null,this.canvasNavControlsAreStacked()?t.canvasNavStacked:null),elevation:0},i.createElement(k,{displayDivider:!this.canvasNavControlsAreStacked(),windowId:r,zoomToWorld:o}),i.createElement(V,{windowId:r}),i.createElement(L,{windowId:r}),i.createElement(U.F,this.props)):i.createElement(h.A,{variant:"srOnly",component:"div"},i.createElement(L,{windowId:r}))}}])&&G(t.prototype,n),s}(i.Component);K.defaultProps={classes:{},visible:!0};const Z=(0,r.Zz)((0,a.Ng)((function(e,t){var n=t.windowId;return{visible:(0,u.K4)(e).focusedWindowId===n}})),(0,l.A)((function(e){return{canvasNav:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",textAlign:"center"},canvasNavStacked:{flexDirection:"column"},controls:{backgroundColor:(0,c.fade)(e.palette.background.paper,.5),bottom:0,position:"absolute",width:"100%",zIndex:50}}})),(0,s.withSize)(),(0,o.h)("WindowCanvasNavigationControls"))(K);function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Y(e,t)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}var J=(0,i.lazy)((function(){return Promise.resolve().then(n.bind(n,12585))})),ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(l,e);var t,n,r,o,a,s=(o=l,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Q(o);if(a){var n=Q(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).state={},t}return t=l,r=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}],(n=[{key:"render",value:function(){var e=this.props.windowId;return this.state.hasError?i.createElement(i.Fragment,null):i.createElement(i.Suspense,{fallback:i.createElement("div",null)},i.createElement(J,{windowId:e},i.createElement(Z,{windowId:e})))}}])&&X(t.prototype,n),r&&X(t,r),l}(i.Component);const te=(0,r.Zz)((0,o.h)("WindowViewer"))(ee)},49073:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Il});var r=n(68238),o=n(61225),i=n(26524),a=n(19773),s=n(32150),l=n(41733),c=n(96540),u=n(46942),d=n.n(u),f=n(62216),p=n.n(f),h=n(39870),m=n(68016),g=n(5696),v=n(54392),y=n(30240),b=n(65816),w=n(96746);function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O(r);if(o){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.error,n=e.removeError,r=e.t,o=!p()(t);return t?c.createElement(h.A,{"aria-labelledby":"error-dialog-title",id:"error-dialog",onClose:function(){return n(t.id)},open:o},c.createElement(g.A,{id:"error-dialog-title",disableTypography:!0},c.createElement(v.A,{variant:"h2"},r("errorDialogTitle"))),c.createElement(m.A,{disableTypography:!0},c.createElement(y.A,{variant:"body2",noWrap:!0,color:"inherit"},"".concat(t.message)),c.createElement(b.A,null,c.createElement(w.A,{onClick:function(){return n(t.id)},variant:"contained"},r("errorDialogConfirm"))))):null}}])&&E(t.prototype,n),a}(c.Component);S.defaultProps={error:null,removeError:function(){},t:function(e){return e}};var A=n(49475),_=n(5406),C={removeError:A.$};const T=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e){return{error:(0,_.g)(e)}}),C),(0,l.h)("ErrorDialog"))(S);var k=n(61434),P=n(35376),I=n(44768),R=n(37187),j=n(65419),D=n(24488),N=n(96232),M=n(43489),L=n(28296);function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},W(e,t)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=B(r);if(o){var n=B(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=e.setWorkspaceAddVisibility,o=e.isWorkspaceAddVisible,i=e.useExtendedFab;return c.createElement(N.Ay,{title:n(o?"closeAddResourceMenu":"addResource")},c.createElement(D.A,{size:"medium",color:"primary",id:"addBtn",disableRipple:!0,"aria-label":o?n("closeAddResourceMenu"):i&&n("startHere")||n("addResource"),className:t.fab,classes:{primary:t.fabPrimary,secondary:t.fabSecondary},variant:i?"extended":"round",onClick:function(){r(!o)}},o?c.createElement(L.A,null):c.createElement(M.A,null),i&&n("startHere")))}}])&&z(t.prototype,n),a}(c.Component);F.defaultProps={isWorkspaceAddVisible:!1,t:function(e){return e}};var H={setWorkspaceAddVisibility:R.DW},V=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{fab:{margin:e.spacing(1)},fabPrimary:{"&:focus":{backgroundColor:e.palette.primary.dark}},fabSecondary:{"&:focus":{backgroundColor:e.palette.secondary.dark}}}})),(0,I.Ay)(),(0,o.Ng)((function(e,t){var n=t.width,r=(0,j.K4)(e).isWorkspaceAddVisible;return{isWorkspaceAddVisible:r,useExtendedFab:"xs"!==n&&!r&&0===(0,j.rG)(e).length}}),H),(0,l.h)("WorkspaceAddButton"));const U=V(F);var G=n(7501),q=n(88149),$=n(80866);function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t){return Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Z(e,t)}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}var Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=X(r);if(o){var n=X(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.isFullscreenEnabled,r=e.setWorkspaceFullscreen,o=e.t;return c.createElement($.A,{className:t,"aria-label":o(n?"exitFullScreen":"workspaceFullScreen"),onClick:function(){return r(!n)}},n?c.createElement(q.A,null):c.createElement(G.A,null))}}])&&K(t.prototype,n),a}(c.Component);Y.defaultProps={className:void 0,isFullscreenEnabled:!1,t:function(e){return e}};var Q={setWorkspaceFullscreen:R.Vs};const J=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e){return{isFullscreenEnabled:(0,_.H)(e)}}),Q),(0,l.h)("FullScreenButton"))(Y);var ee=n(92105),te=n(90361),ne=n(70032),re=n(84630),oe=n(15750),ie=n(61466),ae=n(77430),se=n(35364);function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ce(e,t){return ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ce(e,t)}function ue(e){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ue(e)}var de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ue(r);if(o){var n=ue(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.handleClick,n=e.languages;return c.createElement(c.Fragment,null,n.map((function(e){return c.createElement(re.A,{button:!e.current,key:e.locale,onClick:function(){t(e.locale)}},c.createElement(ie.A,null,e.current&&c.createElement(se.A,null)),c.createElement(ae.A,{primaryTypographyProps:{variant:"body1"}},e.label))})))}}])&&le(t.prototype,n),a}(c.Component);const fe=(0,r.Zz)((0,o.Ng)((function(e){return{languages:(0,te.x2)(e)}}),(function(e,t){var n=t.afterSelect;return{handleClick:function(t){e(oe._R({language:t})),n&&n()}}})),(0,l.h)("LanguageSettings"))(de);var pe=n(14713),he=n(19425),me=["children","icon","label"];function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ve(e,t){return ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ve(e,t)}function ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}var we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ve(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=be(r);if(o){var n=be(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ye(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={nestedMenuIsOpen:!1},t.handleMenuClick=t.handleMenuClick.bind(ye(t)),t}return t=a,(n=[{key:"handleMenuClick",value:function(){var e=this.state.nestedMenuIsOpen;this.setState({nestedMenuIsOpen:!e})}},{key:"render",value:function(){var e=this.state.nestedMenuIsOpen,t=this.props,n=t.children,r=t.icon,o=t.label,i=function(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}(t,me);return c.createElement(c.Fragment,null,c.createElement(re.A,Object.assign({onClick:this.handleMenuClick,divider:e},i),r&&c.createElement(ie.A,null,r),c.createElement(ae.A,{primaryTypographyProps:{variant:"body1"}},o),e?c.createElement(pe.A,null):c.createElement(he.A,null)),e&&n)}}])&&ge(t.prototype,n),a}(c.Component);we.defaultProps={icon:null};var Ee=n(19008),xe=n(20426),Oe=n(6272),Se=n(41728);function Ae(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"90",viewBox:"0 0 300 225"},c.createElement("defs",null,c.createElement("linearGradient",{id:"linear-gradient",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},c.createElement("stop",{offset:"0"}),c.createElement("stop",{offset:"0.14",stopOpacity:"0.631"}),c.createElement("stop",{offset:"1",stopOpacity:"0"})),c.createElement("linearGradient",{id:"linear-gradient-2",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},c.createElement("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0"}),c.createElement("stop",{offset:"0.23",stopColor:"#fff",stopOpacity:"0.012"}),c.createElement("stop",{offset:"0.36",stopColor:"#fff",stopOpacity:"0.039"}),c.createElement("stop",{offset:"0.47",stopColor:"#fff",stopOpacity:"0.102"}),c.createElement("stop",{offset:"0.57",stopColor:"#fff",stopOpacity:"0.18"}),c.createElement("stop",{offset:"0.67",stopColor:"#fff",stopOpacity:"0.278"}),c.createElement("stop",{offset:"0.75",stopColor:"#fff",stopOpacity:"0.412"}),c.createElement("stop",{offset:"0.83",stopColor:"#fff",stopOpacity:"0.561"}),c.createElement("stop",{offset:"0.91",stopColor:"#fff",stopOpacity:"0.741"}),c.createElement("stop",{offset:"0.98",stopColor:"#fff",stopOpacity:"0.929"}),c.createElement("stop",{offset:"1",stopColor:"#fff"})),c.createElement("clipPath",{id:"clip-elastic_icon"},c.createElement("rect",{width:"300",height:"225"}))),c.createElement("g",{id:"elastic_icon","data-name":"elastic icon",clipPath:"url(#clip-elastic_icon)"},c.createElement("rect",{width:"300",height:"225",fill:"#fff"}),c.createElement("g",{id:"Rectangle_278","data-name":"Rectangle 278",transform:"translate(232 159)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"54",height:"54",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"53",height:"53",fill:"none"})),c.createElement("g",{id:"Rectangle_8","data-name":"Rectangle 8",transform:"translate(7 148)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"70",height:"70",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"69",height:"69",fill:"none"})),c.createElement("g",{id:"Rectangle_258","data-name":"Rectangle 258",transform:"translate(224 6)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"70",height:"100",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"69",height:"99",fill:"none"})),c.createElement("g",{id:"Rectangle_259","data-name":"Rectangle 259",transform:"translate(71 64)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"115",height:"75",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"114",height:"74",fill:"none"})),c.createElement("g",{id:"Rectangle_260","data-name":"Rectangle 260",transform:"translate(99 87)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"115",height:"75",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"114",height:"74",fill:"none"})),c.createElement("g",{id:"Group_689","data-name":"Group 689"},c.createElement("g",{id:"Group_687","data-name":"Group 687",transform:"translate(0 3)"},c.createElement("path",{id:"checkbox",d:"M258.766,37.316v146.5H39.053V37.316Zm40.07-39.254h-300v225h300Z",transform:"translate(1.164 -1.063)",fill:"#010101",fillRule:"evenodd",opacity:"0.246"}),c.createElement("g",{id:"Path_821","data-name":"Path 821",transform:"translate(40 36)",fill:"none"},c.createElement("path",{d:"M0,0H220V147H0Z",stroke:"none"}),c.createElement("path",{d:"M 2 2 L 2 145 L 218 145 L 218 2 L 172.9869689941406 2 L 2 2 M 0 0 L 172.9869689941406 0 L 220 0 L 220 147 L 0 147 L 0 0 Z",stroke:"none",fill:"#01579b"}))),c.createElement("g",{id:"Rectangle_257","data-name":"Rectangle 257",transform:"translate(40 39)",fill:"#fff",stroke:"#01579b",strokeWidth:"2"},c.createElement("rect",{width:"20",height:"147",stroke:"none"}),c.createElement("rect",{x:"1",y:"1",width:"18",height:"145",fill:"none"})),c.createElement("g",{id:"Group_688","data-name":"Group 688",transform:"translate(-27.5 -126)"},c.createElement("circle",{id:"teal_circle","data-name":"teal circle",cx:"7.5",cy:"7.5",r:"7.5",transform:"translate(70 171)",fill:"#009688"}),c.createElement("g",{id:"Group_333","data-name":"Group 333",transform:"translate(70 171)",opacity:"0.12"},c.createElement("path",{id:"gradient_border_2","data-name":"gradient border 2",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient)"}),c.createElement("path",{id:"gradient_border_1","data-name":"gradient border 1",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient-2)"})))))))}function _e(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"90",viewBox:"0 0 300 225"},c.createElement("defs",null,c.createElement("linearGradient",{id:"linear-gradient",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},c.createElement("stop",{offset:"0"}),c.createElement("stop",{offset:"0.14",stopOpacity:"0.631"}),c.createElement("stop",{offset:"1",stopOpacity:"0"})),c.createElement("linearGradient",{id:"linear-gradient-2",x1:"0.5",y1:"1",x2:"0.5",gradientUnits:"objectBoundingBox"},c.createElement("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0"}),c.createElement("stop",{offset:"0.23",stopColor:"#fff",stopOpacity:"0.012"}),c.createElement("stop",{offset:"0.36",stopColor:"#fff",stopOpacity:"0.039"}),c.createElement("stop",{offset:"0.47",stopColor:"#fff",stopOpacity:"0.102"}),c.createElement("stop",{offset:"0.57",stopColor:"#fff",stopOpacity:"0.18"}),c.createElement("stop",{offset:"0.67",stopColor:"#fff",stopOpacity:"0.278"}),c.createElement("stop",{offset:"0.75",stopColor:"#fff",stopOpacity:"0.412"}),c.createElement("stop",{offset:"0.83",stopColor:"#fff",stopOpacity:"0.561"}),c.createElement("stop",{offset:"0.91",stopColor:"#fff",stopOpacity:"0.741"}),c.createElement("stop",{offset:"0.98",stopColor:"#fff",stopOpacity:"0.929"}),c.createElement("stop",{offset:"1",stopColor:"#fff"})),c.createElement("clipPath",{id:"clip-mosaic_icon"},c.createElement("rect",{width:"300",height:"225"}))),c.createElement("g",{id:"mosaic_icon","data-name":"mosaic icon",clipPath:"url(#clip-mosaic_icon)"},c.createElement("rect",{width:"300",height:"225",fill:"#fff"}),c.createElement("path",{id:"checkbox",d:"M258.766,37.316v146.5H39.053V37.316Zm40.07-39.254h-300v225h300Z",transform:"translate(1.163 1.938)",fill:"#010101",fillRule:"evenodd",opacity:"0.5"}),c.createElement("path",{id:"checkbox-2","data-name":"checkbox",d:"M258.766,37.316v146.5H39.053V37.316Zm40.07-39.254h-300v225h300Z",transform:"translate(1.164 1.938)",fill:"#010101",fillRule:"evenodd",opacity:"0.246"}),c.createElement("g",{id:"Path_821","data-name":"Path 821",transform:"translate(40 39)",fill:"none"},c.createElement("path",{d:"M0,0H220V147H0Z",stroke:"none"}),c.createElement("path",{d:"M 2 2 L 2 145 L 218 145 L 218 2 L 172.9869689941406 2 L 2 2 M 0 0 L 172.9869689941406 0 L 220 0 L 220 147 L 0 147 L 0 0 Z",stroke:"none",fill:"#01579b"})),c.createElement("g",{id:"Rectangle_257","data-name":"Rectangle 257",transform:"translate(40 39)",fill:"#fff",stroke:"#01579b",strokeWidth:"2"},c.createElement("rect",{width:"20",height:"147",stroke:"none"}),c.createElement("rect",{x:"1",y:"1",width:"18",height:"145",fill:"none"})),c.createElement("g",{id:"Group_688","data-name":"Group 688",transform:"translate(-27.5 -126)"},c.createElement("circle",{id:"teal_circle","data-name":"teal circle",cx:"7.5",cy:"7.5",r:"7.5",transform:"translate(70 171)",fill:"#009688"}),c.createElement("g",{id:"Group_333","data-name":"Group 333",transform:"translate(70 171)",opacity:"0.12"},c.createElement("path",{id:"gradient_border_2","data-name":"gradient border 2",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient)"}),c.createElement("path",{id:"gradient_border_1","data-name":"gradient border 1",d:"M3408,959.089A4.911,4.911,0,1,1,3403.09,964a4.911,4.911,0,0,1,4.911-4.911m0-.089a5,5,0,1,0,5,5,5,5,0,0,0-5-5Z",transform:"translate(-3403 -959)",fill:"url(#linear-gradient-2)"}))),c.createElement("g",{id:"Rectangle_270","data-name":"Rectangle 270",transform:"translate(60 40.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"99",height:"72",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"98",height:"71",fill:"none"})),c.createElement("g",{id:"Rectangle_271","data-name":"Rectangle 271",transform:"translate(159 40.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"99",height:"72",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"98",height:"71",fill:"none"})),c.createElement("g",{id:"Rectangle_272","data-name":"Rectangle 272",transform:"translate(192 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"66",height:"71.45",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})),c.createElement("g",{id:"Rectangle_284","data-name":"Rectangle 284",transform:"translate(60 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"66",height:"71.45",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})),c.createElement("g",{id:"Rectangle_285","data-name":"Rectangle 285",transform:"translate(126 112.647)",fill:"#88c6c3",stroke:"#707070",strokeWidth:"1",opacity:"0.747"},c.createElement("rect",{width:"66",height:"71.45",stroke:"none"}),c.createElement("rect",{x:"0.5",y:"0.5",width:"65",height:"70.45",fill:"none"})))))}var Ce=["classes","className"];function Te(e){var t=e.classes,n=e.className,r=function(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}(e,Ce),o=[n,t.shadowScrollDialog].join(" ");return c.createElement(m.A,Object.assign({className:o},r))}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Te.defaultProps={className:""};const Pe=(0,s.A)((function(e){var t;return{shadowScrollDialog:(t={background:"linear-gradient(".concat(e.palette.background.paper," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(e.palette.background.paper," 70%) 0 100%, ")+"radial-gradient(50% 0, farthest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), radial-gradient(50% 100%, farthest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%,"},ke(t,"background","linear-gradient(".concat(e.palette.background.paper," 30%, rgba(255, 255, 255, 0)), ")+"linear-gradient(rgba(255, 255, 255, 0), ".concat(e.palette.background.paper," 70%) 0 100%, ")+"radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%;"),ke(t,"backgroundAttachment","local, local, scroll, scroll"),ke(t,"backgroundRepeat","no-repeat"),ke(t,"backgroundSize","100% 40px, 100% 40px, 100% 14px, 100% 14px"),ke(t,"overflowY","auto"),t)}}))(Te);function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Re(e,t)}function je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function De(e){return De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},De(e)}var Ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Re(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=De(o);if(i){var n=De(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return je(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).handleWorkspaceTypeChange=t.handleWorkspaceTypeChange.bind(je(t)),t}return t=s,r=[{key:"setInitialFocus",value:function(e,t){var n=e.querySelectorAll('li[value="'.concat(t,'"]'));n&&0!==n.length&&n[0].focus()}}],(n=[{key:"handleWorkspaceTypeChange",value:function(e){var t=this.props,n=t.handleClose;(0,t.updateWorkspace)({type:e}),n()}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.container,o=t.handleClose,i=t.open,a=t.children,l=t.t,u=t.workspaceType;return c.createElement(h.A,{"aria-labelledby":"workspace-selection-dialog-title",container:r,id:"workspace-selection-dialog",onClose:o,onEntered:function(e){return s.setInitialFocus(e,u)},onEscapeKeyDown:o,open:i},c.createElement(g.A,{id:"workspace-selection-dialog-title",disableTypography:!0},c.createElement(v.A,{variant:"h2"},l("workspaceSelectionTitle"))),c.createElement(Pe,null,a,c.createElement(Ee.A,{classes:{root:n.list},selected:u},c.createElement(re.A,{className:n.menuItem,onClick:function(){return e.handleWorkspaceTypeChange("elastic")},selected:"elastic"===u,value:"elastic"},c.createElement(xe.A,{className:n.card},c.createElement(Ae,{className:n.svgIcon,viewBox:"0 0 120 90"}),c.createElement("div",{className:n.details},c.createElement(Oe.A,{classes:{root:n.root},className:n.content},c.createElement(v.A,{className:n.headline,component:"p",variant:"h3"},l("elastic")),c.createElement(v.A,{variant:"body1"},l("elasticDescription")))))),c.createElement(re.A,{className:n.menuItem,onClick:function(){return e.handleWorkspaceTypeChange("mosaic")},selected:"mosaic"===u,value:"mosaic"},c.createElement(xe.A,{className:n.card},c.createElement(_e,{className:n.svgIcon,viewBox:"0 0 120 90"}),c.createElement("div",{className:n.details},c.createElement(Oe.A,{className:n.content,classes:{root:n.root}},c.createElement(v.A,{className:n.headline,component:"p",variant:"h3"},l("mosaic")),c.createElement(v.A,{variant:"body1"},l("mosaicDescription")))))))))}}])&&Ie(t.prototype,n),r&&Ie(t,r),s}(c.Component);Ne.defaultProps={children:null,container:null,open:!1,t:function(e){return e}};var Me={updateWorkspace:R.tO};const Le=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{card:{backgroundColor:"transparent",borderRadius:"0",boxShadow:"0 0 transparent",display:"flex"},content:{flex:"1 0 auto"},details:{display:"flex",flexDirection:"column"},headline:{paddingBottom:"6px"},list:{"&active":{outline:"none"},"&focus":{outline:"none"},outline:"none"},media:{flex:"0 0 120px",height:"90px"},menuItem:{height:"auto",overflow:"auto",whiteSpace:"inherit"},root:{"&:last-child":{paddingBottom:"12px"},paddingBottom:0,paddingTop:0,textAlign:"left"},svgIcon:{flexShrink:0,height:"90px",width:"120px"}}})),(0,o.Ng)((function(e){return{workspaceType:(0,_.I3)(e)}}),Me),(0,l.h)("WorkspaceSelectionDialog"))(Ne);var ze=n(35366),We=n(34477);function Be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fe(e,t){return Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fe(e,t)}function He(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ve(e)}var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ve(o);if(i){var n=Ve(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return He(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).selectedItemRef=c.createRef(),t.handleThemeChange=t.handleThemeChange.bind(He(t)),t}return t=s,r=[{key:"setInitialFocus",value:function(e,t){var n=e.querySelectorAll('li[value="'.concat(t,'"]'));n&&0!==n.length&&n[0].focus()}}],(n=[{key:"handleThemeChange",value:function(e){var t=this.props,n=t.setSelectedTheme,r=t.handleClose;n(e),r()}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.handleClose,o=t.open,i=t.selectedTheme,a=t.t,l=t.themeIds;return c.createElement(h.A,{onClose:r,onEntered:function(e){return s.setInitialFocus(e,i)},open:o},c.createElement(g.A,{id:"change-the-dialog-title",disableTypography:!0},c.createElement(v.A,{variant:"h2"},a("changeTheme"))),c.createElement(m.A,{className:n.dialogContent},c.createElement(Ee.A,null,l.map((function(t){return c.createElement(re.A,{key:t,className:n.listitem,onClick:function(){e.handleThemeChange(t)},selected:t===i,value:t},c.createElement(ie.A,null,c.createElement(We.A,{className:n[t]})),c.createElement(ae.A,null,a(t)))})))))}}])&&Be(t.prototype,n),r&&Be(t,r),s}(c.Component);Ue.defaultProps={open:!1,themeIds:[]};var Ge=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{dark:{color:"#000000"},dialogContent:{padding:0},light:{color:"#BDBDBD"},listitem:{"&:focus":{backgroundColor:e.palette.action.focus},"&:hover":{backgroundColor:e.palette.action.hover},cursor:"pointer"}}})),(0,o.Ng)((function(e){return{selectedTheme:(0,te.zj)(e).selectedTheme,themeIds:(0,te.Qc)(e)}}),(function(e,t){return t.windowId,{setSelectedTheme:function(t){return e(oe._R({selectedTheme:t}))}}})),(0,l.h)("ChangeThemeDialog"));const qe=Ge(Ue);var $e=n(13377);function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ze(e,t){return Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ze(e,t)}function Xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ye(e)}var Qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ze(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ye(r);if(o){var n=Ye(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xe(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={changeTheme:{},toggleZoom:{},workspaceSelection:{}},t.handleMenuItemClick=t.handleMenuItemClick.bind(Xe(t)),t.handleMenuItemClose=t.handleMenuItemClose.bind(Xe(t)),t}return t=a,(n=[{key:"handleMenuItemClick",value:function(e,t){var n={};n[e]={},n[e].open=!0,n[e].anchorEl=t.currentTarget,this.setState(n)}},{key:"handleMenuItemClose",value:function(e){var t=this;return function(n){var r={};r[e]={},r[e].open=!1,r[e].anchorEl=null,t.setState(r)}}},{key:"handleZoomToggleClick",value:function(){var e=this.props;(0,e.toggleZoomControls)(!e.showZoomControls)}},{key:"render",value:function(){var e=this,t=this.props,n=t.containerId,r=t.handleClose,o=t.anchorEl,i=t.showThemePicker,a=t.isWorkspaceAddVisible,s=t.t,l=t.showZoomControls,u=this.state,d=u.changeTheme,f=u.toggleZoom,p=u.workspaceSelection,h=document.querySelector("#".concat(n," .").concat((0,ze.A)("viewer")));return c.createElement(c.Fragment,null,c.createElement(ne.A,{id:"workspace-menu",container:h,anchorEl:o,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:Boolean(o),onClose:r},c.createElement(re.A,{"aria-haspopup":"true",disabled:a,onClick:function(t){e.handleZoomToggleClick(t),r(t)},"aria-owns":f.anchorEl?"toggle-zoom-menu":void 0},c.createElement(v.A,{variant:"body1"},s(l?"hideZoomControls":"showZoomControls"))),c.createElement(re.A,{"aria-haspopup":"true",onClick:function(t){e.handleMenuItemClick("workspaceSelection",t),r(t)},"aria-owns":p.anchorEl?"workspace-selection":void 0},c.createElement(v.A,{variant:"body1"},s("selectWorkspaceMenu"))),c.createElement(we,{label:s("language")},c.createElement(fe,{afterSelect:r})),i&&c.createElement(re.A,{"aria-haspopup":"true",onClick:function(t){e.handleMenuItemClick("changeTheme",t),r(t)},"aria-owns":d.anchorEl?"change-theme":void 0},c.createElement(v.A,{variant:"body1"},s("changeTheme"))),c.createElement($e.F,this.props)),Boolean(d.open)&&c.createElement(qe,{container:h,handleClose:this.handleMenuItemClose("changeTheme"),open:Boolean(d.open)}),Boolean(p.open)&&c.createElement(Le,{open:Boolean(p.open),container:h,handleClose:this.handleMenuItemClose("workspaceSelection")}))}}])&&Ke(t.prototype,n),a}(c.Component);Qe.defaultProps={anchorEl:null,isWorkspaceAddVisible:!1,showThemePicker:!1,showZoomControls:!1,t:function(e){return e},toggleZoomControls:function(){}};var Je={toggleZoomControls:R.WU};const et=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e){return{containerId:(0,te.TW)(e),isWorkspaceAddVisible:(0,j.K4)(e).isWorkspaceAddVisible,showThemePicker:(0,te.Qc)(e).length>0,showZoomControls:(0,te.X3)(e)}}),Je),(0,l.h)("WorkspaceMenu"))(Qe);function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nt(e,t){return nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nt(e,t)}function rt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ot(e){return ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ot(e)}var it=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ot(r);if(o){var n=ot(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rt(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={anchorEl:null},t.handleMenuClick=t.handleMenuClick.bind(rt(t)),t.handleMenuClose=t.handleMenuClose.bind(rt(t)),t}return t=a,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=this.state.anchorEl;return c.createElement(c.Fragment,null,c.createElement($.A,{"aria-haspopup":"true","aria-label":n("workspaceMenu"),"aria-owns":r?"workspace-menu":void 0,className:d()(t.ctrlBtn,r?t.ctrlBtnSelected:null),id:"menuBtn",onClick:this.handleMenuClick},c.createElement(ee.A,null)),c.createElement(et,{anchorEl:r,handleClose:this.handleMenuClose}))}}])&&tt(t.prototype,n),a}(c.Component);it.defaultProps={t:function(e){return e}};const at=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{ctrlBtn:{margin:e.spacing(1)},ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),(0,l.h)("WorkspaceMenuButton"))(it);var st=n(97571),lt=n(59282),ct=n(8876),ut=n(65936),dt=n(42460),ft=n(42561),pt=n(73546),ht=n(53976),mt=n(86074),gt=n(56494),vt=n(59399);function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bt(e,t){return bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bt(e,t)}function wt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Et(e){return Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Et(e)}var xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Et(r);if(o){var n=Et(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wt(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={copied:!1},t.onCopy=t.onCopy.bind(wt(t)),t.handleClose=t.handleClose.bind(wt(t)),t}return t=a,(n=[{key:"handleClose",value:function(){(0,this.props.handleClose)()}},{key:"onCopy",value:function(){this.setState({copied:!0})}},{key:"exportedState",value:function(){var e=this.props.exportableState;return JSON.stringify(e,null,2)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=e.container,o=e.open,i=e.t;return this.state.copied?c.createElement(ut.A,{anchorOrigin:{horizontal:"center",vertical:"top"},open:!0,autoHideDuration:6e3,onClose:this.handleClose,message:i("exportCopied"),action:c.createElement(dt.A,{size:"small","aria-label":i("dismiss"),color:"inherit",onClick:this.handleClose},c.createElement(pt.default,{fontSize:"small"}))}):c.createElement(h.A,{id:"workspace-settings",container:r,open:o,onClose:this.handleClose,scroll:"paper",fullWidth:!0,maxWidth:"sm"},c.createElement(g.A,{id:"form-dialog-title",disableTypography:!0},c.createElement(v.A,{variant:"h2"},i("downloadExport"))),c.createElement(m.A,null,c.createElement(ht.A,{elevation:0},c.createElement(mt.A,{classes:{root:n.accordionTitle},expandIcon:c.createElement(ft.A,null)},c.createElement(v.A,{variant:"h4"},i("viewWorkspaceConfiguration"))),c.createElement(gt.A,null,t,c.createElement("pre",null,this.exportedState())))),c.createElement(b.A,null,c.createElement(w.A,{onClick:this.handleClose},i("cancel")),c.createElement(vt.CopyToClipboard,{onCopy:this.onCopy,text:this.exportedState()},c.createElement(w.A,{variant:"contained",color:"primary"},i("copy")))))}}])&&yt(t.prototype,n),a}(c.Component);xt.defaultProps={children:null,classes:{},container:null,open:!1,t:function(e){return e}};const Ot=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{accordionTitle:{padding:0}}})),(0,o.Ng)((function(e){return{exportableState:(0,te.Gt)(e)}}),{}),(0,l.h)("WorkspaceExport"))(xt);var St=n(72572);function At(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _t(e,t){return _t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_t(e,t)}function Ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tt(e){return Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tt(e)}var kt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_t(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Tt(r);if(o){var n=Tt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ct(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={configImportValue:""},t.handleImportConfig=t.handleImportConfig.bind(Ct(t)),t.handleChange=t.handleChange.bind(Ct(t)),t}return t=a,(n=[{key:"handleChange",value:function(e){e.preventDefault(),this.setState({configImportValue:e.target.value})}},{key:"handleImportConfig",value:function(e){var t=this.props,n=t.handleClose,r=t.importConfig,o=this.state.configImportValue;try{r(JSON.parse(o)),n()}catch(e){(0,this.props.addError)(e.toString())}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.handleClose,r=e.open,o=e.t;return c.createElement(h.A,{"aria-labelledby":"workspace-import-title",id:"workspace-import",onEscapeKeyDown:n,onClose:n,open:r,fullWidth:!0,maxWidth:"sm"},c.createElement(g.A,{id:"workspace-import-title",disableTypography:!0},c.createElement(v.A,{variant:"h2"},o("importWorkspace"))),c.createElement(Pe,null,c.createElement(St.A,{className:t.textField,id:"workspace-import-input",multiline:!0,onChange:this.handleChange,rows:"15",variant:"filled",inputProps:{autoFocus:"autofocus",className:t.textInput},helperText:o("importWorkspaceHint")})),c.createElement(b.A,null,c.createElement(w.A,{className:t.cancelBtn,onClick:n},o("cancel")),c.createElement(w.A,{color:"primary",onClick:this.handleImportConfig,variant:"contained"},o("import"))))}}])&&At(t.prototype,n),a}(c.Component);kt.defaultProps={classes:{},open:!1,t:function(e){return e}};var Pt={addError:A.C,importConfig:oe.Jk};const It=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{cancelBtn:{color:e.palette.text.primary},textField:{width:"100%"},textInput:{fontFamily:"monospace"}}})),(0,o.Ng)(null,Pt),(0,l.h)("WorkspaceImport"))(kt);function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jt(e,t){return jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jt(e,t)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nt(e)}var Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Nt(r);if(o){var n=Nt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Dt(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={exportWorkspace:{},importWorkspace:{}},t.handleMenuItemClick=t.handleMenuItemClick.bind(Dt(t)),t.handleMenuItemClose=t.handleMenuItemClose.bind(Dt(t)),t}return t=a,(n=[{key:"handleMenuItemClick",value:function(e){var t={};t[e]={},t[e].open=!0,this.setState(t)}},{key:"handleMenuItemClose",value:function(e){var t=this;return function(n){var r={};r[e]={},r[e].open=!1,t.setState(r)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.anchorEl,r=t.containerId,o=t.handleClose,i=t.t,a=this.state,s=a.exportWorkspace,l=a.importWorkspace,u=document.querySelector("#".concat(r," .").concat((0,ze.A)("viewer")));return c.createElement(c.Fragment,null,c.createElement(ne.A,{id:"workspace-options-menu",container:u,anchorEl:n,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:Boolean(n),onClose:o},c.createElement(re.A,{"aria-haspopup":"true",onClick:function(){e.handleMenuItemClick("exportWorkspace"),o()},"aria-owns":s.open?"workspace-export":void 0},c.createElement(ie.A,null,c.createElement(ct.A,null)),c.createElement(v.A,{variant:"body1"},i("downloadExportWorkspace"))),c.createElement(re.A,{"aria-haspopup":"true",id:"workspace-menu-import",onClick:function(){e.handleMenuItemClick("importWorkspace"),o()},"aria-owns":s.open?"workspace-import":void 0},c.createElement(ie.A,null,c.createElement(lt.A,null)),c.createElement(v.A,{variant:"body1"},i("importWorkspace"))),c.createElement($e.F,this.props)),Boolean(s.open)&&c.createElement(Ot,{open:Boolean(s.open),container:u,handleClose:this.handleMenuItemClose("exportWorkspace")}),Boolean(l.open)&&c.createElement(It,{open:Boolean(l.open),container:u,handleClose:this.handleMenuItemClose("importWorkspace")}))}}])&&Rt(t.prototype,n),a}(c.Component);Mt.defaultProps={anchorEl:null};const Lt=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e){return{containerId:(0,te.TW)(e)}}),null))(Mt);function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wt(e,t){return Wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wt(e,t)}function Bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ft(e){return Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ft(e)}var Ht=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ft(r);if(o){var n=Ft(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bt(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={anchorEl:null},t.handleMenuClick=t.handleMenuClick.bind(Bt(t)),t.handleMenuClose=t.handleMenuClose.bind(Bt(t)),t}return t=a,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=this.state.anchorEl;return c.createElement(c.Fragment,null,c.createElement($.A,{"aria-label":n("workspaceOptions"),className:d()(t.ctrlBtn,r?t.ctrlBtnSelected:null),onClick:this.handleMenuClick},c.createElement(st.A,null)),c.createElement(Lt,{anchorEl:r,handleClose:this.handleMenuClose}))}}])&&zt(t.prototype,n),a}(c.Component);const Vt=(0,r.Zz)((0,s.A)((function(e){return{ctrlBtn:{margin:e.spacing(1)},ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),(0,i.C)(),(0,l.h)("WorkspaceOptionsButton"))(Ht);var Ut=n(51759),Gt=n(91068),qt=n(17006),$t=n(45152);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,r.key,r)}}function Zt(e,t){return Zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zt(e,t)}function Xt(e){return Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xt(e)}var Yt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zt(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Xt(o);if(i){var n=Xt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,r=[{key:"focus2ndListIitem",value:function(e){!e.querySelectorAll("li")||e.querySelectorAll("li").length<2||e.querySelectorAll("li")[1].focus()}}],(n=[{key:"titleContent",value:function(e){var t=this.props,n=t.titles,r=t.t;return n[e]||r("untitled")}},{key:"render",value:function(){var e=this,t=this.props,n=t.containerId,r=t.handleClose,o=t.anchorEl,i=t.windowIds,a=t.focusWindow,l=t.t;return c.createElement(ne.A,{anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},id:"window-list-menu",container:document.querySelector("#".concat(n," .").concat((0,ze.A)("viewer"))),disableAutoFocusItem:!0,anchorEl:o,open:Boolean(o),onClose:r,onEntering:s.focus2ndListIitem},c.createElement($t.A,{role:"presentation",selected:!1,disabled:!0,tabIndex:"-1"},l("openWindows")),i.map((function(t,n){return c.createElement(re.A,{key:t,onClick:function(e){a(t,!0),r(e)}},c.createElement(ae.A,{primaryTypographyProps:{variant:"body1"}},e.titleContent(t)))})))}}])&&Kt(t.prototype,n),r&&Kt(t,r),s}(c.Component);Yt.defaultProps={anchorEl:null,t:function(e){return e},titles:{}};var Qt={focusWindow:Gt.hN};const Jt=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e){return{containerId:(0,te.TW)(e),titles:(0,qt.wb)(e),windowIds:(0,j.rG)(e)}}),Qt),(0,l.h)("WindowList"))(Yt);function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tn(e,t){return tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tn(e,t)}function nn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rn(e)}var on=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=rn(r);if(o){var n=rn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nn(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={windowListAnchor:null},t.handleClose=t.handleClose.bind(nn(t)),t.handleOpen=t.handleOpen.bind(nn(t)),t}return t=a,(n=[{key:"handleClose",value:function(){this.setState({windowListAnchor:null})}},{key:"handleOpen",value:function(e){this.setState({windowListAnchor:e.currentTarget})}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.disabled,o=t.t,i=t.windowCount,a=this.state.windowListAnchor;return c.createElement(c.Fragment,null,c.createElement($.A,{"aria-haspopup":"true","aria-label":o("listAllOpenWindows"),"aria-owns":a?"window-list":null,className:d()(n.ctrlBtn,a?n.ctrlBtnSelected:null),disabled:r,badge:!0,BadgeProps:{badgeContent:i,classes:{badge:n.badge}},onClick:function(t){return e.handleOpen(t)}},c.createElement(Ut.A,null)),Boolean(a)&&c.createElement(Jt,{anchorEl:a,id:"window-list",open:Boolean(a),handleClose:this.handleClose}))}}])&&en(t.prototype,n),a}(c.Component);on.defaultProps={classes:{},disabled:!1};const an=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{badge:{paddingLeft:12},ctrlBtn:{margin:e.spacing(1)},ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),(0,o.Ng)((function(e){return{disabled:(0,j.K4)(e).isWorkspaceAddVisible,windowCount:(0,j.rG)(e).length}}),null),(0,l.h)("WindowListButton"))(on);function sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ln(e,t){return ln=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ln(e,t)}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cn(e)}var un=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ln(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=cn(r);if(o){var n=cn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.classes;return c.createElement(c.Fragment,null,c.createElement(an,null),c.createElement(at,null),c.createElement(Vt,null),c.createElement(J,{className:e.ctrlBtn}),c.createElement($e.F,this.props))}}])&&sn(t.prototype,n),a}(c.Component);un.defaultProps={classes:{}};const dn=(0,r.Zz)((0,s.A)((function(e){return{ctrlBtn:{margin:e.spacing(1)}}})),(0,l.h)("WorkspaceControlPanelButtons"))(un);function fn(e){return c.createElement(Se.A,Object.assign({viewBox:"0 0 60 55"},e),c.createElement("rect",{width:"18",height:"55"}),c.createElement("rect",{width:"18",height:"55",transform:"translate(42)"}),c.createElement("rect",{width:"18",height:"34",transform:"translate(21)"}))}var pn=["t","variant"];function hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mn(e,t){return mn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mn(e,t)}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gn(e)}var vn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mn(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=gn(r);if(o){var n=gn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.t,n=e.variant,r=function(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}(e,pn);return c.createElement("div",r,"wide"===n&&c.createElement("div",null,c.createElement(v.A,{align:"center",component:"p",variant:"h3"},t("mirador"))),c.createElement(v.A,{align:"center"},c.createElement(dt.A,{component:"a",href:"https://projectmirador.org",target:"_blank",rel:"noopener"},c.createElement(fn,{"aria-label":t("aboutMirador"),titleAccess:t("aboutMirador"),fontSize:"large"}))))}}])&&hn(t.prototype,n),a}(c.Component);vn.defaultProps={t:function(e){return e},variant:"default"};const yn=(0,l.h)("Branding")(vn);function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wn(e,t){return wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wn(e,t)}function En(e){return En=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},En(e)}var xn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wn(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=En(r);if(o){var n=En(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=e.variant;return c.createElement(k.A,{className:d()(t.root,(0,ze.A)("workspace-control-panel"),"wide"===r?t.wide:null),color:"default",position:"absolute",component:"nav","aria-label":n("workspaceNavigation")},c.createElement(P.A,{disableGutters:!0,className:t.toolbar},c.createElement(U,null),c.createElement("div",{className:t.workspaceButtons},c.createElement(dn,null))),c.createElement(yn,{className:t.branding,t:n,variant:r}))}}])&&bn(t.prototype,n),a}(c.Component);function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}xn.defaultProps={variant:"default"};const Sn=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){var t;return{branding:(t={display:"flex",position:"absolute"},On(t,e.breakpoints.up("xs"),{display:"none"}),On(t,e.breakpoints.up("sm"),{bottom:0,display:"block",float:"none",right:"auto",width:"100%"}),On(t,"right",0),t),ctrlBtn:{margin:e.spacing(1)},drawer:{overflowX:"hidden"},root:On({height:64},e.breakpoints.up("sm"),{height:"100%",left:0,right:"auto",width:64}),toolbar:On({display:"flex",justifyContent:"space-between"},e.breakpoints.up("sm"),{flexDirection:"column",justifyContent:"flex-start",minHeight:0}),wide:{width:"auto"},workspaceButtons:On({},e.breakpoints.up("sm"),{display:"flex",flexDirection:"column"})}})),(0,l.h)("WorkspaceControlPanel"))(xn);var An=n(27606),_n=n(3148),Cn=n(51653),Tn=n(97823),kn=n(51636),Pn=n(15776),In=n(84127);function Rn(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},c.createElement("path",{d:"M3,3H21V5H3Z",transform:"translate(0 16)"}),c.createElement("path",{d:"M21,5H3V19H21ZM19,17H5V7H19Z",transform:"translate(0 -2)"})))}function jn(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},c.createElement("path",{d:"M0,0H24V24H0Z",transform:"translate(24) rotate(90)",fill:"none"}),c.createElement("path",{d:"M3,3H21V5H3Z",transform:"translate(24) rotate(90)"}),c.createElement("path",{d:"M19,3H5V21H19ZM17,19H7V5H17Z",transform:"translate(-2)"})))}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nn(e,t){return Nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nn(e,t)}function Mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ln(e){return Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ln(e)}var zn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nn(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ln(r);if(o){var n=Ln(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mn(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleChange=t.handleChange.bind(Mn(t)),t}return t=a,(n=[{key:"handleChange",value:function(e){var t=this.props,n=t.windowId;(0,t.setWindowThumbnailPosition)(n,e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.handleClose,o=t.t,i=t.thumbnailNavigationPosition,a=t.direction;return c.createElement(c.Fragment,null,c.createElement($t.A,{role:"presentation",disableSticky:!0,tabIndex:"-1"},o("thumbnails")),c.createElement(re.A,{className:n.MenuItem,onClick:function(){e.handleChange("off"),r()}},c.createElement(Pn.A,{value:"off",classes:{label:"off"===i?n.selectedLabel:n.label},control:c.createElement(In.A,{color:"off"===i?"secondary":void 0}),label:o("off"),labelPlacement:"bottom"})),c.createElement(re.A,{className:n.MenuItem,onClick:function(){e.handleChange("far-bottom"),r()}},c.createElement(Pn.A,{value:"far-bottom",classes:{label:"far-bottom"===i?n.selectedLabel:n.label},control:c.createElement(Rn,{color:"far-bottom"===i?"secondary":void 0}),label:o("bottom"),labelPlacement:"bottom"})),c.createElement(re.A,{className:n.MenuItem,onClick:function(){e.handleChange("far-right"),r()}},c.createElement(Pn.A,{value:"far-right",classes:{label:"far-right"===i?n.selectedLabel:n.label},control:c.createElement(jn,{color:"far-right"===i?"secondary":void 0,style:"rtl"===a?{transform:"rotate(180deg)"}:{}}),label:o("right"),labelPlacement:"bottom"})))}}])&&Dn(t.prototype,n),a}(c.Component);zn.defaultProps={handleClose:function(){},t:function(e){return e}};var Wn={setWindowThumbnailPosition:Gt.GR},Bn=(0,r.Zz)((0,s.A)((function(e){return{label:{borderBottom:"2px solid transparent"},MenuItem:{display:"inline-block"},selectedLabel:{borderBottom:"2px solid ".concat(e.palette.secondary.main),color:e.palette.secondary.main}}})),(0,i.C)(null,{withRef:!0}),(0,o.Ng)((function(e,t){var n=t.windowId;return{direction:(0,te.b3)(e),thumbnailNavigationPosition:(0,kn.Ir)(e,{windowId:n})}}),Wn,null,{forwardRef:!0}),(0,l.h)("WindowThumbnailSettings"));const Fn=Bn(zn);var Hn=n(7161),Vn=n(75787);function Un(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},c.createElement("path",{d:"M1,4V21H22.853V4.1ZM3,19V6h8V19Zm18,0H13V6h8ZM14,9.5h6V11H14ZM14,12h6v1.5H14Zm0,2.5h6V16H14Z"})))}function Gn(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},c.createElement("path",{d:"M19.974,2H2V19.974H19.974V2ZM7.392,18.177H3.8V14.582H7.392Zm0-5.392H3.8V9.19H7.392Zm0-5.392H3.8V3.8H7.392Zm5.392,10.785H9.19V14.582h3.595Zm0-5.392H9.19V9.19h3.595Zm0-5.392H9.19V3.8h3.595Zm5.392,10.785H14.582V14.582h3.595Zm0-5.392H14.582V9.19h3.595Zm0-5.392H14.582V3.8h3.595Z",transform:"translate(1 1)"})))}function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e,t){return $n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$n(e,t)}function Kn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zn(e){return Zn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zn(e)}var Xn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$n(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Zn(r);if(o){var n=Zn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Kn(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleChange=t.handleChange.bind(Kn(t)),t}return t=a,n=[{key:"handleChange",value:function(e){var t=this.props,n=t.windowId;(0,t.setWindowViewType)(n,e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.handleClose,o=t.t,i=t.windowViewType,a=t.viewTypes,s={book:Un,gallery:Gn,scroll:Vn.A,single:Hn.A};return 0===a.length?null:c.createElement(c.Fragment,null,c.createElement($t.A,{role:"presentation",disableSticky:!0,tabIndex:"-1"},o("view")),a.map((function(t){return function(t){var a=t.value,s=t.Icon;return c.createElement(re.A,{key:a,className:n.MenuItem,autoFocus:i===a,onClick:function(){e.handleChange(a),r()}},c.createElement(Pn.A,{value:a,classes:{label:i===a?n.selectedLabel:n.label},control:c.createElement(s,{color:i===a?"secondary":void 0}),label:o(a),labelPlacement:"bottom"}))}({Icon:s[t],value:t})})))}}],n&&qn(t.prototype,n),a}(c.Component);Xn.defaultProps={handleClose:function(){},t:function(e){return e},viewTypes:[]};var Yn={setWindowViewType:Gt.QO},Qn=(0,r.Zz)((0,s.A)((function(e){return{label:{borderBottom:"2px solid transparent"},MenuItem:{display:"inline-block"},selectedLabel:{borderBottom:"2px solid ".concat(e.palette.secondary.main),color:e.palette.secondary.main}}})),(0,i.C)(null,{withRef:!0}),(0,o.Ng)((function(e,t){var n=t.windowId;return{viewTypes:(0,qt.B2)(e,{windowId:n}),windowViewType:(0,qt.i9)(e,{windowId:n})}}),Yn,null,{forwardRef:!0}),(0,l.h)("WindowViewSettings"));const Jn=Qn(Xn);function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tr(e,t){return tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tr(e,t)}function nr(e){return nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nr(e)}function rr(e){var t=e.PluginComponents,n=e.t;return t?c.createElement(c.Fragment,null,c.createElement($t.A,{role:"presentation",disableSticky:!0,tabIndex:"-1"},n("windowPluginButtons")),c.createElement($e.F,e)):null}var or=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tr(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=nr(r);if(o){var n=nr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.containerId,n=e.handleClose,r=e.anchorEl,o=e.showThumbnailNavigationSettings,i=e.toggleDraggingEnabled,a=e.windowId;return c.createElement(ne.A,{id:"window-menu_".concat(a),container:document.querySelector("#".concat(t," .").concat((0,ze.A)("viewer"))),anchorEl:r,anchorOrigin:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},getContentAnchorEl:null,open:Boolean(r),onClose:n,onEntering:i,onExit:i,orientation:"horizontal"},c.createElement(Jn,{windowId:a,handleClose:n}),o&&c.createElement(Fn,{windowId:a,handleClose:n}),c.createElement(rr,this.props))}}])&&er(t.prototype,n),a}(c.Component);or.defaultProps={anchorEl:null,showThumbnailNavigationSettings:!0};const ir=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e){return{containerId:(0,te.TW)(e),showThumbnailNavigationSettings:(0,te.zj)(e).thumbnailNavigation.displaySettings}}),(function(e){return{toggleDraggingEnabled:function(){return e(R.Zw())}}})),(0,l.h)("WindowTopMenu"))(or);function ar(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},c.createElement("path",{d:"M0,0H24V24H0Z",fill:"none"}),c.createElement("path",{d:"M24.852,17.981,3,18V15.945l21.852-.019Z",transform:"translate(-2 5)"}),c.createElement("path",{d:"M1,4V21H22.853V4.1ZM3,19V6h8V19Zm18,0H13V6h8Z",transform:"translate(0 -2)"})))}function sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lr(e,t){return lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lr(e,t)}function cr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ur(e){return ur=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ur(e)}var dr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lr(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ur(r);if(o){var n=ur(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cr(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={anchorEl:null},t.handleMenuClick=t.handleMenuClick.bind(cr(t)),t.handleMenuClose=t.handleMenuClose.bind(cr(t)),t}return t=a,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.t,r=e.windowId,o=this.state.anchorEl;return c.createElement(c.Fragment,null,c.createElement($.A,{"aria-haspopup":"true","aria-label":n("windowMenu"),"aria-owns":o?"window-menu_".concat(r):void 0,className:o?t.ctrlBtnSelected:null,onClick:this.handleMenuClick},c.createElement(ar,null)),c.createElement(ir,{windowId:r,anchorEl:o,handleClose:this.handleMenuClose}))}}])&&sr(t.prototype,n),a}(c.Component);dr.defaultProps={t:function(e){return e}};const fr=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),(0,l.h)("WindowTopMenuButton"))(dr);function pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hr(e,t){return hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hr(e,t)}function mr(e){return mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mr(e)}var gr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hr(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=mr(r);if(o){var n=mr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){return c.createElement(c.Fragment,null,c.createElement($e.F,this.props))}}])&&pr(t.prototype,n),a}(c.Component);const vr=(0,r.Zz)((0,i.C)(),(0,s.A)({}),(0,o.Ng)(null,null),(0,l.h)("WindowTopBarPluginArea"))(gr);var yr=n(63624);function br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wr(e,t){return wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wr(e,t)}function Er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xr(e){return xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xr(e)}var Or=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wr(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=xr(r);if(o){var n=xr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Er(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={anchorEl:null},t.handleMenuClick=t.handleMenuClick.bind(Er(t)),t.handleMenuClose=t.handleMenuClose.bind(Er(t)),t}return t=a,(n=[{key:"handleMenuClick",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.containerId,o=t.PluginComponents,i=t.t,a=t.windowId,s=t.menuIcon,l=this.state.anchorEl;return o&&0!==o.length?c.createElement(c.Fragment,null,c.createElement($.A,{"aria-haspopup":"true","aria-label":i("windowPluginMenu"),"aria-owns":l?"window-plugin-menu_".concat(a):void 0,className:l?n.ctrlBtnSelected:null,onClick:this.handleMenuClick},s),c.createElement(ne.A,{id:"window-plugin-menu_".concat(a),container:document.querySelector("#".concat(r," .").concat((0,ze.A)("viewer"))),anchorEl:l,anchorOrigin:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},getContentAnchorEl:null,open:Boolean(l),onClose:function(){return e.handleMenuClose()}},c.createElement($e.F,Object.assign({handleClose:function(){return e.handleMenuClose()}},this.props)))):c.createElement(c.Fragment,null)}}])&&br(t.prototype,n),a}(c.Component);Or.defaultProps={classes:{},menuIcon:c.createElement(yr.A,null),PluginComponents:[]};const Sr=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{ctrlBtnSelected:{backgroundColor:e.palette.action.selected}}})),(0,o.Ng)((function(e){return{containerId:(0,te.TW)(e)}}),null),(0,l.h)("WindowTopBarPluginMenu"))(Or);var Ar=n(73893),_r=n(22488),Cr=n(67622);function Tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kr(e,t){return kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kr(e,t)}function Pr(e){return Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pr(e)}var Ir=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kr(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Pr(r);if(o){var n=Pr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.error,r=e.hideWindowTitle,o=e.isFetching,i=e.manifestTitle,a=function(e){return c.createElement(v.A,Object.assign({variant:"h2",noWrap:!0,color:"inherit",className:t.title},e),e.children)};return o?c.createElement(a,null,c.createElement(_r.A,{variant:"text"})):n?c.createElement(c.Fragment,null,c.createElement(Cr.A,{color:"error"}),c.createElement(a,{color:"textSecondary"},n)):r?c.createElement("div",{className:t.title}):c.createElement(a,null,i)}}])&&Tr(t.prototype,n),a}(c.Component);function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach((function(t){Dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ir.defaultProps={error:null,hideWindowTitle:!1,isFetching:!1,manifestTitle:""};var Nr=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{title:jr(jr({},e.typography.h6),{},{flexGrow:1,paddingLeft:e.spacing(.5)})}})),(0,o.Ng)((function(e,t){var n=t.windowId;return{error:(0,Ar.YR)(e,{windowId:n}).error,hideWindowTitle:(0,qt.R2)(e,{windowId:n}).hideWindowTitle,isFetching:(0,Ar.YR)(e,{windowId:n}).isFetching,manifestTitle:(0,Ar.aY)(e,{windowId:n})}}),null),(0,l.h)("WindowTopBarTitle"));const Mr=Nr(Ir);function Lr(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},c.createElement("path",{d:"M7,14H5v5h5V17H7Zm7-9V7h3v3h2V5Z"}),c.createElement("path",{d:"M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z"})))}function zr(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},c.createElement("path",{d:"M5,16H8v3h2V14H5ZM16,8V5H14v5h5V8Z"}),c.createElement("path",{d:"M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z"})))}function Wr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Br(e,t){return Br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Br(e,t)}function Fr(e){return Fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fr(e)}var Hr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Br(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Fr(r);if(o){var n=Fr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.removeWindow,n=e.windowId,r=e.classes,o=e.toggleWindowSideBar,i=e.t,a=e.windowDraggable,s=e.maximizeWindow,l=e.maximized,u=e.minimizeWindow,f=e.focused,p=e.allowClose,h=e.allowMaximize,m=e.focusWindow,g=e.allowFullscreen,v=e.allowTopMenuButton,y=e.allowWindowSideBar;return c.createElement(k.A,{position:"relative",color:"default"},c.createElement("nav",{"aria-label":i("windowNavigation")},c.createElement(P.A,{disableGutters:!0,onMouseDown:m,className:d()(r.windowTopBarStyle,a?r.windowTopBarStyleDraggable:null,f?r.focused:null,(0,ze.A)("window-top-bar")),variant:"dense"},y&&c.createElement($.A,{"aria-label":i("toggleWindowSideBar"),onClick:o},c.createElement(Tn.A,null)),c.createElement(Mr,{windowId:n}),v&&c.createElement(fr,{className:(0,ze.A)("window-menu-btn"),windowId:n}),c.createElement(vr,{windowId:n}),c.createElement(Sr,{windowId:n}),h&&c.createElement($.A,{"aria-label":i(l?"minimizeWindow":"maximizeWindow"),className:(0,ze.A)("window-maximize"),onClick:l?u:s},l?c.createElement(zr,null):c.createElement(Lr,null)),g&&c.createElement(J,null),p&&c.createElement($.A,{"aria-label":i("closeWindow"),className:(0,ze.A)("window-close"),onClick:t},c.createElement(L.A,null)))))}}])&&Wr(t.prototype,n),a}(c.Component);Hr.defaultProps={allowClose:!0,allowFullscreen:!1,allowMaximize:!0,allowTopMenuButton:!0,allowWindowSideBar:!0,focused:!1,focusWindow:function(){},maximized:!1,maximizeWindow:function(){},minimizeWindow:function(){},t:function(e){return e},windowDraggable:!0};var Vr=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{focused:{},windowTopBarStyle:{"&$focused":{borderTop:"2px solid ".concat(e.palette.primary.main)},backgroundColor:e.palette.shades.main,borderTop:"2px solid transparent",minHeight:32,paddingLeft:e.spacing(.5),paddingRight:e.spacing(.5)},windowTopBarStyleDraggable:{cursor:"move"}}})),(0,o.Ng)((function(e,t){var n=t.windowId,r=(0,qt.R2)(e,{windowId:n});return{allowClose:r.allowClose,allowFullscreen:r.allowFullscreen,allowMaximize:r.allowMaximize,allowTopMenuButton:r.allowTopMenuButton,allowWindowSideBar:r.allowWindowSideBar,focused:(0,_.ar)(e,{windowId:n}),maximized:r.maximized}}),(function(e,t){var n=t.windowId;return{focusWindow:function(){return e(Gt.hN(n))},maximizeWindow:function(){return e(Gt.Ff(n))},minimizeWindow:function(){return e(Gt.ds(n))},removeWindow:function(){return e(Gt.lM(n))},toggleWindowSideBar:function(){return e(Gt.F9(n))}}})),(0,l.h)("WindowTopBar"));const Ur=Vr(Hr);var Gr=n(46946),qr=n(30048),$r=n(20124),Kr=n(45196),Zr=n(74389),Xr=n(73015),Yr=n(36936),Qr=n(37098),Jr=n(67264),eo=n(95222),to=n(41351),no=n(73091),ro=n(90652),oo=n(44122);function io(e){return c.createElement(Se.A,e,c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},c.createElement("path",{d:"M6.924,21H21V19H6.924ZM3,17H21V15H3Zm3.924-4H21V11H6.924Zm0-4H21V7H6.924ZM3,3V5H21V3Z"})))}function ao(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function so(e,t){return so=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},so(e,t)}function lo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},co(e)}var uo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&so(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=co(r);if(o){var n=co(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lo(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleChange=t.handleChange.bind(lo(t)),t}return t=a,n=[{key:"handleChange",value:function(e,t){(0,this.props.addCompanionWindow)(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.hasAnnotations,o=t.hasAnyAnnotations,i=t.hasAnyLayers,a=t.hasCurrentLayers,s=t.hasSearchResults,l=t.hasSearchService,u=t.panels,d=t.PluginComponents,f=t.sideBarPanel,p=t.t,h=function(t){return c.createElement(N.Ay,{title:p("openCompanionWindow",{context:t.value})},c.createElement(Jr.A,Object.assign({},t,{classes:{root:n.tab,selected:n.tabSelected},"aria-label":p("openCompanionWindow",{context:t.value}),disableRipple:!0,onKeyUp:e.handleKeyUp})))};return c.createElement(Qr.A,{classes:{flexContainer:n.tabsFlexContainer,indicator:n.tabsIndicator},value:"closed"!==f&&f,onChange:this.handleChange,variant:"fullWidth",indicatorColor:"primary",textColor:"primary",orientation:"vertical","aria-orientation":"vertical","aria-label":p("sidebarPanelsNavigation")},u.info&&c.createElement(h,{value:"info",icon:c.createElement(eo.A,null)}),u.attribution&&c.createElement(h,{value:"attribution",icon:c.createElement(no.A,null)}),u.canvas&&c.createElement(h,{value:"canvas",icon:c.createElement(io,null)}),u.annotations&&(r||o)&&c.createElement(h,{value:"annotations",icon:c.createElement(Yr.A,{classes:{badge:n.badge},invisible:!r,variant:"dot"},c.createElement(to.A,null))}),u.search&&l&&c.createElement(h,{value:"search",icon:c.createElement(Yr.A,{classes:{badge:n.badge},invisible:!s,variant:"dot"},c.createElement(oo.A,null))}),u.layers&&i&&c.createElement(h,{value:"layers",icon:c.createElement(Yr.A,{classes:{badge:n.badge},invisible:!a,variant:"dot"},c.createElement(ro.A,null))}),d&&d.map((function(e){return c.createElement(h,{key:e.value,value:e.value,icon:c.createElement(e,null)})})))}}],n&&ao(t.prototype,n),a}(c.Component);function fo(e){return e&&e.some((function(e){return new Kr.default(e).imageResources.length>1}))}function po(e){return e&&e.some((function(e){var t=new Kr.default(e);return t.annotationListUris.length>0||t.canvasAnnotationPages.length>0}))}uo.defaultProps={classes:{},hasAnnotations:!1,hasAnyAnnotations:!1,hasAnyLayers:!1,hasCurrentLayers:!1,hasSearchResults:!1,hasSearchService:!1,panels:[],PluginComponents:null,sideBarPanel:"closed",t:function(e){return e}};var ho=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{badge:{backgroundColor:e.palette.notification.main},tab:{"&:active":{backgroundColor:e.palette.action.active},"&:focus":{"@media (hover: none)":{backgroundColor:"transparent"},backgroundColor:e.palette.action.hover,textDecoration:"none"},"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"},backgroundColor:e.palette.action.hover,textDecoration:"none"},borderRight:"2px solid transparent",minWidth:"auto"},tabSelected:{borderRight:"2px solid ".concat(e.palette.primary.main)},tabsFlexContainer:{flexDirection:"column"},tabsIndicator:{display:"none"}}})),(0,o.Ng)((function(e,t){var n=t.windowId;return{hasAnnotations:(0,Zr.Y2)(e,{windowId:n}).length>0,hasAnyAnnotations:po((0,Gr.P)(e,{windowId:n})),hasAnyLayers:fo((0,Gr.P)(e,{windowId:n})),hasCurrentLayers:fo((0,Gr.Mg)(e,{windowId:n})),hasSearchResults:(0,j.zk)(e,{windowId:n}).suggestedSearches||(0,Xr.V8)(e,{companionWindowId:((0,kn.kH)(e,{position:"left",windowId:n})[0]||{}).id,windowId:n}),hasSearchService:null!==(0,Ar.B8)(e,{windowId:n}),panels:(0,qt.R2)(e,{windowId:n}).panels,sideBarPanel:((0,kn.kH)(e,{position:"left",windowId:n})[0]||{}).content}}),(function(e,t){var n=t.windowId;return{addCompanionWindow:function(t){return e($r.Yy(n,{content:t,position:"left"}))}}})),(0,l.h)("WindowSideBarButtons"));const mo=ho(uo);function go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vo(e,t){return vo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vo(e,t)}function yo(e){return yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yo(e)}var bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vo(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=yo(r);if(o){var n=yo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.direction,r=e.t,o=e.windowId,i=e.sideBarOpen;return c.createElement(c.Fragment,null,c.createElement(qr.Ay,{variant:"persistent",className:d()(t.drawer),classes:{paper:d()(t.paper)},anchor:"rtl"===n?"right":"left",PaperProps:{"aria-label":r("sidebarPanelsNavigation"),component:"nav",style:{height:"100%",position:"relative"}},SlideProps:{direction:"rtl"===n?"left":"right",mountOnEnter:!0,unmountOnExit:!0},open:i},c.createElement(mo,{windowId:o})))}}])&&go(t.prototype,n),a}(c.Component);bo.defaultProps={sideBarOpen:!1};var wo=(0,r.Zz)((0,s.A)((function(e){return{drawer:{flexShrink:0,height:"100%",order:-1e3,zIndex:e.zIndex.appBar-1},grow:{flexGrow:1},paper:{borderInlineEnd:"1px solid ".concat(e.palette.divider),overflowX:"hidden",width:48},toolbar:e.mixins.toolbar}})),(0,i.C)(),(0,o.Ng)((function(e,t){var n=t.windowId;return{direction:(0,te.b3)(e),sideBarOpen:((0,j.zk)(e,{windowId:n})||{}).sideBarOpen,sideBarPanel:((0,j.zk)(e,{windowId:n})||{}).sideBarPanel}}),null),(0,l.h)("WindowSideBar"));const Eo=wo(bo);var xo=n(10716),Oo=n(63472),So=n(33613),Ao=n(7334),_o=n(18502),Co=n(80045),To=n(58168),ko=n(20053),Po=n(95126);const Io=(0,Po.A)(c.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Ro=(0,Po.A)(c.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),jo=(0,Po.A)(c.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),Do=(0,Po.A)(c.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var No=n(81863),Mo=n(67515),Lo={success:c.createElement(Io,{fontSize:"inherit"}),warning:c.createElement(Ro,{fontSize:"inherit"}),error:c.createElement(jo,{fontSize:"inherit"}),info:c.createElement(Do,{fontSize:"inherit"})},zo=c.createElement(No.A,{fontSize:"small"}),Wo=c.forwardRef((function(e,t){var n=e.action,r=e.children,o=e.classes,i=e.className,a=e.closeText,s=void 0===a?"Close":a,l=e.color,u=e.icon,d=e.iconMapping,f=void 0===d?Lo:d,p=e.onClose,h=e.role,m=void 0===h?"alert":h,g=e.severity,v=void 0===g?"success":g,y=e.variant,b=void 0===y?"standard":y,w=(0,Co.A)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return c.createElement(_n.A,(0,To.A)({role:m,square:!0,elevation:0,className:(0,ko.default)(o.root,o["".concat(b).concat((0,Mo.A)(l||v))],i),ref:t},w),!1!==u?c.createElement("div",{className:o.icon},u||f[v]||Lo[v]):null,c.createElement("div",{className:o.message},r),null!=n?c.createElement("div",{className:o.action},n):null,null==n&&p?c.createElement("div",{className:o.action},c.createElement(dt.A,{size:"small","aria-label":s,title:s,color:"inherit",onClick:p},zo)):null)}));const Bo=(0,s.A)((function(e){var t="light"===e.palette.type?a.e$:a.a,n="light"===e.palette.type?a.a:a.e$;return{root:(0,To.A)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(Wo);function Fo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ho(e,t){return Ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ho(e,t)}function Vo(e){return Vo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vo(e)}var Uo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ho(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Vo(r);if(o){var n=Vo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.error,r=e.metadata,o=e.showJsError,i=e.t;return o?c.createElement(c.Fragment,null,c.createElement(Bo,{elevation:6,variant:"filled",severity:"error"},i("errorDialogTitle")),o&&c.createElement(ht.A,{square:!0,className:t.alert},c.createElement(mt.A,{expandIcon:c.createElement(ft.A,null)},c.createElement(v.A,null,i("jsError",{message:n.message,name:n.name}))),c.createElement(gt.A,{className:t.details},c.createElement("pre",null,i("jsStack",{stack:n.stack})),r&&c.createElement("pre",null,JSON.stringify(r,null,2)))),c.createElement($e.F,this.props)):null}}])&&Fo(t.prototype,n),a}(c.Component);Uo.defaultProps={metadata:null,showJsError:!0,t:function(e){return e}};var Go=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{alert:{"& $icon":{color:e.palette.error.main},backgroundColor:e.palette.error.main,color:"#fff",fontWeight:e.typography.fontWeightMedium},details:{"& pre":{height:"100px",overflowY:"scroll"},flexDirection:"column"}}})),(0,o.Ng)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{metadata:{companionWindow:n&&(0,kn.DS)(e,{companionWindowId:n}),manifest:(0,j.c2)(e,{windowId:r}),viewer:(0,j.tk)(e,{windowId:r}),window:(0,j.zk)(e,{windowId:r})},showJsError:(0,te.zj)(e).window.showJsError}})),(0,l.h)("ErrorContent"));const qo=Go(Uo);function $o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ko(e,t){return Ko=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ko(e,t)}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zo(e)}var Xo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ko(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Zo(o);if(i){var n=Zo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={},t}return t=s,r=[{key:"getDerivedStateFromError",value:function(e){return{error:e,hasError:!0}}}],(n=[{key:"componentDidUpdate",value:function(e){this.props.content!==e.content&&this.setState({error:null,hasError:!1})}},{key:"render",value:function(){var e=this.props,t=e.content,n=e.windowId,r=e.id,o=e.t,i=this.state,a=i.error;if(i.hasError)return c.createElement(_o.A,{title:o("error"),windowId:n,id:r},c.createElement(qo,{error:a,windowId:n,companionWindowId:r}));var s=Ao.A[t];return s?c.createElement(s,{id:r,windowId:n}):c.createElement(c.Fragment,null)}}])&&$o(t.prototype,n),r&&$o(t,r),s}(c.Component);Xo.defaultProps={content:null,t:function(e){return e}};var Yo=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e,t){var n=t.id;return{content:(0,kn.DS)(e,{companionWindowId:n}).content,id:n}})),(0,l.h)("CompanionWindowFactory"));const Qo=Yo(Xo);function Jo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ei(e,t){return ei=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ei(e,t)}function ti(e){return ti=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ti(e)}var ni=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ei(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ti(r);if(o){var n=ti(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"areaLayoutClass",value:function(){var e=this.props,t=e.classes,n=e.position;return"bottom"===n||"far-bottom"===n?t.horizontal:null}},{key:"collapseIcon",value:function(){var e=this.props,t=e.companionAreaOpen;return"rtl"===e.direction?t?c.createElement(So.A,null):c.createElement(Oo.A,null):t?c.createElement(Oo.A,null):c.createElement(So.A,null)}},{key:"slideDirection",value:function(){var e=this.props,t=e.direction,n="rtl"===t?"left":"right",r="rtl"===t?"right":"left";switch(e.position){case"right":case"far-right":return r;case"bottom":case"far-bottom":return"up";default:return n}}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.companionWindowIds,r=e.companionAreaOpen,o=e.setCompanionAreaOpen,i=e.position,a=e.sideBarOpen,s=e.t,l=e.windowId;return c.createElement("div",{className:[t.root,this.areaLayoutClass(),(0,ze.A)("companion-area-".concat(i))].join(" ")},c.createElement(xo.A,{in:r,direction:this.slideDirection()},c.createElement("div",{className:[(0,ze.A)("companion-windows"),n.length>0&&t[i],this.areaLayoutClass()].join(" "),style:{display:r?"flex":"none"}},n.map((function(e){return c.createElement(Qo,{id:e,key:e,windowId:l})})))),o&&"left"===i&&a&&n.length>0&&c.createElement("div",{className:t.toggle},c.createElement($.A,{"aria-expanded":r,"aria-label":s(r?"collapseSidePanel":"expandSidePanel"),className:t.toggleButton,key:r?"collapse":"expand",onClick:function(){o(l,!r)},TooltipProps:{placement:"right"}},this.collapseIcon())))}}])&&Jo(t.prototype,n),a}(c.Component);ni.defaultProps={classes:{},setCompanionAreaOpen:function(){},sideBarOpen:!1};var ri={setCompanionAreaOpen:Gt.Aq},oi=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{horizontal:{flexDirection:"column",width:"100%"},left:{minWidth:235},root:{display:"flex",minHeight:0,position:"relative",zIndex:e.zIndex.appBar-2},toggle:{backgroundColor:e.palette.background.paper,border:"1px solid ".concat(e.palette.shades.dark),borderRadius:0,height:"48px",left:"100%",marginTop:"1rem",padding:2,position:"absolute",width:"23px",zIndex:e.zIndex.drawer},toggleButton:{marginBottom:12,marginTop:12,padding:0}}})),(0,o.Ng)((function(e,t){var n=t.windowId,r=t.position;return{companionAreaOpen:(0,kn.ar)(e,{position:r,windowId:n}),companionWindowIds:(0,kn.bN)(e,{position:r,windowId:n}),direction:(0,te.b3)(e),sideBarOpen:((0,j.zk)(e,{windowId:n})||{}).sideBarOpen}}),ri),(0,l.h)("CompanionArea"));const ii=oi(ni);var ai=n(38925),si=n(10782),li=n(33615),ci=n(87618),ui=n(89945),di=n(22735),fi=n(65298),pi=n(32295);function hi(e){return function(e){if(Array.isArray(e))return mi(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){if("string"==typeof e)return mi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mi(e,t):void 0}}(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 mi(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 gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vi(e,t){return vi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vi(e,t)}function yi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bi(e){return bi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bi(e)}var wi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vi(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=bi(o);if(i){var n=bi(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yi(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={filter:null},t.hideDialog=t.hideDialog.bind(yi(t)),t}return t=s,n=[{key:"setFilter",value:function(e){this.setState({filter:e})}},{key:"hideDialog",value:function(){var e=this.props;(0,e.hideCollectionDialog)(e.windowId)}},{key:"selectCollection",value:function(e){var t=this.props,n=t.collectionPath,r=t.manifestId,o=t.showCollectionDialog,i=t.windowId;o(e.id,[].concat(hi(n),[r]),i)}},{key:"goToPreviousCollection",value:function(){var e=this.props,t=e.collectionPath,n=e.showCollectionDialog,r=e.windowId;n(t[t.length-1],t.slice(0,-1),r)}},{key:"selectManifest",value:function(e){var t=this.props,n=t.addWindow,r=t.collectionPath,o=t.manifestId,i=t.setWorkspaceAddVisibility,a=t.updateWindow,s=t.windowId;s?a(s,{canvasId:null,collectionPath:[].concat(hi(r),[o]),manifestId:e.id}):n({collectionPath:[].concat(hi(r),[o]),manifestId:e.id}),this.hideDialog(),i(!1)}},{key:"dialogContainer",value:function(){var e=this.props,t=e.containerId,n=e.windowId;return document.querySelector("#".concat(t," #").concat(n))}},{key:"placeholder",value:function(){var e=this.props.classes;return c.createElement(h.A,{className:e.dialog,onClose:this.hideDialog,open:!0,container:this.dialogContainer(),BackdropProps:this.backdropProps()},c.createElement(g.A,{id:"select-collection",disableTypography:!0},c.createElement(_r.A,{className:e.placeholder,variant:"text"})),c.createElement(Pe,null,c.createElement(_r.A,{className:e.placeholder,variant:"text"}),c.createElement(_r.A,{className:e.placeholder,variant:"text"})))}},{key:"backdropProps",value:function(){return{classes:{root:this.props.classes.dialog}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.collection,o=t.error,i=t.isMultipart,a=t.manifest,l=t.ready,u=t.t,d=this.state.filter;if(o)return null;if(!this.dialogContainer())return this.forceUpdate(),c.createElement(c.Fragment,null);if(!l)return this.placeholder();var f=a&&(0,ui.A)(a.getProperty("rights")||a.getProperty("license")),p=a&&(0,ui.A)(a.getRequiredStatement()).filter((function(e){return e.getValue()})).map((function(e){return{label:null,values:e.getValues()}})),m=a.getCollections(),y=d||(m.length>0?"collections":"manifests");return c.createElement(h.A,{className:n.dialog,onClose:this.hideDialog,container:this.dialogContainer(),BackdropProps:this.backdropProps(),open:!0},c.createElement(g.A,{id:"select-collection",disableTypography:!0},c.createElement(v.A,{component:"div",variant:"overline"},u(i?"multipartCollection":"collection")),c.createElement(v.A,{variant:"h3"},s.getUseableLabel(a))),c.createElement(Pe,{className:n.dialogContent},r&&c.createElement(w.A,{startIcon:c.createElement(ci.A,null),onClick:function(){return e.goToPreviousCollection()}},s.getUseableLabel(r)),c.createElement("div",{className:n.collectionMetadata},c.createElement(pi.A,{manifestId:a.id}),c.createElement(fi.A,{id:"select-collection-rights",label:u("attributionTitle")},p&&c.createElement(di.P,{labelValuePairs:p,defaultLabel:u("attribution")}),f&&f.length>0&&c.createElement(c.Fragment,null,c.createElement(v.A,{variant:"subtitle2",component:"dt"},u("rights")),f.map((function(e){return c.createElement(v.A,{variant:"body1",component:"dd",key:e},c.createElement(si.A,{target:"_blank",rel:"noopener noreferrer",href:e},e))}))))),c.createElement("div",{className:n.collectionFilter},a.getTotalCollections()>0&&c.createElement(li.A,{clickable:!0,color:"collections"===y?"primary":"default",onClick:function(){return e.setFilter("collections")},label:u("totalCollections",{count:a.getTotalCollections()})}),a.getTotalManifests()>0&&c.createElement(li.A,{clickable:!0,color:"manifests"===y?"primary":"default",onClick:function(){return e.setFilter("manifests")},label:u("totalManifests",{count:a.getTotalManifests()})})),"collections"===y&&c.createElement(Ee.A,null,m.map((function(t){return c.createElement(re.A,{key:t.id,onClick:function(){e.selectCollection(t)},className:n.collectionItem},s.getUseableLabel(t))}))),"manifests"===y&&c.createElement(Ee.A,null,a.getManifests().map((function(t){return c.createElement(re.A,{key:t.id,onClick:function(){e.selectManifest(t)},className:n.collectionItem},s.getUseableLabel(t))})))),c.createElement(b.A,null,c.createElement(w.A,{onClick:this.hideDialog},u("close"))))}}],r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],n&&gi(t.prototype,n),r&&gi(t,r),s}(c.Component);wi.defaultProps={collection:null,collectionPath:[],containerId:null,error:null,isMultipart:!1,ready:!1,windowId:null};var Ei={addWindow:Gt._U,hideCollectionDialog:Gt.Th,setWorkspaceAddVisibility:R.DW,showCollectionDialog:Gt.Az,updateWindow:Gt.uE},xi=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{collectionFilter:{padding:"16px",paddingTop:0},collectionItem:{whiteSpace:"normal"},collectionMetadata:{padding:"16px"},dark:{color:"#000000"},dialog:{position:"absolute !important"},dialogContent:{padding:e.spacing(1)},light:{color:e.palette.grey[400]},listitem:{"&:focus":{backgroundColor:e.palette.action.focus},"&:hover":{backgroundColor:e.palette.action.hover},cursor:"pointer"}}})),(0,o.Ng)((function(e,t){var n=t.windowId,r=(0,j.zk)(e,{windowId:n}),o=r.collectionPath,i=r.collectionManifestId,a=(0,j.c2)(e,{manifestId:i}),s=o&&o[o.length-1],l=s&&(0,j.c2)(e,{manifestId:s});return{collection:l&&(0,Ar.SG)(e,{manifestId:l.id}),collectionPath:o,containerId:(0,te.TW)(e),error:a&&a.error,isMultipart:(0,ai.pw)(e,{manifestId:i}).includes("multi-part"),manifest:a&&(0,Ar.SG)(e,{manifestId:i}),manifestId:i,open:e.workspace.collectionDialogOn,ready:a&&!!a.json,windowId:n}}),Ei),(0,l.h)("CollectionDialog"));const Oi=xi(wi);function Si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ai(e,t){return Ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ai(e,t)}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_i(e)}var Ci=(0,c.lazy)((function(){return Promise.resolve().then(n.bind(n,43770))})),Ti=(0,c.lazy)((function(){return Promise.resolve().then(n.bind(n,48465))})),ki=(0,c.lazy)((function(){return Promise.resolve().then(n.bind(n,48628))})),Pi=(0,c.lazy)((function(){return Promise.resolve().then(n.bind(n,5231))})),Ii=(0,c.lazy)((function(){return Promise.resolve().then(n.bind(n,94412))}));Ti.displayName="GalleryView",ki.displayName="SelectCollection",Pi.displayName="WindowViewer";var Ri=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ai(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_i(r);if(o){var n=_i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"renderViewer",value:function(){var e=this.props,t=e.audioResources,n=e.isCollection,r=e.isFetching,o=e.videoResources,i=e.view,a=e.windowId;return n?c.createElement(c.Fragment,null,c.createElement(ki,{windowId:a})):!1===r?"gallery"===i?c.createElement(Ti,{windowId:a}):o.length>0?c.createElement(Ii,{windowId:a}):t.length>0?c.createElement(Ci,{windowId:a}):c.createElement(Pi,{windowId:a}):null}},{key:"render",value:function(){var e=this.props,t=e.isCollectionDialogVisible,n=e.windowId,r=e.classes,o=e.children;return c.createElement("div",{className:d()((0,ze.A)("primary-window"),r.primaryWindow)},c.createElement(Eo,{windowId:n}),c.createElement(ii,{windowId:n,position:"left"}),t&&c.createElement(Oi,{windowId:n}),c.createElement(c.Suspense,{fallback:c.createElement("div",null)},o||this.renderViewer()))}}])&&Si(t.prototype,n),a}(c.Component);Ri.defaultProps={audioResources:[],children:void 0,isCollection:!1,isCollectionDialogVisible:!1,isFetching:!1,videoResources:[],view:void 0};var ji=(0,r.Zz)((0,s.A)({primaryWindow:{display:"flex",flex:1,position:"relative"}}),(0,o.Ng)((function(e,t){var n=t.windowId,r=(0,Ar.SG)(e,{windowId:n});return{audioResources:(0,Gr._K)(e,{windowId:n})||[],isCollection:r&&r.isCollection(),isCollectionDialogVisible:(0,j.zk)(e,{windowId:n}).collectionDialogOn,videoResources:(0,Gr.HS)(e,{windowId:n})||[]}}),null),(0,l.h)("PrimaryWindow"));const Di=ji(Ri);function Ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mi(e,t){return Mi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mi(e,t)}function Li(e){return Li=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Li(e)}var zi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mi(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Li(r);if(o){var n=Li(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.allowClose,n=e.allowWindowSideBar,r=e.ariaLabel,o=e.children,i=e.classes,a=e.label,s=e.removeWindow,l=e.t,u=e.windowId;return c.createElement(_n.A,{component:"section",elevation:1,id:u,className:d()(i.window,(0,ze.A)("placeholder-window")),"aria-label":a&&r?l("window",{label:a}):null},c.createElement(k.A,{position:"relative",color:"default"},c.createElement(P.A,{disableGutters:!0,className:d()(i.windowTopBarStyle,(0,ze.A)("window-top-bar")),variant:"dense"},n&&c.createElement($.A,{"aria-label":l("toggleWindowSideBar"),disabled:!0},c.createElement(Tn.A,null)),c.createElement(v.A,{variant:"h2",noWrap:!0,color:"inherit",className:i.title},a),t&&s&&c.createElement($.A,{"aria-label":l("closeWindow"),className:d()(i.button,(0,ze.A)("window-close")),onClick:s,TooltipProps:{tabIndex:r?"0":"-1"}},c.createElement(L.A,null)))),o)}}])&&Ni(t.prototype,n),a}(c.Component);function Wi(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 Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}zi.defaultProps={allowClose:!0,allowWindowSideBar:!0,ariaLabel:!0,children:null,classes:{},label:"",removeWindow:function(){},t:function(e){return e}};var Hi=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{button:{marginLeft:"auto"},title:Bi(Bi({},e.typography.h6),{},{flexGrow:1,paddingLeft:e.spacing(.5)}),window:{backgroundColor:e.palette.shades.dark,borderRadius:0,display:"flex",flexDirection:"column",height:"100%",minHeight:0,overflow:"hidden",width:"100%"},windowTopBarStyle:{backgroundColor:e.palette.shades.main,borderTop:"2px solid transparent",minHeight:32,paddingLeft:e.spacing(.5),paddingRight:e.spacing(.5)}}})),(0,o.Ng)((function(e,t){var n=t.windowId;return{allowClose:(0,qt.R2)(e,{windowId:n}).allowClose,allowWindowSideBar:(0,qt.R2)(e,{windowId:n}).allowWindowSideBar}}),(function(e,t){var n=t.windowId;return{removeWindow:function(){return e(Gt.lM(n))}}})),(0,l.h)("MinimalWindow"));const Vi=Hi(zi);var Ui=n(46346),Gi=n(95594),qi=n(32697),$i=n(22645);function Ki(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zi(e,t){return Zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zi(e,t)}function Xi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yi(e)}var Qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zi(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Yi(r);if(o){var n=Yi(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xi(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).onReceiveAccessTokenMessage=t.onReceiveAccessTokenMessage.bind(Xi(t)),t}return t=a,(n=[{key:"onReceiveAccessTokenMessage",value:function(e){var t=this.props,n=t.handleAccessTokenMessage,r=t.url;e.data&&e.data.messageId&&e.data.messageId===r&&n(e.data)}},{key:"render",value:function(){var e=this.props.url;return e?c.createElement($i.A,{attributes:{"aria-hidden":!0,height:1,src:"".concat(e,"?origin=").concat(window.origin,"&messageId=").concat(e),style:{visibility:"hidden"},width:1},handleReceiveMessage:this.onReceiveAccessTokenMessage}):c.createElement(c.Fragment,null)}}])&&Ki(t.prototype,n),a}(c.Component);function Ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ea(e,t){return ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ea(e,t)}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ta(e)}Qi.defaultProps={url:void 0};var na=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ea(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ta(r);if(o){var n=ta(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).released=void 0,t.window=null,t.checkIfWindowClosed=null,t}return t=a,(n=[{key:"componentDidMount",value:function(){this.openWindow()}},{key:"componentWillUnmount",value:function(){this.window&&this.window.close()}},{key:"onClose",value:function(){var e=this.props,t=e.onClose,n=e.url;this.released||(this.released=!0,clearInterval(this.checkIfWindowClosed),t(n))}},{key:"openWindow",value:function(){var e=this,t=this.props,n=t.depWindow,r=t.features,o=t.name,i=t.url;this.window=(n||window).open(i,o,r),this.released=!1,this.checkIfWindowClosed=setInterval((function(){e.window&&!e.window.closed||e.onClose()}),250)}},{key:"render",value:function(){return null}}])&&Ji(t.prototype,n),a}(c.Component);na.defaultProps={depWindow:void 0,features:void 0,name:void 0};var ra=n(19681),oa=n(69440),ia=n(42487),aa=n(28465);function sa(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 la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(n),!0).forEach((function(t){ca(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ca(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function da(e,t){return da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},da(e,t)}function fa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pa(e)}var ha=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&da(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=pa(r);if(o){var n=pa(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fa(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={open:!1},t.setOpen=t.setOpen.bind(fa(t)),t.onSubmit=t.onSubmit.bind(fa(t)),t}return t=a,(n=[{key:"onSubmit",value:function(){var e=this.props.onConfirm;this.setOpen(!1),e()}},{key:"setOpen",value:function(e){this.setState((function(t){return la(la({},t),{},{open:e})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.confirmButton,o=t.continueLabel,i=t.header,a=t.description,s=t.icon,l=t.label,u=t.t,d=t.ruleSet,f=t.hasLogoutService,p=t.status,h=t.ConfirmProps;if("ok"===p&&!f)return null;var m=this.state.open,g=c.createElement(w.A,Object.assign({onClick:this.onSubmit,className:n.buttonInvert,color:"secondary"},h),r||u("login"));return a||i?c.createElement(_n.A,{square:!0,elevation:4,color:"secondary",classes:{root:n.paper}},c.createElement(w.A,{fullWidth:!0,className:n.topBar,onClick:function(){return e.setOpen(!0)},component:"div",color:"inherit"},s||c.createElement(ia.A,{className:n.icon}),c.createElement(v.A,{className:n.label,component:"h3",variant:"body1",color:"inherit"},d?c.createElement(aa.A,{htmlString:l,ruleSet:d}):l),c.createElement($e.F,this.props),c.createElement("span",{className:n.fauxButton},!m&&c.createElement(v.A,{variant:"button",color:"inherit"},o||u("continue")))),c.createElement(oa.A,{in:m,onClose:function(){return e.setOpen(!1)}},c.createElement(v.A,{variant:"body1",color:"inherit",className:n.expanded},d?c.createElement(aa.A,{htmlString:i,ruleSet:d}):i,i&&a?": ":"",d?c.createElement(aa.A,{htmlString:a,ruleSet:d}):a),c.createElement(b.A,null,c.createElement(w.A,{onClick:function(){return e.setOpen(!1)},color:"inherit"},u("cancel")),g))):c.createElement(_n.A,{square:!0,elevation:4,color:"secondary",classes:{root:n.paper}},c.createElement("div",{className:n.topBar},s||c.createElement(ia.A,{className:n.icon}),c.createElement(v.A,{className:n.label,component:"h3",variant:"body1",color:"inherit"},d?c.createElement(aa.A,{htmlString:l,ruleSet:d}):l),c.createElement($e.F,this.props),g))}}])&&ua(t.prototype,n),a}(c.Component);ha.defaultProps={confirmButton:void 0,ConfirmProps:{},continueLabel:void 0,description:void 0,hasLogoutService:!0,header:void 0,icon:void 0,ruleSet:"iiif",status:void 0,t:function(e){return e}};const ma=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{buttonInvert:{"&:hover":{backgroundColor:(0,ra.fade)(e.palette.secondary.contrastText,1-e.palette.action.hoverOpacity)},backgroundColor:e.palette.secondary.contrastText,marginLeft:e.spacing(5),paddingBottom:0,paddingTop:0},expanded:{paddingLeft:e.spacing(),paddingRight:e.spacing()},failure:{backgroundColor:e.palette.error.dark},fauxButton:{marginLeft:e.spacing(2.5)},icon:{marginRight:e.spacing(1.5),verticalAlign:"text-bottom"},label:{lineHeight:2.25},paper:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText,cursor:"pointer"},topBar:{"&:hover":{backgroundColor:e.palette.secondary.main},alignItems:"center",display:"flex",justifyContent:"inherit",padding:e.spacing(1),textTransform:"none"}}})),(0,l.h)("WindowAuthenticationBar"))(ha);function ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function va(e,t){return va=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},va(e,t)}function ya(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ba(e)}var wa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&va(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ba(r);if(o){var n=ba(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ya(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).performLogout=t.performLogout.bind(ya(t)),t.onReceiveAccessTokenMessage=t.onReceiveAccessTokenMessage.bind(ya(t)),t}return t=a,(n=[{key:"onReceiveAccessTokenMessage",value:function(e){var t=this.props,n=t.authServiceId,r=t.accessTokenServiceId;(0,t.resolveAccessTokenRequest)(n,r,e)}},{key:"defaultAuthBarProps",value:function(){var e=this.props,t=e.authServiceId,n=e.windowId,r=e.status;return{authServiceId:t,hasLogoutService:!!e.logoutServiceId,status:r,windowId:n}}},{key:"performLogout",value:function(){var e=this.props,t=e.accessTokenServiceId,n=e.authServiceId,r=e.features,o=e.logoutServiceId,i=e.resetAuthenticationState;(0,e.openWindow)(o,void 0,r),i({authServiceId:n,tokenServiceId:t})}},{key:"renderLoggedIn",value:function(){var e=this.props,t=e.isInteractive,n=e.logoutConfirm,r=e.t;return t?c.createElement(ma,Object.assign({confirmButton:n||r("logout"),onConfirm:this.performLogout},this.defaultAuthBarProps())):null}},{key:"renderFailure",value:function(){var e=this.props,t=e.handleAuthInteraction,n=e.failureHeader,r=e.failureDescription,o=e.t,i=e.authServiceId,a=e.windowId;return c.createElement(ma,Object.assign({header:n,description:r,confirmButton:o("retry"),onConfirm:function(){return t(a,i)}},this.defaultAuthBarProps()))}},{key:"renderLoggingInCookie",value:function(){var e=this.props,t=e.accessTokenServiceId,n=e.authServiceId,r=e.resolveAuthenticationRequest,o=e.features;return c.createElement(c.Fragment,null,this.renderLogin(),c.createElement(na,{name:"IiifLoginSender",url:"".concat(n,"?origin=").concat(window.origin),features:o,onClose:function(){return r(n,t)}}))}},{key:"renderLoggingInToken",value:function(){var e=this.props.accessTokenServiceId;return c.createElement(c.Fragment,null,this.renderLogin(),c.createElement(Qi,{handleAccessTokenMessage:this.onReceiveAccessTokenMessage,url:e}))}},{key:"renderLogin",value:function(){var e=this.props,t=e.confirm,n=e.description,r=e.handleAuthInteraction,o=e.header,i=e.isInteractive,a=e.label,s=e.authServiceId,l=e.windowId;return i?c.createElement(ma,Object.assign({header:o,description:n,label:a,confirmButton:t,onConfirm:function(){return r(l,s)}},this.defaultAuthBarProps())):null}},{key:"render",value:function(){var e=this.props,t=e.authServiceId,n=e.status;return t?null===n?this.renderLogin():"cookie"===n?this.renderLoggingInCookie():"token"===n?this.renderLoggingInToken():"failed"===n?this.renderFailure():"ok"===n?this.renderLoggedIn():null:null}}])&&ga(t.prototype,n),a}(c.Component);wa.defaultProps={confirm:void 0,description:void 0,failureDescription:void 0,failureHeader:void 0,features:"centerscreen",header:void 0,isInteractive:!0,label:void 0,logoutConfirm:void 0,logoutServiceId:void 0,openWindow:window.open,status:null,t:function(e){return e}};var Ea={handleAuthInteraction:Gi.Bq,resetAuthenticationState:Gi.HN,resolveAccessTokenRequest:Gi.fw,resolveAuthenticationRequest:Gi._U},xa=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e,t){var n=t.windowId,r=(0,qi.wd)(e,{windowId:n})[0],o=r&&(Ui.Utils.getService(r,"http://iiif.io/api/auth/1/token")||Ui.Utils.getService(r,"http://iiif.io/api/auth/0/token")),i=r&&(Ui.Utils.getService(r,"http://iiif.io/api/auth/1/logout")||Ui.Utils.getService(r,"http://iiif.io/api/auth/0/logout")),a=(0,qi.xI)(e),s=r&&a[r.id],l=(0,qi.X8)(e),c=o&&l[o.id],u=null;s?s.isFetching?s.windowId===n&&(u="cookie"):c&&c.isFetching?s.windowId===n&&(u="token"):s.ok?u="ok":!1===s.ok&&(u="failed"):u=null;var d=(0,qi.Rf)(e),f=r&&r.getProfile(),p=d.some((function(e){return e.profile===f&&!(e.external||e.kiosk)}));return{accessTokenServiceId:o&&o.id,authServiceId:r&&r.id,confirm:r&&r.getConfirmLabel(),description:r&&r.getDescription(),failureDescription:r&&r.getFailureDescription(),failureHeader:r&&r.getFailureHeader(),header:r&&r.getHeader(),isInteractive:p,label:r&&r.getLabel()[0].value,logoutConfirm:i&&i.getLabel()[0]&&i.getLabel()[0].value,logoutServiceId:i&&i.id,profile:f,status:u}}),Ea),(0,l.h)("IIIFAuthentication"));const Oa=xa(wa);function Sa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Aa(e,t){return Aa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Aa(e,t)}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_a(e)}var Ca=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Aa(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_a(o);if(i){var n=_a(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={},t}return t=s,r=[{key:"getDerivedStateFromError",value:function(e){return{error:e,hasError:!0}}}],(n=[{key:"wrappedTopBar",value:function(){var e=this.props,t=e.windowId,n=e.workspaceType,r=e.windowDraggable,o=c.createElement("div",null,c.createElement(Ur,{windowId:t,windowDraggable:r}),c.createElement(Oa,{windowId:t}));return"mosaic"===n&&r?this.context.mosaicWindowActions.connectDragSource(o):o}},{key:"render",value:function(){var e=this.props,t=e.focusWindow,n=e.label,r=e.isFetching,o=e.maximized,i=e.sideBarOpen,a=e.view,s=e.windowId,l=e.classes,u=e.t,f=e.manifestError,p=this.state,h=p.error;return p.hasError?c.createElement(Vi,{windowId:s},c.createElement(qo,{error:h,windowId:s})):c.createElement(_n.A,{onFocus:t,component:"section",elevation:1,id:s,className:d()(l.window,(0,ze.A)("window"),o?l.maximized:null),"aria-label":u("window",{label:n})},this.wrappedTopBar(),f&&c.createElement(qo,{error:{stack:f},windowId:s}),c.createElement("div",{className:l.middle},c.createElement("div",{className:l.middleLeft},c.createElement("div",{className:l.primaryWindow},c.createElement(Di,{view:a,windowId:s,isFetching:r,sideBarOpen:i})),c.createElement("div",{className:l.companionAreaBottom},c.createElement(ii,{windowId:s,position:"bottom"}))),c.createElement("div",{className:l.companionAreaRight},c.createElement(ii,{windowId:s,position:"right"}),c.createElement(ii,{windowId:s,position:"far-right"}))),c.createElement(ii,{windowId:s,position:"far-bottom"}),c.createElement($e.F,this.props))}}])&&Sa(t.prototype,n),r&&Sa(t,r),s}(c.Component);Ca.contextType=Cn.MosaicWindowContext,Ca.defaultProps={classes:{},focusWindow:function(){},isFetching:!1,label:null,manifestError:null,maximized:!1,sideBarOpen:!1,view:void 0,windowDraggable:null,workspaceType:null};var Ta=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{companionAreaBottom:{display:"flex",flex:"0",flexBasis:"auto",minHeight:0},companionAreaRight:{display:"flex",flex:"0 1 auto",minHeight:0},maximized:{},middle:{display:"flex",flex:"1",flexDirection:"row",minHeight:0},middleLeft:{display:"flex",flex:"1",flexDirection:"column",minHeight:0},primaryWindow:{display:"flex",flex:"1",height:"300px",minHeight:0,position:"relative"},thumbnailArea:{backgroundColor:e.palette.shades.dark},thumbnailAreaBottom:{},thumbnailAreaRight:{minWidth:100},window:{"&$maximized":{left:0,position:"absolute",top:0,zIndex:e.zIndex.modal-1},backgroundColor:e.palette.shades.dark,borderRadius:0,display:"flex",flexDirection:"column",height:"100%",minHeight:0,overflow:"hidden",width:"100%"}}})),(0,o.Ng)((function(e,t){var n=t.windowId;return{isFetching:(0,Ar.YR)(e,{windowId:n}).isFetching,label:(0,Ar.aY)(e,{windowId:n}),manifestError:(0,Ar.WA)(e,{windowId:n}),maximized:((0,j.zk)(e,{windowId:n})||{}).maximized,sideBarOpen:((0,j.zk)(e,{windowId:n})||{}).sideBarOpen,thumbnailNavigationPosition:(0,kn.Ir)(e,{windowId:n}),view:(0,qt.i9)(e,{windowId:n}),window:(0,j.zk)(e,{windowId:n}),windowDraggable:(0,qt.kt)(e,{windowId:n}),workspaceType:(0,_.I3)(e)}}),(function(e,t){var n=t.windowId;return{focusWindow:function(){return e(Gt.hN(n))}}})),(0,l.h)("Window"));const ka=Ta(Ca);var Pa=n(1353),Ia=n(66245),Ra=n.n(Ia),ja=n(2404),Da=n.n(ja);function Na(e){var t=e.t,n=e.title,r=e.windowId;return c.createElement(Vi,{windowId:"".concat(r,"-preview"),label:t("previewWindowTitle",{title:n}),ariaLabel:!1})}function Ma(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 La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach((function(t){za(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function za(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Na.defaultProps={t:function(e){return e},title:""};var Wa=(0,r.Zz)((0,s.A)((function(e){return{preview:La({},e.typography.h4)}})),(0,i.C)(),(0,o.Ng)((function(e,t){var n=t.windowId;return{title:(0,Ar.aY)(e,{windowId:n})}}),null),(0,l.h)("MosaicRenderPreview"));const Ba=Wa(Na);var Fa=n(10328),Ha=n(78414),Va=n(27537),Ua=n.n(Va);function Ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var qa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layout=t}var t,n;return t=e,n=[{key:"pathToCorner",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ha.Corner.TOP_RIGHT;return(0,Ha.getPathToCorner)(this.layout,e)}},{key:"pathToParent",value:function(e){return(0,Ha.getNodeAtPath)(this.layout,Ua()(e))}},{key:"nodeAtPath",value:function(e){return(0,Ha.getNodeAtPath)(this.layout,e)}},{key:"addWindows",value:function(e){var t=this;e.forEach((function(n,r){var o,i,a=t.pathToCorner(),s=t.pathToParent(a),l=t.nodeAtPath(a),c=s?(0,Ha.getOtherDirection)(s.direction):"row";"row"===c?(o=l,i=e[r]):(o=e[r],i=l);var u={path:a,spec:{$set:{direction:c,first:o,second:i}}};t.layout=(0,Fa.updateTree)(t.layout,[u])}))}},{key:"removeWindows",value:function(e,t){var n=this,r=e.map((function(e){return(0,Fa.createRemoveUpdate)(n.layout,t[e])}));this.layout=(0,Fa.updateTree)(this.layout,r)}}],n&&Ga(t.prototype,n),e}();function $a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ka(e,t){return Ka=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ka(e,t)}function Za(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xa(e)}var Ya=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ka(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Xa(o);if(i){var n=Xa(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Za(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).tileRenderer=t.tileRenderer.bind(Za(t)),t.mosaicChange=t.mosaicChange.bind(Za(t)),t.determineWorkspaceLayout=t.determineWorkspaceLayout.bind(Za(t)),t.zeroStateView=c.createElement("div",null),t.windowPaths={},t.toolbarControls=[],t.additionalControls=[],t}return t=s,r=[{key:"renderPreview",value:function(e){return c.createElement("div",{className:"mosaic-preview","aria-hidden":!0},c.createElement(Ba,{windowId:e.windowId}))}}],(n=[{key:"componentDidMount",value:function(){var e=this.props.updateWorkspaceMosaicLayout,t=this.determineWorkspaceLayout();t&&e(t)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.windowIds,r=t.layout,o=t.updateWorkspaceMosaicLayout,i=e.windowIds;if(n.every((function(e){return i.includes(e)}))){if(!i.every((function(e){return n.includes(e)}))){if(0===n.length)return void o(null);var a=Ra()(i,n),s=new qa(r);s.removeWindows(a,this.windowPaths),o(s.layout)}}else{var l=this.determineWorkspaceLayout();Da()(l,r)||o(l)}}},{key:"bookkeepPath",value:function(e,t){this.windowPaths[e]=t}},{key:"determineWorkspaceLayout",value:function(){var e=this.props,t=e.windowIds,n=e.layout,r=(0,Pa.Lg)(n);if(!t.every((function(e){return r.includes(e)}))){if(r.length<2)return(0,Pa.fj)(t);var o=Ra()(t,r),i=new qa(n);return i.addWindows(o),i.layout}return r.every((function(e){return t.includes(e)}))?n:(0,Pa.fj)(t)}},{key:"tileRenderer",value:function(e,t){var n=this.props,r=n.windowIds,o=n.workspaceId;return r.includes(e)?(this.bookkeepPath(e,t),c.createElement(Pa.XF,{toolbarControls:this.toolbarControls,additionalControls:this.additionalControls,path:t,windowId:e,renderPreview:s.renderPreview},c.createElement(ka,{key:"".concat(e,"-").concat(o),windowId:e}))):null}},{key:"mosaicChange",value:function(e){(0,this.props.updateWorkspaceMosaicLayout)(e)}},{key:"render",value:function(){var e=this.props,t=e.layout,n=e.classes;return c.createElement(Pa.bQ,{renderTile:this.tileRenderer,initialValue:t||this.determineWorkspaceLayout(),onChange:this.mosaicChange,className:d()("mirador-mosaic",n.root),zeroStateView:this.zeroStateView})}}])&&$a(t.prototype,n),r&&$a(t,r),s}(c.Component);Ya.defaultProps={layout:void 0,windowIds:[]};function Qa(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 Ja(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var es={updateWorkspaceMosaicLayout:R.ZV},ts=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(n),!0).forEach((function(t){Ja(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({root:{"& .mosaic-preview":{boxShadow:"none"},"& .mosaic-tile":{boxShadow:"0 1px 3px 0 rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .2), 0 2px 1px -1px rgba(0, 0, 0, .2)"},"& .mosaic-window":{boxShadow:"none"},"& .mosaic-window-toolbar":{display:"none !important"}}},{"@global":{".mosaic":{height:"100%",width:"100%"},".mosaic, .mosaic > *":{boxSizing:"border-box"},".mosaic .mosaic-zero-state":{position:"absolute",top:6,right:6,bottom:6,left:6,width:"auto",height:"auto",zIndex:"1"},".mosaic-root":{position:"absolute",top:3,right:3,bottom:3,left:3},".mosaic-split":{position:"absolute",zIndex:"1",touchAction:"none"},".mosaic-split:hover":{background:"black"},".mosaic-split .mosaic-split-line":{position:"absolute"},".mosaic-split.-row":{marginLeft:-3,width:6,cursor:"ew-resize"},".mosaic-split.-row .mosaic-split-line":{top:"0",bottom:"0",left:3,right:3},".mosaic-split.-column":{marginTop:-3,height:6,cursor:"ns-resize"},".mosaic-split.-column .mosaic-split-line":{top:3,bottom:3,left:"0",right:"0"},".mosaic-tile":{position:"absolute",margin:3},".mosaic-tile > *":{height:"100%",width:"100%"},".mosaic-drop-target":{position:"relative"},".mosaic-drop-target.drop-target-hover .drop-target-container":{display:"block"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.left":{right:"calc(100% - 10px )"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.right":{left:"calc(100% - 10px )"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.bottom":{top:"calc(100% - 10px )"},".mosaic-drop-target.mosaic > .drop-target-container .drop-target.top":{bottom:"calc(100% - 10px )"},".mosaic-drop-target .drop-target-container":{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"none"},".mosaic-drop-target .drop-target-container.-dragging":{display:"block"},".mosaic-drop-target .drop-target-container .drop-target":{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.2)",border:"2px solid black",opacity:"0",zIndex:"5"},".mosaic-drop-target .drop-target-container .drop-target.left":{right:"calc(100% - 30% )"},".mosaic-drop-target .drop-target-container .drop-target.right":{left:"calc(100% - 30% )"},".mosaic-drop-target .drop-target-container .drop-target.bottom":{top:"calc(100% - 30% )"},".mosaic-drop-target .drop-target-container .drop-target.top":{bottom:"calc(100% - 30% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover":{opacity:"1"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.left":{right:"calc(100% - 50% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.right":{left:"calc(100% - 50% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.bottom":{top:"calc(100% - 50% )"},".mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.top":{bottom:"calc(100% - 50% )"},".mosaic-window, .mosaic-preview":{position:"relative",display:"flex",fallbacks:[{display:"-webkit-box"}],webkitBoxOrient:"vertical",webkitBoxDirection:"normal",flexDirection:"column",overflow:"hidden",boxShadow:"0 0 1px rgba(0, 0, 0, 0.2)"},".mosaic-window .mosaic-window-toolbar, .mosaic-preview .mosaic-window-toolbar":{zIndex:"4",display:"flex",fallbacks:[{display:"-webkit-box"}],webkitBoxPack:"justify",justifyContent:"space-between",webkitBoxAlign:"center",alignItems:"center",flexShrink:"0",height:30,background:"white",boxShadow:"0 1px 1px rgba(0, 0, 0, 0.2)"},".mosaic-window .mosaic-window-toolbar.draggable, .mosaic-preview .mosaic-window-toolbar.draggable":{cursor:"move"},".mosaic-window .mosaic-window-title, .mosaic-preview .mosaic-window-title":{paddingLeft:15,webkitBoxFlex:"1",flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",minHeight:18},".mosaic-window .mosaic-window-controls, .mosaic-preview .mosaic-window-controls":{display:"flex",fallbacks:[{display:"-webkit-box"}],height:"100%"},".mosaic-window .mosaic-window-controls .separator, .mosaic-preview .mosaic-window-controls .separator":{height:20,borderLeft:"1px solid black",margin:"5px 4px"},".mosaic-window .mosaic-window-body, .mosaic-preview .mosaic-window-body":{position:"relative",webkitBoxFlex:"1",flex:"1",height:"0",background:"white",zIndex:"1",overflow:"hidden"},".mosaic-window .mosaic-window-additional-actions-bar, .mosaic-preview .mosaic-window-additional-actions-bar":{position:"absolute",top:30,right:"0",bottom:"initial",left:"0",height:"0",overflow:"hidden",background:"white",webkitBoxPack:"end",justifyContent:"flex-end",display:"flex",fallbacks:[{display:"-webkit-box"}],zIndex:"3"},".mosaic-window .mosaic-window-additional-actions-bar .bp3-button, .mosaic-preview .mosaic-window-additional-actions-bar .bp3-button":{margin:"0"},".mosaic-window .mosaic-window-additional-actions-bar .bp3-button:after, .mosaic-preview .mosaic-window-additional-actions-bar .bp3-button:after":{display:"none"},".mosaic-window .mosaic-window-body-overlay, .mosaic-preview .mosaic-window-body-overlay":{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",opacity:"0",background:"white",display:"none",zIndex:"2"},".mosaic-window.additional-controls-open .mosaic-window-additional-actions-bar, .mosaic-preview.additional-controls-open .mosaic-window-additional-actions-bar":{height:30},".mosaic-window.additional-controls-open .mosaic-window-body-overlay, .mosaic-preview.additional-controls-open .mosaic-window-body-overlay":{display:"block"},".mosaic-window .mosaic-preview, .mosaic-preview .mosaic-preview":{height:"100%",width:"100%",position:"absolute",zIndex:"0",border:"1px solid black",maxHeight:400},".mosaic-window .mosaic-preview .mosaic-window-body, .mosaic-preview .mosaic-preview .mosaic-window-body":{display:"flex",fallbacks:[{display:"-webkit-box"}],webkitBoxOrient:"vertical",webkitBoxDirection:"normal",flexDirection:"column",webkitBoxAlign:"center",alignItems:"center",webkitBoxPack:"center",justifyContent:"center"},".mosaic-window .mosaic-preview h4, .mosaic-preview .mosaic-preview h4":{marginBottom:10},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.close-button:before":{content:"'Close'"},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.split-button:before":{content:"'Split'"},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.replace-button:before":{content:"'Replace'"},".mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.expand-button:before":{content:"'Expand'"}}});const ns=(0,r.Zz)((0,s.A)(ts),(0,o.Ng)((function(e){return{layout:(0,j.K4)(e).layout,windowIds:(0,j.K4)(e).windowIds,workspaceId:(0,j.K4)(e).id}}),es),(0,l.h)("WorkspaceMosaic"))(Ya);var rs=n(52375),os=n(77698),is=n(87960);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,r.key,r)}}function ss(e,t){return ss=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ss(e,t)}function ls(e){return ls=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ls(e)}var cs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ss(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ls(r);if(o){var n=ls(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.companionWindowDimensions,r=e.focused,o=e.layout,i=e.workspace,a=e.updateElasticWindowLayout,s=i.width/2,l=i.height/2;return c.createElement(os.p,{key:"".concat(o.windowId,"-").concat(i.id),size:{height:o.height+n.height,width:o.width+n.width},position:{x:o.x+s,y:o.y+l},bounds:"parent",onDragStop:function(e,t){a(o.windowId,{x:t.x-s,y:t.y-l})},onResize:function(e,t,r,i,c){a(o.windowId,{height:Number.parseInt(r.style.height,10)-n.height,width:Number.parseInt(r.style.width,10)-n.width,x:c.x-s,y:c.y-l})},dragHandleClassName:(0,ze.A)("window-top-bar"),className:r?t.focused:null},c.createElement(ka,{windowId:o.windowId}))}}],n&&as(t.prototype,n),a}(c.Component);cs.defaultProps={classes:{},companionWindowDimensions:{height:0,width:0},focused:!1};const us=cs;var ds=(0,r.Zz)((0,s.A)((function(e){return{focused:{zIndex:e.zIndex.modal-1}}})),(0,o.Ng)((function(e,t){var n=t.windowId;return{companionWindowDimensions:(0,kn.a4)(e,{windowId:n}),focused:(0,_.ar)(e,{windowId:n}),layout:(0,_.Q9)(e)[n],workspace:(0,j.K4)(e)}}),(function(e,t){return{updateElasticWindowLayout:function(t,n){e(rs.D(t,n))}}})));const fs=ds(us);function ps(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hs(e,t){return hs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hs(e,t)}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ms(e)}var gs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hs(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ms(r);if(o){var n=ms(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.workspace,r=e.elasticLayout,o=e.setWorkspaceViewportDimensions,i=e.setWorkspaceViewportPosition,a=n.viewportPosition,s=n.width/2,l=n.height/2;return c.createElement("div",{style:{height:"100%",position:"relative",width:"100%"}},c.createElement(is.A,{onResize:function(e){o(e)}}),c.createElement(os.p,{size:{height:n.height,width:n.width},position:{x:-1*a.x-s,y:-1*a.y-l},enableResizing:{bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},onDragStop:function(e,t){i({x:-1*t.x-s,y:-1*t.y-l})},cancel:".".concat((0,ze.A)("window")),className:d()(t.workspace,(0,ze.A)("workspace")),disableDragging:!n.draggingEnabled},Object.keys(r).map((function(e){return c.createElement(fs,{key:e,windowId:e})}))))}}],n&&ps(t.prototype,n),a}(c.Component);const vs=gs,ys=(0,r.Zz)((0,s.A)({workspace:{boxSizing:"border-box",margin:0,position:"absolute",transitionDuration:".7s","& .react-draggable-dragging":{transitionDuration:"unset"}}}),(0,o.Ng)((function(e){return{elasticLayout:(0,_.Q9)(e),workspace:(0,j.K4)(e)}}),(function(e,t){return{setWorkspaceViewportDimensions:function(t){e(R.Pi(t))},setWorkspaceViewportPosition:function(t){e(R.Dl(t))},updateElasticWindowLayout:function(t,n){e(rs.D(t,n))}}})),(0,l.h)("WorkspaceElastic"))(vs);var bs=n(53058),ws=n(72379),Es=n(9169),xs=n(54011),Os=n(50052),Ss=n(26206);function As(e,t){if(e){if("string"==typeof e)return _s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_s(e,t):void 0}}function _s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Cs=function(e,t,n){var r,o=n.onDrop;if(e.urls&&e.urls.forEach((function(e){var r=new URL(e),i=r.searchParams.get("manifest"),a=r.searchParams.get("canvas");i&&o({canvasId:a,manifestId:i},n,t)})),e.files){var i,a=e.files.filter((function(e){return"application/json"===e.type})).map((function(e){return new Promise((function(r,i){var a=new FileReader;a.addEventListener("load",(function(){var e=a.result,i=(0,xs.A)();e&&o({manifestId:i,manifestJson:e},n,t),r()})),a.readAsText(e)}))})),s=e.files.filter((function(e){return e.type.startsWith("image/")}));if(s.length>0){var l=(0,xs.A)(),c=s.map((function(e){return function(e){return new Promise((function(t,n){var r=new FileReader;r.addEventListener("load",(function(){var n=new Image;n.addEventListener("load",(function(){t({height:n.height,name:e.name,type:e.type,url:r.result,width:n.width})})),n.src=r.result})),r.readAsDataURL(e)}))}(e)}));i=Promise.all(c).then((function(e){var r={"@context":"http://iiif.io/api/presentation/3/context.json",id:l,items:e.map((function(e,t){var n=e.name,r=e.type,o=e.width,i=e.height,a=e.url;return{height:i,id:"".concat(l,"/canvas/").concat(t),items:[{id:"".concat(l,"/canvas/").concat(t,"/1"),items:[{body:{format:r,id:a,type:"Image"},height:i,id:"".concat(l,"/canvas/").concat(t,"/1/image"),motivation:"painting",target:"".concat(l,"/canvas/").concat(t,"/1"),type:"Annotation",width:o}],type:"AnnotationPage"}],label:n,type:"Canvas",width:o}})),label:e[0].name,type:"Manifest"},i=(0,xs.A)();r&&o({manifestId:i,manifestJson:r},n,t)}))}return Promise.all([].concat(function(e){if(Array.isArray(e))return _s(e)}(r=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||As(r)||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.")}(),[i]))}},Ts=function(e){var t,n,r=e.children,o=e.onDrop,i=(t=(0,Ss.H)({accept:[Os.URL,Os.FILE],collect:function(e){return{canDrop:e.canDrop(),isOver:e.isOver()}},drop:function(t,n){o&&Cs(t,n,e)}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||As(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=a.canDrop,l=a.isOver,u=i[1],d=s&&l;return c.createElement("div",{ref:u,onDrop:function(t){if(window.safari&&o&&t.dataTransfer&&t.dataTransfer.types.includes("Files")&&t.dataTransfer.types.includes("text/uri-list")){var n=t.dataTransfer.getData("text/uri-list");if(!n)return;Cs({urls:[n]},null,e)}},style:{height:"100%",width:"100%"}},r,c.createElement(bs.A,{open:d,style:{zIndex:9999}},c.createElement(ws.A,{style:{color:Es.A[400],fontSize:256}})))};function ks(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ps(e,t){return Ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ps(e,t)}function Is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rs(e){return Rs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rs(e)}var js=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ps(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Rs(r);if(o){var n=Rs(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Is(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleDrop=t.handleDrop.bind(Is(t)),t}return t=a,n=[{key:"handleDrop",value:function(e,t,n){var r=e.canvasId,o=e.manifestId,i=e.manifestJson,a=this.props,s=a.addWindow;a.allowNewWindows&&s({canvasId:r,manifest:i,manifestId:o})}},{key:"workspaceByType",value:function(){var e=this.props,t=e.workspaceId,n=e.workspaceType,r=e.windowIds;if(this.maximizedWindows())return this.maximizedWindows();if(0===r.length)return this.zeroWindows();switch(n){case"elastic":return c.createElement(ys,null);case"mosaic":return c.createElement(ns,null);default:return r.map((function(e){return c.createElement(ka,{key:"".concat(e,"-").concat(t),windowId:e})}))}}},{key:"zeroWindows",value:function(){var e=this.props.t;return c.createElement(An.A,{alignItems:"center",container:!0,style:{height:"100%"}},c.createElement(An.A,{xs:12,item:!0},c.createElement(v.A,{variant:"h1",component:"div",align:"center"},e("welcome"))))}},{key:"maximizedWindows",value:function(){var e=this.props,t=e.maximizedWindowIds,n=e.workspaceId;return t.length>0&&t.map((function(e){return c.createElement(ka,{key:"".concat(e,"-").concat(n),windowId:e,className:d()((0,ze.A)("workspace-maximized-window"))})}))}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.isWorkspaceControlPanelVisible,r=e.t;return c.createElement(Ts,{onDrop:this.handleDrop},c.createElement("div",{className:d()((0,ze.A)("workspace-viewport"),n&&(0,ze.A)("workspace-with-control-panel"),n&&t.workspaceWithControlPanel,t.workspaceViewport)},c.createElement(v.A,{variant:"srOnly",component:"h1"},r("miradorViewer")),this.workspaceByType()))}}],n&&ks(t.prototype,n),a}(c.Component);js.defaultProps={addWindow:function(){},allowNewWindows:!0,maximizedWindowIds:[],windowIds:[]};var Ds={addWindow:Gt._U};const Ns=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{workspaceViewport:{bottom:0,left:0,margin:0,overflow:"hidden",position:"absolute",right:0,top:0},workspaceWithControlPanel:{paddingTop:74},"@media (min-width: 600px)":{workspaceWithControlPanel:{paddingLeft:68,paddingTop:0}}}})),(0,o.Ng)((function(e){return{allowNewWindows:(0,te.zj)(e).workspace.allowNewWindows,isWorkspaceControlPanelVisible:(0,te.zj)(e).workspaceControlPanel.enabled,maximizedWindowIds:(0,qt.Eu)(e),windowIds:(0,j.rG)(e),workspaceId:(0,j.K4)(e).id,workspaceType:(0,_.I3)(e)}}),Ds),(0,l.h)("Workspace"))(js);var Ms=n(33669),Ls=n(73486);function zs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ws(e,t){return Ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ws(e,t)}function Bs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fs(e){return Fs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fs(e)}var Hs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ws(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Fs(r);if(o){var n=Fs(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bs(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={formValue:""},t.formSubmit=t.formSubmit.bind(Bs(t)),t.handleCancel=t.handleCancel.bind(Bs(t)),t.handleInputChange=t.handleInputChange.bind(Bs(t)),t}return t=a,(n=[{key:"handleCancel",value:function(){(0,this.props.onCancel)(),this.setState({formValue:""})}},{key:"handleInputChange",value:function(e){e.preventDefault(),this.setState({formValue:e.target.value})}},{key:"formSubmit",value:function(e){var t=this.props,n=t.addResource,r=t.onSubmit,o=this.state.formValue;e.preventDefault(),r(),n(o),this.setState({formValue:""})}},{key:"render",value:function(){var e=this.state.formValue,t=this.props,n=t.addResourcesOpen,r=t.classes,o=t.onCancel,i=t.t;return n?c.createElement("form",{onSubmit:this.formSubmit},c.createElement(An.A,{container:!0,spacing:2},c.createElement(An.A,{item:!0,xs:12,sm:8,md:9},c.createElement(St.A,{autoFocus:!0,fullWidth:!0,value:e,id:"manifestURL",type:"text",onChange:this.handleInputChange,variant:"filled",label:i("addManifestUrl"),helperText:i("addManifestUrlHelp"),InputLabelProps:{shrink:!0},InputProps:{className:r.input}})),c.createElement(An.A,{item:!0,xs:12,sm:4,md:3,className:r.buttons},o&&c.createElement(w.A,{onClick:this.handleCancel},i("cancel")),c.createElement(w.A,{id:"fetchBtn",type:"submit",variant:"contained",color:"primary"},i("fetchManifest"))))):null}}])&&zs(t.prototype,n),a}(c.Component);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 Us(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){Gs(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}function Gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Hs.defaultProps={classes:{},onCancel:null,onSubmit:function(){},t:function(e){return e}};var qs={addResource:Ms.M};const $s=(0,r.Zz)((0,s.A)((function(e){return{buttons:Gs({textAlign:"right"},e.breakpoints.up("sm"),{textAlign:"inherit"}),input:Us({},e.typography.body1)}})),(0,i.C)(),(0,o.Ng)(null,qs),(0,l.h)("ManifestForm"))(Hs);var Ks=n(35485),Zs=n(50384),Xs=n(17688),Ys=n(12273);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,r.key,r)}}function Js(e,t){return Js=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Js(e,t)}function el(e){return el=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},el(e)}var tl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Js(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=el(r);if(o){var n=el(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.manifestId,r=e.onDismissClick,o=e.onTryAgainClick,i=e.t;return c.createElement(An.A,{container:!0},c.createElement(An.A,{container:!0},c.createElement(An.A,{container:!0,item:!0,xs:12,sm:6},c.createElement(An.A,{item:!0,xs:4,sm:3},c.createElement(An.A,{container:!0,justify:"center"},c.createElement(Cr.A,{className:t.errorIcon}))),c.createElement(An.A,{item:!0,xs:8,sm:9},c.createElement(v.A,null,i("manifestError")),c.createElement(v.A,{className:t.manifestIdText},n)))),c.createElement(An.A,{container:!0},c.createElement(An.A,{container:!0,item:!0,xs:12,sm:6,justify:"flex-end"},c.createElement(An.A,{item:!0},c.createElement(w.A,{onClick:function(){r(n)}},i("dismiss")),c.createElement(w.A,{onClick:function(){o(n)}},i("tryAgain"))))))}}])&&Qs(t.prototype,n),a}(c.Component),nl={onDismissClick:Ms.l,onTryAgainClick:Ks.Cj};const rl=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{errorIcon:{color:e.palette.error.main,height:"2rem",width:"2rem"},manifestIdText:{wordBreak:"break-all"}}})),(0,o.Ng)(null,nl),(0,l.h)("ManifestListItemError"))(tl);function ol(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function il(e,t){return il=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},il(e,t)}function al(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sl(e){return sl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sl(e)}var ll=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&il(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=sl(r);if(o){var n=sl(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return al(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleOpenButtonClick=t.handleOpenButtonClick.bind(al(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.fetchManifest,n=e.manifestId,r=e.ready,o=e.isFetching,i=e.error,a=e.provider;r||i||o||"file"===a||t(n)}},{key:"handleOpenButtonClick",value:function(){var e=this.props,t=e.addWindow,n=e.handleClose;t({manifestId:e.manifestId}),n()}},{key:"render",value:function(){var e=this.props,t=e.active,n=e.buttonRef,r=e.manifestId,o=e.ready,i=e.title,a=e.thumbnail,s=e.manifestLogo,l=e.size,u=e.classes,d=e.provider,f=e.t,p=e.error,h=e.isCollection,m=e.isMultipart,g=c.createElement(An.A,{container:!0,className:(0,ze.A)("manifest-list-item"),spacing:2},c.createElement(An.A,{item:!0,xs:3,sm:2},c.createElement(_r.A,{className:u.placeholder,variant:"rect",height:80,width:120})),c.createElement(An.A,{item:!0,xs:9,sm:6},c.createElement(_r.A,{className:u.placeholder,variant:"text"})),c.createElement(An.A,{item:!0,xs:8,sm:2},c.createElement(_r.A,{className:u.placeholder,variant:"text"}),c.createElement(_r.A,{className:u.placeholder,variant:"text"})),c.createElement(An.A,{item:!0,xs:4,sm:2},c.createElement(_r.A,{className:u.placeholder,variant:"rect",height:60,width:60})));return p?c.createElement(Zs.A,{divider:!0,className:u.root,"data-manifestid":r},c.createElement(rl,{manifestId:r})):c.createElement(Zs.A,{divider:!0,className:[u.root,t?u.active:""].join(" "),"data-manifestid":r},o?c.createElement(An.A,{container:!0,className:(0,ze.A)("manifest-list-item"),spacing:2},c.createElement(An.A,{item:!0,xs:12,sm:6,className:u.buttonGrid},c.createElement(Xs.A,{ref:n,className:(0,ze.A)("manifest-list-item-title"),style:{width:"100%"},onClick:this.handleOpenButtonClick},c.createElement(An.A,{container:!0,spacing:2,className:u.label,component:"span"},c.createElement(An.A,{item:!0,xs:4,sm:3,component:"span"},a?c.createElement(Ys.Img,{className:[u.thumbnail,(0,ze.A)("manifest-list-item-thumb")].join(" "),src:[a],alt:"",height:"80",unloader:c.createElement(_r.A,{variant:"rect",animation:!1,className:u.placeholder,height:80,width:120})}):c.createElement(_r.A,{className:u.placeholder,variant:"rect",height:80,width:120})),c.createElement(An.A,{item:!0,xs:8,sm:9,component:"span"},h&&c.createElement(v.A,{component:"div",variant:"overline"},f(m?"multipartCollection":"collection")),c.createElement(v.A,{component:"span",variant:"h6"},i||r))))),c.createElement(An.A,{item:!0,xs:8,sm:4},c.createElement(v.A,{className:(0,ze.A)("manifest-list-item-provider")},d),c.createElement(v.A,null,f("numItems",{count:l,number:l}))),c.createElement(An.A,{item:!0,xs:4,sm:2},s&&c.createElement(Ys.Img,{src:[s],alt:"",role:"presentation",className:u.logo,unloader:c.createElement(_r.A,{variant:"rect",animation:!1,className:u.placeholder,height:60,width:60})}))):g)}}])&&ol(t.prototype,n),a}(c.Component);function cl(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 ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){dl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ll.defaultProps={active:!1,buttonRef:void 0,classes:{},error:null,handleClose:function(){},isCollection:!1,isFetching:!1,isMultipart:!1,manifestLogo:null,provider:null,ready:!1,size:0,t:function(e){return e},thumbnail:null,title:null};var fl={addWindow:Gt._U,fetchManifest:Ks.Cj},pl=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{active:{},buttonGrid:{},label:{textAlign:"left",textTransform:"initial"},logo:{height:"2.5rem",maxWidth:"100%",objectFit:"contain",paddingRight:8},placeholder:{backgroundColor:e.palette.grey[300]},root:ul(ul({},e.mixins.gutters()),{},{"&$active":{borderLeft:"4px solid ".concat(e.palette.primary.main)},"&:hover,&:focus-within":{"&$active":{borderLeft:"4px solid ".concat(e.palette.primary.main)},backgroundColor:e.palette.action.hover,borderLeft:"4px solid ".concat(e.palette.action.hover)},borderLeft:"4px solid transparent"}),thumbnail:{maxWidth:"100%",objectFit:"contain"}}})),(0,o.Ng)((function(e,t){var n=t.manifestId,r=t.provider,o=(0,j.c2)(e,{manifestId:n})||{},i=(0,Ar.SG)(e,{manifestId:n}),a=(i||{isCollection:function(){return!1}}).isCollection(),s=a?i.getTotalItems():(0,Gr.P)(e,{manifestId:n}).length;return{active:(0,j.p3)(e).includes(n),error:o.error,isCollection:a,isFetching:o.isFetching,isMultipart:a&&(0,ai.pw)(e,{manifestId:n}).includes("multi-part"),manifestLogo:(0,Ar.nB)(e,{manifestId:n}),provider:r||(0,Ar.X6)(e,{manifestId:n}),ready:!!o.json,size:s,thumbnail:(0,Ar.yj)(e,{manifestId:n}),title:(0,Ar.aY)(e,{manifestId:n})}}),fl),(0,l.h)("ManifestListItem"));const hl=pl(ll);function ml(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gl(e,t){return gl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gl(e,t)}function vl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yl(e){return yl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yl(e)}var bl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gl(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=yl(r);if(o){var n=yl(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vl(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={addResourcesOpen:!1},t.ref=c.createRef(),t.onSubmit=t.onSubmit.bind(vl(t)),t.setAddResourcesVisibility=t.setAddResourcesVisibility.bind(vl(t)),t.handleDrop=t.handleDrop.bind(vl(t)),t}return t=a,n=[{key:"handleDrop",value:function(e,t,n){var r=e.manifestId,o=e.manifestJson,i=this.props.addResource;o?i(r,o,{provider:"file"}):i(r),this.scrollToTop()}},{key:"onSubmit",value:function(){this.setAddResourcesVisibility(!1),this.scrollToTop()}},{key:"setAddResourcesVisibility",value:function(e){this.setState({addResourcesOpen:e})}},{key:"scrollToTop",value:function(){this.ref.current&&this.ref.current.scrollTo({behavior:"smooth",left:0,top:0})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,i=o.catalog,a=o.setWorkspaceAddVisibility,s=o.t,l=o.classes,u=this.state.addResourcesOpen,f=i.map((function(e,t){return c.createElement(hl,Object.assign({},0===t&&{buttonRef:function(e){return e&&e.focus()}},{key:e.manifestId,manifestId:e.manifestId,provider:e.provider,handleClose:function(){return a(!1)}}))}));return c.createElement(Ts,{onDrop:this.handleDrop},c.createElement("div",{ref:this.ref,className:d()((0,ze.A)("workspace-add"),l.workspaceAdd)},i.length<1?c.createElement(An.A,{alignItems:"center",container:!0,style:{height:"100%"}},c.createElement(An.A,{xs:12,item:!0},c.createElement(v.A,{variant:"h1",component:"div",align:"center"},s("emptyResourceList")))):c.createElement(_n.A,{className:l.list},c.createElement(v.A,{variant:"srOnly",component:"h1"},s("miradorResources")),c.createElement($e.F,this.props),c.createElement(Ls.A,{disablePadding:!0},f)),c.createElement(D.A,{variant:"extended",disabled:u,className:d()(l.fab,(0,ze.A)("add-resource-button")),color:"primary",onClick:function(){return r.setAddResourcesVisibility(!0)}},c.createElement(M.A,null),s("addResource")),c.createElement(qr.Ay,{className:d()((e={},t=l.displayNone,n=!u,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),classes:{paper:l.paper},variant:"persistent",anchor:"bottom",open:u,ModalProps:{disablePortal:!0,hideBackdrop:!0,style:{position:"absolute"}}},c.createElement(_n.A,{className:l.form},c.createElement(k.A,{position:"absolute",color:"primary",onClick:function(){return r.setAddResourcesVisibility(!1)}},c.createElement(P.A,{variant:"dense"},c.createElement($.A,{"aria-label":s("closeAddResourceForm"),className:l.menuButton,color:"inherit"},c.createElement(he.A,null)),c.createElement(v.A,{variant:"h2",noWrap:!0,color:"inherit",className:l.typographyBody},s("addResource")))),c.createElement($s,{addResourcesOpen:u,onSubmit:this.onSubmit,onCancel:function(){return r.setAddResourcesVisibility(!1)}})))))}}],n&&ml(t.prototype,n),a}(c.Component);function wl(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 El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(n),!0).forEach((function(t){xl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}bl.defaultProps={addResource:function(){},catalog:[],classes:{},t:function(e){return e}};var Ol={addResource:Ms.M,setWorkspaceAddVisibility:R.DW};const Sl=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{displayNone:{display:"none"},fab:{bottom:e.spacing(2),position:"absolute",right:e.spacing(2)},form:El(El({},e.mixins.gutters()),{},{left:"0",marginTop:48,paddingBottom:e.spacing(2),paddingTop:e.spacing(2),right:"0"}),list:{margin:"16px"},menuButton:{marginLeft:-12,marginRight:20},paper:xl({borderTop:"0",left:"0"},e.breakpoints.up("sm"),{left:"65px"}),typographyBody:{flexGrow:1},workspaceAdd:{boxSizing:"border-box",height:"100%",overflowX:"hidden",overflowY:"auto",paddingTop:68},"@media (min-width: 600px)":{workspaceAdd:{paddingLeft:68,paddingTop:0}}}})),(0,o.Ng)((function(e){return{catalog:(0,j.O5)(e)}}),Ol),(0,l.h)("WorkspaceAdd"))(bl);var Al=function(e){return c.createElement("div",{className:(0,ze.A)("background-plugin-area"),style:{display:"none"}},c.createElement($e.F,e))};Al.defaultProps={PluginComponents:[]};const _l=(0,l.h)("BackgroundPluginArea")(Al);function Cl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tl(e,t){return Tl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tl(e,t)}function kl(e){return kl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kl(e)}var Pl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tl(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=kl(r);if(o){var n=kl(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.controlPanelVariant,r=e.isWorkspaceAddVisible,o=e.isWorkspaceControlPanelVisible,i=e.lang,a=e.t;return c.createElement(c.Fragment,null,o&&c.createElement(Sn,{variant:n}),c.createElement("main",{className:d()(t.viewer,(0,ze.A)("viewer")),lang:i,"aria-label":a("workspace")},r?c.createElement(Sl,null):c.createElement(Ns,null),c.createElement(T,null),c.createElement(_l,null)))}}])&&Cl(t.prototype,n),a}(c.Component);Pl.defaultProps={controlPanelVariant:void 0,isWorkspaceAddVisible:!1,lang:void 0};const Il=(0,r.Zz)((0,i.C)(),(0,s.A)((function(e){return{viewer:{background:("light"===e.palette.type?a.e$:a.a)(e.palette.shades.light,.1),bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0}}})),(0,o.Ng)((function(e){return{controlPanelVariant:(0,j.K4)(e).isWorkspaceAddVisible||(0,j.rG)(e).length>0?void 0:"wide",isWorkspaceAddVisible:(0,j.K4)(e).isWorkspaceAddVisible,isWorkspaceControlPanelVisible:(0,te.zj)(e).workspaceControlPanel.enabled,lang:(0,te.zj)(e).language}})),(0,l.h)("WorkspaceArea"))(Pl)},68055:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96540).createContext()},41733:(e,t,n)=>{"use strict";n.d(t,{h:()=>f});var r=n(96540),o=n(49747),i=n.n(o),a=n(62193),s=n.n(a),l=n(68055);function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=i()((function(e,t){function n(n,o){var i=(0,r.useContext)(l.A),a=u(u({},n),o?{ref:o}:{}),c=(i||{})[e];if(s()(c)||s()(c.wrap)&&s()(c.add))return r.createElement(t,a);var d=(c.add||[]).map((function(e){return e.component})),f=r.createElement(t,Object.assign({},a,{PluginComponents:d}));return s()(c.wrap)?f:c.wrap.slice().reverse().reduce((function(e,n){var o=n.component;return r.createElement(o,Object.assign({targetProps:a},a,{PluginComponents:d,TargetComponent:t}),e)}),r.createElement(t,a))}var o=r.forwardRef(n);return o.displayName="WithPlugins(".concat(e,")"),o}))},40387:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(35970),o=n.n(r),i=n(83673),a=n.n(i),s=n(54011);function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resource=t}var t,n;return t=e,(n=[{key:"isOnlyTag",value:function(){return 1===this.motivations.length&&"oa:tagging"===this.motivations[0]}},{key:"id",get:function(){return this._id=this._id||this.resource["@id"]||this.resources[0]&&this.resources[0]["@id"]||(0,s.A)(),this._id}},{key:"targetId",get:function(){var e=this.on[0];switch(typeof e){case"string":return e.replace(/#?xywh=(.*)$/,"");case"object":return e.full.replace(/#?xywh=(.*)$/,"");default:return null}}},{key:"motivations",get:function(){return o()(a()(new Array(this.resource.motivation)))}},{key:"resources",get:function(){return o()(a()(new Array(this.resource.resource)))}},{key:"on",get:function(){return o()(a()(new Array(this.resource.on)))}},{key:"tags",get:function(){return this.isOnlyTag()?this.resources.map((function(e){return e.chars})):this.resources.filter((function(e){return"oa:Tag"===e["@type"]})).map((function(e){return e.chars}))}},{key:"chars",get:function(){return this.resources.filter((function(e){return"oa:Tag"!==e["@type"]})).map((function(e){return e.chars})).join(" ")}},{key:"selector",get:function(){var e=this.on[0];switch(typeof e){case"string":return e;case"object":return"oa:Choice"===e.selector["@type"]?e.selector.default:e.selector;default:return null}}},{key:"svgSelector",get:function(){var e=this.on[0];switch(typeof e){case"string":default:return null;case"object":return e.selector&&e.selector.item&&"oa:SvgSelector"===e.selector.item["@type"]?e.selector.item:null}}},{key:"fragmentSelector",get:function(){var e,t=this.selector;switch(typeof t){case"string":e=t.match(/xywh=(.*)$/);break;case"object":e=t.value.match(/xywh=(.*)$/);break;default:return null}return e&&e[1].split(",").map((function(e){return parseInt(e,10)}))}}])&&l(t.prototype,n),e}();function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=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.json=t,this.target=n}var t,n;return t=e,(n=[{key:"id",get:function(){return this.json["@id"]}},{key:"present",value:function(){return this.resources&&this.resources.length>0}},{key:"resources",get:function(){var e=this;return this._resources=this._resources||(e.json&&e.json.resources?o()([e.json.resources]).map((function(e){return new c(e)})):[]),this._resources}}])&&u(t.prototype,n),e}()},75652:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(15972),o=n.n(r),i=n(45196);function a(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(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 u(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||d(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 d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(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 p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left-to-right";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvases=t.map((function(e){return new i.default(e)})),this.layers=n,this.viewingDirection=r,this._canvasDimensions=null}var t,n;return t=e,(n=[{key:"canvasIds",get:function(){return this.canvases.map((function(e){return e.id}))}},{key:"canvasDimensions",get:function(){if(this._canvasDimensions)return this._canvasDimensions;var e=u(this.canvasDirection,2),t=e[0],n=e[1],r=0===n?Math.min.apply(Math,c(this.canvases.map((function(e){return e.getHeight()})))):Math.min.apply(Math,c(this.canvases.map((function(e){return e.getWidth()})))),o=0,i=0,a=this.canvases.reduce((function(e,a){var s=0,l=0;return isNaN(a.aspectRatio)||(0===n?(s=r,l=Math.floor(r*a.aspectRatio)):(l=r,s=Math.floor(r*(1/a.aspectRatio)))),e.push({canvas:a,height:s,width:l,x:o,y:i}),o+=t*l,i+=n*s,e}),[]),l=0===n?r:Math.abs(i),d=0===t?r:Math.abs(o);return this._canvasDimensions=a.reduce((function(e,r){return e.push(s(s({},r),{},{x:-1===t?r.x+d-r.width:r.x,y:-1===n?r.y+l-r.height:r.y})),e}),[]),this._canvasDimensions}},{key:"contentResourceToWorldCoordinates",value:function(e){var t=this.canvases.findIndex((function(t){return t.imageResources.find((function(t){return t.id===e.id}))})),n=this.canvases[t];if(!n)return[];var r=u(this.canvasToWorldCoordinates(n.id),4),o=r[0],i=r[1],a=r[2],s=r[3],l=n.onFragment(e.id);return l?[o+l[0],i+l[1],l[2],l[3]]:[o,i,a,s]}},{key:"canvasToWorldCoordinates",value:function(e){var t=this.canvasDimensions.find((function(t){return t.canvas.id===e}));return[t.x,t.y,t.width,t.height]}},{key:"canvasDirection",get:function(){switch(this.viewingDirection){case"left-to-right":default:return[1,0];case"right-to-left":return[-1,0];case"top-to-bottom":return[0,1];case"bottom-to-top":return[0,-1]}}},{key:"contentResource",value:function(e){var t=this.canvases.find((function(t){return t.imageServiceIds.some((function(t){return o()(t,{stripAuthentication:!1})===o()(e,{stripAuthentication:!1})}))}));if(t)return t.imageResources.find((function(t){return o()(t.getServices()[0].id,{stripAuthentication:!1})===o()(e,{stripAuthentication:!1})}))}},{key:"getLayerMetadata",value:function(e){if(this.layers){var t=this.canvases.find((function(t){return t.imageResources.find((function(t){return t.id===e.id}))}));if(t){var n=t.imageResources.findIndex((function(t){return t.id===e.id})),r=this.layers[t.canvas.id],o=r&&r[e.id];return s({index:n,opacity:1,total:t.imageResources.length,visibility:!0},o)}}}},{key:"layerOpacityOfImageResource",value:function(e){var t=this.getLayerMetadata(e);return t?t.visibility?t.opacity:0:1}},{key:"layerIndexOfImageResource",value:function(e){var t=this.getLayerMetadata(e);if(t)return t.total-t.index-1}},{key:"offsetByCanvas",value:function(e){var t=this.canvasToWorldCoordinates(e);return{x:t[0],y:t[1]}}},{key:"worldBounds",value:function(){return[0,0,Math.max.apply(Math,c(this.canvasDimensions.map((function(e){return e.x+e.width})))),Math.max.apply(Math,c(this.canvasDimensions.map((function(e){return e.y+e.height}))))]}},{key:"canvasAtPoint",value:function(e){var t=this.canvasDimensions.find((function(t){return t.x<=e.x&&e.x<=t.x+t.width&&t.y<=e.y&&e.y<=t.y+t.height}));return t&&t.canvas}}])&&p(t.prototype,n),e}()},7334:(e,t,n)=>{"use strict";n.d(t,{A:()=>Uc});var r=n(68238),o=n(61225),i=n(26524),a=n(32150),s=n(41733),l=n(12664),c=n(96540),u=n(3148);let d;d="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let f=null,p=null;const h=d.clearTimeout,m=d.setTimeout,g=d.cancelAnimationFrame||d.mozCancelAnimationFrame||d.webkitCancelAnimationFrame,v=d.requestAnimationFrame||d.mozRequestAnimationFrame||d.webkitRequestAnimationFrame;null==g||null==v?(f=h,p=function(e){return m(e,20)}):(f=function([e,t]){g(e),h(t)},p=function(e){const t=v((function(){h(n),e()})),n=m((function(){g(t),e()}),20);return[t,n]});class y extends c.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&f(this.__resizeRAF__),this.__resizeRAF__=p((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=d.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:s,style:l={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return r||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),i&&(y=!1),(0,c.createElement)(u,{ref:this._setRef,style:{...g,...l},...d},!y&&e(v))}}var b=n(58168),w=n(9417),E=n(77387),x=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function O(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||x(r)&&x(o)))return!1;var r,o;return!0}const S=function(e,t){var n;void 0===t&&(t=O);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};var A="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function _(e){cancelAnimationFrame(e.id)}var C=-1;function T(e){if(void 0===e&&(e=!1),-1===C||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),C=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return C}var k=null;function P(e){if(void 0===e&&(e=!1),null===k||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?k="positive-descending":(t.scrollLeft=1,k=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),k}return k}var I=function(e,t){return e};function R(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,(0,w.A)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,w.A)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=S((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=S((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=S((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(P()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&_(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=function(e,t){var n=A(),r={id:requestAnimationFrame((function o(){A()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,E.A)(t,e),t.getDerivedStateFromProps=function(e,t){return j(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?T():0:l.scrollHeight>l.clientHeight?T():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(P()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&_(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?I:f,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,w=e.width,E=this.state.isScrolling,x="horizontal"===o||"horizontal"===h,O=x?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),A=S[0],_=S[1],C=[];if(u>0)for(var T=A;T<=_;T++)C.push((0,c.createElement)(t,{data:d,key:p(T,d),index:T,isScrolling:y?E:void 0,style:this._getItemStyle(T)}));var k=r(this.props,this._instanceProps);return(0,c.createElement)(m||g||"div",{className:n,onScroll:O,ref:this._outerRefSetter,style:(0,b.A)({position:"relative",height:i,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},(0,c.createElement)(s||l||"div",{children:C,ref:a,style:{height:x?"100%":k,pointerEvents:E?"none":void 0,width:x?k:"100%"}}))},f._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(c.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var j=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},D=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},N=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=D(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},M=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},L=R({getItemOffset:function(e,t,n){return D(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:M,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=D(e,t,o),f=M(e,o),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?N(e,t,o,0,n):function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&D(e,n,t).offset<r;)n+=i,i*=2;return N(e,t,Math.min(n,o-1),Math.floor(n/2),r)}(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=D(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=D(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}}),z=n(46942),W=n.n(z),B=n(75652),F=n(86078),H=n(46946),V=n(93290),U=n(35366);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t){return Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Z(e,t)}function X(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}var Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Y(r);if(o){var n=Y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return X(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).setCanvas=t.setCanvas.bind(X(t)),t}return t=a,n=[{key:"setCanvas",value:function(e){(0,this.props.setCanvas)(e.currentTarget.dataset.canvasId)}},{key:"currentCanvasClass",value:function(e){var t=this.props.index;return e.includes(t)?"current-canvas-grouping":""}},{key:"render",value:function(){var e=this.props,t=e.index,n=e.style,r=e.data,o=e.classes,i=e.currentCanvasId,a=r.canvasGroupings,s=r.position,l=r.height,u=a[t];return c.createElement("div",{style:q(q({},n),{},{boxSizing:"content-box",height:Number.isInteger(n.height)?n.height-8:null,left:n.left+8,top:n.top+8,width:Number.isInteger(n.width)?n.width-8:null}),className:(0,U.A)("thumbnail-nav-container"),role:"gridcell","aria-colindex":t+1},c.createElement("div",{role:"button","data-canvas-id":u[0].id,"data-canvas-index":u[0].index,onKeyUp:this.setCanvas,onClick:this.setCanvas,tabIndex:-1,style:{height:"far-right"===s?"auto":"".concat(l-8,"px"),width:"far-bottom"===s?"auto":"".concat(n.width,"px")},className:W()((0,U.A)(["thumbnail-nav-canvas","thumbnail-nav-canvas-".concat(t),this.currentCanvasClass(u.map((function(e){return e.index})))]),o.canvas,$({},o.currentCanvas,u.map((function(e){return e.id})).includes(i)))},u.map((function(e,t){return c.createElement(V.A,{key:e.id,resource:e,labelled:!0,maxHeight:"far-right"===s?n.height-12:l-12,variant:"inside"})}))))}}],n&&K(t.prototype,n),a}(c.PureComponent),J=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{canvas:{"&$currentCanvas":{outline:"2px solid ".concat(e.palette.primary.main),outlineOffset:"3px"},"&:hover":{outline:"9px solid ".concat(e.palette.action.hover),outlineOffset:"-2px"},boxSizing:"border-box",color:e.palette.common.white,cursor:"pointer",display:"inline-block",outline:0,whiteSpace:"nowrap"},currentCanvas:{}}})),(0,o.Ng)((function(e,t){var n=t.data;return{currentCanvasId:((0,H.kR)(e,{windowId:n.windowId})||{}).id}}),(function(e,t){var n=t.data;return{setCanvas:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(l.h5.apply(F,[n.windowId].concat(r)))}}})),(0,s.h)("ThumbnailCanvasGrouping"));const ee=J(Q);function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t){return ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ne(e,t)}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ne(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=oe(r);if(o){var n=oe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return re(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).scrollbarSize=15,t.spacing=8,t.calculateScaledSize=t.calculateScaledSize.bind(re(t)),t.itemCount=t.itemCount.bind(re(t)),t.handleKeyUp=t.handleKeyUp.bind(re(t)),t.nextCanvas=t.nextCanvas.bind(re(t)),t.previousCanvas=t.previousCanvas.bind(re(t)),t.gridRef=c.createRef(),t}return t=a,n=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.canvasIndex,r=t.position,o=t.view;if(e.view!==o&&"off"!==r&&this.gridRef.current.resetAfterIndex(0),e.canvasIndex!==n){var i=n;"book"===o&&(i=Math.ceil(i/2)),this.gridRef.current.scrollToItem(i,"center")}}},{key:"handleKeyUp",value:function(e){var t="ArrowRight",n="ArrowLeft";switch("far-right"===this.props.position&&(t="ArrowDown",n="ArrowUp"),e.key){case t:this.nextCanvas();break;case n:this.previousCanvas()}}},{key:"calculateScaledSize",value:function(e){var t=this.props,n=t.thumbnailNavigation,r=t.canvasGroupings,o=t.position,i=r[e]||[],a=new B.A(i).worldBounds();if("far-right"===o){var s=Math.floor(this.calculatingWidth(i.length)*a[3]/a[2]);return Number.isInteger(s)?s+this.spacing:n.width+this.spacing}return 0===a[3]?n.width+this.spacing:Math.ceil((n.height-this.scrollbarSize-this.spacing-4)*a[2]/a[3])}},{key:"calculatingWidth",value:function(e){var t=this.props.thumbnailNavigation;return 1===e?t.width:2*t.width}},{key:"rightWidth",value:function(){var e=this.props,t=e.view,n=e.thumbnailNavigation;return"book"===t?2*n.width:n.width}},{key:"style",value:function(){var e=this.props,t=e.position,n=e.thumbnailNavigation;return"far-right"===t?{height:"100%",minHeight:0,width:"".concat(this.rightWidth()+this.scrollbarSize+this.spacing,"px")}:{height:"".concat(n.height,"px"),width:"100%"}}},{key:"areaHeight",value:function(e){var t=this.props,n=t.position,r=t.thumbnailNavigation;return"far-right"===n?e:r.height}},{key:"itemCount",value:function(){return this.props.canvasGroupings.length}},{key:"nextCanvas",value:function(){var e=this.props,t=e.hasNextCanvas,n=e.setNextCanvas;t&&n()}},{key:"previousCanvas",value:function(){var e=this.props,t=e.hasPreviousCanvas,n=e.setPreviousCanvas;t&&n()}},{key:"render",value:function(){var e=this,t=this.props,n=t.t,r=t.canvasGroupings,o=t.classes,i=t.position,a=t.thumbnailNavigation,s=t.viewingDirection,l=t.windowId;if("off"===i)return c.createElement(c.Fragment,null);var d="right-to-left"===s?"rtl":"ltr",f={canvasGroupings:r,height:a.height-this.spacing-this.scrollbarSize,position:i,windowId:l};return c.createElement(u.A,{className:W()((0,U.A)("thumb-navigation"),o.thumbNavigation),"aria-label":n("thumbnailNavigation"),square:!0,elevation:0,style:this.style(),tabIndex:0,onKeyUp:this.handleKeyUp,role:"grid"},c.createElement("div",{role:"row",style:{height:"100%",width:"100%"}},c.createElement(y,{defaultHeight:100,defaultWidth:400},(function(t){var n=t.height,r=t.width;return c.createElement(L,{direction:d,height:e.areaHeight(n),itemCount:e.itemCount(),itemSize:e.calculateScaledSize,width:r,layout:"far-bottom"===i?"horizontal":"vertical",itemData:f,ref:e.gridRef},ee)}))))}}],n&&te(t.prototype,n),a}(c.Component);ie.defaultProps={hasNextCanvas:!1,hasPreviousCanvas:!1,setNextCanvas:function(){},setPreviousCanvas:function(){},view:void 0,viewingDirection:""};var ae=n(38925),se=n(51636),le=n(65419),ce=n(90361),ue=n(17006),de=(0,r.Zz)((0,a.A)((function(e){return{thumbNavigation:{"&:focus":{boxShadow:0,outline:0}}}})),(0,i.C)(),(0,o.Ng)((function(e,t){var n=t.windowId;return{canvasGroupings:(0,H.tV)(e,{windowId:n}),canvasIndex:(0,ae.PB)(e,{windowId:n}),hasNextCanvas:!!(0,H.BL)(e,{windowId:n}),hasPreviousCanvas:!!(0,H.Nj)(e,{windowId:n}),position:(0,se.DS)(e,{companionWindowId:(0,le.zk)(e,{windowId:n}).thumbnailNavigationId}).position,thumbnailNavigation:(0,ce.zj)(e).thumbnailNavigation,view:(0,ue.i9)(e,{windowId:n}),viewingDirection:(0,ae.Kb)(e,{windowId:n})}}),(function(e,t){var n=t.windowId;return{setNextCanvas:function(){return e(l.OZ(n))},setPreviousCanvas:function(){return e(l.Kh(n))}}})),(0,s.h)("ThumbnailNavigation"));const fe=de(ie);var pe=n(74389),he=n(54392),me=n(52529),ge=n(38582),ve=n(10823),ye=n(80866);function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function we(e,t){return we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},we(e,t)}function Ee(e){return Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ee(e)}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&we(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ee(r);if(o){var n=Ee(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.displayAll,n=e.displayAllDisabled,r=e.t,o=e.toggleAnnotationDisplay;return c.createElement(ye.A,{"aria-label":r(t?"displayNoAnnotations":"highlightAllAnnotations"),onClick:o,disabled:n,size:"small"},t?c.createElement(ge.A,null):c.createElement(ve.A,null))}}])&&be(t.prototype,n),a}(c.Component),Oe=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e,t){var n=t.windowId;return{displayAll:(0,le.zk)(e,{windowId:n}).highlightAllAnnotations,displayAllDisabled:(0,pe.Y2)(e,{windowId:n}).length<2}}),(function(e,t){var n=t.windowId;return{toggleAnnotationDisplay:function(){e(me.ow(n))}}})),(0,s.h)("AnnotationSettings"));const Se=Oe(xe);var Ae=n(20053),_e=n(33615),Ce=n(19008),Te=n(84630),ke=n(77430),Pe=n(28465);function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t){return Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Re(e,t)}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},je(e)}var De=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Re(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=je(r);if(o){var n=je(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).scrollToRef=c.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){this.props.scrollTo&&this.scrollToElement()}},{key:"componentDidUpdate",value:function(e){var t=this.props.scrollTo;t&&e.scrollTo!==t&&this.scrollToElement()}},{key:"containerBoundingRect",value:function(){var e=this.props.containerRef;return e&&e.current&&e.current.domEl?e.current.domEl.getBoundingClientRect():{}}},{key:"scrollToBoundingRect",value:function(){return this.elementToScrollTo()?this.elementToScrollTo().getBoundingClientRect():{}}},{key:"elementToScrollTo",value:function(){return this.scrollToRef&&this.scrollToRef.current?this.scrollToRef.current:null}},{key:"scrollabelContainer",value:function(){var e=this.props.containerRef;return e&&e.current&&e.current.domEl?e.current.domEl.getElementsByClassName("mirador-scrollto-scrollable")[0]:null}},{key:"elementIsVisible",value:function(){var e=this.props.offsetTop;return!(this.scrollToBoundingRect().top<this.containerBoundingRect().top+e||this.scrollToBoundingRect().bottom>this.containerBoundingRect().bottom)}},{key:"scrollToElement",value:function(){var e=this.props,t=e.offsetTop;if(e.scrollTo&&this.elementToScrollTo()&&!this.elementIsVisible()&&this.scrollabelContainer()){var n=this.elementToScrollTo().offsetTop-this.containerBoundingRect().height/2+t;this.scrollabelContainer().scrollTo(0,n)}}},{key:"render",value:function(){var e=this.props,t=e.children;return e.scrollTo?c.createElement("div",{ref:this.scrollToRef},t):t}}])&&Ie(t.prototype,n),a}(c.Component);function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t){return Me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Me(e,t)}function Le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ze(e)}De.defaultProps={offsetTop:0};var We=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Me(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ze(r);if(o){var n=ze(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Le(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleClick=t.handleClick.bind(Le(t)),t.handleAnnotationHover=t.handleAnnotationHover.bind(Le(t)),t.handleAnnotationBlur=t.handleAnnotationBlur.bind(Le(t)),t}return t=a,n=[{key:"handleClick",value:function(e,t){var n=this.props,r=n.deselectAnnotation,o=n.selectAnnotation,i=n.selectedAnnotationId,a=n.windowId;i===t.id?r(a,t.id):o(a,t.id)}},{key:"handleAnnotationHover",value:function(e){var t=this.props;(0,t.hoverAnnotation)(t.windowId,[e.id])}},{key:"handleAnnotationBlur",value:function(){var e=this.props;(0,e.hoverAnnotation)(e.windowId,[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.annotations,r=t.classes,o=t.index,i=t.label,a=t.selectedAnnotationId,s=t.t,l=t.totalSize,u=t.listContainerComponent,d=t.htmlSanitizationRuleSet,f=t.hoveredAnnotationIds,p=t.containerRef;return 0===n.length?c.createElement(c.Fragment,null):c.createElement(c.Fragment,null,c.createElement(he.A,{className:r.sectionHeading,variant:"overline"},s("annotationCanvasLabel",{context:"".concat(o+1,"/").concat(l),label:i})),c.createElement(Ce.A,{autoFocusItem:!0,variant:"selectedMenu"},n.map((function(t){return c.createElement(De,{containerRef:p,key:"".concat(t.id,"-scroll"),offsetTop:96,scrollTo:a===t.id},c.createElement(Te.A,{button:!0,component:u,className:(0,Ae.default)(r.annotationListItem,(n={},o=r.hovered,i=f.includes(t.id),o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n)),key:t.id,annotationid:t.id,selected:a===t.id,onClick:function(n){return e.handleClick(n,t)},onFocus:function(){return e.handleAnnotationHover(t)},onBlur:e.handleAnnotationBlur,onMouseEnter:function(){return e.handleAnnotationHover(t)},onMouseLeave:e.handleAnnotationBlur},c.createElement(ke.A,{primaryTypographyProps:{variant:"body2"}},c.createElement(Pe.A,{ruleSet:d,htmlString:t.content}),c.createElement("div",null,t.tags.map((function(e){return c.createElement(_e.A,{size:"small",variant:"outlined",label:e,id:e,className:r.chip,key:e.toString()})}))))));var n,o,i}))))}}],n&&Ne(t.prototype,n),a}(c.Component);We.defaultProps={annotations:[],classes:{},containerRef:void 0,hoveredAnnotationIds:[],htmlSanitizationRuleSet:"iiif",listContainerComponent:"li",selectedAnnotationId:void 0};var Be={deselectAnnotation:me.PW,hoverAnnotation:me.GW,selectAnnotation:me.gN},Fe=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{annotationListItem:{"&$hovered":{backgroundColor:e.palette.action.hover},"&:hover,&:focus":{backgroundColor:e.palette.action.hover},borderBottom:"0.5px solid ".concat(e.palette.divider),cursor:"pointer",whiteSpace:"normal"},chip:{backgroundColor:e.palette.background.paper,marginRight:e.spacing(.5),marginTop:e.spacing(1)},hovered:{},sectionHeading:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),(0,o.Ng)((function(e,t){var n,r=t.canvasId,o=t.windowId;return{annotations:(n=(0,pe.Ni)(e,{canvasId:r,windowId:o}),n.map((function(e,t){return{content:e.chars,id:e.id,tags:e.tags,targetId:e.targetId}}))),htmlSanitizationRuleSet:(0,ce.zj)(e).annotations.htmlSanitizationRuleSet,label:(0,H.T2)(e,{canvasId:r,windowId:o}),selectedAnnotationId:(0,pe.e3)(e,{windowId:o})}}),Be),(0,s.h)("CanvasAnnotations"));const He=Fe(We);var Ve=n(18502);function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e,t){return Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ge(e,t)}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ge(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=qe(r);if(o){var n=qe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).containerRef=c.createRef(),t}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.annotationCount,r=t.classes,o=t.canvasIds,i=t.t,a=t.windowId,s=t.id;return c.createElement(Ve.A,{title:i("annotations"),paperClassName:(0,U.A)("window-sidebar-annotation-panel"),windowId:a,id:s,ref:this.containerRef,otherRef:this.containerRef,titleControls:c.createElement(Se,{windowId:a})},c.createElement("div",{className:r.section},c.createElement(he.A,{component:"p",variant:"subtitle2"},i("showingNumAnnotations",{count:n,number:n}))),o.map((function(t,n){return c.createElement(He,{canvasId:t,containerRef:e.containerRef,key:t,index:n,totalSize:o.length,windowId:a})})))}}])&&Ue(t.prototype,n),a}(c.Component);$e.defaultProps={canvasIds:[],t:function(e){return e}};var Ke=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{section:{borderBottom:".5px solid ".concat(e.palette.section_divider),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),(0,o.Ng)((function(e,t){var n=t.windowId;return{annotationCount:(0,pe.Y2)(e,{windowId:n}).length,canvasIds:(0,H.tv)(e,{windowId:n})}}),null),(0,s.h)("WindowSideBarAnnotationsPanel"));const Ze=Ke($e);var Xe=n(20124),Ye=n(73893),Qe=n(65298),Je=n(22735),et=n(13377);function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nt(e,t){return nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nt(e,t)}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}var ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=rt(r);if(o){var n=rt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasDescription,n=e.canvasLabel,r=e.canvasMetadata,o=e.id,i=e.index,a=e.t,s=e.totalSize;return c.createElement(Qe.A,{id:"".concat(o,"-currentItem-").concat(i),label:a("currentItem",{context:"".concat(i+1,"/").concat(s)})},n&&c.createElement(he.A,{"aria-labelledby":"".concat(o,"-currentItem-").concat(i," ").concat(o,"-currentItem-").concat(i,"-heading"),id:"".concat(o,"-currentItem-").concat(i,"-heading"),variant:"h4",component:"h5"},n),t&&c.createElement(he.A,{variant:"body1"},c.createElement(Pe.A,{htmlString:t,ruleSet:"iiif"})),r&&r.length>0&&c.createElement(Je.P,{labelValuePairs:r}),c.createElement(et.F,this.props))}}])&&tt(t.prototype,n),a}(c.Component);ot.defaultProps={canvasDescription:null,canvasLabel:null,canvasMetadata:[],index:1,t:function(e){return e},totalSize:1};var it=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e,t){var n=t.canvasId,r=t.id,o=t.windowId;return{canvasDescription:(0,H.HU)(e,{canvasId:n,companionWindowId:r,windowId:o}),canvasLabel:(0,H.T2)(e,{canvasId:n,companionWindowId:r,windowId:o}),canvasMetadata:(0,Ye.uh)((0,H.dX)(e,{canvasId:n,companionWindowId:r,windowId:o}))}})),(0,s.h)("CanvasInfo"));const at=it(ot);var st=n(69312),lt=n(98448);function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t){return ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ut(e,t)}function dt(e){return dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dt(e)}var ft=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ut(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=dt(r);if(o){var n=dt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.availableLocales,n=e.classes,r=e.locale,o=e.setLocale;return!o||t.length<2?c.createElement(c.Fragment,null):c.createElement(st.A,null,c.createElement(lt.A,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"},getContentAnchorEl:null},displayEmpty:!0,value:r,onChange:function(e){o(e.target.value)},name:"locale",classes:{select:n.select},className:n.selectEmpty},t.map((function(e){return c.createElement(Te.A,{key:e,value:e},c.createElement(he.A,{variant:"body2"},e))}))))}}])&&ct(t.prototype,n),a}(c.Component);ft.defaultProps={availableLocales:[],classes:{},locale:"",setLocale:void 0};const pt=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{select:{"&:focus":{backgroundColor:e.palette.background.paper}},selectEmpty:{backgroundColor:e.palette.background.paper}}})))(ft);var ht=n(32295),mt=n(91068),gt=n(96746),vt=n(88365);function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bt(e,t){return bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bt(e,t)}function wt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Et(e){return Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Et(e)}var xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Et(r);if(o){var n=Et(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wt(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).openCollectionDialog=t.openCollectionDialog.bind(wt(t)),t}return t=a,(n=[{key:"openCollectionDialog",value:function(){var e=this.props,t=e.collectionPath,n=e.showCollectionDialog,r=e.windowId;n(t[t.length-1],t.slice(0,-1),r)}},{key:"render",value:function(){var e=this.props,t=e.collectionLabel,n=e.collectionPath,r=e.id,o=e.t;return 0===n.length?null:c.createElement(Qe.A,{id:"".concat(r,"-collection"),label:o("collection")},t&&c.createElement(he.A,{"aria-labelledby":"".concat(r,"-resource ").concat(r,"-resource-heading"),id:"".concat(r,"-resource-heading"),variant:"h4"},t),c.createElement(gt.A,{color:"primary",onClick:this.openCollectionDialog,startIcon:c.createElement(vt.A,null)},o("showCollection")))}}])&&yt(t.prototype,n),a}(c.Component);xt.defaultProps={collectionLabel:null,collectionPath:[],t:function(e){return e},windowId:null};var Ot={showCollectionDialog:mt.Az},St=(0,r.Zz)((0,i.C)(),(0,o.Ng)((function(e,t){t.id;var n=t.windowId,r=((0,le.zk)(e,{windowId:n})||{}).collectionPath,o=r[r.length-1];return{collectionLabel:(0,Ye.aY)(e,{manifestId:o}),collectionPath:r}}),Ot),(0,s.h)("CollectionInfo"));const At=St(xt);var _t=n(10782);function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tt(e,t){return Tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tt(e,t)}function kt(e){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kt(e)}var Pt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=kt(r);if(o){var n=kt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.homepage,r=e.manifestUrl,o=e.renderings,i=e.seeAlso,a=e.id,s=e.t;return c.createElement(Qe.A,{id:"".concat(a,"-related"),label:s("related")},c.createElement(he.A,{"aria-labelledby":"".concat(a,"-related ").concat(a,"-related-heading"),id:"".concat(a,"-related-heading"),variant:"h4",component:"h5"},s("links")),c.createElement("dl",{className:W()((0,U.A)("label-value-metadata"),t.labelValueMetadata)},n&&c.createElement(c.Fragment,null,c.createElement(he.A,{variant:"subtitle2",component:"dt"},s("iiif_homepage")),n.map((function(e){return c.createElement(he.A,{key:e.value,variant:"body1",component:"dd"},c.createElement(_t.A,{target:"_blank",rel:"noopener noreferrer",href:e.value},e.label||e.value))}))),o&&o.length>0&&c.createElement(c.Fragment,null,c.createElement(he.A,{variant:"subtitle2",component:"dt"},s("iiif_renderings")),o.map((function(e){return c.createElement(he.A,{key:e.value,variant:"body1",component:"dd"},c.createElement(_t.A,{target:"_blank",rel:"noopener noreferrer",href:e.value},e.label||e.value))}))),i&&c.createElement(c.Fragment,null,c.createElement(he.A,{variant:"subtitle2",component:"dt"},s("iiif_seeAlso")),i.map((function(e){return c.createElement(he.A,{key:e.value,variant:"body1",component:"dd"},c.createElement(_t.A,{target:"_blank",rel:"noopener noreferrer",href:e.value},e.label||e.value),e.format&&c.createElement(he.A,{component:"span"}," (".concat(e.format,")")))}))),r&&c.createElement(c.Fragment,null,c.createElement(he.A,{variant:"subtitle2",component:"dt"},s("iiif_manifest")),c.createElement(he.A,{variant:"body1",component:"dd"},c.createElement(_t.A,{target:"_blank",rel:"noopener noreferrer",href:r},r)))),c.createElement(et.F,this.props))}}])&&Ct(t.prototype,n),a}(c.Component);Pt.defaultProps={homepage:null,manifestUrl:null,renderings:null,seeAlso:null,t:function(e){return e}};var It=(0,r.Zz)((0,a.A)({labelValueMetadata:{"& dd":{marginBottom:".5em",marginLeft:"0"}}}),(0,i.C)(),(0,o.Ng)((function(e,t){t.id;var n=t.windowId;return{homepage:(0,Ye.cm)(e,{windowId:n}),manifestUrl:(0,Ye.hp)(e,{windowId:n}),renderings:(0,Ye.dn)(e,{windowId:n}),seeAlso:(0,Ye._l)(e,{windowId:n})}})),(0,s.h)("ManifestRelatedLinks"));const Rt=It(Pt);function jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,t){return Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dt(e,t)}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nt(e)}var Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Nt(r);if(o){var n=Nt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.windowId,n=e.id,r=e.canvasIds,o=e.classes,i=e.collectionPath,a=e.t,s=e.locale,l=e.setLocale,u=e.availableLocales,d=e.showLocalePicker;return c.createElement(Ve.A,{title:a("aboutThisItem"),paperClassName:(0,U.A)("window-sidebar-info-panel"),windowId:t,id:n,titleControls:d&&c.createElement(pt,{locale:s,setLocale:l,availableLocales:u})},r.map((function(e,i){return c.createElement("div",{key:e,className:o.section},c.createElement(at,{id:n,canvasId:e,index:i,totalSize:r.length,windowId:t}))})),i.length>0&&c.createElement("div",{className:o.section},c.createElement(At,{id:n,windowId:t})),c.createElement("div",{className:o.section},c.createElement(ht.A,{id:n,windowId:t})),c.createElement("div",{className:o.section},c.createElement(Rt,{id:n,windowId:t})))}}])&&jt(t.prototype,n),a}(c.Component);Mt.defaultProps={availableLocales:[],canvasIds:[],classes:{},collectionPath:[],locale:"",setLocale:void 0,showLocalePicker:!1,t:function(e){return e}};var Lt=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{section:{borderBottom:".5px solid ".concat(e.palette.section_divider),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),(0,o.Ng)((function(e,t){var n=t.id,r=t.windowId;return{availableLocales:(0,Ye.t_)(e,{companionWindowId:n,windowId:r}),canvasIds:(0,H.tv)(e,{windowId:r}),collectionPath:((0,le.zk)(e,{windowId:r})||{}).collectionPath,locale:(0,se.DS)(e,{companionWindowId:n}).locale||(0,Ye.U1)(e,{windowId:r}),showLocalePicker:(0,ue.R2)(e,{windowId:r}).showLocalePicker}}),(function(e,t){var n=t.windowId,r=t.id;return{setLocale:function(t){return e(Xe.u3(n,r,{locale:t}))}}})),(0,s.h)("WindowSideBarInfoPanel"));const zt=Lt(Mt);var Wt=n(37098),Bt=n(67264),Ft=n(96232),Ht=n(19685),Vt=n(23362),Ut=n(66372),Gt=n(45196);function qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $t(e,t){return $t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$t(e,t)}function Kt(e){return Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kt(e)}var Zt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$t(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Kt(r);if(o){var n=Kt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.label;return c.createElement(c.Fragment,null,c.createElement(he.A,{className:W()(t.label),variant:"body1"},n))}}])&&qt(t.prototype,n),a}(c.Component);const Xt=(0,r.Zz)((0,a.A)((function(e){return{label:{paddingLeft:e.spacing(1)}}})),(0,i.C)(),(0,o.Ng)(null,null),(0,s.h)("SidebarIndexItem"))(Zt);function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qt(e,t){return Qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qt(e,t)}function Jt(e){return Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(e)}var en=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Jt(r);if(o){var n=Jt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.canvas,r=e.height,o=e.label,i=e.width;return c.createElement(c.Fragment,null,c.createElement("div",{style:{minWidth:50}},c.createElement(V.A,{label:o,resource:n,className:W()(t.clickable),maxHeight:r,maxWidth:i})),c.createElement(he.A,{className:W()(t.label),variant:"body1"},o))}}],n&&Yt(t.prototype,n),a}(c.Component);function tn(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 nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}en.defaultProps={height:void 0,width:void 0};var rn=(0,r.Zz)((0,a.A)((function(e){return{label:{paddingLeft:e.spacing(1)}}})),(0,i.C)(),(0,o.Ng)((function(e,t){return t.data,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,ce.zj)(e).canvasNavigation||{})}),null),(0,s.h)("SidebarIndexThumbnail"));const on=rn(en);function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sn(e,t){return sn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sn(e,t)}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ln(e)}var cn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sn(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ln(r);if(o){var n=ln(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getIdAndLabelOfCanvases",value:function(){return this.props.canvases.map((function(e,t){return{id:e.id,label:new Gt.default(e).getLabel()}}))}},{key:"render",value:function(){var e,t=this.props,n=t.canvases,r=t.classes,o=t.containerRef,i=t.selectedCanvasIds,a=t.setCanvas,s=t.variant,l=t.windowId,u=this.getIdAndLabelOfCanvases(n);return e="thumbnail"===s?on:Xt,c.createElement(Ce.A,{variant:"selectedMenu"},u.map((function(t,u){return c.createElement(De,{containerRef:o,key:"".concat(t.id,"-").concat(s),offsetTop:96,scrollTo:i.includes(t.id)},c.createElement(Te.A,{key:t.id,className:r.listItem,alignItems:"flex-start",onClick:function(){a(l,t.id)},button:!0,component:"li",selected:i.includes(t.id)},c.createElement(e,{label:t.label,canvas:n[u]})))})))}}],n&&an(t.prototype,n),a}(c.Component);cn.defaultProps={selectedCanvasIds:[],variant:"item"};var un=(0,r.Zz)((0,a.A)((function(e){return{label:{paddingLeft:e.spacing(1)},listItem:{borderBottom:"0.5px solid ".concat(e.palette.divider),paddingRight:e.spacing(1)}}})),(0,i.C)(),(0,o.Ng)((function(e,t){var n=t.id,r=t.windowId;return{canvases:(0,H.P)(e,{windowId:r}),selectedCanvasIds:(0,H.tv)(e,{windowId:r}),variant:(0,se.DS)(e,{companionWindowId:n,windowId:r}).variant}}),(function(e,t){return t.id,t.windowId,{setCanvas:function(){return e(l.h5.apply(F,arguments))}}})),(0,s.h)("SidebarIndexList"));const dn=un(cn);var fn=n(19681),pn=n(5544),hn=n(80045),mn=n(28060);const gn=c.createContext({});var vn=function(e,t,n){for(var r=t;r<e.length;r+=1)if(n===e[r])return r;return-1},yn=[],bn=[],wn=c.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.defaultCollapseIcon,a=e.defaultEndIcon,s=e.defaultExpanded,l=void 0===s?yn:s,u=e.defaultExpandIcon,d=e.defaultParentIcon,f=e.defaultSelected,p=void 0===f?bn:f,h=e.disableSelection,m=void 0!==h&&h,g=e.multiSelect,v=void 0!==g&&g,y=e.expanded,w=e.onNodeSelect,E=e.onNodeToggle,x=e.selected,O=(0,hn.A)(e,["children","classes","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disableSelection","multiSelect","expanded","onNodeSelect","onNodeToggle","selected"]),S=c.useState(null),A=S[0],_=S[1],C=c.useState(null),T=C[0],k=C[1],P=c.useRef({}),I=c.useRef({}),R=c.useRef([]),j=(0,mn.A)({controlled:y,default:l,name:"TreeView",state:"expanded"}),D=(0,pn.A)(j,2),N=D[0],M=D[1],L=(0,mn.A)({controlled:x,default:p,name:"TreeView",state:"selected"}),z=(0,pn.A)(L,2),W=z[0],B=z[1],F=c.useCallback((function(e){return!!Array.isArray(N)&&-1!==N.indexOf(e)}),[N]),H=c.useCallback((function(e){return Array.isArray(W)?-1!==W.indexOf(e):W===e}),[W]),V=function(e){var t=R.current.indexOf(e);return-1!==t&&t+1<R.current.length?R.current[t+1]:null},U=function(e){var t=R.current.indexOf(e);return-1!==t&&t-1>=0?R.current[t-1]:null},G=function(){return R.current[R.current.length-1]},q=function(){return R.current[0]},$=function(e){e&&(_(e),k(e))},K=c.useRef(null),Z=c.useRef(!1),X=c.useRef([]),Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.start,o=void 0===r?K.current:r,i=t.end,a=t.current;return n?function(e,t){var n=W,r=t.start,o=t.next,i=t.current;o&&i&&(-1===X.current.indexOf(i)&&(X.current=[]),Z.current?-1!==X.current.indexOf(o)?(n=n.filter((function(e){return e===r||e!==i})),X.current=X.current.filter((function(e){return e===r||e!==i}))):(n.push(o),X.current.push(o)):(n.push(o),X.current.push(i,o)),w&&w(e,n),B(n))}(e,{start:o,next:i,current:a}):function(e,t){var n=W,r=t.start,o=t.end;Z.current&&(n=W.filter((function(e){return-1===X.current.indexOf(e)})));var i=function(e,t){var n=R.current.indexOf(e),r=R.current.indexOf(t),o=Math.min(n,r),i=Math.max(n,r);return R.current.slice(o,i+1)}(r,o);X.current=i;var a=n.concat(i);a=a.filter((function(e,t){return a.indexOf(e)===t})),w&&w(e,a),B(a)}(e,{start:o,end:i}),Z.current=!0,!0},Q=c.useCallback((function(e){var t=P.current[e],n=[];return t&&(n.push(e),t.children&&(n.concat(t.children),t.children.forEach((function(e){n.concat(Q(e))})))),n}),[]),J=c.useCallback((function(e){var t=(0,b.A)({},I.current);e.forEach((function(e){t[e]&&delete t[e]})),I.current=t}),[]),ee=c.useCallback((function(e){var t=Q(e);J(t);var n=(0,b.A)({},P.current);t.forEach((function(e){var t=n[e];if(t){if(t.parent){var r=n[t.parent];if(r&&r.children){var o=r.children.filter((function(t){return t!==e}));n[t.parent]=(0,b.A)({},r,{children:o})}}delete n[e]}})),P.current=n,k((function(t){return t===e?null:t}))}),[Q,J]),te=c.useRef([]),ne=c.useState(!1),re=ne[0],oe=ne[1];c.useEffect((function(){var e=[];c.Children.forEach(n,(function(t){c.isValidElement(t)&&t.props.nodeId&&e.push(t.props.nodeId)})),function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n]!==t[n])return!0;return!1}(te.current,e)&&(P.current[-1]={parent:null,children:e},e.forEach((function(e,t){0===t&&_(e)})),R.current=P.current[-1].children,te.current=e,oe(!0))}),[n]),c.useEffect((function(){re&&(R.current=function e(t){for(var n=[],r=0;r<t.length;r+=1){var o=t[r];n.push(o);var i=P.current[o].children;F(o)&&i&&(n=n.concat(e(i)))}return n}(P.current[-1].children))}),[N,re,F,n]);var ie=function(){return!1};return c.createElement(gn.Provider,{value:{icons:{defaultCollapseIcon:i,defaultExpandIcon:u,defaultParentIcon:d,defaultEndIcon:a},focus:$,focusFirstNode:function(){return $(q())},focusLastNode:function(){return $(G())},focusNextNode:function(e){return $(V(e))},focusPreviousNode:function(e){return $(U(e))},focusByFirstCharacter:function(e,t){var n,r,o=t.toLowerCase(),i=[],a=[];Object.keys(I.current).forEach((function(e){var t=I.current[e],n=P.current[e];(!n.parent||F(n.parent))&&(i.push(e),a.push(t))})),(n=i.indexOf(e)+1)===P.current.length&&(n=0),-1===(r=vn(a,n,o))&&(r=vn(a,0,o)),r>-1&&$(i[r])},expandAllSiblings:function(e,t){var n,r=P.current[t],o=P.current[r.parent];n=o?o.children.filter((function(e){return!F(e)})):P.current[-1].children.filter((function(e){return!F(e)}));var i=N.concat(n);n.length>0&&(M(i),E&&E(e,i))},toggleExpansion:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;-1!==N.indexOf(n)?(t=N.filter((function(e){return e!==n})),_((function(e){var t=P.current[e];return e&&(t&&t.parent?t.parent.id:null)===n?n:e}))):t=[n].concat(N),E&&E(e,t),M(t)},isExpanded:F,isFocused:function(e){return T===e},isSelected:H,selectNode:m?ie:function(e,t){return!!t&&(arguments.length>2&&void 0!==arguments[2]&&arguments[2]?function(e,t){var n;n=-1!==W.indexOf(t)?W.filter((function(e){return e!==t})):[t].concat(W),w&&w(e,n),B(n)}(e,t):function(e,t){var n=v?[t]:t;w&&w(e,n),B(n)}(e,t),K.current=t,Z.current=!1,X.current=[],!0)},selectRange:m?ie:Y,selectNextNode:m?ie:function(e,t){return Y(e,{end:V(t),current:t},!0)},selectPreviousNode:m?ie:function(e,t){return Y(e,{end:U(t),current:t},!0)},rangeSelectToFirst:m?ie:function(e,t){K.current||(K.current=t);var n=Z.current?K.current:t;return Y(e,{start:n,end:q()})},rangeSelectToLast:m?ie:function(e,t){K.current||(K.current=t);var n=Z.current?K.current:t;return Y(e,{start:n,end:G()})},selectAllNodes:m?ie:function(e){return Y(e,{start:q(),end:G()})},isTabbable:function(e){return A===e},multiSelect:v,getParent:function(e){return P.current[e].parent},mapFirstChar:function(e,t){I.current[e]=t},addNodeToNodeMap:function(e,t){var n=P.current[e];P.current[e]=(0,b.A)({},n,{children:t,id:e}),t.forEach((function(t){var n=P.current[t];P.current[t]=(0,b.A)({},n,{parent:e,id:t})}))},removeNodeFromNodeMap:ee}},c.createElement("ul",(0,b.A)({role:"tree","aria-multiselectable":v,className:(0,Ae.default)(r.root,o),ref:t},O),n))}));const En=(0,a.A)({root:{padding:0,margin:0,listStyle:"none"}},{name:"MuiTreeView"})(wn);var xn=n(42561),On=n(51059),Sn=n(69440),An=n(19773),_n=n(26232),Cn=n(74801),Tn=c.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.collapseIcon,a=e.endIcon,s=e.expandIcon,l=e.icon,u=e.label,d=e.nodeId,f=e.onClick,p=e.onLabelClick,h=e.onIconClick,m=e.onFocus,g=e.onKeyDown,v=e.onMouseDown,y=e.TransitionComponent,w=void 0===y?Sn.A:y,E=e.TransitionProps,x=(0,hn.A)(e,["children","classes","className","collapseIcon","endIcon","expandIcon","icon","label","nodeId","onClick","onLabelClick","onIconClick","onFocus","onKeyDown","onMouseDown","TransitionComponent","TransitionProps"]),O=c.useContext(gn),S=O.icons,A=O.focus,_=O.focusFirstNode,C=O.focusLastNode,T=O.focusNextNode,k=O.focusPreviousNode,P=O.focusByFirstCharacter,I=O.selectNode,R=O.selectRange,j=O.selectNextNode,D=O.selectPreviousNode,N=O.rangeSelectToFirst,M=O.rangeSelectToLast,L=O.selectAllNodes,z=O.expandAllSiblings,W=O.toggleExpansion,B=O.isExpanded,F=O.isFocused,H=O.isSelected,V=O.isTabbable,U=O.multiSelect,G=O.getParent,q=O.mapFirstChar,$=O.addNodeToNodeMap,K=O.removeNodeFromNodeMap,Z=c.useRef(null),X=c.useRef(null),Y=(0,Cn.A)(Z,t),Q=l,J=Boolean(Array.isArray(n)?n.length:n),ee=!!B&&B(d),te=!!F&&F(d),ne=!!V&&V(d),re=!!H&&H(d),oe=S||{},ie=(0,_n.A)();Q||(J?(Q=ee?i||oe.defaultCollapseIcon:s||oe.defaultExpandIcon)||(Q=oe.defaultParentIcon):Q=a||oe.defaultEndIcon);var ae,se=function(e){return J&&(ee?T(d):W(e)),!0},le=function(e){if(ee)return W(e,d),!0;var t=G(d);return!!t&&(A(t),!0)};return c.useEffect((function(){if($){var e=[];c.Children.forEach(n,(function(t){c.isValidElement(t)&&t.props.nodeId&&e.push(t.props.nodeId)})),$(d,e)}}),[n,d,$]),c.useEffect((function(){if(K)return function(){K(d)}}),[d,K]),c.useEffect((function(){q&&u&&q(d,X.current.textContent.substring(0,1).toLowerCase())}),[q,d,u]),c.useEffect((function(){te&&Z.current.focus()}),[te]),U?ae=re:re&&(ae=!0),c.createElement("li",(0,b.A)({className:(0,Ae.default)(r.root,o,ee&&r.expanded,re&&r.selected),role:"treeitem",onKeyDown:function(e){var t=!1,n=e.key;if(!e.altKey&&e.currentTarget===e.target){var r,o=e.ctrlKey||e.metaKey;switch(n){case" ":Z.current===e.currentTarget&&(t=U&&e.shiftKey?R(e,{end:d}):U?I(e,d,!0):I(e,d)),e.stopPropagation();break;case"Enter":Z.current===e.currentTarget&&J&&(W(e),t=!0),e.stopPropagation();break;case"ArrowDown":U&&e.shiftKey&&j(e,d),T(d),t=!0;break;case"ArrowUp":U&&e.shiftKey&&D(e,d),k(d),t=!0;break;case"ArrowRight":t="rtl"===ie.direction?le(e):se(e);break;case"ArrowLeft":t="rtl"===ie.direction?se(e):le(e);break;case"Home":U&&o&&e.shiftKey&&N(e,d),_(),t=!0;break;case"End":U&&o&&e.shiftKey&&M(e,d),C(),t=!0;break;default:"*"===n?(z(e,d),t=!0):U&&o&&"a"===n.toLowerCase()?t=L(e):!o&&!e.shiftKey&&(r=n)&&1===r.length&&r.match(/\S/)&&(P(d,n),t=!0)}t&&(e.preventDefault(),e.stopPropagation()),g&&g(e)}},onFocus:function(e){te||e.currentTarget!==e.target||A(d),m&&m(e)},"aria-expanded":J?ee:null,"aria-selected":ae,ref:Y,tabIndex:ne?0:-1},x),c.createElement("div",{className:r.content,onClick:function(e){te||A(d);var t=U&&(e.shiftKey||e.ctrlKey||e.metaKey);!J||e.defaultPrevented||t&&B(d)||W(e,d),t?e.shiftKey?R(e,{end:d}):I(e,d,!0):I(e,d),f&&f(e)},onMouseDown:function(e){(e.shiftKey||e.ctrlKey||e.metaKey)&&e.preventDefault(),v&&v(e)},ref:X},c.createElement("div",{onClick:h,className:r.iconContainer},Q),c.createElement(he.A,{onClick:p,component:"div",className:r.label},u)),n&&c.createElement(w,(0,b.A)({unmountOnExit:!0,className:r.group,in:ee,component:"ul",role:"group"},E),n))}));const kn=(0,a.A)((function(e){return{root:{listStyle:"none",margin:0,padding:0,outline:0,WebkitTapHighlightColor:"transparent","&:focus > $content $label":{backgroundColor:e.palette.action.hover},"&$selected > $content $label":{backgroundColor:(0,An.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)},"&$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:(0,An.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},expanded:{},selected:{},group:{margin:0,padding:0,marginLeft:17},content:{width:"100%",display:"flex",alignItems:"center",cursor:"pointer"},iconContainer:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},label:{width:"100%",paddingLeft:4,position:"relative","&:hover":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}}}),{name:"MuiTreeItem"})(Tn);function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function In(e,t){return In=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},In(e,t)}function Rn(e){return Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rn(e)}var jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&In(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Rn(r);if(o){var n=Rn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"handleKeyPressed",value:function(e,t){var n=this.props,r=n.expandedNodeIds,o=n.toggleNode;"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||this.selectTreeItem(t),("ArrowLeft"===e.key&&-1!==r.indexOf(t.id)||"ArrowRight"===e.key&&-1===r.indexOf(t.id)&&t.nodes.length>0)&&o(t.id)}},{key:"selectTreeItem",value:function(e){var t=this.props,n=t.setCanvas,r=t.toggleNode,o=t.windowId;if(e.nodes.length>0&&r(e.id),e.data.getCanvasIds()&&0!==e.data.getCanvasIds().length&&!(e.nodes.length>0)){var i=function(e){var t=e.data.__jsonld;if(t.startCanvas&&"string"==typeof t.startCanvas)return t.startCanvas;if(t.start){if("Canvas"===t.start.type&&"string"==typeof t.start.id)return t.start.id;if("SpecificResource"===t.start.type&&"string"==typeof t.start.source)return t.start.source}return e.data.getCanvasIds()[0]}(e);n(o,-1===i.indexOf("#")?i:i.substr(0,i.indexOf("#")))}}},{key:"buildTreeItems",value:function(e,t,n,r){var o=this,i=this.props.classes;return e?e.map((function(e){return c.createElement(De,{containerRef:n,key:"".concat(e.id,"-scroll"),offsetTop:96,scrollTo:r===e.id},c.createElement(kn,{key:e.id,nodeId:e.id,classes:{content:i.content,group:i.group,label:i.label,root:i.treeItemRoot,selected:i.selected},label:c.createElement("div",{className:(0,Ae.default)((a={},s=i.visibleNode,l=-1!==t.indexOf(e.id),s in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,a))},e.label),onClick:function(){return o.selectTreeItem(e)},onKeyDown:function(t){return o.handleKeyPressed(t,e)}},e.nodes&&e.nodes.length>0?o.buildTreeItems(e.nodes,t,n,r):null));var a,s,l})):null}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.treeStructure,r=e.visibleNodeIds,o=e.expandedNodeIds,i=e.containerRef,a=e.nodeIdToScrollTo;return n?c.createElement(c.Fragment,null,c.createElement(En,{className:t.root,defaultCollapseIcon:c.createElement(xn.A,{color:"action"}),defaultExpandIcon:c.createElement(On.A,{color:"action"}),defaultEndIcon:c.createElement(c.Fragment,null),expanded:o},this.buildTreeItems(n.nodes,r,i,a))):c.createElement(c.Fragment,null)}}])&&Pn(t.prototype,n),a}(c.Component),Dn=n(55181),Nn=(0,r.Zz)((0,a.A)((function(e){return{content:{alignItems:"flex-start",borderLeft:"1px solid transparent",padding:"8px 16px 8px 0",width:"auto"},group:{borderLeft:"1px solid ".concat(e.palette.grey[300])},label:{paddingLeft:0},root:{flexGrow:1},selected:{},treeItemRoot:{"&:focus > $content":{backgroundColor:e.palette.action.selected},"&:hover > $content":{backgroundColor:e.palette.action.hover},"&:hover >$content $label, &:focus > $content $label, &$selected > $content $label, &$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:"transparent"}},visibleNode:{backgroundColor:(0,fn.fade)(e.palette.highlights.primary,.35),display:"inline"}}})),(0,i.C)(),(0,o.Ng)((function(e,t){var n=t.id,r=t.windowId;return{expandedNodeIds:(0,Dn.S)(e,{companionWindowId:n,windowId:r}),nodeIdToScrollTo:(0,Dn.rK)(e,{companionWindowId:n,windowId:r}),treeStructure:(0,ae.P8)(e,{windowId:r}),visibleNodeIds:(0,Dn.BB)(e,{companionWindowId:n,windowId:r})}}),(function(e,t){var n=t.id,r=t.windowId;return{setCanvas:function(){return e(l.h5.apply(F,arguments))},toggleNode:function(t){return e(Xe.TN(r,n,t))}}})),(0,s.h)("SidebarIndexTableOfContents"));const Mn=Nn(jn);function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zn(e,t){return zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zn(e,t)}function Wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bn(e){return Bn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bn(e)}var Fn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zn(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Bn(o);if(i){var n=Bn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wn(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).handleSequenceChange=t.handleSequenceChange.bind(Wn(t)),t.handleVariantChange=t.handleVariantChange.bind(Wn(t)),t.containerRef=c.createRef(),t}return t=s,n=[{key:"handleSequenceChange",value:function(e){(0,this.props.updateSequence)(e.target.value)}},{key:"handleVariantChange",value:function(e,t){(0,this.props.updateVariant)(t)}},{key:"render",value:function(){var e,t=this.props,n=t.classes,r=t.collection,o=t.id,i=t.showMultipart,a=t.sequenceId,l=t.sequences,u=t.t,d=t.variant,f=t.showToc,p=t.windowId;return e="tableOfContents"===d?c.createElement(Mn,{id:o,containerRef:this.containerRef,windowId:p}):c.createElement(dn,{id:o,containerRef:this.containerRef,windowId:p}),c.createElement(Ve.A,{title:u("canvasIndex"),id:o,windowId:p,ref:this.containerRef,otherRef:this.containerRef,titleControls:c.createElement(c.Fragment,null,l&&l.length>1&&c.createElement(st.A,null,c.createElement(lt.A,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"},getContentAnchorEl:null},displayEmpty:!0,value:a,onChange:this.handleSequenceChange,name:"sequenceId",classes:{select:n.select},className:n.selectEmpty},l.map((function(e,t){return c.createElement(Te.A,{value:e.id,key:e.id},c.createElement(he.A,{variant:"body2"},s.getUseableLabel(e,t)))})))),c.createElement("div",{className:n.break}),c.createElement(Wt.A,{value:d,onChange:this.handleVariantChange,variant:"fullWidth",indicatorColor:"primary",textColor:"primary"},f&&c.createElement(Ft.Ay,{title:u("tableOfContentsList"),value:"tableOfContents"},c.createElement(Bt.A,{className:n.variantTab,value:"tableOfContents","aria-label":u("tableOfContentsList"),"aria-controls":"tab-panel-".concat(o),icon:c.createElement(Vt.A,{style:{transform:"scale(-1, 1)"}})})),c.createElement(Ft.Ay,{title:u("itemList"),value:"item"},c.createElement(Bt.A,{className:n.variantTab,value:"item","aria-label":u("itemList"),"aria-controls":"tab-panel-".concat(o),icon:c.createElement(Ht.A,null)})),c.createElement(Ft.Ay,{title:u("thumbnailList"),value:"thumbnail"},c.createElement(Bt.A,{className:n.variantTab,value:"thumbnail","aria-label":u("thumbnailList"),"aria-controls":"tab-panel-".concat(o),icon:c.createElement(vt.A,null)}))))},c.createElement("div",{id:"tab-panel-".concat(o)},r&&c.createElement(gt.A,{fullWidth:!0,onClick:i,endIcon:c.createElement(Ut.A,null)},c.createElement(he.A,{className:n.collectionNavigationButton},s.getUseableLabel(r))),e))}}],r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():e.id}}],n&&Ln(t.prototype,n),r&&Ln(t,r),s}(c.Component);Fn.defaultProps={collection:null,sequenceId:null,sequences:[],showToc:!1};var Hn=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{break:{flexBasis:"100%",height:0},collectionNavigationButton:{textTransform:"none"},label:{paddingLeft:e.spacing(1)},select:{"&:focus":{backgroundColor:e.palette.background.paper}},selectEmpty:{backgroundColor:e.palette.background.paper},variantTab:{minWidth:"auto"}}})),(0,o.Ng)((function(e,t){var n=t.id,r=t.windowId,o=(0,ae.P8)(e,{windowId:r}),i=(0,le.zk)(e,{windowId:r}),a=e.config,s=(0,se.DS)(e,{companionWindowId:n}),l=i.collectionPath||[],c=l&&l[l.length-1],u=(0,ae.eb)(e,{windowId:r});return{collection:c&&(0,Ye.SG)(e,{manifestId:c}),config:a,sequenceId:u&&u.id,sequences:(0,ae.fO)(e,{windowId:r}),showToc:o&&o.nodes&&o.nodes.length>0,variant:s.variant||(0,Dn.bT)(e,{windowId:r})}}),(function(e,t){var n=t.id,r=t.windowId;return{showMultipart:function(){return e(Xe.Yy(r,{content:"collection",position:"right"}))},updateSequence:function(t){return e(mt.uE(r,{sequenceId:t}))},updateVariant:function(t){return e(Xe.u3(r,n,{variant:t}))}}})),(0,s.h)("WindowSideBarCanvasPanel"));const Vn=Hn(Fn);var Un=n(22488),Gn=n(12273);function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e,t){return $n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$n(e,t)}function Kn(e){return Kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kn(e)}var Zn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$n(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Kn(r);if(o){var n=Kn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.manifestLogo,n=e.requiredStatement,r=e.rights,o=e.windowId,i=e.id,a=e.classes,s=e.t;return c.createElement(Ve.A,{title:s("attributionTitle"),paperClassName:(0,U.A)("attribution-panel"),windowId:o,id:i},c.createElement("div",{className:a.section},n&&c.createElement(Je.P,{labelValuePairs:n,defaultLabel:s("attribution")}),r&&r.length>0&&c.createElement("dl",{className:(0,U.A)("label-value-metadata")},c.createElement(he.A,{variant:"subtitle2",component:"dt"},s("rights")),r.map((function(e){return c.createElement(he.A,{variant:"body1",component:"dd",key:e.toString()},c.createElement(_t.A,{target:"_blank",rel:"noopener noreferrer",href:e},e))})))),t&&c.createElement("div",{className:a.section},c.createElement(Gn.Img,{src:[t],alt:"",role:"presentation",className:a.logo,unloader:c.createElement(Un.A,{className:a.placeholder,variant:"rect",height:60,width:60})})),c.createElement(et.F,this.props))}}])&&qn(t.prototype,n),a}(c.Component);Zn.defaultProps={classes:{},manifestLogo:null,requiredStatement:null,rights:null,t:function(e){return e}};var Xn=(0,r.Zz)((0,a.A)((function(e){return{logo:{maxWidth:"100%"},placeholder:{backgroundColor:e.palette.grey[300]},section:{borderBottom:".5px solid ".concat(e.palette.section_divider),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),(0,i.C)(),(0,o.Ng)((function(e,t){t.id;var n=t.windowId;return{manifestLogo:(0,Ye.nB)(e,{windowId:n}),requiredStatement:(0,Ye.lj)(e,{windowId:n}),rights:(0,Ye._6)(e,{windowId:n})}})),(0,s.h)("AttributionPanel"));const Yn=Xn(Zn);var Qn=n(82780),Jn=n(50828),er=n.n(Jn),tr=n(38221),nr=n.n(tr),rr=n(23805),or=n.n(rr),ir=n(64467),ar=n(16408),sr=n(45152),lr=n(42460),cr=n(81863);const ur=(0,n(95126).A)(c.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var dr=n(14232),fr=n(22319),pr=n(24960);function hr(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function mr(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var gr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,i=e.limit,a=e.matchFrom,s=void 0===a?"any":a,l=e.stringify,c=e.trim,u=void 0!==c&&c;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,c=u?r.trim():r;o&&(c=c.toLowerCase()),n&&(c=hr(c));var d=e.filter((function(e){var t=(l||a)(e);return o&&(t=t.toLowerCase()),n&&(t=hr(t)),"start"===s?0===t.indexOf(c):t.indexOf(c)>-1}));return"number"==typeof i?d.slice(0,i):d}}();function vr(e){e.anchorEl,e.open;var t=(0,hn.A)(e,["anchorEl","open"]);return c.createElement("div",t)}var yr=c.createElement(cr.A,{fontSize:"small"}),br=c.createElement(ur,null),wr=c.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,r=e.ChipProps,o=e.classes,i=e.className,a=(void 0===e.clearOnBlur&&e.freeSolo,e.clearOnEscape,e.clearText),s=void 0===a?"Clear":a,l=e.closeIcon,d=void 0===l?yr:l,f=e.closeText,p=void 0===f?"Close":f,h=(void 0===(e.debug,e.defaultValue)&&e.multiple,e.disableClearable),m=void 0!==h&&h,g=(e.disableCloseOnSelect,e.disabled),v=void 0!==g&&g,y=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),w=void 0!==y&&y,E=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),x=void 0===E?"auto":E,O=e.freeSolo,S=void 0!==O&&O,A=e.fullWidth,_=void 0!==A&&A,C=e.getLimitTagsText,T=void 0===C?function(e){return"+".concat(e)}:C,k=(e.getOptionDisabled,e.getOptionLabel),P=void 0===k?function(e){return e}:k,I=(e.getOptionSelected,e.groupBy),R=(void 0===e.handleHomeEndKeys&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),j=void 0===R?-1:R,D=e.ListboxComponent,N=void 0===D?"ul":D,M=e.ListboxProps,L=e.loading,z=void 0!==L&&L,W=e.loadingText,B=void 0===W?"Loading…":W,F=e.multiple,H=void 0!==F&&F,V=e.noOptionsText,U=void 0===V?"No options":V,G=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),q=void 0===G?"Open":G,$=(e.options,e.PaperComponent),K=void 0===$?u.A:$,Z=e.PopperComponent,X=void 0===Z?ar.A:Z,Y=e.popupIcon,Q=void 0===Y?br:Y,J=e.renderGroup,ee=e.renderInput,te=e.renderOption,ne=e.renderTags,re=(void 0===e.selectOnFocus&&e.freeSolo,e.size),oe=void 0===re?"medium":re,ie=(e.value,(0,hn.A)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),ae=w?vr:X,se=function(e){var t=e.autoComplete,n=void 0!==t&&t,r=e.autoHighlight,o=void 0!==r&&r,i=e.autoSelect,a=void 0!==i&&i,s=e.blurOnSelect,l=void 0!==s&&s,u=e.clearOnBlur,d=void 0===u?!e.freeSolo:u,f=e.clearOnEscape,p=void 0!==f&&f,h=e.componentName,m=void 0===h?"useAutocomplete":h,g=e.debug,v=void 0!==g&&g,y=e.defaultValue,w=void 0===y?e.multiple?[]:null:y,E=e.disableClearable,x=void 0!==E&&E,O=e.disableCloseOnSelect,S=void 0!==O&&O,A=e.disabledItemsFocusable,_=void 0!==A&&A,C=e.disableListWrap,T=void 0!==C&&C,k=e.filterOptions,P=void 0===k?gr:k,I=e.filterSelectedOptions,R=void 0!==I&&I,j=e.freeSolo,D=void 0!==j&&j,N=e.getOptionDisabled,M=e.getOptionLabel,L=void 0===M?function(e){return e}:M,z=e.getOptionSelected,W=void 0===z?function(e,t){return e===t}:z,B=e.groupBy,F=e.handleHomeEndKeys,H=void 0===F?!e.freeSolo:F,V=e.id,U=e.includeInputInList,G=void 0!==U&&U,q=e.inputValue,$=e.multiple,K=void 0!==$&&$,Z=e.onChange,X=e.onClose,Y=e.onHighlightChange,Q=e.onInputChange,J=e.onOpen,ee=e.open,te=e.openOnFocus,ne=void 0!==te&&te,re=e.options,oe=e.selectOnFocus,ie=void 0===oe?!e.freeSolo:oe,ae=e.value,se=(0,dr.A)(V),le=L,ce=c.useRef(!1),ue=c.useRef(!0),de=c.useRef(null),fe=c.useRef(null),pe=c.useState(null),he=pe[0],me=pe[1],ge=c.useState(-1),ve=ge[0],ye=ge[1],be=o?0:-1,we=c.useRef(be),Ee=(0,mn.A)({controlled:ae,default:w,name:m}),xe=(0,pn.A)(Ee,2),Oe=xe[0],Se=xe[1],Ae=(0,mn.A)({controlled:q,default:"",name:m,state:"inputValue"}),_e=(0,pn.A)(Ae,2),Ce=_e[0],Te=_e[1],ke=c.useState(!1),Pe=ke[0],Ie=ke[1],Re=(0,fr.A)((function(e,t){var n;if(K)n="";else if(null==t)n="";else{var r=le(t);n="string"==typeof r?r:""}Ce!==n&&(Te(n),Q&&Q(e,n,"reset"))}));c.useEffect((function(){Re(null,Oe)}),[Oe,Re]);var je=(0,mn.A)({controlled:ee,default:!1,name:m,state:"open"}),De=(0,pn.A)(je,2),Ne=De[0],Me=De[1],Le=!K&&null!=Oe&&Ce===le(Oe),ze=Ne,We=ze?P(re.filter((function(e){return!R||!(K?Oe:[Oe]).some((function(t){return null!==t&&W(e,t)}))})),{inputValue:Le?"":Ce,getOptionLabel:le}):[],Be=(0,fr.A)((function(e){-1===e?de.current.focus():he.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));c.useEffect((function(){K&&ve>Oe.length-1&&(ye(-1),Be(-1))}),[Oe,K,ve,Be]);var Fe=(0,fr.A)((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(we.current=n,-1===n?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant","".concat(se,"-option-").concat(n)),Y&&Y(t,-1===n?null:We[n],o),fe.current){var i=fe.current.querySelector("[data-focus]");i&&i.removeAttribute("data-focus");var a=fe.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var s=fe.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==o)){var l=s,c=a.clientHeight+a.scrollTop,u=l.offsetTop+l.offsetHeight;u>c?a.scrollTop=u-a.clientHeight:l.offsetTop-l.offsetHeight*(B?1.3:0)<a.scrollTop&&(a.scrollTop=l.offsetTop-l.offsetHeight*(B?1.3:0))}}else a.scrollTop=0}})),He=(0,fr.A)((function(e){var t=e.event,r=e.diff,o=e.direction,i=void 0===o?"next":o,a=e.reason,s=void 0===a?"auto":a;if(ze){var l=function(e,t){if(!fe.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===We.length||"previous"===t&&-1===n)return-1;var r=fe.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!_&&r&&(r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}(function(){var e=We.length-1;if("reset"===r)return be;if("start"===r)return 0;if("end"===r)return e;var t=we.current+r;return t<0?-1===t&&G?-1:T&&-1!==we.current||Math.abs(r)>1?0:e:t>e?t===e+1&&G?-1:T||Math.abs(r)>1?e:0:t}(),i);if(Fe({index:l,reason:s,event:t}),n&&"reset"!==r)if(-1===l)de.current.value=Ce;else{var c=le(We[l]);de.current.value=c,0===c.toLowerCase().indexOf(Ce.toLowerCase())&&Ce.length>0&&de.current.setSelectionRange(Ce.length,c.length)}}})),Ve=c.useCallback((function(){if(ze){var e=K?Oe[0]:Oe;if(0!==We.length&&null!=e){if(fe.current)if(R||null==e)we.current>=We.length-1?Fe({index:We.length-1}):Fe({index:we.current});else{var t=We[we.current];if(K&&t&&-1!==mr(Oe,(function(e){return W(t,e)})))return;var n=mr(We,(function(t){return W(t,e)}));-1===n?He({diff:"reset"}):Fe({index:n})}}else He({diff:"reset"})}}),[0===We.length,!K&&Oe,R,He,Fe,ze,Ce,K]),Ue=(0,fr.A)((function(e){(0,pr.A)(fe,e),e&&Ve()}));c.useEffect((function(){Ve()}),[Ve]);var Ge=function(e){Ne||(Me(!0),J&&J(e))},qe=function(e,t){Ne&&(Me(!1),X&&X(e,t))},$e=function(e,t,n,r){Oe!==t&&(Z&&Z(e,t,n,r),Se(t))},Ke=c.useRef(!1),Ze=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",o=t;if(K){var i=mr(o=Array.isArray(Oe)?Oe.slice():[],(function(e){return W(t,e)}));-1===i?o.push(t):"freeSolo"!==n&&(o.splice(i,1),r="remove-option")}Re(e,o),$e(e,o,r,{option:t}),S||qe(e,r),(!0===l||"touch"===l&&Ke.current||"mouse"===l&&!Ke.current)&&de.current.blur()},Xe=function(e,t){if(K){qe(e,"toggleInput");var n=ve;-1===ve?""===Ce&&"previous"===t&&(n=Oe.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Oe.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Oe.length||"previous"===t&&-1===n)return-1;var r=he.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ye(n),Be(n)}},Ye=function(e){ce.current=!0,Te(""),Q&&Q(e,"","clear"),$e(e,K?[]:null,"clear")},Qe=function(e){return function(t){switch(-1!==ve&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ye(-1),Be(-1)),t.key){case"Home":ze&&H&&(t.preventDefault(),He({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ze&&H&&(t.preventDefault(),He({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),He({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ge(t);break;case"PageDown":t.preventDefault(),He({diff:5,direction:"next",reason:"keyboard",event:t}),Ge(t);break;case"ArrowDown":t.preventDefault(),He({diff:1,direction:"next",reason:"keyboard",event:t}),Ge(t);break;case"ArrowUp":t.preventDefault(),He({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ge(t);break;case"ArrowLeft":Xe(t,"previous");break;case"ArrowRight":Xe(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==we.current&&ze){var r=We[we.current],o=!!N&&N(r);if(t.preventDefault(),o)return;Ze(t,r,"select-option"),n&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else D&&""!==Ce&&!1===Le&&(K&&t.preventDefault(),Ze(t,Ce,"create-option","freeSolo"));break;case"Escape":ze?(t.preventDefault(),t.stopPropagation(),qe(t,"escape")):p&&(""!==Ce||K&&Oe.length>0)&&(t.preventDefault(),t.stopPropagation(),Ye(t));break;case"Backspace":if(K&&""===Ce&&Oe.length>0){var i=-1===ve?Oe.length-1:ve,a=Oe.slice();a.splice(i,1),$e(t,a,"remove-option",{option:Oe[i]})}}e.onKeyDown&&e.onKeyDown(t)}},Je=function(e){Ie(!0),ne&&!ce.current&&Ge(e)},et=function(e){null===fe.current||document.activeElement!==fe.current.parentElement?(Ie(!1),ue.current=!0,ce.current=!1,v&&""!==Ce||(a&&-1!==we.current&&ze?Ze(e,We[we.current],"blur"):a&&D&&""!==Ce?Ze(e,Ce,"blur","freeSolo"):d&&Re(e,Oe),qe(e,"blur"))):de.current.focus()},tt=function(e){var t=e.target.value;Ce!==t&&(Te(t),Q&&Q(e,t,"input")),""===t?x||K||$e(e,null,"clear"):Ge(e)},nt=function(e){Fe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},rt=function(){Ke.current=!0},ot=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ze(e,We[t],"select-option"),Ke.current=!1},it=function(e){return function(t){var n=Oe.slice();n.splice(e,1),$e(t,n,"remove-option",{option:Oe[e]})}},at=function(e){Ne?qe(e,"toggleInput"):Ge(e)},st=function(e){e.target.getAttribute("id")!==se&&e.preventDefault()},lt=function(){de.current.focus(),ie&&ue.current&&de.current.selectionEnd-de.current.selectionStart==0&&de.current.select(),ue.current=!1},ct=function(e){""!==Ce&&Ne||at(e)},ut=D&&Ce.length>0;ut=ut||(K?Oe.length>0:null!==Oe);var dt=We;return B&&(new Map,dt=We.reduce((function(e,t,n){var r=B(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}),[])),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,b.A)({"aria-owns":ze?"".concat(se,"-popup"):null,role:"combobox","aria-expanded":ze},e,{onKeyDown:Qe(e),onMouseDown:st,onClick:lt})},getInputLabelProps:function(){return{id:"".concat(se,"-label"),htmlFor:se}},getInputProps:function(){return{id:se,value:Ce,onBlur:et,onFocus:Je,onChange:tt,onMouseDown:ct,"aria-activedescendant":ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":ze?"".concat(se,"-popup"):null,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Ye}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:at}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:it(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(se,"-popup"),"aria-labelledby":"".concat(se,"-label"),ref:Ue,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=(K?Oe:[Oe]).some((function(e){return null!=e&&W(n,e)})),o=!!N&&N(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(se,"-option-").concat(t),onMouseOver:nt,onClick:ot,onTouchStart:rt,"data-option-index":t,"aria-disabled":o,"aria-selected":r}},id:se,inputValue:Ce,value:Oe,dirty:ut,popupOpen:ze,focused:Pe||-1!==ve,anchorEl:he,setAnchorEl:me,focusedTag:ve,groupedOptions:dt}}((0,b.A)({},e,{componentName:"Autocomplete"})),le=se.getRootProps,ce=se.getInputProps,ue=se.getInputLabelProps,de=se.getPopupIndicatorProps,fe=se.getClearProps,pe=se.getTagProps,he=se.getListboxProps,me=se.getOptionProps,ge=se.value,ve=se.dirty,ye=se.id,be=se.popupOpen,we=se.focused,Ee=se.focusedTag,xe=se.anchorEl,Oe=se.setAnchorEl,Se=se.inputValue,Ce=se.groupedOptions;if(H&&ge.length>0){var Te=function(e){return(0,b.A)({className:(0,Ae.default)(o.tag,"small"===oe&&o.tagSizeSmall),disabled:v},pe(e))};n=ne?ne(ge,Te):ge.map((function(e,t){return c.createElement(_e.A,(0,b.A)({label:P(e),size:oe},Te({index:t}),r))}))}if(j>-1&&Array.isArray(n)){var ke=n.length-j;!we&&ke>0&&(n=n.splice(0,j)).push(c.createElement("span",{className:o.tag,key:n.length},T(ke)))}var Pe=J||function(e){return c.createElement("li",{key:e.key},c.createElement(sr.A,{className:o.groupLabel,component:"div"},e.group),c.createElement("ul",{className:o.groupUl},e.children))},Ie=te||P,Re=function(e,t){var n=me({option:e,index:t});return c.createElement("li",(0,b.A)({},n,{className:o.option}),Ie(e,{selected:n["aria-selected"],inputValue:Se}))},je=!m&&!v,De=(!S||!0===x)&&!1!==x;return c.createElement(c.Fragment,null,c.createElement("div",(0,b.A)({ref:t,className:(0,Ae.default)(o.root,i,we&&o.focused,_&&o.fullWidth,je&&o.hasClearIcon,De&&o.hasPopupIcon)},le(ie)),ee({id:ye,disabled:v,fullWidth:!0,size:"small"===oe?"small":void 0,InputLabelProps:ue(),InputProps:{ref:Oe,className:o.inputRoot,startAdornment:n,endAdornment:c.createElement("div",{className:o.endAdornment},je?c.createElement(lr.A,(0,b.A)({},fe(),{"aria-label":s,title:s,className:(0,Ae.default)(o.clearIndicator,ve&&o.clearIndicatorDirty)}),d):null,De?c.createElement(lr.A,(0,b.A)({},de(),{disabled:v,"aria-label":be?p:q,title:be?p:q,className:(0,Ae.default)(o.popupIndicator,be&&o.popupIndicatorOpen)}),Q):null)},inputProps:(0,b.A)({className:(0,Ae.default)(o.input,-1===Ee&&o.inputFocused),disabled:v},ce())})),be&&xe?c.createElement(ae,{className:(0,Ae.default)(o.popper,w&&o.popperDisablePortal),style:{width:xe?xe.clientWidth:null},role:"presentation",anchorEl:xe,open:!0},c.createElement(K,{className:o.paper},z&&0===Ce.length?c.createElement("div",{className:o.loading},B):null,0!==Ce.length||S||z?null:c.createElement("div",{className:o.noOptions},U),Ce.length>0?c.createElement(N,(0,b.A)({className:o.listbox},he(),M),Ce.map((function(e,t){return I?Pe({key:e.key,group:e.group,children:e.options.map((function(t,n){return Re(t,e.index+n)}))}):Re(e,t)}))):null)):null)}));const Er=(0,a.A)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,b.A)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,ir.A)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,ir.A)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,ir.A)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,ir.A)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,ir.A)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(wr);var xr=n(83182),Or=n(72572),Sr=n(44122),Ar=n(55898),_r=n(77055);function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tr(e,t){return Tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tr(e,t)}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kr(e)}var Pr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tr(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=kr(r);if(o){var n=kr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"nextSearchResult",value:function(e){var t=this.props,n=t.searchHits;(0,t.selectAnnotation)(n[e+1].annotations[0])}},{key:"previousSearchResult",value:function(e){var t=this.props,n=t.searchHits;(0,t.selectAnnotation)(n[e-1].annotations[0])}},{key:"hasNextResult",value:function(e){var t=this.props.searchHits;return 0!==t.length&&e<t.length-1}},{key:"hasPreviousResult",value:function(e){return 0!==this.props.searchHits.length&&e>0}},{key:"render",value:function(){var e=this,t=this.props,n=t.numTotal,r=t.searchHits,o=t.selectedContentSearchAnnotation,i=t.classes,a=t.t,s="rtl"===t.direction?{transform:"rotate(180deg)"}:{},l=r.findIndex((function(e){return e.annotations.includes(o[0])})),u=r.length;return r.length<n&&(u+="+"),c.createElement(c.Fragment,null,r.length>0&&c.createElement(he.A,{variant:"body2",align:"center",classes:i},c.createElement(ye.A,{"aria-label":a("searchPreviousResult"),disabled:!this.hasPreviousResult(l),onClick:function(){return e.previousSearchResult(l)}},c.createElement(Ar.A,{style:s})),c.createElement("span",{style:{unicodeBidi:"plaintext"}},a("pagination",{current:l+1,total:u})),c.createElement(ye.A,{"aria-label":a("searchNextResult"),disabled:!this.hasNextResult(l),onClick:function(){return e.nextSearchResult(l)}},c.createElement(_r.A,{style:s}))))}}])&&Cr(t.prototype,n),a}(c.Component);Pr.defaultProps={classes:{},numTotal:void 0,searchHits:[],t:function(e){return e}};var Ir=n(73015),Rr=(0,r.Zz)((0,o.Ng)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{direction:(0,ce.b3)(e),numTotal:(0,Ir.LR)(e,{companionWindowId:n,windowId:r}),searchHits:(0,Ir.XK)(e,{companionWindowId:n,windowId:r}),selectedContentSearchAnnotation:(0,Ir.SU)(e,{companionWindowId:n,windowId:r})}}),(function(e,t){var n=t.windowId;return{selectAnnotation:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(me.gN.apply(F,[n].concat(r)))}}})),(0,a.A)((function(e){return{body2:{marginLeft:"-16px",width:"100%"}}})),(0,i.C)(),(0,s.h)("SearchPanelNavigation"));const jr=Rr(Pr);function Dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(n),!0).forEach((function(t){Mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zr(e,t){return zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zr(e,t)}function Wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Br(e){return Br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Br(e)}var Fr=function(e){return or()(e)?e.match:e},Hr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zr(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Br(r);if(o){var n=Br(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wr(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={search:e.query,suggestions:[]},t.handleChange=t.handleChange.bind(Wr(t)),t.submitSearch=t.submitSearch.bind(Wr(t)),t.getSuggestions=t.getSuggestions.bind(Wr(t)),t.selectItem=t.selectItem.bind(Wr(t)),t.fetchAutocomplete=nr()(t.fetchAutocomplete.bind(Wr(t)),500),t.receiveAutocomplete=t.receiveAutocomplete.bind(Wr(t)),t}return t=a,n=[{key:"componentDidUpdate",value:function(e){var t=this.props.query;t!==e.query&&this.setState({search:t})}},{key:"handleChange",value:function(e,t,n){("reset"!==n||t)&&(this.setState({search:t,suggestions:[]}),t&&this.fetchAutocomplete(t))}},{key:"getSuggestions",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).showEmpty,n=void 0!==t&&t,r=this.state.suggestions;return 0!==er()(e.trim()).toLowerCase().length||n?r:[]}},{key:"fetchAutocomplete",value:function(e){var t=this.props.autocompleteService;t&&e&&fetch("".concat(t.id,"?q=").concat(e)).then((function(e){return e.json()})).then(this.receiveAutocomplete)}},{key:"receiveAutocomplete",value:function(e){this.setState({suggestions:e.terms})}},{key:"submitSearch",value:function(e){var t=this.props,n=t.companionWindowId,r=t.fetchSearch,o=t.searchService,i=t.windowId,a=this.state.search;e&&e.preventDefault(),a&&r(i,n,"".concat(o.id,"?q=").concat(a),a)}},{key:"selectItem",value:function(e,t,n){t&&Fr(t)&&this.setState({search:Fr(t)},this.submitSearch)}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.companionWindowId,r=e.searchIsFetching,o=e.t,i=e.windowId,a=this.state,s=a.search,l=a.suggestions,u="search-".concat(n);return c.createElement(c.Fragment,null,c.createElement("form",{onSubmit:this.submitSearch,className:t.form},c.createElement(Er,{id:u,inputValue:s,options:l,getOptionLabel:Fr,getOptionSelected:function(e,t){return er()(Fr(e).trim()).toLowerCase()===er()(Fr(t).trim()).toLowerCase()},noOptionsText:"",onChange:this.selectItem,onInputChange:this.handleChange,freeSolo:!0,renderInput:function(e){return c.createElement(Or.A,Object.assign({},e,{label:o("searchInputLabel"),InputProps:Nr(Nr({},e.InputProps),{},{endAdornment:c.createElement("div",{className:t.endAdornment},c.createElement(ye.A,{"aria-label":o("searchSubmitAria"),type:"submit"},c.createElement(Sr.A,null)),Boolean(r)&&c.createElement(xr.A,{className:t.searchProgress,size:50}))})}))}})),c.createElement(jr,{windowId:i,companionWindowId:n}))}}],n&&Lr(t.prototype,n),a}(c.Component);Hr.defaultProps={autocompleteService:void 0,classes:{},query:"",t:function(e){return e}};var Vr={fetchSearch:Qn.$Q},Ur=(0,r.Zz)((0,o.Ng)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{autocompleteService:(0,Ye.J4)(e,{windowId:r}),query:(0,Ir.V8)(e,{companionWindowId:n,windowId:r}),searchIsFetching:(0,Ir.bq)(e,{companionWindowId:n,windowId:r}),searchService:(0,Ye.B8)(e,{windowId:r})}}),Vr),(0,a.A)((function(e){return{endAdornment:{position:"absolute",right:0},form:{paddingBottom:e.spacing(1),paddingRight:e.spacing(1.5),width:"100%"},searchProgress:{position:"absolute",right:0}}})),(0,i.C)(),(0,s.h)("SearchPanelControls"));const Gr=Ur(Hr);var qr=n(73486),$r=n(87618),Kr=n(96162),Zr=n(50384);function Xr(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 Yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Qr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.maxChars,i=void 0===o?200:o,a=r.minimum,s=void 0===a?20:a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hit=t,this.annotation=n,this.maxChars=i||200,this.minimum=s||20}var t,n;return t=e,(n=[{key:"match",get:function(){return this.hit.match||this.annotation&&this.annotation.resource.resource.chars||"-"}},{key:"charsOnSide",get:function(){var e,t=(this.maxChars-this.match.length)/2,n=[(this.hit.before||"").length,(this.hit.after||"").length].filter((function(e){return e>0}));return Math.max(Math.min.apply(Math,[t].concat(function(e){if(Array.isArray(e))return Xr(e)}(e=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xr(e,t):void 0}}(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.")}())),this.minimum)}},{key:"before",get:function(){return this.hit.before?this.hit.before.substring(this.hit.before.length-this.charsOnSide,this.hit.before.length):""}},{key:"after",get:function(){return this.hit.after?this.hit.after.substring(0,Math.min(this.hit.after.length,this.charsOnSide)):""}}])&&Yr(t.prototype,n),e}();function Jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function to(e,t){return to=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},to(e,t)}function no(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ro(e)}var oo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&to(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ro(r);if(o){var n=ro(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return no(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleClick=t.handleClick.bind(no(t)),t}return t=a,n=[{key:"componentDidMount",value:function(){this.props.selected&&this.announceHit()}},{key:"componentDidUpdate",value:function(e){var t=this.props.selected;t&&t!==e.selected&&this.announceHit()}},{key:"handleClick",value:function(){var e=this.props,t=e.annotation,n=e.annotationId,r=e.selectAnnotation;t&&n&&r(n)}},{key:"announceHit",value:function(){var e=this.props,t=e.annotation,n=e.annotationLabel,r=e.announcer,o=e.canvasLabel,i=e.hit,a=e.index,s=e.t,l=e.total;if(i){var c=new Qr(i,t);r([s("pagination",{current:a+1,total:l}),o,n,c.before,c.match,c.after].join(" "))}}},{key:"render",value:function(){var e,t=this.props,n=t.adjacent,r=t.annotation,o=t.annotationLabel,i=t.canvasLabel,a=t.classes,s=t.companionWindowId,l=t.containerRef,u=t.hit,d=t.focused,f=t.index,p=t.showDetails,h=t.selected,m=t.t,g=t.windowSelected;if(d&&!h)return null;var v=d?u:u&&new Qr(u,r),y=u&&v.before!==u.before&&v.after!==u.after,b="".concat(s,"-").concat(f);return c.createElement(De,{containerRef:l,offsetTop:96,scrollTo:g&&!d},c.createElement(Zr.A,{className:(0,Ae.default)(a.listItem,(e={},Jr(e,a.adjacent,n),Jr(e,a.selected,h),Jr(e,a.focused,d),Jr(e,a.windowSelected,g),e)),button:!h,component:"li",onClick:this.handleClick,selected:h},c.createElement(ke.A,{primaryTypographyProps:{variant:"body1"}},c.createElement(he.A,{variant:"subtitle2",className:a.subtitle},c.createElement(_e.A,{component:"span",label:f+1,className:a.hitCounter}),c.createElement("span",{id:b},i)),o&&c.createElement(he.A,{variant:"subtitle2"},o),u&&c.createElement(c.Fragment,null,c.createElement(Pe.A,{ruleSet:"iiif",htmlString:v.before})," ",c.createElement("strong",null,c.createElement(Pe.A,{ruleSet:"iiif",htmlString:v.match}))," ",c.createElement(Pe.A,{ruleSet:"iiif",htmlString:v.after})," ",y&&!d&&c.createElement(gt.A,{className:a.inlineButton,onClick:p,color:"secondary",size:"small","aria-describedby":b},m("more"))),!u&&r&&c.createElement(Pe.A,{ruleSet:"iiif",htmlString:r.chars}))))}}],n&&eo(t.prototype,n),a}(c.Component);function io(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 ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){so(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function so(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lo(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}oo.defaultProps={adjacent:!1,annotation:void 0,annotationId:void 0,annotationLabel:void 0,canvasLabel:void 0,classes:{},companionWindowId:void 0,containerRef:void 0,focused:!1,hit:void 0,index:void 0,selectAnnotation:function(){},selected:!1,showDetails:function(){},t:function(e){return e},total:void 0,windowSelected:!1};var co=(0,r.Zz)((0,o.Ng)((function(e,t){var n,r=t.annotationId,o=t.hit,i=void 0===o?{annotations:[]}:o,a=t.companionWindowId,s=t.windowId,l=r||i.annotations[0],c=(0,Ir.KB)(e,{annotationUri:l,companionWindowId:a,windowId:s}),u=(0,Ir.wt)(e,{annotationUri:l,companionWindowId:a,windowId:s}),d=(0,H.tv)(e,{windowId:s}),f=(0,Ir.SU)(e,{companionWindowId:a,windowId:s}),p=(0,pe.e3)(e,{windowId:s}),h=[r].concat(function(e){if(Array.isArray(e))return lo(e)}(n=i.annotations)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lo(e,t):void 0}}(n)||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.")}());return{adjacent:d.includes(c.targetId),annotation:c,annotationId:l,annotationLabel:u[0],canvasLabel:c&&(0,H.T2)(e,{canvasId:c.targetId,windowId:s}),selected:f[0]&&h.includes(f[0]),windowSelected:p&&h.includes(p)}}),(function(e,t){var n=t.windowId;return{selectAnnotation:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(me.gN.apply(F,[n].concat(r)))}}})),(0,a.A)((function(e){return{adjacent:{},focused:{},hitCounter:ao(ao({},e.typography.subtitle2),{},{backgroundColor:e.palette.hitCounter.default,height:30,marginRight:e.spacing(1),verticalAlign:"inherit"}),inlineButton:{"& span":{lineHeight:"1.5em"},margin:0,padding:0,textTransform:"none"},listItem:{"&$adjacent":{"& $hitCounter":{backgroundColor:e.palette.highlights.secondary},"&$windowSelected":{"& $hitCounter":{backgroundColor:e.palette.highlights.primary}}},"&$windowSelected":{"& $hitCounter":{backgroundColor:e.palette.highlights.primary},"&$focused":{"&:hover":{backgroundColor:"inherit"},backgroundColor:"inherit"}},borderBottom:"0.5px solid ".concat(e.palette.divider),paddingRight:8},selected:{},subtitle:{marginBottom:e.spacing(1.5)},windowSelected:{}}})),(0,i.C)(),(0,s.h)("SearchHit"));const uo=co(oo);function fo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function po(e,t){return po=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},po(e,t)}function ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mo(e){return mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mo(e)}var go=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&po(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=mo(r);if(o){var n=mo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ho(e)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={focused:!1},t.toggleFocus=t.toggleFocus.bind(ho(t)),t}return t=a,n=[{key:"toggleFocus",value:function(){var e=this.state.focused;this.setState({focused:!e})}},{key:"renderSearchHitsAndAnnotations",value:function(e){var t=this,n=this.props,r=n.companionWindowId,o=n.containerRef,i=n.searchAnnotations,a=n.searchHits,s=n.windowId,l=this.state.focused;return 0===a.length&&i.length>0?i.map((function(n,a){return c.createElement(uo,{announcer:e,annotationId:n.id,companionWindowId:r,containerRef:o,key:n.id,focused:l,index:a,total:i.length,windowId:s,showDetails:t.toggleFocus})})):a.map((function(n,i){return c.createElement(uo,{announcer:e,containerRef:o,companionWindowId:r,key:n.annotations[0],focused:l,hit:n,index:i,total:a.length,windowId:s,showDetails:t.toggleFocus})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.companionWindowId,o=t.containerRef,i=t.isFetching,a=t.fetchSearch,s=t.nextSearch,l=t.query,u=t.searchAnnotations,d=t.searchHits,f=t.searchNumTotal,p=t.t,h=t.windowId,m=this.state.focused,g=l&&!i&&0===d.length&&0===u.length;return c.createElement(c.Fragment,null,m&&c.createElement(De,{containerRef:o,offsetTop:96,scrollTo:!0},c.createElement(gt.A,{onClick:this.toggleFocus,className:n.navigation,size:"small"},c.createElement($r.A,null),p("backToResults"))),g&&c.createElement(he.A,{className:n.noResults},p("searchNoResults")),c.createElement(qr.A,{disablePadding:!0},c.createElement(Kr.uj,null,(function(t){var n=t.announcePolite;return e.renderSearchHitsAndAnnotations(n)}))),s&&c.createElement(gt.A,{className:n.moreButton,color:"secondary",onClick:function(){return a(h,r,s,l)}},p("moreResults"),c.createElement("br",null),"(".concat(p("searchResultsRemaining",{numLeft:f-d.length}),")")))}}],n&&fo(t.prototype,n),a}(c.Component);function vo(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 yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach((function(t){bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}go.defaultProps={classes:{},containerRef:void 0,isFetching:!1,nextSearch:void 0,query:void 0,searchAnnotations:[],searchHits:[],searchNumTotal:void 0,t:function(e){return e}};var wo={fetchSearch:Qn.$Q},Eo=(0,r.Zz)((0,o.Ng)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{isFetching:(0,Ir.bq)(e,{companionWindowId:n,windowId:r}),nextSearch:(0,Ir.TU)(e,{companionWindowId:n,windowId:r}),query:(0,Ir.V8)(e,{companionWindowId:n,windowId:r}),searchAnnotations:(0,Ir.TA)(e,{companionWindowId:n,windowId:r}),searchHits:(0,Ir.XK)(e,{companionWindowId:n,windowId:r}),searchNumTotal:(0,Ir.LR)(e,{companionWindowId:n,windowId:r})}}),wo),(0,a.A)((function(e){return{moreButton:{width:"100%"},navigation:{textTransform:"none"},noResults:yo(yo({},e.typography.h6),{},{padding:e.spacing(2)}),toggleFocus:yo({},e.typography.subtitle1)}})),(0,i.C)(),(0,s.h)("SearchResults"));const xo=Eo(go);function Oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function So(e,t){return So=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},So(e,t)}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}var _o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&So(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ao(r);if(o){var n=Ao(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).containerRef=c.createRef(),t}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.fetchSearch,r=e.windowId,o=e.id,i=e.query,a=e.removeSearch,s=e.searchService,l=e.suggestedSearches,u=e.t;return c.createElement(Ve.A,{ariaLabel:u("searchTitle"),title:c.createElement(c.Fragment,null,u("searchTitle"),i&&""!==i&&c.createElement(_e.A,{className:t.clearChip,color:"secondary",label:u("clearSearch"),onClick:a,onDelete:a,size:"small",variant:"outlined"})),windowId:r,id:o,titleControls:c.createElement(Gr,{companionWindowId:o,windowId:r}),ref:this.containerRef},c.createElement(xo,{containerRef:this.containerRef,companionWindowId:o,windowId:r}),n&&l&&""===i&&l.map((function(e){return c.createElement(he.A,{component:"p",key:e,variant:"body1"},c.createElement(gt.A,{className:t.inlineButton,color:"secondary",onClick:function(){return n("".concat(s.id,"?q=").concat(e),e)}},u("suggestSearch",{query:e})))})))}}],n&&Oo(t.prototype,n),a}(c.Component);_o.defaultProps={classes:{},fetchSearch:void 0,query:"",suggestedSearches:[],t:function(e){return e}};var Co=(0,r.Zz)((0,o.Ng)((function(e,t){var n=t.id,r=t.windowId;return{query:(0,Ir.V8)(e,{companionWindowId:n,windowId:r}),searchService:(0,Ye.B8)(e,{windowId:r}),suggestedSearches:(0,le.zk)(e,{windowId:r}).suggestedSearches}}),(function(e,t){return{fetchSearch:function(n,r){return e(Qn.$Q(t.windowId,t.id,n,r))},removeSearch:function(){return e(Qn.Vw(t.windowId,t.id))}}})),(0,a.A)((function(e){return{clearChip:{marginLeft:e.spacing(1)},inlineButton:{"& span":{lineHeight:"1.5em"},margin:e.spacing(2),padding:0,textAlign:"inherit",textTransform:"none"}}})),(0,i.C)(),(0,s.h)("SearchPanel"));const To=Co(_o);var ko=n(38746),Po=n(60821),Io=n(54011),Ro=n(8728),jo=n(64054),Do=n(44041),No=n(74454),Mo=n(87888),Lo=n(91195);function zo(e,t){var n=(0,c.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,c.useRef)(!0),o=(0,c.useRef)(n),i=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,c.useEffect)((function(){r.current=!1,o.current=i}),[i]),i.result}var Wo=zo,Bo=function(e,t){return zo((function(){return e}),t)},Fo=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Ho=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Vo=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Uo={top:0,right:0,bottom:0,left:0},Go=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Uo:n,o=e.border,i=void 0===o?Uo:o,a=e.padding,s=void 0===a?Uo:a,l=Fo(Ho(t,r)),c=Fo(Vo(t,i)),u=Fo(Vo(c,s));return{marginBox:l,borderBox:Fo(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:s}},qo=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(){throw new Error("Invariant failed")}(),n},$o=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Go({borderBox:l,border:i,margin:a,padding:s})},Ko=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),$o(e,t)},Zo=function(e,t){var n={top:qo(t.marginTop),right:qo(t.marginRight),bottom:qo(t.marginBottom),left:qo(t.marginLeft)},r={top:qo(t.paddingTop),right:qo(t.paddingRight),bottom:qo(t.paddingBottom),left:qo(t.paddingLeft)},o={top:qo(t.borderTopWidth),right:qo(t.borderRightWidth),bottom:qo(t.borderBottomWidth),left:qo(t.borderLeftWidth)};return Go({borderBox:e,margin:n,padding:r,border:o})},Xo=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Zo(t,n)};const Yo=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};var Qo=n(40961);function Jo(e,t){}function ei(){}function ti(e,t,n){var r=t.map((function(t){var r,o,i=(r=n,o=t.options,(0,b.A)({},r,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){r.forEach((function(e){e()}))}}Jo.bind(null,"warn"),Jo.bind(null,"error");function ni(e){this.message=e}function ri(e,t){if(!e)throw new ni("Invariant failed")}ni.prototype.toString=function(){return this.message};var oi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=ei,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof ni&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,E.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=ti(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof ni))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(c.Component),ii=function(e){return e+1},ai=function(e,t){var n=e.droppableId===t.droppableId,r=ii(e.index),o=ii(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},si=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},li=function(e){return"\n The item has returned to its starting position\n of "+ii(e.index)+"\n"},ci=function(e){return"\n You have lifted an item in position "+ii(e.source.index)+"\n"},ui=function(e){var t=e.destination;if(t)return ai(e.source,t);var n=e.combine;return n?si(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},di=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+li(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+ai(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+si(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+li(e.source)+"\n "},fi={x:0,y:0},pi=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},hi=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},mi=function(e,t){return e.x===t.x&&e.y===t.y},gi=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},vi=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},yi=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},bi=function(e,t){return Math.min.apply(Math,t.map((function(t){return yi(e,t)})))},wi=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ei=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},xi=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Oi=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Fo({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):Fo(e)},Si=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?Ei(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?(0,b.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:Oi(a,o)}},Ai=function(e,t){e.frame||ri(!1);var n=e.frame,r=hi(t,n.scroll.initial),o=gi(r),i=(0,b.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),a=Si({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return(0,b.A)({},e,{frame:i,subject:a})};function _i(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Ci(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Ti(e,t){if(e.find)return e.find(t);var n=Ci(e,t);return-1!==n?e[n]:void 0}function ki(e){return Array.prototype.slice.call(e)}var Pi=S((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ii=S((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ri=S((function(e){return _i(e)})),ji=S((function(e){return _i(e)})),Di=S((function(e,t){var n=ji(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function Ni(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Mi(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Li=S((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),zi=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Wi={point:fi,value:0},Bi={invisible:{},visible:{},all:[]},Fi={displaced:Bi,displacedBy:Wi,at:null},Hi=function(e,t){return function(n){return e<=n&&n<=t}},Vi=function(e){var t=Hi(e.top,e.bottom),n=Hi(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||a&&i||s&&o}},Ui=function(e){var t=Hi(e.top,e.bottom),n=Hi(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Gi={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},qi={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},$i=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:fi;return Ei(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},Ki=function(e){return $i((0,b.A)({},e,{isVisibleThroughFrameFn:Ui}))};function Zi(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s,l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Fo(Ho(n,r))}(t,r),c=t.descriptor.id;if(e.all.push(c),s={target:l,destination:n,viewport:o,withDroppableDisplacement:!0},!$i((0,b.A)({},s,{isVisibleThroughFrameFn:Vi})))return e.invisible[t.descriptor.id]=!0,e;var u=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(c,a,i),d={draggableId:c,shouldAnimate:u};return e.visible[c]=d,e}),{all:[],visible:{},invisible:{}})}function Xi(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Bi,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Yi(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=zi(t,r);if(null==s)return Xi({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=Ti(n,(function(e){return e.descriptor.index===s}));if(!u)return Xi({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=Li(t,n),f=n.indexOf(u);return{displaced:Zi({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function Qi(e,t){return Boolean(t.effected[e])}var Ji=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ea=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},ta=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return vi(t.line,n.marginBox[t.end]+Ji(t,r),ea(t,n.marginBox,r))},na=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return vi(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),ea(t,n.marginBox,r))},ra=function(e,t){var n=e.frame;return n?pi(t,n.scroll.diff.displacement):t},oa=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Di(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return vi(t.line,n.contentBox[t.start]+Ji(t,r),ea(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(Qi(d,i))return na({axis:l,moveRelativeTo:f.page,isMoving:s});var p=$o(f.page,u.point);return na({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(Qi(h.descriptor.id,i)){var m=$o(h.page,gi(i.displacedBy.point));return ta({axis:l,moveRelativeTo:m,isMoving:s})}return ta({axis:l,moveRelativeTo:h.page,isMoving:s})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Mi(n);o||ri(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return Qi(r,n)?i?fi:gi(o.point):i?o.point:fi}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return pi(a,s)}({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?ra(n,t):t},ia=function(e,t){var n=hi(t,e.scroll.initial),r=gi(n);return{frame:Fo({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function aa(e,t){return e.map((function(e){return t[e]}))}var sa=function(e){var t,n,r=e.pageBorderBoxCenter,o=e.draggable,i=(t=e.viewport,n=r,pi(t.scroll.diff.displacement,n)),a=hi(i,o.page.borderBox.center);return pi(o.client.borderBox.center,a)},la=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=hi(r,t.page.borderBox.center),c={target:Ei(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return s?function(e){return $i((0,b.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Hi(e.top,e.bottom),r=Hi(e.left,e.right);return function(e){return t===Gi?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):Ki(c)},ca=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var u=Di(r.descriptor.id,o),d=zi(n,r),f=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Ni(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,b.A)({},i,{at:t})}var s=i.displaced.all,l=s.length?s[0]:null;if(t)return l?a(l):null;var c=Li(n,o);if(!l)return c.length?a(c[c.length-1].descriptor.id):null;var u=Ci(c,(function(e){return e.descriptor.id===l}));-1===u&&ri(!1);var d=u-1;return d<0?null:a(c[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:i})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||ri(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:Yi({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=r.draggableId,a=n[i].descriptor.index;return Qi(i,o)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:Yi({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})}({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:i,viewport:a,afterCritical:c});if(!f)return null;var p=oa({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:c});if(la({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:sa({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:f,scrollJumpRequest:null};var h=hi(p,s),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=ia(n,pi(n.scroll.current,i)),s=r.frame?Ai(r,pi(r.frame.scroll.current,i)):r,l=t.displaced,c=Zi({afterDragging:aa(l.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=Zi({afterDragging:aa(l.all,o),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},f={},p=[l,c,u];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?f[e]=t:d[e]=!0})),(0,b.A)({},t,{displaced:{all:l.all,invisible:d,visible:f}})}({impact:f,viewport:a,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:l,impact:m,scrollJumpRequest:h}},ua=function(e){var t=e.subject.active;return t||ri(!1),t},da=function(e,t){var n=e.page.borderBox.center;return Qi(e.descriptor.id,t)?hi(n,t.displacedBy.point):n},fa=function(e,t){var n=e.page.borderBox;return Qi(e.descriptor.id,t)?Ei(n,gi(t.displacedBy.point)):n},pa=S((function(e,t){var n=t[e.line];return{value:n,point:vi(e.line,n)}})),ha=function(e,t){return(0,b.A)({},e,{scroll:(0,b.A)({},e.scroll,{max:t})})},ma=function(e,t,n){var r=e.frame;zi(t,e)&&ri(!1),e.subject.withPlaceholder&&ri(!1);var o=pa(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return vi(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Di(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:vi(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var s=Si({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return(0,b.A)({},e,{subject:s})}var l=i?pi(r.scroll.max,i):r.scroll.max,c=ha(r,l),u=Si({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:c});return(0,b.A)({},e,{subject:u,frame:c})},ga=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},va=function(e){var t=e.state,n=e.type,r=function(e,t){var n=ga(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?ca({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=Hi(a[s.start],a[s.end]),c=Ri(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Vi(i.frame)(ua(e))})).filter((function(e){var n=ua(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=ua(e),n=Hi(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=ua(e)[s.crossAxisStart],o=ua(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return ua(e)[s.crossAxisStart]===ua(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Hi(ua(e)[s.start],ua(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return ua(e)[s.start]-ua(t)[s.start]}))[0]:c.sort((function(e,t){var r=bi(n,xi(ua(e))),o=bi(n,xi(ua(t)));return r!==o?r-o:ua(e)[s.start]-ua(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!c)return null;var u=Di(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,i=e.insideDestination.filter((function(e){return Ki({target:fa(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=yi(t,ra(r,da(e,o))),a=yi(t,ra(r,da(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return i[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Bi,displacedBy:Wi,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=oa({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=zi(o,a)?a:ma(a,o,i);return la({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f,p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(f=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?f:f+1);return Yi({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:pa(a.axis,o.displaceBy),last:Bi,index:h})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=oa({impact:f,draggable:r,droppable:c,draggables:i,afterCritical:l});return{clientSelection:sa({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}}({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function ya(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function ba(e){var t=Hi(e.top,e.bottom),n=Hi(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}var wa=function(e,t){return Fo(Ei(e,t))};function Ea(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var xa=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=wa(n.page.borderBox,t),c=function(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ri(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(ba(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=Hi(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=vi(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:yi(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:l,draggable:n,droppables:o});if(!c)return Fi;var u=o[c],d=Di(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?wa(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=pa(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Ti(Li(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=Qi(t,a),l=Ea({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&d<n[s.end]-o:u>n[s.start]-c+o&&u<n[s.end]-c-o:l?d>n[s.start]+c+o&&d<n[s.end]+c-o:u>n[s.start]+o&&u<n[s.end]-o}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=pa(r.axis,n.displaceBy),u=c.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ti(Li(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=Qi(t,s),o=Ea({displaced:i,id:t});return r?o?f<=n:d<n-u:o?f<=n+u:d<n})),inHomeList:zi(n,r)});return Yi({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},Oa=function(e,t){var n;return(0,b.A)({},e,((n={})[t.descriptor.id]=t,n))},Sa=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,s=o||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,u=hi(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:pi(t.initial.client.borderBoxCenter,u)},f={selection:pi(d.selection,s.scroll.current),borderBoxCenter:pi(d.borderBoxCenter,s.scroll.current),offset:pi(d.offset,s.scroll.diff.value)},p={client:d,page:f};if("COLLECTING"===t.phase)return(0,b.A)({phase:"COLLECTING"},t,{dimensions:l,viewport:s,current:p});var h=l.draggables[t.critical.draggable.id],m=i||xa({pageOffset:f.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.impact,i=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=ga(t),i=ga(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var s=function(e){var t=e.subject.withPlaceholder;t||ri(!1);var n=e.frame;if(!n){var r=Si({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,b.A)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||ri(!1);var i=ha(n,o),a=Si({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return(0,b.A)({},e,{subject:a,frame:i})}(a);return Oa(r,s)}({previousImpact:e.previousImpact,impact:o,droppables:r}),a=ga(o);if(!a)return i;var s=r[a];if(zi(t,s))return i;if(s.subject.withPlaceholder)return i;var l=ma(s,t,n);return Oa(i,l)}({draggable:h,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return(0,b.A)({},t,{current:p,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},Aa=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r),l=Zi({afterDragging:s,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a});return(0,b.A)({},t,{displaced:l})},_a=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=oa({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return sa({pageBorderBoxCenter:s,draggable:n,viewport:i})},Ca=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ri(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=ga(o);u||ri(!1);var d=l[u],f=Aa({impact:o,viewport:i,destination:d,draggables:s}),p=_a({impact:f,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return Sa({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},Ta=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=pa(n.axis,t.displaceBy),a=Di(n.descriptor.id,r),s=a.indexOf(t);-1===s&&ri(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:Zi({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},ka=function(e){return"SNAP"===e.movementMode},Pa=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Oa(e.droppables,t)}}(e.dimensions,t);return!ka(e)||n?Sa({state:e,dimensions:r}):Ca({state:e,dimensions:r})};function Ia(e){return e.isDragging&&"SNAP"===e.movementMode?(0,b.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Ra={phase:"IDLE",completed:null,shouldFlush:!1},ja=function(e,t){if(void 0===e&&(e=Ra),"FLUSH"===t.type)return(0,b.A)({},Ra,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ri(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],u={selection:o,borderBoxCenter:l.client.borderBox.center,offset:fi},d={client:u,page:{selection:pi(u.selection,i.scroll.initial),borderBoxCenter:pi(u.selection,i.scroll.initial),offset:pi(u.selection,i.scroll.diff.value)}},f=Ri(a.droppables).every((function(e){return!e.isFixedOnPage})),p=Ta({draggable:l,home:c,draggables:a.draggables,viewport:i}),h=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:d,current:d,isWindowScrollAllowed:f,impact:h,afterCritical:p.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ri(!1),(0,b.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ri(!1),function(e){var t=e.state,n=e.published,r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Ai(n,e.scroll)})),o=(0,b.A)({},t.dimensions.droppables,{},Pi(r)),i=Ii(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||ri(!1),t}(n[t]),a=i.scroll.diff.value,s=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=$o(t.client,n),i=Ko(o,r);return(0,b.A)({},t,{placeholder:(0,b.A)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:pi(o,a),initialWindowScroll:r.scroll.initial});return s}))}({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=(0,b.A)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var s={droppables:o,draggables:a},l=ga(t.impact),c=l?s.droppables[l]:null,u=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],f=Ta({draggable:u,home:d,draggables:a,viewport:t.viewport}),p=f.impact,h=f.afterCritical,m=c&&c.isCombineEnabled?t.impact:p,g=xa({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h}),v=(0,b.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:p,dimensions:s,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:(0,b.A)({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;ya(e)||ri(!1);var m=t.payload.client;return mi(m,e.current.client.selection)?e:Sa({state:e,clientSelection:m,impact:ka(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ia(e);if("COLLECTING"===e.phase)return Ia(e);ya(e)||ri(!1);var g=t.payload,v=g.id,y=g.newScroll,w=e.dimensions.droppables[v];if(!w)return e;var E=Ai(w,y);return Pa(e,E,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ya(e)||ri(!1);var x=t.payload,O=x.id,S=x.isEnabled,A=e.dimensions.droppables[O];A||ri(!1),A.isEnabled===S&&ri(!1);var _=(0,b.A)({},A,{isEnabled:S});return Pa(e,_,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ya(e)||ri(!1);var C=t.payload,T=C.id,k=C.isCombineEnabled,P=e.dimensions.droppables[T];P||ri(!1),P.isCombineEnabled===k&&ri(!1);var I=(0,b.A)({},P,{isCombineEnabled:k});return Pa(e,I,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;ya(e)||ri(!1),e.isWindowScrollAllowed||ri(!1);var R=t.payload.newScroll;if(mi(e.viewport.scroll.current,R))return Ia(e);var j=ia(e.viewport,R);return ka(e)?Ca({state:e,viewport:j}):Sa({state:e,viewport:j})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!ya(e))return e;var D=t.payload.maxScroll;if(mi(D,e.viewport.scroll.max))return e;var N=(0,b.A)({},e.viewport,{scroll:(0,b.A)({},e.viewport.scroll,{max:D})});return(0,b.A)({phase:"DRAGGING"},e,{viewport:N})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ri(!1);var M=va({state:e,type:t.type});return M?Sa({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&ri(!1),(0,b.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var z=t.payload,W=z.completed,B=z.dropDuration,F=z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ri(!1),{phase:"DROP_ANIMATING",completed:W,dropDuration:B,newHomeClientOffset:F,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Da=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Na=function(){return{type:"COLLECTION_STARTING",payload:null}},Ma=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},La=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},za=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Wa=function(e){return{type:"MOVE",payload:e}},Ba=function(){return{type:"MOVE_UP",payload:null}},Fa=function(){return{type:"MOVE_DOWN",payload:null}},Ha=function(){return{type:"MOVE_RIGHT",payload:null}},Va=function(){return{type:"MOVE_LEFT",payload:null}},Ua=function(e){return{type:"DROP_COMPLETE",payload:e}},Ga=function(e){return{type:"DROP",payload:e}},qa="cubic-bezier(.2,1,.1,1)",$a=0,Ka=.7,Za=.75,Xa="0.2s cubic-bezier(0.2, 0, 0, 1)",Ya={fluid:"opacity "+Xa,snap:"transform "+Xa+", opacity "+Xa,drop:function(e){var t=e+"s "+qa;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Xa,placeholder:"height "+Xa+", width "+Xa+", margin "+Xa},Qa=function(e){return mi(e,fi)?null:"translate("+e.x+"px, "+e.y+"px)"},Ja=Qa,es=.33,ts=.55-es,ns=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&ri(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ri(!1);var a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,b.A)({},r,{displaced:Bi}),didDropInsideDroppable:!0}:{impact:Aa({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),u=c.impact,d=c.didDropInsideDroppable,f=d?Ni(u):null,p=d?Mi(u):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:f,combine:p},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=ga(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=_a({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return hi(d,n.client.borderBox.center)}({impact:u,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:u};if(!mi(o.current.client.offset,g)||Boolean(m.combine)){var y=function(e){var t=e.reason,n=yi(e.current,e.destination);if(n<=0)return es;if(n>=1500)return.55;var r=es+ts*(n/1500);return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:g,reason:i});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:g,dropDuration:y,completed:v}})}else n(Ua({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},rs=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var os=function(e){var t=function(e){var t=e.onWindowScroll,n=Yo((function(){t(rs())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=ei;function i(){return o!==ei}return{start:function(){i()&&ri(!1),o=ti(window,[r])},stop:function(){i()||ri(!1),n.cancel(),o(),o=ei},isActive:i}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},is=function(e,t){t()},as=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},ss=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},ls=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=Ci(n,(function(t){return t.timerId===e}));-1===t&&ri(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,i=function(n){o||ri(!1),o=null,is(0,(function(){return ss(e().onDragEnd,n,t,di)}))};return{beforeCapture:function(t,n){o&&ri(!1),is(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&ri(!1),is(0,(function(){var r=e().onBeforeDragStart;r&&r(as(t,n))}))},start:function(n,i){o&&ri(!1);var a=as(n,i);o={mode:i,lastCritical:n,lastLocation:a.source,lastCombine:null},r.add((function(){is(0,(function(){return ss(e().onDragStart,a,t,ci)}))}))},update:function(n,i){var a=Ni(i),s=Mi(i);o||ri(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,o.lastCritical);l&&(o.lastCritical=n);var c,u,d=(u=a,!(null==(c=o.lastLocation)&&null==u||null!=c&&null!=u&&c.droppableId===u.droppableId&&c.index===u.index));d&&(o.lastLocation=a);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,s);if(f&&(o.lastCombine=s),l||d||f){var p=(0,b.A)({},as(n,o.mode),{combine:s,destination:a});r.add((function(){is(0,(function(){return ss(e().onDragUpdate,p,t,ui)}))}))}},flush:function(){o||ri(!1),r.flush()},drop:i,abort:function(){if(o){var e=(0,b.A)({},as(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},cs=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ri(!1),e.dispatch(Ua({completed:r.completed}))}else t(n)}}},us=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=ti(window,[i])}))}}}},ds=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(Ga({reason:r.reason})))}}}},fs=r.Zz,ps=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=hi({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},hs=function(){var e=document.documentElement;return e||ri(!1),e},ms=function(){var e=hs();return ps({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function gs(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var vs,ys,bs=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null;var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(fi)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||ri(!1);var o=n.critical.draggable;"ADDITION"===t.type&&gs(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&gs(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||ri(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||ri(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||ri(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&ri(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},function(e){var t,n,r,o,i,a,s,l=e.critical,c=e.scrollOptions,u=e.registry,d=(t=rs(),n=ms(),r=t.y,o=t.x,a=(i=hs()).clientWidth,s=i.clientHeight,{frame:Fo({top:r,left:o,right:o+a,bottom:r+s}),scroll:{initial:t,current:t,max:n,diff:{value:fi,displacement:fi}}}),f=d.scroll.current,p=l.droppable,h=u.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(f,c)})),m=u.draggable.getAllByType(l.draggable.type).map((function(e){return e.getDimension(f)}));return{dimensions:{draggables:Ii(m),droppables:Pi(h)},critical:l,viewport:d}}({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},ws=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},Es=function(e){window.scrollBy(e.x,e.y)},xs=S((function(e){return Ri(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Os=function(e){return Math.pow(e,2)},Ss=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},As=360,_s=1200,Cs=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=Ss({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*Os(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=_s,o=Date.now()-n;if(o>=_s)return e;if(o<As)return 1;var i=Ss({startOfRange:As,endOfRange:r,current:o}),a=e*Os(i);return Math.ceil(a)}(i,r),1):i},Ts=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return n[o.end]<n[o.start]?Cs({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*Cs({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},ks=wi((function(e){return 0===e?0:e})),Ps=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=Ts({container:n,distanceToEdges:a,dragStartTime:t,axis:Gi,shouldUseTimeDampening:i}),l=Ts({container:n,distanceToEdges:a,dragStartTime:t,axis:qi,shouldUseTimeDampening:i}),c=ks({x:l,y:s});if(mi(c,fi))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?mi(u,fi)?null:u:null},Is=wi((function(e){return 0===e?0:e>0?1:-1})),Rs=(vs=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=pi(t,r),i={x:vs(o.x,n.x),y:vs(o.y,n.y)};return mi(i,fi)?null:i}),js=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=Is(r),a=Rs({max:o,current:n,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},Ds=function(e,t){return js({current:e.scroll.current,max:e.scroll.max,change:t})},Ns=function(e,t){var n=e.frame;return!!n&&js({current:n.scroll.current,max:n.scroll.max,change:t})},Ms=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,i=Ps({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return i&&Ds(t,i)?i:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var c=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=Ti(xs(t),(function(t){return t.frame||ri(!1),ba(t.frame.pageMarginBox)(e)}));return n}(t,r);return i}({center:a,destination:ga(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=Ps({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&Ns(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},Ls=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=ga(e.impact);i||ri(!1);var a=function(e,t){if(!Ns(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Ns(e,t)?Rs({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=hi(t,r);return n(e.descriptor.id,o),hi(t,o)}(e.dimensions.droppables[i],o);if(a){var s=e.viewport,l=function(e,t,n){if(!e)return n;if(!Ds(t,n))return n;var o=function(e,t){if(!Ds(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Rs({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=hi(n,o);return r(i),hi(n,i)}(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=pi(e.current.client.selection,n);t({client:r})}(e,l)}}}},zs="data-rbd",Ws={base:ys=zs+"-drag-handle",draggableId:ys+"-draggable-id",contextId:ys+"-context-id"},Bs=function(){var e=zs+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Fs=function(){var e=zs+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Hs={contextId:zs+"-scroll-container-context-id"},Vs=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Us="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect,Gs=function(){var e=document.querySelector("head");return e||ri(!1),e},qs=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var $s=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Ks(e){return e instanceof $s(e).HTMLElement}function Zs(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ri(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return _i(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||ri(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return _i(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Xs=c.createContext(null),Ys=function(){var e=document.body;return e||ri(!1),e},Qs={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Js=0,el={separator:"::"};function tl(e,t){return void 0===t&&(t=el),Wo((function(){return""+e+t.separator+Js++}),[t.separator,e])}var nl=c.createContext(null);function rl(e){var t=(0,c.useRef)(e);return(0,c.useEffect)((function(){t.current=e})),t}var ol,il,al=((ol={})[13]=!0,ol[9]=!0,ol),sl=function(e){al[e.keyCode]&&e.preventDefault()},ll=function(){var e="visibilitychange";return"undefined"==typeof document?e:Ti([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),cl={type:"IDLE"};function ul(){}var dl=((il={})[34]=!0,il[33]=!0,il[36]=!0,il[35]=!0,il);var fl={type:"IDLE"},pl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function hl(e,t){if(null==t)return!1;if(Boolean(pl[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&hl(e,t.parentElement)}function ml(e,t){var n=t.target;return!!Ks(n)&&hl(e,n)}var gl=function(e){return Fo(e.getBoundingClientRect()).center},vl=function(){var e="matches";return"undefined"==typeof document?e:Ti([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function yl(e,t){return null==e?null:e[vl](t)?e:yl(e.parentElement,t)}function bl(e,t){return e.closest?e.closest(t):yl(e,t)}function wl(e){e.preventDefault()}function El(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function xl(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!ws(n.getState(),o)}var Ol=[function(e){var t=(0,c.useRef)(cl),n=(0,c.useRef)(ei),r=Wo((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),o=Wo((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=Bo((function(){n.current=ti(window,[o,r],{passive:!1,capture:!0})}),[o,r]),a=Bo((function(){"IDLE"!==t.current.type&&(t.current=cl,n.current(),i())}),[i]),s=Bo((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),l=Bo((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&ri(!1),l=s.point,c=a,Math.abs(c.x-l.x)>=5||Math.abs(c.y-l.y)>=5){var l,c;e.preventDefault();var u=s.actions.fluidLift(a);o({type:"DRAGGING",actions:u})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void sl(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ri(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:ll,fn:t}]}({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=ti(window,e,{capture:!0,passive:!1})}),[s,a]),u=Bo((function(e,n){"IDLE"!==t.current.type&&ri(!1),t.current={type:"PENDING",point:n,actions:e},l()}),[l]);Us((function(){return i(),function(){n.current()}}),[i])},function(e){var t=(0,c.useRef)(ul),n=Wo((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var o=e.findClosestDraggableId(n);if(o){var i=e.tryGetLock(o,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=ti(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(dl[r.keyCode]?r.preventDefault():sl(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:ll,fn:n}]}(s,l),{capture:!0,passive:!1})}}}function l(){a||ri(!1),a=!1,t.current(),r()}}}}),[e]),r=Bo((function(){t.current=ti(window,[n],{passive:!1,capture:!0})}),[n]);Us((function(){return r(),function(){t.current()}}),[r])},function(e){var t=(0,c.useRef)(fl),n=(0,c.useRef)(ei),r=Bo((function(){return t.current}),[]),o=Bo((function(e){t.current=e}),[]),i=Wo((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),f(o,a)}}}}}}),[e]),a=Bo((function(){n.current=ti(window,[i],{capture:!0,passive:!1})}),[i]),s=Bo((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(fl),n.current(),a())}),[a,o]),l=Bo((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=Bo((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:r},o=ti(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ri(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:ll,fn:t}]}(t),e),i=ti(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:ll,fn:t}]}(t),e);n.current=function(){o(),i()}}),[l,r,s]),d=Bo((function(){var e=r();"PENDING"!==e.type&&ri(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,o]),f=Bo((function(e,t){"IDLE"!==r().type&&ri(!1);var n=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,r,o,d]);Us((function(){return a(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(fl))}}),[r,a,o]),Us((function(){return ti(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Sl(e){var t=e.contextId,n=e.store,r=e.registry,o=e.customSensors,i=e.enableDefaultSensors,a=[].concat(i?Ol:[],o||[]),s=(0,c.useState)((function(){return function(){var e=null;function t(){e||ri(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ri(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=Bo((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);Us((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();l(e,t),e=t}))}),[s,n,l]),Us((function(){return s.tryAbandon}),[s.tryAbandon]);for(var u=Bo((function(e){return xl({lockAPI:s,registry:r,store:n,draggableId:e})}),[s,r,n]),d=Bo((function(e,o,i){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!xl({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),c=function(e,t){var n="["+Bs.contextId+'="'+e+'"]',r=Ti(ki(document.querySelectorAll(n)),(function(e){return e.getAttribute(Bs.id)===t}));return r&&Ks(r)?r:null}(n,l.descriptor.id);if(!c)return null;if(s&&!l.options.canDragInteractiveElements&&ml(c,s))return null;var u=t.claim(a||ei),d="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function p(){return t.isActive(u)}var h=function(e,t){El({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=ti(window,[{eventName:"click",fn:wl,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(Ga({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&ri(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),d="DRAGGING",(0,b.A)({isActive:function(){return El({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var g={isActive:function(){return El({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=Yo((function(e){h((function(){return Wa({client:e})}))})),n=m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,b.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return h(Ba)},moveRight:function(){return h(Ha)},moveDown:function(){return h(Fa)},moveLeft:function(){return h(Va)}};return m({liftActionArgs:{id:i,clientSelection:gl(c),movementMode:"SNAP"},cleanup:ei,actions:e})},abort:function(){El({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}};return g}({lockAPI:s,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,r,n]),f=Bo((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof $s(n).Element))return null;var o=function(e){return"["+Ws.contextId+'="'+e+'"]'}(e),i=bl(r,o);return i&&Ks(i)?i:null}(e,t);return n?n.getAttribute(Ws.draggableId):null}(t,e)}),[t]),p=Bo((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),h=Bo((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[s,n]),m=Bo(s.isClaimed,[s]),g=Wo((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]),v=0;v<a.length;v++)a[v](g)}function Al(e){return e.current||ri(!1),e.current}function _l(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,a=e.nonce,s=e.dragHandleUsageInstructions,l=(0,c.useRef)(null),u=rl(e),d=Bo((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(u.current)}),[u]),f=function(e){var t=Wo((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=(0,c.useRef)(null);return(0,c.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,b.A)(e.style,Qs),Ys().appendChild(e),function(){setTimeout((function(){var t=Ys();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Bo((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),p=function(e){var t=e.contextId,n=e.text,r=tl("hidden-text",{separator:"-"}),o=Wo((function(){return function(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:r})}),[r,t]);return(0,c.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Ys().appendChild(e),function(){var t=Ys();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:t,text:s}),h=function(e,t){var n=Wo((function(){return function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(Ws.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n transition: "+Ya.outOfTheWay+";\n ",{selector:o(Bs.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(Fs.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Vs(a,"always"),resting:Vs(a,"resting"),dragging:Vs(a,"dragging"),dropAnimating:Vs(a,"dropAnimating"),userCancel:Vs(a,"userCancel")}}(e)}),[e]),r=(0,c.useRef)(null),o=(0,c.useRef)(null),i=Bo(S((function(e){var t=o.current;t||ri(!1),t.textContent=e})),[]),a=Bo((function(e){var t=r.current;t||ri(!1),t.textContent=e}),[]);Us((function(){(r.current||o.current)&&ri(!1);var s=qs(t),l=qs(t);return r.current=s,o.current=l,s.setAttribute(zs+"-always",e),l.setAttribute(zs+"-dynamic",e),Gs().appendChild(s),Gs().appendChild(l),a(n.always),i(n.resting),function(){var e=function(e){var t=e.current;t||ri(!1),Gs().removeChild(t),e.current=null};e(r),e(o)}}),[t,a,i,n.always,n.resting,e]);var s=Bo((function(){return i(n.dragging)}),[i,n.dragging]),l=Bo((function(e){i("DROP"!==e?n.userCancel:n.dropAnimating)}),[i,n.dropAnimating,n.userCancel]),u=Bo((function(){o.current&&i(n.resting)}),[i,n.resting]);return Wo((function(){return{dragging:s,dropping:l,resting:u}}),[s,l,u])}(t,a),m=Bo((function(e){Al(l).dispatch(e)}),[]),g=Wo((function(){return(0,r.zH)({publishWhileDragging:Da,updateDroppableScroll:Ma,updateDroppableIsEnabled:La,updateDroppableIsCombineEnabled:za,collectionStarting:Na},m)}),[m]),v=function(){var e=Wo(Zs,[]);return(0,c.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),y=Wo((function(){return bs(v,g)}),[v,g]),w=Wo((function(){return function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=Yo(e.scrollWindow),r=Yo(t),o=null,i=function(e){o||ri(!1);var t=o,i=t.shouldUseTimeDampening,a=t.dragStartTime;Ms({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(e){o&&ri(!1);var t=Date.now(),n=!1,r=function(){n=!0};Ms({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&i(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:i}}({scrollWindow:n,scrollDroppable:t}),i=Ls({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}}((0,b.A)({scrollWindow:Es,scrollDroppable:y.scrollDroppable},(0,r.zH)({move:Wa},m)))}),[y.scrollDroppable,m]),E=function(e){var t=(0,c.useRef)({}),n=(0,c.useRef)(null),r=(0,c.useRef)(null),o=(0,c.useRef)(!1),i=Bo((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),a=Bo((function(t){var n=function(e,t){var n="["+Ws.contextId+'="'+e+'"]',r=ki(document.querySelectorAll(n));if(!r.length)return null;var o=Ti(r,(function(e){return e.getAttribute(Ws.draggableId)===t}));return o&&Ks(o)?o:null}(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=Bo((function(e,t){n.current===e&&(n.current=t)}),[]),l=Bo((function(){r.current||o.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&a(e)})))}),[a]),u=Bo((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Ws.draggableId)===e&&(n.current=e)}),[]);return Us((function(){return o.current=!0,function(){o.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),Wo((function(){return{register:i,tryRecordFocus:u,tryRestoreFocusRecorded:l,tryShiftRecord:s}}),[i,u,l,s])}(t),x=Wo((function(){return function(e){var t,n=e.dimensionMarshal,o=e.focusMarshal,i=e.styleMarshal,a=e.getResponders,s=e.announce,l=e.autoScroller;return(0,r.y$)(ja,fs((0,r.Tw)((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(Ua({completed:c.completed})),"IDLE"!==n().phase&&ri(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(n),ns,cs,us,ds,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&ri(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),os,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(o),ls(a,s))))}({announce:f,autoScroller:w,dimensionMarshal:y,focusMarshal:E,getResponders:d,styleMarshal:h})}),[f,w,y,E,d,h]);l.current=x;var O=Bo((function(){var e=Al(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),A=Bo((function(){var e=Al(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Wo((function(){return{isDragging:A,tryAbort:O}}),[A,O]));var _=Bo((function(e){return ws(Al(l).getState(),e)}),[]),C=Bo((function(){return ya(Al(l).getState())}),[]),T=Wo((function(){return{marshal:y,focus:E,contextId:t,canLift:_,isMovementAllowed:C,dragHandleUsageInstructionsId:p,registry:v}}),[t,y,p,E,_,C,v]);return Sl({contextId:t,store:x,registry:v,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,c.useEffect)((function(){return O}),[O]),c.createElement(nl.Provider,{value:T},c.createElement(o.Kq,{context:Xs,store:x},e.children))}var Cl=0;function Tl(e){var t=Wo((function(){return""+Cl++}),[]),n=e.dragHandleUsageInstructions||"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";return c.createElement(oi,null,(function(r){return c.createElement(_l,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var kl=function(e){return function(t){return e===t}},Pl=kl("scroll"),Il=kl("auto"),Rl=(kl("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),jl=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Rl(n,Pl)||Rl(n,Il)}(t)?t:e(t.parentElement)},Dl=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Nl=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Ml={passive:!1},Ll={passive:!0},zl=function(e){return e.shouldPublishImmediately?Ml:Ll};function Wl(e){var t=(0,c.useContext)(e);return t||ri(!1),t}var Bl=function(e){return e&&e.env.closestScrollable||null};function Fl(){}var Hl={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Vl=c.memo((function(e){var t=(0,c.useRef)(null),n=Bo((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,o=e.onTransitionEnd,i=e.onClose,a=e.contextId,s=(0,c.useState)("open"===e.animate),l=s[0],u=s[1];(0,c.useEffect)((function(){return l?"open"!==r?(n(),u(!1),Fl):t.current?Fl:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):Fl}),[r,l,n]);var d=Bo((function(e){"height"===e.propertyName&&(o(),"close"===r&&i())}),[r,i,o]),f=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?Hl:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Ya.placeholder:null}}({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return c.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":a,onTransitionEnd:d,ref:e.innerRef})})),Ul=c.createContext(null),Gl=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,E.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(c.PureComponent),ql=function(e,t){return t?Ya.drop(t.duration):e?Ya.snap:Ya.fluid},$l=function(e,t){return e?t?$a:Ka:null};function Kl(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(o),l=s?function(e,t){var n=Qa(e);return n?t?n+" scale("+Za+")":n:null}(n,i):Ja(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:ql(a,o),transform:l,opacity:$l(i,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(e):{transform:Ja((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Zl(e){e.preventDefault()}var Xl=function(e,t){return e===t},Yl=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Ql(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Jl={mapped:{type:"SECONDARY",offset:fi,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ql(null)}},ec={dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},tc=(0,o.Ng)((function(){var e,t,n,r=(e=S((function(e,t){return{x:e,y:t}})),t=S((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=S((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=ga(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var f=o.isClone,p=r.dimensions.draggables[o.draggableId],h=d.result,m=h.mode,g=Yl(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:qa,moveTo:r.newHomeClientOffset,opacity:v?$a:null,scale:v?Za:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,f,g,v,y)}}}return null}),o=function(){var e=S((function(e,t){return{x:e,y:t}})),t=S(Ql),n=S((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(fi,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=Mi(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(i.displaced.invisible[t])return null;var d=gi(a.displacedBy.point),f=e(d.x,d.y);return n(f,u,!0)}if(l)return r(u);var p=i.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Jl}}),ec,null,{context:Xs,pure:!0,areStatePropsEqual:Xl})((function(e){var t=(0,c.useRef)(null),n=Bo((function(e){t.current=e}),[]),r=Bo((function(){return t.current}),[]),o=Wl(nl),i=o.contextId,a=o.dragHandleUsageInstructionsId,s=o.registry,l=Wl(Ul),u=l.type,d=l.droppableId,f=Wo((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;y||function(e){var t=tl("draggable"),n=e.descriptor,r=e.registry,o=e.getDraggableRef,i=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=Wo((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}}),[i,s,a]),u=Bo((function(e){var t=o();return t||ri(!1),function(e,t,n){void 0===n&&(n=fi);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Zo(o,r),a=Ko(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,o]),d=Wo((function(){return{uniqueId:t,descriptor:n,options:l,getDimension:u}}),[n,u,l,t]),f=(0,c.useRef)(d),p=(0,c.useRef)(!0);Us((function(){return r.draggable.register(f.current),function(){return r.draggable.unregister(f.current)}}),[r.draggable]),Us((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,r.draggable.update(d,e)}}),[d,r.draggable])}(Wo((function(){return{descriptor:f,registry:s,getDraggableRef:r,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,s,r,v,g,m]));var E=Wo((function(){return m?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:Zl}:null}),[i,a,h,m]),x=Bo((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),O=Wo((function(){var e=Kl(b),t="DRAGGING"===b.type&&b.dropping?x:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:E}}),[i,E,h,b,x,n]),S=Wo((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(O,b.snapshot,S)}));function nc(e){return Wl(Ul).isUsingCloneFor!==e.draggableId||e.isClone?c.createElement(tc,e):null}function rc(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return c.createElement(nc,(0,b.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var oc=function(e,t){return e===t.droppable.type},ic=function(e,t){return t.draggables[e.draggable.id]},ac={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ri(!1),document.body}},sc=(0,o.Ng)((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,b.A)({},e,{shouldAnimatePlaceholder:!1}),n=S((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=S((function(r,o,i,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var f={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var c=n.critical;if(!oc(a,c))return t;var u=ic(c,n.dimensions),d=ga(n.impact)===i;return r(i,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!oc(a,f.critical))return t;var p=ic(f.critical,n.dimensions);return r(i,s,Yl(f.result)===i,ga(f.impact)===i,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!oc(a,h.critical))return t;var m=ga(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Xs,pure:!0,areStatePropsEqual:Xl})((function(e){var t=(0,c.useContext)(nl);t||ri(!1);var n=t.contextId,r=t.isMovementAllowed,o=(0,c.useRef)(null),i=(0,c.useRef)(null),a=e.children,s=e.droppableId,l=e.type,u=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=Bo((function(){return o.current}),[]),w=Bo((function(e){o.current=e}),[]),E=(Bo((function(){return i.current}),[]),Bo((function(e){i.current=e}),[])),x=Bo((function(){r()&&v({maxScroll:ms()})}),[r,v]);!function(e){var t=(0,c.useRef)(null),n=Wl(nl),r=tl("droppable"),o=n.registry,i=n.marshal,a=rl(e),s=Wo((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),l=(0,c.useRef)(s),u=Wo((function(){return S((function(e,n){t.current||ri(!1);var r={x:e,y:n};i.updateDroppableScroll(s.id,r)}))}),[s.id,i]),d=Bo((function(){var e=t.current;return e&&e.env.closestScrollable?Dl(e.env.closestScrollable):fi}),[]),f=Bo((function(){var e=d();u(e.x,e.y)}),[d,u]),p=Wo((function(){return Yo(f)}),[f]),h=Bo((function(){var e=t.current,n=Bl(e);e&&n||ri(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Bo((function(e,r){t.current&&ri(!1);var o=a.current,i=o.getDroppableRef();i||ri(!1);var l=function(e){return{closestScrollable:jl(e),isFixedOnPage:Nl(e)}}(i),c={ref:i,descriptor:s,env:l,scrollOptions:r};t.current=c;var u=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=Xo(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=Ho({top:r,right:a,bottom:i,left:o},n.border);return Go({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=Ko(u,o),f=function(){if(!c)return null;var e=Xo(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:Ko(e,o),scroll:Dl(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=ps({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:fi,displacement:fi}}}}(),u="vertical"===i?Gi:qi;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:Si({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:f});return p}({ref:i,descriptor:s,env:l,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=l.closestScrollable;return d&&(d.setAttribute(Hs.contextId,n.contextId),d.addEventListener("scroll",h,zl(c.scrollOptions))),u}),[n.contextId,s,h,a]),g=Bo((function(){var e=t.current,n=Bl(e);return e&&n||ri(!1),Dl(n)}),[]),v=Bo((function(){var e=t.current;e||ri(!1);var n=Bl(e);t.current=null,n&&(p.cancel(),n.removeAttribute(Hs.contextId),n.removeEventListener("scroll",h,zl(e.scrollOptions)))}),[h,p]),y=Bo((function(e){var n=t.current;n||ri(!1);var r=Bl(n);r||ri(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Wo((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=Wo((function(){return{uniqueId:r,descriptor:s,callbacks:b}}),[b,s,r]);Us((function(){return l.current=w.descriptor,o.droppable.register(w),function(){t.current&&v(),o.droppable.unregister(w)}}),[b,s,v,w,i,o.droppable]),Us((function(){t.current&&i.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),Us((function(){t.current&&i.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}({droppableId:s,type:l,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var O=c.createElement(Gl,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,o=e.animate;return c.createElement(Vl,{placeholder:r,onClose:t,innerRef:E,animate:o,contextId:n,onTransitionEnd:x})})),A=Wo((function(){return{innerRef:w,placeholder:O,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}}),[n,s,O,w]),_=g?g.dragging.draggableId:null,C=Wo((function(){return{droppableId:s,type:l,isUsingCloneFor:_}}),[s,_,l]);return c.createElement(Ul.Provider,{value:C},a(A,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=c.createElement(nc,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return Qo.createPortal(n,y())}())}));function lc(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 cc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dc(e,t){return dc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dc(e,t)}function fc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pc(e)}function hc(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}sc.defaultProps=ac;var mc=function(e,t,n){var r,o,i=Array.from(e),a=(r=i.splice(t,1),o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return hc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hc(e,t):void 0}}(r,o)||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.")}())[0];return i.splice(n,0,a),i},gc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dc(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=pc(o);if(i){var n=pc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fc(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).droppableId=(0,Io.A)(),t.onDragEnd=t.onDragEnd.bind(fc(t)),t.handleOpacityChange=t.handleOpacityChange.bind(fc(t)),t.setLayerVisibility=t.setLayerVisibility.bind(fc(t)),t.moveToTop=t.moveToTop.bind(fc(t)),t}return t=s,n=[{key:"handleOpacityChange",value:function(e,t){var n=this.props,r=n.canvasId;(0,n.updateLayers)(n.windowId,r,cc({},e,{opacity:t/100}))}},{key:"onDragEnd",value:function(e){var t=this.props,n=t.canvasId,r=t.layers,o=t.updateLayers,i=t.windowId;if(e.destination&&e.destination.droppableId===this.droppableId&&e.source.droppableId===this.droppableId){var a=mc(r.map((function(e){return e.id})),e.source.index,e.destination.index);o(i,n,r.reduce((function(e,t){return e[t.id]={index:a.indexOf(t.id)},e}),{}))}}},{key:"setLayerVisibility",value:function(e,t){var n=this.props,r=n.canvasId;(0,n.updateLayers)(n.windowId,r,cc({},e,{visibility:t}))}},{key:"moveToTop",value:function(e){var t=this.props,n=t.canvasId,r=t.layers,o=t.updateLayers,i=t.windowId,a=mc(r.map((function(e){return e.id})),r.findIndex((function(t){return t.id===e})),0);o(i,n,r.reduce((function(e,t){return e[t.id]={index:a.indexOf(t.id)},e}),{}))}},{key:"renderLayer",value:function(e,t){var n=this,r=this.props,o=r.classes,i=r.layerMetadata,a=r.t,l=50,u=void 0,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lc(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({opacity:1,visibility:!0},(i||{})[e.id]);return c.createElement("div",{style:{flex:1}},c.createElement("div",{style:{alignItems:"flex-start",display:"flex"}},c.createElement(V.A,{maxHeight:u,maxWidth:l,resource:e,classes:{image:o.image,root:o.thumbnail}}),c.createElement(he.A,{className:o.label,component:"div",variant:"body1"},s.getUseableLabel(e,t),c.createElement("div",null,c.createElement(ye.A,{"aria-label":a(d.visibility?"layer_hide":"layer_show"),edge:"start",size:"small",onClick:function(){n.setLayerVisibility(e.id,!d.visibility)}},d.visibility?c.createElement(ge.A,null):c.createElement(ve.A,null)),0!==d.index&&c.createElement(ye.A,{"aria-label":a("layer_moveToTop"),size:"small",onClick:function(){n.moveToTop(e.id)}},c.createElement(Mo.A,null))))),c.createElement("div",{style:{alignItems:"center",display:"flex"}},c.createElement(Ft.Ay,{title:a("layer_opacity")},c.createElement(Lo.A,{className:o.opacityIcon,color:d.visibility?"inherit":"disabled",fontSize:"small"})),c.createElement(Ro.A,{classes:{input:o.opacityInput},disabled:!d.visibility,value:Math.round(100*d.opacity),type:"number",min:0,max:100,onChange:function(t){return n.handleOpacityChange(e.id,t.target.value)},endAdornment:c.createElement(jo.A,{disableTypography:!0,position:"end"},c.createElement(he.A,{variant:"caption"},"%")),inputProps:{"aria-label":a("layer_opacity")}}),c.createElement(Do.A,{className:o.slider,disabled:!d.visibility,value:100*d.opacity,onChange:function(t,r){return n.handleOpacityChange(e.id,r)}})))}},{key:"renderDraggableLayer",value:function(e,t){var n=this,r=this.props,o=r.classes,i=r.t;return c.createElement(rc,{key:e.id,draggableId:e.id,index:t},(function(r,a){return c.createElement(Zr.A,Object.assign({ref:r.innerRef},r.draggableProps,{component:"li",className:(0,Ae.default)(o.listItem,cc({},o.dragging,a.isDragging)),disableGutters:!0,key:e.id}),c.createElement("div",Object.assign({},r.dragHandleProps,{className:o.dragHandle}),c.createElement(Ft.Ay,{title:i("layer_move")},c.createElement(No.A,null))),n.renderLayer(e,t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.index,o=t.label,i=t.layers,a=t.t,s=t.totalSize;return c.createElement(c.Fragment,null,s>1&&c.createElement(he.A,{className:n.sectionHeading,variant:"overline"},a("annotationCanvasLabel",{context:"".concat(r+1,"/").concat(s),label:o})),c.createElement(Tl,{onDragEnd:this.onDragEnd},c.createElement(sc,{droppableId:this.droppableId},(function(t,r){return c.createElement(qr.A,Object.assign({className:n.list},t.droppableProps,{ref:t.innerRef}),i&&i.map((function(t,n){return e.renderDraggableLayer(t,n)})),t.placeholder)}))))}}],r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],n&&uc(t.prototype,n),r&&uc(t,r),s}(c.Component);function vc(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 yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(n),!0).forEach((function(t){bc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}gc.defaultProps={classes:{},layerMetadata:void 0};var wc={updateLayers:ko.o},Ec=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{dragging:{},dragHandle:{alignItems:"center",borderRight:"0.5px solid ".concat(e.palette.divider),display:"flex",flex:1,flexDirection:"row",marginBottom:-1*e.spacing(2)+.5,marginRight:e.spacing(1),marginTop:-1*e.spacing(2),maxWidth:e.spacing(3),width:e.spacing(3)},image:{borderBottom:"1px solid ".concat(e.palette.divider)},label:{paddingLeft:e.spacing(1)},list:{paddingTop:0},listItem:{"& $dragHandle":{"&:hover":{backgroundColor:e.palette.action.hover},backgroundColor:e.palette.shades.light},"&$dragging":{"& $dragHandle, & $dragHandle:hover":{backgroundColor:e.palette.action.selected},backgroundColor:e.palette.action.hover},alignItems:"stretch",borderBottom:"0.5px solid ".concat(e.palette.divider),cursor:"pointer",paddingBottom:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)},opacityIcon:{marginRight:e.spacing(.5)},opacityInput:yc(yc({},e.typography.caption),{},{"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},"-moz-appearance":"textfield",textAlign:"right",width:"3ch"}),sectionHeading:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)},slider:{marginLeft:e.spacing(2),marginRight:e.spacing(2),maxWidth:150},thumbnail:{minWidth:50}}})),(0,o.Ng)((function(e,t){var n=t.canvasId,r=t.windowId;return{label:(0,H.T2)(e,{canvasId:n,windowId:r}),layerMetadata:(0,Po.bB)(e,{canvasId:n,windowId:r}),layers:(0,Po.yK)(e,{canvasId:n,windowId:r})}}),wc));const xc=Ec(gc);function Oc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sc(e,t){return Sc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sc(e,t)}function Ac(e){return Ac=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ac(e)}var _c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sc(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ac(r);if(o){var n=Ac(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasIds,n=e.id,r=e.t,o=e.windowId;return c.createElement(Ve.A,{title:r("layers"),id:n,windowId:o},t.map((function(e,n){return c.createElement(xc,{canvasId:e,index:n,key:e,totalSize:t.length,windowId:o})})))}}])&&Oc(t.prototype,n),a}(c.Component);_c.defaultProps={canvasIds:[]};var Cc=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{}})),(0,o.Ng)((function(e,t){t.id;var n=t.windowId;return{canvasIds:(0,H.tv)(e,{windowId:n})}})),(0,s.h)("LayersPanel"));const Tc=Cc(_c);function kc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pc(e,t){return Pc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pc(e,t)}function Ic(e){return Ic=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ic(e)}var Rc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pc(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ic(r);if(o){var n=Ic(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.children,r=e.t,o=e.title,i=e.windowId;return c.createElement(Ve.A,{title:r(o),id:t,windowId:i},n)}}])&&kc(t.prototype,n),a}(c.Component);Rc.defaultProps={children:null};var jc=(0,r.Zz)((0,i.C)(),(0,a.A)((function(e){return{}})),(0,o.Ng)((function(e,t){return t.id,t.windowId,{}})),(0,s.h)("CustomPanel"));const Dc=jc(Rc);var Nc=n(61466),Mc=n(34186),Lc=["manifest"];function zc(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 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,r.key,r)}}function Bc(e,t){return Bc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bc(e,t)}function Fc(e){return Fc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fc(e)}var Hc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bc(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Fc(o);if(i){var n=Fc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,n=[{key:"isMultipart",value:function(){var e=this.props.collection;if(!e)return!1;var t=e.getProperty("behavior");return Array.isArray(t)?e.includes("multi-part"):"multi-part"===t}},{key:"render",value:function(){var e=this.props,t=e.canvasNavigation,n=e.classes,r=e.collectionPath,o=e.collection,i=e.id,a=e.isFetching,l=e.manifestId,u=e.parentCollection,d=e.updateCompanionWindow,f=e.updateWindow,p=e.t,h=e.variant,m=e.windowId,g=function(e){var r=e.manifest,o=function(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}(e,Lc);return c.createElement(Te.A,Object.assign({className:n.menuItem,alignItems:"flex-start",button:!0,component:"li",selected:l===r.id},o),"thumbnail"===h&&c.createElement(Nc.A,null,c.createElement(V.A,{resource:r,maxHeight:t.height,maxWidth:t.width})),c.createElement(ke.A,null,s.getUseableLabel(r)))};return c.createElement(Ve.A,{title:p(this.isMultipart()?"multipartCollection":"collection"),windowId:m,id:i,titleControls:c.createElement(c.Fragment,null,u&&c.createElement(qr.A,null,c.createElement(Zr.A,{button:!0,onClick:function(){return d({collectionPath:r.slice(0,-1)})}},c.createElement(Nc.A,null,c.createElement(Mc.A,null)),c.createElement(ke.A,{primaryTypographyProps:{variant:"body1"}},s.getUseableLabel(u)))),c.createElement(he.A,{variant:"h6"},o&&s.getUseableLabel(o),a&&c.createElement(Un.A,{className:n.placeholder,variant:"text"})))},c.createElement(Ce.A,null,a&&c.createElement(Te.A,null,c.createElement(ke.A,null,c.createElement(Un.A,{className:n.placeholder,variant:"text"}),c.createElement(Un.A,{className:n.placeholder,variant:"text"}),c.createElement(Un.A,{className:n.placeholder,variant:"text"}))),o&&o.getCollections().map((function(e){return c.createElement(g,{key:e.id,onClick:function(){var t;d({collectionPath:[].concat((t=r,function(e){if(Array.isArray(e))return zc(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return zc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zc(e,t):void 0}}(t)||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.")}()),[e.id])})},manifest:e})})),o&&o.getManifests().map((function(e){return c.createElement(g,{key:e.id,onClick:function(){f({canvasId:null,collectionPath:r,manifestId:e.id}),d({multipart:!1})},manifest:e})}))))}}],r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():e.id}}],n&&Wc(t.prototype,n),r&&Wc(t,r),s}(c.Component);Hc.defaultProps={collection:null,collectionPath:[],error:null,isFetching:!1,parentCollection:null,ready:!1,t:function(e){return e},variant:null};var Vc=(0,r.Zz)((0,a.A)((function(e){return{label:{paddingLeft:e.spacing(1)},menuItem:{borderBottom:"0.5px solid ".concat(e.palette.divider),paddingRight:e.spacing(1),whiteSpace:"normal"}}})),(0,i.C)(),(0,o.Ng)((function(e,t){var n=t.id,r=t.windowId,o=(0,le.zk)(e,{windowId:r}),i=(0,se.DS)(e,{companionWindowId:n}),a=i.collectionPath||o.collectionPath,s=a&&a[a.length-1],l=a&&a[a.length-2],c=s&&(0,le.c2)(e,{manifestId:s}),u=l&&(0,le.c2)(e,{manifestId:l}),d=(0,le.c2)(e,{windowId:r});return{canvasNavigation:e.config.canvasNavigation,collection:c&&(0,Ye.SG)(e,{manifestId:c.id}),collectionId:s,collectionPath:a,error:c&&c.error,isFetching:c&&c.isFetching,manifestId:d&&d.id,parentCollection:u&&(0,Ye.SG)(e,{manifestId:u.id}),ready:c&&!!c.json,variant:i.variant||(0,Dn.bT)(e,{windowId:r})}}),(function(e,t){var n=t.id,r=t.windowId;return{updateCompanionWindow:function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e(Xe.u3.apply(F,[r,n].concat(o)))},updateWindow:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e(mt.uE.apply(F,[r].concat(n)))}}})),(0,s.h)("WindowSideBarCollectionPanel"));const Uc={annotations:Ze,attribution:Yn,canvas:Vn,collection:Vc(Hc),custom:Dc,info:zt,layers:Tc,search:To,thumbnailNavigation:fe}},45196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(35970),o=n.n(r),i=n(3176),a=n.n(i),s=n(46346);function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvas=t}var t,n;return t=e,(n=[{key:"id",get:function(){return this.canvas.id}},{key:"getWidth",value:function(){return this.canvas.getWidth()}},{key:"getHeight",value:function(){return this.canvas.getHeight()}},{key:"aspectRatio",get:function(){return this.canvas.getWidth()/this.canvas.getHeight()}},{key:"annotationListUris",get:function(){return o()(new Array(this.canvas.__jsonld.otherContent)).filter((function(e){return e&&("string"==typeof e||"sc:AnnotationList"===e["@type"])})).map((function(e){return"string"==typeof e?e:e["@id"]}))}},{key:"canvasAnnotationPages",get:function(){return o()(new Array(this.canvas.__jsonld.annotations)).filter((function(e){return e&&"AnnotationPage"===e.type}))}},{key:"imageResource",get:function(){return this.imageResources[0]}},{key:"imageResources",get:function(){var e=this,t=a()([this.canvas.getImages().map((function(e){return e.getResource()})),this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(t.map((function(t){return"oa:Choice"===t.getProperty("type")?new s.Canvas({images:o()([t.getProperty("default"),t.getProperty("item")]).map((function(e){return{resource:e}}))},e.canvas.options).getImages().map((function(e){return e.getResource()})):t})))}},{key:"videoResources",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"Video"===e.getProperty("type")})))}},{key:"audioResources",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"Sound"===e.getProperty("type")})))}},{key:"vttContent",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"text/vtt"===e.getProperty("format")})))}},{key:"resourceAnnotations",get:function(){return a()([this.canvas.getImages(),this.canvas.getContent()])}},{key:"resourceAnnotation",value:function(e){return this.resourceAnnotations.find((function(t){return t.getResource().id===e||o()(new Array(t.getBody())).some((function(t){return t.id===e}))}))}},{key:"onFragment",value:function(e){var t=this.resourceAnnotation(e);if(t){var n=t.getProperty("on"),r=t.getProperty("target"),o=(n||r).match(/xywh=(.*)$/);if(o)return o[1].split(",").map((function(e){return parseInt(e,10)}))}}},{key:"iiifImageResources",get:function(){return this.imageResources.filter((function(e){return e&&e.getServices()[0]&&e.getServices()[0].id}))}},{key:"imageServiceIds",get:function(){return this.iiifImageResources.map((function(e){return e.getServices()[0].id}))}},{key:"service",get:function(){return this.canvas.__jsonld.service}},{key:"getLabel",value:function(){return this.canvas.getLabel().length>0?this.canvas.getLabel().getValue():String(this.canvas.index+1)}}])&&l(t.prototype,n),e}()},92537:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{A:()=>o});var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manifest=t}var t,n;return t=e,(n=[{key:"startCanvas",get:function(){var e,t=this.manifest.getSequences()[0];if(t){if(!(e=t.getProperty("startCanvas"))){var n=this.manifest.getProperty("start")||t.getProperty("start");e=n&&(n.id||n.source)}return e&&t.getCanvasById(e)||void 0}}},{key:"canvasAt",value:function(e){var t=this.manifest.getSequences()[0],n=t&&t.getCanvases();return n&&n[e]}}])&&r(t.prototype,n),e}()},89824:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(46346),o=n(92537),i=n(45196),a=n(89945);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){var t=e&&e.getServices().find((function(e){return function(e){var t=e.getProperty("type")||[];return(0,a.A)(t).some((function(e){return e.startsWith("ImageService")}))}(e)||r.Utils.isImageProfile(e.getProfile())}));if(t)return t}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resource=t,this.iiifOpts=n}var t,n,c;return t=e,c=[{key:"staticImageUrl",value:function(e){return{height:e.getProperty("height"),url:e.id,width:e.getProperty("width")}}},{key:"getPreferredImage",value:function(e){var t=new i.default(e);return t.iiifImageResources[0]||t.imageResource}},{key:"selectBestImageSize",value:function(e,t){var n=(0,a.A)(e.getProperty("sizes")),r={default:!0,height:e.getProperty("height")||Number.MAX_SAFE_INTEGER,width:e.getProperty("width")||Number.MAX_SAFE_INTEGER},o=function(e){return e.width*e.height-t};if((r=n.reduce((function(e,t){var n=o(t);return n<0?e:Math.abs(n)<Math.abs(o(e))?t:e}),r)).width*r.height>6*t&&(r=n.reduce((function(e,t){return Math.abs(o(t))<Math.abs(o(e))?t:e}),r)),!r.default)return r}}],(n=[{key:"iiifThumbnailUrl",value:function(t){var n,o,i,a=120,s=a,c=a,u=this.iiifOpts,d=u.maxHeight,f=u.maxWidth;d&&(s=Math.max(d,a)),f&&(c=Math.max(f,a));var p=l(t);if(!p)return e.staticImageUrl(t);var h=t.getWidth()&&t.getHeight()&&t.getWidth()/t.getHeight(),m=f&&d?f*d:s*c,g=e.selectBestImageSize(p,m);if(g)o=g.width,i=g.height,n="".concat(o,",").concat(i);else if(function(e){var t=e.getProfile();return!t.endsWith("#level1")&&!t.endsWith("#level2")&&("level0"===t||r.Utils.isLevel0ImageProfile(t))}(p)){if(!p.getProperty("height")&&!p.getProperty("width"))return e.staticImageUrl(t)}else d&&f?function(e){var t=e.getProfile();return!t.endsWith("#level0")&&!t.endsWith("#level1")&&("level2"===t||r.Utils.isLevel2ImageProfile(t))}(p)?(n="!".concat(c,",").concat(s),o=c,i=s,h&&h>1&&(i=Math.round(c/h)),h&&h<1&&(o=Math.round(s*h))):c/s<h?(n="".concat(c,","),o=c,h&&(i=Math.round(c/h))):(n=",".concat(s),i=s,h&&(o=Math.round(s*h))):d&&!f?(n=",".concat(s),i=s,h&&(o=Math.round(s*h))):!d&&f?(n="".concat(c,","),o=c,h&&(i=Math.round(c/h))):(n=",".concat(a),i=a,h&&(o=Math.round(i*h)));var v=r.Utils.getImageQuality(p.getProfile()),y=p.id.replace(/\/+$/,""),b=this.getFormat(p);return{height:i,url:[y,"full",n,0,"".concat(v,".").concat(b)].join("/"),width:o}}},{key:"getFormat",value:function(e){var t=this.iiifOpts.preferredFormats,n=void 0===t?[]:t,r=e.getProperty("preferredFormats");if(!r)return"jpg";var o=r.filter((function(e){return n.includes(e)}));return o[0]?o[0]:!r.includes("jpg")&&n.includes("jpg")?"jpg":r[0]?r[0]:"jpg"}},{key:"getSourceContentResource",value:function(t){var n=t.getThumbnail();if(n)return"string"==typeof n.__jsonld?n.__jsonld:t.isCollection()||t.isManifest()||t.isCanvas()||"image"!==t.getType()||!l(t)||l(n)?n:t;if(t.isCollection()){var r=t.getManifests()[0];return r?this.getSourceContentResource(r):void 0}if(t.isManifest()){var i=new o.A(t),a=i.startCanvas||i.canvasAt(0);return a?this.getSourceContentResource(a):void 0}if(t.isCanvas()){var s=e.getPreferredImage(t);return s?this.getSourceContentResource(s):void 0}return"image"===t.getType()?t:void 0}},{key:"get",value:function(){if(this.resource){var e=this.getSourceContentResource(this.resource);if(e)return"string"==typeof e?{url:e}:this.iiifThumbnailUrl(e)}}}])&&s(t.prototype,n),c&&s(t,c),e}();function u(e,t){return new c(e,t).get()}},89945:(e,t,n)=>{"use strict";function r(e){return void 0===e?[]:Array.isArray(e)?e:[e]}n.d(t,{A:()=>r})},91754:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={ADD_COMPANION_WINDOW:"mirador/ADD_COMPANION_WINDOW",UPDATE_COMPANION_WINDOW:"mirador/UPDATE_COMPANION_WINDOW",REMOVE_COMPANION_WINDOW:"mirador/REMOVE_COMPANION_WINDOW",TOGGLE_TOC_NODE:"mirador/TOGGLE_TOC_NODE",UPDATE_WINDOW:"mirador/UPDATE_WINDOW",REQUEST_CANVAS_ANNOTATIONS:"mirador/REQUEST_CANVAS_ANNOTATIONS",HOVER_ANNOTATION:"mirador/HOVER_ANNOTATION",REQUEST_ANNOTATION:"mirador/REQUEST_ANNOTATION",RECEIVE_ANNOTATION:"mirador/RECEIVE_ANNOTATION",RECEIVE_ANNOTATION_FAILURE:"mirador/RECEIVE_ANNOTATION_FAILURE",DESELECT_ANNOTATION:"mirador/DESELECT_ANNOTATION",SELECT_ANNOTATION:"mirador/SELECT_ANNOTATION",TOGGLE_ANNOTATION_DISPLAY:"mirador/TOGGLE_ANNOTATION_DISPLAY",FOCUS_WINDOW:"mirador/FOCUS_WINDOW",SET_WORKSPACE_FULLSCREEN:"mirador/SET_WORKSPACE_FULLSCREEN",SET_WORKSPACE_VIEWPORT_POSITION:"mirador/SET_WORKSPACE_VIEWPORT_POSITION",ADD_MANIFEST:"mirador/ADD_MANIFEST",ADD_WINDOW:"mirador/ADD_WINDOW",ADD_ERROR:"mirador/ADD_ERROR",IMPORT_CONFIG:"mirador/IMPORT_CONFIG",IMPORT_MIRADOR_STATE:"mirador/IMPORT_MIRADOR_STATE",SET_CANVAS:"mirador/SET_CANVAS",MAXIMIZE_WINDOW:"mirador/MAXIMIZE_WINDOW",MINIMIZE_WINDOW:"mirador/MINIMIZE_WINDOW",UPDATE_WINDOW_POSITION:"mirador/UPDATE_WINDOW_POSITION",SET_WINDOW_SIZE:"mirador/SET_WINDOW_SIZE",REMOVE_WINDOW:"mirador/REMOVE_WINDOW",PICK_WINDOWING_SYSTEM:"mirador/PICK_WINDOWING_SYSTEM",REQUEST_MANIFEST:"mirador/REQUEST_MANIFEST",RECEIVE_MANIFEST:"mirador/RECEIVE_MANIFEST",RECEIVE_MANIFEST_FAILURE:"mirador/RECEIVE_MANIFEST_FAILURE",REMOVE_ERROR:"mirador/REMOVE_ERROR",SET_CONFIG:"mirador/SET_CONFIG",UPDATE_WORKSPACE:"mirador/UPDATE_WORKSPACE",SET_WINDOW_THUMBNAIL_POSITION:"mirador/SET_WINDOW_THUMBNAIL_POSITION",SET_WINDOW_VIEW_TYPE:"mirador/SET_WINDOW_VIEW_TYPE",SET_WORKSPACE_ADD_VISIBILITY:"mirador/SET_WORKSPACE_ADD_VISIBILITY",TOGGLE_WINDOW_SIDE_BAR:"mirador/TOGGLE_WINDOW_SIDE_BAR",TOGGLE_DRAGGING:"mirador/TOGGLE_DRAGGING",TOGGLE_ZOOM_CONTROLS:"mirador/TOGGLE_ZOOM_CONTROLS",UPDATE_CONFIG:"mirador/UPDATE_CONFIG",REMOVE_MANIFEST:"mirador/REMOVE_MANIFEST",REQUEST_INFO_RESPONSE:"mirador/REQUEST_INFO_RESPONSE",RECEIVE_INFO_RESPONSE:"mirador/RECEIVE_INFO_RESPONSE",RECEIVE_DEGRADED_INFO_RESPONSE:"mirador/RECEIVE_DEGRADED_INFO_RESPONSE",RECEIVE_INFO_RESPONSE_FAILURE:"mirador/RECEIVE_INFO_RESPONSE_FAILURE",REMOVE_INFO_RESPONSE:"mirador/REMOVE_INFO_RESPONSE",UPDATE_WORKSPACE_MOSAIC_LAYOUT:"mirador/UPDATE_WORKSPACE_MOSAIC_LAYOUT",UPDATE_VIEWPORT:"mirador/UPDATE_VIEWPORT",UPDATE_ELASTIC_WINDOW_LAYOUT:"mirador/UPDATE_ELASTIC_WINDOW_LAYOUT",ADD_AUTHENTICATION_REQUEST:"mirador/ADD_AUTHENTICATION_REQUEST",RESOLVE_AUTHENTICATION_REQUEST:"mirador/RESOLVE_AUTHENTICATION_REQUEST",REQUEST_ACCESS_TOKEN:"mirador/REQUEST_ACCESS_TOKEN",RECEIVE_ACCESS_TOKEN:"mirador/RECEIVE_ACCESS_TOKEN",RECEIVE_ACCESS_TOKEN_FAILURE:"mirador/RECEIVE_ACCESS_TOKEN_FAILURE",RESET_AUTHENTICATION_STATE:"mirador/RESET_AUTHENTICATION_STATE",CLEAR_ACCESS_TOKEN_QUEUE:"mirador/CLEAR_ACCESS_TOKEN_QUEUE",REQUEST_SEARCH:"mirador/REQUEST_SEARCH",RECEIVE_SEARCH:"mirador/RECEIVE_SEARCH",RECEIVE_SEARCH_FAILURE:"mirador/RECEIVE_SEARCH_FAILURE",REMOVE_SEARCH:"mirador/REMOVE_SEARCH",SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:"mirador/SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS",UPDATE_LAYERS:"mirador/UPDATE_LAYERS",ADD_RESOURCE:"mirador/ADD_RESOURCE",REMOVE_RESOURCE:"mirador/REMOVE_RESOURCE",SHOW_COLLECTION_DIALOG:"mirador/SHOW_COLLECTION_DIALOG",HIDE_COLLECTION_DIALOG:"mirador/HIDE_COLLECTION_DIALOG"}},52529:(e,t,n)=>{"use strict";n.d(t,{GW:()=>d,PW:()=>c,aw:()=>o,gN:()=>l,n_:()=>a,ow:()=>u,pJ:()=>i,tf:()=>s});var r=n(91754);function o(e,t){return{canvasId:t,type:r.default.REQUEST_CANVAS_ANNOTATIONS,windowId:e}}function i(e,t){return{annotationId:t,targetId:e,type:r.default.REQUEST_ANNOTATION}}function a(e,t,n){return{annotationId:t,annotationJson:n,targetId:e,type:r.default.RECEIVE_ANNOTATION}}function s(e,t,n){return{annotationId:t,error:n,targetId:e,type:r.default.RECEIVE_ANNOTATION_FAILURE}}function l(e,t){return{annotationId:t,type:r.default.SELECT_ANNOTATION,windowId:e}}function c(e,t){return{annotationId:t,type:r.default.DESELECT_ANNOTATION,windowId:e}}function u(e){return{type:r.default.TOGGLE_ANNOTATION_DISPLAY,windowId:e}}function d(e,t){return{annotationIds:t,type:r.default.HOVER_ANNOTATION,windowId:e}}},95594:(e,t,n)=>{"use strict";n.d(t,{B0:()=>l,B2:()=>u,Bq:()=>a,HN:()=>f,_U:()=>s,fw:()=>d,h6:()=>c});var r=n(91754);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return{id:t,profile:arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,type:r.default.ADD_AUTHENTICATION_REQUEST,windowId:e}}function s(e,t,n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e,tokenServiceId:t,type:r.default.RESOLVE_AUTHENTICATION_REQUEST},n)}function l(e,t){return{authId:t,serviceId:e,type:r.default.REQUEST_ACCESS_TOKEN}}function c(e,t,n){return{authId:e,json:n,serviceId:t,type:r.default.RECEIVE_ACCESS_TOKEN}}function u(e,t,n){return{authId:e,error:n,serviceId:t,type:r.default.RECEIVE_ACCESS_TOKEN_FAILURE}}function d(e,t,n){return n.accessToken?c(e,t,n):u(e,t,n)}function f(e){return{id:e.authServiceId,tokenServiceId:e.tokenServiceId,type:r.default.RESET_AUTHENTICATION_STATE}}},12664:(e,t,n)=>{"use strict";n.d(t,{Kh:()=>u,OZ:()=>c,h5:()=>l,yR:()=>d});var r=n(91754),o=n(46946);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(s,l){var c=l(),u=n;u||(u=((0,o.O$)(c,{canvasId:t,windowId:e})||[]).map((function(e){return e.id}))),s(a(a({},i),{},{canvasId:t,type:r.default.SET_CANVAS,visibleCanvases:u,windowId:e}))}}function c(e){return function(t,n){var r=n(),i=(0,o.BL)(r,{windowId:e}),a=(i||[]).map((function(e){return e.id}));i&&t(l(e,a[0],a))}}function u(e){return function(t,n){var r=n(),i=(0,o.Nj)(r,{windowId:e}),a=(i||[]).map((function(e){return e.id}));i&&t(l(e,a[0],a))}}function d(e,t){return{payload:t,type:r.default.UPDATE_VIEWPORT,windowId:e}}},33669:(e,t,n)=>{"use strict";n.d(t,{M:()=>o,l:()=>i});var r=n(91754);function o(e){return{manifestId:e,manifestJson:arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,payload:arguments.length>2?arguments[2]:void 0,type:r.default.ADD_RESOURCE}}function i(e){return{manifestId:e,type:r.default.REMOVE_RESOURCE}}},20124:(e,t,n)=>{"use strict";n.d(t,{A_:()=>d,TN:()=>m,Yy:()=>f,l2:()=>h,u3:()=>p});var r=n(54011),o=n(91754),i=n(51636),a=n(55181);function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={content:null,position:null};function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,i="cw-".concat((0,r.A)());return{id:i,payload:l(l(l({},n),t),{},{id:i,windowId:e}),type:o.default.ADD_COMPANION_WINDOW,windowId:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;return function(r,o){var a=o(),s=t.position,l="left"===s&&(0,i.bN)(a,{position:s,windowId:e})[0];r(l?p(e,l,t):d(e,t,n))}}function p(e,t,n){return{id:t,payload:n,type:o.default.UPDATE_COMPANION_WINDOW,windowId:e}}function h(e,t){return{id:t,type:o.default.REMOVE_COMPANION_WINDOW,windowId:e}}function m(e,t,n){return function(r,i){var s=i(),l=(0,a.tv)(s,{companionWindowId:t},!1),u=(0,a.tv)(s,{companionWindowId:t},!0),d=(0,a.BB)(s,{id:t,windowId:e}),f=-1!==l.indexOf(n)||-1===u.indexOf(n)&&-1===d.indexOf(n);return r({id:t,payload:c({},n,{expanded:f}),type:o.default.TOGGLE_TOC_NODE,windowId:e})}}},15750:(e,t,n)=>{"use strict";n.d(t,{Jk:()=>d,KZ:()=>l,Nk:()=>c,_R:()=>u});var r=n(54011),o=n(91754);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return{config:e,type:o.default.IMPORT_CONFIG}}function c(e){return{config:e,type:o.default.SET_CONFIG}}function u(e){return{config:e,type:o.default.UPDATE_CONFIG}}function d(e){return{state:a(a({},e),{},{workspace:a(a({},e.workspace),{},{id:(0,r.A)()})}),type:o.default.IMPORT_MIRADOR_STATE}}},52375:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(91754);function o(e,t){return{payload:t,type:r.default.UPDATE_ELASTIC_WINDOW_LAYOUT,windowId:e}}},49475:(e,t,n)=>{"use strict";n.d(t,{$:()=>a,C:()=>i});var r=n(54011),o=n(91754);function i(e){return{id:"error-".concat((0,r.A)()),message:e,type:o.default.ADD_ERROR}}function a(e){return{id:e,type:o.default.REMOVE_ERROR}}},86078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addAuthenticationRequest:()=>f.Bq,addCompanionWindow:()=>r.A_,addError:()=>i.C,addOrUpdateCompanionWindow:()=>r.Yy,addResource:()=>g.M,addWindow:()=>a._U,deselectAnnotation:()=>d.PW,fetchInfoResponse:()=>l.E9,fetchManifest:()=>s.Cj,fetchSearch:()=>h.$Q,focusWindow:()=>a.hN,hideCollectionDialog:()=>a.Th,hoverAnnotation:()=>d.GW,importConfig:()=>o.KZ,importMiradorState:()=>o.Jk,maximizeWindow:()=>a.Ff,minimizeWindow:()=>a.ds,receiveAccessToken:()=>f.h6,receiveAccessTokenFailure:()=>f.B2,receiveAnnotation:()=>d.n_,receiveAnnotationFailure:()=>d.tf,receiveDegradedInfoResponse:()=>l.dv,receiveInfoResponse:()=>l.xO,receiveInfoResponseFailure:()=>l.P7,receiveManifest:()=>s.Dc,receiveManifestFailure:()=>s.ns,receiveSearch:()=>h.md,receiveSearchFailure:()=>h.ae,removeCompanionWindow:()=>r.l2,removeError:()=>i.$,removeInfoResponse:()=>l.UE,removeManifest:()=>s.ei,removeResource:()=>g.l,removeSearch:()=>h.Vw,removeWindow:()=>a.lM,requestAccessToken:()=>f.B0,requestAnnotation:()=>d.pJ,requestCanvasAnnotations:()=>d.aw,requestInfoResponse:()=>l.vZ,requestManifest:()=>s.dX,requestSearch:()=>h.ib,resetAuthenticationState:()=>f.HN,resolveAccessTokenRequest:()=>f.fw,resolveAuthenticationRequest:()=>f._U,selectAnnotation:()=>d.gN,setCanvas:()=>c.h5,setCompanionAreaOpen:()=>a.Aq,setConfig:()=>o.Nk,setContentSearchCurrentAnnotation:()=>h.q,setNextCanvas:()=>c.OZ,setPreviousCanvas:()=>c.Kh,setWindowThumbnailPosition:()=>a.GR,setWindowViewType:()=>a.QO,setWorkspaceAddVisibility:()=>u.DW,setWorkspaceFullscreen:()=>u.Vs,setWorkspaceViewportDimensions:()=>u.Pi,setWorkspaceViewportPosition:()=>u.Dl,showCollectionDialog:()=>a.Az,toggleAnnotationDisplay:()=>d.ow,toggleDraggingEnabled:()=>u.Zw,toggleNode:()=>r.TN,toggleWindowSideBar:()=>a.F9,toggleZoomControls:()=>u.WU,updateCompanionWindow:()=>r.u3,updateConfig:()=>o._R,updateElasticWindowLayout:()=>p.D,updateLayers:()=>m.o,updateViewport:()=>c.yR,updateWindow:()=>a.uE,updateWorkspace:()=>u.tO,updateWorkspaceMosaicLayout:()=>u.ZV});var r=n(20124),o=n(15750),i=n(49475),a=n(91068),s=n(35485),l=n(20375),c=n(12664),u=n(37187),d=n(52529),f=n(95594),p=n(52375),h=n(82780),m=n(38746),g=n(33669)},20375:(e,t,n)=>{"use strict";n.d(t,{E9:()=>l,P7:()=>s,UE:()=>c,dv:()=>a,vZ:()=>o,xO:()=>i});var r=n(91754);function o(e,t,n){return{imageResource:t,infoId:e,type:r.default.REQUEST_INFO_RESPONSE,windowId:n}}function i(e,t,n,o){return{infoId:e,infoJson:t,ok:n,tokenServiceId:o,type:r.default.RECEIVE_INFO_RESPONSE}}function a(e,t,n,o,i){return{infoId:e,infoJson:t,ok:n,tokenServiceId:o,type:r.default.RECEIVE_DEGRADED_INFO_RESPONSE,windowId:i}}function s(e,t,n){return{error:t,infoId:e,tokenServiceId:n,type:r.default.RECEIVE_INFO_RESPONSE_FAILURE}}function l(e){var t=e.imageId,n=e.imageResource,r=e.windowId,i=n&&n.getServices()[0];return o(t||i.id,i,r)}function c(e){return{infoId:e,type:r.default.REMOVE_INFO_RESPONSE}}},38746:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(91754);function o(e,t,n){return{canvasId:t,payload:n,type:r.default.UPDATE_LAYERS,windowId:e}}},35485:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>u,Dc:()=>l,dX:()=>s,ei:()=>d,ns:()=>c});var r=n(91754);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return{manifestId:e,properties:t,type:r.default.REQUEST_MANIFEST}}function l(e,t){return{manifestId:e,manifestJson:t,type:r.default.RECEIVE_MANIFEST}}function c(e,t){return{error:t,manifestId:e,type:r.default.RECEIVE_MANIFEST_FAILURE}}function u(e,t){return s(e,i(i({},t),{},{isFetching:!0}))}function d(e){return{manifestId:e,type:r.default.REMOVE_MANIFEST}}},82780:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>l,Vw:()=>s,ae:()=>a,ib:()=>o,md:()=>i,q:()=>c});var r=n(91754);function o(e,t,n,o){return{companionWindowId:t,query:o,searchId:n,type:r.default.REQUEST_SEARCH,windowId:e}}function i(e,t,n,o){return{companionWindowId:t,searchId:n,searchJson:o,type:r.default.RECEIVE_SEARCH,windowId:e}}function a(e,t,n,o){return{companionWindowId:t,error:o,searchId:n,type:r.default.RECEIVE_SEARCH_FAILURE,windowId:e}}function s(e,t){return{companionWindowId:t,type:r.default.REMOVE_SEARCH,windowId:e}}function l(e,t,n,r){return o(e,t,n,r)}function c(e,t,n){return{annotationIds:n,companionWindowId:t,type:r.default.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS,windowId:e}}},91068:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>g,Az:()=>E,F9:()=>y,Ff:()=>h,GR:()=>b,QO:()=>w,Th:()=>x,_U:()=>f,ds:()=>m,hN:()=>d,lM:()=>v,uE:()=>p});var r=n(54011),o=n(91754),i=n(5006),a=["companionWindows","manifest"];function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(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 d(e){return{pan:arguments.length>1&&void 0!==arguments[1]&&arguments[1],type:o.default.FOCUS_WINDOW,windowId:e}}function f(e){var t=e.companionWindows,n=e.manifest,s=function(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}(e,a);return function(e,a){var c,d=(0,i.miradorSlice)(a()),f=d.config,p=d.workspace.windowIds,h=(void 0===p?[]:p).length,m=s.id||"window-".concat((0,r.A)()),g="cw-".concat((0,r.A)()),v=[{content:"thumbnailNavigation",default:!0,id:g,position:s.thumbnailNavigationPosition||f.thumbnailNavigation.defaultPosition,windowId:m}].concat(function(e){if(Array.isArray(e))return u(e)}(c=(t||[]).map((function(e,t){return l(l({},e),{},{id:"cw-".concat((0,r.A)())})})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(c)||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.")}());(s.sideBarPanel||f.window.defaultSideBarPanel||f.window.sideBarPanel)&&v.unshift({content:s.sideBarPanel||s.defaultSearchQuery&&"search"||f.window.defaultSideBarPanel||f.window.sideBarPanel,default:!0,id:"cw-".concat((0,r.A)()),position:"left",windowId:m});var y={canvasId:void 0,collectionIndex:0,companionAreaOpen:!0,companionWindowIds:v.map((function(e){return e.id})),draggingEnabled:!0,highlightAllAnnotations:f.window.highlightAllAnnotations||!1,id:m,manifestId:null,maximized:!1,rangeId:null,rotation:null,selectedAnnotations:{},sideBarOpen:void 0!==f.window.sideBarOpenByDefault?f.window.sideBarOpenByDefault||!!s.defaultSearchQuery:f.window.sideBarOpen||!!s.defaultSearchQuery,sideBarPanel:s.sideBarPanel||f.window.defaultSideBarPanel||f.window.sideBarPanel,thumbnailNavigationId:g};e({companionWindows:v,elasticLayout:l(l({},f.window.elastic||{height:400,width:480}),{},{x:50*Math.floor(h/10)+30*h%300+200,y:200+50*h%300}),manifest:n,type:o.default.ADD_WINDOW,window:l(l({},y),s)})}}function p(e,t){return{id:e,payload:t,type:o.default.UPDATE_WINDOW}}function h(e,t){return{type:o.default.MAXIMIZE_WINDOW,windowId:e}}function m(e){return{type:o.default.MINIMIZE_WINDOW,windowId:e}}function g(e,t){return{id:e,payload:{companionAreaOpen:t},type:o.default.UPDATE_WINDOW}}function v(e){return{type:o.default.REMOVE_WINDOW,windowId:e}}function y(e){return{type:o.default.TOGGLE_WINDOW_SIDE_BAR,windowId:e}}function b(e,t){return function(n,r){n({id:r().windows[e].thumbnailNavigationId,payload:{position:t},type:o.default.UPDATE_COMPANION_WINDOW})}}function w(e,t){return{type:o.default.SET_WINDOW_VIEW_TYPE,viewType:t,windowId:e}}function E(e){var t=arguments.length>2?arguments[2]:void 0;return{collectionPath:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],manifestId:e,type:o.default.SHOW_COLLECTION_DIALOG,windowId:t}}function x(e){return{type:o.default.HIDE_COLLECTION_DIALOG,windowId:e}}},37187:(e,t,n)=>{"use strict";n.d(t,{DW:()=>l,Dl:()=>c,Pi:()=>u,Vs:()=>i,WU:()=>a,ZV:()=>s,Zw:()=>d,tO:()=>o});var r=n(91754);function o(e){return{config:e,type:r.default.UPDATE_WORKSPACE}}function i(e){return{isFullscreenEnabled:e,type:r.default.SET_WORKSPACE_FULLSCREEN}}function a(e){return{showZoomControls:e,type:r.default.TOGGLE_ZOOM_CONTROLS}}function s(e){return{layout:e,type:r.default.UPDATE_WORKSPACE_MOSAIC_LAYOUT}}function l(e){return{isWorkspaceAddVisible:e,type:r.default.SET_WORKSPACE_ADD_VISIBILITY}}function c(e){return{payload:{position:{x:e.x,y:e.y}},type:r.default.SET_WORKSPACE_VIEWPORT_POSITION}}function u(e){var t=e.width;return{payload:{position:{height:e.height,width:t}},type:r.default.SET_WORKSPACE_VIEWPORT_POSITION}}function d(){return{type:r.default.TOGGLE_DRAGGING}}},74389:(e,t,n)=>{"use strict";n.d(t,{Y2:()=>P,Ni:()=>k,Rh:()=>O,Su:()=>T,e3:()=>I,Z_:()=>R});var r=n(22325),o=n(87612),i=n.n(o),a=n(35970),s=n.n(a),l=n(40387),c=n(83673),u=n.n(c),d=n(54011);function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resource=t}var t,n;return t=e,(n=[{key:"isOnlyTag",value:function(){return 1===this.motivations.length&&"tagging"===this.motivations[0]}},{key:"id",get:function(){return this._id=this._id||this.resource.id||(0,d.A)(),this._id}},{key:"targetId",get:function(){var e=this.target[0];switch(typeof e){case"string":return e.replace(/#?xywh=(.*)$/,"");case"object":return e.source&&e.source.id||e.source||e.id;default:return null}}},{key:"motivations",get:function(){return s()(u()(new Array(this.resource.motivation)))}},{key:"body",get:function(){return s()(u()(new Array(this.resource.body)))}},{key:"resources",get:function(){return this.body}},{key:"tags",get:function(){return this.isOnlyTag()?this.body.map((function(e){return e.value})):this.body.filter((function(e){return"tagging"===e.purpose})).map((function(e){return e.value}))}},{key:"target",get:function(){return s()(u()(new Array(this.resource.target)))}},{key:"chars",get:function(){return this.isOnlyTag()?null:this.body.filter((function(e){return"tagging"!==e.purpose})).map((function(e){return e.value})).join(" ")}},{key:"selector",get:function(){var e=this.target[0];switch(typeof e){case"string":return e;case"object":return s()(u()(new Array(e.selector)));default:return null}}},{key:"svgSelector",get:function(){var e=this.selector;switch(typeof e){case"string":default:return null;case"object":return e.find((function(e){return e.type&&"SvgSelector"===e.type}))}}},{key:"fragmentSelector",get:function(){var e,t,n=this.selector;switch(typeof n){case"string":e=n.match(/xywh=(.*)$/);break;case"object":e=(t=n.find((function(e){return e.type&&"FragmentSelector"===e.type})))&&t.value.match(/xywh=(.*)$/);break;default:return null}return e&&e[1].split(",").map((function(e){return parseInt(e,10)}))}}])&&f(t.prototype,n),e}();function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var m=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.json=t,this.target=n}var t,n;return t=e,(n=[{key:"id",get:function(){return this.json.id}},{key:"present",value:function(){return this.items&&this.items.length>0}},{key:"items",get:function(){var e=this;return this._items=this._items||(e.json&&e.json.items?s()([e.json.items]).map((function(e){return new p(e)})):[]),this._items}},{key:"resources",get:function(){return this.items}}])&&h(t.prototype,n),e}();function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var v=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"determineAnnotation",value:function(e,t){return e?"AnnotationPage"===e.type?new m(e,t):new l.A(e,t):null}}],null&&g(t.prototype,null),n&&g(t,n),e}(),y=n(5006),b=n(46946),w=n(90361),E=n(65419),x=["canvasId"];var O=function(e){return(0,y.miradorSlice)(e).annotations},S=(0,r.createSelector)([w.zj,function(e,t){return t.motivations}],(function(e,t){return t||e.annotations.filteredMotivations})),A=(0,r.createSelector)([b.dX,O],(function(e,t){return t&&e&&t[e.id]?s()(Object.values(t[e.id])):[]})),_=(0,r.createSelector)([A],(function(e){return i()(Object.values(e).map((function(e){return e&&v.determineAnnotation(e.json)})),(function(e){return e&&e.present()}))})),C=(0,r.createSelector)([function(e,t){var n=t.canvasId,r=function(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}(t,x);return n?[n]:(0,b.tv)(e,r)},O],(function(e,t){return t&&0!==e.length?s()(e.map((function(e){return t[e]&&Object.values(t[e])}))):[]})),T=(0,r.createSelector)([C],(function(e){return i()(Object.values(e).map((function(e){return e&&v.determineAnnotation(e.json)})),(function(e){return e&&e.present()}))})),k=(0,r.createSelector)([_,S],(function(e,t){return i()(s()(e.map((function(e){return e.resources}))),(function(e){return e.motivations.some((function(e){return t.includes(e)}))}))})),P=(0,r.createSelector)([T,S],(function(e,t){return i()(s()(e.map((function(e){return e.resources}))),(function(e){return e.motivations.some((function(e){return t.includes(e)}))}))})),I=(0,r.createSelector)([E.zk],(function(e){return e.selectedAnnotationId})),R=(0,r.createSelector)([T,I],(function(e,t){return e.map((function(e){return{id:e["@id"]||e.id,resources:e.resources.filter((function(e){return t===e.id}))}})).filter((function(e){return e.resources.length>0}))}))},32697:(e,t,n)=>{"use strict";n.d(t,{Rf:()=>g,X8:()=>v,wd:()=>b,xI:()=>y});var r=n(22325),o=n(46346),i=n(35970),a=n.n(i),s=n(45196),l=n(5006),c=n(90361),u=n(46946);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function f(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 p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,r.createSelector)([c.zj],(function(e){var t=e.auth,n=(t=void 0===t?{}:t).serviceProfiles;return void 0===n?[]:n})),v=function(e){return(0,l.miradorSlice)(e).accessTokens||{}},y=function(e){return(0,l.miradorSlice)(e).auth||{}},b=(0,r.createSelector)([u.Mg,u.dN,g,y,function(e,t){return t.iiifResources}],(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!i&&e&&(i=a()(e.map((function(e){return new s.default(e).iiifImageResources.map((function(e){var n=e.getServices()[0],r=t[n.id];return r&&r.json?h(h({},r.json),{},{options:{}}):n}))})))),!i)return[];if(0===i.length)return[];var l=i.map((function(e){var t,i,a=o.Utils.getServices(e),s=d(n);try{var l=function(){var e,n=i.value,o=d(a.filter((function(e){return n.profile===e.getProfile()})));try{for(o.s();!(e=o.n()).done;){var s=e.value;if(t=s,!r[s.id]||r[s.id].isFetching||r[s.id].ok)return{v:s}}}catch(e){o.e(e)}finally{o.f()}};for(s.s();!(i=s.n()).done;){var c=l();if("object"==typeof c)return c.v}}catch(e){s.e(e)}finally{s.f()}return t}));return Object.values(l.reduce((function(e,t){return t&&!e[t.id]&&(e[t.id]=t),e}),{}))}))},46946:(e,t,n)=>{"use strict";n.d(t,{dX:()=>m,HU:()=>S,O$:()=>w,tV:()=>b,T2:()=>O,P:()=>h,kR:()=>g,BL:()=>E,Nj:()=>x,_K:()=>T,mK:()=>C,tv:()=>v,RP:()=>A,HS:()=>_,Mg:()=>y,E_:()=>k,dN:()=>p});var r=n(22325),o=n(35970),i=n.n(o);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvases=t,this.viewType=n,this._groupings=null}var t,n;return t=e,(n=[{key:"getCanvases",value:function(e){return"book"===this.viewType?this.groupings()[Math.ceil(e/2)]:this.groupings()[e]}},{key:"groupings",value:function(){if(this._groupings)return this._groupings;if("scroll"===this.viewType)return[this.canvases];if("book"!==this.viewType)return this.canvases.map((function(e){return[e]}));var e=[];return this.canvases.forEach((function(t,n){0!==n?n%2!=0?e.push([t]):e[Math.ceil(n/2)].push(t):e.push([t])})),this._groupings=e,e}}])&&a(t.prototype,n),e}(),l=n(45196),c=n(5006),u=n(65419),d=n(38925),f=n(17006),p=function(e){return(0,c.miradorSlice)(e).infoResponses},h=(0,r.createSelector)([d.eb],(function(e){return e&&e.getCanvases()||[]})),m=(0,r.createSelector)([d.eb,function(e,t){return t.canvasId}],(function(e,t){if(e&&t)return e.getCanvasById(t)})),g=(0,r.createSelector)([d.eb,u.zk],(function(e,t){if(e&&t)return t.canvasId?e.getCanvasById(t.canvasId):e.getCanvasByIndex(0)})),v=(0,r.createSelector)([u.zk],(function(e){return e&&(e.visibleCanvases||e.canvasId&&[e.canvasId])||[]})),y=(0,r.createSelector)([v,h],(function(e,t){return(t||[]).filter((function(t){return e.includes(t.id)}))})),b=(0,r.createSelector)([h,f.i9],(function(e,t){return e&&new s(e,t).groupings()})),w=(0,r.createSelector)([b,function(e,t){return t.canvasId}],(function(e,t){return e&&e.find((function(e){return e.some((function(e){return e.id===t}))}))||[]})),E=(0,r.createSelector)([b,g],(function(e,t,n){if(e&&t){var r=e.findIndex((function(e){return e.some((function(e){return e.id===t.id}))}));if(!(r<0||r+1>=e.length))return e[r+1]}})),x=(0,r.createSelector)([b,g],(function(e,t,n){if(e&&t){var r=e.findIndex((function(e){return e.some((function(e){return e.id===t.id}))}));if(!(r<1))return e[r-1]}})),O=(0,r.createSelector)([m],(function(e){return e&&(e.getLabel().length>0?e.getLabel().getValue():String(e.index+1))})),S=(0,r.createSelector)([m],(function(e){return e&&e.getProperty("description")})),A=(0,r.createSelector)([y],(function(e){return i()(e.map((function(e){return new l.default(e).imageResources}))).filter((function(e){return e.getServices().length<1}))})),_=(0,r.createSelector)([y],(function(e){return i()(e.map((function(e){return new l.default(e).videoResources})))})),C=(0,r.createSelector)([y],(function(e){return i()(e.map((function(e){return new l.default(e).vttContent})))})),T=(0,r.createSelector)([y],(function(e){return i()(e.map((function(e){return new l.default(e).audioResources})))})),k=(0,r.createSelector)([function(e,t){return t.infoId},m,p],(function(e,t,n){var r=e;if(!e){if(!t)return;var o=new l.default(t).iiifImageResources[0];r=o&&o.getServices()[0].id}return r&&n[r]&&!n[r].isFetching&&n[r]}))},51636:(e,t,n)=>{"use strict";n.d(t,{DS:()=>h,Ih:()=>E,Ir:()=>m,a4:()=>A,aE:()=>p,ar:()=>S,bN:()=>O,kH:()=>w});var r=n(22325),o=n(94394),i=n.n(o),a=n(5006),s=n(65419);function l(e){return function(e){if(Array.isArray(e))return c(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){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return(0,a.miradorSlice)(e).companionWindows||{}}var h=(0,r.createSelector)([p,function(e,t){return t.companionWindowId}],(function(e,t){return t&&e[t]})),m=(0,r.createSelector)([s.zk,p],(function(e,t){return e&&t[e.thumbnailNavigationId]&&t[e.thumbnailNavigationId].position})),g=(0,r.createSelector)([s.sl,p],(function(e,t){return(Object.keys(e)||[]).reduce((function(n,r){return d(d({},n),{},f({},r,i()(e[r].companionWindowIds,(function(e){return t[e]&&t[e].position}))))}),{})})),v=(0,r.createSelector)([s.sl,p],(function(e,t){return(Object.keys(e)||[]).reduce((function(n,r){return d(d({},n),{},f({},r,i()(e[r].companionWindowIds.map((function(e){return t[e]})),(function(e){return e.position}))))}),{})})),y=(0,r.createSelector)([function(e,t){return t.windowId},v],(function(e,t){return t[e]||{}})),b=(0,r.createSelector)([function(e,t){return t.windowId},g],(function(e,t){return t[e]||{}})),w=(0,r.createSelector)([y,function(e,t){return{position:t.position}}],(function(e,t){return e[t.position]||x})),E=(0,r.createSelector)([y,function(e,t){return{content:t.content}}],(function(e,t){var n,r=t.content;return(n=[]).concat.apply(n,l(Object.values(e))).filter((function(e){return e.content===r}))})),x=[],O=(0,r.createSelector)([b,function(e,t){return{position:t.position}}],(function(e,t){return e[t.position]||x})),S=(0,r.createSelector)([function(e,t){return t.position},s.zk],(function(e,t){if(!t)return!1;var n=t.companionAreaOpen,r=t.sideBarOpen;return"left"!==e||!(!n||!r)})),A=(0,r.createSelector)([y],(function(e){var t,n=0,r=0;return(t=[]).concat.apply(t,l(Object.values(e))).forEach((function(e){e.position.match(/right/)&&(n+=235),e.position.match(/bottom/)&&(r+=201)})),{height:r,width:n}}))},90361:(e,t,n)=>{"use strict";n.d(t,{Gt:()=>d,O4:()=>h,Qc:()=>m,TW:()=>g,X3:()=>p,b3:()=>v,lT:()=>y,x2:()=>f,zj:()=>u});var r=n(22325),o=n(14744),i=n.n(o),a=n(5006),s=n(65419);function l(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return(0,a.miradorSlice)(e||{}).config||{}}function d(e){var t=u(e).export;return Object.entries(t).reduce((function(t,n){var r=l(n,2),o=r[0],i=r[1];return!0===i?t[o]=e[o]:i.filter&&(t[o]=Object.entries(e[o]).filter(i.filter).reduce((function(e,t){var n=l(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})),t}),{})}var f=(0,r.createSelector)([u],(function(e){var t=e.availableLanguages,n=e.language;return Object.keys(t).map((function(e){return{current:e===n,label:t[e],locale:e}}))})),p=(0,r.createSelector)([s.K4,u],(function(e,t){return void 0===e.showZoomControls?t.workspace.showZoomControls:e.showZoomControls})),h=(0,r.createSelector)([u],(function(e){var t=e.theme,n=e.themes,r=e.selectedTheme;return i()(t,n[r]||{})})),m=(0,r.createSelector)([u],(function(e){var t=e.themes;return Object.keys(t)})),g=(0,r.createSelector)([u],(function(e){return e.id})),v=(0,r.createSelector)([u],(function(e){return e.theme.direction||"ltr"})),y=(0,r.createSelector)([u],(function(e){return e.requests||{}}))},65419:(e,t,n)=>{"use strict";n.d(t,{K4:()=>c,O5:()=>p,Rv:()=>d,c2:()=>f,p3:()=>i,rG:()=>u,sl:()=>a,tk:()=>l,zk:()=>s});var r=n(22325),o=n(5006);function i(e){return Object.values((0,o.miradorSlice)(e).windows).map((function(e){return e.manifestId}))}function a(e){return(0,o.miradorSlice)(e).windows||{}}function s(e,t){var n=t.windowId;return a(e)[n]}var l=(0,r.createSelector)([function(e){return(0,o.miradorSlice)(e).viewers},function(e,t){return t.windowId}],(function(e,t){return e[t]}));function c(e){return(0,o.miradorSlice)(e).workspace}var u=(0,r.createSelector)([c],(function(e){return e.windowIds||[]}));function d(e){return(0,o.miradorSlice)(e).manifests||{}}function f(e,t){var n=t.manifestId,r=t.windowId,o=d(e);return o&&o[n||r&&(s(e,{windowId:r})||{}).manifestId]}function p(e){return(0,o.miradorSlice)(e).catalog||{}}},79731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getAccessTokens:()=>m.X8,getAllowedWindowViewTypes:()=>c.B2,getAnnotationResourcesByMotivation:()=>r.Y2,getAnnotationResourcesByMotivationForCanvas:()=>r.Ni,getAnnotations:()=>r.Rh,getAuth:()=>m.xI,getAuthProfiles:()=>m.Rf,getCanvas:()=>o.dX,getCanvasDescription:()=>o.HU,getCanvasForAnnotation:()=>d.bg,getCanvasGrouping:()=>o.O$,getCanvasGroupings:()=>o.tV,getCanvasIndex:()=>h.PB,getCanvasLabel:()=>o.T2,getCanvasLayers:()=>p.p8,getCanvases:()=>o.P,getCatalog:()=>s.O5,getCompanionAreaVisibility:()=>i.ar,getCompanionWindow:()=>i.DS,getCompanionWindowIdsForPosition:()=>i.bN,getCompanionWindows:()=>i.aE,getCompanionWindowsForContent:()=>i.Ih,getCompanionWindowsForPosition:()=>i.kH,getConfig:()=>a.zj,getContainerId:()=>a.TW,getCurrentCanvas:()=>o.kR,getCurrentCanvasWorld:()=>v.k,getDefaultSidebarVariant:()=>f.bT,getDestructuredMetadata:()=>l.uh,getElasticLayout:()=>u.Q9,getExpandedNodeIds:()=>f.S,getExportableState:()=>a.Gt,getFullScreenEnabled:()=>u.H,getLanguagesFromConfigWithCurrent:()=>a.x2,getLatestError:()=>u.g,getLayers:()=>p.bB,getLayersForVisibleCanvases:()=>p.MS,getManifest:()=>s.c2,getManifestAutocompleteService:()=>l.J4,getManifestDescription:()=>l.CG,getManifestError:()=>l.WA,getManifestHomepage:()=>l.cm,getManifestLocale:()=>l.U1,getManifestLogo:()=>l.nB,getManifestMetadata:()=>l.dB,getManifestProvider:()=>l.X6,getManifestRelatedContent:()=>l._l,getManifestRenderings:()=>l.dn,getManifestSearchService:()=>l.B8,getManifestStatus:()=>l.YR,getManifestThumbnail:()=>l.yj,getManifestTitle:()=>l.aY,getManifestUrl:()=>l.hp,getManifestoInstance:()=>l.SG,getManifests:()=>s.Rv,getManuallyExpandedNodeIds:()=>f.tv,getMaximizedWindowsIds:()=>c.Eu,getMetadataLocales:()=>l.t_,getNextCanvasGrouping:()=>o.BL,getNextSearchId:()=>d.TU,getNodeIdToScrollTo:()=>f.rK,getPresentAnnotationsOnSelectedCanvases:()=>r.Su,getPreviousCanvasGrouping:()=>o.Nj,getRequestsConfig:()=>a.lT,getRequiredStatement:()=>l.lj,getResourceAnnotationForSearchHit:()=>d.KB,getResourceAnnotationLabel:()=>d.wt,getRights:()=>l._6,getSearchAnnotationsForCompanionWindow:()=>d.yy,getSearchAnnotationsForWindow:()=>d.sC,getSearchForWindow:()=>d.WF,getSearchIsFetching:()=>d.bq,getSearchNumTotal:()=>d.LR,getSearchQuery:()=>d.V8,getSelectedAnnotationId:()=>r.e3,getSelectedAnnotationsOnCanvases:()=>r.Z_,getSelectedContentSearchAnnotationIds:()=>d.SU,getSequence:()=>h.eb,getSequenceBehaviors:()=>h.pw,getSequenceTreeStructure:()=>h.P8,getSequenceViewingDirection:()=>h.Kb,getSequenceViewingHint:()=>h.sR,getSequences:()=>h.fO,getShowZoomControlsConfig:()=>a.X3,getSortedLayers:()=>p.yK,getSortedSearchAnnotationsForCompanionWindow:()=>d.TA,getSortedSearchHitsForCompanionWindow:()=>d.XK,getTheme:()=>a.O4,getThemeDirection:()=>a.b3,getThemeIds:()=>a.Qc,getThumbnailNavigationPosition:()=>i.Ir,getViewer:()=>s.tk,getVisibleCanvasAudioResources:()=>o._K,getVisibleCanvasCaptions:()=>o.mK,getVisibleCanvasIds:()=>o.tv,getVisibleCanvasNonTiledResources:()=>o.RP,getVisibleCanvasVideoResources:()=>o.HS,getVisibleCanvases:()=>o.Mg,getVisibleNodeIds:()=>f.BB,getWindow:()=>s.zk,getWindowConfig:()=>c.R2,getWindowDraggability:()=>c.kt,getWindowIds:()=>s.rG,getWindowManifests:()=>s.p3,getWindowTitles:()=>c.wb,getWindowViewType:()=>c.i9,getWindows:()=>s.sl,getWorkspace:()=>s.K4,getWorkspaceType:()=>u.I3,isFocused:()=>u.ar,miradorSlice:()=>g.miradorSlice,selectCompanionWindowDimensions:()=>i.a4,selectCurrentAuthServices:()=>m.wd,selectInfoResponse:()=>o.E_,selectInfoResponses:()=>o.dN,sortSearchAnnotationsByCanvasOrder:()=>d.gD});var r=n(74389),o=n(46946),i=n(51636),a=n(90361),s=n(65419),l=n(73893),c=n(17006),u=n(5406),d=n(73015),f=n(55181),p=n(60821),h=n(38925),m=n(32697),g=n(5006),v=n(13069)},60821:(e,t,n)=>{"use strict";n.d(t,{MS:()=>u,bB:()=>l,p8:()=>s,yK:()=>c});var r=n(22325),o=n(45196),i=n(46946),a=n(5006),s=(0,r.createSelector)([i.dX],(function(e){return e?new o.default(e).imageResources:[]})),l=(0,r.createSelector)([function(e){return(0,a.miradorSlice)(e).layers||{}},function(e,t){return t.windowId},function(e,t){return t.canvasId}],(function(e,t,n){return(e[t]||{})[n]})),c=(0,r.createSelector)([s,l],(function(e,t){return t?e.sort((function(e,n){return t[e.id]&&void 0!==t[e.id].index&&t[n.id]&&void 0!==t[n.id].index?t[e.id].index-t[n.id].index:t[e.id]&&void 0!==t[e.id].index?-1:t[n.id]&&void 0!==t[n.id].index?1:0})):e})),u=(0,r.createSelector)([i.tv,function(e,t){var n=t.windowId;return function(t){return l(e,{canvasId:t,windowId:n})}}],(function(e,t){return e.reduce((function(e,n){return e[n]=t(n),e}),{})}))},73893:(e,t,n)=>{"use strict";n.d(t,{B8:()=>M,CG:()=>P,J4:()=>L,SG:()=>y,U1:()=>b,WA:()=>g,X6:()=>x,YR:()=>m,_6:()=>C,_l:()=>A,aY:()=>k,cm:()=>O,dB:()=>j,dn:()=>S,hp:()=>I,lj:()=>_,nB:()=>E,t_:()=>N,uh:()=>R,yj:()=>T});var r=n(22325),o=n(77455),i=n.n(o),a=n(46346),s=n(89824),l=n(89945),c=n(51636),u=n(65419),d=n(90361);function f(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 p(e,t){if(e){var n=a.Utils.parseManifest(e,t?{locale:t}:void 0);return"function"!=typeof n.getSequences&&(n.getSequences=function(){return[]}),n}}var h=(0,r.createSelector)([c.DS,d.zj],(function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).locale||e.language})),m=(0,r.createSelector)([u.c2],(function(e){return e||{missing:!0}})),g=(0,r.createSelector)([u.c2],(function(e){return e&&e.error})),v=i()(u.c2,h,(function(e,t){return e&&p(e.json,t)}))((function(e,t){var n=t.companionWindowId;return[t.manifestId,t.windowId,h(e,{companionWindowId:n})].join(" - ")})),y=(0,r.createSelector)(v,(function(e,t){return t.json}),h,(function(e,t,n){return t&&p(t,n)||e})),b=(0,r.createSelector)([y],(function(e){return e&&e.options&&e.options.locale&&e.options.locale.replace(/-.*$/,"")}));function w(e){return(0,r.createSelector)([y],(function(t){return t&&t.getProperty(e)}))}var E=(0,r.createSelector)([y],(function(e){return e&&e.getLogo()})),x=(0,r.createSelector)([w("provider"),b],(function(e,t){return e&&e[0].label&&a.PropertyValue.parse(e[0].label,t).getValue()})),O=(0,r.createSelector)([w("homepage"),b],(function(e,t){return e&&(0,l.A)(e).map((function(e){return{label:a.PropertyValue.parse(e.label,t).getValue(),value:e.id||e["@id"]}}))})),S=(0,r.createSelector)([y],(function(e){return e&&e.getRenderings().map((function(e){return{label:e.getLabel().getValue(),value:e.id}}))})),A=(0,r.createSelector)([w("seeAlso"),b],(function(e,t){return e&&(0,l.A)(e).map((function(e){return{format:e.format,label:a.PropertyValue.parse(e.label,t).getValue(),value:e.id||e["@id"]}}))})),_=(0,r.createSelector)([y],(function(e){return e&&(0,l.A)(e.getRequiredStatement()).filter((function(e){return e.getValues().some((function(e){return e}))})).map((function(e){return{label:e.label&&e.label.getValue()||null,values:e.getValues()}}))})),C=(0,r.createSelector)([w("rights"),w("license"),b],(function(e,t,n){var r=e||t;return(0,l.A)(a.PropertyValue.parse(r,n).getValues())}));function T(e,t){var n=y(e,t),r=(0,d.zj)(e).thumbnails,o=void 0===r?{}:r;if(n){var i=(0,s.A)(n,{maxHeight:80,maxWidth:120,preferredFormats:o.preferredFormats});return i&&i.url}}var k=(0,r.createSelector)([y],(function(e){return e&&e.getLabel().getValue()})),P=(0,r.createSelector)([y],(function(e){return e&&e.getDescription().getValue()})),I=(0,r.createSelector)([y],(function(e){return e&&e.id}));function R(e){return e&&e.getMetadata().map((function(e){return{label:e.getLabel(),values:e.getValues()}}))}var j=(0,r.createSelector)([y],(function(e){return e&&R(e)}));function D(e){var t,n=[];return Array.isArray(e)?n.push.apply(n,function(e){if(Array.isArray(e))return f(e)}(t=e.filter((function(e){return"object"==typeof e&&e["@language"]})).map((function(e){return e["@language"]})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(t)||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.")}()):e&&"object"==typeof e&&e["@language"]&&n.push(e["@language"]),n}var N=(0,r.createSelector)([y],(function(e){return function(e){if(!e)return[];for(var t=e.getProperty("metadata")||[],n={},r=0;r<t.length;r+=1){var o=t[r];D(o.label).forEach((function(e){n[e]=!0})),D(o.value).forEach((function(e){n[e]=!0}))}return Object.keys(n)}(e)})),M=(0,r.createSelector)([y],(function(e){return e&&(e.getService("http://iiif.io/api/search/0/search")||e.getService("http://iiif.io/api/search/1/search"))||null})),L=(0,r.createSelector)([M],(function(e){var t=e&&(e.getService("http://iiif.io/api/search/0/autocomplete")||e.getService("http://iiif.io/api/search/1/autocomplete"));return t&&t}))},55181:(e,t,n)=>{"use strict";n.d(t,{BB:()=>w,S:()=>S,bT:()=>_,rK:()=>A,tv:()=>O});var r=n(22325),o=n(80299),i=n.n(o),a=n(91648),s=n.n(a),l=n(46346),c=n(46946),u=n(51636),d=n(38925);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(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 g(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 v(e){return void 0===e.parentNode?[]:void 0===e.parentNode.parentNode?[e.parentNode.id]:[].concat(m(v(e.parentNode)),[e.parentNode.id])}function y(e,t){return e.reduce((function(e,n){var r=[];r.push.apply(r,m(e));var o=t.reduce((function(e,t){return e||function(e,t){for(var n=e.getCanvasIds(),r=0;r<n.length;r+=1)if(l.Utils.normalisedUrlsMatch(n[r],t))return!0;return!1}(n.data,t)}),!1),i=n.nodes.length>0?y(n.nodes,t):[];return r.push.apply(r,m(i)),(o||i.length>0)&&r.push({containsVisibleCanvas:o,descendantsContainVisibleCanvas:i.length>0,id:n.id,leaf:0===n.nodes.length,parentIds:v(n)}),r}),[])}var b=(0,r.createSelector)([d.P8,c.tv],(function(e,t){return 0!==t.length&&e?y(e.nodes,t):[]})),w=(0,r.createSelector)([b],(function(e){return e.map((function(e){return e.id}))})),E=(0,r.createSelector)([b],(function(e){return e.reduce((function(e,t){return t.leaf||!t.descendantsContainVisibleCanvas?e:[].concat(m(e),[t.id])}),[])})),x=(0,r.createSelector)([b],(function(e){return e.reduce((function(e,t){return t.containsVisibleCanvas?[].concat(m(e),[t]):e}),[])}));function O(e,t,n){var r=t.companionWindowId,o=(0,u.DS)(e,{companionWindowId:r});return o.tocNodes?Object.keys(o.tocNodes).reduce((function(e,t){return o.tocNodes[t].expanded===n?[].concat(m(e),[t]):e}),[]):[]}function S(e,t){var n=t.companionWindowId,r=t.windowId,o=E(e,{companionWindowId:n,windowId:r}),a=O(e,{companionWindowId:n},!0),l=O(e,{companionWindowId:n},!1);return s().apply(void 0,[i()(a,o)].concat(m(l)))}function A(e,t){var n=h({},t),r=x(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n)),o=O(e,n,!1);if(r&&r.length>0){for(var i=0;i<r[0].parentIds.length;i+=1)if(-1!==o.indexOf(r[0].parentIds[i]))return r[0].parentIds[i];return r[0].id}return null}var _=(0,r.createSelector)([d.P8],(function(e){return e&&e.nodes&&e.nodes.length>0?"tableOfContents":"item"}))},73015:(e,t,n)=>{"use strict";n.d(t,{KB:()=>C,LR:()=>v,SU:()=>_,TA:()=>S,TU:()=>y,V8:()=>m,WF:()=>f,XK:()=>w,bg:()=>P,bq:()=>g,gD:()=>O,sC:()=>A,wt:()=>T,yy:()=>x});var r=n(22325),o=n(46346),i=n(35970),a=n.n(i),s=n(40387),l=n(46946),c=n(65419),u=n(73893),d=n(5006),f=(0,r.createSelector)([function(e,t){return t.windowId},function(e){return(0,d.miradorSlice)(e).searches}],(function(e,t){return e&&t?t[e]:{}})),p=(0,r.createSelector)([f,function(e,t){return t.companionWindowId}],(function(e,t){if(e&&t)return e[t]})),h=(0,r.createSelector)([p],(function(e){return e?Object.values(e.data):[]})),m=(0,r.createSelector)([p],(function(e){return e&&e.query})),g=(0,r.createSelector)([h],(function(e){return e.some((function(e){return e.isFetching}))})),v=(0,r.createSelector)([p],(function(e){var t,n;if(e&&e.data){var r=Object.values(e.data).find((function(e){return!e.isFetching&&e.json&&e.json.within}));return null==r||null===(t=r.json)||void 0===t||null===(n=t.within)||void 0===n?void 0:n.total}})),y=(0,r.createSelector)([p],(function(e){if(e&&e.data){var t=Object.values(e.data).find((function(t){return!t.isFetching&&t.json&&t.json.next&&!e.data[t.json.next]}));return t&&t.json&&t.json.next}})),b=(0,r.createSelector)([h],(function(e){return a()(e.map((function(e){return e&&e.json&&!e.isFetching&&e.json.hits?e.json.hits:[]})))})),w=(0,r.createSelector)([b,l.P,function(e,t){var n=t.companionWindowId,r=t.windowId;return function(t){return C(e,{annotationUri:t,companionWindowId:n,windowId:r})}}],(function(e,t,n){if(!t||0===t.length)return[];if(!e||0===e.length)return[];var r=t.map((function(e){return e.id}));return[].concat(e).sort((function(e,t){var o=n(e.annotations[0]),i=n(t.annotations[0]);return r.indexOf(o.targetId)-r.indexOf(i.targetId)}))})),E=function(e){var t=e.map((function(e){if(e&&e.json&&!e.isFetching&&e.json.resources){var t=new s.A(e.json);return{id:t.id,resources:t.resources}}})).filter(Boolean);return{id:(t.find((function(e){return e.id}))||{}).id,resources:a()(t.map((function(e){return e.resources})))}},x=(0,r.createSelector)([h],(function(e){return e&&E(e)}));function O(e,t){if(!e||!e.resources||0===e.length)return[];if(!t||0===t.length)return[];var n=t.map((function(e){return e.id}));return[].concat(e.resources).sort((function(e,t){return n.indexOf(e.targetId)-n.indexOf(t.targetId)}))}var S=(0,r.createSelector)([x,l.P],(function(e,t){return O(e,t)})),A=(0,r.createSelector)([f],(function(e){return e?Object.values(e).map((function(e){return Object.values(e.data)})).map((function(e){return E(e)})).filter((function(e){return e.resources.length>0})):[]})),_=(0,r.createSelector)([c.zk,p],(function(e,t){return t&&t.selectedContentSearchAnnotationIds||[]})),C=(0,r.createSelector)([x,function(e,t){return t.annotationUri}],(function(e,t){return e.resources.find((function(e){return e.id===t}))})),T=(0,r.createSelector)([C,u.U1],(function(e,t){return e&&e.resource&&e.resource.label?o.PropertyValue.parse(e.resource.label,t).getValues():[]})),k=(0,r.createSelector)([A,function(e,t){return t.annotationId}],(function(e,t){return a()(e.map((function(e){return e.resources}))).find((function(e){return e.id===t}))})),P=(0,r.createSelector)([k,function(e,t){var n=t.windowId;return function(t){return(0,l.dX)(e,{canvasId:t,windowId:n})}}],(function(e,t){var n=e&&e.targetId;return n&&t(n)}))},38925:(e,t,n)=>{"use strict";n.d(t,{Kb:()=>d,P8:()=>p,PB:()=>c,eb:()=>l,fO:()=>s,pw:()=>f,sR:()=>u});var r=n(22325),o=n(46346),i=n(73893),a=n(65419),s=(0,r.createSelector)([i.SG],(function(e){if(!e||!e.getTopRanges)return null;var t=e.getTopRanges(),n=[];return 0===t.filter((function(e){return"top"===e.getProperty("viewingHint")})).length&&1===t.length&&(n=t[0].getRanges().filter((function(e){return"sequence"===e.getBehavior()}))),[].concat(e.getSequences(),n)})),l=(0,r.createSelector)([s,a.zk,function(e,t){return t.sequenceId}],(function(e,t,n){if(!e)return null;if(n||t&&t.sequenceId){var r=e.find((function(e){return e.id===(n||t.sequenceId)}));if(r)return r}return e[0]})),c=(0,r.createSelector)([a.zk,l],(function(e,t){return(t&&e&&e.canvasId&&t.getCanvasById(e.canvasId)||{}).index||0})),u=(0,r.createSelector)([l,i.SG],(function(e,t){return t&&(e&&e.getViewingHint()||t.getViewingHint())||null})),d=(0,r.createSelector)([a.zk,l,i.SG],(function(e,t,n){return e&&e.viewingDirection||t&&t.getViewingDirection()||n&&n.getViewingDirection()||null})),f=(0,r.createSelector)([l,i.SG],(function(e,t){if(!t||!e)return[];var n=e&&e.getProperty("behavior");if(n)return Array.isArray(n)?n:[n];var r=t.getProperty("behavior");return r?Array.isArray(r)?r:[r]:[]})),p=(0,r.createSelector)([l,i.SG],(function(e,t){return e&&e.getProperty("type")&&e.isRange()?e.getTree(new o.TreeNode("root")):t&&t.getDefaultTree()}))},5006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{miradorSlice:()=>o});var r=n(33266);function o(e){return r.A.state.slice?e[r.A.state.slice]:e}},13069:(e,t,n)=>{"use strict";n.d(t,{k:()=>l});var r=n(22325),o=n(75652),i=n(46946),a=n(60821),s=n(38925),l=(0,r.createSelector)(i.Mg,a.MS,s.Kb,(function(e,t,n){return new o.A(e,t,n)}))},17006:(e,t,n)=>{"use strict";n.d(t,{B2:()=>g,Eu:()=>h,R2:()=>f,i9:()=>m,kt:()=>v,wb:()=>p});var r=n(22325),o=n(73893),i=n(90361),a=n(65419),s=n(5406),l=n(38925);function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=(0,r.createSelector)([i.zj,a.zk],(function(e){var t=e.window,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(u({},t),n)}));function p(e){var t={};return Object.keys((0,a.sl)(e)).forEach((function(n){t[n]=(0,o.aY)(e,{windowId:n})})),t}var h=(0,r.createSelector)([a.sl],(function(e){return Object.values(e).filter((function(e){return!0===e.maximized})).map((function(e){return e.id}))})),m=(0,r.createSelector)([a.zk,f,l.sR,l.pw],(function(e,t,n,r){var o=t.views,i=void 0===o?[]:o,a=t.defaultView;if(e&&e.view)return e.view;var s=(i||[]).find((function(e){return e.behaviors&&e.behaviors.some((function(e){return n===e||r.includes(e)}))}));return s&&s.key||a})),g=(0,r.createSelector)([l.sR,l.pw,f],(function(e,t,n){var r=n.views,o=void 0===r?[]:r,i=n.defaultView;return(o||[]).reduce((function(n,r){return r.key!==i&&r.behaviors&&!r.behaviors.some((function(n){return e===n||t.includes(n)}))||n.push(r.key),n}),[])})),v=(0,r.createSelector)([s.I3,a.zk,function(e){return(0,a.rG)(e).length>1}],(function(e,t,n){return"elastic"===e||n&&t&&!1===t.maximized}))},5406:(e,t,n)=>{"use strict";n.d(t,{H:()=>l,I3:()=>u,Q9:()=>s,ar:()=>f,g:()=>c});var r=n(22325),o=n(65419),i=n(5006);function a(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 s(e){return(0,i.miradorSlice)(e).elasticLayout}var l=(0,r.createSelector)([o.K4],(function(e){return e.isFullscreenEnabled}));function c(e){var t,n,r=(t=(0,i.miradorSlice)(e).errors.items,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return(0,i.miradorSlice)(e).errors[r]}var u=(0,r.createSelector)([o.K4],(function(e){return e.type})),d=(0,r.createSelector)([o.K4],(function(e){return e.focusedWindowId})),f=function(e,t){var n=t.windowId;return d(e)===n}},15972:(e,t,n)=>{"use strict";const r="undefined"==typeof URL?n(88835).URL:URL,o=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e)),i=(e,t)=>{if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},Reflect.has(t,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(t,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(t,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(e=e.trim(),/^data:/i.test(e))return((e,{stripHash:t})=>{const n=e.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!n)throw new Error(`Invalid URL: ${e}`);const r=n[1].split(";"),o=n[2],i=t?"":n[3];let a=!1;"base64"===r[r.length-1]&&(r.pop(),a=!0);const s=(r.shift()||"").toLowerCase(),l=[...r.map((e=>{let[t,n=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(n=n.toLowerCase(),"us-ascii"===n)?"":`${t}${n?`=${n}`:""}`})).filter(Boolean)];return a&&l.push("base64"),(0!==l.length||s&&"text/plain"!==s)&&l.unshift(s),`data:${l.join(";")},${a?o.trim():o}${i?`#${i}`:""}`})(e,t);const n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const i=new r(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===i.protocol&&(i.protocol="http:"),t.forceHttps&&"http:"===i.protocol&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash&&(i.hash=""),i.pathname&&(i.pathname=i.pathname.replace(/((?!:).|^)\/{2,}/g,((e,t)=>/^(?!\/)/g.test(t)?`${t}/`:"/"))),i.pathname&&(i.pathname=decodeURI(i.pathname)),!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=i.pathname.split("/");const n=e[e.length-1];o(n,t.removeDirectoryIndex)&&(e=e.slice(0,e.length-1),i.pathname=e.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const e of[...i.searchParams.keys()])o(e,t.removeQueryParameters)&&i.searchParams.delete(e);return t.sortQueryParameters&&i.searchParams.sort(),t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,"")),e=i.toString(),!t.removeTrailingSlash&&"/"!==i.pathname||""!==i.hash||(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};e.exports=i,e.exports.default=i},45228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},14791:function(module,exports){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,$,fullScreenApi;function OpenSeadragon(e){return new OpenSeadragon.Viewer(e)}!function(e){e.version={versionStr:"2.4.2",major:parseInt("2",10),minor:parseInt("4",10),revision:parseInt("2",10)};var t,n={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.isFunction=function(t){return"function"===e.type(t)},e.isArray=Array.isArray||function(t){return"array"===e.type(t)},e.isWindow=function(e){return e&&"object"==typeof e&&"setInterval"in e},e.type=function(e){return null==e?String(e):n[r.call(e)]||"object"},e.isPlainObject=function(t){if(!t||"object"!==OpenSeadragon.type(t)||t.nodeType||e.isWindow(t))return!1;if(t.constructor&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return!1;var n;for(var r in t)n=r;return void 0===n||o.call(t,n)},e.isEmptyObject=function(e){for(var t in e)return!1;return!0},e.freezeObject=function(t){return Object.freeze?e.freezeObject=Object.freeze:e.freezeObject=function(e){return e},e.freezeObject(t)},e.supportsCanvas=(t=document.createElement("canvas"),!(!e.isFunction(t.getContext)||!t.getContext("2d"))),e.isCanvasTainted=function(e){var t=!1;try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){t=!0}return t},e.pixelDensityRatio=function(){if(e.supportsCanvas){var t=document.createElement("canvas").getContext("2d"),n=window.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return Math.max(n,1)/r}return 1}()}(OpenSeadragon),function($){$.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=arguments.length,l=!1,c=1;for("boolean"==typeof a&&(l=a,a=arguments[1]||{},c=2),"object"==typeof a||OpenSeadragon.isFunction(a)||(a={}),s===c&&(a=this,--c);c<s;c++)if(null!==(e=arguments[c])||void 0!==e)for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(OpenSeadragon.isPlainObject(r)||(o=OpenSeadragon.isArray(r)))?(o?(o=!1,i=n&&OpenSeadragon.isArray(n)?n:[]):i=n&&OpenSeadragon.isPlainObject(n)?n:{},a[t]=OpenSeadragon.extend(l,i,r)):void 0!==r&&(a[t]=r));return a};var isIOSDevice=function(){if("object"!=typeof navigator)return!1;var e=navigator.userAgent;return"string"==typeof e&&(-1!==e.indexOf("iPhone")||-1!==e.indexOf("iPad")||-1!==e.indexOf("iPod"))};$.extend($,{DEFAULT_SETTINGS:{xmlPath:null,tileSources:null,tileHost:null,initialPage:0,crossOriginPolicy:!1,ajaxWithCredentials:!1,loadTilesWithAjax:!1,ajaxHeaders:{},panHorizontal:!0,panVertical:!0,constrainDuringPan:!1,wrapHorizontal:!1,wrapVertical:!1,visibilityRatio:.5,minPixelRatio:.5,defaultZoomLevel:0,minZoomLevel:null,maxZoomLevel:null,homeFillsViewer:!1,clickTimeThreshold:300,clickDistThreshold:5,dblClickTimeThreshold:300,dblClickDistThreshold:20,springStiffness:6.5,animationTime:1.2,gestureSettingsMouse:{scrollToZoom:!0,clickToZoom:!0,dblClickToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsTouch:{scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsPen:{scrollToZoom:!1,clickToZoom:!0,dblClickToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsUnknown:{scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},zoomPerClick:2,zoomPerScroll:1.2,zoomPerSecond:1,blendTime:0,alwaysBlend:!1,autoHideControls:!0,immediateRender:!1,minZoomImageRatio:.9,maxZoomPixelRatio:1.1,smoothTileEdgesMinZoom:1.1,iOSDevice:isIOSDevice(),pixelsPerWheelLine:40,pixelsPerArrowPress:40,autoResize:!0,preserveImageSizeOnResize:!1,minScrollDeltaTime:50,rotationIncrement:90,showSequenceControl:!0,sequenceControlAnchor:null,preserveViewport:!1,preserveOverlays:!1,navPrevNextWrap:!1,showNavigationControl:!0,navigationControlAnchor:null,showZoomControl:!0,showHomeControl:!0,showFullPageControl:!0,showRotationControl:!1,showFlipControl:!1,controlsFadeDelay:2e3,controlsFadeLength:1500,mouseNavEnabled:!0,showNavigator:!1,navigatorId:null,navigatorPosition:null,navigatorSizeRatio:.2,navigatorMaintainSizeRatio:!1,navigatorTop:null,navigatorLeft:null,navigatorHeight:null,navigatorWidth:null,navigatorAutoResize:!0,navigatorAutoFade:!0,navigatorRotate:!0,navigatorBackground:"#000",navigatorOpacity:.8,navigatorBorderColor:"#555",navigatorDisplayRegionColor:"#900",degrees:0,flipped:!1,opacity:1,preload:!1,compositeOperation:null,imageSmoothingEnabled:!0,placeholderFillStyle:null,showReferenceStrip:!1,referenceStripScroll:"horizontal",referenceStripElement:null,referenceStripHeight:null,referenceStripWidth:null,referenceStripPosition:"BOTTOM_LEFT",referenceStripSizeRatio:.2,collectionRows:3,collectionColumns:0,collectionLayout:"horizontal",collectionMode:!1,collectionTileSize:800,collectionTileMargin:80,imageLoaderLimit:0,maxImageCacheCount:200,timeout:3e4,useCanvas:!0,prefixUrl:"/images/",navImages:{zoomIn:{REST:"zoomin_rest.png",GROUP:"zoomin_grouphover.png",HOVER:"zoomin_hover.png",DOWN:"zoomin_pressed.png"},zoomOut:{REST:"zoomout_rest.png",GROUP:"zoomout_grouphover.png",HOVER:"zoomout_hover.png",DOWN:"zoomout_pressed.png"},home:{REST:"home_rest.png",GROUP:"home_grouphover.png",HOVER:"home_hover.png",DOWN:"home_pressed.png"},fullpage:{REST:"fullpage_rest.png",GROUP:"fullpage_grouphover.png",HOVER:"fullpage_hover.png",DOWN:"fullpage_pressed.png"},rotateleft:{REST:"rotateleft_rest.png",GROUP:"rotateleft_grouphover.png",HOVER:"rotateleft_hover.png",DOWN:"rotateleft_pressed.png"},rotateright:{REST:"rotateright_rest.png",GROUP:"rotateright_grouphover.png",HOVER:"rotateright_hover.png",DOWN:"rotateright_pressed.png"},flip:{REST:"flip_rest.png",GROUP:"flip_grouphover.png",HOVER:"flip_hover.png",DOWN:"flip_pressed.png"},previous:{REST:"previous_rest.png",GROUP:"previous_grouphover.png",HOVER:"previous_hover.png",DOWN:"previous_pressed.png"},next:{REST:"next_rest.png",GROUP:"next_grouphover.png",HOVER:"next_hover.png",DOWN:"next_pressed.png"}},debugMode:!1,debugGridColor:["#437AB2","#1B9E77","#D95F02","#7570B3","#E7298A","#66A61E","#E6AB02","#A6761D","#666666"]},SIGNAL:"----seadragon----",delegate:function(e,t){return function(){var n=arguments;return void 0===n&&(n=[]),t.apply(e,n)}},BROWSERS:{UNKNOWN:0,IE:1,FIREFOX:2,SAFARI:3,CHROME:4,OPERA:5},getElement:function(e){return"string"==typeof e&&(e=document.getElementById(e)),e},getElementPosition:function(e){var t,n,r=new $.Point;for(n=getOffsetParent(e=$.getElement(e),t="fixed"==$.getElementStyle(e).position);n;)r.x+=e.offsetLeft,r.y+=e.offsetTop,t&&(r=r.plus($.getPageScroll())),n=getOffsetParent(e=n,t="fixed"==$.getElementStyle(e).position);return r},getElementOffset:function(e){var t,n,r=(e=$.getElement(e))&&e.ownerDocument,o={top:0,left:0};return r?(t=r.documentElement,void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect()),n=r==r.window?r:9===r.nodeType&&(r.defaultView||r.parentWindow),new $.Point(o.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0),o.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0))):new $.Point},getElementSize:function(e){return e=$.getElement(e),new $.Point(e.clientWidth,e.clientHeight)},getElementStyle:document.documentElement.currentStyle?function(e){return(e=$.getElement(e)).currentStyle}:function(e){return e=$.getElement(e),window.getComputedStyle(e,"")},getCssPropertyWithVendorPrefix:function(e){var t={};return $.getCssPropertyWithVendorPrefix=function(e){if(void 0!==t[e])return t[e];var n=document.createElement("div").style,r=null;if(void 0!==n[e])r=e;else for(var o=["Webkit","Moz","MS","O","webkit","moz","ms","o"],i=$.capitalizeFirstLetter(e),a=0;a<o.length;a++){var s=o[a]+i;if(void 0!==n[s]){r=s;break}}return t[e]=r,r},$.getCssPropertyWithVendorPrefix(e)},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},positiveModulo:function(e,t){var n=e%t;return n<0&&(n+=t),n},pointInElement:function(e,t){e=$.getElement(e);var n=$.getElementOffset(e),r=$.getElementSize(e);return t.x>=n.x&&t.x<n.x+r.x&&t.y<n.y+r.y&&t.y>=n.y},getEvent:function(e){return $.getEvent=e?function(e){return e}:function(){return window.event},$.getEvent(e)},getMousePosition:function(e){if("number"==typeof e.pageX)$.getMousePosition=function(e){var t=new $.Point;return e=$.getEvent(e),t.x=e.pageX,t.y=e.pageY,t};else{if("number"!=typeof e.clientX)throw new Error("Unknown event mouse position, no known technique.");$.getMousePosition=function(e){var t=new $.Point;return e=$.getEvent(e),t.x=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,t.y=e.clientY+document.body.scrollTop+document.documentElement.scrollTop,t}}return $.getMousePosition(e)},getPageScroll:function(){var e=document.documentElement||{},t=document.body||{};if("number"==typeof window.pageXOffset)$.getPageScroll=function(){return new $.Point(window.pageXOffset,window.pageYOffset)};else if(t.scrollLeft||t.scrollTop)$.getPageScroll=function(){return new $.Point(document.body.scrollLeft,document.body.scrollTop)};else{if(!e.scrollLeft&&!e.scrollTop)return new $.Point(0,0);$.getPageScroll=function(){return new $.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)}}return $.getPageScroll()},setPageScroll:function(e){if(void 0!==window.scrollTo)$.setPageScroll=function(e){window.scrollTo(e.x,e.y)};else{var t=$.getPageScroll();if(t.x===e.x&&t.y===e.y)return;document.body.scrollLeft=e.x,document.body.scrollTop=e.y;var n=$.getPageScroll();if(n.x!==t.x&&n.y!==t.y)return void($.setPageScroll=function(e){document.body.scrollLeft=e.x,document.body.scrollTop=e.y});if(document.documentElement.scrollLeft=e.x,document.documentElement.scrollTop=e.y,(n=$.getPageScroll()).x!==t.x&&n.y!==t.y)return void($.setPageScroll=function(e){document.documentElement.scrollLeft=e.x,document.documentElement.scrollTop=e.y});$.setPageScroll=function(e){}}return $.setPageScroll(e)},getWindowSize:function(){var e=document.documentElement||{},t=document.body||{};if("number"==typeof window.innerWidth)$.getWindowSize=function(){return new $.Point(window.innerWidth,window.innerHeight)};else if(e.clientWidth||e.clientHeight)$.getWindowSize=function(){return new $.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else{if(!t.clientWidth&&!t.clientHeight)throw new Error("Unknown window size, no known technique.");$.getWindowSize=function(){return new $.Point(document.body.clientWidth,document.body.clientHeight)}}return $.getWindowSize()},makeCenteredNode:function(e){e=$.getElement(e);var t=[$.makeNeutralElement("div"),$.makeNeutralElement("div"),$.makeNeutralElement("div")];return $.extend(t[0].style,{display:"table",height:"100%",width:"100%"}),$.extend(t[1].style,{display:"table-row"}),$.extend(t[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"}),t[0].appendChild(t[1]),t[1].appendChild(t[2]),t[2].appendChild(e),t[0]},makeNeutralElement:function(e){var t=document.createElement(e),n=t.style;return n.background="transparent none",n.border="none",n.margin="0px",n.padding="0px",n.position="static",t},now:function(){return Date.now?$.now=Date.now:$.now=function(){return(new Date).getTime()},$.now()},makeTransparentImage:function(e){return $.makeTransparentImage=function(e){var t=$.makeNeutralElement("img");return t.src=e,t},$.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<7&&($.makeTransparentImage=function(e){var t=$.makeNeutralElement("img"),n=null;return(n=$.makeNeutralElement("span")).style.display="inline-block",t.onload=function(){n.style.width=n.style.width||t.width+"px",n.style.height=n.style.height||t.height+"px",t.onload=null,t=null},t.src=e,n.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"', sizingMethod='scale')",n}),$.makeTransparentImage(e)},setElementOpacity:function(e,t,n){var r;e=$.getElement(e),n&&!$.Browser.alpha&&(t=Math.round(t)),$.Browser.opacity?e.style.opacity=t<1?t:"":t<1?(r="alpha(opacity="+Math.round(100*t)+")",e.style.filter=r):e.style.filter=""},setElementTouchActionNone:function(e){void 0!==(e=$.getElement(e)).style.touchAction?e.style.touchAction="none":void 0!==e.style.msTouchAction&&(e.style.msTouchAction="none")},addClass:function(e,t){(e=$.getElement(e)).className?-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=" "+t):e.className=t},indexOf:function(e,t,n){return Array.prototype.indexOf?this.indexOf=function(e,t,n){return e.indexOf(t,n)}:this.indexOf=function(e,t,n){var r,o,i=n||0;if(!e)throw new TypeError;if(0===(o=e.length)||i>=o)return-1;for(i<0&&(i=o-Math.abs(i)),r=i;r<o;r++)if(e[r]===t)return r;return-1},this.indexOf(e,t,n)},removeClass:function(e,t){var n,r,o=[];for(n=(e=$.getElement(e)).className.split(/\s+/),r=0;r<n.length;r++)n[r]&&n[r]!==t&&o.push(n[r]);e.className=o.join(" ")},addEvent:function(){if(window.addEventListener)return function(e,t,n,r){(e=$.getElement(e)).addEventListener(t,n,r)};if(window.attachEvent)return function(e,t,n,r){(e=$.getElement(e)).attachEvent("on"+t,n)};throw new Error("No known event model.")}(),removeEvent:function(){if(window.removeEventListener)return function(e,t,n,r){(e=$.getElement(e)).removeEventListener(t,n,r)};if(window.detachEvent)return function(e,t,n,r){(e=$.getElement(e)).detachEvent("on"+t,n)};throw new Error("No known event model.")}(),cancelEvent:function(e){(e=$.getEvent(e)).preventDefault?$.cancelEvent=function(e){e.preventDefault()}:$.cancelEvent=function(e){(e=$.getEvent(e)).cancel=!0,e.returnValue=!1},$.cancelEvent(e)},stopEvent:function(e){(e=$.getEvent(e)).stopPropagation?$.stopEvent=function(e){e.stopPropagation()}:$.stopEvent=function(e){(e=$.getEvent(e)).cancelBubble=!0},$.stopEvent(e)},createCallback:function(e,t){var n,r=[];for(n=2;n<arguments.length;n++)r.push(arguments[n]);return function(){var n,o=r.concat([]);for(n=0;n<arguments.length;n++)o.push(arguments[n]);return t.apply(e,o)}},getUrlParameter:function(e){return URLPARAMS[e]||null},getUrlProtocol:function(e){var t=e.match(/^([a-z]+:)\/\//i);return null===t?window.location.protocol:t[1].toLowerCase()},createAjaxRequest:function(e){var t;try{t=!!new ActiveXObject("Microsoft.XMLHTTP")}catch(e){t=!1}if(t)window.XMLHttpRequest?$.createAjaxRequest=function(e){return e?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}:$.createAjaxRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")};else{if(!window.XMLHttpRequest)throw new Error("Browser doesn't support XMLHttpRequest.");$.createAjaxRequest=function(){return new XMLHttpRequest}}return $.createAjaxRequest(e)},makeAjaxRequest:function(e,t,n){var r,o,i;$.isPlainObject(e)&&(t=e.success,n=e.error,r=e.withCredentials,o=e.headers,i=e.responseType||null,e=e.url);var a=$.getUrlProtocol(e),s=$.createAjaxRequest("file:"===a);if(!$.isFunction(t))throw new Error("makeAjaxRequest requires a success callback");s.onreadystatechange=function(){4==s.readyState&&(s.onreadystatechange=function(){},s.status>=200&&s.status<300||0===s.status&&"http:"!==a&&"https:"!==a?t(s):($.console.log("AJAX request returned %d: %s",s.status,e),$.isFunction(n)&&n(s)))};try{if(s.open("GET",e,!0),i&&(s.responseType=i),o)for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.setRequestHeader(l,o[l]);r&&(s.withCredentials=!0),s.send(null)}catch(r){var c=r.message;if($.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<10&&void 0!==r.number&&-2147024891==r.number&&(c+="\nSee http://msdn.microsoft.com/en-us/library/ms537505(v=vs.85).aspx#xdomain"),$.console.log("%s while making AJAX request: %s",r.name,c),s.onreadystatechange=function(){},window.XDomainRequest){var u=new window.XDomainRequest;if(u){u.onload=function(e){$.isFunction(t)&&t({responseText:u.responseText,status:200,statusText:"OK"})},u.onerror=function(e){$.isFunction(n)&&n({responseText:u.responseText,status:444,statusText:"An error happened. Due to an XDomainRequest deficiency we can not extract any information about this error. Upgrade your browser."})};try{u.open("GET",e),u.send()}catch(e){$.isFunction(n)&&n(s,r)}}}else $.isFunction(n)&&n(s,r)}return s},jsonp:function(e){var t,n=e.url,r=document.head||document.getElementsByTagName("head")[0]||document.documentElement,o=e.callbackName||"openseadragon"+$.now(),i=window[o],a="$1"+o+"$2",s=e.param||"callback",l=e.callback;n=n.replace(/(\=)\?(&|$)|\?\?/i,a),n+=(/\?/.test(n)?"&":"?")+s+"="+o,window[o]=function(e){if(i)window[o]=i;else try{delete window[o]}catch(e){}l&&$.isFunction(l)&&l(e)},t=document.createElement("script"),void 0===e.async&&!1===e.async||(t.async="async"),e.scriptCharset&&(t.charset=e.scriptCharset),t.src=n,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,r&&t.parentNode&&r.removeChild(t),t=void 0)},r.insertBefore(t,r.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(e){if(window.DOMParser)$.parseXml=function(e){return(new DOMParser).parseFromString(e,"text/xml")};else{if(!window.ActiveXObject)throw new Error("Browser doesn't support XML DOM.");$.parseXml=function(e){var t=null;return(t=new ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e),t}}return $.parseXml(e)},parseJSON:function(string){return window.JSON&&window.JSON.parse?$.parseJSON=window.JSON.parse:$.parseJSON=function(string){return eval("("+string+")")},$.parseJSON(string)},imageFormatSupported:function(e){return!!FILEFORMATS[(e=e||"").toLowerCase()]}});var nullfunction=function(e){};$.console=window.console||{log:nullfunction,debug:nullfunction,info:nullfunction,warn:nullfunction,error:nullfunction,assert:nullfunction},$.Browser={vendor:$.BROWSERS.UNKNOWN,version:0,alpha:!0};var FILEFORMATS={bmp:!1,jpeg:!0,jpg:!0,png:!0,tif:!1,wdp:!1},URLPARAMS={};function getOffsetParent(e,t){return t&&e!=document.body?document.body:e.offsetParent}!function(){var e=navigator.appVersion,t=navigator.userAgent;switch(navigator.appName){case"Microsoft Internet Explorer":window.attachEvent&&window.ActiveXObject&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(t.substring(t.indexOf("MSIE")+5,t.indexOf(";",t.indexOf("MSIE")))));break;case"Netscape":window.addEventListener&&(t.indexOf("Firefox")>=0?($.Browser.vendor=$.BROWSERS.FIREFOX,$.Browser.version=parseFloat(t.substring(t.indexOf("Firefox")+8))):t.indexOf("Safari")>=0?($.Browser.vendor=t.indexOf("Chrome")>=0?$.BROWSERS.CHROME:$.BROWSERS.SAFARI,$.Browser.version=parseFloat(t.substring(t.substring(0,t.indexOf("Safari")).lastIndexOf("/")+1,t.indexOf("Safari")))):null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(t)&&($.Browser.vendor=$.BROWSERS.IE,$.Browser.version=parseFloat(RegExp.$1)));break;case"Opera":$.Browser.vendor=$.BROWSERS.OPERA,$.Browser.version=parseFloat(e)}var n,r,o,i=window.location.search.substring(1).split("&");for(o=0;o<i.length;o++)if((r=(n=i[o]).indexOf("="))>0){var a=n.substring(0,r),s=n.substring(r+1);try{URLPARAMS[a]=decodeURIComponent(s)}catch(e){$.console.error("Ignoring malformed URL parameter: %s=%s",a,s)}}$.Browser.alpha=!($.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<9||$.Browser.vendor==$.BROWSERS.CHROME&&$.Browser.version<2),$.Browser.opacity=!($.Browser.vendor==$.BROWSERS.IE&&$.Browser.version<9)}(),function(e){var t=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame,n=e.cancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelAnimationFrame||e.msCancelAnimationFrame;if(t&&n)$.requestAnimationFrame=function(){return t.apply(e,arguments)},$.cancelAnimationFrame=function(){return n.apply(e,arguments)};else{var r,o=[],i=[],a=0;$.requestAnimationFrame=function(e){return o.push([++a,e]),r||(r=setInterval((function(){if(o.length){var e=$.now(),t=i;for(i=o,o=t;i.length;)i.shift()[1](e)}else clearInterval(r),r=void 0}),20)),a},$.cancelAnimationFrame=function(e){var t,n;for(t=0,n=o.length;t<n;t+=1)if(o[t][0]===e)return void o.splice(t,1);for(t=0,n=i.length;t<n;t+=1)if(i[t][0]===e)return void i.splice(t,1)}}}(window)}(OpenSeadragon),__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(){return OpenSeadragon})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),$=OpenSeadragon,fullScreenApi={supportsFullScreen:!1,isFullScreen:function(){return!1},getFullScreenElement:function(){return null},requestFullScreen:function(){},exitFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",fullScreenErrorEventName:""},document.exitFullscreen?(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.fullscreenElement},fullScreenApi.requestFullScreen=function(e){return e.requestFullscreen()},fullScreenApi.exitFullScreen=function(){document.exitFullscreen()},fullScreenApi.fullScreenEventName="fullscreenchange",fullScreenApi.fullScreenErrorEventName="fullscreenerror"):document.msExitFullscreen?(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.msFullscreenElement},fullScreenApi.requestFullScreen=function(e){return e.msRequestFullscreen()},fullScreenApi.exitFullScreen=function(){document.msExitFullscreen()},fullScreenApi.fullScreenEventName="MSFullscreenChange",fullScreenApi.fullScreenErrorEventName="MSFullscreenError"):document.webkitExitFullscreen?(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.webkitFullscreenElement},fullScreenApi.requestFullScreen=function(e){return e.webkitRequestFullscreen()},fullScreenApi.exitFullScreen=function(){document.webkitExitFullscreen()},fullScreenApi.fullScreenEventName="webkitfullscreenchange",fullScreenApi.fullScreenErrorEventName="webkitfullscreenerror"):document.webkitCancelFullScreen?(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.webkitCurrentFullScreenElement},fullScreenApi.requestFullScreen=function(e){return e.webkitRequestFullScreen()},fullScreenApi.exitFullScreen=function(){document.webkitCancelFullScreen()},fullScreenApi.fullScreenEventName="webkitfullscreenchange",fullScreenApi.fullScreenErrorEventName="webkitfullscreenerror"):document.mozCancelFullScreen&&(fullScreenApi.supportsFullScreen=!0,fullScreenApi.getFullScreenElement=function(){return document.mozFullScreenElement},fullScreenApi.requestFullScreen=function(e){return e.mozRequestFullScreen()},fullScreenApi.exitFullScreen=function(){document.mozCancelFullScreen()},fullScreenApi.fullScreenEventName="mozfullscreenchange",fullScreenApi.fullScreenErrorEventName="mozfullscreenerror"),fullScreenApi.isFullScreen=function(){return null!==fullScreenApi.getFullScreenElement()},fullScreenApi.cancelFullScreen=function(){$.console.error("cancelFullScreen is deprecated. Use exitFullScreen instead."),fullScreenApi.exitFullScreen()},$.extend($,fullScreenApi),function(e){e.EventSource=function(){this.events={}},e.EventSource.prototype={addOnceHandler:function(e,t,n,r){var o=this;r=r||1;var i=0,a=function(n){++i===r&&o.removeHandler(e,a),t(n)};this.addHandler(e,a,n)},addHandler:function(t,n,r){var o=this.events[t];o||(this.events[t]=o=[]),n&&e.isFunction(n)&&(o[o.length]={handler:n,userData:r||null})},removeHandler:function(t,n){var r,o=this.events[t],i=[];if(o&&e.isArray(o)){for(r=0;r<o.length;r++)o[r].handler!==n&&i.push(o[r]);this.events[t]=i}},removeAllHandlers:function(e){if(e)this.events[e]=[];else for(var t in this.events)this.events[t]=[]},getHandler:function(e){var t=this.events[e];return t&&t.length?(t=1===t.length?[t[0]]:Array.apply(null,t),function(e,n){var r,o=t.length;for(r=0;r<o;r++)t[r]&&(n.eventSource=e,n.userData=t[r].userData,t[r].handler(n))}):null},raiseEvent:function(e,t){var n=this.getHandler(e);n&&(t||(t={}),n(this,t))}}}(OpenSeadragon),function(e){var t,n,r,o,i,a,s=[],l={};function c(t){var n,r=l[t.hash],o=r.activePointersLists.length;for(n=0;n<o;n++)r.activePointersLists[n].captureCount>0&&(e.removeEvent(e.MouseTracker.captureElement,"mousemove",r.mousemovecaptured,!0),e.removeEvent(e.MouseTracker.captureElement,"mouseup",r.mouseupcaptured,!0),e.removeEvent(e.MouseTracker.captureElement,e.MouseTracker.unprefixedPointerEvents?"pointermove":"MSPointerMove",r.pointermovecaptured,!0),e.removeEvent(e.MouseTracker.captureElement,e.MouseTracker.unprefixedPointerEvents?"pointerup":"MSPointerUp",r.pointerupcaptured,!0),e.removeEvent(e.MouseTracker.captureElement,"touchmove",r.touchmovecaptured,!0),e.removeEvent(e.MouseTracker.captureElement,"touchend",r.touchendcaptured,!0),r.activePointersLists[n].captureCount=0);for(n=0;n<o;n++)r.activePointersLists.pop()}function u(t){var n,r,o=l[t.hash];if(o.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)n=e.MouseTracker.subscribeEvents[r],e.removeEvent(t.element,n,o[n],!1);c(t),o.tracking=!1}}function d(t,n){var r=l[t.hash];if("pointerevent"===n)return{upName:e.MouseTracker.unprefixedPointerEvents?"pointerup":"MSPointerUp",upHandler:r.pointerupcaptured,moveName:e.MouseTracker.unprefixedPointerEvents?"pointermove":"MSPointerMove",moveHandler:r.pointermovecaptured};if("mouse"===n)return{upName:"mouseup",upHandler:r.mouseupcaptured,moveName:"mousemove",moveHandler:r.mousemovecaptured};if("touch"===n)return{upName:"touchend",upHandler:r.touchendcaptured,moveName:"touchmove",moveHandler:r.touchmovecaptured};throw new Error("MouseTracker.getCaptureEventParams: Unknown pointer type.")}function f(t,n,r){var o,i=t.getActivePointersListByType(n);i.captureCount+=r||1,1===i.captureCount&&(e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?t.element.setCapture(!0):(o=d(t,e.MouseTracker.havePointerEvents?"pointerevent":n),G&&q(window.top)&&e.addEvent(window.top,o.upName,o.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,o.upName,o.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,o.moveName,o.moveHandler,!0)))}function p(t,n,r){var o,i=t.getActivePointersListByType(n);i.captureCount-=r||1,0===i.captureCount&&(e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?t.element.releaseCapture():(o=d(t,e.MouseTracker.havePointerEvents?"pointerevent":n),G&&q(window.top)&&e.removeEvent(window.top,o.upName,o.upHandler,!0),e.removeEvent(e.MouseTracker.captureElement,o.moveName,o.moveHandler,!0),e.removeEvent(e.MouseTracker.captureElement,o.upName,o.upHandler,!0)))}function h(t){var n;if(e.MouseTracker.unprefixedPointerEvents)n=t.pointerType;else switch(t.pointerType){case 2:n="touch";break;case 3:n="pen";break;case 4:n="mouse";break;default:n=""}return n}function m(t){return e.getMousePosition(t)}function g(e,t){return v(m(e),t)}function v(t,n){var r=e.getElementOffset(n);return t.minus(r)}function y(t,n){return new e.Point((t.x+n.x)/2,(t.y+n.y)/2)}function b(t,n){var r={target:(n=e.getEvent(n)).target||n.srcElement,type:"wheel",shiftKey:n.shiftKey||!1,clientX:n.clientX,clientY:n.clientY,pageX:n.pageX?n.pageX:n.clientX,pageY:n.pageY?n.pageY:n.clientY,deltaMode:"MozMousePixelScroll"==n.type?0:1,deltaX:0,deltaZ:0};"mousewheel"==e.MouseTracker.wheelEventName?r.deltaY=-n.wheelDelta/e.DEFAULT_SETTINGS.pixelsPerWheelLine:r.deltaY=n.detail,w(t,r,n)}function w(t,n,r){var o;o=n.deltaY<0?1:-1,t.scrollHandler&&!1===t.scrollHandler({eventSource:t,pointerType:"mouse",position:g(n,t.element),scroll:o,shift:n.shiftKey,isTouchEvent:!1,originalEvent:r,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(r)}function E(e,t){if(e===t)return!1;for(;t&&t!==e;)t=t.parentNode;return t===e}function x(t,n){B(t,n,[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:m(n),currentTime:e.now()}])}function O(t,n){F(t,n,[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:m(n),currentTime:e.now()}])}function S(t){return e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?1===t?0:2===t?2:4===t?1:-1:t}function A(t,n){V(t,n=e.getEvent(n),[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:m(n),currentTime:e.now()}],S(n.button))&&p(t,"mouse")}function _(t,n){U(t,n=e.getEvent(n),[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:m(n),currentTime:e.now()}])}function C(e,t,n){var r,o=n.getLength(),i=[];if("touch"===n.type||n.contacts>0){for(r=0;r<o;r++)i.push(n.getByIndex(r));i.length>0&&(V(e,t,i,0),n.captureCount=1,p(e,n.type),F(e,t,i))}}function T(t,n){var r,o,i,a,l=n.changedTouches.length,c=[];for(r=e.now(),o=0;o<l;o++)c.push({id:n.changedTouches[o].identifier,type:"touch",currentPos:m(n.changedTouches[o]),currentTime:r});for(V(t,n,c,0)&&p(t,"touch",l),F(t,n,c),o=0;o<s.length;o++)if(s[o]!==t&&s[o].isTracking()&&E(s[o].element,t.element)){for(a=[],i=0;i<l;i++)a.push({id:n.changedTouches[i].identifier,type:"touch",currentPos:m(n.changedTouches[i]),currentTime:r});F(s[o],n,a)}e.cancelEvent(n)}function k(t,n){var r,o=n.changedTouches.length,i=[];for(r=0;r<o;r++)i.push({id:n.changedTouches[r].identifier,type:"touch",currentPos:m(n.changedTouches[r]),currentTime:e.now()});U(t,n,i),e.cancelEvent(n)}function P(t,n){n.currentTarget===n.relatedTarget||E(n.currentTarget,n.relatedTarget)||B(t,n,[{id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:m(n),currentTime:e.now()}])}function I(t,n){n.currentTarget===n.relatedTarget||E(n.currentTarget,n.relatedTarget)||F(t,n,[{id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:m(n),currentTime:e.now()}])}function R(t,n){var r;H(t,n,[r={id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:m(n),currentTime:e.now()}],n.button)&&(e.stopEvent(n),f(t,r.type)),(t.clickHandler||t.dblClickHandler||t.pressHandler||t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.cancelEvent(n)}function j(e,t){D(e,t)}function D(t,n){var r;V(t,n,[r={id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:m(n),currentTime:e.now()}],n.button)&&p(t,r.type)}function N(e,t){M(e,t)}function M(t,n){U(t,n,[{id:n.pointerId,type:h(n),isPrimary:n.isPrimary,currentPos:m(n),currentTime:e.now()}])}function L(e,t){!function(e,t,n){V(e,t,n,0),F(e,t,n)}(e,t,[{id:t.pointerId,type:h(t)}])}function z(e,t){return Object.prototype.hasOwnProperty.call(t,"isPrimary")||(0===e.getLength()?t.isPrimary=!0:t.isPrimary=!1),t.speed=0,t.direction=0,t.contactPos=t.currentPos,t.contactTime=t.currentTime,t.lastPos=t.currentPos,t.lastTime=t.currentTime,e.add(t)}function W(e,t){var n,r;return e.getById(t.id)?(n=e.removeById(t.id),Object.prototype.hasOwnProperty.call(t,"isPrimary")||(r=e.getPrimary())||(r=e.getByIndex(0))&&(r.isPrimary=!0)):n=e.getLength(),n}function B(t,n,r){var o,i,a,s=t.getActivePointersListByType(r[0].type),l=r.length;for(o=0;o<l;o++)i=r[o],(a=s.getById(i.id))?(a.insideElement=!0,a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=i.currentPos,a.currentTime=i.currentTime,i=a):(i.captured=!1,i.insideElementPressed=!1,i.insideElement=!0,z(s,i)),t.enterHandler&&!1===t.enterHandler({eventSource:t,pointerType:i.type,position:v(i.currentPos,t.element),buttons:s.buttons,pointers:t.getActivePointerCount(),insideElementPressed:i.insideElementPressed,buttonDownAny:0!==s.buttons,isTouchEvent:"touch"===i.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)}function F(t,n,r){var o,i,a,s=t.getActivePointersListByType(r[0].type),l=r.length;for(o=0;o<l;o++)i=r[o],(a=s.getById(i.id))&&(a.captured?(a.insideElement=!1,a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=i.currentPos,a.currentTime=i.currentTime):W(s,a),i=a),t.exitHandler&&!1===t.exitHandler({eventSource:t,pointerType:i.type,position:i.currentPos&&v(i.currentPos,t.element),buttons:s.buttons,pointers:t.getActivePointerCount(),insideElementPressed:!!a&&a.insideElementPressed,buttonDownAny:0!==s.buttons,isTouchEvent:"touch"===i.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)}function H(t,n,r,o){var i,a,s,c=l[t.hash],u=t.getActivePointersListByType(r[0].type),d=r.length;void 0!==n.buttons?u.buttons=n.buttons:e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?0===o?u.buttons+=1:1===o?u.buttons+=4:2===o?u.buttons+=2:3===o?u.buttons+=8:4===o?u.buttons+=16:5===o&&(u.buttons+=32):0===o?u.buttons|=1:1===o?u.buttons|=4:2===o?u.buttons|=2:3===o?u.buttons|=8:4===o?u.buttons|=16:5===o&&(u.buttons|=32);var f=t.getActivePointersListsExceptType(r[0].type);for(i=0;i<f.length;i++)C(t,n,f[i]);if(0!==o)return t.nonPrimaryPressHandler&&!1===t.nonPrimaryPressHandler({eventSource:t,pointerType:r[0].type,position:v(r[0].currentPos,t.element),button:o,buttons:u.buttons,isTouchEvent:"touch"===r[0].type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),!1;for(i=0;i<d;i++)a=r[i],(s=u.getById(a.id))?(s.captured=!0,s.insideElementPressed=!0,s.insideElement=!0,s.contactPos=a.currentPos,s.contactTime=a.currentTime,s.lastPos=s.currentPos,s.lastTime=s.currentTime,s.currentPos=a.currentPos,s.currentTime=a.currentTime,a=s):(a.captured=!0,a.insideElementPressed=!0,a.insideElement=!0,z(u,a)),u.addContact(),(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.addPoint(t,a),1===u.contacts?t.pressHandler&&!1===t.pressHandler({eventSource:t,pointerType:a.type,position:v(a.contactPos,t.element),buttons:u.buttons,isTouchEvent:"touch"===a.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n):2===u.contacts&&t.pinchHandler&&"touch"===a.type&&(c.pinchGPoints=u.asArray(),c.lastPinchDist=c.currentPinchDist=c.pinchGPoints[0].currentPos.distanceTo(c.pinchGPoints[1].currentPos),c.lastPinchCenter=c.currentPinchCenter=y(c.pinchGPoints[0].currentPos,c.pinchGPoints[1].currentPos));return!0}function V(t,n,r,o){var i,a,s,c,u,d,f=l[t.hash],p=t.getActivePointersListByType(r[0].type),h=r.length,m=!1,g=!1;if(void 0!==n.buttons?p.buttons=n.buttons:e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?0===o?p.buttons-=1:1===o?p.buttons-=4:2===o?p.buttons-=2:3===o?p.buttons-=8:4===o?p.buttons-=16:5===o&&(p.buttons-=32):0===o?p.buttons^=-2:1===o?p.buttons^=-5:2===o?p.buttons^=-3:3===o?p.buttons^=-9:4===o?p.buttons^=-17:5===o&&(p.buttons^=-33),0!==o){t.nonPrimaryReleaseHandler&&!1===t.nonPrimaryReleaseHandler({eventSource:t,pointerType:r[0].type,position:v(r[0].currentPos,t.element),button:o,buttons:p.buttons,isTouchEvent:"touch"===r[0].type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n);var b=t.getActivePointersListByType("mouse");return C(t,n,b),!1}if(void 0===r[0].currentPos)return C(t,n,p),!1;for(s=0;s<h;s++)c=r[s],(u=p.getById(c.id))&&(u.captured&&(u.captured=!1,m=!0,g=!0),u.lastPos=u.currentPos,u.lastTime=u.currentTime,u.currentPos=c.currentPos,u.currentTime=c.currentTime,u.insideElement||W(p,u),i=u.currentPos,a=u.currentTime,g?(p.removeContact(),(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.removePoint(t,u),0===p.contacts?(t.releaseHandler&&!1===t.releaseHandler({eventSource:t,pointerType:u.type,position:v(i,t.element),buttons:p.buttons,insideElementPressed:u.insideElementPressed,insideElementReleased:u.insideElement,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),t.dragEndHandler&&!u.currentPos.equals(u.contactPos)&&!1===t.dragEndHandler({eventSource:t,pointerType:u.type,position:v(u.currentPos,t.element),speed:u.speed,direction:u.direction,shift:n.shiftKey,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),(t.clickHandler||t.dblClickHandler)&&u.insideElement&&(d=a-u.contactTime<=t.clickTimeThreshold&&u.contactPos.distanceTo(i)<=t.clickDistThreshold,t.clickHandler&&!1===t.clickHandler({eventSource:t,pointerType:u.type,position:v(u.currentPos,t.element),quick:d,shift:n.shiftKey,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),t.dblClickHandler&&d&&(p.clicks++,1===p.clicks?(f.lastClickPos=i,f.dblClickTimeOut=setTimeout((function(){p.clicks=0}),t.dblClickTimeThreshold)):2===p.clicks&&(clearTimeout(f.dblClickTimeOut),p.clicks=0,f.lastClickPos.distanceTo(i)<=t.dblClickDistThreshold&&!1===t.dblClickHandler({eventSource:t,pointerType:u.type,position:v(u.currentPos,t.element),shift:n.shiftKey,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n),f.lastClickPos=null)))):2===p.contacts&&t.pinchHandler&&"touch"===u.type&&(f.pinchGPoints=p.asArray(),f.lastPinchDist=f.currentPinchDist=f.pinchGPoints[0].currentPos.distanceTo(f.pinchGPoints[1].currentPos),f.lastPinchCenter=f.currentPinchCenter=y(f.pinchGPoints[0].currentPos,f.pinchGPoints[1].currentPos))):t.releaseHandler&&!1===t.releaseHandler({eventSource:t,pointerType:u.type,position:v(i,t.element),buttons:p.buttons,insideElementPressed:u.insideElementPressed,insideElementReleased:u.insideElement,isTouchEvent:"touch"===u.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n));return m}function U(t,n,r){var o,i,a,s,c,u=l[t.hash],d=t.getActivePointersListByType(r[0].type),f=r.length;for(void 0!==n.buttons&&(d.buttons=n.buttons),o=0;o<f;o++)i=r[o],(a=d.getById(i.id))?(Object.prototype.hasOwnProperty.call(i,"isPrimary")&&(a.isPrimary=i.isPrimary),a.lastPos=a.currentPos,a.lastTime=a.currentTime,a.currentPos=i.currentPos,a.currentTime=i.currentTime):(i.captured=!1,i.insideElementPressed=!1,i.insideElement=!0,z(d,i));t.stopHandler&&"mouse"===r[0].type&&(clearTimeout(t.stopTimeOut),t.stopTimeOut=setTimeout((function(){!function(e,t,n){e.stopHandler&&e.stopHandler({eventSource:e,pointerType:n,position:g(t,e.element),buttons:e.getActivePointersListByType(n).buttons,isTouchEvent:"touch"===n,originalEvent:t,preventDefaultAction:!1,userData:e.userData})}(t,n,r[0].type)}),t.stopDelay)),0===d.contacts?t.moveHandler&&!1===t.moveHandler({eventSource:t,pointerType:r[0].type,position:v(r[0].currentPos,t.element),buttons:d.buttons,isTouchEvent:"touch"===r[0].type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n):1===d.contacts?(t.moveHandler&&(a=d.asArray()[0],!1===t.moveHandler({eventSource:t,pointerType:a.type,position:v(a.currentPos,t.element),buttons:d.buttons,isTouchEvent:"touch"===a.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)),t.dragHandler&&(c=(a=d.asArray()[0]).currentPos.minus(a.lastPos),!1===t.dragHandler({eventSource:t,pointerType:a.type,position:v(a.currentPos,t.element),buttons:d.buttons,delta:c,speed:a.speed,direction:a.direction,shift:n.shiftKey,isTouchEvent:"touch"===a.type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n))):2===d.contacts&&(t.moveHandler&&(s=d.asArray(),!1===t.moveHandler({eventSource:t,pointerType:s[0].type,position:v(y(s[0].currentPos,s[1].currentPos),t.element),buttons:d.buttons,isTouchEvent:"touch"===s[0].type,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)),t.pinchHandler&&"touch"===r[0].type&&(c=u.pinchGPoints[0].currentPos.distanceTo(u.pinchGPoints[1].currentPos))!=u.currentPinchDist&&(u.lastPinchDist=u.currentPinchDist,u.currentPinchDist=c,u.lastPinchCenter=u.currentPinchCenter,u.currentPinchCenter=y(u.pinchGPoints[0].currentPos,u.pinchGPoints[1].currentPos),!1===t.pinchHandler({eventSource:t,pointerType:"touch",gesturePoints:u.pinchGPoints,lastCenter:v(u.lastPinchCenter,t.element),center:v(u.currentPinchCenter,t.element),lastDistance:u.lastPinchDist,distance:u.currentPinchDist,shift:n.shiftKey,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n)))}e.MouseTracker=function(t){s.push(this);var n=arguments;e.isPlainObject(t)||(t={element:n[0],clickTimeThreshold:n[1],clickDistThreshold:n[2]}),this.hash=Math.random(),this.element=e.getElement(t.element),this.clickTimeThreshold=t.clickTimeThreshold||e.DEFAULT_SETTINGS.clickTimeThreshold,this.clickDistThreshold=t.clickDistThreshold||e.DEFAULT_SETTINGS.clickDistThreshold,this.dblClickTimeThreshold=t.dblClickTimeThreshold||e.DEFAULT_SETTINGS.dblClickTimeThreshold,this.dblClickDistThreshold=t.dblClickDistThreshold||e.DEFAULT_SETTINGS.dblClickDistThreshold,this.userData=t.userData||null,this.stopDelay=t.stopDelay||50,this.enterHandler=t.enterHandler||null,this.exitHandler=t.exitHandler||null,this.pressHandler=t.pressHandler||null,this.nonPrimaryPressHandler=t.nonPrimaryPressHandler||null,this.releaseHandler=t.releaseHandler||null,this.nonPrimaryReleaseHandler=t.nonPrimaryReleaseHandler||null,this.moveHandler=t.moveHandler||null,this.scrollHandler=t.scrollHandler||null,this.clickHandler=t.clickHandler||null,this.dblClickHandler=t.dblClickHandler||null,this.dragHandler=t.dragHandler||null,this.dragEndHandler=t.dragEndHandler||null,this.pinchHandler=t.pinchHandler||null,this.stopHandler=t.stopHandler||null,this.keyDownHandler=t.keyDownHandler||null,this.keyUpHandler=t.keyUpHandler||null,this.keyHandler=t.keyHandler||null,this.focusHandler=t.focusHandler||null,this.blurHandler=t.blurHandler||null;var r=this;l[this.hash]={click:function(t){!function(t,n){t.clickHandler&&e.cancelEvent(n)}(r,t)},dblclick:function(t){!function(t,n){t.dblClickHandler&&e.cancelEvent(n)}(r,t)},keydown:function(t){!function(t,n){t.keyDownHandler&&(n=e.getEvent(n),t.keyDownHandler({eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefaultAction:!1,userData:t.userData})||e.cancelEvent(n))}(r,t)},keyup:function(t){!function(t,n){t.keyUpHandler&&(n=e.getEvent(n),t.keyUpHandler({eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefaultAction:!1,userData:t.userData})||e.cancelEvent(n))}(r,t)},keypress:function(t){!function(t,n){t.keyHandler&&(n=e.getEvent(n),t.keyHandler({eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefaultAction:!1,userData:t.userData})||e.cancelEvent(n))}(r,t)},focus:function(t){!function(t,n){t.focusHandler&&(n=e.getEvent(n),!1===t.focusHandler({eventSource:t,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n))}(r,t)},blur:function(t){!function(t,n){t.blurHandler&&(n=e.getEvent(n),!1===t.blurHandler({eventSource:t,originalEvent:n,preventDefaultAction:!1,userData:t.userData})&&e.cancelEvent(n))}(r,t)},wheel:function(e){!function(e,t){w(e,t,t)}(r,e)},mousewheel:function(e){b(r,e)},DOMMouseScroll:function(e){b(r,e)},MozMousePixelScroll:function(e){b(r,e)},mouseenter:function(t){!function(t,n){x(t,n=e.getEvent(n))}(r,t)},mouseleave:function(t){!function(t,n){O(t,n=e.getEvent(n))}(r,t)},mouseover:function(t){!function(t,n){(n=e.getEvent(n)).currentTarget===n.relatedTarget||E(n.currentTarget,n.relatedTarget)||x(t,n)}(r,t)},mouseout:function(t){!function(t,n){(n=e.getEvent(n)).currentTarget===n.relatedTarget||E(n.currentTarget,n.relatedTarget)||O(t,n)}(r,t)},mousedown:function(t){!function(t,n){H(t,n=e.getEvent(n),[{id:e.MouseTracker.mousePointerId,type:"mouse",isPrimary:!0,currentPos:m(n),currentTime:e.now()}],S(n.button))&&(e.stopEvent(n),f(t,"mouse")),(t.clickHandler||t.dblClickHandler||t.pressHandler||t.dragHandler||t.dragEndHandler)&&e.cancelEvent(n)}(r,t)},mouseup:function(e){!function(e,t){A(e,t)}(r,e)},mouseupcaptured:function(t){!function(t,n){A(t,n),e.stopEvent(n)}(r,t)},mousemove:function(e){!function(e,t){_(e,t)}(r,e)},mousemovecaptured:function(t){!function(t,n){_(t,n),e.stopEvent(n)}(r,t)},touchstart:function(t){!function(t,n){var r,o,i,a,l=n.changedTouches.length,c=[],u=t.getActivePointersListByType("touch");for(r=e.now(),u.getLength()>n.touches.length-l&&(e.console.warn("Tracked touch contact count doesn't match event.touches.length. Removing all tracked touch pointers."),C(t,n,u)),o=0;o<l;o++)c.push({id:n.changedTouches[o].identifier,type:"touch",currentPos:m(n.changedTouches[o]),currentTime:r});for(B(t,n,c),o=0;o<s.length;o++)if(s[o]!==t&&s[o].isTracking()&&E(s[o].element,t.element)){for(a=[],i=0;i<l;i++)a.push({id:n.changedTouches[i].identifier,type:"touch",currentPos:m(n.changedTouches[i]),currentTime:r});B(s[o],n,a)}H(t,n,c,0)&&(e.stopEvent(n),f(t,"touch",l)),e.cancelEvent(n)}(r,t)},touchend:function(e){!function(e,t){T(e,t)}(r,e)},touchendcaptured:function(t){!function(t,n){T(t,n),e.stopEvent(n)}(r,t)},touchmove:function(e){!function(e,t){k(e,t)}(r,e)},touchmovecaptured:function(t){!function(t,n){k(t,n),e.stopEvent(n)}(r,t)},touchcancel:function(e){!function(e,t){var n=e.getActivePointersListByType("touch");C(e,t,n)}(r,e)},gesturestart:function(e){!function(e,t){t.stopPropagation(),t.preventDefault()}(0,e)},gesturechange:function(e){!function(e,t){t.stopPropagation(),t.preventDefault()}(0,e)},pointerover:function(e){P(r,e)},MSPointerOver:function(e){P(r,e)},pointerout:function(e){I(r,e)},MSPointerOut:function(e){I(r,e)},pointerdown:function(e){R(r,e)},MSPointerDown:function(e){R(r,e)},pointerup:function(e){j(r,e)},MSPointerUp:function(e){j(r,e)},pointermove:function(e){N(r,e)},MSPointerMove:function(e){N(r,e)},pointercancel:function(e){L(r,e)},MSPointerCancel:function(e){L(r,e)},pointerupcaptured:function(t){!function(t,n){t.getActivePointersListByType(h(n)).getById(n.pointerId)&&D(t,n),e.stopEvent(n)}(r,t)},pointermovecaptured:function(t){!function(t,n){t.getActivePointersListByType(h(n)).getById(n.pointerId)&&M(t,n),e.stopEvent(n)}(r,t)},tracking:!1,activePointersLists:[],lastClickPos:null,dblClickTimeOut:null,pinchGPoints:[],lastPinchDist:0,currentPinchDist:0,lastPinchCenter:null,currentPinchCenter:null},t.startDisabled||this.setTracking(!0)},e.MouseTracker.prototype={destroy:function(){var e;for(u(this),this.element=null,e=0;e<s.length;e++)if(s[e]===this){s.splice(e,1);break}l[this.hash]=null,delete l[this.hash]},isTracking:function(){return l[this.hash].tracking},setTracking:function(t){return t?function(t){var n,r,o=l[t.hash];if(!o.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)n=e.MouseTracker.subscribeEvents[r],e.addEvent(t.element,n,o[n],!1);c(t),o.tracking=!0}}(this):u(this),this},getActivePointersListsExceptType:function(e){for(var t=l[this.hash],n=[],r=0;r<t.activePointersLists.length;++r)t.activePointersLists[r].type!==e&&n.push(t.activePointersLists[r]);return n},getActivePointersListByType:function(t){var n,r,o=l[this.hash],i=o.activePointersLists.length;for(n=0;n<i;n++)if(o.activePointersLists[n].type===t)return o.activePointersLists[n];return r=new e.MouseTracker.GesturePointList(t),o.activePointersLists.push(r),r},getActivePointerCount:function(){var e,t=l[this.hash],n=t.activePointersLists.length,r=0;for(e=0;e<n;e++)r+=t.activePointersLists[e].getLength();return r},enterHandler:function(){},exitHandler:function(){},pressHandler:function(){},nonPrimaryPressHandler:function(){},releaseHandler:function(){},nonPrimaryReleaseHandler:function(){},moveHandler:function(){},scrollHandler:function(){},clickHandler:function(){},dblClickHandler:function(){},dragHandler:function(){},dragEndHandler:function(){},pinchHandler:function(){},stopHandler:function(){},keyDownHandler:function(){},keyUpHandler:function(){},keyHandler:function(){},focusHandler:function(){},blurHandler:function(){}},e.MouseTracker.resetAllMouseTrackers=function(){for(var e=0;e<s.length;e++)s[e].isTracking()&&(s[e].setTracking(!1),s[e].setTracking(!0))},e.MouseTracker.gesturePointVelocityTracker=(t=[],n=0,r=0,o=function(e,t){return e.hash.toString()+t.type+t.id.toString()},i=function(){var n,o,i,a,s,l,c=t.length,u=e.now();for(a=u-r,r=u,n=0;n<c;n++)(i=(o=t[n]).gPoint).direction=Math.atan2(i.currentPos.y-o.lastPos.y,i.currentPos.x-o.lastPos.x),s=o.lastPos.distanceTo(i.currentPos),o.lastPos=i.currentPos,l=1e3*s/(a+1),i.speed=.75*l+.25*i.speed},{addPoint:function(a,s){var l=o(a,s);t.push({guid:l,gPoint:s,lastPos:s.currentPos}),1===t.length&&(r=e.now(),n=window.setInterval(i,50))},removePoint:function(e,r){var i,a=o(e,r),s=t.length;for(i=0;i<s;i++)if(t[i].guid===a){t.splice(i,1),0==--s&&window.clearInterval(n);break}}}),e.MouseTracker.captureElement=document,e.MouseTracker.wheelEventName=e.Browser.vendor==e.BROWSERS.IE&&e.Browser.version>8||"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",e.MouseTracker.supportsMouseCapture=(a=document.createElement("div"),e.isFunction(a.setCapture)&&e.isFunction(a.releaseCapture)),e.MouseTracker.subscribeEvents=["click","dblclick","keydown","keyup","keypress","focus","blur",e.MouseTracker.wheelEventName],"DOMMouseScroll"==e.MouseTracker.wheelEventName&&e.MouseTracker.subscribeEvents.push("MozMousePixelScroll"),window.PointerEvent&&(window.navigator.pointerEnabled||e.Browser.vendor!==e.BROWSERS.IE)?(e.MouseTracker.havePointerEvents=!0,e.MouseTracker.subscribeEvents.push("pointerover","pointerout","pointerdown","pointerup","pointermove","pointercancel"),e.MouseTracker.unprefixedPointerEvents=!0,navigator.maxTouchPoints?e.MouseTracker.maxTouchPoints=navigator.maxTouchPoints:e.MouseTracker.maxTouchPoints=0,e.MouseTracker.haveMouseEnter=!1):window.MSPointerEvent&&window.navigator.msPointerEnabled?(e.MouseTracker.havePointerEvents=!0,e.MouseTracker.subscribeEvents.push("MSPointerOver","MSPointerOut","MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"),e.MouseTracker.unprefixedPointerEvents=!1,navigator.msMaxTouchPoints?e.MouseTracker.maxTouchPoints=navigator.msMaxTouchPoints:e.MouseTracker.maxTouchPoints=0,e.MouseTracker.haveMouseEnter=!1):(e.MouseTracker.havePointerEvents=!1,e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<9?(e.MouseTracker.subscribeEvents.push("mouseenter","mouseleave"),e.MouseTracker.haveMouseEnter=!0):(e.MouseTracker.subscribeEvents.push("mouseover","mouseout"),e.MouseTracker.haveMouseEnter=!1),e.MouseTracker.subscribeEvents.push("mousedown","mouseup","mousemove"),"ontouchstart"in window&&e.MouseTracker.subscribeEvents.push("touchstart","touchend","touchmove","touchcancel"),"ongesturestart"in window&&e.MouseTracker.subscribeEvents.push("gesturestart","gesturechange"),e.MouseTracker.mousePointerId="legacy-mouse",e.MouseTracker.maxTouchPoints=10),e.MouseTracker.GesturePointList=function(e){this._gPoints=[],this.type=e,this.buttons=0,this.contacts=0,this.clicks=0,this.captureCount=0},e.MouseTracker.GesturePointList.prototype={getLength:function(){return this._gPoints.length},asArray:function(){return this._gPoints},add:function(e){return this._gPoints.push(e)},removeById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e){this._gPoints.splice(t,1);break}return this._gPoints.length},getByIndex:function(e){return e<this._gPoints.length?this._gPoints[e]:null},getById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e)return this._gPoints[t];return null},getPrimary:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].isPrimary)return this._gPoints[t];return null},addContact:function(){++this.contacts,this.contacts>1&&("mouse"===this.type||"pen"===this.type)&&(this.contacts=1)},removeContact:function(){--this.contacts,this.contacts<0&&(this.contacts=0)}};var G=function(){try{return window.self!==window.top}catch(e){return!0}}();function q(e){try{return e.addEventListener&&e.removeEventListener}catch(e){return!1}}}(OpenSeadragon),function(e){e.ControlAnchor={NONE:0,TOP_LEFT:1,TOP_RIGHT:2,BOTTOM_RIGHT:3,BOTTOM_LEFT:4,ABSOLUTE:5},e.Control=function(t,n,r){var o=t.parentNode;"number"==typeof n&&(e.console.error("Passing an anchor directly into the OpenSeadragon.Control constructor is deprecated; please use an options object instead. Support for this deprecated variant is scheduled for removal in December 2013"),n={anchor:n}),n.attachToViewer=void 0===n.attachToViewer||n.attachToViewer,this.autoFade=void 0===n.autoFade||n.autoFade,this.element=t,this.anchor=n.anchor,this.container=r,this.anchor==e.ControlAnchor.ABSOLUTE?(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.position="absolute",this.wrapper.style.top="number"==typeof n.top?n.top+"px":n.top,this.wrapper.style.left="number"==typeof n.left?n.left+"px":n.left,this.wrapper.style.height="number"==typeof n.height?n.height+"px":n.height,this.wrapper.style.width="number"==typeof n.width?n.width+"px":n.width,this.wrapper.style.margin="0px",this.wrapper.style.padding="0px",this.element.style.position="relative",this.element.style.top="0px",this.element.style.left="0px",this.element.style.height="100%",this.element.style.width="100%"):(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.display="inline-block",this.anchor==e.ControlAnchor.NONE&&(this.wrapper.style.width=this.wrapper.style.height="100%")),this.wrapper.appendChild(this.element),n.attachToViewer?this.anchor==e.ControlAnchor.TOP_RIGHT||this.anchor==e.ControlAnchor.BOTTOM_RIGHT?this.container.insertBefore(this.wrapper,this.container.firstChild):this.container.appendChild(this.wrapper):o.appendChild(this.wrapper)},e.Control.prototype={destroy:function(){this.wrapper.removeChild(this.element),this.container.removeChild(this.wrapper)},isVisible:function(){return"none"!=this.wrapper.style.display},setVisible:function(t){this.wrapper.style.display=t?this.anchor==e.ControlAnchor.ABSOLUTE?"block":"inline-block":"none"},setOpacity:function(t){this.element[e.SIGNAL]&&e.Browser.vendor==e.BROWSERS.IE?e.setElementOpacity(this.element,t,!0):e.setElementOpacity(this.wrapper,t,!0)}}}(OpenSeadragon),function(e){function t(e,t){var n,r=e.controls;for(n=r.length-1;n>=0;n--)if(r[n].element==t)return n;return-1}e.ControlDock=function(t){var n,r,o=["topleft","topright","bottomright","bottomleft"];for(e.extend(!0,this,{id:"controldock-"+e.now()+"-"+Math.floor(1e6*Math.random()),container:e.makeNeutralElement("div"),controls:[]},t),this.container.onsubmit=function(){return!1},this.element&&(this.element=e.getElement(this.element),this.element.appendChild(this.container),this.element.style.position="relative",this.container.style.width="100%",this.container.style.height="100%"),r=0;r<o.length;r++)n=o[r],this.controls[n]=e.makeNeutralElement("div"),this.controls[n].style.position="absolute",n.match("left")&&(this.controls[n].style.left="0px"),n.match("right")&&(this.controls[n].style.right="0px"),n.match("top")&&(this.controls[n].style.top="0px"),n.match("bottom")&&(this.controls[n].style.bottom="0px");this.container.appendChild(this.controls.topleft),this.container.appendChild(this.controls.topright),this.container.appendChild(this.controls.bottomright),this.container.appendChild(this.controls.bottomleft)},e.ControlDock.prototype={addControl:function(n,r){var o=null;if(!(t(this,n=e.getElement(n))>=0)){switch(r.anchor){case e.ControlAnchor.TOP_RIGHT:o=this.controls.topright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.BOTTOM_RIGHT:o=this.controls.bottomright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.BOTTOM_LEFT:o=this.controls.bottomleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.TOP_LEFT:o=this.controls.topleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.ABSOLUTE:default:case e.ControlAnchor.NONE:o=this.container,n.style.margin="0px",n.style.padding="0px"}this.controls.push(new e.Control(n,r,o)),n.style.display="inline-block"}},removeControl:function(n){var r=t(this,n=e.getElement(n));return r>=0&&(this.controls[r].destroy(),this.controls.splice(r,1)),this},clearControls:function(){for(;this.controls.length>0;)this.controls.pop().destroy();return this},areControlsEnabled:function(){var e;for(e=this.controls.length-1;e>=0;e--)if(this.controls[e].isVisible())return!0;return!1},setControlsEnabled:function(e){var t;for(t=this.controls.length-1;t>=0;t--)this.controls[t].setVisible(e);return this}}}(OpenSeadragon),function(e){e.Placement=e.freezeObject({CENTER:0,TOP_LEFT:1,TOP:2,TOP_RIGHT:3,RIGHT:4,BOTTOM_RIGHT:5,BOTTOM:6,BOTTOM_LEFT:7,LEFT:8,properties:{0:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1},1:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},2:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},3:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!0,isVerticallyCentered:!1,isBottom:!1},4:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!0,isBottom:!1},5:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!1,isBottom:!0},6:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},7:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},8:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1}}})}(OpenSeadragon),function(e){var t={},n=1;function r(t){return t=e.getElement(t),new e.Point(0===t.clientWidth?1:t.clientWidth,0===t.clientHeight?1:t.clientHeight)}function o(t,n){if(n instanceof e.Overlay)return n;var r=null;if(n.element)r=e.getElement(n.element);else{var o=n.id?n.id:"openseadragon-overlay-"+Math.floor(1e7*Math.random());(r=e.getElement(n.id))||((r=document.createElement("a")).href="#/overlay/"+o),r.id=o,e.addClass(r,n.className?n.className:"openseadragon-overlay")}var i=n.location,a=n.width,s=n.height;if(!i){var l=n.x,c=n.y;if(void 0!==n.px){var u=t.viewport.imageToViewportRectangle(new e.Rect(n.px,n.py,a||0,s||0));l=u.x,c=u.y,a=void 0!==a?u.width:void 0,s=void 0!==s?u.height:void 0}i=new e.Point(l,c)}var d=n.placement;return d&&"string"===e.type(d)&&(d=e.Placement[n.placement.toUpperCase()]),new e.Overlay({element:r,location:i,placement:d,onDraw:n.onDraw,checkResize:n.checkResize,width:a,height:s,rotationMode:n.rotationMode})}function i(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].element===t)return n;return-1}function a(t,n){return e.requestAnimationFrame((function(){n(t)}))}function s(t){e.requestAnimationFrame((function(){!function(t){var n,r;if(t.controlsShouldFade){for(n=1-(e.now()-t.controlsFadeBeginTime)/t.controlsFadeLength,n=Math.min(1,n),n=Math.max(0,n),r=t.controls.length-1;r>=0;r--)t.controls[r].autoFade&&t.controls[r].setOpacity(n);n>0&&s(t)}}(t)}))}function l(t){t.autoHideControls&&(t.controlsShouldFade=!0,t.controlsFadeBeginTime=e.now()+t.controlsFadeDelay,window.setTimeout((function(){s(t)}),t.controlsFadeDelay))}function c(e){var t;for(e.controlsShouldFade=!1,t=e.controls.length-1;t>=0;t--)e.controls[t].setOpacity(1)}function u(){c(this)}function d(){l(this)}function f(t){var n={originalEvent:t.originalEvent,preventDefaultAction:t.preventDefaultAction,preventVerticalPan:t.preventVerticalPan,preventHorizontalPan:t.preventHorizontalPan};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)return!0;switch(t.keyCode){case 38:return n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-this.pixelsPerArrowPress))),this.viewport.applyConstraints()),!1;case 40:return n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,this.pixelsPerArrowPress))),this.viewport.applyConstraints()),!1;case 37:return n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),!1;case 39:return n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),!1;default:return!0}}function p(t){var n={originalEvent:t.originalEvent,preventDefaultAction:t.preventDefaultAction,preventVerticalPan:t.preventVerticalPan,preventHorizontalPan:t.preventHorizontalPan};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)return!0;switch(t.keyCode){case 43:case 61:return this.viewport.zoomBy(1.1),this.viewport.applyConstraints(),!1;case 45:return this.viewport.zoomBy(.9),this.viewport.applyConstraints(),!1;case 48:return this.viewport.goHome(),this.viewport.applyConstraints(),!1;case 119:case 87:return n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-40))),this.viewport.applyConstraints()),!1;case 115:case 83:return n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,40))),this.viewport.applyConstraints()),!1;case 97:return n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-40,0))),this.viewport.applyConstraints()),!1;case 100:return n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(40,0))),this.viewport.applyConstraints()),!1;case 114:return this.viewport.flipped?this.viewport.setRotation(e.positiveModulo(this.viewport.degrees-this.rotationIncrement,360)):this.viewport.setRotation(e.positiveModulo(this.viewport.degrees+this.rotationIncrement,360)),this.viewport.applyConstraints(),!1;case 82:return this.viewport.flipped?this.viewport.setRotation(e.positiveModulo(this.viewport.degrees+this.rotationIncrement,360)):this.viewport.setRotation(e.positiveModulo(this.viewport.degrees-this.rotationIncrement,360)),this.viewport.applyConstraints(),!1;case 102:return this.viewport.toggleFlip(),!1;default:return!0}}function h(e){var t;document.activeElement==this.canvas||this.canvas.focus(),this.viewport.flipped&&(e.position.x=this.viewport.getContainerSize().x-e.position.x);var n={tracker:e.eventSource,position:e.position,quick:e.quick,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};this.raiseEvent("canvas-click",n),!n.preventDefaultAction&&this.viewport&&e.quick&&(t=this.gestureSettingsByDeviceType(e.pointerType)).clickToZoom&&(this.viewport.zoomBy(e.shift?1/this.zoomPerClick:this.zoomPerClick,t.zoomToRefPoint?this.viewport.pointFromPixel(e.position,!0):null),this.viewport.applyConstraints())}function m(e){var t,n={tracker:e.eventSource,position:e.position,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};this.raiseEvent("canvas-double-click",n),!n.preventDefaultAction&&this.viewport&&(t=this.gestureSettingsByDeviceType(e.pointerType)).dblClickToZoom&&(this.viewport.zoomBy(e.shift?1/this.zoomPerClick:this.zoomPerClick,t.zoomToRefPoint?this.viewport.pointFromPixel(e.position,!0):null),this.viewport.applyConstraints())}function g(e){var t,n={tracker:e.eventSource,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};if(this.raiseEvent("canvas-drag",n),!n.preventDefaultAction&&this.viewport){if(t=this.gestureSettingsByDeviceType(e.pointerType),this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewport.flipped&&(e.delta.x=-e.delta.x),this.constrainDuringPan){var r=this.viewport.deltaPointsFromPixels(e.delta.negate());this.viewport.centerSpringX.target.value+=r.x,this.viewport.centerSpringY.target.value+=r.y;var o=this.viewport.getBounds(),i=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=r.x,this.viewport.centerSpringY.target.value-=r.y,o.x!=i.x&&(e.delta.x=0),o.y!=i.y&&(e.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta.negate()),t.flickEnabled&&!this.constrainDuringPan)}}function v(t){if(!t.preventDefaultAction&&this.viewport){var n=this.gestureSettingsByDeviceType(t.pointerType);if(n.flickEnabled&&t.speed>=n.flickMinSpeed){var r=0;this.panHorizontal&&(r=n.flickMomentum*t.speed*Math.cos(t.direction));var o=0;this.panVertical&&(o=n.flickMomentum*t.speed*Math.sin(t.direction));var i=this.viewport.pixelFromPoint(this.viewport.getCenter(!0)),a=this.viewport.pointFromPixel(new e.Point(i.x-r,i.y-o));this.viewport.panTo(a,!1)}this.viewport.applyConstraints()}this.raiseEvent("canvas-drag-end",{tracker:t.eventSource,position:t.position,speed:t.speed,direction:t.direction,shift:t.shift,originalEvent:t.originalEvent})}function y(e){this.raiseEvent("canvas-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function b(t){window.location!=window.parent.location&&e.MouseTracker.resetAllMouseTrackers(),this.raiseEvent("canvas-exit",{tracker:t.eventSource,pointerType:t.pointerType,position:t.position,buttons:t.buttons,pointers:t.pointers,insideElementPressed:t.insideElementPressed,buttonDownAny:t.buttonDownAny,originalEvent:t.originalEvent})}function w(e){this.raiseEvent("canvas-press",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function E(e){this.raiseEvent("canvas-release",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function x(e){this.raiseEvent("canvas-nonprimary-press",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function O(e){this.raiseEvent("canvas-nonprimary-release",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function S(e){var t,n,r;if(!e.preventDefaultAction&&this.viewport&&((t=this.gestureSettingsByDeviceType(e.pointerType)).pinchToZoom&&(n=this.viewport.pointFromPixel(e.center,!0),r=this.viewport.pointFromPixel(e.lastCenter,!0).minus(n),this.panHorizontal||(r.x=0),this.panVertical||(r.y=0),this.viewport.zoomBy(e.distance/e.lastDistance,n,!0),t.zoomToRefPoint&&this.viewport.panBy(r,!0),this.viewport.applyConstraints()),t.pinchRotate)){var o=Math.atan2(e.gesturePoints[0].currentPos.y-e.gesturePoints[1].currentPos.y,e.gesturePoints[0].currentPos.x-e.gesturePoints[1].currentPos.x),i=Math.atan2(e.gesturePoints[0].lastPos.y-e.gesturePoints[1].lastPos.y,e.gesturePoints[0].lastPos.x-e.gesturePoints[1].lastPos.x);this.viewport.setRotation(this.viewport.getRotation()+(o-i)*(180/Math.PI))}return this.raiseEvent("canvas-pinch",{tracker:e.eventSource,gesturePoints:e.gesturePoints,lastCenter:e.lastCenter,center:e.center,lastDistance:e.lastDistance,distance:e.distance,shift:e.shift,originalEvent:e.originalEvent}),!1}function A(t){var n,r,o;if((o=e.now())-this._lastScrollTime>this.minScrollDeltaTime){if(this._lastScrollTime=o,this.viewport.flipped&&(t.position.x=this.viewport.getContainerSize().x-t.position.x),!t.preventDefaultAction&&this.viewport&&(n=this.gestureSettingsByDeviceType(t.pointerType)).scrollToZoom&&(r=Math.pow(this.zoomPerScroll,t.scroll),this.viewport.zoomBy(r,n.zoomToRefPoint?this.viewport.pointFromPixel(t.position,!0):null),this.viewport.applyConstraints()),this.raiseEvent("canvas-scroll",{tracker:t.eventSource,position:t.position,scroll:t.scroll,shift:t.shift,originalEvent:t.originalEvent}),n&&n.scrollToZoom)return!1}else if((n=this.gestureSettingsByDeviceType(t.pointerType))&&n.scrollToZoom)return!1}function _(e){t[this.hash].mouseInside=!0,c(this),this.raiseEvent("container-enter",{tracker:e.eventSource,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function C(e){e.pointers<1&&(t[this.hash].mouseInside=!1,t[this.hash].animating||l(this)),this.raiseEvent("container-exit",{tracker:e.eventSource,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function T(e){!function(e){if(!e._opening){if(e.autoResize){var n=r(e.container),o=t[e.hash].prevContainerSize;if(!n.equals(o)){var i=e.viewport;if(e.preserveImageSizeOnResize){var a=o.x/n.x,s=i.getZoom()*a,u=i.getCenter();i.resize(n,!1),i.zoomTo(s,null,!0),i.panTo(u,!0)}else{var d=i.getBounds();i.resize(n,!0),i.fitBoundsWithConstraints(d,!0)}t[e.hash].prevContainerSize=n,t[e.hash].forceRedraw=!0}}var f=e.viewport.update(),p=e.world.update()||f;f&&e.raiseEvent("viewport-change"),e.referenceStrip&&(p=e.referenceStrip.update(e.viewport)||p),!t[e.hash].animating&&p&&(e.raiseEvent("animation-start"),c(e)),(p||t[e.hash].forceRedraw||e.world.needsDraw())&&(function(e){e.imageLoader.clear(),e.drawer.clear(),e.world.draw(),e.raiseEvent("update-viewport",{})}(e),e._drawOverlays(),e.navigator&&e.navigator.update(e.viewport),t[e.hash].forceRedraw=!1,p&&e.raiseEvent("animation")),t[e.hash].animating&&!p&&(e.raiseEvent("animation-finish"),t[e.hash].mouseInside||l(e)),t[e.hash].animating=p}}(e),e.isOpen()?e._updateRequestId=a(e,T):e._updateRequestId=!1}function k(e,t){return e?e+t:t}function P(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=this.zoomPerSecond,t[this.hash].zooming=!0,j(this)}function I(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=1/this.zoomPerSecond,t[this.hash].zooming=!0,j(this)}function R(){t[this.hash].zooming=!1}function j(t){e.requestAnimationFrame(e.delegate(t,D))}function D(){var n,r,o;t[this.hash].zooming&&this.viewport&&(r=(n=e.now())-t[this.hash].lastZoomTime,o=Math.pow(t[this.hash].zoomFactor,r/1e3),this.viewport.zoomBy(o),this.viewport.applyConstraints(),t[this.hash].lastZoomTime=n,j(this))}function N(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function M(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function L(){this.buttons.emulateEnter(),this.buttons.emulateExit()}function z(){this.viewport&&this.viewport.goHome()}function W(){this.isFullPage()&&!e.isFullScreen()?this.setFullPage(!1):this.setFullScreen(!this.isFullPage()),this.buttons&&this.buttons.emulateExit(),this.fullPageButton.element.focus(),this.viewport&&this.viewport.applyConstraints()}function B(){if(this.viewport){var t=this.viewport.getRotation();t=this.viewport.flipped?e.positiveModulo(t+this.rotationIncrement,360):e.positiveModulo(t-this.rotationIncrement,360),this.viewport.setRotation(t)}}function F(){if(this.viewport){var t=this.viewport.getRotation();t=this.viewport.flipped?e.positiveModulo(t-this.rotationIncrement,360):e.positiveModulo(t+this.rotationIncrement,360),this.viewport.setRotation(t)}}function H(){this.viewport.toggleFlip()}function V(){var e=this._sequenceIndex-1;this.navPrevNextWrap&&e<0&&(e+=this.tileSources.length),this.goToPage(e)}function U(){var e=this._sequenceIndex+1;this.navPrevNextWrap&&e>=this.tileSources.length&&(e=0),this.goToPage(e)}e.Viewer=function(o){var i,s,c=arguments,u=this;if(e.isPlainObject(o)||(o={id:c[0],xmlPath:c.length>1?c[1]:void 0,prefixUrl:c.length>2?c[2]:void 0,controls:c.length>3?c[3]:void 0,overlays:c.length>4?c[4]:void 0}),o.config&&(e.extend(!0,o,o.config),delete o.config),e.extend(!0,this,{id:o.id,hash:o.hash||n++,initialPage:0,element:null,container:null,canvas:null,overlays:[],overlaysContainer:null,previousBody:[],customControls:[],source:null,drawer:null,world:null,viewport:null,navigator:null,collectionViewport:null,collectionDrawer:null,navImages:null,buttons:null,profiler:null},e.DEFAULT_SETTINGS,o),void 0===this.hash)throw new Error("A hash must be defined, either by specifying options.id or options.hash.");for(void 0!==t[this.hash]&&e.console.warn("Hash "+this.hash+" has already been used."),t[this.hash]={fsBoundsDelta:new e.Point(1,1),prevContainerSize:null,animating:!1,forceRedraw:!1,mouseInside:!1,group:null,zooming:!1,zoomFactor:null,lastZoomTime:null,fullPage:!1,onfullscreenchange:null},this._sequenceIndex=0,this._firstOpen=!0,this._updateRequestId=null,this._loadQueue=[],this.currentOverlays=[],this._lastScrollTime=e.now(),e.EventSource.call(this),this.addHandler("open-failed",(function(t){var n=e.getString("Errors.OpenFailed",t.eventSource,t.message);u._showMessage(n)})),e.ControlDock.call(this,o),this.xmlPath&&(this.tileSources=[this.xmlPath]),this.element=this.element||document.getElementById(this.id),this.canvas=e.makeNeutralElement("div"),this.canvas.className="openseadragon-canvas",(s=this.canvas.style).width="100%",s.height="100%",s.overflow="hidden",s.position="absolute",s.top="0px",s.left="0px",e.setElementTouchActionNone(this.canvas),""!==o.tabIndex&&(this.canvas.tabIndex=void 0===o.tabIndex?0:o.tabIndex),this.container.className="openseadragon-container",function(e){e.width="100%",e.height="100%",e.position="relative",e.overflow="hidden",e.left="0px",e.top="0px",e.textAlign="left"}(this.container.style),this.container.insertBefore(this.canvas,this.container.firstChild),this.element.appendChild(this.container),this.bodyWidth=document.body.style.width,this.bodyHeight=document.body.style.height,this.bodyOverflow=document.body.style.overflow,this.docOverflow=document.documentElement.style.overflow,this.innerTracker=new e.MouseTracker({element:this.canvas,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,keyDownHandler:e.delegate(this,f),keyHandler:e.delegate(this,p),clickHandler:e.delegate(this,h),dblClickHandler:e.delegate(this,m),dragHandler:e.delegate(this,g),dragEndHandler:e.delegate(this,v),enterHandler:e.delegate(this,y),exitHandler:e.delegate(this,b),pressHandler:e.delegate(this,w),releaseHandler:e.delegate(this,E),nonPrimaryPressHandler:e.delegate(this,x),nonPrimaryReleaseHandler:e.delegate(this,O),scrollHandler:e.delegate(this,A),pinchHandler:e.delegate(this,S)}),this.outerTracker=new e.MouseTracker({element:this.container,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,enterHandler:e.delegate(this,_),exitHandler:e.delegate(this,C)}),this.toolbar&&(this.toolbar=new e.ControlDock({element:this.toolbar})),this.bindStandardControls(),t[this.hash].prevContainerSize=r(this.container),this.world=new e.World({viewer:this}),this.world.addHandler("add-item",(function(e){u.source=u.world.getItemAt(0).source,t[u.hash].forceRedraw=!0,u._updateRequestId||(u._updateRequestId=a(u,T))})),this.world.addHandler("remove-item",(function(e){u.world.getItemCount()?u.source=u.world.getItemAt(0).source:u.source=null,t[u.hash].forceRedraw=!0})),this.world.addHandler("metrics-change",(function(e){u.viewport&&u.viewport._setContentBounds(u.world.getHomeBounds(),u.world.getContentFactor())})),this.world.addHandler("item-index-change",(function(e){u.source=u.world.getItemAt(0).source})),this.viewport=new e.Viewport({containerSize:t[this.hash].prevContainerSize,springStiffness:this.springStiffness,animationTime:this.animationTime,minZoomImageRatio:this.minZoomImageRatio,maxZoomPixelRatio:this.maxZoomPixelRatio,visibilityRatio:this.visibilityRatio,wrapHorizontal:this.wrapHorizontal,wrapVertical:this.wrapVertical,defaultZoomLevel:this.defaultZoomLevel,minZoomLevel:this.minZoomLevel,maxZoomLevel:this.maxZoomLevel,viewer:this,degrees:this.degrees,flipped:this.flipped,navigatorRotate:this.navigatorRotate,homeFillsViewer:this.homeFillsViewer,margins:this.viewportMargins}),this.viewport._setContentBounds(this.world.getHomeBounds(),this.world.getContentFactor()),this.imageLoader=new e.ImageLoader({jobLimit:this.imageLoaderLimit,timeout:o.timeout}),this.tileCache=new e.TileCache({maxImageCacheCount:this.maxImageCacheCount}),this.drawer=new e.Drawer({viewer:this,viewport:this.viewport,element:this.canvas,debugGridColor:this.debugGridColor}),this.overlaysContainer=e.makeNeutralElement("div"),this.canvas.appendChild(this.overlaysContainer),this.drawer.canRotate()||(this.rotateLeft&&(i=this.buttons.buttons.indexOf(this.rotateLeft),this.buttons.buttons.splice(i,1),this.buttons.element.removeChild(this.rotateLeft.element)),this.rotateRight&&(i=this.buttons.buttons.indexOf(this.rotateRight),this.buttons.buttons.splice(i,1),this.buttons.element.removeChild(this.rotateRight.element))),this.showNavigator&&(this.navigator=new e.Navigator({id:this.navigatorId,position:this.navigatorPosition,sizeRatio:this.navigatorSizeRatio,maintainSizeRatio:this.navigatorMaintainSizeRatio,top:this.navigatorTop,left:this.navigatorLeft,width:this.navigatorWidth,height:this.navigatorHeight,autoResize:this.navigatorAutoResize,autoFade:this.navigatorAutoFade,prefixUrl:this.prefixUrl,viewer:this,navigatorRotate:this.navigatorRotate,background:this.navigatorBackground,opacity:this.navigatorOpacity,borderColor:this.navigatorBorderColor,displayRegionColor:this.navigatorDisplayRegionColor,crossOriginPolicy:this.crossOriginPolicy})),this.sequenceMode&&this.bindSequenceControls(),this.tileSources&&this.open(this.tileSources),i=0;i<this.customControls.length;i++)this.addControl(this.customControls[i].id,{anchor:this.customControls[i].anchor});e.requestAnimationFrame((function(){l(u)})),void 0===this.imageSmoothingEnabled||this.imageSmoothingEnabled||this.drawer.setImageSmoothingEnabled(this.imageSmoothingEnabled)},e.extend(e.Viewer.prototype,e.EventSource.prototype,e.ControlDock.prototype,{isOpen:function(){return!!this.world.getItemCount()},openDzi:function(t){return e.console.error("[Viewer.openDzi] this function is deprecated; use Viewer.open() instead."),this.open(t)},openTileSource:function(t){return e.console.error("[Viewer.openTileSource] this function is deprecated; use Viewer.open() instead."),this.open(t)},open:function(t,n){var r=this;if(this.close(),t){if(this.sequenceMode&&e.isArray(t))return this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),void 0===n||isNaN(n)||(this.initialPage=n),this.tileSources=t,this._sequenceIndex=Math.max(0,Math.min(this.tileSources.length-1,this.initialPage)),this.tileSources.length&&(this.open(this.tileSources[this._sequenceIndex]),this.showReferenceStrip&&this.addReferenceStrip()),void this._updateSequenceButtons(this._sequenceIndex);if(e.isArray(t)||(t=[t]),t.length){this._opening=!0;for(var i,a=t.length,s=0,l=0,c=function(){if(s+l===a)if(s){!r._firstOpen&&r.preserveViewport||(r.viewport.goHome(!0),r.viewport.update()),r._firstOpen=!1;var e=t[0];if(e.tileSource&&(e=e.tileSource),r.overlays&&!r.preserveOverlays)for(var n=0;n<r.overlays.length;n++)r.currentOverlays[n]=o(r,r.overlays[n]);r._drawOverlays(),r._opening=!1,r.raiseEvent("open",{source:e})}else r._opening=!1,r.raiseEvent("open-failed",i)},u=function(t){e.isPlainObject(t)&&t.tileSource||(t={tileSource:t}),void 0!==t.index&&(e.console.error("[Viewer.open] setting indexes here is not supported; use addTiledImage instead"),delete t.index),void 0===t.collectionImmediately&&(t.collectionImmediately=!0);var n=t.success;t.success=function(e){if(s++,t.tileSource.overlays)for(var o=0;o<t.tileSource.overlays.length;o++)r.addOverlay(t.tileSource.overlays[o]);n&&n(e),c()};var o=t.error;t.error=function(e){l++,i||(i=e),o&&o(e),c()},r.addTiledImage(t)},d=0;d<t.length;d++)u(t[d]);return this}}},close:function(){return t[this.hash]?(this._opening=!1,this.navigator&&this.navigator.close(),this.preserveOverlays||(this.clearOverlays(),this.overlaysContainer.innerHTML=""),t[this.hash].animating=!1,this.world.removeAll(),this.imageLoader.clear(),this.raiseEvent("close"),this):this},destroy:function(){if(t[this.hash]){if(this.close(),this.clearOverlays(),this.overlaysContainer.innerHTML="",this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),null!==this._updateRequestId&&(e.cancelAnimationFrame(this._updateRequestId),this._updateRequestId=null),this.drawer&&this.drawer.destroy(),this.removeAllHandlers(),this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.innerTracker&&this.innerTracker.destroy(),this.outerTracker&&this.outerTracker.destroy(),t[this.hash]=null,delete t[this.hash],this.canvas=null,this.container=null,this.element=null}},isMouseNavEnabled:function(){return this.innerTracker.isTracking()},setMouseNavEnabled:function(e){return this.innerTracker.setTracking(e),this.outerTracker.setTracking(e),this.raiseEvent("mouse-enabled",{enabled:e}),this},areControlsEnabled:function(){var e,t=this.controls.length;for(e=0;e<this.controls.length;e++)t=t&&this.controls[e].isVisible();return t},setControlsEnabled:function(e){return e?c(this):l(this),this.raiseEvent("controls-enabled",{enabled:e}),this},setDebugMode:function(e){for(var t=0;t<this.world.getItemCount();t++)this.world.getItemAt(t).debugMode=e;this.debugMode=e,this.forceRedraw()},isFullPage:function(){return t[this.hash].fullPage},setFullPage:function(n){var r,o,i=document.body,a=i.style,s=document.documentElement.style,l=this;if(n==this.isFullPage())return this;var c={fullPage:n,preventDefaultAction:!1};if(this.raiseEvent("pre-full-page",c),c.preventDefaultAction)return this;if(n){for(this.elementSize=e.getElementSize(this.element),this.pageScroll=e.getPageScroll(),this.elementMargin=this.element.style.margin,this.element.style.margin="0",this.elementPadding=this.element.style.padding,this.element.style.padding="0",this.bodyMargin=a.margin,this.docMargin=s.margin,a.margin="0",s.margin="0",this.bodyPadding=a.padding,this.docPadding=s.padding,a.padding="0",s.padding="0",this.bodyWidth=a.width,this.docWidth=s.width,a.width="100%",s.width="100%",this.bodyHeight=a.height,this.docHeight=s.height,a.height="100%",s.height="100%",this.previousBody=[],t[this.hash].prevElementParent=this.element.parentNode,t[this.hash].prevNextSibling=this.element.nextSibling,t[this.hash].prevElementWidth=this.element.style.width,t[this.hash].prevElementHeight=this.element.style.height,r=i.childNodes.length,o=0;o<r;o++)this.previousBody.push(i.childNodes[0]),i.removeChild(i.childNodes[0]);this.toolbar&&this.toolbar.element&&(this.toolbar.parentNode=this.toolbar.element.parentNode,this.toolbar.nextSibling=this.toolbar.element.nextSibling,i.appendChild(this.toolbar.element),e.addClass(this.toolbar.element,"fullpage")),e.addClass(this.element,"fullpage"),i.appendChild(this.element),this.element.style.height=e.getWindowSize().y+"px",this.element.style.width=e.getWindowSize().x+"px",this.toolbar&&this.toolbar.element&&(this.element.style.height=e.getElementSize(this.element).y-e.getElementSize(this.toolbar.element).y+"px"),t[this.hash].fullPage=!0,e.delegate(this,_)({})}else{for(this.element.style.margin=this.elementMargin,this.element.style.padding=this.elementPadding,a.margin=this.bodyMargin,s.margin=this.docMargin,a.padding=this.bodyPadding,s.padding=this.docPadding,a.width=this.bodyWidth,s.width=this.docWidth,a.height=this.bodyHeight,s.height=this.docHeight,i.removeChild(this.element),r=this.previousBody.length,o=0;o<r;o++)i.appendChild(this.previousBody.shift());e.removeClass(this.element,"fullpage"),t[this.hash].prevElementParent.insertBefore(this.element,t[this.hash].prevNextSibling),this.toolbar&&this.toolbar.element&&(i.removeChild(this.toolbar.element),e.removeClass(this.toolbar.element,"fullpage"),this.toolbar.parentNode.insertBefore(this.toolbar.element,this.toolbar.nextSibling),delete this.toolbar.parentNode,delete this.toolbar.nextSibling),this.element.style.width=t[this.hash].prevElementWidth,this.element.style.height=t[this.hash].prevElementHeight;var u=0,d=function(){e.setPageScroll(l.pageScroll);var t=e.getPageScroll();++u<10&&(t.x!==l.pageScroll.x||t.y!==l.pageScroll.y)&&e.requestAnimationFrame(d)};e.requestAnimationFrame(d),t[this.hash].fullPage=!1,e.delegate(this,C)({})}return this.navigator&&this.viewport&&this.navigator.update(this.viewport),this.raiseEvent("full-page",{fullPage:n}),this},setFullScreen:function(t){var n=this;if(!e.supportsFullScreen)return this.setFullPage(t);if(e.isFullScreen()===t)return this;var r={fullScreen:t,preventDefaultAction:!1};if(this.raiseEvent("pre-full-screen",r),r.preventDefaultAction)return this;if(t){if(this.setFullPage(!0),!this.isFullPage())return this;this.fullPageStyleWidth=this.element.style.width,this.fullPageStyleHeight=this.element.style.height,this.element.style.width="100%",this.element.style.height="100%";var o=function(){var t=e.isFullScreen();t||(e.removeEvent(document,e.fullScreenEventName,o),e.removeEvent(document,e.fullScreenErrorEventName,o),n.setFullPage(!1),n.isFullPage()&&(n.element.style.width=n.fullPageStyleWidth,n.element.style.height=n.fullPageStyleHeight)),n.navigator&&n.viewport&&setTimeout((function(){n.navigator.update(n.viewport)})),n.raiseEvent("full-screen",{fullScreen:t})};e.addEvent(document,e.fullScreenEventName,o),e.addEvent(document,e.fullScreenErrorEventName,o),e.requestFullScreen(document.body)}else e.exitFullScreen();return this},isVisible:function(){return"hidden"!=this.container.style.visibility},setVisible:function(e){return this.container.style.visibility=e?"":"hidden",this.raiseEvent("visible",{visible:e}),this},addTiledImage:function(t){e.console.assert(t,"[Viewer.addTiledImage] options is required"),e.console.assert(t.tileSource,"[Viewer.addTiledImage] options.tileSource is required"),e.console.assert(!t.replace||t.index>-1&&t.index<this.world.getItemCount(),"[Viewer.addTiledImage] if options.replace is used, options.index must be a valid index in Viewer.world");var n=this;t.replace&&(t.replaceItem=n.world.getItemAt(t.index)),this._hideMessage(),void 0===t.placeholderFillStyle&&(t.placeholderFillStyle=this.placeholderFillStyle),void 0===t.opacity&&(t.opacity=this.opacity),void 0===t.preload&&(t.preload=this.preload),void 0===t.compositeOperation&&(t.compositeOperation=this.compositeOperation),void 0===t.crossOriginPolicy&&(t.crossOriginPolicy=void 0!==t.tileSource.crossOriginPolicy?t.tileSource.crossOriginPolicy:this.crossOriginPolicy),void 0===t.ajaxWithCredentials&&(t.ajaxWithCredentials=this.ajaxWithCredentials),void 0===t.loadTilesWithAjax&&(t.loadTilesWithAjax=this.loadTilesWithAjax),void 0===t.ajaxHeaders||null===t.ajaxHeaders?t.ajaxHeaders=this.ajaxHeaders:e.isPlainObject(t.ajaxHeaders)&&e.isPlainObject(this.ajaxHeaders)&&(t.ajaxHeaders=e.extend({},this.ajaxHeaders,t.ajaxHeaders));var r={options:t};function o(e){for(var o=0;o<n._loadQueue.length;o++)if(n._loadQueue[o]===r){n._loadQueue.splice(o,1);break}0===n._loadQueue.length&&i(r),n.raiseEvent("add-item-failed",e),t.error&&t.error(e)}function i(e){n.collectionMode&&(n.world.arrange({immediately:e.options.collectionImmediately,rows:n.collectionRows,columns:n.collectionColumns,layout:n.collectionLayout,tileSize:n.collectionTileSize,tileMargin:n.collectionTileMargin}),n.world.setAutoRefigureSizes(!0))}function a(){for(var t,r,o;n._loadQueue.length&&(t=n._loadQueue[0]).tileSource;){if(n._loadQueue.splice(0,1),t.options.replace){var a=n.world.getIndexOfItem(t.options.replaceItem);-1!=a&&(t.options.index=a),n.world.removeItem(t.options.replaceItem)}r=new e.TiledImage({viewer:n,source:t.tileSource,viewport:n.viewport,drawer:n.drawer,tileCache:n.tileCache,imageLoader:n.imageLoader,x:t.options.x,y:t.options.y,width:t.options.width,height:t.options.height,fitBounds:t.options.fitBounds,fitBoundsPlacement:t.options.fitBoundsPlacement,clip:t.options.clip,placeholderFillStyle:t.options.placeholderFillStyle,opacity:t.options.opacity,preload:t.options.preload,degrees:t.options.degrees,compositeOperation:t.options.compositeOperation,springStiffness:n.springStiffness,animationTime:n.animationTime,minZoomImageRatio:n.minZoomImageRatio,wrapHorizontal:n.wrapHorizontal,wrapVertical:n.wrapVertical,immediateRender:n.immediateRender,blendTime:n.blendTime,alwaysBlend:n.alwaysBlend,minPixelRatio:n.minPixelRatio,smoothTileEdgesMinZoom:n.smoothTileEdgesMinZoom,iOSDevice:n.iOSDevice,crossOriginPolicy:t.options.crossOriginPolicy,ajaxWithCredentials:t.options.ajaxWithCredentials,loadTilesWithAjax:t.options.loadTilesWithAjax,ajaxHeaders:t.options.ajaxHeaders,debugMode:n.debugMode}),n.collectionMode&&n.world.setAutoRefigureSizes(!1),n.world.addItem(r,{index:t.options.index}),0===n._loadQueue.length&&i(t),1!==n.world.getItemCount()||n.preserveViewport||n.viewport.goHome(!0),n.navigator&&(o=e.extend({},t.options,{replace:!1,originalTiledImage:r,tileSource:t.tileSource}),n.navigator.addTiledImage(o)),t.options.success&&t.options.success({item:r})}}e.isArray(t.tileSource)?setTimeout((function(){o({message:"[Viewer.addTiledImage] Sequences can not be added; add them one at a time instead.",source:t.tileSource,options:t})})):(this._loadQueue.push(r),function(t,n,r,o,i){var a=t;if("string"==e.type(n))if(n.match(/^\s*<.*>\s*$/))n=e.parseXml(n);else if(n.match(/^\s*[\{\[].*[\}\]]\s*$/))try{var s=e.parseJSON(n);n=s}catch(e){}function l(e,t){e.ready?o(e):(e.addHandler("ready",(function(){o(e)})),e.addHandler("open-failed",(function(e){i({message:e.message,source:t})})))}setTimeout((function(){if("string"==e.type(n))(n=new e.TileSource({url:n,crossOriginPolicy:void 0!==r.crossOriginPolicy?r.crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,ajaxHeaders:t.ajaxHeaders,useCanvas:t.useCanvas,success:function(e){o(e.tileSource)}})).addHandler("open-failed",(function(e){i(e)}));else if(e.isPlainObject(n)||n.nodeType)if(void 0!==n.crossOriginPolicy||void 0===r.crossOriginPolicy&&void 0===t.crossOriginPolicy||(n.crossOriginPolicy=void 0!==r.crossOriginPolicy?r.crossOriginPolicy:t.crossOriginPolicy),void 0===n.ajaxWithCredentials&&(n.ajaxWithCredentials=t.ajaxWithCredentials),void 0===n.useCanvas&&(n.useCanvas=t.useCanvas),e.isFunction(n.getTileUrl)){var s=new e.TileSource(n);s.getTileUrl=n.getTileUrl,o(s)}else{var c=e.TileSource.determineType(a,n);if(!c)return void i({message:"Unable to load TileSource",source:n});var u=c.prototype.configure.apply(a,[n]);l(new c(u),n)}else l(n,n)}))}(this,t.tileSource,t,(function(e){r.tileSource=e,a()}),(function(e){e.options=t,o(e),a()})))},addSimpleImage:function(t){e.console.assert(t,"[Viewer.addSimpleImage] options is required"),e.console.assert(t.url,"[Viewer.addSimpleImage] options.url is required");var n=e.extend({},t,{tileSource:{type:"image",url:t.url}});delete n.url,this.addTiledImage(n)},addLayer:function(t){var n=this;e.console.error("[Viewer.addLayer] this function is deprecated; use Viewer.addTiledImage() instead.");var r=e.extend({},t,{success:function(e){n.raiseEvent("add-layer",{options:t,drawer:e.item})},error:function(e){n.raiseEvent("add-layer-failed",e)}});return this.addTiledImage(r),this},getLayerAtLevel:function(t){return e.console.error("[Viewer.getLayerAtLevel] this function is deprecated; use World.getItemAt() instead."),this.world.getItemAt(t)},getLevelOfLayer:function(t){return e.console.error("[Viewer.getLevelOfLayer] this function is deprecated; use World.getIndexOfItem() instead."),this.world.getIndexOfItem(t)},getLayersCount:function(){return e.console.error("[Viewer.getLayersCount] this function is deprecated; use World.getItemCount() instead."),this.world.getItemCount()},setLayerLevel:function(t,n){return e.console.error("[Viewer.setLayerLevel] this function is deprecated; use World.setItemIndex() instead."),this.world.setItemIndex(t,n)},removeLayer:function(t){return e.console.error("[Viewer.removeLayer] this function is deprecated; use World.removeItem() instead."),this.world.removeItem(t)},forceRedraw:function(){return t[this.hash].forceRedraw=!0,this},bindSequenceControls:function(){var t=e.delegate(this,u),n=e.delegate(this,d),r=e.delegate(this,U),o=e.delegate(this,V),i=this.navImages,a=!0;return this.showSequenceControl&&((this.previousButton||this.nextButton)&&(a=!1),this.previousButton=new e.Button({element:this.previousButton?e.getElement(this.previousButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.PreviousPage"),srcRest:k(this.prefixUrl,i.previous.REST),srcGroup:k(this.prefixUrl,i.previous.GROUP),srcHover:k(this.prefixUrl,i.previous.HOVER),srcDown:k(this.prefixUrl,i.previous.DOWN),onRelease:o,onFocus:t,onBlur:n}),this.nextButton=new e.Button({element:this.nextButton?e.getElement(this.nextButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.NextPage"),srcRest:k(this.prefixUrl,i.next.REST),srcGroup:k(this.prefixUrl,i.next.GROUP),srcHover:k(this.prefixUrl,i.next.HOVER),srcDown:k(this.prefixUrl,i.next.DOWN),onRelease:r,onFocus:t,onBlur:n}),this.navPrevNextWrap||this.previousButton.disable(),this.tileSources&&this.tileSources.length||this.nextButton.disable(),a&&(this.paging=new e.ButtonGroup({buttons:[this.previousButton,this.nextButton],clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.pagingControl=this.paging.element,this.toolbar?this.toolbar.addControl(this.pagingControl,{anchor:e.ControlAnchor.BOTTOM_RIGHT}):this.addControl(this.pagingControl,{anchor:this.sequenceControlAnchor||e.ControlAnchor.TOP_LEFT}))),this},bindStandardControls:function(){var t=e.delegate(this,P),n=e.delegate(this,R),r=e.delegate(this,N),o=e.delegate(this,I),i=e.delegate(this,M),a=e.delegate(this,z),s=e.delegate(this,W),l=e.delegate(this,B),c=e.delegate(this,F),f=e.delegate(this,H),p=e.delegate(this,u),h=e.delegate(this,d),m=this.navImages,g=[],v=!0;return this.showNavigationControl&&((this.zoomInButton||this.zoomOutButton||this.homeButton||this.fullPageButton||this.rotateLeftButton||this.rotateRightButton||this.flipButton)&&(v=!1),this.showZoomControl&&(g.push(this.zoomInButton=new e.Button({element:this.zoomInButton?e.getElement(this.zoomInButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomIn"),srcRest:k(this.prefixUrl,m.zoomIn.REST),srcGroup:k(this.prefixUrl,m.zoomIn.GROUP),srcHover:k(this.prefixUrl,m.zoomIn.HOVER),srcDown:k(this.prefixUrl,m.zoomIn.DOWN),onPress:t,onRelease:n,onClick:r,onEnter:t,onExit:n,onFocus:p,onBlur:h})),g.push(this.zoomOutButton=new e.Button({element:this.zoomOutButton?e.getElement(this.zoomOutButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomOut"),srcRest:k(this.prefixUrl,m.zoomOut.REST),srcGroup:k(this.prefixUrl,m.zoomOut.GROUP),srcHover:k(this.prefixUrl,m.zoomOut.HOVER),srcDown:k(this.prefixUrl,m.zoomOut.DOWN),onPress:o,onRelease:n,onClick:i,onEnter:o,onExit:n,onFocus:p,onBlur:h}))),this.showHomeControl&&g.push(this.homeButton=new e.Button({element:this.homeButton?e.getElement(this.homeButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Home"),srcRest:k(this.prefixUrl,m.home.REST),srcGroup:k(this.prefixUrl,m.home.GROUP),srcHover:k(this.prefixUrl,m.home.HOVER),srcDown:k(this.prefixUrl,m.home.DOWN),onRelease:a,onFocus:p,onBlur:h})),this.showFullPageControl&&g.push(this.fullPageButton=new e.Button({element:this.fullPageButton?e.getElement(this.fullPageButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.FullPage"),srcRest:k(this.prefixUrl,m.fullpage.REST),srcGroup:k(this.prefixUrl,m.fullpage.GROUP),srcHover:k(this.prefixUrl,m.fullpage.HOVER),srcDown:k(this.prefixUrl,m.fullpage.DOWN),onRelease:s,onFocus:p,onBlur:h})),this.showRotationControl&&(g.push(this.rotateLeftButton=new e.Button({element:this.rotateLeftButton?e.getElement(this.rotateLeftButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateLeft"),srcRest:k(this.prefixUrl,m.rotateleft.REST),srcGroup:k(this.prefixUrl,m.rotateleft.GROUP),srcHover:k(this.prefixUrl,m.rotateleft.HOVER),srcDown:k(this.prefixUrl,m.rotateleft.DOWN),onRelease:l,onFocus:p,onBlur:h})),g.push(this.rotateRightButton=new e.Button({element:this.rotateRightButton?e.getElement(this.rotateRightButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateRight"),srcRest:k(this.prefixUrl,m.rotateright.REST),srcGroup:k(this.prefixUrl,m.rotateright.GROUP),srcHover:k(this.prefixUrl,m.rotateright.HOVER),srcDown:k(this.prefixUrl,m.rotateright.DOWN),onRelease:c,onFocus:p,onBlur:h}))),this.showFlipControl&&g.push(this.flipButton=new e.Button({element:this.flipButton?e.getElement(this.flipButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Flip"),srcRest:k(this.prefixUrl,m.flip.REST),srcGroup:k(this.prefixUrl,m.flip.GROUP),srcHover:k(this.prefixUrl,m.flip.HOVER),srcDown:k(this.prefixUrl,m.flip.DOWN),onRelease:f,onFocus:p,onBlur:h})),v&&(this.buttons=new e.ButtonGroup({buttons:g,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.navControl=this.buttons.element,this.addHandler("open",e.delegate(this,L)),this.toolbar?this.toolbar.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT}):this.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT}))),this},currentPage:function(){return this._sequenceIndex},goToPage:function(e){return this.tileSources&&e>=0&&e<this.tileSources.length&&(this._sequenceIndex=e,this._updateSequenceButtons(e),this.open(this.tileSources[e]),this.referenceStrip&&this.referenceStrip.setFocus(e),this.raiseEvent("page",{page:e})),this},addOverlay:function(t,n,r,a){var s;if(s=e.isPlainObject(t)?t:{element:t,location:n,placement:r,onDraw:a},t=e.getElement(s.element),i(this.currentOverlays,t)>=0)return this;var l=o(this,s);return this.currentOverlays.push(l),l.drawHTML(this.overlaysContainer,this.viewport),this.raiseEvent("add-overlay",{element:t,location:s.location,placement:s.placement}),this},updateOverlay:function(n,r,o){var a;return n=e.getElement(n),(a=i(this.currentOverlays,n))>=0&&(this.currentOverlays[a].update(r,o),t[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:n,location:r,placement:o})),this},removeOverlay:function(n){var r;return n=e.getElement(n),(r=i(this.currentOverlays,n))>=0&&(this.currentOverlays[r].destroy(),this.currentOverlays.splice(r,1),t[this.hash].forceRedraw=!0,this.raiseEvent("remove-overlay",{element:n})),this},clearOverlays:function(){for(;this.currentOverlays.length>0;)this.currentOverlays.pop().destroy();return t[this.hash].forceRedraw=!0,this.raiseEvent("clear-overlay",{}),this},getOverlayById:function(t){var n;return t=e.getElement(t),(n=i(this.currentOverlays,t))>=0?this.currentOverlays[n]:null},_updateSequenceButtons:function(e){this.nextButton&&(this.tileSources&&this.tileSources.length-1!==e?this.nextButton.enable():this.navPrevNextWrap||this.nextButton.disable()),this.previousButton&&(e>0?this.previousButton.enable():this.navPrevNextWrap||this.previousButton.disable())},_showMessage:function(t){this._hideMessage();var n=e.makeNeutralElement("div");n.appendChild(document.createTextNode(t)),this.messageDiv=e.makeCenteredNode(n),e.addClass(this.messageDiv,"openseadragon-message"),this.container.appendChild(this.messageDiv)},_hideMessage:function(){var e=this.messageDiv;e&&(e.parentNode.removeChild(e),delete this.messageDiv)},gestureSettingsByDeviceType:function(e){switch(e){case"mouse":return this.gestureSettingsMouse;case"touch":return this.gestureSettingsTouch;case"pen":return this.gestureSettingsPen;default:return this.gestureSettingsUnknown}},_drawOverlays:function(){var e,t=this.currentOverlays.length;for(e=0;e<t;e++)this.currentOverlays[e].drawHTML(this.overlaysContainer,this.viewport)},_cancelPendingImages:function(){this._loadQueue=[]},removeReferenceStrip:function(){this.showReferenceStrip=!1,this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null)},addReferenceStrip:function(){if(this.showReferenceStrip=!0,this.sequenceMode){if(this.referenceStrip)return;this.tileSources.length&&this.tileSources.length>1&&(this.referenceStrip=new e.ReferenceStrip({id:this.referenceStripElement,position:this.referenceStripPosition,sizeRatio:this.referenceStripSizeRatio,scroll:this.referenceStripScroll,height:this.referenceStripHeight,width:this.referenceStripWidth,tileSources:this.tileSources,prefixUrl:this.prefixUrl,useCanvas:this.useCanvas,viewer:this}),this.referenceStrip.setFocus(this._sequenceIndex))}else e.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')}})}(OpenSeadragon),function(e){function t(e){var t={tracker:e.eventSource,position:e.position,quick:e.quick,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};if(this.viewer.raiseEvent("navigator-click",t),!t.preventDefaultAction&&e.quick&&this.viewer.viewport&&(this.panVertical||this.panHorizontal)){this.viewer.viewport.flipped&&(e.position.x=this.viewport.getContainerSize().x-e.position.x);var n=this.viewport.pointFromPixel(e.position);this.panVertical?this.panHorizontal||(n.x=this.viewer.viewport.getCenter(!0).x):n.y=this.viewer.viewport.getCenter(!0).y,this.viewer.viewport.panTo(n),this.viewer.viewport.applyConstraints()}}function n(e){var t={tracker:e.eventSource,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:e.preventDefaultAction};this.viewer.raiseEvent("navigator-drag",t),!t.preventDefaultAction&&this.viewer.viewport&&(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewer.viewport.flipped&&(e.delta.x=-e.delta.x),this.viewer.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta)),this.viewer.constrainDuringPan&&this.viewer.viewport.applyConstraints())}function r(e){e.insideElementPressed&&this.viewer.viewport&&this.viewer.viewport.applyConstraints()}function o(e){return this.viewer.raiseEvent("navigator-scroll",{tracker:e.eventSource,position:e.position,scroll:e.scroll,shift:e.shift,originalEvent:e.originalEvent}),!1}function i(e,t){a(e,"rotate("+t+"deg)")}function a(e,t){e.style.webkitTransform=t,e.style.mozTransform=t,e.style.msTransform=t,e.style.oTransform=t,e.style.transform=t}e.Navigator=function(a){var s,l,c,u,d=a.viewer,f=this;function p(e){i(f.displayRegionContainer,e),i(f.displayRegion,-e),f.viewport.setRotation(e)}a.id?(this.element=document.getElementById(a.id),a.controlOptions={anchor:e.ControlAnchor.NONE,attachToViewer:!1,autoFade:!1}):(a.id="navigator-"+e.now(),this.element=e.makeNeutralElement("div"),a.controlOptions={anchor:e.ControlAnchor.TOP_RIGHT,attachToViewer:!0,autoFade:a.autoFade},a.position&&("BOTTOM_RIGHT"==a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_RIGHT:"BOTTOM_LEFT"==a.position?a.controlOptions.anchor=e.ControlAnchor.BOTTOM_LEFT:"TOP_RIGHT"==a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_RIGHT:"TOP_LEFT"==a.position?a.controlOptions.anchor=e.ControlAnchor.TOP_LEFT:"ABSOLUTE"==a.position&&(a.controlOptions.anchor=e.ControlAnchor.ABSOLUTE,a.controlOptions.top=a.top,a.controlOptions.left=a.left,a.controlOptions.height=a.height,a.controlOptions.width=a.width))),this.element.id=a.id,this.element.className+=" navigator",(a=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.navigatorSizeRatio},a,{element:this.element,tabIndex:-1,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,autoResize:a.autoResize,minZoomImageRatio:1,background:a.background,opacity:a.opacity,borderColor:a.borderColor,displayRegionColor:a.displayRegionColor})).minPixelRatio=this.minPixelRatio=d.minPixelRatio,e.setElementTouchActionNone(this.element),this.borderWidth=2,this.fudge=new e.Point(1,1),this.totalBorderWidths=new e.Point(2*this.borderWidth,2*this.borderWidth).minus(this.fudge),a.controlOptions.anchor!=e.ControlAnchor.NONE&&(c=this.element.style,u=this.borderWidth,c.margin="0px",c.border=u+"px solid "+a.borderColor,c.padding="0px",c.background=a.background,c.opacity=a.opacity,c.overflow="hidden"),this.displayRegion=e.makeNeutralElement("div"),this.displayRegion.id=this.element.id+"-displayregion",this.displayRegion.className="displayregion",function(e,t){e.position="relative",e.top="0px",e.left="0px",e.fontSize="0px",e.overflow="hidden",e.border=t+"px solid "+a.displayRegionColor,e.margin="0px",e.padding="0px",e.background="transparent",e.float="left",e.cssFloat="left",e.styleFloat="left",e.zIndex=999999999,e.cursor="default"}(this.displayRegion.style,this.borderWidth),this.displayRegionContainer=e.makeNeutralElement("div"),this.displayRegionContainer.id=this.element.id+"-displayregioncontainer",this.displayRegionContainer.className="displayregioncontainer",this.displayRegionContainer.style.width="100%",this.displayRegionContainer.style.height="100%",d.addControl(this.element,a.controlOptions),this._resizeWithViewer=a.controlOptions.anchor!=e.ControlAnchor.ABSOLUTE&&a.controlOptions.anchor!=e.ControlAnchor.NONE,a.width&&a.height?(this.setWidth(a.width),this.setHeight(a.height)):this._resizeWithViewer&&(s=e.getElementSize(d.element),this.element.style.height=Math.round(s.y*a.sizeRatio)+"px",this.element.style.width=Math.round(s.x*a.sizeRatio)+"px",this.oldViewerSize=s,l=e.getElementSize(this.element),this.elementArea=l.x*l.y),this.oldContainerSize=new e.Point(0,0),e.Viewer.apply(this,[a]),this.displayRegionContainer.appendChild(this.displayRegion),this.element.getElementsByTagName("div")[0].appendChild(this.displayRegionContainer),a.navigatorRotate&&(p(a.viewer.viewport?a.viewer.viewport.getRotation():a.viewer.degrees||0),a.viewer.addHandler("rotate",(function(e){p(e.degrees)}))),this.innerTracker.destroy(),this.innerTracker=new e.MouseTracker({element:this.element,dragHandler:e.delegate(this,n),clickHandler:e.delegate(this,t),releaseHandler:e.delegate(this,r),scrollHandler:e.delegate(this,o)}),this.addHandler("reset-size",(function(){f.viewport&&f.viewport.goHome(!0)})),d.world.addHandler("item-index-change",(function(e){window.setTimeout((function(){var t=f.world.getItemAt(e.previousIndex);f.world.setItemIndex(t,e.newIndex)}),1)})),d.world.addHandler("remove-item",(function(e){var t=e.item,n=f._getMatchingItem(t);n&&f.world.removeItem(n)})),this.update(d.viewport)},e.extend(e.Navigator.prototype,e.EventSource.prototype,e.Viewer.prototype,{updateSize:function(){if(this.viewport){var t=new e.Point(0===this.container.clientWidth?1:this.container.clientWidth,0===this.container.clientHeight?1:this.container.clientHeight);t.equals(this.oldContainerSize)||(this.viewport.resize(t,!0),this.viewport.goHome(!0),this.oldContainerSize=t,this.drawer.clear(),this.world.draw())}},setWidth:function(e){this.width=e,this.element.style.width="number"==typeof e?e+"px":e,this._resizeWithViewer=!1},setHeight:function(e){this.height=e,this.element.style.height="number"==typeof e?e+"px":e,this._resizeWithViewer=!1},setFlip:function(e){return this.viewport.setFlip(e),this.setDisplayTransform(this.viewer.viewport.getFlip()?"scale(-1,1)":"scale(1,1)"),this},setDisplayTransform:function(e){a(this.displayRegion,e),a(this.canvas,e),a(this.element,e)},update:function(t){var n,r,o,i,a,s;if(n=e.getElementSize(this.viewer.element),this._resizeWithViewer&&n.x&&n.y&&!n.equals(this.oldViewerSize)&&(this.oldViewerSize=n,this.maintainSizeRatio||!this.elementArea?(r=n.x*this.sizeRatio,o=n.y*this.sizeRatio):(r=Math.sqrt(this.elementArea*(n.x/n.y)),o=this.elementArea/r),this.element.style.width=Math.round(r)+"px",this.element.style.height=Math.round(o)+"px",this.elementArea||(this.elementArea=r*o),this.updateSize()),t&&this.viewport){i=t.getBoundsNoRotate(!0),a=this.viewport.pixelFromPointNoRotate(i.getTopLeft(),!1),s=this.viewport.pixelFromPointNoRotate(i.getBottomRight(),!1).minus(this.totalBorderWidths);var l=this.displayRegion.style;l.display=this.world.getItemCount()?"block":"none",l.top=Math.round(a.y)+"px",l.left=Math.round(a.x)+"px";var c=Math.abs(a.x-s.x),u=Math.abs(a.y-s.y);l.width=Math.round(Math.max(c,0))+"px",l.height=Math.round(Math.max(u,0))+"px"}},addTiledImage:function(t){var n=this,r=t.originalTiledImage;delete t.original;var o=e.extend({},t,{success:function(e){var t=e.item;function o(){n._matchBounds(t,r)}t._originalForNavigator=r,n._matchBounds(t,r,!0),r.addHandler("bounds-change",o),r.addHandler("clip-change",o),r.addHandler("opacity-change",(function(){n._matchOpacity(t,r)})),r.addHandler("composite-operation-change",(function(){n._matchCompositeOperation(t,r)}))}});return e.Viewer.prototype.addTiledImage.apply(this,[o])},_getMatchingItem:function(e){for(var t,n=this.world.getItemCount(),r=0;r<n;r++)if((t=this.world.getItemAt(r))._originalForNavigator===e)return t;return null},_matchBounds:function(e,t,n){var r=t.getBoundsNoRotate();e.setPosition(r.getTopLeft(),n),e.setWidth(r.width,n),e.setRotation(t.getRotation(),n),e.setClip(t.getClip())},_matchOpacity:function(e,t){e.setOpacity(t.opacity)},_matchCompositeOperation:function(e,t){e.setCompositeOperation(t.compositeOperation)}})}(OpenSeadragon),function(e){var t={Errors:{Dzc:"Sorry, we don't support Deep Zoom Collections!",Dzi:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",Xml:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",ImageFormat:"Sorry, we don't support {0}-based Deep Zoom Images.",Security:"It looks like a security restriction stopped us from loading this Deep Zoom Image.",Status:"This space unintentionally left blank ({0} {1}).",OpenFailed:"Unable to open {0}: {1}"},Tooltips:{FullPage:"Toggle full page",Home:"Go home",ZoomIn:"Zoom in",ZoomOut:"Zoom out",NextPage:"Next page",PreviousPage:"Previous page",RotateLeft:"Rotate left",RotateRight:"Rotate right",Flip:"Flip Horizontally"}};e.extend(e,{getString:function(n){var r,o=n.split("."),i=null,a=arguments,s=t;for(r=0;r<o.length-1;r++)s=s[o[r]]||{};return"string"!=typeof(i=s[o[r]])&&(e.console.log("Untranslated source string:",n),i=""),i.replace(/\{\d+\}/g,(function(e){var t=parseInt(e.match(/\d+/),10)+1;return t<a.length?a[t]:""}))},setString:function(e,n){var r,o=e.split("."),i=t;for(r=0;r<o.length-1;r++)i[o[r]]||(i[o[r]]={}),i=i[o[r]];i[o[r]]=n}})}(OpenSeadragon),function(e){e.Point=function(e,t){this.x="number"==typeof e?e:0,this.y="number"==typeof t?t:0},e.Point.prototype={clone:function(){return new e.Point(this.x,this.y)},plus:function(t){return new e.Point(this.x+t.x,this.y+t.y)},minus:function(t){return new e.Point(this.x-t.x,this.y-t.y)},times:function(t){return new e.Point(this.x*t,this.y*t)},divide:function(t){return new e.Point(this.x/t,this.y/t)},negate:function(){return new e.Point(-this.x,-this.y)},distanceTo:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},squaredDistanceTo:function(e){return Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2)},apply:function(t){return new e.Point(t(this.x),t(this.y))},equals:function(t){return t instanceof e.Point&&this.x===t.x&&this.y===t.y},rotate:function(t,n){var r,o;if(n=n||new e.Point(0,0),t%90==0)switch(e.positiveModulo(t,360)){case 0:r=1,o=0;break;case 90:r=0,o=1;break;case 180:r=-1,o=0;break;case 270:r=0,o=-1}else{var i=t*Math.PI/180;r=Math.cos(i),o=Math.sin(i)}var a=r*(this.x-n.x)-o*(this.y-n.y)+n.x,s=o*(this.x-n.x)+r*(this.y-n.y)+n.y;return new e.Point(a,s)},toString:function(){return"("+Math.round(100*this.x)/100+","+Math.round(100*this.y)/100+")"}}}(OpenSeadragon),function(e){e.TileSource=function(t,n,r,o,i,a){var s,l,c=this,u=arguments;if(s=e.isPlainObject(t)?t:{width:u[0],height:u[1],tileSize:u[2],tileOverlap:u[3],minLevel:u[4],maxLevel:u[5]},e.EventSource.call(this),e.extend(!0,this,s),!this.success)for(l=0;l<arguments.length;l++)if(e.isFunction(arguments[l])){this.success=arguments[l];break}this.success&&this.addHandler("ready",(function(e){c.success(e)})),"string"==e.type(arguments[0])&&(this.url=arguments[0]),this.url?(this.aspectRatio=1,this.dimensions=new e.Point(10,10),this._tileWidth=0,this._tileHeight=0,this.tileOverlap=0,this.minLevel=0,this.maxLevel=0,this.ready=!1,this.getImageInfo(this.url)):(this.ready=!0,this.aspectRatio=s.width&&s.height?s.width/s.height:1,this.dimensions=new e.Point(s.width,s.height),this.tileSize?(this._tileWidth=this._tileHeight=this.tileSize,delete this.tileSize):(this.tileWidth?(this._tileWidth=this.tileWidth,delete this.tileWidth):this._tileWidth=0,this.tileHeight?(this._tileHeight=this.tileHeight,delete this.tileHeight):this._tileHeight=0),this.tileOverlap=s.tileOverlap?s.tileOverlap:0,this.minLevel=s.minLevel?s.minLevel:0,this.maxLevel=void 0!==s.maxLevel&&null!==s.maxLevel?s.maxLevel:s.width&&s.height?Math.ceil(Math.log(Math.max(s.width,s.height))/Math.log(2)):0,this.success&&e.isFunction(this.success)&&this.success(this))},e.TileSource.prototype={getTileSize:function(t){return e.console.error("[TileSource.getTileSize] is deprecated. Use TileSource.getTileWidth() and TileSource.getTileHeight() instead"),this._tileWidth},getTileWidth:function(e){return this._tileWidth?this._tileWidth:this.getTileSize(e)},getTileHeight:function(e){return this._tileHeight?this._tileHeight:this.getTileSize(e)},getLevelScale:function(e){var t,n={};for(t=0;t<=this.maxLevel;t++)n[t]=1/Math.pow(2,this.maxLevel-t);return this.getLevelScale=function(e){return n[e]},this.getLevelScale(e)},getNumTiles:function(t){var n=this.getLevelScale(t),r=Math.ceil(n*this.dimensions.x/this.getTileWidth(t)),o=Math.ceil(n*this.dimensions.y/this.getTileHeight(t));return new e.Point(r,o)},getPixelRatio:function(t){var n=this.dimensions.times(this.getLevelScale(t)),r=1/n.x,o=1/n.y;return new e.Point(r,o)},getClosestLevel:function(){var e,t;for(e=this.minLevel+1;e<=this.maxLevel&&!((t=this.getNumTiles(e)).x>1||t.y>1);e++);return e-1},getTileAtPoint:function(t,n){var r=n.x>=0&&n.x<=1&&n.y>=0&&n.y<=1/this.aspectRatio;e.console.assert(r,"[TileSource.getTileAtPoint] must be called with a valid point.");var o=this.dimensions.x*this.getLevelScale(t),i=n.x*o,a=n.y*o,s=Math.floor(i/this.getTileWidth(t)),l=Math.floor(a/this.getTileHeight(t));return n.x>=1&&(s=this.getNumTiles(t).x-1),n.y>=1/this.aspectRatio-1e-15&&(l=this.getNumTiles(t).y-1),new e.Point(s,l)},getTileBounds:function(t,n,r,o){var i=this.dimensions.times(this.getLevelScale(t)),a=this.getTileWidth(t),s=this.getTileHeight(t),l=0===n?0:a*n-this.tileOverlap,c=0===r?0:s*r-this.tileOverlap,u=a+(0===n?1:2)*this.tileOverlap,d=s+(0===r?1:2)*this.tileOverlap,f=1/i.x;return u=Math.min(u,i.x-l),d=Math.min(d,i.y-c),o?new e.Rect(0,0,u,d):new e.Rect(l*f,c*f,u*f,d*f)},getImageInfo:function(t){var n,r,o,i,a,s,l,c=this;t&&(l=(s=(a=t.split("/"))[a.length-1]).lastIndexOf("."))>-1&&(a[a.length-1]=s.slice(0,l)),r=function(n){"string"==typeof n&&(n=e.parseXml(n));var r=e.TileSource.determineType(c,n,t);r?(void 0===(i=r.prototype.configure.apply(c,[n,t])).ajaxWithCredentials&&(i.ajaxWithCredentials=c.ajaxWithCredentials),o=new r(i),c.ready=!0,c.raiseEvent("ready",{tileSource:o})):c.raiseEvent("open-failed",{message:"Unable to load TileSource",source:t})},t.match(/\.js$/)?(n=t.split("/").pop().replace(".js",""),e.jsonp({url:t,async:!1,callbackName:n,callback:r})):e.makeAjaxRequest({url:t,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(t){var n=function(t){var n,r,o=t.responseText,i=t.status;if(!t)throw new Error(e.getString("Errors.Security"));if(200!==t.status&&0!==t.status)throw n=404==(i=t.status)?"Not Found":t.statusText,new Error(e.getString("Errors.Status",i,n));if(o.match(/\s*<.*/))try{r=t.responseXML&&t.responseXML.documentElement?t.responseXML:e.parseXml(o)}catch(e){r=t.responseText}else if(o.match(/\s*[\{\[].*/))try{r=e.parseJSON(o)}catch(e){r=o}else r=o;return r}(t);r(n)},error:function(e,n){var r;try{r="HTTP "+e.status+" attempting to load TileSource"}catch(e){r=(void 0!==n&&n.toString?n.toString():"Unknown error")+" attempting to load TileSource"}c.raiseEvent("open-failed",{message:r,source:t})}})},supports:function(e,t){return!1},configure:function(e,t){throw new Error("Method not implemented.")},getTileUrl:function(e,t,n){throw new Error("Method not implemented.")},getTileAjaxHeaders:function(e,t,n){return{}},tileExists:function(e,t,n){var r=this.getNumTiles(e);return e>=this.minLevel&&e<=this.maxLevel&&t>=0&&n>=0&&t<r.x&&n<r.y}},e.extend(!0,e.TileSource.prototype,e.EventSource.prototype),e.TileSource.determineType=function(t,n,r){var o;for(o in OpenSeadragon)if(o.match(/.+TileSource$/)&&e.isFunction(OpenSeadragon[o])&&e.isFunction(OpenSeadragon[o].prototype.supports)&&OpenSeadragon[o].prototype.supports.call(t,n,r))return OpenSeadragon[o];e.console.error("No TileSource was able to open %s %s",r,n)}}(OpenSeadragon),function(e){function t(t,n){var r,o,i=n.Image,a=i.Url,s=i.Format,l=i.Size,c=i.DisplayRect||[],u=parseInt(l.Width,10),d=parseInt(l.Height,10),f=parseInt(i.TileSize,10),p=parseInt(i.Overlap,10),h=[];for(o=0;o<c.length;o++)r=c[o].Rect,h.push(new e.DisplayRect(parseInt(r.X,10),parseInt(r.Y,10),parseInt(r.Width,10),parseInt(r.Height,10),parseInt(r.MinLevel,10),parseInt(r.MaxLevel,10)));return e.extend(!0,{width:u,height:d,tileSize:f,tileOverlap:p,minLevel:null,maxLevel:null,tilesUrl:a,fileFormat:s,displayRects:h},n)}e.DziTileSource=function(t,n,r,o,i,a,s,l,c){var u,d,f,p;if(p=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4],fileFormat:arguments[5],displayRects:arguments[6],minLevel:arguments[7],maxLevel:arguments[8]},this._levelRects={},this.tilesUrl=p.tilesUrl,this.fileFormat=p.fileFormat,this.displayRects=p.displayRects,this.displayRects)for(u=this.displayRects.length-1;u>=0;u--)for(f=(d=this.displayRects[u]).minLevel;f<=d.maxLevel;f++)this._levelRects[f]||(this._levelRects[f]=[]),this._levelRects[f].push(d);e.TileSource.apply(this,[p])},e.extend(e.DziTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){var n;return e.Image?n=e.Image.xmlns:e.documentElement&&("Image"!=e.documentElement.localName&&"Image"!=e.documentElement.tagName||(n=e.documentElement.namespaceURI)),-1!==(n=(n||"").toLowerCase()).indexOf("schemas.microsoft.com/deepzoom/2008")||-1!==n.indexOf("schemas.microsoft.com/deepzoom/2009")},configure:function(n,r){var o;return o=e.isPlainObject(n)?t(0,n):function(n,r){if(!r||!r.documentElement)throw new Error(e.getString("Errors.Xml"));var o,i,a,s,l,c=r.documentElement,u=c.localName||c.tagName,d=r.documentElement.namespaceURI,f=null,p=[];if("Image"==u)try{if(void 0===(s=c.getElementsByTagName("Size")[0])&&(s=c.getElementsByTagNameNS(d,"Size")[0]),f={Image:{xmlns:"http://schemas.microsoft.com/deepzoom/2008",Url:c.getAttribute("Url"),Format:c.getAttribute("Format"),DisplayRect:null,Overlap:parseInt(c.getAttribute("Overlap"),10),TileSize:parseInt(c.getAttribute("TileSize"),10),Size:{Height:parseInt(s.getAttribute("Height"),10),Width:parseInt(s.getAttribute("Width"),10)}}},!e.imageFormatSupported(f.Image.Format))throw new Error(e.getString("Errors.ImageFormat",f.Image.Format.toUpperCase()));for(void 0===(o=c.getElementsByTagName("DisplayRect"))&&(o=c.getElementsByTagNameNS(d,"DisplayRect")[0]),l=0;l<o.length;l++)void 0===(a=(i=o[l]).getElementsByTagName("Rect")[0])&&(a=i.getElementsByTagNameNS(d,"Rect")[0]),p.push({Rect:{X:parseInt(a.getAttribute("X"),10),Y:parseInt(a.getAttribute("Y"),10),Width:parseInt(a.getAttribute("Width"),10),Height:parseInt(a.getAttribute("Height"),10),MinLevel:parseInt(i.getAttribute("MinLevel"),10),MaxLevel:parseInt(i.getAttribute("MaxLevel"),10)}});return p.length&&(f.Image.DisplayRect=p),t(0,f)}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.Dzi"))}else{if("Collection"==u)throw new Error(e.getString("Errors.Dzc"));if("Error"==u){var h=c.getElementsByTagName("Message")[0].firstChild.nodeValue;throw new Error(h)}}throw new Error(e.getString("Errors.Dzi"))}(0,n),r&&!o.tilesUrl&&(o.tilesUrl=r.replace(/([^\/]+?)(\.(dzi|xml|js)?(\?[^\/]*)?)?\/?$/,"$1_files/"),-1!=r.search(/\.(dzi|xml|js)\?/)?o.queryParams=r.match(/\?.*/):o.queryParams=""),o},getTileUrl:function(e,t,n){return[this.tilesUrl,e,"/",t,"_",n,".",this.fileFormat,this.queryParams].join("")},tileExists:function(e,t,n){var r,o,i,a,s,l,c,u=this._levelRects[e];if(this.minLevel&&e<this.minLevel||this.maxLevel&&e>this.maxLevel)return!1;if(!u||!u.length)return!0;for(c=u.length-1;c>=0;c--)if(!(e<(r=u[c]).minLevel||e>r.maxLevel)&&(o=this.getLevelScale(e),i=r.x*o,a=r.y*o,s=i+r.width*o,l=a+r.height*o,i=Math.floor(i/this._tileWidth),a=Math.floor(a/this._tileWidth),s=Math.ceil(s/this._tileWidth),l=Math.ceil(l/this._tileWidth),i<=t&&t<s&&a<=n&&n<l))return!0;return!1}})}(OpenSeadragon),function(e){function t(e){var t=Array.isArray(e.profile)?e.profile[0]:e.profile,n=-1!==["http://library.stanford.edu/iiif/image-api/compliance.html#level0","http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0","http://iiif.io/api/image/2/level0.json","level0","https://iiif.io/api/image/3/level0.json"].indexOf(t),r=!1;return 2===e.version&&e.profile.length>1&&e.profile[1].supports&&(r=-1!==e.profile[1].supports.indexOf("sizeByW")),3===e.version&&e.extraFeatures&&(r=-1!==e.extraFeatures.indexOf("sizeByWh")),!n||r}function n(e){for(var t=[],n=0;n<e.sizes.length;n++)t.push({url:e["@id"]+"/full/"+e.sizes[n].width+","+(3===e.version?e.sizes[n].height:"")+"/0/default."+e.tileFormat,width:e.sizes[n].width,height:e.sizes[n].height});return t.sort((function(e,t){return e.width-t.width}))}function r(t,n,o){var i,a;if(3==t.nodeType&&o)(a=t.nodeValue.trim()).match(/^\d*$/)&&(a=Number(a)),n[o]?(e.isArray(n[o])||(n[o]=[n[o]]),n[o].push(a)):n[o]=a;else if(1==t.nodeType)for(i=0;i<t.childNodes.length;i++)r(t.childNodes[i],n,t.nodeName)}e.IIIFTileSource=function(r){if(e.extend(!0,this,r),!(this.height&&this.width&&this["@id"]))throw new Error("IIIF required parameters not provided.");if(r.tileSizePerScaleFactor={},this.tileFormat=this.tileFormat||"jpg",this.version=r.version,this.tile_width&&this.tile_height)r.tileWidth=this.tile_width,r.tileHeight=this.tile_height;else if(this.tile_width)r.tileSize=this.tile_width;else if(this.tile_height)r.tileSize=this.tile_height;else if(this.tiles)if(1==this.tiles.length)r.tileWidth=this.tiles[0].width,r.tileHeight=this.tiles[0].height||this.tiles[0].width,this.scale_factors=this.tiles[0].scaleFactors;else{this.scale_factors=[];for(var o=0;o<this.tiles.length;o++)for(var i=0;i<this.tiles[o].scaleFactors.length;i++){var a=this.tiles[o].scaleFactors[i];this.scale_factors.push(a),r.tileSizePerScaleFactor[a]={width:this.tiles[o].width,height:this.tiles[o].height||this.tiles[o].width}}}else if(t(r)){for(var s=Math.min(this.height,this.width),l=[256,512,1024],c=[],u=0;u<l.length;u++)l[u]<=s&&c.push(l[u]);c.length>0?r.tileSize=Math.max.apply(null,c):r.tileSize=s}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,r.levels=n(this),e.extend(!0,r,{width:r.levels[r.levels.length-1].width,height:r.levels[r.levels.length-1].height,tileSize:Math.max(r.height,r.width),tileOverlap:0,minLevel:0,maxLevel:r.levels.length-1}),this.levels=r.levels):e.console.error("Nothing in the info.json to construct image pyramids from");if(!r.maxLevel&&!this.emulateLegacyImagePyramid)if(this.scale_factors){var d=Math.max.apply(null,this.scale_factors);r.maxLevel=Math.round(Math.log(d)*Math.LOG2E)}else r.maxLevel=Number(Math.ceil(Math.log(Math.max(this.width,this.height),2)));e.TileSource.apply(this,[r])},e.extend(e.IIIFTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return!!(e.protocol&&"http://iiif.io/api/image"==e.protocol||e["@context"]&&("http://library.stanford.edu/iiif/image-api/1.1/context.json"==e["@context"]||"http://iiif.io/api/image/1/context.json"==e["@context"])||e.profile&&0===e.profile.indexOf("http://library.stanford.edu/iiif/image-api/compliance.html")||e.identifier&&e.width&&e.height||e.documentElement&&"info"==e.documentElement.tagName&&"http://library.stanford.edu/iiif/image-api/ns/"==e.documentElement.namespaceURI)},configure:function(t,n){if(e.isPlainObject(t)){if(t["@context"]){var o=t["@context"];if(Array.isArray(o))for(var i=0;i<o.length;i++)if("string"==typeof o[i]&&(/^http:\/\/iiif\.io\/api\/image\/[1-3]\/context\.json$/.test(o[i])||"http://library.stanford.edu/iiif/image-api/1.1/context.json"===o[i])){o=o[i];break}switch(o){case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":t.version=1;break;case"http://iiif.io/api/image/2/context.json":t.version=2;break;case"http://iiif.io/api/image/3/context.json":t.version=3;break;default:e.console.error("Data has a @context property which contains no known IIIF context URI.")}}else t["@context"]="http://iiif.io/api/image/1.0/context.json",t["@id"]=n.replace("/info.json",""),t.version=1;if(!t["@id"]&&t.id&&(t["@id"]=t.id),t.preferredFormats)for(var a=0;a<t.preferredFormats.length;a++)if(OpenSeadragon.imageFormatSupported(t.preferredFormats[a])){t.tileFormat=t.preferredFormats[a];break}return t}var s=function(t){if(!t||!t.documentElement)throw new Error(e.getString("Errors.Xml"));var n=t.documentElement,o=null;if("info"==n.tagName)try{return r(n,o={}),o}catch(t){throw t instanceof Error?t:new Error(e.getString("Errors.IIIF"))}throw new Error(e.getString("Errors.IIIF"))}(t);return s["@context"]="http://iiif.io/api/image/1.0/context.json",s["@id"]=n.replace("/info.xml",""),s.version=1,s},getTileWidth:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileWidth.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].width:this._tileWidth},getTileHeight:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileHeight.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].height:this._tileHeight},getLevelScale:function(t){if(this.emulateLegacyImagePyramid){var n=NaN;return this.levels.length>0&&t>=this.minLevel&&t<=this.maxLevel&&(n=this.levels[t].width/this.levels[this.maxLevel].width),n}return e.TileSource.prototype.getLevelScale.call(this,t)},getNumTiles:function(t){return this.emulateLegacyImagePyramid?this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0):e.TileSource.prototype.getNumTiles.call(this,t)},getTileAtPoint:function(t,n){return this.emulateLegacyImagePyramid?new e.Point(0,0):e.TileSource.prototype.getTileAtPoint.call(this,t,n)},getTileUrl:function(e,t,n){if(this.emulateLegacyImagePyramid){var r=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].url),r}var o,i,a,s,l,c,u,d,f,p,h,m,g,v=Math.pow(.5,this.maxLevel-e),y=Math.ceil(this.width*v),b=Math.ceil(this.height*v);return o=this.getTileWidth(e),i=this.getTileHeight(e),a=Math.ceil(o/v),s=Math.ceil(i/v),g=1===this.version?"native."+this.tileFormat:"default."+this.tileFormat,y<o&&b<i?(p=2===this.version&&y===this.width||3===this.version&&y===this.width&&b===this.height?"max":3===this.version?y+","+b:y+",",l="full"):(c=t*a,u=n*s,d=Math.min(a,this.width-c),f=Math.min(s,this.height-u),l=0===t&&0===n&&d===this.width&&f===this.height?"full":[c,u,d,f].join(","),h=Math.ceil(d*v),m=Math.ceil(f*v),p=2===this.version&&h===this.width||3===this.version&&h===this.width&&m===this.height?"max":3===this.version?h+","+m:h+","),[this["@id"],l,p,"0",g].join("/")},__testonly__:{canBeTiled:t,constructLevels:n}})}(OpenSeadragon),function(e){e.OsmTileSource=function(t,n,r,o,i){var a;(a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]}).width&&a.height||(a.width=65572864,a.height=65572864),a.tileSize||(a.tileSize=256,a.tileOverlap=0),a.tilesUrl||(a.tilesUrl="http://tile.openstreetmap.org/"),a.minLevel=8,e.TileSource.apply(this,[a])},e.extend(e.OsmTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"openstreetmaps"==e.type},configure:function(e,t){return e},getTileUrl:function(e,t,n){return this.tilesUrl+(e-8)+"/"+t+"/"+n+".png"}})}(OpenSeadragon),function(e){e.TmsTileSource=function(t,n,r,o,i){var a;a=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]};var s,l=256*Math.ceil(a.width/256),c=256*Math.ceil(a.height/256);s=l>c?l/256:c/256,a.maxLevel=Math.ceil(Math.log(s)/Math.log(2))-1,a.tileSize=256,a.width=l,a.height=c,e.TileSource.apply(this,[a])},e.extend(e.TmsTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"tiledmapservice"==e.type},configure:function(e,t){return e},getTileUrl:function(e,t,n){var r=this.getNumTiles(e).y-1;return this.tilesUrl+e+"/"+t+"/"+(r-n)+".png"}})}(OpenSeadragon),function(e){e.ZoomifyTileSource=function(e){e.tileSize=256;var t={x:e.width,y:e.height};for(e.imageSizes=[{x:e.width,y:e.height}],e.gridSize=[this._getGridSize(e.width,e.height,e.tileSize)];parseInt(t.x,10)>e.tileSize||parseInt(t.y,10)>e.tileSize;)t.x=Math.floor(t.x/2),t.y=Math.floor(t.y/2),e.imageSizes.push({x:t.x,y:t.y}),e.gridSize.push(this._getGridSize(t.x,t.y,e.tileSize));e.imageSizes.reverse(),e.gridSize.reverse(),e.minLevel=0,e.maxLevel=e.gridSize.length-1,OpenSeadragon.TileSource.apply(this,[e])},e.extend(e.ZoomifyTileSource.prototype,e.TileSource.prototype,{_getGridSize:function(e,t,n){return{x:Math.ceil(e/n),y:Math.ceil(t/n)}},_calculateAbsoluteTileNumber:function(e,t,n){for(var r=0,o={},i=0;i<e;i++)r+=(o=this.gridSize[i]).x*o.y;return r+((o=this.gridSize[e]).x*n+t)},supports:function(e,t){return e.type&&"zoomifytileservice"==e.type},configure:function(e,t){return e},getTileUrl:function(e,t,n){var r,o=this._calculateAbsoluteTileNumber(e,t,n);return r=Math.floor(o/256),this.tilesUrl+"TileGroup"+r+"/"+e+"-"+t+"-"+n+".jpg"}})}(OpenSeadragon),function(e){function t(e,t){return t.levels}e.LegacyTileSource=function(t){var n,r,o;e.isArray(t)&&(n={type:"legacy-image-pyramid",levels:t}),n.levels=function(t){var n,r,o=[];for(r=0;r<t.length;r++)(n=t[r]).height&&n.width&&n.url?o.push({url:n.url,width:Number(n.width),height:Number(n.height)}):e.console.error("Unsupported image format: %s",n.url?n.url:"<no URL>");return o.sort((function(e,t){return e.height-t.height}))}(n.levels),n.levels.length>0?(r=n.levels[n.levels.length-1].width,o=n.levels[n.levels.length-1].height):(r=0,o=0,e.console.error("No supported image formats found")),e.extend(!0,n,{width:r,height:o,tileSize:Math.max(o,r),tileOverlap:0,minLevel:0,maxLevel:n.levels.length>0?n.levels.length-1:0}),e.TileSource.apply(this,[n]),this.levels=n.levels},e.extend(e.LegacyTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"legacy-image-pyramid"==e.type||e.documentElement&&"legacy-image-pyramid"==e.documentElement.getAttribute("type")},configure:function(n,r){return e.isPlainObject(n)?t(0,n):function(n,r){if(!r||!r.documentElement)throw new Error(e.getString("Errors.Xml"));var o,i,a=r.documentElement,s=a.tagName,l=null,c=[];if("image"==s)try{for(l={type:a.getAttribute("type"),levels:[]},c=a.getElementsByTagName("level"),i=0;i<c.length;i++)o=c[i],l.levels.push({url:o.getAttribute("url"),width:parseInt(o.getAttribute("width"),10),height:parseInt(o.getAttribute("height"),10)});return t(0,l)}catch(e){throw e instanceof Error?e:new Error("Unknown error parsing Legacy Image Pyramid XML.")}else{if("collection"==s)throw new Error("Legacy Image Pyramid Collections not yet supported.");if("error"==s)throw new Error("Error: "+r)}throw new Error("Unknown element "+s)}(0,n)},getLevelScale:function(e){var t=NaN;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var r=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].url),r}})}(OpenSeadragon),function(e){e.ImageTileSource=function(t){t=e.extend({buildPyramid:!0,crossOriginPolicy:!1,ajaxWithCredentials:!1,useCanvas:!0},t),e.TileSource.apply(this,[t])},e.extend(e.ImageTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"image"===e.type},configure:function(e,t){return e},getImageInfo:function(t){var n=this._image=new Image,r=this;this.crossOriginPolicy&&(n.crossOrigin=this.crossOriginPolicy),this.ajaxWithCredentials&&(n.useCredentials=this.ajaxWithCredentials),e.addEvent(n,"load",(function(){r.width=Object.prototype.hasOwnProperty.call(n,"naturalWidth")?n.naturalWidth:n.width,r.height=Object.prototype.hasOwnProperty.call(n,"naturalHeight")?n.naturalHeight:n.height,r.aspectRatio=r.width/r.height,r.dimensions=new e.Point(r.width,r.height),r._tileWidth=r.width,r._tileHeight=r.height,r.tileOverlap=0,r.minLevel=0,r.levels=r._buildLevels(),r.maxLevel=r.levels.length-1,r.ready=!0,r.raiseEvent("ready",{tileSource:r})})),e.addEvent(n,"error",(function(){r.raiseEvent("open-failed",{message:"Error loading image at "+t,source:t})})),n.src=t},getLevelScale:function(e){var t=NaN;return e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){return this.getLevelScale(t)?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var r=null;return e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].url),r},getContext2D:function(e,t,n){var r=null;return e>=this.minLevel&&e<=this.maxLevel&&(r=this.levels[e].context2D),r},_buildLevels:function(){var t=[{url:this._image.src,width:Object.prototype.hasOwnProperty.call(this._image,"naturalWidth")?this._image.naturalWidth:this._image.width,height:Object.prototype.hasOwnProperty.call(this._image,"naturalHeight")?this._image.naturalHeight:this._image.height}];if(!this.buildPyramid||!e.supportsCanvas||!this.useCanvas)return delete this._image,t;var n=Object.prototype.hasOwnProperty.call(this._image,"naturalWidth")?this._image.naturalWidth:this._image.width,r=Object.prototype.hasOwnProperty.call(this._image,"naturalHeight")?this._image.naturalHeight:this._image.height,o=document.createElement("canvas"),i=o.getContext("2d");if(o.width=n,o.height=r,i.drawImage(this._image,0,0,n,r),t[0].context2D=i,delete this._image,e.isCanvasTainted(o))return t;for(;n>=2&&r>=2;){n=Math.floor(n/2),r=Math.floor(r/2);var a=document.createElement("canvas"),s=a.getContext("2d");a.width=n,a.height=r,s.drawImage(o,0,0,n,r),t.splice(0,0,{context2D:s,width:n,height:r}),o=a,i=s}return t}})}(OpenSeadragon),function(e){e.TileSourceCollection=function(t,n,r,o){e.console.error("TileSourceCollection is deprecated; use World instead")}}(OpenSeadragon),function(e){function t(n){e.requestAnimationFrame((function(){!function(n){var r;n.shouldFade&&(r=1-(e.now()-n.fadeBeginTime)/n.fadeLength,r=Math.min(1,r),r=Math.max(0,r),n.imgGroup&&e.setElementOpacity(n.imgGroup,r,!0),r>0&&t(n))}(n)}))}function n(t,n){t.element.disabled||(n>=e.ButtonState.GROUP&&t.currentState==e.ButtonState.REST&&(function(t){t.shouldFade=!1,t.imgGroup&&e.setElementOpacity(t.imgGroup,1,!0)}(t),t.currentState=e.ButtonState.GROUP),n>=e.ButtonState.HOVER&&t.currentState==e.ButtonState.GROUP&&(t.imgHover&&(t.imgHover.style.visibility=""),t.currentState=e.ButtonState.HOVER),n>=e.ButtonState.DOWN&&t.currentState==e.ButtonState.HOVER&&(t.imgDown&&(t.imgDown.style.visibility=""),t.currentState=e.ButtonState.DOWN))}function r(n,r){n.element.disabled||(r<=e.ButtonState.HOVER&&n.currentState==e.ButtonState.DOWN&&(n.imgDown&&(n.imgDown.style.visibility="hidden"),n.currentState=e.ButtonState.HOVER),r<=e.ButtonState.GROUP&&n.currentState==e.ButtonState.HOVER&&(n.imgHover&&(n.imgHover.style.visibility="hidden"),n.currentState=e.ButtonState.GROUP),r<=e.ButtonState.REST&&n.currentState==e.ButtonState.GROUP&&(function(n){n.shouldFade=!0,n.fadeBeginTime=e.now()+n.fadeDelay,window.setTimeout((function(){t(n)}),n.fadeDelay)}(n),n.currentState=e.ButtonState.REST))}e.ButtonState={REST:0,GROUP:1,HOVER:2,DOWN:3},e.Button=function(t){var o=this;e.EventSource.call(this),e.extend(!0,this,{tooltip:null,srcRest:null,srcGroup:null,srcHover:null,srcDown:null,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,fadeDelay:0,fadeLength:2e3,onPress:null,onRelease:null,onClick:null,onEnter:null,onExit:null,onFocus:null,onBlur:null},t),this.element=t.element||e.makeNeutralElement("div"),t.element||(this.imgRest=e.makeTransparentImage(this.srcRest),this.imgGroup=e.makeTransparentImage(this.srcGroup),this.imgHover=e.makeTransparentImage(this.srcHover),this.imgDown=e.makeTransparentImage(this.srcDown),this.imgRest.alt=this.imgGroup.alt=this.imgHover.alt=this.imgDown.alt=this.tooltip,this.element.style.position="relative",e.setElementTouchActionNone(this.element),this.imgGroup.style.position=this.imgHover.style.position=this.imgDown.style.position="absolute",this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top="0px",this.imgGroup.style.left=this.imgHover.style.left=this.imgDown.style.left="0px",this.imgHover.style.visibility=this.imgDown.style.visibility="hidden",e.Browser.vendor==e.BROWSERS.FIREFOX&&e.Browser.version<3&&(this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top=""),this.element.appendChild(this.imgRest),this.element.appendChild(this.imgGroup),this.element.appendChild(this.imgHover),this.element.appendChild(this.imgDown)),this.addHandler("press",this.onPress),this.addHandler("release",this.onRelease),this.addHandler("click",this.onClick),this.addHandler("enter",this.onEnter),this.addHandler("exit",this.onExit),this.addHandler("focus",this.onFocus),this.addHandler("blur",this.onBlur),this.currentState=e.ButtonState.GROUP,this.fadeBeginTime=null,this.shouldFade=!1,this.element.style.display="inline-block",this.element.style.position="relative",this.element.title=this.tooltip,this.tracker=new e.MouseTracker({element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(t){t.insideElementPressed?(n(o,e.ButtonState.DOWN),o.raiseEvent("enter",{originalEvent:t.originalEvent})):t.buttonDownAny||n(o,e.ButtonState.HOVER)},focusHandler:function(e){this.enterHandler(e),o.raiseEvent("focus",{originalEvent:e.originalEvent})},exitHandler:function(t){r(o,e.ButtonState.GROUP),t.insideElementPressed&&o.raiseEvent("exit",{originalEvent:t.originalEvent})},blurHandler:function(e){this.exitHandler(e),o.raiseEvent("blur",{originalEvent:e.originalEvent})},pressHandler:function(t){n(o,e.ButtonState.DOWN),o.raiseEvent("press",{originalEvent:t.originalEvent})},releaseHandler:function(t){t.insideElementPressed&&t.insideElementReleased?(r(o,e.ButtonState.HOVER),o.raiseEvent("release",{originalEvent:t.originalEvent})):t.insideElementPressed?r(o,e.ButtonState.GROUP):n(o,e.ButtonState.HOVER)},clickHandler:function(e){e.quick&&o.raiseEvent("click",{originalEvent:e.originalEvent})},keyHandler:function(e){return 13!==e.keyCode||(o.raiseEvent("click",{originalEvent:e.originalEvent}),o.raiseEvent("release",{originalEvent:e.originalEvent}),!1)}}),r(this,e.ButtonState.REST)},e.extend(e.Button.prototype,e.EventSource.prototype,{notifyGroupEnter:function(){n(this,e.ButtonState.GROUP)},notifyGroupExit:function(){r(this,e.ButtonState.REST)},disable:function(){this.notifyGroupExit(),this.element.disabled=!0,e.setElementOpacity(this.element,.2,!0)},enable:function(){this.element.disabled=!1,e.setElementOpacity(this.element,1,!0),this.notifyGroupEnter()}})}(OpenSeadragon),function(e){e.ButtonGroup=function(t){e.extend(!0,this,{buttons:[],clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,labelText:""},t);var n,r=this.buttons.concat([]),o=this;if(this.element=t.element||e.makeNeutralElement("div"),!t.group)for(this.element.style.display="inline-block",n=0;n<r.length;n++)this.element.appendChild(r[n].element);e.setElementTouchActionNone(this.element),this.tracker=new e.MouseTracker({element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(e){var t;for(t=0;t<o.buttons.length;t++)o.buttons[t].notifyGroupEnter()},exitHandler:function(e){var t;if(!e.insideElementPressed)for(t=0;t<o.buttons.length;t++)o.buttons[t].notifyGroupExit()}})},e.ButtonGroup.prototype={emulateEnter:function(){this.tracker.enterHandler({eventSource:this.tracker})},emulateExit:function(){this.tracker.exitHandler({eventSource:this.tracker})}}}(OpenSeadragon),function(e){e.Rect=function(t,n,r,o,i){var a,s;this.x="number"==typeof t?t:0,this.y="number"==typeof n?n:0,this.width="number"==typeof r?r:0,this.height="number"==typeof o?o:0,this.degrees="number"==typeof i?i:0,this.degrees=e.positiveModulo(this.degrees,360),this.degrees>=270?(a=this.getTopRight(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=270):this.degrees>=180?(a=this.getBottomRight(),this.x=a.x,this.y=a.y,this.degrees-=180):this.degrees>=90&&(a=this.getBottomLeft(),this.x=a.x,this.y=a.y,s=this.height,this.height=this.width,this.width=s,this.degrees-=90)},e.Rect.fromSummits=function(t,n,r){var o=t.distanceTo(n),i=t.distanceTo(r),a=n.minus(t),s=Math.atan(a.y/a.x);return a.x<0?s+=Math.PI:a.y<0&&(s+=2*Math.PI),new e.Rect(t.x,t.y,o,i,s/Math.PI*180)},e.Rect.prototype={clone:function(){return new e.Rect(this.x,this.y,this.width,this.height,this.degrees)},getAspectRatio:function(){return this.width/this.height},getTopLeft:function(){return new e.Point(this.x,this.y)},getBottomRight:function(){return new e.Point(this.x+this.width,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getTopRight:function(){return new e.Point(this.x+this.width,this.y).rotate(this.degrees,this.getTopLeft())},getBottomLeft:function(){return new e.Point(this.x,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getCenter:function(){return new e.Point(this.x+this.width/2,this.y+this.height/2).rotate(this.degrees,this.getTopLeft())},getSize:function(){return new e.Point(this.width,this.height)},equals:function(t){return t instanceof e.Rect&&this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.degrees===t.degrees},times:function(t){return new e.Rect(this.x*t,this.y*t,this.width*t,this.height*t,this.degrees)},translate:function(t){return new e.Rect(this.x+t.x,this.y+t.y,this.width,this.height,this.degrees)},union:function(t){var n=this.getBoundingBox(),r=t.getBoundingBox(),o=Math.min(n.x,r.x),i=Math.min(n.y,r.y),a=Math.max(n.x+n.width,r.x+r.width),s=Math.max(n.y+n.height,r.y+r.height);return new e.Rect(o,i,a-o,s-i)},intersection:function(t){var n=1e-10,r=[],o=this.getTopLeft();t.containsPoint(o,n)&&r.push(o);var i=this.getTopRight();t.containsPoint(i,n)&&r.push(i);var a=this.getBottomLeft();t.containsPoint(a,n)&&r.push(a);var s=this.getBottomRight();t.containsPoint(s,n)&&r.push(s);var l=t.getTopLeft();this.containsPoint(l,n)&&r.push(l);var c=t.getTopRight();this.containsPoint(c,n)&&r.push(c);var u=t.getBottomLeft();this.containsPoint(u,n)&&r.push(u);var d=t.getBottomRight();this.containsPoint(d,n)&&r.push(d);for(var f=this._getSegments(),p=t._getSegments(),h=0;h<f.length;h++)for(var m=f[h],g=0;g<p.length;g++){var v=p[g],y=b(m[0],m[1],v[0],v[1]);y&&r.push(y)}function b(t,r,o,i){var a=r.minus(t),s=i.minus(o),l=-s.x*a.y+a.x*s.y;if(0===l)return null;var c=(a.x*(t.y-o.y)-a.y*(t.x-o.x))/l,u=(s.x*(t.y-o.y)-s.y*(t.x-o.x))/l;return-1e-10<=c&&c<=1-n&&-1e-10<=u&&u<=1-n?new e.Point(t.x+u*a.x,t.y+u*a.y):null}if(0===r.length)return null;for(var w=r[0].x,E=r[0].x,x=r[0].y,O=r[0].y,S=1;S<r.length;S++){var A=r[S];A.x<w&&(w=A.x),A.x>E&&(E=A.x),A.y<x&&(x=A.y),A.y>O&&(O=A.y)}return new e.Rect(w,x,E-w,O-x)},_getSegments:function(){var e=this.getTopLeft(),t=this.getTopRight(),n=this.getBottomLeft(),r=this.getBottomRight();return[[e,t],[t,r],[r,n],[n,e]]},rotate:function(t,n){if(0===(t=e.positiveModulo(t,360)))return this.clone();n=n||this.getCenter();var r=this.getTopLeft().rotate(t,n),o=this.getTopRight().rotate(t,n).minus(r);o=o.apply((function(e){return Math.abs(e)<1e-15?0:e}));var i=Math.atan(o.y/o.x);return o.x<0?i+=Math.PI:o.y<0&&(i+=2*Math.PI),new e.Rect(r.x,r.y,this.width,this.height,i/Math.PI*180)},getBoundingBox:function(){if(0===this.degrees)return this.clone();var t=this.getTopLeft(),n=this.getTopRight(),r=this.getBottomLeft(),o=this.getBottomRight(),i=Math.min(t.x,n.x,r.x,o.x),a=Math.max(t.x,n.x,r.x,o.x),s=Math.min(t.y,n.y,r.y,o.y),l=Math.max(t.y,n.y,r.y,o.y);return new e.Rect(i,s,a-i,l-s)},getIntegerBoundingBox:function(){var t=this.getBoundingBox(),n=Math.floor(t.x),r=Math.floor(t.y),o=Math.ceil(t.width+t.x-n),i=Math.ceil(t.height+t.y-r);return new e.Rect(n,r,o,i)},containsPoint:function(e,t){t=t||0;var n=this.getTopLeft(),r=this.getTopRight(),o=this.getBottomLeft(),i=r.minus(n),a=o.minus(n);return(e.x-n.x)*i.x+(e.y-n.y)*i.y>=-t&&(e.x-r.x)*i.x+(e.y-r.y)*i.y<=t&&(e.x-n.x)*a.x+(e.y-n.y)*a.y>=-t&&(e.x-o.x)*a.x+(e.y-o.y)*a.y<=t},toString:function(){return"["+Math.round(100*this.x)/100+", "+Math.round(100*this.y)/100+", "+Math.round(100*this.width)/100+"x"+Math.round(100*this.height)/100+", "+Math.round(100*this.degrees)/100+"deg]"}}}(OpenSeadragon),function(e){var t={};function n(t){var n=Number(this.element.style.marginLeft.replace("px","")),r=Number(this.element.style.marginTop.replace("px","")),i=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);return this.dragging=!0,this.element&&("horizontal"==this.scroll?-t.delta.x>0?n>-(i-s.x)&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,s.x,n+2*t.delta.x)):-t.delta.x<0&&n<0&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,s.x,n+2*t.delta.x)):-t.delta.y>0?r>-(a-s.y)&&(this.element.style.marginTop=r+2*t.delta.y+"px",o(this,s.y,r+2*t.delta.y)):-t.delta.y<0&&r<0&&(this.element.style.marginTop=r+2*t.delta.y+"px",o(this,s.y,r+2*t.delta.y))),!1}function r(t){var n=Number(this.element.style.marginLeft.replace("px","")),r=Number(this.element.style.marginTop.replace("px","")),i=Number(this.element.style.width.replace("px","")),a=Number(this.element.style.height.replace("px","")),s=e.getElementSize(this.viewer.canvas);return this.element&&("horizontal"==this.scroll?t.scroll>0?n>-(i-s.x)&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,s.x,n-60*t.scroll)):t.scroll<0&&n<0&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,s.x,n-60*t.scroll)):t.scroll<0?r>s.y-a&&(this.element.style.marginTop=r+60*t.scroll+"px",o(this,s.y,r+60*t.scroll)):t.scroll>0&&r<0&&(this.element.style.marginTop=r+60*t.scroll+"px",o(this,s.y,r+60*t.scroll))),!1}function o(t,n,r){var o,i,a,s,l,c,u;for(o="horizontal"==t.scroll?t.panelWidth:t.panelHeight,i=Math.ceil(n/o)+5,c=i=(i=(a=Math.ceil((Math.abs(r)+n)/o)+1)-i)<0?0:i;c<a&&c<t.panels.length;c++)if(!(u=t.panels[c]).activePanel){var d,f=t.viewer.tileSources[c];d=f.referenceStripThumbnailUrl?{type:"image",url:f.referenceStripThumbnailUrl}:f,(s=new e.Viewer({id:u.id,tileSources:[d],element:u,navigatorSizeRatio:t.sizeRatio,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,loadTilesWithAjax:t.viewer.loadTilesWithAjax,ajaxHeaders:t.viewer.ajaxHeaders,useCanvas:t.useCanvas})).displayRegion=e.makeNeutralElement("div"),s.displayRegion.id=u.id+"-displayregion",s.displayRegion.className="displayregion",(l=s.displayRegion.style).position="relative",l.top="0px",l.left="0px",l.fontSize="0px",l.overflow="hidden",l.float="left",l.cssFloat="left",l.styleFloat="left",l.zIndex=999999999,l.cursor="default",l.width=t.panelWidth-4+"px",l.height=t.panelHeight-4+"px",s.displayRegion.innerTracker=new e.MouseTracker({element:s.displayRegion,startDisabled:!0}),u.getElementsByTagName("div")[0].appendChild(s.displayRegion),t.miniViewers[u.id]=s,u.activePanel=!0}}function i(e){var t=e.eventSource.element;return"horizontal"==this.scroll?t.style.marginBottom="0px":t.style.marginLeft="0px",!1}function a(t){var n=t.eventSource.element;return"horizontal"==this.scroll?n.style.marginBottom="-"+e.getElementSize(n).y/2+"px":n.style.marginLeft="-"+e.getElementSize(n).x/2+"px",!1}function s(e){if(e.preventDefaultAction||e.ctrl||e.alt||e.meta)return!0;switch(e.keyCode){case 38:case 39:return r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),!1;case 40:case 37:return r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),!1;default:return!0}}function l(e){if(e.preventDefaultAction||e.ctrl||e.alt||e.meta)return!0;switch(e.keyCode){case 61:case 48:case 119:case 87:case 100:return r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),!1;case 45:case 115:case 83:case 97:return r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),!1;default:return!0}}e.ReferenceStrip=function(c){var u,d,f,p=c.viewer,h=e.getElementSize(p.element);for(c.id||(c.id="referencestrip-"+e.now(),this.element=e.makeNeutralElement("div"),this.element.id=c.id,this.element.className="referencestrip"),c=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.referenceStripSizeRatio,position:e.DEFAULT_SETTINGS.referenceStripPosition,scroll:e.DEFAULT_SETTINGS.referenceStripScroll,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold},c,{element:this.element,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1}),e.extend(this,c),t[this.id]={animating:!1},this.minPixelRatio=this.viewer.minPixelRatio,(d=this.element.style).marginTop="0px",d.marginRight="0px",d.marginBottom="0px",d.marginLeft="0px",d.left="0px",d.bottom="0px",d.border="0px",d.background="#000",d.position="relative",e.setElementTouchActionNone(this.element),e.setElementOpacity(this.element,.8),this.viewer=p,this.innerTracker=new e.MouseTracker({element:this.element,dragHandler:e.delegate(this,n),scrollHandler:e.delegate(this,r),enterHandler:e.delegate(this,i),exitHandler:e.delegate(this,a),keyDownHandler:e.delegate(this,s),keyHandler:e.delegate(this,l)}),c.width&&c.height?(this.element.style.width=c.width+"px",this.element.style.height=c.height+"px",p.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):"horizontal"==c.scroll?(this.element.style.width=h.x*c.sizeRatio*p.tileSources.length+12*p.tileSources.length+"px",this.element.style.height=h.y*c.sizeRatio+"px",p.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):(this.element.style.height=h.y*c.sizeRatio*p.tileSources.length+12*p.tileSources.length+"px",this.element.style.width=h.x*c.sizeRatio+"px",p.addControl(this.element,{anchor:e.ControlAnchor.TOP_LEFT})),this.panelWidth=h.x*this.sizeRatio+8,this.panelHeight=h.y*this.sizeRatio+8,this.panels=[],this.miniViewers={},f=0;f<p.tileSources.length;f++)(u=e.makeNeutralElement("div")).id=this.element.id+"-"+f,u.style.width=this.panelWidth+"px",u.style.height=this.panelHeight+"px",u.style.display="inline",u.style.float="left",u.style.cssFloat="left",u.style.styleFloat="left",u.style.padding="2px",e.setElementTouchActionNone(u),u.innerTracker=new e.MouseTracker({element:u,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,pressHandler:function(t){t.eventSource.dragging=e.now()},releaseHandler:function(t){var n=t.eventSource,r=n.element.id,o=Number(r.split("-")[2]),i=e.now();t.insideElementPressed&&t.insideElementReleased&&n.dragging&&i-n.dragging<n.clickTimeThreshold&&(n.dragging=null,p.goToPage(o))}}),this.element.appendChild(u),u.activePanel=!1,this.panels.push(u);o(this,"vertical"==this.scroll?h.y:h.x,0),this.setFocus(0)},e.extend(e.ReferenceStrip.prototype,e.EventSource.prototype,e.Viewer.prototype,{setFocus:function(t){var n,r=this.element.querySelector("#"+this.element.id+"-"+t),a=e.getElementSize(this.viewer.canvas),s=Number(this.element.style.width.replace("px","")),l=Number(this.element.style.height.replace("px","")),c=-Number(this.element.style.marginLeft.replace("px","")),u=-Number(this.element.style.marginTop.replace("px",""));this.currentSelected!==r&&(this.currentSelected&&(this.currentSelected.style.background="#000"),this.currentSelected=r,this.currentSelected.style.background="#999","horizontal"==this.scroll?(n=Number(t)*(this.panelWidth+3))>c+a.x-this.panelWidth?(n=Math.min(n,s-a.x),this.element.style.marginLeft=-n+"px",o(this,a.x,-n)):n<c&&(n=Math.max(0,n-a.x/2),this.element.style.marginLeft=-n+"px",o(this,a.x,-n)):(n=Number(t)*(this.panelHeight+3))>u+a.y-this.panelHeight?(n=Math.min(n,l-a.y),this.element.style.marginTop=-n+"px",o(this,a.y,-n)):n<u&&(n=Math.max(0,n-a.y/2),this.element.style.marginTop=-n+"px",o(this,a.y,-n)),this.currentPage=t,i.call(this,{eventSource:this.innerTracker}))},update:function(){return!!t[this.id].animating&&(e.console.log("image reference strip update"),!0)},destroy:function(){if(this.miniViewers)for(var e in this.miniViewers)this.miniViewers[e].destroy();this.element&&this.element.parentNode.removeChild(this.element)}})}(OpenSeadragon),function(e){e.DisplayRect=function(t,n,r,o,i,a){e.Rect.apply(this,[t,n,r,o]),this.minLevel=i,this.maxLevel=a},e.extend(e.DisplayRect.prototype,e.Rect.prototype)}(OpenSeadragon),function(e){e.Spring=function(t){var n=arguments;"object"!=typeof t&&(t={initial:n.length&&"number"==typeof n[0]?n[0]:void 0,springStiffness:n.length>1?n[1].springStiffness:5,animationTime:n.length>1?n[1].animationTime:1.5}),e.console.assert("number"==typeof t.springStiffness&&0!==t.springStiffness,"[OpenSeadragon.Spring] options.springStiffness must be a non-zero number"),e.console.assert("number"==typeof t.animationTime&&t.animationTime>=0,"[OpenSeadragon.Spring] options.animationTime must be a number greater than or equal to 0"),t.exponential&&(this._exponential=!0,delete t.exponential),e.extend(!0,this,t),this.current={value:"number"==typeof this.initial?this.initial:this._exponential?0:1,time:e.now()},e.console.assert(!this._exponential||0!==this.current.value,"[OpenSeadragon.Spring] value must be non-zero for exponential springs"),this.start={value:this.current.value,time:this.current.time},this.target={value:this.current.value,time:this.current.time},this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},e.Spring.prototype={resetTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.resetTo] target must be non-zero for exponential springs"),this.start.value=this.target.value=this.current.value=t,this.start.time=this.target.time=this.current.time=e.now(),this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},springTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.springTo] target must be non-zero for exponential springs"),this.start.value=this.current.value,this.start.time=this.current.time,this.target.value=t,this.target.time=this.start.time+1e3*this.animationTime,this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},shiftBy:function(t){this.start.value+=t,this.target.value+=t,this._exponential&&(e.console.assert(0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.shiftBy] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},setExponential:function(t){this._exponential=t,this._exponential&&(e.console.assert(0!==this.current.value&&0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.setExponential] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},update:function(){var t,n;this.current.time=e.now(),this._exponential?(t=this.start._logValue,n=this.target._logValue):(t=this.start.value,n=this.target.value);var r,o,i=this.current.time>=this.target.time?n:t+(n-t)*(r=this.springStiffness,o=(this.current.time-this.start.time)/(this.target.time-this.start.time),(1-Math.exp(r*-o))/(1-Math.exp(-r))),a=this.current.value;return this._exponential?this.current.value=Math.exp(i):this.current.value=i,a!=this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}}}(OpenSeadragon),function(e){function t(t){e.extend(!0,this,{timeout:e.DEFAULT_SETTINGS.timeout,jobId:null},t),this.image=null}t.prototype={errorMsg:null,start:function(){var t=this,n=this.abort;this.image=new Image,this.image.onload=function(){t.finish(!0)},this.image.onabort=this.image.onerror=function(){t.errorMsg="Image load aborted",t.finish(!1)},this.jobId=window.setTimeout((function(){t.errorMsg="Image load exceeded timeout ("+t.timeout+" ms)",t.finish(!1)}),this.timeout),this.loadWithAjax?(this.request=e.makeAjaxRequest({url:this.src,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,responseType:"arraybuffer",success:function(e){var n;try{n=new window.Blob([e.response])}catch(t){var r=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if("TypeError"===t.name&&r){var o=new r;o.append(e.response),n=o.getBlob()}}0===n.size&&(t.errorMsg="Empty image response.",t.finish(!1));var i=(window.URL||window.webkitURL).createObjectURL(n);t.image.src=i},error:function(e){t.errorMsg="Image load aborted - XHR error",t.finish(!1)}}),this.abort=function(){t.request.abort(),"function"==typeof n&&n()}):(!1!==this.crossOriginPolicy&&(this.image.crossOrigin=this.crossOriginPolicy),this.image.src=this.src)},finish:function(e){this.image.onload=this.image.onerror=this.image.onabort=null,e||(this.image=null),this.jobId&&window.clearTimeout(this.jobId),this.callback(this)}},e.ImageLoader=function(t){e.extend(!0,this,{jobLimit:e.DEFAULT_SETTINGS.imageLoaderLimit,timeout:e.DEFAULT_SETTINGS.timeout,jobQueue:[],jobsInProgress:0},t)},e.ImageLoader.prototype={addJob:function(e){var n=this,r=new t({src:e.src,loadWithAjax:e.loadWithAjax,ajaxHeaders:e.loadWithAjax?e.ajaxHeaders:null,crossOriginPolicy:e.crossOriginPolicy,ajaxWithCredentials:e.ajaxWithCredentials,callback:function(t){!function(e,t,n){e.jobsInProgress--,(!e.jobLimit||e.jobsInProgress<e.jobLimit)&&e.jobQueue.length>0&&(e.jobQueue.shift().start(),e.jobsInProgress++),n(t.image,t.errorMsg,t.request)}(n,t,e.callback)},abort:e.abort,timeout:this.timeout});!this.jobLimit||this.jobsInProgress<this.jobLimit?(r.start(),this.jobsInProgress++):this.jobQueue.push(r)},clear:function(){for(var e=0;e<this.jobQueue.length;e++){var t=this.jobQueue[e];"function"==typeof t.abort&&t.abort()}this.jobQueue=[]}}}(OpenSeadragon),function(e){e.Tile=function(e,t,n,r,o,i,a,s,l,c){this.level=e,this.x=t,this.y=n,this.bounds=r,this.sourceBounds=c,this.exists=o,this.url=i,this.context2D=a,this.loadWithAjax=s,this.ajaxHeaders=l,this.ajaxHeaders?this.cacheKey=this.url+"+"+JSON.stringify(this.ajaxHeaders):this.cacheKey=this.url,this.loaded=!1,this.loading=!1,this.element=null,this.imgElement=null,this.image=null,this.style=null,this.position=null,this.size=null,this.blendStart=null,this.opacity=null,this.squaredDistance=null,this.visibility=null,this.beingDrawn=!1,this.lastTouchTime=0,this.isRightMost=!1,this.isBottomMost=!1},e.Tile.prototype={toString:function(){return this.level+"/"+this.x+"_"+this.y},_hasTransparencyChannel:function(){return!!this.context2D||this.url.match(".png")},drawHTML:function(t){this.cacheImageRecord?this.loaded?(this.element||(this.element=e.makeNeutralElement("div"),this.imgElement=this.cacheImageRecord.getImage().cloneNode(),this.imgElement.style.msInterpolationMode="nearest-neighbor",this.imgElement.style.width="100%",this.imgElement.style.height="100%",this.style=this.element.style,this.style.position="absolute"),this.element.parentNode!=t&&t.appendChild(this.element),this.imgElement.parentNode!=this.element&&this.element.appendChild(this.imgElement),this.style.top=this.position.y+"px",this.style.left=this.position.x+"px",this.style.height=this.size.y+"px",this.style.width=this.size.x+"px",e.setElementOpacity(this.element,this.opacity)):e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString()):e.console.warn("[Tile.drawHTML] attempting to draw tile %s when it's not cached",this.toString())},drawCanvas:function(t,n,r,o){var i,a,s,l=this.position.times(e.pixelDensityRatio),c=this.size.times(e.pixelDensityRatio);this.context2D||this.cacheImageRecord?(i=this.context2D||this.cacheImageRecord.getRenderedContext(),this.loaded&&i?(t.save(),t.globalAlpha=this.opacity,"number"==typeof r&&1!==r&&(l=l.times(r),c=c.times(r)),o instanceof e.Point&&(l=l.plus(o)),1===t.globalAlpha&&this._hasTransparencyChannel()&&t.clearRect(l.x,l.y,c.x,c.y),n({context:t,tile:this,rendered:i}),this.sourceBounds?(a=Math.min(this.sourceBounds.width,i.canvas.width),s=Math.min(this.sourceBounds.height,i.canvas.height)):(a=i.canvas.width,s=i.canvas.height),t.drawImage(i.canvas,0,0,a,s,l.x,l.y,c.x,c.y),t.restore()):e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString())):e.console.warn("[Tile.drawCanvas] attempting to draw tile %s when it's not cached",this.toString())},getScaleForEdgeSmoothing:function(){var t;if(this.cacheImageRecord)t=this.cacheImageRecord.getRenderedContext();else{if(!this.context2D)return e.console.warn("[Tile.drawCanvas] attempting to get tile scale %s when tile's not cached",this.toString()),1;t=this.context2D}return t.canvas.width/(this.size.x*e.pixelDensityRatio)},getTranslationForEdgeSmoothing:function(t,n,r){var o=Math.max(1,Math.ceil((r.x-n.x)/2)),i=Math.max(1,Math.ceil((r.y-n.y)/2));return new e.Point(o,i).minus(this.position.times(e.pixelDensityRatio).times(t||1).apply((function(e){return e%1})))},unload:function(){this.imgElement&&this.imgElement.parentNode&&this.imgElement.parentNode.removeChild(this.imgElement),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.imgElement=null,this.loaded=!1,this.loading=!1}}}(OpenSeadragon),function(e){e.OverlayPlacement=e.Placement,e.OverlayRotationMode=e.freezeObject({NO_ROTATION:1,EXACT:2,BOUNDING_BOX:3}),e.Overlay=function(t,n,r){var o;o=e.isPlainObject(t)?t:{element:t,location:n,placement:r},this.element=o.element,this.style=o.element.style,this._init(o)},e.Overlay.prototype={_init:function(t){this.location=t.location,this.placement=void 0===t.placement?e.Placement.TOP_LEFT:t.placement,this.onDraw=t.onDraw,this.checkResize=void 0===t.checkResize||t.checkResize,this.width=void 0===t.width?null:t.width,this.height=void 0===t.height?null:t.height,this.rotationMode=t.rotationMode||e.OverlayRotationMode.EXACT,this.location instanceof e.Rect&&(this.width=this.location.width,this.height=this.location.height,this.location=this.location.getTopLeft(),this.placement=e.Placement.TOP_LEFT),this.scales=null!==this.width&&null!==this.height,this.bounds=new e.Rect(this.location.x,this.location.y,this.width,this.height),this.position=this.location},adjust:function(t,n){var r=e.Placement.properties[this.placement];r&&(r.isHorizontallyCentered?t.x-=n.x/2:r.isRight&&(t.x-=n.x),r.isVerticallyCentered?t.y-=n.y/2:r.isBottom&&(t.y-=n.y))},destroy:function(){var t=this.element,n=this.style;t.parentNode&&(t.parentNode.removeChild(t),t.prevElementParent&&(n.display="none",document.body.appendChild(t))),this.onDraw=null,n.top="",n.left="",n.position="",null!==this.width&&(n.width=""),null!==this.height&&(n.height="");var r=e.getCssPropertyWithVendorPrefix("transformOrigin"),o=e.getCssPropertyWithVendorPrefix("transform");r&&o&&(n[r]="",n[o]="")},drawHTML:function(t,n){var r=this.element;r.parentNode!==t&&(r.prevElementParent=r.parentNode,r.prevNextSibling=r.nextSibling,t.appendChild(r),this.style.position="absolute",this.size=e.getElementSize(r));var o=this._getOverlayPositionAndSize(n),i=o.position,a=this.size=o.size,s=o.rotate;if(this.onDraw)this.onDraw(i,a,this.element);else{var l=this.style;l.left=i.x+"px",l.top=i.y+"px",null!==this.width&&(l.width=a.x+"px"),null!==this.height&&(l.height=a.y+"px");var c=e.getCssPropertyWithVendorPrefix("transformOrigin"),u=e.getCssPropertyWithVendorPrefix("transform");c&&u&&(s?(l[c]=this._getTransformOrigin(),l[u]="rotate("+s+"deg)"):(l[c]="",l[u]="")),"none"!==l.display&&(l.display="block")}},_getOverlayPositionAndSize:function(t){var n=t.pixelFromPoint(this.location,!0),r=this._getSizeInPixels(t);this.adjust(n,r);var o=0;if(t.degrees&&this.rotationMode!==e.OverlayRotationMode.NO_ROTATION)if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX&&null!==this.width&&null!==this.height){var i=new e.Rect(n.x,n.y,r.x,r.y),a=this._getBoundingBox(i,t.degrees);n=a.getTopLeft(),r=a.getSize()}else o=t.degrees;return{position:n,size:r,rotate:o}},_getSizeInPixels:function(t){var n=this.size.x,r=this.size.y;if(null!==this.width||null!==this.height){var o=t.deltaPixelsFromPointsNoRotate(new e.Point(this.width||0,this.height||0),!0);null!==this.width&&(n=o.x),null!==this.height&&(r=o.y)}if(this.checkResize&&(null===this.width||null===this.height)){var i=this.size=e.getElementSize(this.element);null===this.width&&(n=i.x),null===this.height&&(r=i.y)}return new e.Point(n,r)},_getBoundingBox:function(e,t){var n=this._getPlacementPoint(e);return e.rotate(t,n).getBoundingBox()},_getPlacementPoint:function(t){var n=new e.Point(t.x,t.y),r=e.Placement.properties[this.placement];return r&&(r.isHorizontallyCentered?n.x+=t.width/2:r.isRight&&(n.x+=t.width),r.isVerticallyCentered?n.y+=t.height/2:r.isBottom&&(n.y+=t.height)),n},_getTransformOrigin:function(){var t="",n=e.Placement.properties[this.placement];return n?(n.isLeft?t="left":n.isRight&&(t="right"),n.isTop?t+=" top":n.isBottom&&(t+=" bottom"),t):t},update:function(t,n){var r=e.isPlainObject(t)?t:{location:t,placement:n};this._init({location:r.location||this.location,placement:void 0!==r.placement?r.placement:this.placement,onDraw:r.onDraw||this.onDraw,checkResize:r.checkResize||this.checkResize,width:void 0!==r.width?r.width:this.width,height:void 0!==r.height?r.height:this.height,rotationMode:r.rotationMode||this.rotationMode})},getBounds:function(t){e.console.assert(t,"A viewport must now be passed to Overlay.getBounds.");var n=this.width,r=this.height;if(null===n||null===r){var o=t.deltaPointsFromPixelsNoRotate(this.size,!0);null===n&&(n=o.x),null===r&&(r=o.y)}var i=this.location.clone();return this.adjust(i,new e.Point(n,r)),this._adjustBoundsForRotation(t,new e.Rect(i.x,i.y,n,r))},_adjustBoundsForRotation:function(t,n){if(!t||0===t.degrees||this.rotationMode===e.OverlayRotationMode.EXACT)return n;if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX){if(null===this.width||null===this.height)return n;var r=this._getOverlayPositionAndSize(t);return t.viewerElementToViewportRectangle(new e.Rect(r.position.x,r.position.y,r.size.x,r.size.y))}return n.rotate(-t.degrees,this._getPlacementPoint(n))}}}(OpenSeadragon),function(e){e.Drawer=function(t){e.console.assert(t.viewer,"[Drawer] options.viewer is required");var n=arguments;if(e.isPlainObject(t)||(t={source:n[0],viewport:n[1],element:n[2]}),e.console.assert(t.viewport,"[Drawer] options.viewport is required"),e.console.assert(t.element,"[Drawer] options.element is required"),t.source&&e.console.error("[Drawer] options.source is no longer accepted; use TiledImage instead"),this.viewer=t.viewer,this.viewport=t.viewport,this.debugGridColor="string"==typeof t.debugGridColor?[t.debugGridColor]:t.debugGridColor||e.DEFAULT_SETTINGS.debugGridColor,t.opacity&&e.console.error("[Drawer] options.opacity is no longer accepted; set the opacity on the TiledImage instead"),this.useCanvas=e.supportsCanvas&&(!this.viewer||this.viewer.useCanvas),this.container=e.getElement(t.element),this.canvas=e.makeNeutralElement(this.useCanvas?"canvas":"div"),this.context=this.useCanvas?this.canvas.getContext("2d"):null,this.sketchCanvas=null,this.sketchContext=null,this.element=this.container,this.container.dir="ltr",this.useCanvas){var r=this._calculateCanvasSize();this.canvas.width=r.x,this.canvas.height=r.y}this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.position="absolute",e.setElementOpacity(this.canvas,this.opacity,!0),this.container.style.textAlign="left",this.container.appendChild(this.canvas),this._imageSmoothingEnabled=!0},e.Drawer.prototype={addOverlay:function(t,n,r,o){return e.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(t,n,r,o),this},updateOverlay:function(t,n,r){return e.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(t,n,r),this},removeOverlay:function(t){return e.console.error("drawer.removeOverlay is deprecated. Use viewer.removeOverlay instead."),this.viewer.removeOverlay(t),this},clearOverlays:function(){return e.console.error("drawer.clearOverlays is deprecated. Use viewer.clearOverlays instead."),this.viewer.clearOverlays(),this},viewportCoordToDrawerCoord:function(t){var n=this.viewport.pixelFromPointNoRotate(t,!0);return new e.Point(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio)},clipWithPolygons:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),e.forEach((function(e){e.forEach((function(e,t){n[0===t?"moveTo":"lineTo"](e.x,e.y)}))})),n.clip()}},setOpacity:function(t){e.console.error("drawer.setOpacity is deprecated. Use tiledImage.setOpacity instead.");for(var n=this.viewer.world,r=0;r<n.getItemCount();r++)n.getItemAt(r).setOpacity(t);return this},getOpacity:function(){e.console.error("drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead.");for(var t=this.viewer.world,n=0,r=0;r<t.getItemCount();r++){var o=t.getItemAt(r).getOpacity();o>n&&(n=o)}return n},needsUpdate:function(){return e.console.error("[Drawer.needsUpdate] this function is deprecated. Use World.needsDraw instead."),this.viewer.world.needsDraw()},numTilesLoaded:function(){return e.console.error("[Drawer.numTilesLoaded] this function is deprecated. Use TileCache.numTilesLoaded instead."),this.viewer.tileCache.numTilesLoaded()},reset:function(){return e.console.error("[Drawer.reset] this function is deprecated. Use World.resetItems instead."),this.viewer.world.resetItems(),this},update:function(){return e.console.error("[Drawer.update] this function is deprecated. Use Drawer.clear and World.draw instead."),this.clear(),this.viewer.world.draw(),this},canRotate:function(){return this.useCanvas},destroy:function(){this.canvas.width=1,this.canvas.height=1,this.sketchCanvas=null,this.sketchContext=null},clear:function(){if(this.canvas.innerHTML="",this.useCanvas){var e=this._calculateCanvasSize();if((this.canvas.width!=e.x||this.canvas.height!=e.y)&&(this.canvas.width=e.x,this.canvas.height=e.y,this._updateImageSmoothingEnabled(this.context),null!==this.sketchCanvas)){var t=this._calculateSketchCanvasSize();this.sketchCanvas.width=t.x,this.sketchCanvas.height=t.y,this._updateImageSmoothingEnabled(this.sketchContext)}this._clear()}},_clear:function(e,t){if(this.useCanvas){var n=this._getContext(e);if(t)n.clearRect(t.x,t.y,t.width,t.height);else{var r=n.canvas;n.clearRect(0,0,r.width,r.height)}}},viewportToDrawerRectangle:function(t){var n=this.viewport.pixelFromPointNoRotate(t.getTopLeft(),!0),r=this.viewport.deltaPixelsFromPointsNoRotate(t.getSize(),!0);return new e.Rect(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio,r.x*e.pixelDensityRatio,r.y*e.pixelDensityRatio)},drawTile:function(t,n,r,o,i){if(e.console.assert(t,"[Drawer.drawTile] tile is required"),e.console.assert(n,"[Drawer.drawTile] drawingHandler is required"),this.useCanvas){var a=this._getContext(r);o=o||1,t.drawCanvas(a,n,o,i)}else t.drawHTML(this.canvas)},_getContext:function(e){var t=this.context;if(e){if(null===this.sketchCanvas){this.sketchCanvas=document.createElement("canvas");var n=this._calculateSketchCanvasSize();if(this.sketchCanvas.width=n.x,this.sketchCanvas.height=n.y,this.sketchContext=this.sketchCanvas.getContext("2d"),0===this.viewport.getRotation()){var r=this;this.viewer.addHandler("rotate",(function e(){if(0!==r.viewport.getRotation()){r.viewer.removeHandler("rotate",e);var t=r._calculateSketchCanvasSize();r.sketchCanvas.width=t.x,r.sketchCanvas.height=t.y}}))}this._updateImageSmoothingEnabled(this.sketchContext)}t=this.sketchContext}return t},saveContext:function(e){this.useCanvas&&this._getContext(e).save()},restoreContext:function(e){this.useCanvas&&this._getContext(e).restore()},setClip:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),n.rect(e.x,e.y,e.width,e.height),n.clip()}},drawRectangle:function(e,t,n){if(this.useCanvas){var r=this._getContext(n);r.save(),r.fillStyle=t,r.fillRect(e.x,e.y,e.width,e.height),r.restore()}},blendSketch:function(t,n,r,o){var i=t;if(e.isPlainObject(i)||(i={opacity:t,scale:n,translate:r,compositeOperation:o}),this.useCanvas&&this.sketchCanvas){t=i.opacity,o=i.compositeOperation;var a=i.bounds;if(this.context.save(),this.context.globalAlpha=t,o&&(this.context.globalCompositeOperation=o),a)a.x<0&&(a.width+=a.x,a.x=0),a.x+a.width>this.canvas.width&&(a.width=this.canvas.width-a.x),a.y<0&&(a.height+=a.y,a.y=0),a.y+a.height>this.canvas.height&&(a.height=this.canvas.height-a.y),this.context.drawImage(this.sketchCanvas,a.x,a.y,a.width,a.height,a.x,a.y,a.width,a.height);else{n=i.scale||1;var s=(r=i.translate)instanceof e.Point?r:new e.Point(0,0),l=0,c=0;if(r){var u=this.sketchCanvas.width-this.canvas.width,d=this.sketchCanvas.height-this.canvas.height;l=Math.round(u/2),c=Math.round(d/2)}this.context.drawImage(this.sketchCanvas,s.x-l*n,s.y-c*n,(this.canvas.width+2*l)*n,(this.canvas.height+2*c)*n,-l,-c,this.canvas.width+2*l,this.canvas.height+2*c)}this.context.restore()}},drawDebugInfo:function(t,n,r,o){if(this.useCanvas){var i=this.viewer.world.getIndexOfItem(o)%this.debugGridColor.length,a=this.context;a.save(),a.lineWidth=2*e.pixelDensityRatio,a.font="small-caps bold "+13*e.pixelDensityRatio+"px arial",a.strokeStyle=this.debugGridColor[i],a.fillStyle=this.debugGridColor[i],0!==this.viewport.degrees&&this._offsetForRotation({degrees:this.viewport.degrees}),o.getRotation(!0)%360!=0&&this._offsetForRotation({degrees:o.getRotation(!0),point:o.viewport.pixelFromPointNoRotate(o._getRotationPoint(!0),!0)}),0===o.viewport.degrees&&o.getRotation(!0)%360==0&&o._drawer.viewer.viewport.getFlip()&&o._drawer._flip(),a.strokeRect(t.position.x*e.pixelDensityRatio,t.position.y*e.pixelDensityRatio,t.size.x*e.pixelDensityRatio,t.size.y*e.pixelDensityRatio);var s=(t.position.x+t.size.x/2)*e.pixelDensityRatio,l=(t.position.y+t.size.y/2)*e.pixelDensityRatio;a.translate(s,l),a.rotate(Math.PI/180*-this.viewport.degrees),a.translate(-s,-l),0===t.x&&0===t.y&&(a.fillText("Zoom: "+this.viewport.getZoom(),t.position.x*e.pixelDensityRatio,(t.position.y-30)*e.pixelDensityRatio),a.fillText("Pan: "+this.viewport.getBounds().toString(),t.position.x*e.pixelDensityRatio,(t.position.y-20)*e.pixelDensityRatio)),a.fillText("Level: "+t.level,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+20)*e.pixelDensityRatio),a.fillText("Column: "+t.x,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+30)*e.pixelDensityRatio),a.fillText("Row: "+t.y,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+40)*e.pixelDensityRatio),a.fillText("Order: "+r+" of "+n,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+50)*e.pixelDensityRatio),a.fillText("Size: "+t.size.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+60)*e.pixelDensityRatio),a.fillText("Position: "+t.position.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+70)*e.pixelDensityRatio),0!==this.viewport.degrees&&this._restoreRotationChanges(),o.getRotation(!0)%360!=0&&this._restoreRotationChanges(),0===o.viewport.degrees&&o.getRotation(!0)%360==0&&o._drawer.viewer.viewport.getFlip()&&o._drawer._flip(),a.restore()}},debugRect:function(t){if(this.useCanvas){var n=this.context;n.save(),n.lineWidth=2*e.pixelDensityRatio,n.strokeStyle=this.debugGridColor[0],n.fillStyle=this.debugGridColor[0],n.strokeRect(t.x*e.pixelDensityRatio,t.y*e.pixelDensityRatio,t.width*e.pixelDensityRatio,t.height*e.pixelDensityRatio),n.restore()}},setImageSmoothingEnabled:function(e){this.useCanvas&&(this._imageSmoothingEnabled=e,this._updateImageSmoothingEnabled(this.context),this.viewer.forceRedraw())},_updateImageSmoothingEnabled:function(e){e.msImageSmoothingEnabled=this._imageSmoothingEnabled,e.imageSmoothingEnabled=this._imageSmoothingEnabled},getCanvasSize:function(t){var n=this._getContext(t).canvas;return new e.Point(n.width,n.height)},getCanvasCenter:function(){return new e.Point(this.canvas.width/2,this.canvas.height/2)},_offsetForRotation:function(t){var n=t.point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),r=this._getContext(t.useSketch);r.save(),r.translate(n.x,n.y),this.viewer.viewport.flipped?(r.rotate(Math.PI/180*-t.degrees),r.scale(-1,1)):r.rotate(Math.PI/180*t.degrees),r.translate(-n.x,-n.y)},_flip:function(t){var n=(t=t||{}).point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),r=this._getContext(t.useSketch);r.translate(n.x,0),r.scale(-1,1),r.translate(-n.x,0)},_restoreRotationChanges:function(e){this._getContext(e).restore()},_calculateCanvasSize:function(){var t=e.pixelDensityRatio,n=this.viewport.getContainerSize();return{x:Math.round(n.x*t),y:Math.round(n.y*t)}},_calculateSketchCanvasSize:function(){var e=this._calculateCanvasSize();if(0===this.viewport.getRotation())return e;var t=Math.ceil(Math.sqrt(e.x*e.x+e.y*e.y));return{x:t,y:t}}}}(OpenSeadragon),function(e){e.Viewport=function(t){var n=arguments;n.length&&n[0]instanceof e.Point&&(t={containerSize:n[0],contentSize:n[1],config:n[2]}),t.config&&(e.extend(!0,t,t.config),delete t.config),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t.margins||{}),delete t.margins,e.extend(!0,this,{containerSize:null,contentSize:null,zoomPoint:null,viewer:null,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,maxZoomPixelRatio:e.DEFAULT_SETTINGS.maxZoomPixelRatio,visibilityRatio:e.DEFAULT_SETTINGS.visibilityRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,defaultZoomLevel:e.DEFAULT_SETTINGS.defaultZoomLevel,minZoomLevel:e.DEFAULT_SETTINGS.minZoomLevel,maxZoomLevel:e.DEFAULT_SETTINGS.maxZoomLevel,degrees:e.DEFAULT_SETTINGS.degrees,flipped:e.DEFAULT_SETTINGS.flipped,homeFillsViewer:e.DEFAULT_SETTINGS.homeFillsViewer},t),this._updateContainerInnerSize(),this.centerSpringX=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.centerSpringY=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.zoomSpring=new e.Spring({exponential:!0,initial:1,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._setContentBounds(new e.Rect(0,0,1,1),1),this.goHome(!0),this.update()},e.Viewport.prototype={resetContentSize:function(t){return e.console.assert(t,"[Viewport.resetContentSize] contentSize is required"),e.console.assert(t instanceof e.Point,"[Viewport.resetContentSize] contentSize must be an OpenSeadragon.Point"),e.console.assert(t.x>0,"[Viewport.resetContentSize] contentSize.x must be greater than 0"),e.console.assert(t.y>0,"[Viewport.resetContentSize] contentSize.y must be greater than 0"),this._setContentBounds(new e.Rect(0,0,1,t.y/t.x),t.x),this},setHomeBounds:function(t,n){e.console.error("[Viewport.setHomeBounds] this function is deprecated; The content bounds should not be set manually."),this._setContentBounds(t,n)},_setContentBounds:function(t,n){e.console.assert(t,"[Viewport._setContentBounds] bounds is required"),e.console.assert(t instanceof e.Rect,"[Viewport._setContentBounds] bounds must be an OpenSeadragon.Rect"),e.console.assert(t.width>0,"[Viewport._setContentBounds] bounds.width must be greater than 0"),e.console.assert(t.height>0,"[Viewport._setContentBounds] bounds.height must be greater than 0"),this._contentBoundsNoRotate=t.clone(),this._contentSizeNoRotate=this._contentBoundsNoRotate.getSize().times(n),this._contentBounds=t.rotate(this.degrees).getBoundingBox(),this._contentSize=this._contentBounds.getSize().times(n),this._contentAspectRatio=this._contentSize.x/this._contentSize.y,this.viewer&&this.viewer.raiseEvent("reset-size",{contentSize:this._contentSizeNoRotate.clone(),contentFactor:n,homeBounds:this._contentBoundsNoRotate.clone(),contentBounds:this._contentBounds.clone()})},getHomeZoom:function(){if(this.defaultZoomLevel)return this.defaultZoomLevel;var e=this._contentAspectRatio/this.getAspectRatio();return(this.homeFillsViewer?e>=1?e:1:e>=1?1:e)/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var t=this._contentBounds.getCenter(),n=1/this.getHomeZoom(),r=n/this.getAspectRatio();return new e.Rect(t.x-n/2,t.y-r/2,n,r)},goHome:function(e){return this.viewer&&this.viewer.raiseEvent("home",{immediately:e}),this.fitBounds(this.getHomeBounds(),e)},getMinZoom:function(){var e=this.getHomeZoom();return this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*e},getMaxZoom:function(){var e=this.maxZoomLevel;return e||(e=this._contentSize.x*this.maxZoomPixelRatio/this._containerInnerSize.x,e/=this._contentBounds.width),Math.max(e,this.getHomeZoom())},getAspectRatio:function(){return this._containerInnerSize.x/this._containerInnerSize.y},getContainerSize:function(){return new e.Point(this.containerSize.x,this.containerSize.y)},getMargins:function(){return e.extend({},this._margins)},setMargins:function(t){e.console.assert("object"===e.type(t),"[Viewport.setMargins] margins must be an object"),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t),this._updateContainerInnerSize(),this.viewer&&this.viewer.forceRedraw()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(-this.getRotation())},getBoundsNoRotate:function(t){var n=this.getCenter(t),r=1/this.getZoom(t),o=r/this.getAspectRatio();return new e.Rect(n.x-r/2,n.y-o/2,r,o)},getBoundsWithMargins:function(e){return this.getBoundsNoRotateWithMargins(e).rotate(-this.getRotation(),this.getCenter(e))},getBoundsNoRotateWithMargins:function(e){var t=this.getBoundsNoRotate(e),n=this._containerInnerSize.x*this.getZoom(e);return t.x-=this._margins.left/n,t.y-=this._margins.top/n,t.width+=(this._margins.left+this._margins.right)/n,t.height+=(this._margins.top+this._margins.bottom)/n,t},getCenter:function(t){var n,r,o,i,a,s,l=new e.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),c=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return t?l:this.zoomPoint?(n=this.pixelFromPoint(this.zoomPoint,!0),i=(o=1/(r=this.getZoom()))/this.getAspectRatio(),a=new e.Rect(l.x-o/2,l.y-i/2,o,i),s=this._pixelFromPoint(this.zoomPoint,a).minus(n).divide(this._containerInnerSize.x*r),c.plus(s)):c},getZoom:function(e){return e?this.zoomSpring.current.value:this.zoomSpring.target.value},_applyZoomConstraints:function(e){return Math.max(Math.min(e,this.getMaxZoom()),this.getMinZoom())},_applyBoundaryConstraints:function(t){var n=new e.Rect(t.x,t.y,t.width,t.height);if(this.wrapHorizontal);else{var r=this.visibilityRatio*n.width,o=n.x+n.width,i=this._contentBoundsNoRotate.x+this._contentBoundsNoRotate.width,a=this._contentBoundsNoRotate.x-o+r,s=i-n.x-r;r>this._contentBoundsNoRotate.width?n.x+=(a+s)/2:s<0?n.x+=s:a>0&&(n.x+=a)}if(this.wrapVertical);else{var l=this.visibilityRatio*n.height,c=n.y+n.height,u=this._contentBoundsNoRotate.y+this._contentBoundsNoRotate.height,d=this._contentBoundsNoRotate.y-c+l,f=u-n.y-l;l>this._contentBoundsNoRotate.height?n.y+=(d+f)/2:f<0?n.y+=f:d>0&&(n.y+=d)}return n},_raiseConstraintsEvent:function(e){this.viewer&&this.viewer.raiseEvent("constrain",{immediately:e})},applyConstraints:function(e){var t=this.getZoom(),n=this._applyZoomConstraints(t);t!==n&&this.zoomTo(n,this.zoomPoint,e);var r=this.getBoundsNoRotate(),o=this._applyBoundaryConstraints(r);return this._raiseConstraintsEvent(e),(r.x!==o.x||r.y!==o.y||e)&&this.fitBounds(o.rotate(-this.getRotation()),e),this},ensureVisible:function(e){return this.applyConstraints(e)},_fitBounds:function(t,n){var r=(n=n||{}).immediately||!1,o=n.constraints||!1,i=this.getAspectRatio(),a=t.getCenter(),s=new e.Rect(t.x,t.y,t.width,t.height,t.degrees+this.getRotation()).getBoundingBox();s.getAspectRatio()>=i?s.height=s.width/i:s.width=s.height*i,s.x=a.x-s.width/2,s.y=a.y-s.height/2;var l=1/s.width;if(o){var c=s.getAspectRatio(),u=this._applyZoomConstraints(l);l!==u&&(l=u,s.width=1/l,s.x=a.x-s.width/2,s.height=s.width/c,s.y=a.y-s.height/2),a=(s=this._applyBoundaryConstraints(s)).getCenter(),this._raiseConstraintsEvent(r)}if(r)return this.panTo(a,!0),this.zoomTo(l,null,!0);this.panTo(this.getCenter(!0),!0),this.zoomTo(this.getZoom(!0),null,!0);var d=this.getBounds(),f=this.getZoom();if(0===f||Math.abs(l/f-1)<1e-8)return this.zoomTo(l,!0),this.panTo(a,r);var p=(s=s.rotate(-this.getRotation())).getTopLeft().times(l).minus(d.getTopLeft().times(f)).divide(l-f);return this.zoomTo(l,p,r)},fitBounds:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!1})},fitBoundsWithConstraints:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!0})},fitVertically:function(t){var n=new e.Rect(this._contentBounds.x+this._contentBounds.width/2,this._contentBounds.y,0,this._contentBounds.height);return this.fitBounds(n,t)},fitHorizontally:function(t){var n=new e.Rect(this._contentBounds.x,this._contentBounds.y+this._contentBounds.height/2,this._contentBounds.width,0);return this.fitBounds(n,t)},getConstrainedBounds:function(e){var t;return t=this.getBounds(e),this._applyBoundaryConstraints(t)},panBy:function(t,n){var r=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(r.plus(t),n)},panTo:function(e,t){return t?(this.centerSpringX.resetTo(e.x),this.centerSpringY.resetTo(e.y)):(this.centerSpringX.springTo(e.x),this.centerSpringY.springTo(e.y)),this.viewer&&this.viewer.raiseEvent("pan",{center:e,immediately:t}),this},zoomBy:function(e,t,n){return this.zoomTo(this.zoomSpring.target.value*e,t,n)},zoomTo:function(t,n,r){var o=this;return this.zoomPoint=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,r?this._adjustCenterSpringsForZoomPoint((function(){o.zoomSpring.resetTo(t)})):this.zoomSpring.springTo(t),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:t,refPoint:n,immediately:r}),this},setRotation:function(t){return this.viewer&&this.viewer.drawer.canRotate()?(this.degrees=e.positiveModulo(t,360),this._setContentBounds(this.viewer.world.getHomeBounds(),this.viewer.world.getContentFactor()),this.viewer.forceRedraw(),this.viewer.raiseEvent("rotate",{degrees:t}),this):this},getRotation:function(){return this.degrees},resize:function(e,t){var n,r=this.getBoundsNoRotate(),o=r;return this.containerSize.x=e.x,this.containerSize.y=e.y,this._updateContainerInnerSize(),t&&(n=e.x/this.containerSize.x,o.width=r.width*n,o.height=o.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:e,maintain:t}),this.fitBounds(o,!0)},_updateContainerInnerSize:function(){this._containerInnerSize=new e.Point(Math.max(1,this.containerSize.x-(this._margins.left+this._margins.right)),Math.max(1,this.containerSize.y-(this._margins.top+this._margins.bottom)))},update:function(){var e=this;this._adjustCenterSpringsForZoomPoint((function(){e.zoomSpring.update()})),this.centerSpringX.update(),this.centerSpringY.update();var t=this.centerSpringX.current.value!==this._oldCenterX||this.centerSpringY.current.value!==this._oldCenterY||this.zoomSpring.current.value!==this._oldZoom;return this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,t},_adjustCenterSpringsForZoomPoint:function(e){if(this.zoomPoint){var t=this.pixelFromPoint(this.zoomPoint,!0);e();var n=this.pixelFromPoint(this.zoomPoint,!0).minus(t),r=this.deltaPointsFromPixels(n,!0);this.centerSpringX.shiftBy(r.x),this.centerSpringY.shiftBy(r.y),this.zoomSpring.isAtTargetValue()&&(this.zoomPoint=null)}else e()},deltaPixelsFromPointsNoRotate:function(e,t){return e.times(this._containerInnerSize.x*this.getZoom(t))},deltaPixelsFromPoints:function(e,t){return this.deltaPixelsFromPointsNoRotate(e.rotate(this.getRotation()),t)},deltaPointsFromPixelsNoRotate:function(e,t){return e.divide(this._containerInnerSize.x*this.getZoom(t))},deltaPointsFromPixels:function(e,t){return this.deltaPointsFromPixelsNoRotate(e,t).rotate(-this.getRotation())},pixelFromPointNoRotate:function(e,t){return this._pixelFromPointNoRotate(e,this.getBoundsNoRotate(t))},pixelFromPoint:function(e,t){return this._pixelFromPoint(e,this.getBoundsNoRotate(t))},_pixelFromPointNoRotate:function(t,n){return t.minus(n.getTopLeft()).times(this._containerInnerSize.x/n.width).plus(new e.Point(this._margins.left,this._margins.top))},_pixelFromPoint:function(e,t){return this._pixelFromPointNoRotate(e.rotate(this.getRotation(),this.getCenter(!0)),t)},pointFromPixelNoRotate:function(t,n){var r=this.getBoundsNoRotate(n);return t.minus(new e.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/r.width).plus(r.getTopLeft())},pointFromPixel:function(e,t){return this.pointFromPixelNoRotate(e,t).rotate(-this.getRotation(),this.getCenter(!0))},_viewportToImageDelta:function(t,n){var r=this._contentBoundsNoRotate.width;return new e.Point(t*this._contentSizeNoRotate.x/r,n*this._contentSizeNoRotate.x/r)},viewportToImageCoordinates:function(t,n){if(t instanceof e.Point)return this.viewportToImageCoordinates(t.x,t.y);if(this.viewer){var r=this.viewer.world.getItemCount();if(r>1)e.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(1===r)return this.viewer.world.getItemAt(0).viewportToImageCoordinates(t,n,!0)}return this._viewportToImageDelta(t-this._contentBoundsNoRotate.x,n-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(t,n){var r=this._contentBoundsNoRotate.width;return new e.Point(t/this._contentSizeNoRotate.x*r,n/this._contentSizeNoRotate.x*r)},imageToViewportCoordinates:function(t,n){if(t instanceof e.Point)return this.imageToViewportCoordinates(t.x,t.y);if(this.viewer){var r=this.viewer.world.getItemCount();if(r>1)e.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(1===r)return this.viewer.world.getItemAt(0).imageToViewportCoordinates(t,n,!0)}var o=this._imageToViewportDelta(t,n);return o.x+=this._contentBoundsNoRotate.x,o.y+=this._contentBoundsNoRotate.y,o},imageToViewportRectangle:function(t,n,r,o){var i=t;if(i instanceof e.Rect||(i=new e.Rect(t,n,r,o)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)e.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(1===a)return this.viewer.world.getItemAt(0).imageToViewportRectangle(t,n,r,o,!0)}var s=this.imageToViewportCoordinates(i.x,i.y),l=this._imageToViewportDelta(i.width,i.height);return new e.Rect(s.x,s.y,l.x,l.y,i.degrees)},viewportToImageRectangle:function(t,n,r,o){var i=t;if(i instanceof e.Rect||(i=new e.Rect(t,n,r,o)),this.viewer){var a=this.viewer.world.getItemCount();if(a>1)e.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(1===a)return this.viewer.world.getItemAt(0).viewportToImageRectangle(t,n,r,o,!0)}var s=this.viewportToImageCoordinates(i.x,i.y),l=this._viewportToImageDelta(i.width,i.height);return new e.Rect(s.x,s.y,l.x,l.y,i.degrees)},viewerElementToImageCoordinates:function(e){var t=this.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.pixelFromPoint(t,!0)},windowToImageCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToImageCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(n)},imageToWindowCoordinates:function(t){return e.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer."),this.imageToViewerElementCoordinates(t).plus(e.getElementPosition(this.viewer.element))},viewerElementToViewportCoordinates:function(e){return this.pointFromPixel(e,!0)},viewportToViewerElementCoordinates:function(e){return this.pixelFromPoint(e,!0)},viewerElementToViewportRectangle:function(t){return e.Rect.fromSummits(this.pointFromPixel(t.getTopLeft(),!0),this.pointFromPixel(t.getTopRight(),!0),this.pointFromPixel(t.getBottomLeft(),!0))},viewportToViewerElementRectangle:function(t){return e.Rect.fromSummits(this.pixelFromPoint(t.getTopLeft(),!0),this.pixelFromPoint(t.getTopRight(),!0),this.pixelFromPoint(t.getBottomLeft(),!0))},windowToViewportCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToViewportCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToViewportCoordinates(n)},viewportToWindowCoordinates:function(t){return e.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer."),this.viewportToViewerElementCoordinates(t).plus(e.getElementPosition(this.viewer.element))},viewportToImageZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)e.console.error("[Viewport.viewportToImageZoom] is not accurate with multi-image.");else if(1===n)return this.viewer.world.getItemAt(0).viewportToImageZoom(t)}var r=this._contentSizeNoRotate.x;return t*(this._containerInnerSize.x/r*this._contentBoundsNoRotate.width)},imageToViewportZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)e.console.error("[Viewport.imageToViewportZoom] is not accurate with multi-image.");else if(1===n)return this.viewer.world.getItemAt(0).imageToViewportZoom(t)}return t*(this._contentSizeNoRotate.x/this._containerInnerSize.x/this._contentBoundsNoRotate.width)},toggleFlip:function(){return this.setFlip(!this.getFlip()),this},getFlip:function(){return this.flipped},setFlip:function(e){return this.flipped===e||(this.flipped=e,this.viewer.navigator&&this.viewer.navigator.setFlip(this.getFlip()),this.viewer.forceRedraw(),this.viewer.raiseEvent("flip",{flipped:e})),this}}}(OpenSeadragon),function(e){function t(e,t,r,o,i,a,l,c,u){var d=l.getBoundingBox().getTopLeft(),f=l.getBoundingBox().getBottomRight();e.viewer&&e.viewer.raiseEvent("update-level",{tiledImage:e,havedrawn:t,level:o,opacity:i,visibility:a,drawArea:l,topleft:d,bottomright:f,currenttime:c,best:u}),s(e.coverage,o),s(e.loadingCoverage,o);for(var p=e._getCornerTiles(o,d,f),h=p.topLeft,m=p.bottomRight,g=e.source.getNumTiles(o),v=e.viewport.pixelFromPoint(e.viewport.getCenter()),y=h.x;y<=m.x;y++)for(var b=h.y;b<=m.y;b++){if(!e.wrapHorizontal&&!e.wrapVertical){var w=e.source.getTileBounds(o,y,b);if(null===l.intersection(w))continue}u=n(e,r,t,y,b,o,i,a,v,g,c,u)}return u}function n(t,n,o,s,l,c,u,d,f,p,h,m){var g=function(t,n,r,o,i,a,s,l,c,u){var d,f,p,h,m,g,v,y,b;return a[r]||(a[r]={}),a[r][t]||(a[r][t]={}),a[r][t][n]||(d=(l.x+t%l.x)%l.x,f=(l.y+n%l.y)%l.y,p=i.getTileBounds(r,d,f),h=i.getTileBounds(r,d,f,!0),m=i.tileExists(r,d,f),g=i.getTileUrl(r,d,f),o.loadTilesWithAjax?(v=i.getTileAjaxHeaders(r,d,f),e.isPlainObject(o.ajaxHeaders)&&(v=e.extend({},o.ajaxHeaders,v))):v=null,y=i.getContext2D?i.getContext2D(r,d,f):void 0,p.x+=(t-d)/l.x,p.y+=u/c*((n-f)/l.y),b=new e.Tile(r,t,n,p,m,g,y,o.loadTilesWithAjax,v,h),d===l.x-1&&(b.isRightMost=!0),f===l.y-1&&(b.isBottomMost=!0),a[r][t][n]=b),(b=a[r][t][n]).lastTouchTime=s,b}(s,l,c,t,t.source,t.tilesMatrix,h,p,t._worldWidthCurrent,t._worldHeightCurrent),v=o;t.viewer&&t.viewer.raiseEvent("update-tile",{tiledImage:t,tile:g}),a(t.coverage,c,s,l,!1);var y=g.loaded||g.loading||i(t.loadingCoverage,c,s,l);if(a(t.loadingCoverage,c,s,l,y),!g.exists)return m;if(n&&!v&&(i(t.coverage,c,s,l)?a(t.coverage,c,s,l,!0):v=!0),!v)return m;if(function(t,n,r,o,i,a){var s=t.bounds.getTopLeft();s.x*=a._scaleSpring.current.value,s.y*=a._scaleSpring.current.value,s.x+=a._xSpring.current.value,s.y+=a._ySpring.current.value;var l=t.bounds.getSize();l.x*=a._scaleSpring.current.value,l.y*=a._scaleSpring.current.value;var c=r.pixelFromPointNoRotate(s,!0),u=r.pixelFromPointNoRotate(s,!1),d=r.deltaPixelsFromPointsNoRotate(l,!0),f=r.deltaPixelsFromPointsNoRotate(l,!1),p=u.plus(f.divide(2)),h=o.squaredDistanceTo(p);n||(d=d.plus(new e.Point(1,1))),t.isRightMost&&a.wrapHorizontal&&(d.x+=.75),t.isBottomMost&&a.wrapVertical&&(d.y+=.75),t.position=c,t.size=d,t.squaredDistance=h,t.visibility=i}(g,t.source.tileOverlap,t.viewport,f,d,t),!g.loaded)if(g.context2D)r(t,g);else{var b=t._tileCache.getImageRecord(g.cacheKey);b&&r(t,g,b.getImage())}if(g.loaded){var w=function(e,t,n,r,o,i,s){var l,c,u=1e3*e.blendTime;if(t.blendStart||(t.blendStart=s),l=s-t.blendStart,c=u?Math.min(1,l/u):1,e.alwaysBlend&&(c*=i),t.opacity=c,e.lastDrawn.push(t),1===c)a(e.coverage,o,n,r,!0),e._hasOpaqueTile=!0;else if(l<u)return!0;return!1}(t,g,s,l,c,u,h);w&&(t._needsDraw=!0)}else g.loading?t._tilesLoading++:y||(m=function(e,t){return e?t.visibility>e.visibility||t.visibility==e.visibility&&t.squaredDistance<e.squaredDistance?t:e:t}(m,g));return m}function r(e,t,n,r,o){var i=0;function a(){return i++,s}function s(){0==--i&&(t.loading=!1,t.loaded=!0,t.context2D||e._tileCache.cacheTile({image:n,tile:t,cutoff:r,tiledImage:e}),e._needsDraw=!0)}e.viewer.raiseEvent("tile-loaded",{tile:t,tiledImage:e,tileRequest:o,image:n,getCompletionCallback:a}),a()()}function o(e,t,n,r){var o,i,a,s;if(!e[t])return!1;if(void 0===n||void 0===r){for(a in o=e[t])if(Object.prototype.hasOwnProperty.call(o,a))for(s in i=o[a])if(Object.prototype.hasOwnProperty.call(i,s)&&!i[s])return!1;return!0}return void 0===e[t][n]||void 0===e[t][n][r]||!0===e[t][n][r]}function i(e,t,n,r){return void 0===n||void 0===r?o(e,t+1):o(e,t+1,2*n,2*r)&&o(e,t+1,2*n,2*r+1)&&o(e,t+1,2*n+1,2*r)&&o(e,t+1,2*n+1,2*r+1)}function a(t,n,r,o,i){t[n]?(t[n][r]||(t[n][r]={}),t[n][r][o]=i):e.console.warn("Setting coverage for a tile before its level's coverage has been reset: %s",n)}function s(e,t){e[t]={}}e.TiledImage=function(t){var n=this;e.console.assert(t.tileCache,"[TiledImage] options.tileCache is required"),e.console.assert(t.drawer,"[TiledImage] options.drawer is required"),e.console.assert(t.viewer,"[TiledImage] options.viewer is required"),e.console.assert(t.imageLoader,"[TiledImage] options.imageLoader is required"),e.console.assert(t.source,"[TiledImage] options.source is required"),e.console.assert(!t.clip||t.clip instanceof e.Rect,"[TiledImage] options.clip must be an OpenSeadragon.Rect if present"),e.EventSource.call(this),this._tileCache=t.tileCache,delete t.tileCache,this._drawer=t.drawer,delete t.drawer,this._imageLoader=t.imageLoader,delete t.imageLoader,t.clip instanceof e.Rect&&(this._clip=t.clip.clone()),delete t.clip;var r=t.x||0;delete t.x;var o=t.y||0;delete t.y,this.normHeight=t.source.dimensions.y/t.source.dimensions.x,this.contentAspectX=t.source.dimensions.x/t.source.dimensions.y;var i=1;t.width?(i=t.width,delete t.width,t.height&&(e.console.error("specifying both width and height to a tiledImage is not supported"),delete t.height)):t.height&&(i=t.height/this.normHeight,delete t.height);var a=t.fitBounds;delete t.fitBounds;var s=t.fitBoundsPlacement||OpenSeadragon.Placement.CENTER;delete t.fitBoundsPlacement;var l=t.degrees||0;delete t.degrees,e.extend(!0,this,{viewer:null,tilesMatrix:{},coverage:{},loadingCoverage:{},lastDrawn:[],lastResetTime:0,_midDraw:!1,_needsDraw:!0,_hasOpaqueTile:!1,_tilesLoading:0,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,immediateRender:e.DEFAULT_SETTINGS.immediateRender,blendTime:e.DEFAULT_SETTINGS.blendTime,alwaysBlend:e.DEFAULT_SETTINGS.alwaysBlend,minPixelRatio:e.DEFAULT_SETTINGS.minPixelRatio,smoothTileEdgesMinZoom:e.DEFAULT_SETTINGS.smoothTileEdgesMinZoom,iOSDevice:e.DEFAULT_SETTINGS.iOSDevice,debugMode:e.DEFAULT_SETTINGS.debugMode,crossOriginPolicy:e.DEFAULT_SETTINGS.crossOriginPolicy,ajaxWithCredentials:e.DEFAULT_SETTINGS.ajaxWithCredentials,placeholderFillStyle:e.DEFAULT_SETTINGS.placeholderFillStyle,opacity:e.DEFAULT_SETTINGS.opacity,preload:e.DEFAULT_SETTINGS.preload,compositeOperation:e.DEFAULT_SETTINGS.compositeOperation},t),this._preload=this.preload,delete this.preload,this._fullyLoaded=!1,this._xSpring=new e.Spring({initial:r,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new e.Spring({initial:o,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._scaleSpring=new e.Spring({initial:i,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._degreesSpring=new e.Spring({initial:l,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._updateForScale(),a&&this.fitBounds(a,s,!0),this._drawingHandler=function(t){n.viewer.raiseEvent("tile-drawing",e.extend({tiledImage:n},t))}},e.extend(e.TiledImage.prototype,e.EventSource.prototype,{needsDraw:function(){return this._needsDraw},getFullyLoaded:function(){return this._fullyLoaded},_setFullyLoaded:function(e){e!==this._fullyLoaded&&(this._fullyLoaded=e,this.raiseEvent("fully-loaded-change",{fullyLoaded:this._fullyLoaded}))},reset:function(){this._tileCache.clearTilesFor(this),this.lastResetTime=e.now(),this._needsDraw=!0},update:function(){var e=this._xSpring.update(),t=this._ySpring.update(),n=this._scaleSpring.update(),r=this._degreesSpring.update();return!!(e||t||n||r)&&(this._updateForScale(),this._needsDraw=!0,!0)},draw:function(){0!==this.opacity||this._preload?(this._midDraw=!0,this._updateViewport(),this._midDraw=!1):this._needsDraw=!1},destroy:function(){this.reset()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(this.getRotation(e),this._getRotationPoint(e))},getBoundsNoRotate:function(t){return t?new e.Rect(this._xSpring.current.value,this._ySpring.current.value,this._worldWidthCurrent,this._worldHeightCurrent):new e.Rect(this._xSpring.target.value,this._ySpring.target.value,this._worldWidthTarget,this._worldHeightTarget)},getWorldBounds:function(){return e.console.error("[TiledImage.getWorldBounds] is deprecated; use TiledImage.getBounds instead"),this.getBounds()},getClippedBounds:function(t){var n=this.getBoundsNoRotate(t);if(this._clip){var r=(t?this._worldWidthCurrent:this._worldWidthTarget)/this.source.dimensions.x,o=this._clip.times(r);n=new e.Rect(n.x+o.x,n.y+o.y,o.width,o.height)}return n.rotate(this.getRotation(t),this._getRotationPoint(t))},getContentSize:function(){return new e.Point(this.source.dimensions.x,this.source.dimensions.y)},_viewportToImageDelta:function(t,n,r){var o=r?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t*(this.source.dimensions.x/o),n*(this.source.dimensions.y*this.contentAspectX/o))},viewportToImageCoordinates:function(t,n,r){var o;return t instanceof e.Point?(r=n,o=t):o=new e.Point(t,n),o=o.rotate(-this.getRotation(r),this._getRotationPoint(r)),r?this._viewportToImageDelta(o.x-this._xSpring.current.value,o.y-this._ySpring.current.value):this._viewportToImageDelta(o.x-this._xSpring.target.value,o.y-this._ySpring.target.value)},_imageToViewportDelta:function(t,n,r){var o=r?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t/this.source.dimensions.x*o,n/this.source.dimensions.y/this.contentAspectX*o)},imageToViewportCoordinates:function(t,n,r){t instanceof e.Point&&(r=n,n=t.y,t=t.x);var o=this._imageToViewportDelta(t,n);return r?(o.x+=this._xSpring.current.value,o.y+=this._ySpring.current.value):(o.x+=this._xSpring.target.value,o.y+=this._ySpring.target.value),o.rotate(this.getRotation(r),this._getRotationPoint(r))},imageToViewportRectangle:function(t,n,r,o,i){var a=t;a instanceof e.Rect?i=n:a=new e.Rect(t,n,r,o);var s=this.imageToViewportCoordinates(a.getTopLeft(),i),l=this._imageToViewportDelta(a.width,a.height,i);return new e.Rect(s.x,s.y,l.x,l.y,a.degrees+this.getRotation(i))},viewportToImageRectangle:function(t,n,r,o,i){var a=t;t instanceof e.Rect?i=n:a=new e.Rect(t,n,r,o);var s=this.viewportToImageCoordinates(a.getTopLeft(),i),l=this._viewportToImageDelta(a.width,a.height,i);return new e.Rect(s.x,s.y,l.x,l.y,a.degrees-this.getRotation(i))},viewerElementToImageCoordinates:function(e){var t=this.viewport.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.viewport.pixelFromPoint(t,!0)},windowToImageCoordinates:function(e){var t=e.minus(OpenSeadragon.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(t)},imageToWindowCoordinates:function(e){return this.imageToViewerElementCoordinates(e).plus(OpenSeadragon.getElementPosition(this.viewer.element))},_viewportToTiledImageRectangle:function(t){var n=this._scaleSpring.current.value;return t=t.rotate(-this.getRotation(!0),this._getRotationPoint(!0)),new e.Rect((t.x-this._xSpring.current.value)/n,(t.y-this._ySpring.current.value)/n,t.width/n,t.height/n,t.degrees)},viewportToImageZoom:function(e){return this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x*e},imageToViewportZoom:function(e){return e/(this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x)},setPosition:function(e,t){var n=this._xSpring.target.value===e.x&&this._ySpring.target.value===e.y;if(t){if(n&&this._xSpring.current.value===e.x&&this._ySpring.current.value===e.y)return;this._xSpring.resetTo(e.x),this._ySpring.resetTo(e.y),this._needsDraw=!0}else{if(n)return;this._xSpring.springTo(e.x),this._ySpring.springTo(e.y),this._needsDraw=!0}n||this._raiseBoundsChange()},setWidth:function(e,t){this._setScale(e,t)},setHeight:function(e,t){this._setScale(e/this.normHeight,t)},setCroppingPolygons:function(t){try{if(!e.isArray(t))throw new Error("Provided cropping polygon is not an array");this._croppingPolygons=t.map((function(t){return t.map((function(t){try{if(function(t){return t instanceof e.Point||"number"==typeof t.x&&"number"==typeof t.y}(t))return{x:t.x,y:t.y};throw new Error}catch(e){throw new Error("A Provided cropping polygon point is not supported")}}))}))}catch(t){e.console.error("[TiledImage.setCroppingPolygons] Cropping polygon format not supported"),e.console.error(t),this._croppingPolygons=null}},resetCroppingPolygons:function(){this._croppingPolygons=null},fitBounds:function(t,n,r){n=n||e.Placement.CENTER;var o=e.Placement.properties[n],i=this.contentAspectX,a=0,s=0,l=1,c=1;if(this._clip&&(i=this._clip.getAspectRatio(),l=this._clip.width/this.source.dimensions.x,c=this._clip.height/this.source.dimensions.y,t.getAspectRatio()>i?(a=this._clip.x/this._clip.height*t.height,s=this._clip.y/this._clip.height*t.height):(a=this._clip.x/this._clip.width*t.width,s=this._clip.y/this._clip.width*t.width)),t.getAspectRatio()>i){var u=t.height/c,d=0;o.isHorizontallyCentered?d=(t.width-t.height*i)/2:o.isRight&&(d=t.width-t.height*i),this.setPosition(new e.Point(t.x-a+d,t.y-s),r),this.setHeight(u,r)}else{var f=t.width/l,p=0;o.isVerticallyCentered?p=(t.height-t.width/i)/2:o.isBottom&&(p=t.height-t.width/i),this.setPosition(new e.Point(t.x-a,t.y-s+p),r),this.setWidth(f,r)}},getClip:function(){return this._clip?this._clip.clone():null},setClip:function(t){e.console.assert(!t||t instanceof e.Rect,"[TiledImage.setClip] newClip must be an OpenSeadragon.Rect or null"),t instanceof e.Rect?this._clip=t.clone():this._clip=null,this._needsDraw=!0,this.raiseEvent("clip-change")},getOpacity:function(){return this.opacity},setOpacity:function(e){e!==this.opacity&&(this.opacity=e,this._needsDraw=!0,this.raiseEvent("opacity-change",{opacity:this.opacity}))},getPreload:function(){return this._preload},setPreload:function(e){this._preload=!!e,this._needsDraw=!0},getRotation:function(e){return e?this._degreesSpring.current.value:this._degreesSpring.target.value},setRotation:function(e,t){this._degreesSpring.target.value===e&&this._degreesSpring.isAtTargetValue()||(t?this._degreesSpring.resetTo(e):this._degreesSpring.springTo(e),this._needsDraw=!0,this._raiseBoundsChange())},_getRotationPoint:function(e){return this.getBoundsNoRotate(e).getCenter()},getCompositeOperation:function(){return this.compositeOperation},setCompositeOperation:function(e){e!==this.compositeOperation&&(this.compositeOperation=e,this._needsDraw=!0,this.raiseEvent("composite-operation-change",{compositeOperation:this.compositeOperation}))},_setScale:function(e,t){var n=this._scaleSpring.target.value===e;if(t){if(n&&this._scaleSpring.current.value===e)return;this._scaleSpring.resetTo(e),this._updateForScale(),this._needsDraw=!0}else{if(n)return;this._scaleSpring.springTo(e),this._updateForScale(),this._needsDraw=!0}n||this._raiseBoundsChange()},_updateForScale:function(){this._worldWidthTarget=this._scaleSpring.target.value,this._worldHeightTarget=this.normHeight*this._scaleSpring.target.value,this._worldWidthCurrent=this._scaleSpring.current.value,this._worldHeightCurrent=this.normHeight*this._scaleSpring.current.value},_raiseBoundsChange:function(){this.raiseEvent("bounds-change")},_isBottomItem:function(){return this.viewer.world.getItemAt(0)===this},_getLevelsInterval:function(){var e=Math.max(this.source.minLevel,Math.floor(Math.log(this.minZoomImageRatio)/Math.log(2))),t=this.viewport.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(0),!0).x*this._scaleSpring.current.value,n=Math.min(Math.abs(this.source.maxLevel),Math.abs(Math.floor(Math.log(t/this.minPixelRatio)/Math.log(2))));return n=Math.max(n,this.source.minLevel||0),{lowestLevel:e=Math.min(e,n),highestLevel:n}},_updateViewport:function(){for(this._needsDraw=!1,this._tilesLoading=0,this.loadingCoverage={};this.lastDrawn.length>0;)this.lastDrawn.pop().beingDrawn=!1;var n,i,a,s=this.viewport,l=this._viewportToTiledImageRectangle(s.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var c=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(null===(l=l.intersection(c)))return}for(var u=this._getLevelsInterval(),d=u.lowestLevel,f=u.highestLevel,p=null,h=!1,m=e.now(),g=f;g>=d;g--){var v=!1,y=s.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(g),!0).x*this._scaleSpring.current.value;if(g===d||!h&&y>=this.minPixelRatio)v=!0,h=!0;else if(!h)continue;var b=s.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(g),!1).x*this._scaleSpring.current.value,w=s.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,E=this.immediateRender?1:w;if(p=t(this,h,v,g,Math.min(1,(y-.5)/.5),E/Math.abs(E-b),l,m,p),o(this.coverage,g))break}!function(t,n){if(0!==t.opacity&&(0!==n.length||t.placeholderFillStyle)){var r,o,i,a=n[0];a&&(r=t.opacity<1||t.compositeOperation&&"source-over"!==t.compositeOperation||!t._isBottomItem()&&a._hasTransparencyChannel());var s,l=t.viewport.getZoom(!0),c=t.viewportToImageZoom(l);n.length>1&&c>t.smoothTileEdgesMinZoom&&!t.iOSDevice&&t.getRotation(!0)%360==0&&e.supportsCanvas&&(r=!0,o=a.getScaleForEdgeSmoothing(),i=a.getTranslationForEdgeSmoothing(o,t._drawer.getCanvasSize(!1),t._drawer.getCanvasSize(!0))),r&&(o||(s=t.viewport.viewportToViewerElementRectangle(t.getClippedBounds(!0)).getIntegerBoundingBox(),t._drawer.viewer.viewport.getFlip()&&(0===t.viewport.degrees&&t.getRotation(!0)%360==0||(s.x=t._drawer.viewer.container.clientWidth-(s.x+s.width))),s=s.times(e.pixelDensityRatio)),t._drawer._clear(!0,s)),o||(0!==t.viewport.degrees&&t._drawer._offsetForRotation({degrees:t.viewport.degrees,useSketch:r}),t.getRotation(!0)%360!=0&&t._drawer._offsetForRotation({degrees:t.getRotation(!0),point:t.viewport.pixelFromPointNoRotate(t._getRotationPoint(!0),!0),useSketch:r}),0===t.viewport.degrees&&t.getRotation(!0)%360==0&&t._drawer.viewer.viewport.getFlip()&&t._drawer._flip());var u=!1;if(t._clip){t._drawer.saveContext(r);var d=t.imageToViewportRectangle(t._clip,!0);d=d.rotate(-t.getRotation(!0),t._getRotationPoint(!0));var f=t._drawer.viewportToDrawerRectangle(d);o&&(f=f.times(o)),i&&(f=f.translate(i)),t._drawer.setClip(f,r),u=!0}if(t._croppingPolygons){t._drawer.saveContext(r);try{var p=t._croppingPolygons.map((function(e){return e.map((function(e){var n=t.imageToViewportCoordinates(e.x,e.y,!0).rotate(-t.getRotation(!0),t._getRotationPoint(!0)),r=t._drawer.viewportCoordToDrawerCoord(n);return o&&(r=r.times(o)),r}))}));t._drawer.clipWithPolygons(p,r)}catch(t){e.console.error(t)}u=!0}if(t.placeholderFillStyle&&!1===t._hasOpaqueTile){var h=t._drawer.viewportToDrawerRectangle(t.getBounds(!0));o&&(h=h.times(o)),i&&(h=h.translate(i));var m;m="function"==typeof t.placeholderFillStyle?t.placeholderFillStyle(t,t._drawer.context):t.placeholderFillStyle,t._drawer.drawRectangle(h,m,r)}for(var g=n.length-1;g>=0;g--)a=n[g],t._drawer.drawTile(a,t._drawingHandler,r,o,i),a.beingDrawn=!0,t.viewer&&t.viewer.raiseEvent("tile-drawn",{tiledImage:t,tile:a});u&&t._drawer.restoreContext(r),o||(t.getRotation(!0)%360!=0&&t._drawer._restoreRotationChanges(r),0!==t.viewport.degrees&&t._drawer._restoreRotationChanges(r)),r&&(o&&(0!==t.viewport.degrees&&t._drawer._offsetForRotation({degrees:t.viewport.degrees,useSketch:!1}),t.getRotation(!0)%360!=0&&t._drawer._offsetForRotation({degrees:t.getRotation(!0),point:t.viewport.pixelFromPointNoRotate(t._getRotationPoint(!0),!0),useSketch:!1})),t._drawer.blendSketch({opacity:t.opacity,scale:o,translate:i,compositeOperation:t.compositeOperation,bounds:s}),o&&(t.getRotation(!0)%360!=0&&t._drawer._restoreRotationChanges(!1),0!==t.viewport.degrees&&t._drawer._restoreRotationChanges(!1))),o||0===t.viewport.degrees&&t.getRotation(!0)%360==0&&t._drawer.viewer.viewport.getFlip()&&t._drawer._flip(),function(t,n){if(t.debugMode)for(var r=n.length-1;r>=0;r--){var o=n[r];try{t._drawer.drawDebugInfo(o,n.length,r,t)}catch(t){e.console.error(t)}}}(t,n)}}(this,this.lastDrawn),p&&!p.context2D?(n=this,a=m,(i=p).loading=!0,n._imageLoader.addJob({src:i.url,loadWithAjax:i.loadWithAjax,ajaxHeaders:i.ajaxHeaders,crossOriginPolicy:n.crossOriginPolicy,ajaxWithCredentials:n.ajaxWithCredentials,callback:function(t,o,s){!function(t,n,o,i,a,s){if(!i)return e.console.log("Tile %s failed to load: %s - error: %s",n,n.url,a),t.viewer.raiseEvent("tile-load-failed",{tile:n,tiledImage:t,time:o,message:a,tileRequest:s}),n.loading=!1,void(n.exists=!1);if(o<t.lastResetTime)return e.console.log("Ignoring tile %s loaded before reset: %s",n,n.url),void(n.loading=!1);var l=function(){var e=t.source.getClosestLevel();r(t,n,i,e,s)};t._midDraw?window.setTimeout(l,1):l()}(n,i,a,t,o,s)},abort:function(){i.loading=!1}}),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(0===this._tilesLoading)},_getCornerTiles:function(t,n,r){var o,i,a,s;this.wrapHorizontal?(o=e.positiveModulo(n.x,1),i=e.positiveModulo(r.x,1)):(o=Math.max(0,n.x),i=Math.min(1,r.x));var l=1/this.source.aspectRatio;this.wrapVertical?(a=e.positiveModulo(n.y,l),s=e.positiveModulo(r.y,l)):(a=Math.max(0,n.y),s=Math.min(l,r.y));var c=this.source.getTileAtPoint(t,new e.Point(o,a)),u=this.source.getTileAtPoint(t,new e.Point(i,s)),d=this.source.getNumTiles(t);return this.wrapHorizontal&&(c.x+=d.x*Math.floor(n.x),u.x+=d.x*Math.floor(r.x)),this.wrapVertical&&(c.y+=d.y*Math.floor(n.y/l),u.y+=d.y*Math.floor(r.y/l)),{topLeft:c,bottomRight:u}}})}(OpenSeadragon),function(e){var t=function(t){e.console.assert(t,"[TileCache.cacheTile] options is required"),e.console.assert(t.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(t.tiledImage,"[TileCache.cacheTile] options.tiledImage is required"),this.tile=t.tile,this.tiledImage=t.tiledImage},n=function(t){e.console.assert(t,"[ImageRecord] options is required"),e.console.assert(t.image,"[ImageRecord] options.image is required"),this._image=t.image,this._tiles=[]};n.prototype={destroy:function(){this._image=null,this._renderedContext=null,this._tiles=null},getImage:function(){return this._image},getRenderedContext:function(){if(!this._renderedContext){var e=document.createElement("canvas");e.width=this._image.width,e.height=this._image.height,this._renderedContext=e.getContext("2d"),this._renderedContext.drawImage(this._image,0,0),this._image=null}return this._renderedContext},setRenderedContext:function(t){e.console.error("ImageRecord.setRenderedContext is deprecated. The rendered context should be created by the ImageRecord itself when calling ImageRecord.getRenderedContext."),this._renderedContext=t},addTile:function(t){e.console.assert(t,"[ImageRecord.addTile] tile is required"),this._tiles.push(t)},removeTile:function(t){for(var n=0;n<this._tiles.length;n++)if(this._tiles[n]===t)return void this._tiles.splice(n,1);e.console.warn("[ImageRecord.removeTile] trying to remove unknown tile",t)},getTileCount:function(){return this._tiles.length}},e.TileCache=function(t){t=t||{},this._maxImageCacheCount=t.maxImageCacheCount||e.DEFAULT_SETTINGS.maxImageCacheCount,this._tilesLoaded=[],this._imagesLoaded=[],this._imagesLoadedCount=0},e.TileCache.prototype={numTilesLoaded:function(){return this._tilesLoaded.length},cacheTile:function(r){e.console.assert(r,"[TileCache.cacheTile] options is required"),e.console.assert(r.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(r.tile.cacheKey,"[TileCache.cacheTile] options.tile.cacheKey is required"),e.console.assert(r.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");var o=r.cutoff||0,i=this._tilesLoaded.length,a=this._imagesLoaded[r.tile.cacheKey];if(a||(e.console.assert(r.image,"[TileCache.cacheTile] options.image is required to create an ImageRecord"),a=this._imagesLoaded[r.tile.cacheKey]=new n({image:r.image}),this._imagesLoadedCount++),a.addTile(r.tile),r.tile.cacheImageRecord=a,this._imagesLoadedCount>this._maxImageCacheCount){for(var s,l,c,u,d,f,p=null,h=-1,m=null,g=this._tilesLoaded.length-1;g>=0;g--)(s=(f=this._tilesLoaded[g]).tile).level<=o||s.beingDrawn||(p?(u=s.lastTouchTime,l=p.lastTouchTime,d=s.level,c=p.level,(u<l||u==l&&d>c)&&(p=s,h=g,m=f)):(p=s,h=g,m=f));p&&h>=0&&(this._unloadTile(m),i=h)}this._tilesLoaded[i]=new t({tile:r.tile,tiledImage:r.tiledImage})},clearTilesFor:function(t){var n;e.console.assert(t,"[TileCache.clearTilesFor] tiledImage is required");for(var r=0;r<this._tilesLoaded.length;++r)(n=this._tilesLoaded[r]).tiledImage===t&&(this._unloadTile(n),this._tilesLoaded.splice(r,1),r--)},getImageRecord:function(t){return e.console.assert(t,"[TileCache.getImageRecord] cacheKey is required"),this._imagesLoaded[t]},_unloadTile:function(t){e.console.assert(t,"[TileCache._unloadTile] tileRecord is required");var n=t.tile,r=t.tiledImage;n.unload(),n.cacheImageRecord=null;var o=this._imagesLoaded[n.cacheKey];o.removeTile(n),o.getTileCount()||(o.destroy(),delete this._imagesLoaded[n.cacheKey],this._imagesLoadedCount--),r.viewer.raiseEvent("tile-unloaded",{tile:n,tiledImage:r})}}}(OpenSeadragon),function(e){e.World=function(t){var n=this;e.console.assert(t.viewer,"[World] options.viewer is required"),e.EventSource.call(this),this.viewer=t.viewer,this._items=[],this._needsDraw=!1,this._autoRefigureSizes=!0,this._needsSizesFigured=!1,this._delegatedFigureSizes=function(e){n._autoRefigureSizes?n._figureSizes():n._needsSizesFigured=!0},this._figureSizes()},e.extend(e.World.prototype,e.EventSource.prototype,{addItem:function(t,n){if(e.console.assert(t,"[World.addItem] item is required"),e.console.assert(t instanceof e.TiledImage,"[World.addItem] only TiledImages supported at this time"),void 0!==(n=n||{}).index){var r=Math.max(0,Math.min(this._items.length,n.index));this._items.splice(r,0,t)}else this._items.push(t);this._autoRefigureSizes?this._figureSizes():this._needsSizesFigured=!0,this._needsDraw=!0,t.addHandler("bounds-change",this._delegatedFigureSizes),t.addHandler("clip-change",this._delegatedFigureSizes),this.raiseEvent("add-item",{item:t})},getItemAt:function(t){return e.console.assert(void 0!==t,"[World.getItemAt] index is required"),this._items[t]},getIndexOfItem:function(t){return e.console.assert(t,"[World.getIndexOfItem] item is required"),e.indexOf(this._items,t)},getItemCount:function(){return this._items.length},setItemIndex:function(t,n){e.console.assert(t,"[World.setItemIndex] item is required"),e.console.assert(void 0!==n,"[World.setItemIndex] index is required");var r=this.getIndexOfItem(t);if(n>=this._items.length)throw new Error("Index bigger than number of layers.");n!==r&&-1!==r&&(this._items.splice(r,1),this._items.splice(n,0,t),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:t,previousIndex:r,newIndex:n}))},removeItem:function(t){e.console.assert(t,"[World.removeItem] item is required");var n=e.indexOf(this._items,t);-1!==n&&(t.removeHandler("bounds-change",this._delegatedFigureSizes),t.removeHandler("clip-change",this._delegatedFigureSizes),t.destroy(),this._items.splice(n,1),this._figureSizes(),this._needsDraw=!0,this._raiseRemoveItem(t))},removeAll:function(){var e,t;for(this.viewer._cancelPendingImages(),t=0;t<this._items.length;t++)(e=this._items[t]).removeHandler("bounds-change",this._delegatedFigureSizes),e.removeHandler("clip-change",this._delegatedFigureSizes),e.destroy();var n=this._items;for(this._items=[],this._figureSizes(),this._needsDraw=!0,t=0;t<n.length;t++)e=n[t],this._raiseRemoveItem(e)},resetItems:function(){for(var e=0;e<this._items.length;e++)this._items[e].reset()},update:function(){for(var e=!1,t=0;t<this._items.length;t++)e=this._items[t].update()||e;return e},draw:function(){for(var e=0;e<this._items.length;e++)this._items[e].draw();this._needsDraw=!1},needsDraw:function(){for(var e=0;e<this._items.length;e++)if(this._items[e].needsDraw())return!0;return this._needsDraw},getHomeBounds:function(){return this._homeBounds.clone()},getContentFactor:function(){return this._contentFactor},setAutoRefigureSizes:function(e){this._autoRefigureSizes=e,e&this._needsSizesFigured&&(this._figureSizes(),this._needsSizesFigured=!1)},arrange:function(t){var n,r=(t=t||{}).immediately||!1,o=t.layout||e.DEFAULT_SETTINGS.collectionLayout,i=t.rows||e.DEFAULT_SETTINGS.collectionRows,a=t.columns||e.DEFAULT_SETTINGS.collectionColumns,s=t.tileSize||e.DEFAULT_SETTINGS.collectionTileSize,l=s+(t.tileMargin||e.DEFAULT_SETTINGS.collectionTileMargin);n=!t.rows&&a?a:Math.ceil(this._items.length/i);var c,u,d,f,p,h=0,m=0;this.setAutoRefigureSizes(!1);for(var g=0;g<this._items.length;g++)g&&g%n==0&&("horizontal"===o?(m+=l,h=0):(h+=l,m=0)),f=(d=(u=(c=this._items[g]).getBounds()).width>u.height?s:s*(u.width/u.height))*(u.height/u.width),p=new e.Point(h+(s-d)/2,m+(s-f)/2),c.setPosition(p,r),c.setWidth(d,r),"horizontal"===o?h+=l:m+=l;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var t=this._homeBounds?this._homeBounds.clone():null,n=this._contentSize?this._contentSize.clone():null,r=this._contentFactor||0;if(this._items.length){var o=this._items[0],i=o.getBounds();this._contentFactor=o.getContentSize().x/i.width;for(var a=o.getClippedBounds().getBoundingBox(),s=a.x,l=a.y,c=a.x+a.width,u=a.y+a.height,d=1;d<this._items.length;d++)i=(o=this._items[d]).getBounds(),this._contentFactor=Math.max(this._contentFactor,o.getContentSize().x/i.width),a=o.getClippedBounds().getBoundingBox(),s=Math.min(s,a.x),l=Math.min(l,a.y),c=Math.max(c,a.x+a.width),u=Math.max(u,a.y+a.height);this._homeBounds=new e.Rect(s,l,c-s,u-l),this._contentSize=new e.Point(this._homeBounds.width*this._contentFactor,this._homeBounds.height*this._contentFactor)}else this._homeBounds=new e.Rect(0,0,1,1),this._contentSize=new e.Point(1,1),this._contentFactor=1;this._contentFactor===r&&this._homeBounds.equals(t)&&this._contentSize.equals(n)||this.raiseEvent("metrics-change",{})},_raiseRemoveItem:function(e){this.raiseEvent("remove-item",{item:e})}})}(OpenSeadragon)},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9655:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var i,a=2147483647,s=36,l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function h(e){throw new RangeError(d[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(u,".")).split("."),t).join(".")}function v(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function y(e){return m(e,(function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+p(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=s)e=f(e/35);return f(r+36*e/(e+38))}function E(e){var t,n,r,o,i,l,c,u,d,p,m,g=[],v=e.length,b=0,E=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),g.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<v;){for(i=b,l=1,c=s;o>=v&&h("invalid-input"),((u=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:s)>=s||u>f((a-b)/l))&&h("overflow"),b+=u*l,!(u<(d=c<=x?1:c>=x+26?26:c-x));c+=s)l>f(a/(p=s-d))&&h("overflow"),l*=p;x=w(b-i,t=g.length+1,0==i),f(b/t)>a-E&&h("overflow"),E+=f(b/t),b%=t,g.splice(b++,0,E)}return y(g)}function x(e){var t,n,r,o,i,l,c,u,d,m,g,y,E,x,O,S=[];for(y=(e=v(e)).length,t=128,n=0,i=72,l=0;l<y;++l)(g=e[l])<128&&S.push(p(g));for(r=o=S.length,o&&S.push("-");r<y;){for(c=a,l=0;l<y;++l)(g=e[l])>=t&&g<c&&(c=g);for(c-t>f((a-n)/(E=r+1))&&h("overflow"),n+=(c-t)*E,t=c,l=0;l<y;++l)if((g=e[l])<t&&++n>a&&h("overflow"),g==t){for(u=n,d=s;!(u<(m=d<=i?1:d>=i+26?26:d-i));d+=s)O=u-m,x=s-m,S.push(p(b(m+O%x,0))),u=f(O/x);S.push(p(b(u,0))),i=w(n,E,r==o),n=0,++r}++n,++t}return S.join("")}i={version:"1.4.1",ucs2:{decode:v,encode:y},decode:E,encode:x,toASCII:function(e){return g(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return g(e,(function(e){return l.test(e)?E(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},77455:function(e,t,n){!function(e,t){"use strict";function n(e){return"string"==typeof e||"number"==typeof e}var r=function(){function e(){this._cache={}}var t=e.prototype;return t.set=function(e,t){this._cache[e]=t},t.get=function(e){return this._cache[e]},t.remove=function(e){delete this._cache[e]},t.clear=function(){this._cache={}},t.isValidCacheKey=function(e){return n(e)},e}(),o=r,i=function(){return!0};function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,r){if(r)throw new Error('[re-reselect] "options" as second argument is not supported anymore. Please provide an option object as single argument.');var a="function"==typeof e?{keySelector:e}:Object.assign({},e),s=0,l=n.pop(),c=Array.isArray(n[0])?n[0]:[].concat(n);n.push((function(){return s++,l.apply(void 0,arguments)}));var u=a.cacheObject||new o,d=a.selectorCreator||t.createSelector,f=u.isValidCacheKey||i;a.keySelectorCreator&&(a.keySelector=a.keySelectorCreator({keySelector:a.keySelector,inputSelectors:c,resultFunc:l}));var p=function(){var e=a.keySelector.apply(a,arguments);if(f(e)){var t=u.get(e);return void 0===t&&(t=d.apply(void 0,n),u.set(e,t)),t.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+e+'" has been returned by keySelector function.')};return p.getMatchingSelector=function(){var e=a.keySelector.apply(a,arguments);return u.get(e)},p.removeMatchingSelector=function(){var e=a.keySelector.apply(a,arguments);u.remove(e)},p.clearCache=function(){u.clear()},p.resultFunc=l,p.dependencies=c,p.cache=u,p.recomputations=function(){return s},p.resetRecomputations=function(){return s=0},p.keySelector=a.keySelector,p}}function s(e){if(void 0===e)throw new Error('Missing the required property "cacheSize".');if(!Number.isInteger(e)||e<=0)throw new Error('The "cacheSize" property must be a positive integer value.')}var l=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;s(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._cacheOrdering.push(e),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._cache[e]},t.remove=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t.isValidCacheKey=function(e){return n(e)},e}(),c=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;s(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._registerCacheHit(e),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._registerCacheHit(e),this._cache[e]},t.remove=function(e){this._deleteCacheHit(e),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t._registerCacheHit=function(e){this._deleteCacheHit(e),this._cacheOrdering.push(e)},t._deleteCacheHit=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1)},t.isValidCacheKey=function(e){return n(e)},e}(),u=function(){function e(){this._cache=new Map}var t=e.prototype;return t.set=function(e,t){this._cache.set(e,t)},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),d=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;s(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),f=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;s(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){var t=this._cache.get(e);return this._cache.has(e)&&(this.remove(e),this._cache.set(e,t)),t},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}();e.FifoMapCache=d,e.FifoObjectCache=l,e.FlatMapCache=u,e.FlatObjectCache=r,e.LruMapCache=f,e.LruObjectCache=c,e.createCachedSelector=a,e.createStructuredCachedSelector=function(e){return t.createStructuredSelector(e,a)},e.default=a,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(22325))},96162:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>f,uj:()=>y});var r=n(96540),o={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},i=function(e){var t=e.message,n=e["aria-live"];return r.createElement("div",{style:o,role:"log","aria-live":n},t||"")};i.propTypes={};const a=i;function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=s(this,e.call.apply(e,[this].concat(i))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},s(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.oldPolitemessage,r=t.oldPoliteMessageId,o=t.oldAssertiveMessage,i=t.oldAssertiveMessageId,a=e.politeMessage,s=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return n!==a||r!==s?{politeMessage1:t.setAlternatePolite?"":a,politeMessage2:t.setAlternatePolite?a:"",oldPolitemessage:a,oldPoliteMessageId:s,setAlternatePolite:!t.setAlternatePolite}:o!==l||i!==c?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:c,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,n=e.assertiveMessage2,o=e.politeMessage1,i=e.politeMessage2;return r.createElement("div",null,r.createElement(a,{"aria-live":"assertive",message:t}),r.createElement(a,{"aria-live":"assertive",message:n}),r.createElement(a,{"aria-live":"polite",message:o}),r.createElement(a,{"aria-live":"polite",message:i}))},t}(r.Component);l.propTypes={};const c=l;function u(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const d=r.createContext({announceAssertive:u,announcePolite:u}),f=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.announcePolite=function(e,t){r.setState({announcePoliteMessage:e,politeMessageId:t||""})},r.announceAssertive=function(e,t){r.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,n=e.politeMessageId,o=e.announceAssertiveMessage,i=e.assertiveMessageId,a=e.updateFunctions;return r.createElement(d.Provider,{value:a},this.props.children,r.createElement(c,{assertiveMessage:o,assertiveMessageId:i,politeMessage:t,politeMessageId:n}))},t}(r.Component);var p=n(68140),h=n.n(p);function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=m(this,e.call.apply(e,[this].concat(i))),r.announce=function(){var e=r.props,t=e.message,n=e["aria-live"],o=e.announceAssertive,i=e.announcePolite;"assertive"===n&&o(t||"",h()()),"polite"===n&&i(t||"",h()())},m(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,n=e.announceAssertive,r=e.announcePolite;!0!==t&&"true"!==t||(n(""),r(""))},t.prototype.render=function(){return null},t}(r.Component);g.propTypes={};Object.assign;var v=function(e){var t=e.children;return r.createElement(d.Consumer,null,(function(e){return t(e)}))};v.propTypes={};const y=v},46049:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},99592:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)3&t||(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},68140:(e,t,n)=>{var r=n(99592),o=n(46049);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}},25264:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(n(96540)),i=s(n(17965)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!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&&d(e,t)}(g,e);var t,n,s,l,m=(s=g,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(s);if(l){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(f(e=m.call.apply(m,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,c=o.default.Children.only(s),u=(0,i.default)(r,l);a&&a(r,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=g,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=function(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}(e,a),r=o.default.Children.only(t);return o.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.default.PureComponent);t.CopyToClipboard=m,h(m,"defaultProps",{onCopy:void 0,options:void 0})},59399:(e,t,n)=>{"use strict";var r=n(25264).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},50052:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FILE:()=>r,TEXT:()=>i,URL:()=>o});var r="__NATIVE_FILE__",o="__NATIVE_URL__",i="__NATIVE_TEXT__"},98943:(e,t,n)=>{"use strict";function r(e){var t=null;return function(){return null==t&&(t=e()),t}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(t),n.d(t,{NativeTypes:()=>p,default:()=>k,getEmptyImage:()=>T});var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(t.prototype,n),e}(),a=r((function(){return/firefox/i.test(navigator.userAgent)})),s=r((function(){return Boolean(window.safari)}));function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,l=[],c=[],u=[],d=0;d<r-1;d++)a=t[d+1]-t[d],s=n[d+1]-n[d],c.push(a),l.push(s),u.push(s/a);for(var f=[u[0]],p=0;p<c.length-1;p++){var h=u[p],m=u[p+1];if(h*m<=0)f.push(0);else{a=c[p];var g=c[p+1],v=a+g;f.push(3*v/((v+g)/h+(v+a)/m))}}f.push(u[u.length-1]);for(var y,b=[],w=[],E=0;E<f.length-1;E++){y=u[E];var x=f[E],O=1/c[E],S=x+f[E+1]-y-y;b.push((y-x-S)*O),w.push(S*O*O)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=w}var t,n;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,c=i.length-1;l<=c;){var u=t[s=Math.floor(.5*(l+c))];if(u<e)l=s+1;else{if(!(u>e))return n[s];c=s-1}}var d=e-t[a=Math.max(0,c)],f=d*d;return n[a]+r[a]*d+o[a]*f+i[a]*d*f}}])&&l(t.prototype,n),e}();function u(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function d(e){return{x:e.clientX,y:e.clientY}}var f,p=n(50052);function h(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(m(f={},p.FILE,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),m(f,p.URL,{exposeProperties:{urls:function(e,t){return h(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),m(f,p.TEXT,{exposeProperties:{text:function(e,t){return h(e,t,"")}},matchesTypes:["Text","text/plain"]}),f);function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&v(t.prototype,n),e}();function b(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(g).filter((function(e){return g[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var E=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&w(t.prototype,n),e}();function x(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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _,C=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return u(r.sourceNodes.get(e))},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return r.document&&r.document.body&&document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=d(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=b(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var l=r.monitor.getSourceId(),f=r.sourceNodes.get(l),p=r.sourcePreviewNodes.get(l)||f;if(p){var h=r.getCurrentSourcePreviewNodeOptions(),m=function(e,t,n,r,o){var i,l,d="IMG"===(i=t).nodeName&&(a()||!document.documentElement.contains(i)),f=u(d?e:t),p={x:n.x-f.x,y:n.y-f.y},h=e.offsetWidth,m=e.offsetHeight,g=r.anchorX,v=r.anchorY,y=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return s()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(d,t,h,m),b=y.dragPreviewWidth,w=y.dragPreviewHeight,E=o.offsetX,x=o.offsetY,O=0===x||x;return{x:0===E||E?E:new c([0,.5,1],[p.x,p.x/h*b,p.x+b-h]).interpolate(g),y:O?x:(l=new c([0,.5,1],[p.y,p.y/m*w,p.y+w-m]).interpolate(v),s()&&d&&(l+=(window.devicePixelRatio-1)*w),l)}}(f,p,n,{anchorX:h.anchorX,anchorY:h.anchorY},{offsetX:h.offsetX,offsetY:h.offsetY});o.setDragImage(p,m.x,m.y)}}try{o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(i)r.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=b(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;r.dragEnterTargetIds=[],r.monitor.isDragging()&&(r.altKeyPressed=e.altKey,a()||r.actions.hover(t,{clientOffset:d(e)}),t.some((function(e){return r.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:d(e)}),(t||[]).some((function(e){return r.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem()&&r.currentNativeSource.loadDataTransfer(e.dataTransfer),r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:d(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new E(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new i(this.isNodeInDocument)}var t,n;return t=e,(n=[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return O({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return O({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(p).some((function(t){return p[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new y(g[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&A(t.prototype,n),e}();function T(){return _||((_=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),_}const k=function(e,t){return new C(e,t)}},98028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(98943)),o=a(n(61958)),i=n(50853);function a(e){return e&&e.__esModule?e:{default:e}}var s={backends:[{backend:r.default,transition:i.MouseTransition},{backend:o.default,options:{enableMouseEvents:!0},preview:!0,transition:i.TouchTransition}]};t.default=s},28746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HTML5DragTransition:()=>r.HTML5DragTransition,MouseTransition:()=>r.MouseTransition,Preview:()=>p,TouchTransition:()=>r.TouchTransition,createTransition:()=>r.createTransition,default:()=>r.default});var r=n(50853),o=n(96540),i=n(5556),a=n.n(i),s=n(33085),l=o.createContext(),c=function(e){var t=(0,s.V)((function(e){return{currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),itemType:e.getItemType(),item:e.getItem()}}));if(!t.isDragging||null===t.currentOffset)return null;var n,r,i,a={itemType:t.itemType,item:t.item,style:(n=t.currentOffset,r="translate(".concat(n.x,"px, ").concat(n.y,"px)"),{pointerEvents:"none",position:"fixed",top:0,left:0,transform:r,WebkitTransform:r})};return i=e.children&&"function"==typeof e.children?e.children(a):e.children?e.children:e.generator(a),o.createElement(l.Provider,{value:a},i)};c.propTypes={generator:a().func,children:a().oneOfType([a().node,a().func])};const u=c;function d(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 f=function(e){var t,n,i=(t=(0,o.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1];return(0,o.useEffect)((function(){var e={backendChanged:function(e){s(e.previewEnabled())}};return r.PreviewManager.register(e),function(){r.PreviewManager.unregister(e)}})),a?o.createElement(u,e):null};f.Context=l,f.propTypes=u.propTypes;const p=f},61958:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,o=n(72954);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(r||(r={}));function i(e){return void 0===e.button||0===e.button}function a(e){return!!e.targetTouches}function s(e,t){return a(e)?function(e,t){return 1===e.targetTouches.length?s(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?s(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}const l=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u,d=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=n,this.delayTouchStart=t.delayTouchStart||t.delay||0,this.delayMouseStart=t.delayMouseStart||t.delay||0,Object.keys(t).forEach((function(e){null!=t[e]&&(r[e]=t[e])}))}var t,n;return t=e,(n=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&c(t.prototype,n),e}();function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(p(u={},r.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),p(u,r.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),p(u,r.keyboard,{keydown:"keydown"}),u),m=function(){function e(t,n,o){var l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getSourceClientOffset=function(e){return function(e){var t=1===e.nodeType?e:e.parentElement;if(t){var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}}(l.sourceNodes[e])},this.handleTopMoveStartCapture=function(e){i(e)&&(l.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(l.moveStartSourceIds)&&l.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if(i(e)){var t=s(e);t&&(a(e)&&(l.lastTargetTouchFallback=e.targetTouches[0]),l._mouseClientOffset=t),l.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if(i(e)){var t=e.type===h.touch.start?l.options.delayTouchStart:l.options.delayMouseStart;l.timeout=setTimeout(l.handleTopMoveStart.bind(l,e),t),l.waitingForDelay=!0}},this.handleTopMoveCapture=function(){l.dragOverTargetIds=[]},this.handleMove=function(e,t){l.dragOverTargetIds&&l.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(l.timeout&&clearTimeout(l.timeout),l.document&&!l.waitingForDelay){var t,n,r,o,i=l.moveStartSourceIds,a=l.dragOverTargetIds,c=l.options.enableHoverOutsideTarget,u=s(e,l.lastTargetTouchFallback);if(u)if(l._isScrolling||!l.monitor.isDragging()&&function(e,t,n,r,o){if(!o)return!1;for(var i=180*Math.atan2(r-t,n-e)/Math.PI+180,a=0;a<o.length;++a)if((null==o[a].start||i>=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(l._mouseClientOffset.x||0,l._mouseClientOffset.y||0,u.x,u.y,l.options.scrollAngleRanges))l._isScrolling=!0;else if(!l.monitor.isDragging()&&l._mouseClientOffset.hasOwnProperty("x")&&i&&(t=l._mouseClientOffset.x||0,n=l._mouseClientOffset.y||0,r=u.x,o=u.y,Math.sqrt(Math.pow(Math.abs(r-t),2)+Math.pow(Math.abs(o-n),2))>(l.options.touchSlop?l.options.touchSlop:0))&&(l.moveStartSourceIds=void 0,l.actions.beginDrag(i,{clientOffset:l._mouseClientOffset,getSourceClientOffset:l.getSourceClientOffset,publishSource:!1})),l.monitor.isDragging()){var d=l.sourceNodes[l.monitor.getSourceId()];l.installSourceNodeRemovalObserver(d),l.actions.publishDragSource(),e.preventDefault();var f=(a||[]).map((function(e){return l.targetNodes[e]})),p=l.options.getDropTargetElementsAtPoint?l.options.getDropTargetElementsAtPoint(u.x,u.y,f):l.document.elementsFromPoint(u.x,u.y),h=[];for(var m in p)if(p.hasOwnProperty(m)){var g=p[m];for(h.push(g);g;)g=g.parentElement,-1===h.indexOf(g)&&h.push(g)}var v=h.filter((function(e){return f.indexOf(e)>-1})).map((function(e){for(var t in l.targetNodes)if(e===l.targetNodes[t])return t})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(c)for(var y in l.targetNodes)if(l.targetNodes[y]&&l.targetNodes[y].contains(d)&&-1===v.indexOf(y)){v.unshift(y);break}v.reverse(),l.actions.hover(v,{clientOffset:u})}}},this.handleTopMoveEndCapture=function(e){l._isScrolling=!1,l.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||!(1&e.buttons)}(e)&&(l.monitor.isDragging()&&!l.monitor.didDrop()?(e.preventDefault(),l._mouseClientOffset={},l.uninstallSourceNodeRemovalObserver(),l.actions.drop(),l.actions.endDrag()):l.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&l.monitor.isDragging()&&(l._mouseClientOffset={},l.uninstallSourceNodeRemovalObserver(),l.actions.endDrag())},this.options=new d(o,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes={},this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.targetNodes={},this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(r.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(r.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(r.keyboard)}var t,n;return t=e,(n=[{key:"setup",value:function(){this.window&&((0,o.V)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.window,"start",this.getTopMoveStartHandler()),this.addEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.window,"move",this.handleTopMove),this.addEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.window,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.window&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.window,"start",this.handleTopMoveStart),this.removeEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.window,"move",this.handleTopMove),this.removeEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.window,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,n,r){var o=l?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=h[r][t];i&&e.addEventListener(i,n,o)}))}},{key:"removeEventListener",value:function(e,t,n,r){var o=l?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=h[r][t];i&&e.removeEventListener(i,n,o)}))}},{key:"connectDragSource",value:function(e,t){var n=this,r=this.handleMoveStart.bind(this,e);return this.sourceNodes[e]=t,this.addEventListener(t,"start",r),function(){delete n.sourceNodes[e],n.removeEventListener(t,"start",r)}}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete r.sourcePreviewNodes[e],delete r.sourcePreviewNodeOptions[e]}}},{key:"connectDropTarget",value:function(e,t){var n=this;if(!this.document)return function(){return null};var r=function(r){if(n.document&&n.monitor.isDragging()){var o;switch(r.type){case h.mouse.move:o={x:r.clientX,y:r.clientY};break;case h.touch.move:o={x:r.touches[0].clientX,y:r.touches[0].clientY}}var i=null!=o?n.document.elementFromPoint(o.x,o.y):void 0,a=i&&t.contains(i);return i===t||a?n.handleMove(r,e):void 0}};return this.addEventListener(this.document.body,"move",r),this.targetNodes[e]=t,function(){n.document&&(delete n.targetNodes[e],n.removeEventListener(n.document.body,"move",r))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&f(t.prototype,n),e}();const g=function(e,t){return new m(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}},17757:(e,t,n)=>{"use strict";n.d(t,{M:()=>me,s:()=>ge});var r=n(96540),o=n(68238),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",s="dnd-core/PUBLISH_DRAG_SOURCE",l="dnd-core/HOVER",c="dnd-core/DROP",u="dnd-core/END_DRAG",d=function(e,t){return e===t};function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function m(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case i:case a:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case l:return e=n.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{clientOffset:o.clientOffset});case u:case c:return h;default:return n}}var g="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",y="dnd-core/REMOVE_SOURCE",b="dnd-core/REMOVE_TARGET";function w(e){return w="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},w(e)}function E(e){return"object"===w(e)}function x(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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function _(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case a:return O({},n,{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case s:return O({},n,{isSourcePublic:!0});case l:return O({},n,{targetIds:o.targetIds});case b:return-1===n.targetIds.indexOf(o.targetId)?n:O({},n,{targetIds:(e=n.targetIds,t=o.targetId,e.filter((function(e){return e!==t})))});case c:return O({},n,{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case u:return O({},n,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case g:case v:return e+1;case y:case b:return e-1;default:return e}}var T=[],k=[];function P(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case l:break;case g:case v:case b:case y:return T;default:return k}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var n=new Map,r=function(e){return n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e,t){1===e&&o.push(t)})),o}(r,i),s=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,i);if(!s)return T;var c=i[i.length-1],u=r[r.length-1];return c!==u&&(c&&a.push(c),u&&a.push(u)),a}function I(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:P(n.dirtyHandlerIds,{type:r.type,payload:j({},r.payload,{prevTargetIds:(e=n,t=[],"dragOperation.targetIds".split(".").reduce((function(e,n){return e&&e[n]?e[n]:t||null}),e))})}),dragOffset:m(n.dragOffset,r),refCount:C(n.refCount,r),dragOperation:_(n.dragOperation,r),stateId:I(n.stateId)}}T.__IS_NONE__=!0,k.__IS_ALL__=!0;var M=n(72954);function L(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var z={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function W(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,s=n.getSourceClientOffset,l=e.getMonitor(),c=e.getRegistry();e.dispatch(L(i)),function(e,t,n){(0,M.V)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,M.V)(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,l,c);var u=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,l);if(null!==u){var d=null;i&&(function(e){(0,M.V)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(s),d=s(u)),e.dispatch(L(i,d));var f=c.getSource(u).beginDrag(l,u);!function(e){(0,M.V)(E(e),"Item must be an object.")}(f),c.pinSource(u);var p=c.getSourceType(u);return{type:a,payload:{itemType:p,item:f,sourceId:u,clientOffset:i||null,sourceClientOffset:d||null,isSourcePublic:!!o}}}e.dispatch(z)}}function B(e){return function(){if(e.getMonitor().isDragging())return{type:s}}}function F(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function H(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){(0,M.V)(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){(0,M.V)(t.isDragging(),"Cannot call hover while not dragging."),(0,M.V)(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];(0,M.V)(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");var i=n.getTarget(o);(0,M.V)(i,"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];F(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:l,payload:{targetIds:r,clientOffset:n||null}}}}function V(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 U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){(0,M.V)(e.isDragging(),"Cannot call drop while not dragging."),(0,M.V)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach((function(o,i){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){(0,M.V)(void 0===e||E(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(o,i,r,n),s={type:c,payload:{dropResult:U({},t,{},a)}};e.dispatch(s)}))}}function $(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){(0,M.V)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:u}}}function K(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var X,Y=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.store=t,this.registry=n}var t,n;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;(0,M.V)("function"==typeof e,"listener must be a function."),(0,M.V)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe((function(){var o=t.store.getState(),i=o.stateId;try{var a=i===r||i===r+1&&!function(e,t){return e!==T&&(e===k||void 0===t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}(o.dirtyHandlerIds,n);a||e()}finally{r=i}}))}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,M.V)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,M.V)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,M.V)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&F(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,M.V)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!F(n,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return r=(e=this.store.getState().dragOffset).clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,r&&o&&i?K((n=i,{x:(t=r).x+n.x,y:t.y+n.y}),o):null;var e,t,n,r,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,n=e.initialClientOffset,t&&n?K(t,n):null;var e,t,n}}],n&&Z(t.prototype,n),e}(),Q=0;function J(e){return J="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},J(e)}function ee(e,t){t&&Array.isArray(e)?e.forEach((function(e){return ee(e,!1)})):(0,M.V)("string"==typeof e||"symbol"===J(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(X||(X={}));const te="undefined"!=typeof global?global:self,ne=te.MutationObserver||te.WebKitMutationObserver;function re(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const oe="function"==typeof ne?function(e){let t=1;const n=new ne(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:re;class ie{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const ae=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=oe(this.flush),this.requestErrorThrow=re((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},se=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new ie(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(ae.registerPendingError);function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ce(e){switch(e[0]){case"S":return X.SOURCE;case"T":return X.TARGET;default:(0,M.V)(!1,"Cannot parse handler ID: ".concat(e))}}function ue(e,t){var n,r,o=e.entries(),i=!1;do{var a=o.next(),s=a.done;if((n=a.value,r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[1]===t)return!0;i=!!s}while(!i);return!1}var de=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,n;return t=e,n=[{key:"addSource",value:function(e,t){ee(e),function(e){(0,M.V)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,M.V)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,M.V)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(X.SOURCE,e,t);return this.store.dispatch(function(e){return{type:g,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){ee(e,!0),function(e){(0,M.V)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,M.V)("function"==typeof e.hover,"Expected hover to be a function."),(0,M.V)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(X.TARGET,e,t);return this.store.dispatch(function(e){return{type:v,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return ue(this.dragSources,e)||ue(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,M.V)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return(0,M.V)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,M.V)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,M.V)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return ce(e)===X.SOURCE}},{key:"isTargetId",value:function(e){return ce(e)===X.TARGET}},{key:"removeSource",value:function(e){var t,n=this;(0,M.V)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:y,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},ae.enqueueTask(se.create(t))}},{key:"removeTarget",value:function(e){(0,M.V)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:b,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,M.V)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,M.V)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(Q++).toString();switch(e){case X.SOURCE:return"S".concat(t);case X.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(r,t),e===X.SOURCE?this.dragSources.set(r,n):e===X.TARGET&&this.dropTargets.set(r,n),r}}],n&&le(t.prototype,n),e}();function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,o.y$)(N,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n);this.store=r,this.monitor=new Y(r,new de(r)),r.subscribe(this.handleRefCountChange)}var t,n;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:W(e),publishDragSource:B(e),hover:H(e),drop:q(e),endDrag:$(e)}}(this);return Object.keys(n).reduce((function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&fe(t.prototype,n),e}();function he(e,t,n,r){var o=new pe(r),i=e(o,t,n);return o.receiveBackend(i),o}var me=r.createContext({dragDropManager:void 0});function ge(e,t,n,r){return{dragDropManager:he(e,t,n,r)}}},79551:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var r=n(96540),o=n(17757);var i=0,a=(0,r.memo)((function(e){var t,n,a=e.children,c=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;return i[s]||(i[s]=(0,o.s)(e,t,n,r)),i[s]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(function(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}(e,["children"])),u=(n=2,function(e){if(Array.isArray(e))return e}(t=c)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),d=u[0],f=u[1];return r.useEffect((function(){return f&&i++,function(){f&&0==--i&&(l()[s]=null)}}),[]),r.createElement(o.M.Provider,{value:d},a)}));a.displayName="DndProvider";var s=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function l(){return void 0!==n.g?n.g:window}},64080:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var r=n(72954);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=!1,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,n;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,r.V)(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,n),e}()},28003:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(49194),o=n(81972),i=n(56979);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,o.A)({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,(0,i.i)(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n;return t=e,(n=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,r.b)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&a(t.prototype,n),e}()},63207:(e,t,n)=>{"use strict";function r(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function o(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}n.d(t,{V:()=>o,l:()=>r})},81972:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96540),o=n(72954);function i(e,t){"function"==typeof e?e(t):e.current=t}function a(e){var t={};return Object.keys(e).forEach((function(n){var a=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var s=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,r.isValidElement)(t)){var a=t;return e(a,n),a}var s=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(s);var l=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return(0,o.V)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,r.cloneElement)(e,{ref:function(e){i(n,e),i(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(s,l)}}(a);t[n]=function(){return s}}})),t}},42727:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(49194),o=n(96540),i=n(20776);function a(e,t,n){var a,s,l=(a=(0,o.useState)((function(){return t(e)})),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),c=l[0],u=l[1],d=(0,o.useCallback)((function(){var o=t(e);(0,r.b)(c,o)||(u(o),n&&n())}),[c,e,n]);return(0,i.E)(d,[]),[c,d]}},81882:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(96540),o=n(72954),i=n(17757);function a(){var e=(0,r.useContext)(i.M).dragDropManager;return(0,o.V)(null!=e,"Expected drag drop context"),e}},20776:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(96540),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},25183:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(20776),o=n(42727);function i(e,t,n){var i,a,s=(i=(0,o.F)(e,t,n),a=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=s[0],c=s[1];return(0,r.E)((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(c,{handlerIds:[t]})}),[e,c]),l}},33085:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(96540),o=n(81882),i=n(42727);function a(e){var t,n,a=(0,o.u)().getMonitor(),s=(t=(0,i.F)(a,e),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=s[0],c=s[1];return(0,r.useEffect)((function(){return a.subscribeToOffsetChange(c)})),(0,r.useEffect)((function(){return a.subscribeToStateChange(c)})),l}},26206:(e,t,n)=>{"use strict";n.d(t,{H:()=>d});var r=n(96540),o=n(72954),i=n(25183),a=n(20776),s=n(63207),l=n(81882),c=n(28003),u=n(64080);function d(e){var t=(0,r.useRef)(e);t.current=e,(0,o.V)(null!=e.accept,"accept must be defined");var n,d,f,p=(n=(0,l.u)(),d=[(0,r.useMemo)((function(){return new u.b(n)}),[n]),(0,r.useMemo)((function(){return new c.P(n.getBackend())}),[n])],f=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(d,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),h=p[0],m=p[1];!function(e,t,n){var o=(0,l.u)(),i=(0,r.useMemo)((function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}}),[t]);(0,a.E)((function(){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}((0,s.l)(e.current.accept,i,o),2),a=r[0],l=r[1];return t.receiveHandlerId(a),n.receiveHandlerId(a),l}),[t,n])}(t,h,m);var g=(0,i.F)(h,t.current.collect||function(){return{}},(function(){return m.reconnect()})),v=(0,r.useMemo)((function(){return m.hooks.dropTarget()}),[m]);return(0,a.E)((function(){m.dropTargetOptions=e.options||null,m.reconnect()}),[e.options]),[g,v]}},79543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DndContext:()=>r.M,DndProvider:()=>o.Q,DragLayer:()=>se,DragPreviewImage:()=>a,DragSource:()=>X,DropTarget:()=>ne,createDndContext:()=>r.s,useDrag:()=>x,useDragLayer:()=>S.V,useDrop:()=>O.H});var r=n(17757),o=n(79551),i=n(96540),a=i.memo((function(e){var t=e.connect,n=e.src;if("undefined"!=typeof Image){var r=new Image;r.src=n,r.onload=function(){return t(r)}}return null}));a.displayName="DragPreviewImage";var s=n(72954),l=n(25183),c=n(20776),u=n(63207),d=n(81882);function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=!1,h=!1,m=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,s.V)(!p,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return p=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{p=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,s.V)(!h,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return h=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{h=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&f(t.prototype,n),e}(),g=n(81972),v=n(56979),y=n(49194);function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var w=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,g.A)({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,(0,v.i)(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,(0,v.i)(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();this.handlerId?this.dragPreview&&t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.disconnectDragPreview(),this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.disconnectDragPreview()}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,y.b)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,y.b)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&b(t.prototype,n),e}();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(e)}function x(e){var t=(0,i.useRef)(e);t.current=e,(0,s.V)(null!=e.item,"item must be defined"),(0,s.V)(null!=e.item.type,"item type must be defined");var n,r,o,a=(n=(0,d.u)(),r=[(0,i.useMemo)((function(){return new m(n)}),[n]),(0,i.useMemo)((function(){return new w(n.getBackend())}),[n])],o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),f=a[0],p=a[1];!function(e,t,n){var r=(0,d.u)(),o=(0,i.useMemo)((function(){return{beginDrag:function(){var n=e.current,r=n.begin,o=n.item;if(r){var i=r(t);return(0,s.V)(null==i||"object"===E(i),"dragSpec.begin() must either return an object, undefined, or null"),i||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,r){var o=e.current.isDragging;return o?o(t):r===n.getSourceId()},endDrag:function(){var r=e.current.end;r&&r(t.getItem(),t),n.reconnect()}}}),[]);(0,c.E)((function(){var i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}((0,u.V)(e.current.item.type,o,r),2),a=i[0],s=i[1];return t.receiveHandlerId(a),n.receiveHandlerId(a),s}),[])}(t,f,p);var h=(0,l.F)(f,t.current.collect||function(){return{}},(function(){return p.reconnect()})),g=(0,i.useMemo)((function(){return p.hooks.dragSource()}),[p]),v=(0,i.useMemo)((function(){return p.hooks.dragPreview()}),[p]);return(0,c.E)((function(){p.dragSourceOptions=t.current.options||null,p.reconnect()}),[p]),(0,c.E)((function(){p.dragPreviewOptions=t.current.previewOptions||null,p.reconnect()}),[p]),[h,g,v]}var O=n(26206),S=n(33085);function A(e){return A="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},A(e)}function _(e){return"function"==typeof e}function C(){}function T(e){if(!function(e){return"object"===A(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function k(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function P(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){return e&&e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}(e);var t}var I=n(4146),R=n.n(I);function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),e}var M=function(){function e(t){j(this,e),this.isDisposed=!1,this.action=_(t)?t:C}return N(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return e&&_(e.dispose)}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();M.empty={dispose:C};var L=function(){function e(){j(this,e),this.isDisposed=!1;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return N(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),z=function(){function e(){j(this,e),this.isDisposed=!1}return N(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function W(e){return W="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},W(e)}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function H(e,t){return H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},H(e,t)}function V(e){var t=e.DecoratedComponent,n=e.createHandler,o=e.createMonitor,a=e.createConnector,l=e.registerHandler,c=e.containerDisplayName,u=e.getType,d=e.collect,f=e.options.arePropsEqual,p=void 0===f?y.b:f,h=t,m=t.displayName||t.name||"Component",g=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=function(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,F(t).call(this,e))).decoratedRef=i.createRef(),n.handleChange=function(){var e=n.getCurrentState();(0,y.b)(e,n.state)||n.setState(e)},n.disposable=new z,n.receiveProps(e),n.dispose(),n}var c,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(t,e),c=t,(f=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,s.V)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!p(e,this.props)||!(0,y.b)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new z,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){p(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(u(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=(i=l(e,this.handler,this.manager),a=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new L(new M(o),new M(r)))}var i,a}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?d(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return i.createElement(r.M.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),i.createElement(h,Object.assign({},e.props,e.getCurrentState(),{ref:P(h)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,s.V)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",m,m),void 0!==e&&(this.manager=e,this.handlerMonitor=o(e),this.handlerConnector=a(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&B(c.prototype,f),t}(i.Component);return g.DecoratedComponent=t,g.displayName="".concat(c,"(").concat(m,")"),R()(g,t)}function U(e){return U="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},U(e)}function G(e,t){return"string"==typeof e||"symbol"===U(e)||!!t&&Array.isArray(e)&&e.every((function(e){return G(e,!1)}))}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $=["canDrag","beginDrag","isDragging","endDrag"],K=["beginDrag"],Z=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=n,this.ref=r}var t,n;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,k(this.ref))}}])&&q(t.prototype,n),e}();function X(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&((0,s.V)(G(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),(0,s.V)(T(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var i=function(e){return Object.keys(e).forEach((function(t){(0,s.V)($.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',$.join(", "),t),(0,s.V)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),K.forEach((function(t){(0,s.V)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new Z(e,t,n)}}(t);return(0,s.V)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),(0,s.V)(T(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return V({containerDisplayName:"DragSource",createHandler:i,registerHandler:u.V,createConnector:function(e){return new w(e)},createMonitor:function(e){return new m(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}var Y=n(28003),Q=n(64080);function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ee=["canDrop","hover","drop"],te=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=n,this.ref=r}var t,n;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,k(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&J(t.prototype,n),e}();function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&((0,s.V)(G(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),(0,s.V)(T(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var i=function(e){return Object.keys(e).forEach((function(t){(0,s.V)(ee.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',ee.join(", "),t),(0,s.V)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new te(e,t,n)}}(t);return(0,s.V)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),(0,s.V)(T(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return V({containerDisplayName:"DropTarget",createHandler:i,registerHandler:u.l,createMonitor:function(e){return new Q.b(e)},createConnector:function(e){return new Y.P(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}function re(e){return re="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},re(e)}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}function ae(e,t){return ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ae(e,t)}function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.V)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),(0,s.V)(T(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var o=n,a=t.arePropsEqual,l=void 0===a?y.b:a,c=o.displayName||o.name||"Component",u=function(t){function n(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(e=function(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,ie(n).apply(this,arguments))).isCurrentlyMounted=!1,e.ref=i.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();(0,y.b)(t,e.state)||e.setState(t)}},e}var a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ae(e,t)}(n,t),a=n,(u=[{key:"getDecoratedComponentInstance",value:function(){return(0,s.V)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!l(e,this.props)||!(0,y.b)(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return i.createElement(r.M.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?i.createElement(o,Object.assign({},e.props,e.state,{ref:P(o)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,(0,s.V)("object"===re(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",c,c);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}])&&oe(a.prototype,u),n}(i.Component);return u.displayName="DragLayer(".concat(c,")"),u.DecoratedComponent=n,R()(u,n)}}},56979:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){return null!==e&&"object"===r(e)&&e.hasOwnProperty("current")}n.d(t,{i:()=>o})},22551:(e,t,n)=>{"use strict";var r=n(96540),o=n(45228),i=n(69982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,d=null,f={onError:function(e){l=!0,c=e}};function p(e,t,n,r,o,i,a,u,d){l=!1,c=null,s.apply(f,arguments)}var h=null,m=null,g=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,o,i,s,f,h){if(p.apply(this,arguments),l){if(!l)throw Error(a(198));var m=c;l=!1,c=null,u||(u=!0,d=m)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!x[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in x[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,l=r;if(O.hasOwnProperty(l))throw Error(a(99,l));O[l]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&E(c[o],s,l);o=!0}else i.registrationName?(E(i.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function E(e,t,n){if(S[e])throw Error(a(100,e));S[e]=t,A[e]=t.eventTypes[n].dependencies}var x=[],O={},S={},A={};function _(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),T=null,k=null,P=null;function I(e){if(e=m(e)){if("function"!=typeof T)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),T(e.stateNode,e.type,t))}}function R(e){k?P?P.push(e):P=[e]:k=e}function j(){if(k){var e=k,t=P;if(P=k=null,I(e),t)for(e=0;e<t.length;e++)I(t[e])}}function D(e,t){return e(t)}function N(e,t,n,r,o){return e(t,n,r,o)}function M(){}var L=D,z=!1,W=!1;function B(){null===k&&null===P||(M(),j())}function F(e,t,n){if(W)return e(t,n);W=!0;try{return L(e,t,n)}finally{W=!1,B()}}var H=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V=Object.prototype.hasOwnProperty,U={},G={};function q(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$[e]=new q(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$[t]=new q(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$[e]=new q(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$[e]=new q(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){$[e]=new q(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$[e]=new q(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){$[e]=new q(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){$[e]=new q(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){$[e]=new q(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Z(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Z);$[t]=new q(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Z);$[t]=new q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Z);$[t]=new q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){$[e]=new q(e,1,!1,e.toLowerCase(),null,!1)})),$.xlinkHref=new q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){$[e]=new q(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e,t,n,r){var o=$.hasOwnProperty(t)?$[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!V.call(G,e)||!V.call(U,e)&&(H.test(e)?G[e]=!0:(U[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,oe=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,se=J?Symbol.for("react.concurrent_mode"):60111,le=J?Symbol.for("react.forward_ref"):60112,ce=J?Symbol.for("react.suspense"):60113,ue=J?Symbol.for("react.suspense_list"):60120,de=J?Symbol.for("react.memo"):60115,fe=J?Symbol.for("react.lazy"):60116,pe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ge(e.type);case pe:return ge(e.render);case fe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=ge(e.type);n=null,r&&(n=ge(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(Q,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Oe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Y(e,"checked",t,!1)}function Ae(e,t){Se(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function _e(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Te(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ke(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Re(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function je(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function De(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ne(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?De(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Me,Le,ze=(Le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Me=Me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Le(e,t)}))}:Le);function We(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Be(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fe={animationend:Be("Animation","AnimationEnd"),animationiteration:Be("Animation","AnimationIteration"),animationstart:Be("Animation","AnimationStart"),transitionend:Be("Transition","TransitionEnd")},He={},Ve={};function Ue(e){if(He[e])return He[e];if(!Fe[e])return e;var t,n=Fe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ve)return He[e]=n[t];return e}C&&(Ve=document.createElement("div").style,"AnimationEvent"in window||(delete Fe.animationend.animation,delete Fe.animationiteration.animation,delete Fe.animationstart.animation),"TransitionEvent"in window||delete Fe.transitionend.transition);var Ge=Ue("animationend"),qe=Ue("animationiteration"),$e=Ue("animationstart"),Ke=Ue("transitionend"),Ze="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Ye(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Qe(e)!==e)throw Error(a(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return et(o),e;if(i===r)return et(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function nt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function it(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(ot=nt(ot,e)),e=ot,ot=null,e){if(rt(e,it),ot)throw Error(a(95));if(u)throw e=d,u=!1,d=null,e}}function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function ut(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,n,r){if(ct.length){var o=ct.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ft(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=In(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=st(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<x.length;l++){var c=x[l];c&&(c=c.extractEvents(r,t,i,o,a))&&(s=nt(s,c))}at(s)}}function pt(e,t,n){if(!n.has(e)){switch(e){case"scroll":$t(t,"scroll",!0);break;case"focus":case"blur":$t(t,"focus",!0),$t(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&$t(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ze.indexOf(e)&&qt(e,t)}n.set(e,null)}}var ht,mt,gt,vt=!1,yt=[],bt=null,wt=null,Et=null,xt=new Map,Ot=new Map,St=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),_t="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ct(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Tt(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function kt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=Ct(t,n,r,o,i),null!==t&&null!==(t=Rn(t))&&mt(t),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=In(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Je(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){gt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Rn(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function Rt(e,t,n){It(e)&&n.delete(t)}function jt(){for(vt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=Rn(e.blockedOn))&&ht(e);break}var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yt.shift()}null!==bt&&It(bt)&&(bt=null),null!==wt&&It(wt)&&(wt=null),null!==Et&&It(Et)&&(Et=null),xt.forEach(Rt),Ot.forEach(Rt)}function Dt(e,t){e.blockedOn===t&&(e.blockedOn=null,vt||(vt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Nt(e){function t(t){return Dt(t,e)}if(0<yt.length){Dt(yt[0],e);for(var n=1;n<yt.length;n++){var r=yt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==bt&&Dt(bt,e),null!==wt&&Dt(wt,e),null!==Et&&Dt(Et,e),xt.forEach(t),Ot.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Pt(n),null===n.blockedOn&&St.shift()}var Mt={},Lt=new Map,zt=new Map,Wt=["abort","abort",Ge,"animationEnd",qe,"animationIteration",$e,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ke,"transitionEnd","waiting","waiting"];function Bt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},zt.set(r,t),Lt.set(r,i),Mt[o]=i}}Bt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Bt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Bt(Wt,2);for(var Ft="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<Ft.length;Ht++)zt.set(Ft[Ht],0);var Vt=i.unstable_UserBlockingPriority,Ut=i.unstable_runWithPriority,Gt=!0;function qt(e,t){$t(t,e,!1)}function $t(e,t,n){var r=zt.get(t);switch(void 0===r?2:r){case 0:r=Kt.bind(null,t,1,e);break;case 1:r=Zt.bind(null,t,1,e);break;default:r=Xt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Kt(e,t,n,r){z||M();var o=Xt,i=z;z=!0;try{N(o,e,t,n,r)}finally{(z=i)||B()}}function Zt(e,t,n,r){Ut(Vt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){if(Gt)if(0<yt.length&&-1<At.indexOf(e))e=Ct(null,e,t,n,r),yt.push(e);else{var o=Yt(e,t,n,r);if(null===o)Tt(e,r);else if(-1<At.indexOf(e))e=Ct(o,e,t,n,r),yt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return bt=kt(bt,e,t,n,r,o),!0;case"dragenter":return wt=kt(wt,e,t,n,r,o),!0;case"mouseover":return Et=kt(Et,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return xt.set(i,kt(xt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ot.set(i,kt(Ot.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Tt(e,r),e=dt(e,r,null,t);try{F(ft,e)}finally{ut(e)}}}}function Yt(e,t,n,r){if(null!==(n=In(n=st(r)))){var o=Qe(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=Je(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=dt(e,r,n,t);try{F(ft,e)}finally{ut(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jt=["Webkit","ms","Moz","O"];function en(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function tn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=en(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Qt).forEach((function(e){Jt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var nn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(nn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an="http://www.w3.org/1999/xhtml";function sn(e,t){var n=Ye(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=A[t];for(var r=0;r<t.length;r++)pt(t[r],e,n)}function ln(){}function cn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=un(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=un(r)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn="$",gn="/$",vn="$?",yn="$!",bn=null,wn=null;function En(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function xn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var On="function"==typeof setTimeout?setTimeout:void 0,Sn="function"==typeof clearTimeout?clearTimeout:void 0;function An(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function _n(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===mn||n===yn||n===vn){if(0===t)return e;t--}else n===gn&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),Tn="__reactInternalInstance$"+Cn,kn="__reactEventHandlers$"+Cn,Pn="__reactContainere$"+Cn;function In(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pn]||n[Tn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=_n(e);null!==e;){if(n=e[Tn])return n;e=_n(e)}return t}n=(e=n).parentNode}return null}function Rn(e){return!(e=e[Tn]||e[Pn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function jn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Dn(e){return e[kn]||null}function Nn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Mn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Ln(e,t,n){(t=Mn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function zn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Nn(t);for(t=n.length;0<t--;)Ln(n[t],"captured",e);for(t=0;t<n.length;t++)Ln(n[t],"bubbled",e)}}function Wn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Mn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Bn(e){e&&e.dispatchConfig.registrationName&&Wn(e._targetInst,null,e)}function Fn(e){rt(e,zn)}var Hn=null,Vn=null,Un=null;function Gn(){if(Un)return Un;var e,t,n=Vn,r=n.length,o="value"in Hn?Hn.value:Hn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Un=o.slice(e,1<t?1-t:void 0)}function qn(){return!0}function $n(){return!1}function Kn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?qn:$n,this.isPropagationStopped=$n,this}function Zn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Xn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Yn(e){e.eventPool=[],e.getPooled=Zn,e.release=Xn}o(Kn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=qn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=qn)},persist:function(){this.isPersistent=qn},isPersistent:$n,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=$n,this._dispatchInstances=this._dispatchListeners=null}}),Kn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Kn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Yn(n),n},Yn(Kn);var Qn=Kn.extend({data:null}),Jn=Kn.extend({data:null}),er=[9,13,27,32],tr=C&&"CompositionEvent"in window,nr=null;C&&"documentMode"in document&&(nr=document.documentMode);var rr=C&&"TextEvent"in window&&!nr,or=C&&(!tr||nr&&8<nr&&11>=nr),ir=String.fromCharCode(32),ar={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},sr=!1;function lr(e,t){switch(e){case"keyup":return-1!==er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function cr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ur=!1,dr={eventTypes:ar,extractEvents:function(e,t,n,r){var o;if(tr)e:{switch(e){case"compositionstart":var i=ar.compositionStart;break e;case"compositionend":i=ar.compositionEnd;break e;case"compositionupdate":i=ar.compositionUpdate;break e}i=void 0}else ur?lr(e,n)&&(i=ar.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=ar.compositionStart);return i?(or&&"ko"!==n.locale&&(ur||i!==ar.compositionStart?i===ar.compositionEnd&&ur&&(o=Gn()):(Vn="value"in(Hn=r)?Hn.value:Hn.textContent,ur=!0)),i=Qn.getPooled(i,t,n,r),(o||null!==(o=cr(n)))&&(i.data=o),Fn(i),o=i):o=null,(e=rr?function(e,t){switch(e){case"compositionend":return cr(t);case"keypress":return 32!==t.which?null:(sr=!0,ir);case"textInput":return(e=t.data)===ir&&sr?null:e;default:return null}}(e,n):function(e,t){if(ur)return"compositionend"===e||!tr&&lr(e,t)?(e=Gn(),Un=Vn=Hn=null,ur=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return or&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Jn.getPooled(ar.beforeInput,t,n,r)).data=e,Fn(t)):t=null,null===o?t:null===t?o:[o,t]}},fr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!fr[e.type]:"textarea"===t}var hr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function mr(e,t,n){return(e=Kn.getPooled(hr.change,e,t,n)).type="change",R(n),Fn(e),e}var gr=null,vr=null;function yr(e){at(e)}function br(e){if(Ee(jn(e)))return e}function wr(e,t){if("change"===e)return t}var Er=!1;function xr(){gr&&(gr.detachEvent("onpropertychange",Or),vr=gr=null)}function Or(e){if("value"===e.propertyName&&br(vr))if(e=mr(vr,e,st(e)),z)at(e);else{z=!0;try{D(yr,e)}finally{z=!1,B()}}}function Sr(e,t,n){"focus"===e?(xr(),vr=n,(gr=t).attachEvent("onpropertychange",Or)):"blur"===e&&xr()}function Ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return br(vr)}function _r(e,t){if("click"===e)return br(t)}function Cr(e,t){if("input"===e||"change"===e)return br(t)}C&&(Er=lt("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:hr,_isInputEventSupported:Er,extractEvents:function(e,t,n,r){var o=t?jn(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=wr;else if(pr(o))if(Er)a=Cr;else{a=Ar;var s=Sr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=_r);if(a&&(a=a(e,t)))return mr(a,n,r);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Ce(o,"number",o.value)}},kr=Kn.extend({view:null,detail:null}),Pr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ir(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pr[e])&&!!t[e]}function Rr(){return Ir}var jr=0,Dr=0,Nr=!1,Mr=!1,Lr=kr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Rr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=jr;return jr=e.screenX,Nr?"mousemove"===e.type?e.screenX-t:0:(Nr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Dr;return Dr=e.screenY,Mr?"mousemove"===e.type?e.screenY-t:0:(Mr=!0,0)}}),zr=Lr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Wr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Br={eventTypes:Wr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&!(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?In(t):null)&&(t!==Qe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Lr,l=Wr.mouseLeave,c=Wr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=zr,l=Wr.pointerLeave,c=Wr.pointerEnter,u="pointer");if(e=null==a?i:jn(a),i=null==t?i:jn(t),(l=s.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=i,(n=s.getPooled(c,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,a=0,e=s=r;e;e=Nn(e))a++;for(e=0,t=c;t;t=Nn(t))e++;for(;0<a-e;)s=Nn(s),a--;for(;0<e-a;)c=Nn(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=Nn(s),c=Nn(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=Nn(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=Nn(u);for(u=0;u<s.length;u++)Wn(s[u],"bubbled",l);for(u=r.length;0<u--;)Wn(r[u],"captured",n);return 64&o?[l,n]:[l]}},Fr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Hr=Object.prototype.hasOwnProperty;function Vr(e,t){if(Fr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Hr.call(t,n[r])||!Fr(e[n[r]],t[n[r]]))return!1;return!0}var Ur=C&&"documentMode"in document&&11>=document.documentMode,Gr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qr=null,$r=null,Kr=null,Zr=!1;function Xr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Zr||null==qr||qr!==cn(n)?null:(n="selectionStart"in(n=qr)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Kr&&Vr(Kr,n)?null:(Kr=n,(e=Kn.getPooled(Gr.select,$r,e,t)).type="select",e.target=qr,Fn(e),e))}var Yr={eventTypes:Gr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Ye(o),i=A.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?jn(t):window,e){case"focus":(pr(o)||"true"===o.contentEditable)&&(qr=o,$r=t,Kr=null);break;case"blur":Kr=$r=qr=null;break;case"mousedown":Zr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Zr=!1,Xr(n,r);case"selectionchange":if(Ur)break;case"keydown":case"keyup":return Xr(n,r)}return null}},Qr=Kn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=Kn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eo=kr.extend({relatedTarget:null});function to(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var no={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ro={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oo=kr.extend({key:function(e){if(e.key){var t=no[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=to(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ro[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Rr,charCode:function(e){return"keypress"===e.type?to(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?to(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),io=Lr.extend({dataTransfer:null}),ao=kr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Rr}),so=Kn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),lo=Lr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),co={eventTypes:Mt,extractEvents:function(e,t,n,r){var o=Lt.get(e);if(!o)return null;switch(e){case"keypress":if(0===to(n))return null;case"keydown":case"keyup":e=oo;break;case"blur":case"focus":e=eo;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Lr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=io;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ao;break;case Ge:case qe:case $e:e=Qr;break;case Ke:e=so;break;case"scroll":e=kr;break;case"wheel":e=lo;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=zr;break;default:e=Kn}return Fn(t=e.getPooled(o,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Dn,m=Rn,g=jn,_({SimpleEventPlugin:co,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Tr,SelectEventPlugin:Yr,BeforeInputEventPlugin:dr});var uo=[],fo=-1;function po(e){0>fo||(e.current=uo[fo],uo[fo]=null,fo--)}function ho(e,t){fo++,uo[fo]=e.current,e.current=t}var mo={},go={current:mo},vo={current:!1},yo=mo;function bo(e,t){var n=e.type.contextTypes;if(!n)return mo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wo(e){return null!=e.childContextTypes}function Eo(){po(vo),po(go)}function xo(e,t,n){if(go.current!==mo)throw Error(a(168));ho(go,t),ho(vo,n)}function Oo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,ge(t)||"Unknown",i));return o({},n,{},r)}function So(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mo,yo=go.current,ho(go,e),ho(vo,vo.current),!0}function Ao(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Oo(e,t,yo),r.__reactInternalMemoizedMergedChildContext=e,po(vo),po(go),ho(go,e)):po(vo),ho(vo,n)}var _o=i.unstable_runWithPriority,Co=i.unstable_scheduleCallback,To=i.unstable_cancelCallback,ko=i.unstable_requestPaint,Po=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,Ro=i.unstable_ImmediatePriority,jo=i.unstable_UserBlockingPriority,Do=i.unstable_NormalPriority,No=i.unstable_LowPriority,Mo=i.unstable_IdlePriority,Lo={},zo=i.unstable_shouldYield,Wo=void 0!==ko?ko:function(){},Bo=null,Fo=null,Ho=!1,Vo=Po(),Uo=1e4>Vo?Po:function(){return Po()-Vo};function Go(){switch(Io()){case Ro:return 99;case jo:return 98;case Do:return 97;case No:return 96;case Mo:return 95;default:throw Error(a(332))}}function qo(e){switch(e){case 99:return Ro;case 98:return jo;case 97:return Do;case 96:return No;case 95:return Mo;default:throw Error(a(332))}}function $o(e,t){return e=qo(e),_o(e,t)}function Ko(e,t,n){return e=qo(e),Co(e,t,n)}function Zo(e){return null===Bo?(Bo=[e],Fo=Co(Ro,Yo)):Bo.push(e),Lo}function Xo(){if(null!==Fo){var e=Fo;Fo=null,To(e)}Yo()}function Yo(){if(!Ho&&null!==Bo){Ho=!0;var e=0;try{var t=Bo;$o(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bo=null}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Co(Ro,Xo),t}finally{Ho=!1}}}function Qo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Jo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ei={current:null},ti=null,ni=null,ri=null;function oi(){ri=ni=ti=null}function ii(e){var t=ei.current;po(ei),e.type._context._currentValue=t}function ai(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function si(e,t){ti=e,ri=ni=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Da=!0),e.firstContext=null)}function li(e,t){if(ri!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ri=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ni){if(null===ti)throw Error(a(308));ni=t,ti.dependencies={expirationTime:0,firstContext:t,responders:null}}else ni=ni.next=t;return e._currentValue}var ci=!1;function ui(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function fi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function pi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function hi(e,t){var n=e.alternate;null!==n&&di(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function mi(e,t,n,r){var i=e.updateQueue;ci=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,i.shared.pending=null,null!==(l=e.alternate)&&null!==(l=l.updateQueue)&&(l.baseQueue=s)}if(null!==a){l=a.next;var c=i.baseState,u=0,d=null,f=null,p=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(f=p=m,d=c):p=p.next=m,s>u&&(u=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),wl(s,h.suspenseConfig);e:{var g=e,v=h;switch(s=t,m=n,v.tag){case 1:if("function"==typeof(g=v.payload)){c=g.call(m,c,s);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=v.payload)?g.call(m,c,s):g))break e;c=o({},c,s);break e;case 2:ci=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=i.shared.pending))break;h=a.next=s.next,s.next=l,i.baseQueue=a=s,i.shared.pending=null}}null===p?d=c:p.next=f,i.baseState=d,i.baseQueue=p,El(u),e.expirationTime=u,e.memoizedState=c}}function gi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var vi=X.ReactCurrentBatchConfig,yi=(new r.Component).refs;function bi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var wi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=sl(),o=vi.suspense;(o=fi(r=ll(r,e,o),o)).payload=t,null!=n&&(o.callback=n),pi(e,o),cl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=sl(),o=vi.suspense;(o=fi(r=ll(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),pi(e,o),cl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=sl(),r=vi.suspense;(r=fi(n=ll(n,e,r),r)).tag=2,null!=t&&(r.callback=t),pi(e,r),cl(e,n)}};function Ei(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&Vr(n,r)&&Vr(o,i))}function xi(e,t,n){var r=!1,o=mo,i=t.contextType;return"object"==typeof i&&null!==i?i=li(i):(o=wo(t)?yo:go.current,i=(r=null!=(r=t.contextTypes))?bo(e,o):mo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=wi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Oi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wi.enqueueReplaceState(t,t.state,null)}function Si(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=yi,ui(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=li(i):(i=wo(t)?yo:go.current,o.context=bo(e,i)),mi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(bi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&wi.enqueueReplaceState(o,o.state,null),mi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Ai=Array.isArray;function _i(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===yi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ci(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ti(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Fl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ul(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=_i(e,t,n),r.return=e,r):((r=Hl(n.type,n.key,n.props,null,e.mode,r)).ref=_i(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Vl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ul(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Hl(t.type,t.key,t.props,null,e.mode,n)).ref=_i(e,null,t),n.return=e,n;case te:return(t=Gl(t,e.mode,n)).return=e,t}if(Ai(t)||me(t))return(t=Vl(t,e.mode,n,null)).return=e,t;Ci(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case te:return n.key===o?u(e,t,n,r):null}if(Ai(n)||me(n))return null!==o?null:d(e,t,n,r,null);Ci(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ai(r)||me(r))return d(t,e=e.get(n)||null,r,o,null);Ci(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),c}function g(o,s,l,c){var u=me(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,c))&&(s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=h(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===ne){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=_i(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=Vl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Hl(i.type,i.key,i.props,null,e.mode,l)).ref=_i(e,r,i),l.return=e,e=l)}return s(e);case te:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Ul(i,e.mode,l)).return=e,e=r),s(e);if(Ai(i))return m(e,r,i,l);if(me(i))return g(e,r,i,l);if(u&&Ci(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var ki=Ti(!0),Pi=Ti(!1),Ii={},Ri={current:Ii},ji={current:Ii},Di={current:Ii};function Ni(e){if(e===Ii)throw Error(a(174));return e}function Mi(e,t){switch(ho(Di,t),ho(ji,e),ho(Ri,Ii),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,"");break;default:t=Ne(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}po(Ri),ho(Ri,t)}function Li(){po(Ri),po(ji),po(Di)}function zi(e){Ni(Di.current);var t=Ni(Ri.current),n=Ne(t,e.type);t!==n&&(ho(ji,e),ho(Ri,n))}function Wi(e){ji.current===e&&(po(Ri),po(ji))}var Bi={current:0};function Fi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===vn||n.data===yn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.effectTag)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Hi(e,t){return{responder:e,props:t}}var Vi=X.ReactCurrentDispatcher,Ui=X.ReactCurrentBatchConfig,Gi=0,qi=null,$i=null,Ki=null,Zi=!1;function Xi(){throw Error(a(321))}function Yi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Qi(e,t,n,r,o,i){if(Gi=i,qi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Vi.current=null===e||null===e.memoizedState?Ea:xa,e=n(r,o),t.expirationTime===Gi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Ki=$i=null,t.updateQueue=null,Vi.current=Oa,e=n(r,o)}while(t.expirationTime===Gi)}if(Vi.current=wa,t=null!==$i&&null!==$i.next,Gi=0,Ki=$i=qi=null,Zi=!1,t)throw Error(a(300));return e}function Ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?qi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function ea(){if(null===$i){var e=qi.alternate;e=null!==e?e.memoizedState:null}else e=$i.next;var t=null===Ki?qi.memoizedState:Ki.next;if(null!==t)Ki=t,$i=e;else{if(null===e)throw Error(a(310));e={memoizedState:($i=e).memoizedState,baseState:$i.baseState,baseQueue:$i.baseQueue,queue:$i.queue,next:null},null===Ki?qi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function ta(e,t){return"function"==typeof t?t(e):t}function na(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=$i,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.expirationTime;if(u<Gi){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,u>qi.expirationTime&&(qi.expirationTime=u,El(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),wl(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,Fr(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ra(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Fr(i,t.memoizedState)||(Da=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function oa(e){var t=Ji();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e}).dispatch=ba.bind(null,qi,e),[t.memoizedState,e]}function ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=qi.updateQueue)?(t={lastEffect:null},qi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function aa(){return ea().memoizedState}function sa(e,t,n,r){var o=Ji();qi.effectTag|=e,o.memoizedState=ia(1|t,n,void 0,void 0===r?null:r)}function la(e,t,n,r){var o=ea();r=void 0===r?null:r;var i=void 0;if(null!==$i){var a=$i.memoizedState;if(i=a.destroy,null!==r&&Yi(r,a.deps))return void ia(t,n,i,r)}qi.effectTag|=e,o.memoizedState=ia(1|t,n,i,r)}function ca(e,t){return sa(516,4,e,t)}function ua(e,t){return la(516,4,e,t)}function da(e,t){return la(4,2,e,t)}function fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function pa(e,t,n){return n=null!=n?n.concat([e]):null,la(4,2,fa.bind(null,t,e),n)}function ha(){}function ma(e,t){return Ji().memoizedState=[e,void 0===t?null:t],e}function ga(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Yi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function va(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Yi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ya(e,t,n){var r=Go();$o(98>r?98:r,(function(){e(!0)})),$o(97<r?97:r,(function(){var r=Ui.suspense;Ui.suspense=void 0===t?null:t;try{e(!1),n()}finally{Ui.suspense=r}}))}function ba(e,t,n){var r=sl(),o=vi.suspense;o={expirationTime:r=ll(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===qi||null!==i&&i===qi)Zi=!0,o.expirationTime=Gi,qi.expirationTime=Gi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.eagerReducer=i,o.eagerState=s,Fr(s,a))return}catch(e){}cl(e,r)}}var wa={readContext:li,useCallback:Xi,useContext:Xi,useEffect:Xi,useImperativeHandle:Xi,useLayoutEffect:Xi,useMemo:Xi,useReducer:Xi,useRef:Xi,useState:Xi,useDebugValue:Xi,useResponder:Xi,useDeferredValue:Xi,useTransition:Xi},Ea={readContext:li,useCallback:ma,useContext:li,useEffect:ca,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,sa(4,2,fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sa(4,2,e,t)},useMemo:function(e,t){var n=Ji();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ji();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ba.bind(null,qi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ji().memoizedState=e},useState:oa,useDebugValue:ha,useResponder:Hi,useDeferredValue:function(e,t){var n=oa(e),r=n[0],o=n[1];return ca((function(){var n=Ui.suspense;Ui.suspense=void 0===t?null:t;try{o(e)}finally{Ui.suspense=n}}),[e,t]),r},useTransition:function(e){var t=oa(!1),n=t[0];return t=t[1],[ma(ya.bind(null,t,e),[t,e]),n]}},xa={readContext:li,useCallback:ga,useContext:li,useEffect:ua,useImperativeHandle:pa,useLayoutEffect:da,useMemo:va,useReducer:na,useRef:aa,useState:function(){return na(ta)},useDebugValue:ha,useResponder:Hi,useDeferredValue:function(e,t){var n=na(ta),r=n[0],o=n[1];return ua((function(){var n=Ui.suspense;Ui.suspense=void 0===t?null:t;try{o(e)}finally{Ui.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(ta),n=t[0];return t=t[1],[ga(ya.bind(null,t,e),[t,e]),n]}},Oa={readContext:li,useCallback:ga,useContext:li,useEffect:ua,useImperativeHandle:pa,useLayoutEffect:da,useMemo:va,useReducer:ra,useRef:aa,useState:function(){return ra(ta)},useDebugValue:ha,useResponder:Hi,useDeferredValue:function(e,t){var n=ra(ta),r=n[0],o=n[1];return ua((function(){var n=Ui.suspense;Ui.suspense=void 0===t?null:t;try{o(e)}finally{Ui.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ra(ta),n=t[0];return t=t[1],[ga(ya.bind(null,t,e),[t,e]),n]}},Sa=null,Aa=null,_a=!1;function Ca(e,t){var n=Wl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ta(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function ka(e){if(_a){var t=Aa;if(t){var n=t;if(!Ta(e,t)){if(!(t=An(n.nextSibling))||!Ta(e,t))return e.effectTag=-1025&e.effectTag|2,_a=!1,void(Sa=e);Ca(Sa,n)}Sa=e,Aa=An(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,_a=!1,Sa=e}}function Pa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Sa=e}function Ia(e){if(e!==Sa)return!1;if(!_a)return Pa(e),_a=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xn(t,e.memoizedProps))for(t=Aa;t;)Ca(e,t),t=An(t.nextSibling);if(Pa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===gn){if(0===t){Aa=An(e.nextSibling);break e}t--}else n!==mn&&n!==yn&&n!==vn||t++}e=e.nextSibling}Aa=null}}else Aa=Sa?An(e.stateNode.nextSibling):null;return!0}function Ra(){Aa=Sa=null,_a=!1}var ja=X.ReactCurrentOwner,Da=!1;function Na(e,t,n,r){t.child=null===e?Pi(t,null,n,r):ki(t,e.child,n,r)}function Ma(e,t,n,r,o){n=n.render;var i=t.ref;return si(t,o),r=Qi(e,t,n,r,i,o),null===e||Da?(t.effectTag|=1,Na(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ja(e,t,o))}function La(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Bl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hl(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Vr)(o,r)&&e.ref===t.ref)?Ja(e,t,i):(t.effectTag|=1,(e=Fl(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,o,i){return null!==e&&Vr(e.memoizedProps,r)&&e.ref===t.ref&&(Da=!1,o<i)?(t.expirationTime=e.expirationTime,Ja(e,t,i)):Ba(e,t,n,r,i)}function Wa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ba(e,t,n,r,o){var i=wo(n)?yo:go.current;return i=bo(t,i),si(t,o),n=Qi(e,t,n,r,i,o),null===e||Da?(t.effectTag|=1,Na(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ja(e,t,o))}function Fa(e,t,n,r,o){if(wo(n)){var i=!0;So(t)}else i=!1;if(si(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),xi(t,n,r),Si(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;c="object"==typeof c&&null!==c?li(c):bo(t,c=wo(n)?yo:go.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Oi(t,a,r,c),ci=!1;var f=t.memoizedState;a.state=f,mi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||vo.current||ci?("function"==typeof u&&(bi(t,n,u,r),l=t.memoizedState),(s=ci||Ei(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,di(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Jo(t.type,s),l=a.context,c="object"==typeof(c=n.contextType)&&null!==c?li(c):bo(t,c=wo(n)?yo:go.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Oi(t,a,r,c),ci=!1,l=t.memoizedState,a.state=l,mi(t,r,a,o),f=t.memoizedState,s!==r||l!==f||vo.current||ci?("function"==typeof u&&(bi(t,n,u,r),f=t.memoizedState),(u=ci||Ei(t,n,s,r,l,f,c))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Ha(e,t,n,r,i,o)}function Ha(e,t,n,r,o,i){Wa(e,t);var a=!!(64&t.effectTag);if(!r&&!a)return o&&Ao(t,n,!1),Ja(e,t,i);r=t.stateNode,ja.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,s,i)):Na(e,t,s,i),t.memoizedState=r.state,o&&Ao(t,n,!0),t.child}function Va(e){var t=e.stateNode;t.pendingContext?xo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xo(0,t.context,!1),Mi(e,t.containerInfo)}var Ua,Ga,qa,$a,Ka={dehydrated:null,retryTime:0};function Za(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Bi.current,s=!1;if((r=!!(64&t.effectTag))||(r=!!(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ho(Bi,1&a),null===e){if(void 0!==i.fallback&&ka(t),s){if(s=i.fallback,(i=Vl(null,o,0,null)).return=t,!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Vl(s,o,n,null)).return=t,i.sibling=n,t.memoizedState=Ka,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Pi(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(i=i.fallback,(n=Fl(e,e.pendingProps)).return=t,!(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=Fl(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Ka,t.child=n,o}return n=ki(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=Vl(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Vl(s,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ka,t.child=i,n}return t.memoizedState=null,t.child=ki(t,e,i.children,n)}function Xa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ai(e.return,t)}function Ya(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Qa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Na(e,t,r.children,n),2&(r=Bi.current))r=1&r|2,t.effectTag|=64;else{if(null!==e&&64&e.effectTag)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ho(Bi,r),2&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Fi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ya(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Fi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ya(t,!0,n,null,i,t.lastEffect);break;case"together":Ya(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ja(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&El(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Fl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function es(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ts(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return wo(t.type)&&Eo(),null;case 3:return Li(),po(vo),po(go),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ia(t)||(t.effectTag|=4),Ga(t),null;case 5:Wi(t),n=Ni(Di.current);var i=t.type;if(null!==e&&null!=t.stateNode)qa(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ni(Ri.current),Ia(t)){r=t.stateNode,i=t.type;var s=t.memoizedProps;switch(r[Tn]=t,r[kn]=s,i){case"iframe":case"object":case"embed":qt("load",r);break;case"video":case"audio":for(e=0;e<Ze.length;e++)qt(Ze[e],r);break;case"source":qt("error",r);break;case"img":case"image":case"link":qt("error",r),qt("load",r);break;case"form":qt("reset",r),qt("submit",r);break;case"details":qt("toggle",r);break;case"input":Oe(r,s),qt("invalid",r),sn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},qt("invalid",r),sn(n,"onChange");break;case"textarea":Ie(r,s),qt("invalid",r),sn(n,"onChange")}for(var l in rn(i,s),e=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):S.hasOwnProperty(l)&&null!=c&&sn(n,l)}switch(i){case"input":we(r),_e(r,s,!0);break;case"textarea":we(r),je(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===an&&(e=De(i)),e===an?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(i,{is:r.is}):(e=l.createElement(i),"select"===i&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,i),e[Tn]=t,e[kn]=r,Ua(e,t,!1,!1),t.stateNode=e,l=on(i,r),i){case"iframe":case"object":case"embed":qt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Ze.length;c++)qt(Ze[c],e);c=r;break;case"source":qt("error",e),c=r;break;case"img":case"image":case"link":qt("error",e),qt("load",e),c=r;break;case"form":qt("reset",e),qt("submit",e),c=r;break;case"details":qt("toggle",e),c=r;break;case"input":Oe(e,r),c=xe(e,r),qt("invalid",e),sn(n,"onChange");break;case"option":c=Te(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=o({},r,{value:void 0}),qt("invalid",e),sn(n,"onChange");break;case"textarea":Ie(e,r),c=Pe(e,r),qt("invalid",e),sn(n,"onChange");break;default:c=r}rn(i,c);var u=c;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?tn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ze(e,d):"children"===s?"string"==typeof d?("textarea"!==i||""!==d)&&We(e,d):"number"==typeof d&&We(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=d&&sn(n,s):null!=d&&Y(e,s,d,l))}switch(i){case"input":we(e),_e(e,r,!1);break;case"textarea":we(e),je(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?ke(e,!!r.multiple,n,!1):null!=r.defaultValue&&ke(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=ln)}En(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)$a(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ni(Di.current),Ni(Ri.current),Ia(t)?(n=t.stateNode,r=t.memoizedProps,n[Tn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tn]=t,t.stateNode=n)}return null;case 13:return po(Bi),r=t.memoizedState,64&t.effectTag?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ia(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Bi.current?Fs===Is&&(Fs=Ds):(Fs!==Is&&Fs!==Ds||(Fs=Ns),0!==qs&&null!==zs&&(Kl(zs,Bs),Zl(zs,qs)))),(n||r)&&(t.effectTag|=4),null);case 4:return Li(),Ga(t),null;case 10:return ii(t),null;case 19:if(po(Bi),null===(r=t.memoizedState))return null;if(i=!!(64&t.effectTag),null===(s=r.rendering)){if(i)es(r,!1);else if(Fs!==Is||null!==e&&64&e.effectTag)for(s=t.child;null!==s;){if(null!==(e=Fi(s))){for(t.effectTag|=64,es(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return ho(Bi,1&Bi.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=Fi(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),es(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Uo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,es(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Uo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Uo(),n.sibling=null,t=Bi.current,ho(Bi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function ns(e){switch(e.tag){case 1:wo(e.type)&&Eo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Li(),po(vo),po(go),64&(t=e.effectTag))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Wi(e),null;case 13:return po(Bi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return po(Bi),null;case 4:return Li(),null;case 10:return ii(e),null;default:return null}}function rs(e,t){return{value:e,source:t,stack:ve(t)}}Ua=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ga=function(){},qa=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s,l,c=t.stateNode;switch(Ni(Ri.current),e=null,n){case"input":a=xe(c,a),r=xe(c,r),e=[];break;case"option":a=Te(c,a),r=Te(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Pe(c,a),r=Pe(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=ln)}for(s in rn(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in c=a[s])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==c&&(null!=u||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(s,u)):"children"===s?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=u&&sn(i,s),e||c===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},$a=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var os="function"==typeof WeakSet?WeakSet:Set;function is(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function as(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){jl(e,t)}else t.current=null}function ss(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Jo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function ls(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function cs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function us(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void cs(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Jo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&gi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}gi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&En(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Nt(n)))))}throw Error(a(163))}function ds(e,t,n){switch("function"==typeof Ll&&Ll(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;$o(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){jl(o,e)}}e=e.next}while(e!==r)}))}break;case 1:as(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){jl(e,t)}}(t,n);break;case 5:as(t);break;case 4:vs(e,t,n)}}function fs(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&fs(t)}function ps(e){return 5===e.tag||3===e.tag||4===e.tag}function hs(e){e:{for(var t=e.return;null!==t;){if(ps(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(We(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ps(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?ms(e,n,t):gs(e,n,t)}function ms(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ln));else if(4!==r&&null!==(e=e.child))for(ms(e,t,n),e=e.sibling;null!==e;)ms(e,t,n),e=e.sibling}function gs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(gs(e,t,n),e=e.sibling;null!==e;)gs(e,t,n),e=e.sibling}function vs(e,t,n){for(var r,o,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var l=e,c=i,u=n,d=c;;)if(ds(l,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break e;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(l=r,c=i.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(ds(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function ys(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ls(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[kn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),on(e,o),t=on(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?tn(n,l):"dangerouslySetInnerHTML"===s?ze(n,l):"children"===s?We(n,l):Y(n,s,l,t)}switch(e){case"input":Ae(n,r);break;case"textarea":Re(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?ke(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?ke(n,!!r.multiple,r.defaultValue,!0):ke(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Nt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ks=Uo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=en("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void bs(t);case 19:return void bs(t)}throw Error(a(163))}function bs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new os),t.forEach((function(t){var r=Nl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ws="function"==typeof WeakMap?WeakMap:Map;function Es(e,t,n){(n=fi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Qs=r),is(e,t)},n}function xs(e,t,n){(n=fi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return is(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Js?Js=new Set([this]):Js.add(this),is(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Os,Ss=Math.ceil,As=X.ReactCurrentDispatcher,_s=X.ReactCurrentOwner,Cs=0,Ts=8,ks=16,Ps=32,Is=0,Rs=1,js=2,Ds=3,Ns=4,Ms=5,Ls=Cs,zs=null,Ws=null,Bs=0,Fs=Is,Hs=null,Vs=1073741823,Us=1073741823,Gs=null,qs=0,$s=!1,Ks=0,Zs=500,Xs=null,Ys=!1,Qs=null,Js=null,el=!1,tl=null,nl=90,rl=null,ol=0,il=null,al=0;function sl(){return(Ls&(ks|Ps))!==Cs?1073741821-(Uo()/10|0):0!==al?al:al=1073741821-(Uo()/10|0)}function ll(e,t,n){if(!(2&(t=t.mode)))return 1073741823;var r=Go();if(!(4&t))return 99===r?1073741823:1073741822;if((Ls&ks)!==Cs)return Bs;if(null!==n)e=Qo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Qo(e,150,100);break;case 97:case 96:e=Qo(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==zs&&e===Bs&&--e,e}function cl(e,t){if(50<ol)throw ol=0,il=null,Error(a(185));if(null!==(e=ul(e,t))){var n=Go();1073741823===t?(Ls&Ts)!==Cs&&(Ls&(ks|Ps))===Cs?hl(e):(fl(e),Ls===Cs&&Xo()):fl(e),(4&Ls)===Cs||98!==n&&99!==n||(null===rl?rl=new Map([[e,t]]):(void 0===(n=rl.get(e))||n>t)&&rl.set(e,t))}}function ul(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(zs===o&&(El(t),Fs===Ns&&Kl(o,Bs)),Zl(o,t)),o}function dl(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!$l(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function fl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Zo(hl.bind(null,e));else{var t=dl(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=sl();if(r=1073741823===t?99:1===t||2===t?95:0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Lo&&To(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Zo(hl.bind(null,e)):Ko(r,pl.bind(null,e),{timeout:10*(1073741821-t)-Uo()}),e.callbackNode=t}}}function pl(e,t){if(al=0,t)return Xl(e,t=sl()),fl(e),null;var n=dl(e);if(0!==n){if(t=e.callbackNode,(Ls&(ks|Ps))!==Cs)throw Error(a(327));if(Pl(),e===zs&&n===Bs||vl(e,n),null!==Ws){var r=Ls;Ls|=ks;for(var o=bl();;)try{Ol();break}catch(t){yl(e,t)}if(oi(),Ls=r,As.current=o,Fs===Rs)throw t=Hs,vl(e,n),Kl(e,n),fl(e),t;if(null===Ws)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Fs,zs=null,r){case Is:case Rs:throw Error(a(345));case js:Xl(e,2<n?2:n);break;case Ds:if(Kl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=_l(o)),1073741823===Vs&&10<(o=Ks+Zs-Uo())){if($s){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,vl(e,n);break}}if(0!==(i=dl(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=On(Cl.bind(null,e),o);break}Cl(e);break;case Ns:if(Kl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=_l(o)),$s&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,vl(e,n);break}if(0!==(o=dl(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Us?r=10*(1073741821-Us)-Uo():1073741823===Vs?r=0:(r=10*(1073741821-Vs)-5e3,0>(r=(o=Uo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=On(Cl.bind(null,e),r);break}Cl(e);break;case Ms:if(1073741823!==Vs&&null!==Gs){i=Vs;var s=Gs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(i=Uo()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Kl(e,n),e.timeoutHandle=On(Cl.bind(null,e),r);break}}Cl(e);break;default:throw Error(a(329))}if(fl(e),e.callbackNode===t)return pl.bind(null,e)}}return null}function hl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Ls&(ks|Ps))!==Cs)throw Error(a(327));if(Pl(),e===zs&&t===Bs||vl(e,t),null!==Ws){var n=Ls;Ls|=ks;for(var r=bl();;)try{xl();break}catch(t){yl(e,t)}if(oi(),Ls=n,As.current=r,Fs===Rs)throw n=Hs,vl(e,t),Kl(e,t),fl(e),n;if(null!==Ws)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,zs=null,Cl(e),fl(e)}return null}function ml(e,t){var n=Ls;Ls|=1;try{return e(t)}finally{(Ls=n)===Cs&&Xo()}}function gl(e,t){var n=Ls;Ls&=-2,Ls|=Ts;try{return e(t)}finally{(Ls=n)===Cs&&Xo()}}function vl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Sn(n)),null!==Ws)for(n=Ws.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Eo();break;case 3:Li(),po(vo),po(go);break;case 5:Wi(r);break;case 4:Li();break;case 13:case 19:po(Bi);break;case 10:ii(r)}n=n.return}zs=e,Ws=Fl(e.current,null),Bs=t,Fs=Is,Hs=null,Us=Vs=1073741823,Gs=null,qs=0,$s=!1}function yl(e,t){for(;;){try{if(oi(),Vi.current=wa,Zi)for(var n=qi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Gi=0,Ki=$i=qi=null,Zi=!1,null===Ws||null===Ws.return)return Fs=Rs,Hs=t,Ws=null;e:{var o=e,i=Ws.return,a=Ws,s=t;if(t=Bs,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(!(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=!!(1&Bi.current),d=i;do{var f;if(f=13===d.tag){var p=d.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var h=d.memoizedProps;f=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(f){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(!(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=fi(1073741823,null);v.tag=2,pi(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new ws,s=new Set,y.set(l,s)):void 0===(s=y.get(l))&&(s=new Set,y.set(l,s)),!s.has(a)){s.add(a);var b=Dl.bind(null,o,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}Fs!==Ms&&(Fs=js),s=rs(s,a),d=i;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,hi(d,Es(d,l,t));break e;case 1:l=s;var w=d.type,E=d.stateNode;if(!(64&d.effectTag||"function"!=typeof w.getDerivedStateFromError&&(null===E||"function"!=typeof E.componentDidCatch||null!==Js&&Js.has(E)))){d.effectTag|=4096,d.expirationTime=t,hi(d,xs(d,l,t));break e}}d=d.return}while(null!==d)}Ws=Al(Ws)}catch(e){t=e;continue}break}}function bl(){var e=As.current;return As.current=wa,null===e?wa:e}function wl(e,t){e<Vs&&2<e&&(Vs=e),null!==t&&e<Us&&2<e&&(Us=e,Gs=t)}function El(e){e>qs&&(qs=e)}function xl(){for(;null!==Ws;)Ws=Sl(Ws)}function Ol(){for(;null!==Ws&&!zo();)Ws=Sl(Ws)}function Sl(e){var t=Os(e.alternate,e,Bs);return e.memoizedProps=e.pendingProps,null===t&&(t=Al(e)),_s.current=null,t}function Al(e){Ws=e;do{var t=Ws.alternate;if(e=Ws.return,2048&Ws.effectTag){if(null!==(t=ns(Ws)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=ts(t,Ws,Bs),1===Bs||1!==Ws.childExpirationTime){for(var n=0,r=Ws.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Ws.childExpirationTime=n}if(null!==t)return t;null!==e&&!(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ws.firstEffect),null!==Ws.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ws.firstEffect),e.lastEffect=Ws.lastEffect),1<Ws.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ws:e.firstEffect=Ws,e.lastEffect=Ws))}if(null!==(t=Ws.sibling))return t;Ws=e}while(null!==Ws);return Fs===Is&&(Fs=Ms),null}function _l(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Cl(e){var t=Go();return $o(99,Tl.bind(null,e,t)),null}function Tl(e,t){do{Pl()}while(null!==tl);if((Ls&(ks|Ps))!==Cs)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=_l(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===zs&&(Ws=zs=null,Bs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Ls;Ls|=Ps,_s.current=null,bn=Gt;var s=pn();if(hn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var f=0,p=-1,h=-1,m=0,g=0,v=s,y=null;t:for(;;){for(var b;v!==l||0!==u&&3!==v.nodeType||(p=f+u),v!==d||0!==c&&3!==v.nodeType||(h=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===l&&++m===u&&(p=f),y===d&&++g===c&&(h=f),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;wn={activeElementDetached:null,focusedElem:s,selectionRange:l},Gt=!1,Xs=o;do{try{kl()}catch(e){if(null===Xs)throw Error(a(330));jl(Xs,e),Xs=Xs.nextEffect}}while(null!==Xs);Xs=o;do{try{for(s=e,l=t;null!==Xs;){var w=Xs.effectTag;if(16&w&&We(Xs.stateNode,""),128&w){var E=Xs.alternate;if(null!==E){var x=E.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&w){case 2:hs(Xs),Xs.effectTag&=-3;break;case 6:hs(Xs),Xs.effectTag&=-3,ys(Xs.alternate,Xs);break;case 1024:Xs.effectTag&=-1025;break;case 1028:Xs.effectTag&=-1025,ys(Xs.alternate,Xs);break;case 4:ys(Xs.alternate,Xs);break;case 8:vs(s,u=Xs,l),fs(u)}Xs=Xs.nextEffect}}catch(e){if(null===Xs)throw Error(a(330));jl(Xs,e),Xs=Xs.nextEffect}}while(null!==Xs);if(x=wn,E=pn(),w=x.focusedElem,l=x.selectionRange,E!==w&&w&&w.ownerDocument&&fn(w.ownerDocument.documentElement,w)){null!==l&&hn(w)&&(E=l.start,void 0===(x=l.end)&&(x=E),"selectionStart"in w?(w.selectionStart=E,w.selectionEnd=Math.min(x,w.value.length)):(x=(E=w.ownerDocument||document)&&E.defaultView||window).getSelection&&(x=x.getSelection(),u=w.textContent.length,s=Math.min(l.start,u),l=void 0===l.end?s:Math.min(l.end,u),!x.extend&&s>l&&(u=l,l=s,s=u),u=dn(w,s),d=dn(w,l),u&&d&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==d.node||x.focusOffset!==d.offset)&&((E=E.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),s>l?(x.addRange(E),x.extend(d.node,d.offset)):(E.setEnd(d.node,d.offset),x.addRange(E))))),E=[];for(x=w;x=x.parentNode;)1===x.nodeType&&E.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<E.length;w++)(x=E[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Gt=!!bn,wn=bn=null,e.current=n,Xs=o;do{try{for(w=e;null!==Xs;){var O=Xs.effectTag;if(36&O&&us(w,Xs.alternate,Xs),128&O){E=void 0;var S=Xs.ref;if(null!==S){var A=Xs.stateNode;Xs.tag,E=A,"function"==typeof S?S(E):S.current=E}}Xs=Xs.nextEffect}}catch(e){if(null===Xs)throw Error(a(330));jl(Xs,e),Xs=Xs.nextEffect}}while(null!==Xs);Xs=null,Wo(),Ls=i}else e.current=n;if(el)el=!1,tl=e,nl=t;else for(Xs=o;null!==Xs;)t=Xs.nextEffect,Xs.nextEffect=null,Xs=t;if(0===(t=e.firstPendingTime)&&(Js=null),1073741823===t?e===il?ol++:(ol=0,il=e):ol=0,"function"==typeof Ml&&Ml(n.stateNode,r),fl(e),Ys)throw Ys=!1,e=Qs,Qs=null,e;return(Ls&Ts)!==Cs||Xo(),null}function kl(){for(;null!==Xs;){var e=Xs.effectTag;256&e&&ss(Xs.alternate,Xs),!(512&e)||el||(el=!0,Ko(97,(function(){return Pl(),null}))),Xs=Xs.nextEffect}}function Pl(){if(90!==nl){var e=97<nl?97:nl;return nl=90,$o(e,Il)}}function Il(){if(null===tl)return!1;var e=tl;if(tl=null,(Ls&(ks|Ps))!==Cs)throw Error(a(331));var t=Ls;for(Ls|=Ps,e=e.current.firstEffect;null!==e;){try{var n=e;if(512&n.effectTag)switch(n.tag){case 0:case 11:case 15:case 22:ls(5,n),cs(5,n)}}catch(t){if(null===e)throw Error(a(330));jl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Ls=t,Xo(),!0}function Rl(e,t,n){pi(e,t=Es(e,t=rs(n,t),1073741823)),null!==(e=ul(e,1073741823))&&fl(e)}function jl(e,t){if(3===e.tag)Rl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Rl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Js||!Js.has(r))){pi(n,e=xs(n,e=rs(t,e),1073741823)),null!==(n=ul(n,1073741823))&&fl(n);break}}n=n.return}}function Dl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),zs===e&&Bs===n?Fs===Ns||Fs===Ds&&1073741823===Vs&&Uo()-Ks<Zs?vl(e,Bs):$s=!0:$l(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,fl(e)))}function Nl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=ll(t=sl(),e,null)),null!==(e=ul(e,t))&&fl(e)}Os=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||vo.current)Da=!0;else{if(r<n){switch(Da=!1,t.tag){case 3:Va(t),Ra();break;case 5:if(zi(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:wo(t.type)&&So(t);break;case 4:Mi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,ho(ei,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Za(e,t,n):(ho(Bi,1&Bi.current),null!==(t=Ja(e,t,n))?t.sibling:null);ho(Bi,1&Bi.current);break;case 19:if(r=t.childExpirationTime>=n,64&e.effectTag){if(r)return Qa(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),ho(Bi,Bi.current),!r)return null}return Ja(e,t,n)}Da=!1}}else Da=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=bo(t,go.current),si(t,n),o=Qi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,wo(r)){var i=!0;So(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ui(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&bi(t,r,s,e),o.updater=wi,t.stateNode=o,o._reactInternalFiber=t,Si(t,r,e,n),t=Ha(null,t,r,!0,i,n)}else t.tag=0,Na(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Bl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===de)return 14}return 2}(o),e=Jo(o,e),i){case 0:t=Ba(null,t,o,e,n);break e;case 1:t=Fa(null,t,o,e,n);break e;case 11:t=Ma(null,t,o,e,n);break e;case 14:t=La(null,t,o,Jo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Fa(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 3:if(Va(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,di(e,t),mi(t,r,null,n),(r=t.memoizedState.element)===o)Ra(),t=Ja(e,t,n);else{if((o=t.stateNode.hydrate)&&(Aa=An(t.stateNode.containerInfo.firstChild),Sa=t,o=_a=!0),o)for(n=Pi(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Na(e,t,r,n),Ra();t=t.child}return t;case 5:return zi(t),null===e&&ka(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,xn(r,o)?s=null:null!==i&&xn(r,i)&&(t.effectTag|=16),Wa(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Na(e,t,s,n),t=t.child),t;case 6:return null===e&&ka(t),null;case 13:return Za(e,t,n);case 4:return Mi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):Na(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ma(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 7:return Na(e,t,t.pendingProps,n),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(ho(ei,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0==(i=Fr(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!vo.current){t=Ja(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&u.observedBits&i){1===l.tag&&((u=fi(n,null)).tag=2,pi(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ai(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Na(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,si(t,n),r=r(o=li(o,i.unstable_observedBits)),t.effectTag|=1,Na(e,t,r,n),t.child;case 14:return i=Jo(o=t.type,t.pendingProps),La(e,t,o,i=Jo(o.type,i),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,wo(r)?(e=!0,So(t)):e=!1,si(t,n),xi(t,r,o),Si(t,r,o,n),Ha(null,t,r,!0,e,n);case 19:return Qa(e,t,n)}throw Error(a(156,t.tag))};var Ml=null,Ll=null;function zl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Wl(e,t,n,r){return new zl(e,t,n,r)}function Bl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fl(e,t){var n=e.alternate;return null===n?((n=Wl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hl(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Bl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Vl(n.children,o,i,t);case se:s=8,o|=7;break;case re:s=8,o|=1;break;case oe:return(e=Wl(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case ce:return(e=Wl(13,n,t,o)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=Wl(19,n,t,o)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case de:s=14;break e;case fe:s=16,r=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Wl(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Vl(e,t,n,r){return(e=Wl(7,e,r,t)).expirationTime=n,e}function Ul(e,t,n){return(e=Wl(6,e,null,t)).expirationTime=n,e}function Gl(e,t,n){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ql(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function $l(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Kl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Zl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Xl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Yl(e,t,n,r){var o=t.current,i=sl(),s=vi.suspense;i=ll(i,o,s);e:if(n){t:{if(Qe(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(wo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(wo(c)){n=Oo(n,c,l);break e}}n=l}else n=mo;return null===t.context?t.context=n:t.pendingContext=n,(t=fi(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),pi(o,t),cl(o,i),i}function Ql(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Jl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function ec(e,t){Jl(e,t),(e=e.alternate)&&Jl(e,t)}function tc(e,t,n){var r=new ql(e,t,n=null!=n&&!0===n.hydrate),o=Wl(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ui(o),e[Pn]=r.current,n&&0!==t&&function(e,t){var n=Ye(t);At.forEach((function(e){pt(e,t,n)})),_t.forEach((function(e){pt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=Ql(a);s.call(e)}}Yl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Ql(a);l.call(e)}}gl((function(){Yl(t,a,e,o)}))}return Ql(a)}function oc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}tc.prototype.render=function(e){Yl(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Yl(null,e,null,(function(){t[Pn]=null}))},ht=function(e){if(13===e.tag){var t=Qo(sl(),150,100);cl(e,t),ec(e,t)}},mt=function(e){13===e.tag&&(cl(e,3),ec(e,3))},gt=function(e){if(13===e.tag){var t=sl();cl(e,t=ll(t,e,null)),ec(e,t)}},T=function(e,t,n){switch(t){case"input":if(Ae(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Dn(r);if(!o)throw Error(a(90));Ee(r),Ae(r,o)}}}break;case"textarea":Re(e,n);break;case"select":null!=(t=n.value)&&ke(e,!!n.multiple,t,!1)}},D=ml,N=function(e,t,n,r,o){var i=Ls;Ls|=4;try{return $o(98,e.bind(null,t,n,r,o))}finally{(Ls=i)===Cs&&Xo()}},M=function(){(Ls&(1|ks|Ps))===Cs&&(function(){if(null!==rl){var e=rl;rl=null,e.forEach((function(e,t){Xl(t,e),fl(t)})),Xo()}}(),Pl())},L=function(e,t){var n=Ls;Ls|=2;try{return e(t)}finally{(Ls=n)===Cs&&Xo()}};var ic={Events:[Rn,jn,Dn,_,O,Fn,function(e){rt(e,Bn)},R,j,Xt,at,Pl,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ml=function(e){try{t.onCommitFiberRoot(n,e,void 0,!(64&~e.current.effectTag))}catch(e){}},Ll=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:In,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ic,t.createPortal=oc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if((Ls&(ks|Ps))!==Cs)throw Error(a(187));var n=Ls;Ls|=1;try{return $o(99,e.bind(null,t))}finally{Ls=n,Xo()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(a(40));return!!e._reactRootContainer&&(gl((function(){rc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Pn]=null}))})),!0)},t.unstable_batchedUpdates=ml,t.unstable_createPortal=function(e,t){return oc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return rc(e,t,n,!1,r)},t.version="16.14.0"},40961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(22551)},86027:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=f(n(5556)),i=f(n(40961)),a=f(n(20053)),s=n(71089),l=n(81726),c=n(77056),u=f(n(6888)),d=f(n(18696));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(){return h=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},h.apply(this,arguments)}function m(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends r.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),m(this,"onDragStart",((e,t)=>{if((0,d.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),m(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),m(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:i.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:n,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:d,position:f,positionOffset:p,scale:m,...g}=this.props;let v={},y=null;const b=!Boolean(f)||this.state.dragging,w=f||o,E={x:(0,l.canDragX)(this)&&b?this.state.x:w.x,y:(0,l.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(E,p):v=(0,s.createCSSTransform)(E,p);const x=(0,a.default)(n.props.className||"",i,{[c]:this.state.dragging,[d]:this.state.dragged});return r.createElement(u.default,h({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:x,style:{...n.props.style,...v},transform:y}))}}t.default=g,m(g,"displayName","Draggable"),m(g,"propTypes",{...u.default.propTypes,axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),m(g,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},6888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=u(n(5556)),i=u(n(40961)),a=n(71089),s=n(81726),l=n(77056),c=u(n(18696));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={start:"touchstart",move:"touchmove",stop:"touchend"},h={start:"mousedown",move:"mousemove",stop:"mouseup"};let m=h;class g extends r.Component{constructor(){super(...arguments),f(this,"dragging",!1),f(this,"lastX",NaN),f(this,"lastY",NaN),f(this,"touchIdentifier",null),f(this,"mounted",!1),f(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const r=(0,a.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,s.getControlPosition)(e,r,this);if(null==o)return;const{x:i,y:l}=o,u=(0,s.createCoreData)(this,i,l);(0,c.default)("DraggableCore: handleDragStart: %j",u),(0,c.default)("calling",this.props.onStart),!1!==this.props.onStart(e,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(n),this.dragging=!0,this.lastX=i,this.lastY=l,(0,a.addEvent)(n,m.move,this.handleDrag),(0,a.addEvent)(n,m.stop,this.handleDragStop))})),f(this,"handleDrag",(e=>{const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,s.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);if((0,c.default)("DraggableCore: handleDrag: %j",o),!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),f(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,s.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const i=this.findDOMNode();i&&this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(i.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,i&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(i.ownerDocument,m.move,this.handleDrag),(0,a.removeEvent)(i.ownerDocument,m.stop,this.handleDragStop))})),f(this,"onMouseDown",(e=>(m=h,this.handleDragStart(e)))),f(this,"onMouseUp",(e=>(m=h,this.handleDragStop(e)))),f(this,"onTouchStart",(e=>(m=p,this.handleDragStart(e)))),f(this,"onTouchEnd",(e=>(m=p,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,a.addEvent)(e,p.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,a.removeEvent)(t,h.move,this.handleDrag),(0,a.removeEvent)(t,p.move,this.handleDrag),(0,a.removeEvent)(t,h.stop,this.handleDragStop),(0,a.removeEvent)(t,p.stop,this.handleDragStop),(0,a.removeEvent)(e,p.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:i.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=g,f(g,"displayName","DraggableCore"),f(g,"propTypes",{allowAnyClick:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),f(g,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},55794:(e,t,n)=>{"use strict";const{default:r,DraggableCore:o}=n(86027);e.exports=r,e.exports.default=r,e.exports.DraggableCore=o},71089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=c,t.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&c(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const n=l(e,t,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:n}},t.createSVGTransform=function(e,t){return l(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,(e=>t===e.identifier))||e.changedTouches&&(0,r.findInArray)(e.changedTouches,(e=>t===e.identifier))},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=l,t.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight),t},t.matchesSelector=s,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(s(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderTopWidth),t+=(0,r.int)(n.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderLeftWidth),t+=(0,r.int)(n.borderRightWidth),t},t.removeClassName=u,t.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&u(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var r=n(77056),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(33514));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}let a="";function s(e,t){return a||(a=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,r.isFunction)(e[t])}))),!!(0,r.isFunction)(e[a])&&e[a](t)}function l(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function c(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function u(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},33514:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=r;const n=["Moz","Webkit","O","ms"];function r(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!r)return"";if(t in r)return"";for(let e=0;e<n.length;e++)if(o(t,n[e])in r)return n[e];return""}function o(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}t.default=r()},18696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},81726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){const o=!(0,r.isNum)(e.lastX),a=i(e);return o?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},t.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const s=i(e);if("string"==typeof a){const{ownerDocument:e}=s,t=e.defaultView;let n;if(n="parent"===a?s.parentNode:e.querySelector(a),!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const i=n,l=t.getComputedStyle(s),c=t.getComputedStyle(i);a={left:-s.offsetLeft+(0,r.int)(c.paddingLeft)+(0,r.int)(l.marginLeft),top:-s.offsetTop+(0,r.int)(c.paddingTop)+(0,r.int)(l.marginTop),right:(0,o.innerWidth)(i)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(c.paddingRight)-(0,r.int)(l.marginRight),bottom:(0,o.innerHeight)(i)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(c.paddingBottom)-(0,r.int)(l.marginBottom)}}return(0,r.isNum)(a.right)&&(t=Math.min(t,a.right)),(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom)),(0,r.isNum)(a.left)&&(t=Math.max(t,a.left)),(0,r.isNum)(a.top)&&(n=Math.max(n,a.top)),[t,n]},t.getControlPosition=function(e,t,n){const r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,s,n.props.scale)},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var r=n(77056),o=n(71089);function i(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},77056:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},82158:(e,t,n)=>{"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(96540),i=l(o),a=l(n(5556)),s=l(n(66405));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.fullScreenElement=null,n.detectFullScreen=n.detectFullScreen.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){s.default.addEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentWillUnmount",value:function(){s.default.removeEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentDidUpdate",value:function(){this.handleProps(this.props)}},{key:"handleProps",value:function(e){var t=s.default.fullscreenElement===this.node;t&&!e.enabled?this.leaveFullScreen():!t&&e.enabled&&this.enterFullScreen()}},{key:"detectFullScreen",value:function(){s.default.fullscreenElement===this.node?(this.fullScreenElement=s.default.fullscreenElement,this.props.onChange(!0)):!s.default.fullscreenElement&&this.fullScreenElement&&(this.fullScreenElement=null,this.props.onChange(!1))}},{key:"enterFullScreen",value:function(){s.default.fullscreenEnabled&&s.default.requestFullscreen(this.node)}},{key:"leaveFullScreen",value:function(){s.default.fullscreenEnabled&&s.default.exitFullscreen()}},{key:"render",value:function(){var e=this,t=["fullscreen"];return this.props.enabled&&t.push("fullscreen-enabled"),i.default.createElement("div",{className:t.join(" "),ref:function(t){return e.node=t},style:this.props.enabled?{height:"100%",width:"100%"}:void 0},this.props.children)}}]),t}(o.Component);c.propTypes={children:a.default.node.isRequired,enabled:a.default.bool.isRequired,onChange:a.default.func},c.defaultProps={enabled:!1,onChange:function(){}},t.A=c},65414:(e,t,n)=>{"use strict";n.d(t,{gJ:()=>h,hz:()=>g,rV:()=>m,TO:()=>v,r9:()=>y});var r=n(23029),o=n(92901),i=n(64467),a=n(96540),s=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,l={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},c=function(e){return l[e]};function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f,p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(s,c)}},h=(0,a.createContext)();function m(){return p}var g=function(){function e(){(0,r.A)(this,e),this.usedNamespaces={}}return(0,o.A)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function v(){return f}var y={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p=d(d({},p),e)}(e.options.react),function(e){f=e}(e)}}},26524:(e,t,n)=>{"use strict";n.d(t,{C:()=>y});var r=n(64467),o=n(5544),i=n(80045),a=n(96540),s=n(65414);function l(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var c={};function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&c[t[0]]||("string"==typeof t[0]&&(c[t[0]]=new Date),l.apply(void 0,t))}function d(e,t,n){e.loadNamespaces(t,(function(){e.isInitialized?n():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}))}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e,t){var n=(0,a.useRef)();return(0,a.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};var m=["forwardedRef"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var l=r.forwardedRef,c=(0,i.A)(r,m),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,a.useContext)(s.gJ)||{},i=r.i18n,l=r.defaultNS,c=n||i||(0,s.TO)();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new s.hz),!c){u("You will need to pass in an i18next instance by using initReactI18next");var f=function(e){return Array.isArray(e)?e[e.length-1]:e},m=[f,{},!1];return m.t=f,m.i18n={},m.ready=!1,m}c.options.react&&void 0!==c.options.react.wait&&u("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var g=p(p(p({},(0,s.rV)()),c.options.react),t),v=g.useSuspense,y=g.keyPrefix,b=e||l||c.options&&c.options.defaultNS;b="string"==typeof b?[b]:b||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(b);var w=(c.isInitialized||c.initializedStoreOnce)&&b.every((function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}(e,t,n):(u("i18n.languages were undefined or empty",t.languages),!0)}(e,c,g)}));function E(){return c.getFixedT(null,"fallback"===g.nsMode?b:b[0],y)}var x=(0,a.useState)(E),O=(0,o.A)(x,2),S=O[0],A=O[1],_=b.join(),C=h(_),T=(0,a.useRef)(!0);(0,a.useEffect)((function(){var e=g.bindI18n,t=g.bindI18nStore;function n(){T.current&&A(E)}return T.current=!0,w||v||d(c,b,(function(){T.current&&A(E)})),w&&C&&C!==_&&T.current&&A(E),e&&c&&c.on(e,n),t&&c&&c.store.on(t,n),function(){T.current=!1,e&&c&&e.split(" ").forEach((function(e){return c.off(e,n)})),t&&c&&t.split(" ").forEach((function(e){return c.store.off(e,n)}))}}),[c,_]);var k=(0,a.useRef)(!0);(0,a.useEffect)((function(){T.current&&!k.current&&A(E),k.current=!1}),[c,y]);var P=[S,c,w];if(P.t=S,P.i18n=c,P.ready=w,w)return P;if(!w&&!v)return P;throw new Promise((function(e){d(c,b,(function(){e()}))}))}(e,v(v({},c),{},{keyPrefix:t.keyPrefix})),g=(0,o.A)(f,3),y=g[0],b=g[1],w=g[2],E=v(v({},c),{},{t:y,i18n:b,tReady:w});return t.withRef&&l?E.ref=l:!t.withRef&&l&&(E.forwardedRef=l),(0,a.createElement)(n,E)}var l;return r.displayName="withI18nextTranslation(".concat((l=n).displayName||l.name||("string"==typeof l&&l.length>0?l:"Unknown"),")"),r.WrappedComponent=n,t.withRef?(0,a.forwardRef)((function(e,t){return(0,a.createElement)(r,Object.assign({},e,{forwardedRef:t}))})):r}}},12273:function(e,t,n){!function(e,t,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?i(Object(t),!0).forEach((function(n){u.default(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function s(e){var t=e.srcList,n=e.imgPromise,o=void 0===n?p({decode:!0}):n,i=e.useSuspense,s=void 0===i||i,l=r.useState(!1)[1],c=h(m(t)),u=c.join("");if(g[u]||(g[u]={promise:v(c,o),cache:"pending",error:null}),"resolved"===g[u].cache)return{src:g[u].src,isLoading:!1,error:null};if("rejected"===g[u].cache){if(s)throw g[u].error;return{isLoading:!1,error:g[u].error,src:void 0}}if(g[u].promise.then((function(e){g[u]=a(a({},g[u]),{},{cache:"resolved",src:e}),s||l(u)})).catch((function(e){g[u]=a(a({},g[u]),{},{cache:"rejected",error:e}),s||l(u)})),s)throw g[u].promise;return{isLoading:!0,src:void 0,error:null}}function l(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 c(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?l(Object(t),!0).forEach((function(n){u.default(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}var u=o(t),d=o(n),f=o(r),p=function(e){var t=e.decode,n=e.crossOrigin,r=void 0===n?"":n;return function(e){return new Promise((function(n,o){var i=new Image;r&&(i.crossOrigin=r),i.onload=function(){(void 0===t||t)&&i.decode?i.decode().then(n).catch(o):n()},i.onerror=o,i.src=e}))}},h=function(e){return e.filter((function(e){return e}))},m=function(e){return Array.isArray(e)?e:[e]},g={},v=function(e,t){var n=!1;return new Promise((function(r,o){var i=function(e){return t(e).then((function(){n=!0,r(e)}))};e.reduce((function(e,t){return e.catch((function(){if(!n)return i(t)}))}),i(e.shift())).catch(o)}))},y=["decode","src","loader","unloader","container","loaderContainer","unloaderContainer","imgPromise","crossorigin","useSuspense"],b=function(e){return e};e.Img=function(e){var t=e.decode,n=e.src,r=void 0===n?[]:n,o=e.loader,i=void 0===o?null:o,a=e.unloader,l=void 0===a?null:a,u=e.container,h=void 0===u?b:u,m=e.loaderContainer,g=void 0===m?b:m,v=e.unloaderContainer,w=void 0===v?b:v,E=e.imgPromise,x=e.crossorigin,O=e.useSuspense,S=void 0!==O&&O,A=d.default(e,y),_=s({srcList:r,imgPromise:E=E||p({decode:!(void 0!==t)||t,crossOrigin:x}),useSuspense:S}),C=_.src,T=_.isLoading;return C?h(f.default.createElement("img",c({src:C},A))):!S&&T?g(i):!S&&l?w(l):null},e.useImage=s,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(43693),n(54893),n(96540))},22799:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),o=h("react.fragment"),i=h("react.strict_mode"),a=h("react.profiler"),s=h("react.provider"),l=h("react.context"),c=h("react.forward_ref"),u=h("react.suspense"),d=h("react.suspense_list"),f=h("react.memo"),p=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}var m=c,g=f;t.ForwardRef=m,t.Memo=g,t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}(e)===l}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},20225:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Mosaic=t.MosaicWithoutDragDropContext=void 0;var s=a(n(46942)),l=(a(n(74154)),a(n(95950)),a(n(71086)),a(n(96540))),c=n(79543),u=a(n(28746)),d=a(n(98028)),f=n(71306),p=n(51653),h=n(317),m=n(54722),g=n(6252),v=n(10328);function y(e){return null!=e.initialValue}n(78414);var b=function(e){function t(){var t,n=e.apply(this,arguments)||this;return n.state={currentNode:null,lastInitialValue:null,mosaicId:null!==(t=n.props.mosaicId)&&void 0!==t?t:f.v4()},n.updateRoot=function(e,t){void 0===t&&(t=!1);var r=n.getRoot()||{};n.replaceRoot(v.updateTree(r,e),t)},n.replaceRoot=function(e,t){void 0===t&&(t=!1),n.props.onChange(e),!t&&n.props.onRelease&&n.props.onRelease(e),y(n.props)&&n.setState({currentNode:e})},n.actions={updateTree:n.updateRoot,remove:function(e){0===e.length?n.replaceRoot(null):n.updateRoot([v.createRemoveUpdate(n.getRoot(),e)])},expand:function(e,t){return void 0===t&&(t=70),n.updateRoot([v.createExpandUpdate(e,t)])},getRoot:function(){return n.getRoot()},hide:function(e){return n.updateRoot([v.createHideUpdate(e)])},replaceWith:function(e,t){return n.updateRoot([{path:e,spec:{$set:t}}])}},n.childContext={mosaicActions:n.actions,mosaicId:n.state.mosaicId},n}return o(t,e),t.getDerivedStateFromProps=function(e,t){return e.mosaicId&&(t.mosaicId,e.mosaicId),y(e)&&e.initialValue!==t.lastInitialValue?{lastInitialValue:e.initialValue,currentNode:e.initialValue}:null},t.prototype.render=function(){var e=this.props.className;return l.default.createElement(p.MosaicContext.Provider,{value:this.childContext},l.default.createElement("div",{className:s.default(e,"mosaic mosaic-drop-target")},this.renderTree(),l.default.createElement(g.RootDropTargets,null)))},t.prototype.getRoot=function(){return y(this.props)?this.state.currentNode:this.props.value},t.prototype.renderTree=function(){var e=this.getRoot();if(this.validateTree(e),null==e)return this.props.zeroStateView;var t=this.props,n=t.renderTile,r=t.resize;return l.default.createElement(h.MosaicRoot,{root:e,renderTile:n,resize:r})},t.prototype.validateTree=function(e){},t.defaultProps={onChange:function(){},zeroStateView:l.default.createElement(m.MosaicZeroState,null),className:"mosaic-blueprint-theme"},t}(l.default.PureComponent);t.MosaicWithoutDragDropContext=b;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return l.default.createElement(c.DndProvider,{backend:u.default,options:d.default},l.default.createElement(b,i({},this.props)))},t}(l.default.PureComponent);t.Mosaic=w},51737:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicDropTarget=void 0;var a=i(n(46942)),s=i(n(96540)),l=n(79543),c=n(51653),u=n(18488),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.position,n=e.isOver,r=e.connectDropTarget,o=e.draggedMosaicId;return r(s.default.createElement("div",{className:a.default("drop-target",t,{"drop-target-hover":n&&o===this.context.mosaicId})}))},t.contextType=c.MosaicContext,t}(s.default.PureComponent);t.MosaicDropTarget=l.DropTarget(u.MosaicDragType.WINDOW,{drop:function(e,t,n){return n.context.mosaicId===(t.getItem()||{}).mosaicId?{path:e.path,position:e.position}:{}}},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),draggedMosaicId:(t.getItem()||{}).mosaicId}}))(d)},317:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicRoot=void 0;var s=a(n(35970)),l=a(n(96540)),c=n(51653),u=n(4309),d=n(33007),f=n(78414),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onResize=function(e,n,r){t.context.mosaicActions.updateTree([{path:n,spec:{splitPercentage:{$set:e}}}],r)},t}return o(t,e),t.prototype.render=function(){var e=this.props.root;return l.default.createElement("div",{className:"mosaic-root"},this.renderRecursively(e,d.BoundingBox.empty(),[]))},t.prototype.renderRecursively=function(e,t,n){if(f.isParent(e)){var r=null==e.splitPercentage?50:e.splitPercentage,o=d.BoundingBox.split(t,r,e.direction),a=o.first,c=o.second;return s.default([this.renderRecursively(e.first,a,n.concat("first")),this.renderSplit(e.direction,t,r,n),this.renderRecursively(e.second,c,n.concat("second"))].filter(h))}return l.default.createElement("div",{key:e,className:"mosaic-tile",style:i({},d.BoundingBox.asStyles(t))},this.props.renderTile(e,n))},t.prototype.renderSplit=function(e,t,n,r){var o=this,a=this.props.resize;return"DISABLED"!==a?l.default.createElement(u.Split,i({key:r.join(",")+"splitter"},a,{boundingBox:t,splitPercentage:n,direction:e,onChange:function(e){return o.onResize(e,r,!0)},onRelease:function(e){return o.onResize(e,r,!1)}})):null},t.contextType=c.MosaicContext,t}(l.default.PureComponent);function h(e){return null!==e}t.MosaicRoot=p},76277:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicWindow=t.SourceDropConnectedInternalMosaicWindow=t.SourceConnectedInternalMosaicWindow=t.InternalMosaicWindow=void 0;var s=a(n(46942)),l=a(n(64112)),c=a(n(27537)),u=a(n(62193)),d=a(n(2404)),f=a(n(35880)),p=a(n(96540)),h=n(79543),m=n(96753),g=n(21344),v=n(51653),y=n(4219),b=n(51737),w=n(18488),E=n(10328),x=n(78414),O=n(12793),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={additionalControlsOpen:!1},t.rootElement=null,t.renderDropTarget=function(e){var n=t.props.path;return p.default.createElement(b.MosaicDropTarget,{position:e,path:n,key:e})},t.split=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.checkCreateNode();var r=t.props,o=r.createNode,i=r.path,a=t.context.mosaicActions,s=a.getRoot(),l=t.rootElement.offsetWidth>t.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,e)).then((function(e){return a.replaceWith(i,{direction:l,second:e,first:x.getAndAssertNodeAtPathExists(s,i)})}))},t.swap=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.checkCreateNode();var r=t.context.mosaicActions,o=t.props,i=o.createNode,a=o.path;return Promise.resolve(i.apply(void 0,e)).then((function(e){return r.replaceWith(a,e)}))},t.setAdditionalControlsOpen=function(e){t.setState({additionalControlsOpen:e})},t.getPath=function(){return t.props.path},t.connectDragSource=function(e){return(0,t.props.connectDragSource)(e)},t.childContext={mosaicWindowActions:{split:t.split,replaceWithNew:t.swap,setAdditionalControlsOpen:t.setAdditionalControlsOpen,getPath:t.getPath,connectDragSource:t.connectDragSource}},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.isOver,o=t.renderPreview,i=t.additionalControls,a=t.connectDropTarget,l=t.connectDragPreview,c=t.draggedMosaicId;return p.default.createElement(v.MosaicWindowContext.Provider,{value:this.childContext},a(p.default.createElement("div",{className:s.default("mosaic-window mosaic-drop-target",n,{"drop-target-hover":r&&c===this.context.mosaicId,"additional-controls-open":this.state.additionalControlsOpen}),ref:function(t){return e.rootElement=t}},this.renderToolbar(),p.default.createElement("div",{className:"mosaic-window-body"},this.props.children),p.default.createElement("div",{className:"mosaic-window-body-overlay",onClick:function(){return e.setAdditionalControlsOpen(!1)}}),p.default.createElement("div",{className:"mosaic-window-additional-actions-bar"},i),l(o(this.props)),p.default.createElement("div",{className:"drop-target-container"},f.default(y.MosaicDropTargetPosition).map(this.renderDropTarget)))))},t.prototype.getToolbarControls=function(){var e=this.props,t=e.toolbarControls,n=e.createNode;return t||(n?m.DEFAULT_CONTROLS_WITH_CREATION:m.DEFAULT_CONTROLS_WITHOUT_CREATION)},t.prototype.renderToolbar=function(){var e,t=this,n=this.props,r=n.title,o=n.draggable,i=n.additionalControls,a=n.additionalControlButtonText,l=n.path,c=n.renderToolbar,d=this.state.additionalControlsOpen,f=this.getToolbarControls(),h=o&&l.length>0,m=h?this.props.connectDragSource:function(e){return e};if(c){var v=m(c(this.props,o));return p.default.createElement("div",{className:s.default("mosaic-window-toolbar",{draggable:h})},v)}var y=m(p.default.createElement("div",{title:r,className:"mosaic-window-title"},r)),b=!u.default(i);return p.default.createElement("div",{className:s.default("mosaic-window-toolbar",{draggable:h})},y,p.default.createElement("div",{className:s.default("mosaic-window-controls",O.OptionalBlueprint.getClasses("BUTTON_GROUP"))},b&&p.default.createElement("button",{onClick:function(){return t.setAdditionalControlsOpen(!d)},className:s.default(O.OptionalBlueprint.getClasses("BUTTON","MINIMAL"),O.OptionalBlueprint.getIconClass("MORE"),(e={},e[O.OptionalBlueprint.getClasses("ACTIVE")]=d,e))},p.default.createElement("span",{className:"control-text"},a)),b&&p.default.createElement(g.Separator,null),f))},t.prototype.checkCreateNode=function(){if(null==this.props.createNode)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(e){var t=e.title;return p.default.createElement("div",{className:"mosaic-preview"},p.default.createElement("div",{className:"mosaic-window-toolbar"},p.default.createElement("div",{className:"mosaic-window-title"},t)),p.default.createElement("div",{className:"mosaic-window-body"},p.default.createElement("h4",null,t),p.default.createElement(O.OptionalBlueprint.Icon,{iconSize:72,icon:"application"})))},renderToolbar:null},t.contextType=v.MosaicContext,t}(p.default.Component);t.InternalMosaicWindow=S;var A={beginDrag:function(e,t,n){e.onDragStart&&e.onDragStart();var r=l.default((function(){return n.context.mosaicActions.hide(n.props.path)}));return{mosaicId:n.context.mosaicId,hideTimer:r}},endDrag:function(e,t,n){var r=t.getItem().hideTimer;window.clearTimeout(r);var o=n.props.path,i=t.getDropResult()||{},a=n.context.mosaicActions,s=i.position,l=i.path;null==s||null==l||d.default(l,o)?(a.updateTree([{path:c.default(o),spec:{splitPercentage:{$set:null}}}]),e.onDragEnd&&e.onDragEnd("reset")):(a.updateTree(E.createDragToUpdates(a.getRoot(),o,l,s)),e.onDragEnd&&e.onDragEnd("drop"))}};t.SourceConnectedInternalMosaicWindow=h.DragSource(w.MosaicDragType.WINDOW,A,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview()}}))(S),t.SourceDropConnectedInternalMosaicWindow=h.DropTarget(w.MosaicDragType.WINDOW,{},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),draggedMosaicId:(t.getItem()||{}).mosaicId}}))(t.SourceConnectedInternalMosaicWindow);var _=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.render=function(){return p.default.createElement(t.SourceDropConnectedInternalMosaicWindow,i({},this.props))},n}(p.default.PureComponent);t.MosaicWindow=_},54722:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicZeroState=void 0;var a=i(n(46942)),s=i(n(63950)),l=i(n(96540)),c=n(51653),u=n(12793),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.replace=function(){return Promise.resolve(t.props.createNode()).then((function(e){return t.context.mosaicActions.replaceWith([],e)})).catch(s.default)},t}return o(t,e),t.prototype.render=function(){return l.default.createElement("div",{className:a.default("mosaic-zero-state",u.OptionalBlueprint.getClasses("NON_IDEAL_STATE"))},l.default.createElement("div",{className:u.OptionalBlueprint.getClasses("NON_IDEAL_STATE_VISUAL")},l.default.createElement(u.OptionalBlueprint.Icon,{iconSize:120,icon:"applications"})),l.default.createElement("h4",{className:u.OptionalBlueprint.getClasses("HEADING")},"No Windows Present"),l.default.createElement("div",null,this.props.createNode&&l.default.createElement("button",{className:a.default(u.OptionalBlueprint.getClasses("BUTTON"),u.OptionalBlueprint.getIconClass("ADD")),onClick:this.replace},"Add New Window")))},t.contextType=c.MosaicContext,t}(l.default.PureComponent);t.MosaicZeroState=d},6252:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootDropTargets=void 0;var a=i(n(46942)),s=i(n(35880)),l=i(n(96540)),c=n(79543),u=n(4219),d=n(51737),f=n(18488),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return l.default.createElement("div",{className:a.default("drop-target-container",{"-dragging":this.props.isDragging})},s.default(u.MosaicDropTargetPosition).map((function(e){return l.default.createElement(d.MosaicDropTarget,{position:e,path:[],key:e})})))},t}(l.default.PureComponent);t.RootDropTargets=c.DropTarget(f.MosaicDragType.WINDOW,{},(function(e,t){return{isDragging:null!==t.getItem()&&t.getItemType()===f.MosaicDragType.WINDOW}}))(p)},4309:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Split=void 0;var s=a(n(46942)),l=a(n(78659)),c=a(n(7350)),u=a(n(96540)),d=n(33007),f=1e3/30,p={capture:!0,passive:!1},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElement=u.default.createRef(),t.listenersBound=!1,t.onMouseDown=function(e){(m(e)||0===e.button)&&(e.preventDefault(),t.bindListeners())},t.onMouseUp=function(e){t.unbindListeners();var n=t.calculateRelativePercentage(e);t.props.onRelease(n)},t.onMouseMove=function(e){e.preventDefault(),e.stopPropagation(),t.throttledUpdatePercentage(e)},t.throttledUpdatePercentage=c.default((function(e){var n=t.calculateRelativePercentage(e);n!==t.props.splitPercentage&&t.props.onChange(n)}),f),t}return o(t,e),t.prototype.render=function(){var e=this.props.direction;return u.default.createElement("div",{className:s.default("mosaic-split",{"-row":"row"===e,"-column":"column"===e}),ref:this.rootElement,onMouseDown:this.onMouseDown,style:this.computeStyle()},u.default.createElement("div",{className:"mosaic-split-line"}))},t.prototype.componentDidMount=function(){this.rootElement.current.addEventListener("touchstart",this.onMouseDown,p)},t.prototype.componentWillUnmount=function(){this.unbindListeners(),this.rootElement.current&&this.rootElement.current.ownerDocument.removeEventListener("touchstart",this.onMouseDown,p)},t.prototype.bindListeners=function(){this.listenersBound||(this.rootElement.current.ownerDocument.addEventListener("mousemove",this.onMouseMove,!0),this.rootElement.current.ownerDocument.addEventListener("touchmove",this.onMouseMove,p),this.rootElement.current.ownerDocument.addEventListener("mouseup",this.onMouseUp,!0),this.rootElement.current.ownerDocument.addEventListener("touchend",this.onMouseUp,!0),this.listenersBound=!0)},t.prototype.unbindListeners=function(){this.rootElement.current&&(this.rootElement.current.ownerDocument.removeEventListener("mousemove",this.onMouseMove,!0),this.rootElement.current.ownerDocument.removeEventListener("touchmove",this.onMouseMove,p),this.rootElement.current.ownerDocument.removeEventListener("mouseup",this.onMouseUp,!0),this.rootElement.current.ownerDocument.removeEventListener("touchend",this.onMouseUp,!0),this.listenersBound=!1)},t.prototype.computeStyle=function(){var e,t=this.props,n=t.boundingBox,r=t.direction,o=t.splitPercentage,a="column"===r?"top":"left",s=d.BoundingBox.getAbsoluteSplitPercentage(n,o,r);return i(i({},d.BoundingBox.asStyles(n)),((e={})[a]=s+"%",e))},t.prototype.calculateRelativePercentage=function(e){var t,n=this.props,r=n.minimumPaneSizePercentage,o=n.direction,i=n.boundingBox,a=this.rootElement.current.parentElement.getBoundingClientRect(),s=m(e)?e.changedTouches[0]:e;t="column"===o?(s.clientY-a.top)/a.height*100:(s.clientX-a.left)/a.width*100;var c=d.BoundingBox.getRelativeSplitPercentage(i,t,o);return l.default(c,r,100-r)},t.defaultProps={onChange:function(){},onRelease:function(){},minimumPaneSizePercentage:20},t}(u.default.PureComponent);function m(e){return null!=e.changedTouches}t.Split=h},4559:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandButton=void 0;var a=i(n(46942)),s=i(n(96540)),l=n(51653),c=n(12793),u=n(21775),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s.default.createElement(l.MosaicContext.Consumer,null,(function(t){var n=t.mosaicActions;return u.createDefaultToolbarButton("Expand",a.default("expand-button",c.OptionalBlueprint.getIconClass("MAXIMIZE")),e.createExpand(n))}))},t.prototype.createExpand=function(e){var t=this;return function(){e.expand(t.context.mosaicWindowActions.getPath()),t.props.onClick&&t.props.onClick()}},t.contextType=l.MosaicWindowContext,t}(s.default.PureComponent);t.ExpandButton=d},21775:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultToolbarButton=void 0;var o=r(n(46942)),i=r(n(96540)),a=n(12793);t.createDefaultToolbarButton=function(e,t,n,r){return i.default.createElement("button",{title:e,onClick:n,className:o.default("mosaic-default-control",a.OptionalBlueprint.getClasses("BUTTON","MINIMAL"),t)},r&&i.default.createElement("span",{className:"control-text"},r))}},88479:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButton=void 0;var a=i(n(46942)),s=i(n(96540)),l=n(51653),c=n(12793),u=n(21775),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s.default.createElement(l.MosaicContext.Consumer,null,(function(t){var n=t.mosaicActions;return u.createDefaultToolbarButton("Close Window",a.default("close-button",c.OptionalBlueprint.getIconClass("CROSS")),e.createRemove(n))}))},t.prototype.createRemove=function(e){var t=this;return function(){e.remove(t.context.mosaicWindowActions.getPath()),t.props.onClick&&t.props.onClick()}},t.contextType=l.MosaicWindowContext,t}(s.default.PureComponent);t.RemoveButton=d},21551:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaceButton=void 0;var a=i(n(46942)),s=i(n(63950)),l=i(n(96540)),c=n(51653),u=n(12793),d=n(21775),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.replace=function(){t.context.mosaicWindowActions.replaceWithNew().then((function(){t.props.onClick&&t.props.onClick()})).catch(s.default)},t}return o(t,e),t.prototype.render=function(){return d.createDefaultToolbarButton("Replace Window",a.default("replace-button",u.OptionalBlueprint.getIconClass("EXCHANGE")),this.replace)},t.contextType=c.MosaicWindowContext,t}(l.default.PureComponent);t.ReplaceButton=f},21344:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=void 0;var a=i(n(96540)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return a.default.createElement("div",{className:"separator"})},t}(a.default.PureComponent);t.Separator=s},31927:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitButton=void 0;var a=i(n(46942)),s=i(n(63950)),l=i(n(96540)),c=n(51653),u=n(12793),d=n(21775),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.split=function(){t.context.mosaicWindowActions.split().then((function(){t.props.onClick&&t.props.onClick()})).catch(s.default)},t}return o(t,e),t.prototype.render=function(){return d.createDefaultToolbarButton("Split Window",a.default("split-button",u.OptionalBlueprint.getIconClass("ADD_COLUMN_RIGHT")),this.split)},t.contextType=c.MosaicWindowContext,t}(l.default.PureComponent);t.SplitButton=f},96753:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONTROLS_WITHOUT_CREATION=t.DEFAULT_CONTROLS_WITH_CREATION=void 0;var o=r(n(96540)),i=n(4559),a=n(88479),s=n(21551),l=n(31927);t.DEFAULT_CONTROLS_WITH_CREATION=o.default.Children.toArray([o.default.createElement(s.ReplaceButton,null),o.default.createElement(l.SplitButton,null),o.default.createElement(i.ExpandButton,null),o.default.createElement(a.RemoveButton,null)]),t.DEFAULT_CONTROLS_WITHOUT_CREATION=o.default.Children.toArray([o.default.createElement(i.ExpandButton,null),o.default.createElement(a.RemoveButton,null)])},51653:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicWindowContext=t.MosaicContext=void 0;var o=r(n(96540));t.MosaicContext=o.default.createContext(void 0),t.MosaicWindowContext=o.default.createContext(void 0)},1353:(e,t,n)=>{"use strict";var r=n(20225);Object.defineProperty(t,"bQ",{enumerable:!0,get:function(){return r.MosaicWithoutDragDropContext}});n(18488),n(51653),n(10328);var o=n(78414);Object.defineProperty(t,"fj",{enumerable:!0,get:function(){return o.createBalancedTreeFromLeaves}}),Object.defineProperty(t,"Lg",{enumerable:!0,get:function(){return o.getLeaves}});var i=n(76277);Object.defineProperty(t,"XF",{enumerable:!0,get:function(){return i.MosaicWindow}});n(21775),n(54722),n(21344),n(4559),n(21551),n(31927),n(88479),n(96753)},4219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicDropTargetPosition=void 0,t.MosaicDropTargetPosition={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"}},18488:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicDragType=void 0,t.MosaicDragType={WINDOW:"MosaicWindow"}},33007:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.BoundingBox=void 0;var o=n(58485);!function(e){function t(e,t,n){var r=e.top,i=e.right,a=e.bottom,s=e.left;return"column"===n?(100-r-a)*t/100+r:"row"===n?(100-i-s)*t/100+s:o.assertNever(n)}e.empty=function(){return{top:0,right:0,bottom:0,left:0}},e.split=function(e,n,i){var a=t(e,n,i);return"column"===i?{first:r(r({},e),{bottom:100-a}),second:r(r({},e),{top:a})}:"row"===i?{first:r(r({},e),{right:100-a}),second:r(r({},e),{left:a})}:o.assertNever(i)},e.getAbsoluteSplitPercentage=t,e.getRelativeSplitPercentage=function(e,t,n){var r=e.top,i=e.right,a=e.bottom,s=e.left;return"column"===n?(t-r)/(100-r-a)*100:"row"===n?(t-s)/(100-i-s)*100:o.assertNever(n)},e.asStyles=function(e){return{top:e.top+"%",right:e.right+"%",bottom:e.bottom+"%",left:e.left+"%"}}}(t.BoundingBox||(t.BoundingBox={}))},12793:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalBlueprint=void 0;var a=i(n(96540));!function(e){var t,r,o;try{Object(function(){var e=new Error("Cannot find module '@blueprintjs/core'");throw e.code="MODULE_NOT_FOUND",e}()),Object(function(){var e=new Error("Cannot find module '@blueprintjs/icons'");throw e.code="MODULE_NOT_FOUND",e}()),t=n(Object(function(){var e=new Error("Cannot find module '@blueprintjs/core'");throw e.code="MODULE_NOT_FOUND",e}())),r=t.Classes,e.Icon=t.Icon,o=Object(function(){var e=new Error("Cannot find module '@blueprintjs/icons'");throw e.code="MODULE_NOT_FOUND",e}())}catch(t){e.Icon=function(e){var t=e.icon;return a.createElement("span",null,t)}}e.getClasses=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r?e.map((function(e){return r[e]})).join(" "):""},e.getIconClass=function(e){return r&&o?r.iconClass(o[e]):""}}(t.OptionalBlueprint||(t.OptionalBlueprint={}))},58485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNever=void 0,t.assertNever=function(e){throw new Error("Unhandled case: "+JSON.stringify(e))}},10328:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createExpandUpdate=t.createHideUpdate=t.createDragToUpdates=t.createRemoveUpdate=t.updateTree=t.buildSpecFromUpdate=void 0;var o=r(n(46894)),i=r(n(3739)),a=r(n(27537)),s=r(n(2404)),l=r(n(68090)),c=r(n(63560)),u=r(n(34921)),d=n(4219),f=n(78414);function p(e){return e.path.length>0?c.default({},e.path,e.spec):e.spec}function h(e,t){var n=e;return t.forEach((function(e){n=o.default(n,p(e))})),n}function m(e,t){var n=a.default(t),r=l.default(t),o=n.concat(f.getOtherBranch(r));return{path:n,spec:{$set:f.getAndAssertNodeAtPathExists(e,o)}}}function g(e,t,n){return s.default(u.default(e,n),u.default(t,n))}t.buildSpecFromUpdate=p,t.updateTree=h,t.createRemoveUpdate=m,t.createDragToUpdates=function(e,t,n,r){var o=f.getAndAssertNodeAtPathExists(e,n),a=[];g(t,n,n.length)?o=h(o,[m(o,i.default(t,n.length))]):(a.push(m(e,t)),g(t,n,t.length-1)&&n.splice(t.length-1,1));var s,l,c=f.getAndAssertNodeAtPathExists(e,t);r===d.MosaicDropTargetPosition.LEFT||r===d.MosaicDropTargetPosition.TOP?(s=c,l=o):(s=o,l=c);var u="column";return r!==d.MosaicDropTargetPosition.LEFT&&r!==d.MosaicDropTargetPosition.RIGHT||(u="row"),a.push({path:n,spec:{$set:{first:s,second:l,direction:u}}}),a},t.createHideUpdate=function(e){return{path:a.default(e),spec:{splitPercentage:{$set:"first"===l.default(e)?0:100}}}},t.createExpandUpdate=function(e,t){for(var n,r={},o=e.length-1;o>=0;o--){var i=e[o];(n={splitPercentage:{$set:"first"===i?t:100-t}})[i]=r,r=n}return{spec:r,path:[]}}},78414:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAndAssertNodeAtPathExists=t.getNodeAtPath=t.getLeaves=t.getPathToCorner=t.getOtherDirection=t.getOtherBranch=t.createBalancedTreeFromLeaves=t.isParent=t.Corner=void 0;var o,i=r(n(32629)),a=r(n(58156));function s(e,t){if(void 0===t&&(t="row"),l(e)){var n=c(t);return{direction:t,first:s(e.first,n),second:s(e.second,n)}}return e}function l(e){return null!=e.direction}function c(e){return"row"===e?"column":"row"}function u(e,t){return t.length>0?a.default(e,t,null):e}!function(e){e[e.TOP_LEFT=1]="TOP_LEFT",e[e.TOP_RIGHT=2]="TOP_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=4]="BOTTOM_RIGHT"}(o=t.Corner||(t.Corner={})),t.isParent=l,t.createBalancedTreeFromLeaves=function(e,t){if(void 0===t&&(t="row"),0===e.length)return null;for(var n=i.default(e),r=[];n.length>1;){for(;n.length>0;)n.length>1?r.push({direction:"row",first:n.shift(),second:n.shift()}):r.unshift(n.shift());n=r,r=[]}return s(n[0],t)},t.getOtherBranch=function(e){if("first"===e)return"second";if("second"===e)return"first";throw new Error("Branch '"+e+"' not a valid branch")},t.getOtherDirection=c,t.getPathToCorner=function(e,t){for(var n=e,r=[];l(n);)("row"!==n.direction||t!==o.TOP_LEFT&&t!==o.BOTTOM_LEFT)&&("column"!==n.direction||t!==o.TOP_LEFT&&t!==o.TOP_RIGHT)?(r.push("second"),n=n.second):(r.push("first"),n=n.first);return r},t.getLeaves=function e(t){return null==t?[]:l(t)?e(t.first).concat(e(t.second)):[t]},t.getNodeAtPath=u,t.getAndAssertNodeAtPathExists=function(e,t){if(null==e)throw new Error("Root is empty, cannot fetch path");var n=u(e,t);if(null==n)throw new Error("Path ["+t.join(", ")+"] did not resolve to a node");return n}},71306:(e,t,n)=>{var r=n(77693),o=n(86162),i=o;i.v1=r,i.v4=o,e.exports=i},51187:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},40490:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)3&t||(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},77693:(e,t,n)=>{var r,o,i=n(40490),a=n(51187),s=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==f){var p=i();null==d&&(d=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,g=h-s+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(f=f+1&16383),(g<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,l=m,o=f;var v=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;u[c++]=v>>>24&255,u[c++]=v>>>16&255,u[c++]=v>>>8&255,u[c++]=255&v;var y=h/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=f>>>8|128,u[c++]=255&f;for(var b=0;b<6;++b)u[c+b]=d[b];return t||a(u)}},86162:(e,t,n)=>{var r=n(40490),o=n(51187);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}},61225:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>u,Ng:()=>V});var r=n(96540),o=r.createContext(null),i=function(e){e()},a=function(){return i},s={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=s;function o(){l.onStateChange&&l.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=a(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var l={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=s)},getListeners:function(){return r}};return l}var c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;const u=function(e){var t=e.store,n=e.context,i=e.children,a=(0,r.useMemo)((function(){var e=l(t);return{store:t,subscription:e}}),[t]),s=(0,r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,s]);var u=n||o;return r.createElement(u.Provider,{value:a},i)};var d=n(58168),f=n(98587),p=n(4146),h=n.n(p),m=n(44363),g=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],v=["reactReduxForwardedRef"],y=[],b=[null,null];function w(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){c((function(){return e.apply(void 0,t)}),n)}function x(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function O(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=f,n.trySubscribe(),f(),function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var S=function(){return[null,0]};function A(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=n.methodName,c=void 0===s?"connectAdvanced":s,u=n.renderCountProp,p=void 0===u?void 0:u,A=n.shouldHandleStateChanges,_=void 0===A||A,C=n.storeKey,T=void 0===C?"store":C,k=(n.withRef,n.forwardRef),P=void 0!==k&&k,I=n.context,R=void 0===I?o:I,j=(0,f.A)(n,g),D=R;return function(t){var n=t.displayName||t.name||"Component",o=a(n),i=(0,d.A)({},j,{getDisplayName:a,methodName:c,renderCountProp:p,shouldHandleStateChanges:_,storeKey:T,displayName:o,wrappedComponentName:n,WrappedComponent:t}),s=j.pure,u=s?r.useMemo:function(e){return e()};function g(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,f.A)(n,v);return[n.context,e,t]}),[n]),a=o[0],s=o[1],c=o[2],p=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,m.isContextConsumer)(r.createElement(a.Consumer,null))?a:D}),[a,D]),h=(0,r.useContext)(p),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(h)&&Boolean(h.store);var A=g?n.store:h.store,C=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,i)}(A)}),[A]),T=(0,r.useMemo)((function(){if(!_)return b;var e=l(A,g?null:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[A,g,h]),k=T[0],P=T[1],I=(0,r.useMemo)((function(){return g?h:(0,d.A)({},h,{subscription:k})}),[g,h,k]),R=(0,r.useReducer)(w,y,S),j=R[0][0],N=R[1];if(j&&j.error)throw j.error;var M=(0,r.useRef)(),L=(0,r.useRef)(c),z=(0,r.useRef)(),W=(0,r.useRef)(!1),B=u((function(){return z.current&&c===L.current?z.current:C(A.getState(),c)}),[A,j,c]);E(x,[L,M,W,c,B,z,P]),E(O,[_,A,k,C,L,M,W,z,P,N],[A,k,C]);var F=(0,r.useMemo)((function(){return r.createElement(t,(0,d.A)({},B,{ref:s}))}),[s,t,B]);return(0,r.useMemo)((function(){return _?r.createElement(p.Provider,{value:I},F):F}),[p,F,I])}var A=s?r.memo(g):g;if(A.WrappedComponent=t,A.displayName=g.displayName=o,P){var C=r.forwardRef((function(e,t){return r.createElement(A,(0,d.A)({},e,{reactReduxForwardedRef:t}))}));return C.displayName=o,C.WrappedComponent=t,h()(C,t)}return h()(A,t)}}function _(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(_(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!_(e[n[o]],t[n[o]]))return!1;return!0}function T(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function k(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=k(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=k(o),o=r(t,n)),o},r}}const I=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:T((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?T((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}],R=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:T((function(){return{}}))}];function j(e,t,n){return(0,d.A)({},n,e,t)}const D=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var N=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function M(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function L(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;return function(o,h){return p?function(o,p){var h,m,g=!d(p,a),v=!u(o,i,p,a);return i=o,a=p,g&&v?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):v?(h=e(i,a),m=!f(h,s),s=h,m&&(c=n(s,l,a)),c):c}(o,h):(s=e(i=o,a=h),l=t(r,a),c=n(s,l,a),p=!0,c)}}function z(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,f.A)(t,N),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?L:M)(a,s,l,e,i)}var W=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function B(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function F(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?A:n,o=t.mapStateToPropsFactories,i=void 0===o?R:o,a=t.mapDispatchToPropsFactories,s=void 0===a?I:a,l=t.mergePropsFactories,c=void 0===l?D:l,u=t.selectorFactory,p=void 0===u?z:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,u=void 0===l||l,h=a.areStatesEqual,m=void 0===h?F:h,g=a.areOwnPropsEqual,v=void 0===g?C:g,y=a.areStatePropsEqual,b=void 0===y?C:y,w=a.areMergedPropsEqual,E=void 0===w?C:w,x=(0,f.A)(a,W),O=B(e,i,"mapStateToProps"),S=B(t,s,"mapDispatchToProps"),A=B(n,c,"mergeProps");return r(p,(0,d.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:O,initMapDispatchToProps:S,initMergeProps:A,pure:u,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:E},x))}}const V=H();var U;U=n(40961).unstable_batchedUpdates,i=U},87960:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(96540))&&r.__esModule?r:{default:r};function i(e){return i="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},i(e)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f(e,t,n[t])}))}return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?d(e):t}function u(e){return u=Object.getPrototypeOf||function(e){return e.__proto__},u(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden",zIndex:-1,visibility:"hidden",pointerEvents:"none"},h={position:"absolute",left:0,top:0,transition:"0s"},m=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return c(r,(n=r=c(this,(e=u(t)).call.apply(e,[this].concat(i))),f(d(d(r)),"_expandRef",null),f(d(d(r)),"_shrinkRef",null),f(d(d(r)),"_node",null),f(d(d(r)),"_lastWidth",void 0),f(d(d(r)),"_lastHeight",void 0),f(d(d(r)),"_lastRect",void 0),f(d(d(r)),"_hasResize",!1),f(d(d(r)),"_handleScroll",(function(e){(r.props.onPosition||r.props.onReflow||r.props.onResize)&&(r._globalScollTarget(e.target)||r._refScrollTarget(e.target)||r._ancestorScollTarget(e.target))&&r._reflow()})),f(d(d(r)),"_globalScollTarget",(function(e){return e instanceof Node&&(r.props.onPosition||r.props.onReflow)&&(e===document||e===document.documentElement||e===document.body)})),f(d(d(r)),"_refScrollTarget",(function(e){if(e instanceof HTMLElement&&(e===r._expandRef||e===r._shrinkRef)){var t=e.offsetWidth,n=e.offsetHeight;if(t!==r._lastWidth||n!==r._lastHeight)return r._lastWidth=t,r._lastHeight=n,r._reset(r._expandRef),r._reset(r._shrinkRef),!0}return!1})),f(d(d(r)),"_ancestorScollTarget",(function(e){return e instanceof Node&&(r.props.onPosition||r.props.onReflow)&&r._node&&function(e,t){for(var n=e.parentNode;n;){if(n===t)return!0;n=n.parentNode}return!1}(r._node,e)})),f(d(d(r)),"_reflow",(function(){if(r._node&&r._node.parentNode instanceof Element){var e=r._node.parentNode.getBoundingClientRect(),t=!0,n=!0;r._lastRect&&(t=e.width!==r._lastRect.width||e.height!==r._lastRect.height,n=e.top!==r._lastRect.top||e.left!==r._lastRect.left),r._lastRect=e,t&&r.props.onResize&&r.props.onResize(e),n&&r.props.onPosition&&r.props.onPosition(e),(t||n)&&r.props.onReflow&&r.props.onReflow(e)}})),f(d(d(r)),"_handleRef",(function(e){r._node=e})),f(d(d(r)),"_handleExpandRef",(function(e){r._reset(e),r._expandRef=e})),f(d(d(r)),"_handleShrinkRef",(function(e){r._reset(e),r._shrinkRef=e})),n))}var n,r;return n=t,(r=[{key:"componentDidMount",value:function(){this._reflow(),window.addEventListener("scroll",this._handleScroll,!0),(this.props.onPosition||this.props.onReflow)&&(window.addEventListener("resize",this._reflow,!0),this._hasResize=!0)}},{key:"componentDidUpdate",value:function(){!this.props.onPosition&&!this.props.onReflow||this._hasResize?this.props.onPosition||this.props.onReflow||!this._hasResize||(window.removeEventListener("resize",this._reflow,!0),this._hasResize=!1):(window.addEventListener("resize",this._reflow,!0),this._hasResize=!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this._handleScroll,!0),this._hasResize&&window.removeEventListener("resize",this._reflow,!0)}},{key:"_reset",value:function(e){e&&(e.scrollLeft=1e5,e.scrollTop=1e5)}},{key:"render",value:function(){return this.props.onResize||this.props.onReflow?o.default.createElement("div",{style:p,ref:this._handleRef},o.default.createElement("div",{ref:this._handleExpandRef,style:p},o.default.createElement("div",{style:a({},h,{width:1e5,height:1e5})})),o.default.createElement("div",{ref:this._handleShrinkRef,style:p},o.default.createElement("div",{style:a({},h,{width:"200%",height:"200%"})}))):o.default.createElement("noscript",{ref:this._handleRef})}}])&&l(n.prototype,r),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");s(e.prototype,t&&t.prototype),t&&s(e,t)}(t,e),t}(o.default.Component);f(m,"displayName","ResizeObserver");var g=m;t.A=g},77698:(e,t,n)=>{"use strict";n.d(t,{p:()=>P});var r=n(96540),o=n(55794),i=n.n(o),a=n(40961),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)},c={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},u={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},d={width:"20px",height:"20px",position:"absolute"},f={top:l(l({},c),{top:"-5px"}),right:l(l({},u),{left:void 0,right:"-5px"}),bottom:l(l({},c),{top:void 0,bottom:"-5px"}),left:l(l({},u),{left:"-5px"}),topRight:l(l({},d),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:l(l({},d),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:l(l({},d),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:l(l({},d),{left:"-10px",top:"-10px",cursor:"nw-resize"})},p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return s(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:l(l({position:"absolute",userSelect:"none"},f[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)},g={width:"auto",height:"auto"},v=function(e,t,n){return Math.max(Math.min(e,n),t)},y=function(e,t,n){var r=Math.round(e/t);return r*t+n*(r-1)},b=function(e,t){return new RegExp(e,"i").test(t)},w=function(e){return Boolean(e.touches&&e.touches.length)},E=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},x=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},O=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},S=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],A="__resizable_base__",_=function(e){function t(t){var n,r,o,i,a=e.call(this,t)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.appendBase=function(){if(!a.resizable||!a.window)return null;var e=a.parentNode;if(!e)return null;var t=a.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(A):t.className+=A,e.appendChild(t),t},a.removeBase=function(e){var t=a.parentNode;t&&t.removeChild(e)},a.state={isResizing:!1,width:null!==(r=null===(n=a.propsSize)||void 0===n?void 0:n.width)&&void 0!==r?r:"auto",height:null!==(i=null===(o=a.propsSize)||void 0===o?void 0:o.height)&&void 0!==i?i:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return h(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||g},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){var n;if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&(null===(n=e.propsSize[t])||void 0===n?void 0:n.toString().endsWith("%"))){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return x(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?x(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?x(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&b("left",i),s=o&&b("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n,r=this.props.scale||1,o=(n=this.props.resizeRatio||1,Array.isArray(n)?n:[n,n]),i=o[0],a=o[1],s=this.state,l=s.direction,c=s.original,u=this.props,d=u.lockAspectRatio,f=u.lockAspectRatioExtraHeight,p=u.lockAspectRatioExtraWidth,h=c.width,m=c.height,g=f||0,v=p||0;return b("right",l)&&(h=c.width+(e-c.x)*i/r,d&&(m=(h-v)/this.ratio+g)),b("left",l)&&(h=c.width-(e-c.x)*i/r,d&&(m=(h-v)/this.ratio+g)),b("bottom",l)&&(m=c.height+(t-c.y)*a/r,d&&(h=(m-g)*this.ratio+v)),b("top",l)&&(m=c.height-(t-c.y)*a/r,d&&(h=(m-g)*this.ratio+v)),{newWidth:h,newHeight:m}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=s||0;if(i){var h=(u-f)*this.ratio+p,m=(d-f)*this.ratio+p,g=(l-p)/this.ratio+f,y=(c-p)/this.ratio+f,b=Math.max(l,h),w=Math.min(c,m),E=Math.max(u,g),x=Math.min(d,y);e=v(e,b,w),t=v(t,E,x)}else e=v(e,l,c),t=v(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){var e=1/(this.props.scale||1);if("parent"===this.props.bounds){var t=this.parentNode;if(t){var n=t.getBoundingClientRect();this.parentLeft=n.left*e,this.parentTop=n.top*e}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left*e,this.targetTop=r.top*e}if(this.resizable){var o=this.resizable.getBoundingClientRect(),i=o.left,a=o.top,s=o.right,l=o.bottom;this.resizableLeft=i*e,this.resizableRight=s*e,this.resizableTop=a*e,this.resizableBottom=l*e}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&w(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable&&!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:m(m({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&w(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,s=n.minHeight,l=w(e)?e.touches[0].clientX:e.clientX,c=w(e)?e.touches[0].clientY:e.clientY,u=this.state,d=u.direction,f=u.original,p=u.width,h=u.height,m=this.getParentSize(),g=function(e,t,n,r,o,i,a){return r=O(r,e.width,t,n),o=O(o,e.height,t,n),i=O(i,e.width,t,n),a=O(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(m,this.window.innerWidth,this.window.innerHeight,r,o,i,s);r=g.maxWidth,o=g.maxHeight,i=g.minWidth,s=g.minHeight;var v=this.calculateNewSizeFromDirection(l,c),b=v.newHeight,x=v.newWidth,S=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(x=E(x,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(b=E(b,this.props.snap.y,this.props.snapGap));var A=this.calculateNewSizeFromAspectRatio(x,b,{width:S.maxWidth,height:S.maxHeight},{width:i,height:s});if(x=A.newWidth,b=A.newHeight,this.props.grid){var _=y(x,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),C=y(b,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),T=this.props.snapGap||0;x=0===T||Math.abs(_-x)<=T?_:x,b=0===T||Math.abs(C-b)<=T?C:b}var k={width:x-f.width,height:b-f.height};p&&"string"==typeof p&&(p.endsWith("%")?x=x/m.width*100+"%":p.endsWith("vw")?x=x/this.window.innerWidth*100+"vw":p.endsWith("vh")&&(x=x/this.window.innerHeight*100+"vh")),h&&"string"==typeof h&&(h.endsWith("%")?b=b/m.height*100+"%":h.endsWith("vw")?b=b/this.window.innerWidth*100+"vw":h.endsWith("vh")&&(b=b/this.window.innerHeight*100+"vh"));var P={width:this.createSizeForCssProperty(x,"width"),height:this.createSizeForCssProperty(b,"height")};"row"===this.flexDir?P.flexBasis=P.width:"column"===this.flexDir&&(P.flexBasis=P.height);var I=this.state.width!==P.width,R=this.state.height!==P.height,j=this.state.flexBasis!==P.flexBasis,D=I||R||j;D&&(0,a.flushSync)((function(){t.setState(P)})),this.props.onResize&&D&&this.props.onResize(e,d,this.resizable,k)}},t.prototype.onMouseUp=function(e){var t,n,r=this.state,o=r.isResizing,i=r.direction,a=r.original;if(o&&this.resizable){var s={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,i,this.resizable,s),this.props.size&&this.setState({width:null!==(t=this.props.size.width)&&void 0!==t?t:"auto",height:null!==(n=this.props.size.height)&&void 0!==n?n:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:m(m({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){var t,n;this.setState({width:null!==(t=e.width)&&void 0!==t?t:"auto",height:null!==(n=e.height)&&void 0!==n?n:"auto"})},t.prototype.renderResizer=function(e){var t=this,n=this.props,o=n.enable,i=n.handleStyles,a=n.handleClasses,s=n.handleWrapperStyle,l=n.handleWrapperClass,c=n.handleComponent;if(!o)return null;var u=e.filter((function(e){return!1!==o[e]})).map((function(e){return!1!==o[e]?r.createElement(p,{key:e,direction:e,onResizeStart:t.onResizeStart,replaceStyles:i&&i[e],className:a&&a[e]},c&&c[e]?c[e]:null):null}));return r.createElement("div",{className:l,style:s},u)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==S.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=m(m(m({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return r.createElement(o,m({style:n,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)}}),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.renderResizer(["topLeft","top","topRight","left"]),this.props.children,this.renderResizer(["right","bottomLeft","bottom","bottomRight"]))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent),C=function(e,t){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},C(e,t)},T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T.apply(this,arguments)},k={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},P=function(e){function t(t){var n=e.call(this,t)||this;return n.resizingPosition={x:0,y:0},n.offsetFromParent={left:0,top:0},n.resizableElement={current:null},n.originalPosition={x:0,y:0},n.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:t.maxWidth,maxHeight:t.maxHeight},n.onResizeStart=n.onResizeStart.bind(n),n.onResize=n.onResize.bind(n),n.onResizeStop=n.onResizeStop.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDrag=n.onDrag.bind(n),n.onDragStop=n.onDragStop.bind(n),n.getMaxSizesFromProps=n.getMaxSizesFromProps.bind(n),n}return function(e,t){function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.updateOffsetFromParent();var e=this.offsetFromParent,t=e.left,n=e.top,r=this.getDraggablePosition(),o=r.x,i=r.y;this.draggable.setState({x:o-t,y:i-n}),this.forceUpdate()},t.prototype.getDraggablePosition=function(){var e=this.draggable.state;return{x:e.x,y:e.y}},t.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},t.prototype.getParentSize=function(){return this.resizable.getParentSize()},t.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},t.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},t.prototype.getOffsetHeight=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/t;case"body":return document.body.offsetHeight/t;default:return e.offsetHeight}},t.prototype.getOffsetWidth=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/t;case"body":return document.body.offsetWidth/t;default:return e.offsetWidth}},t.prototype.onDragStart=function(e,t){this.props.onDragStart&&this.props.onDragStart(e,t);var n=this.getDraggablePosition();if(this.originalPosition=n,this.props.bounds){var r,o=this.getParent(),i=this.props.scale;if("parent"===this.props.bounds)r=o;else{if("body"===this.props.bounds){var a=o.getBoundingClientRect(),s=a.left,l=a.top,c=document.body.getBoundingClientRect(),u=-(s-o.offsetLeft*i-c.left)/i,d=-(l-o.offsetTop*i-c.top)/i,f=(document.body.offsetWidth-this.resizable.size.width*i)/i+u,p=(document.body.offsetHeight-this.resizable.size.height*i)/i+d;return this.setState({bounds:{top:d,right:f,bottom:p,left:u}})}if("window"===this.props.bounds){if(!this.resizable)return;var h=o.getBoundingClientRect(),m=h.left,g=h.top,v=-(m-o.offsetLeft*i)/i,y=-(g-o.offsetTop*i)/i;return f=(window.innerWidth-this.resizable.size.width*i)/i+v,p=(window.innerHeight-this.resizable.size.height*i)/i+y,this.setState({bounds:{top:y,right:f,bottom:p,left:v}})}"string"==typeof this.props.bounds?r=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(r=this.props.bounds)}if(r instanceof HTMLElement&&o instanceof HTMLElement){var b=r.getBoundingClientRect(),w=b.left,E=b.top,x=o.getBoundingClientRect(),O=(w-x.left)/i,S=E-x.top;if(this.resizable){this.updateOffsetFromParent();var A=this.offsetFromParent;this.setState({bounds:{top:S-A.top,right:O+(r.offsetWidth-this.resizable.size.width)-A.left/i,bottom:S+(r.offsetHeight-this.resizable.size.height)-A.top,left:O-A.left/i}})}}}},t.prototype.onDrag=function(e,t){if(this.props.onDrag){var n=this.offsetFromParent,r=n.left,o=n.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDrag(e,T(T({},t),{x:t.x+r,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDrag(e,T(T({},t),{x:this.originalPosition.x+r,y:t.y+o,deltaX:0})):void 0:this.props.onDrag(e,T(T({},t),{x:t.x+r,y:t.y+o}))}},t.prototype.onDragStop=function(e,t){if(this.props.onDragStop){var n=this.offsetFromParent,r=n.left,o=n.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDragStop(e,T(T({},t),{x:t.x+r,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDragStop(e,T(T({},t),{x:this.originalPosition.x+r,y:t.y+o,deltaX:0})):void 0:this.props.onDragStop(e,T(T({},t),{x:t.x+r,y:t.y+o}))}},t.prototype.onResizeStart=function(e,t,n){e.stopPropagation(),this.setState({resizing:!0});var r=this.props.scale,o=this.offsetFromParent,i=this.getDraggablePosition();if(this.resizingPosition={x:i.x+o.left,y:i.y+o.top},this.originalPosition=i,this.props.bounds){var a=this.getParent(),s=void 0;"parent"===this.props.bounds?s=a:"body"===this.props.bounds?s=document.body:"window"===this.props.bounds?s=window:"string"==typeof this.props.bounds?s=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(s=this.props.bounds);var l=this.getSelfElement();if(l instanceof Element&&(s instanceof HTMLElement||s===window)&&a instanceof HTMLElement){var c=this.getMaxSizesFromProps(),u=c.maxWidth,d=c.maxHeight,f=this.getParentSize();if(u&&"string"==typeof u)if(u.endsWith("%")){var p=Number(u.replace("%",""))/100;u=f.width*p}else u.endsWith("px")&&(u=Number(u.replace("px","")));d&&"string"==typeof d&&(d.endsWith("%")?(p=Number(d.replace("%",""))/100,d=f.height*p):d.endsWith("px")&&(d=Number(d.replace("px",""))));var h=l.getBoundingClientRect(),m=h.left,g=h.top,v="window"===this.props.bounds?{left:0,top:0}:s.getBoundingClientRect(),y=v.left,b=v.top,w=this.getOffsetWidth(s),E=this.getOffsetHeight(s),x=t.toLowerCase().endsWith("left"),O=t.toLowerCase().endsWith("right"),S=t.startsWith("top"),A=t.startsWith("bottom");if((x||S)&&this.resizable){var _=(m-y)/r+this.resizable.size.width;this.setState({maxWidth:_>Number(u)?u:_})}(O||this.props.lockAspectRatio&&!x&&!S)&&(_=w+(y-m)/r,this.setState({maxWidth:_>Number(u)?u:_})),(S||x)&&this.resizable&&(_=(g-b)/r+this.resizable.size.height,this.setState({maxHeight:_>Number(d)?d:_})),(A||this.props.lockAspectRatio&&!S&&!x)&&(_=E+(b-g)/r,this.setState({maxHeight:_>Number(d)?d:_}))}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},t.prototype.onResize=function(e,t,n,r){var o=this,i={x:this.originalPosition.x,y:this.originalPosition.y},s=-r.width,l=-r.height;["top","left","topLeft","bottomLeft","topRight"].includes(t)&&("bottomLeft"===t?i.x+=s:("topRight"===t||(i.x+=s),i.y+=l));var c=this.draggable.state;i.x===c.x&&i.y===c.y||(0,a.flushSync)((function(){o.draggable.setState(i)})),this.updateOffsetFromParent();var u=this.offsetFromParent,d=this.getDraggablePosition().x+u.left,f=this.getDraggablePosition().y+u.top;this.resizingPosition={x:d,y:f},this.props.onResize&&this.props.onResize(e,t,n,r,{x:d,y:f})},t.prototype.onResizeStop=function(e,t,n,r){this.setState({resizing:!1});var o=this.getMaxSizesFromProps(),i=o.maxWidth,a=o.maxHeight;this.setState({maxWidth:i,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,n,r,this.resizingPosition)},t.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},t.prototype.updatePosition=function(e){this.draggable.setState(e)},t.prototype.updateOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),o=r.left,i=r.top,a=n.getBoundingClientRect(),s=this.getDraggablePosition(),l=t.scrollLeft,c=t.scrollTop;this.offsetFromParent={left:a.left-o+l-s.x*e,top:a.top-i+c-s.y*e}},t.prototype.render=function(){var e=this,t=this.props,n=t.disableDragging,o=t.style,a=t.dragHandleClassName,s=t.position,l=t.onMouseDown,c=t.onMouseUp,u=t.dragAxis,d=t.dragGrid,f=t.bounds,p=t.enableUserSelectHack,h=t.cancel,m=t.children,g=(t.onResizeStart,t.onResize,t.onResizeStop,t.onDragStart,t.onDrag,t.onDragStop,t.resizeHandleStyles),v=t.resizeHandleClasses,y=t.resizeHandleComponent,b=t.enableResizing,w=t.resizeGrid,E=t.resizeHandleWrapperClass,x=t.resizeHandleWrapperStyle,O=t.scale,S=t.allowAnyClick,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick"]),C=this.props.default?T({},this.props.default):void 0;delete A.default;var P,I=n||a?{cursor:"auto"}:{cursor:"move"},R=T(T(T({},k),I),o),j=this.offsetFromParent,D=j.left,N=j.top;s&&(P={x:s.x-D,y:s.y-N});var M,L=this.state.resizing?void 0:P,z=this.state.resizing?"both":u;return(0,r.createElement)(i(),{ref:function(t){t&&(e.draggable=t)},handle:a?".".concat(a):void 0,defaultPosition:C,onMouseDown:l,onMouseUp:c,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:z,disabled:n,grid:d,bounds:f?this.state.bounds:void 0,position:L,enableUserSelectHack:p,cancel:h,scale:O,allowAnyClick:S,nodeRef:this.resizableElement},(0,r.createElement)(_,T({},A,{ref:function(t){t&&(e.resizable=t,e.resizableElement.current=t.resizable)},defaultSize:C,size:this.props.size,enable:"boolean"==typeof b?(M=b,{bottom:M,bottomLeft:M,bottomRight:M,left:M,right:M,top:M,topLeft:M,topRight:M}):b,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:R,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:w,handleWrapperClass:E,handleWrapperStyle:x,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:g,handleClasses:v,handleComponent:y,scale:this.props.scale}),m))},t.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},t}(r.PureComponent)},59008:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(96540),i=r(o),a=r(n(40961)),s=r(n(20311)),l=n(94427),c=r(n(22558)),u=r(n(2833));function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?x(e):t}var S={},A={monitorWidth:!0,monitorHeight:!1,monitorPosition:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function _(e){return e.displayName||e.name||"Component"}var C=function(e){function t(){return d(this,t),O(this,b(t).apply(this,arguments))}return y(t,e),p(t,[{key:"render",value:function(){return o.Children.only(this.props.children)}}]),t}(o.Component);function T(e){var t=e.className,n=e.style,r={};return t||n?(t&&(r.className=t),n&&(r.style=n)):r.style={width:"100%",height:"100%"},i.createElement("div",r)}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=e.monitorWidth,n=void 0===t?A.monitorWidth:t,r=e.monitorHeight,o=void 0===r?A.monitorHeight:r,u=e.monitorPosition,f=void 0===u?A.monitorPosition:u,g=e.refreshRate,w=void 0===g?A.refreshRate:g,P=e.refreshMode,I=void 0===P?A.refreshMode:P,R=e.noPlaceholder,j=void 0===R?A.noPlaceholder:R,D=e.resizeDetectorStrategy,N=void 0===D?A.resizeDetectorStrategy:D;s(n||o||f,'You have to monitor at least one of the width, height, or position when using "sizeMe"'),s(w>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),s("throttle"===I||"debounce"===I,'The refreshMode should have a value of "throttle" or "debounce"');var M="throttle"===I?l.throttle:l.debounce;return function(e){var t=function(e){function t(t){var n=t.explicitRef,r=t.className,o=t.style,a=t.size,s=t.disablePlaceholder,l=(t.onSize,E(t,["explicitRef","className","style","size","disablePlaceholder","onSize"])),c=(null==a||null==a.width&&null==a.height&&null==a.position)&&!s,u={className:r,style:o};null!=a&&(u.size=a);var d=c?i.createElement(T,{className:r,style:o}):i.createElement(e,m({},u,l));return i.createElement(C,{ref:n},d)}return t.displayName="SizeMeRenderer(".concat(_(e),")"),t}(e),r=function(e){function r(){var e,t;d(this,r);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return h(x(t=O(this,(e=b(r)).call.apply(e,[this].concat(a)))),"domEl",null),h(x(t),"state",{width:void 0,height:void 0,position:void 0}),h(x(t),"uninstall",(function(){if(t.domEl){try{t.detector.uninstall(t.domEl)}catch(e){console.warn("react-sizeme: an error occurred whilst stopping to listen to node size changes")}t.domEl=null}})),h(x(t),"determineStrategy",(function(e){e.onSize?(t.callbackState||(t.callbackState=v({},t.state)),t.strategy="callback"):t.strategy="render"})),h(x(t),"strategisedSetState",(function(e){"callback"===t.strategy&&(t.callbackState=e,t.props.onSize(e)),t.setState(e)})),h(x(t),"strategisedGetState",(function(){return"callback"===t.strategy?t.callbackState:t.state})),h(x(t),"refCallback",(function(e){t.element=e})),h(x(t),"hasSizeChanged",(function(e,t){var r=e,i=t,a=r.position||{},s=i.position||{};return n&&r.width!==i.width||o&&r.height!==i.height||f&&(a.top!==s.top||a.left!==s.left||a.bottom!==s.bottom||a.right!==s.right)})),h(x(t),"checkIfSizeChanged",M(w,(function(e){var r=e.getBoundingClientRect(),i=r.width,a=r.height,s=r.right,l=r.left,c=r.top,u=r.bottom,d={width:n?i:null,height:o?a:null,position:f?{right:s,left:l,top:c,bottom:u}:null};t.hasSizeChanged(t.strategisedGetState(),d)&&t.strategisedSetState(d)}))),t}return y(r,e),p(r,[{key:"componentDidMount",value:function(){this.detector=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return S[e]||(S[e]=c({strategy:e})),S[e]}(N),this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentDidUpdate",value:function(){this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentWillUnmount",value:function(){this.hasSizeChanged=function(){},this.checkIfSizeChanged=function(){},this.uninstall()}},{key:"handleDOMNode",value:function(){var e=this.element&&a.findDOMNode(this.element);e?this.domEl?(this.domEl.isSameNode&&!this.domEl.isSameNode(e)||this.domEl!==e)&&(this.uninstall(),this.domEl=e,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):(this.domEl=e,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):this.uninstall()}},{key:"render",value:function(){var e=k.enableSSRBehaviour||k.noPlaceholders||j||"callback"===this.strategy,n=v({},this.state);return i.createElement(t,m({explicitRef:this.refCallback,size:"callback"===this.strategy?null:n,disablePlaceholder:e},this.props))}}]),r}(i.Component);return h(r,"displayName","SizeMe(".concat(_(e),")")),r.WrappedComponent=e,r}}h(C,"displayName","SizeMeReferenceWrapper"),T.displayName="SizeMePlaceholder",k.enableSSRBehaviour=!1,k.noPlaceholders=!1;var P=function(e){function t(e){var n;d(this,t),h(x(n=O(this,b(t).call(this,e))),"createComponent",(function(e){n.SizeAware=k(e)((function(e){return e.children}))})),h(x(n),"onSize",(function(e){return n.setState({size:e})})),e.children,e.render;var r=E(e,["children","render"]);return n.createComponent(r),n.state={size:{width:void 0,height:void 0}},n}return y(t,e),p(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=(t.children,t.render,E(t,["children","render"])),r=(e.children,e.render,E(e,["children","render"]));u(n,r)||this.createComponent(n)}},{key:"render",value:function(){var e=this.SizeAware,t=this.props.children||this.props.render;return i.createElement(e,{onSize:this.onSize},t({size:this.state.size}))}}]),t}(o.Component);h(P,"defaultProps",{children:void 0,render:void 0}),k.SizeMe=P,k.withSize=k,e.exports=k},37353:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m});var r=n(98587),o=n(77387),i=n(96540),a=n(40961);var s=n(17241),l="unmounted",c="exited",u="entering",d="entered",f="exiting",p=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=c,r.appearStatus=u):o=d:o=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==d&&(t=u):n!==u&&n!==d||(t=f)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===u){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],s=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;e||n?(this.props.onEnter(i,s),this.safeSetState({status:u},(function(){t.props.onEntering(i,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:d},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:f},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.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],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(s.A.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function h(){}p.contextType=s.A,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=l,p.EXITED=c,p.ENTERING=u,p.ENTERED=d,p.EXITING=f;const m=p},17241:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96540).createContext(null)},15287:(e,t,n)=>{"use strict";var r=n(45228),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function E(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=w.prototype;var O=x.prototype=new E;O.constructor=x,r(O,w.prototype),O.isPureReactComponent=!0;var S={current:null},A=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)A.call(t,r)&&!_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:S.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var k=/\/+/g,P=[];function I(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function j(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return n(r,e,""===t?"."+N(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=t+N(o=e[l],l);s+=j(o,c,n,r)}else if("function"==typeof(c=null===e||"object"!=typeof e?null:"function"==typeof(c=g&&e[g]||e["@@iterator"])?c:null))for(e=c.call(e),l=0;!(o=e.next()).done;)s+=j(o=o.value,c=t+N(o,l++),n,r);else if("object"===o)throw n=""+e,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function D(e,t,n){return null==e?0:j(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,r,n,(function(e){return e})):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(k,"$&/")+"/")+n)),r.push(e))}function z(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(k,"$&/")+"/"),D(e,L,t=I(t,i,r,o)),R(t)}var W={current:null};function B(){var e=W.current;if(null===e)throw Error(v(321));return e}var F={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return z(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;D(e,M,t=I(null,null,t,n)),R(t)},count:function(e){return D(e,(function(){return null}),null)},toArray:function(e){var t=[];return z(e,t,null,(function(e){return e})),t},only:function(e){if(!T(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=c,t.PureComponent=x,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)A.call(t,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},96540:(e,t,n)=>{"use strict";e.exports=n(15287)},21966:(e,t,n)=>{"use strict";var r=n(68238).Zz;t.tY="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__},43786:(e,t,n)=>{"use strict";n.r(t),n.d(t,{actionChannel:()=>o.U,all:()=>o.$,apply:()=>o.a0,call:()=>o.O,cancel:()=>o.N,cancelled:()=>o.a5,cps:()=>o.a1,debounce:()=>w,delay:()=>o.Q,effectTypes:()=>o.X,flush:()=>o.a6,fork:()=>o.M,getContext:()=>o.a7,join:()=>o.a3,put:()=>o.Z,putResolve:()=>o._,race:()=>o.W,retry:()=>b,select:()=>o.a4,setContext:()=>o.a8,spawn:()=>o.a2,take:()=>o.L,takeEvery:()=>m,takeLatest:()=>g,takeLeading:()=>v,takeMaybe:()=>o.Y,throttle:()=>y});var r=n(21225),o=n(16873),i=function(e){return{done:!0,value:e}},a={};function s(e){return(0,r.Ix)(e)?"channel":(0,r.mr)(e)?String(e):(0,r.Pc)(e)?e.name:String(e)}function l(e,t,n){var r,s,l,c=t;function u(t,n){if(c===a)return i(t);if(n&&!s)throw c=a,n;r&&r(t);var o=n?e[s](n):e[c]();return c=o.nextState,l=o.effect,r=o.stateUpdater,s=o.errorState,c===a?i(t):l}return(0,o.q)(u,(function(e){return u(null,e)}),n)}function c(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a,c={done:!1,value:(0,o.L)(e)},u=function(e){return a=e};return l({q1:function(){return{nextState:"q2",effect:c,stateUpdater:u}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:o.M.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+s(e)+", "+t.name+")")}function u(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a,c,u={done:!1,value:(0,o.L)(e)},d=function(e){return{done:!1,value:o.M.apply(void 0,[t].concat(r,[e]))}},f=function(e){return{done:!1,value:(0,o.N)(e)}},p=function(e){return a=e},h=function(e){return c=e};return l({q1:function(){return{nextState:"q2",effect:u,stateUpdater:h}},q2:function(){return a?{nextState:"q3",effect:f(a)}:{nextState:"q1",effect:d(c),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:d(c),stateUpdater:p}}},"q1","takeLatest("+s(e)+", "+t.name+")")}function d(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a,c={done:!1,value:(0,o.L)(e)},u=function(e){return a=e};return l({q1:function(){return{nextState:"q2",effect:c,stateUpdater:u}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:o.O.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeLeading("+s(e)+", "+t.name+")")}function f(e,t,n){for(var i=arguments.length,a=new Array(i>3?i-3:0),c=3;c<i;c++)a[c-3]=arguments[c];var u,d,f={done:!1,value:(0,o.Q)(e)},p=function(e){return u=e},h=function(e){return d=e},m=!(0,r.Ix)(t);return m||h(t),l({q1:function(){return{nextState:"q2",effect:{done:!1,value:(0,o.U)(t,(0,o.V)(1))},stateUpdater:h}},q2:function(){return{nextState:"q3",effect:{done:!1,value:(0,o.L)(d)},stateUpdater:p}},q3:function(){return{nextState:"q4",effect:(e=u,{done:!1,value:o.M.apply(void 0,[n].concat(a,[e]))})};var e},q4:function(){return{nextState:"q2",effect:f}}},m?"q1":"q2","throttle("+s(t)+", "+n.name+")")}function p(e,t,n){for(var r=e,i=arguments.length,s=new Array(i>3?i-3:0),c=3;c<i;c++)s[c-3]=arguments[c];var u={done:!1,value:o.O.apply(void 0,[n].concat(s))},d={done:!1,value:(0,o.Q)(t)};return l({q1:function(){return{nextState:"q2",effect:u,errorState:"q10"}},q2:function(){return{nextState:a}},q10:function(e){if((r-=1)<=0)throw e;return{nextState:"q1",effect:d}}},"q1","retry("+n.name+")")}function h(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var c,u,d={done:!1,value:(0,o.L)(t)},f={done:!1,value:(0,o.W)({action:(0,o.L)(t),debounce:(0,o.Q)(e)})},p=function(e){return c=e},h=function(e){return u=e};return l({q1:function(){return{nextState:"q2",effect:d,stateUpdater:p}},q2:function(){return{nextState:"q3",effect:f,stateUpdater:h}},q3:function(){return u.debounce?{nextState:"q1",effect:(t=c,{done:!1,value:o.M.apply(void 0,[n].concat(i,[t]))})}:{nextState:"q2",effect:(e=u.action,{done:!1,value:e}),stateUpdater:p};var e,t}},"q1","debounce("+s(t)+", "+n.name+")")}function m(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return o.M.apply(void 0,[c,e,t].concat(r))}function g(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return o.M.apply(void 0,[u,e,t].concat(r))}function v(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return o.M.apply(void 0,[d,e,t].concat(r))}function y(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];return o.M.apply(void 0,[f,e,t,n].concat(i))}function b(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];return o.O.apply(void 0,[p,e,t,n].concat(i))}function w(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];return o.M.apply(void 0,[h,e,t,n].concat(i))}},68238:(e,t,n)=>{"use strict";n.d(t,{Tw:()=>m,zH:()=>p,HY:()=>d,Zz:()=>h,y$:()=>u});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(u)(e,t)}if("function"!=typeof e)throw new Error(a(2));var o=e,i=t,l=[],d=l,f=!1;function p(){d===l&&(d=l.slice())}function h(){if(f)throw new Error(a(3));return i}function m(e){if("function"!=typeof e)throw new Error(a(4));if(f)throw new Error(a(5));var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error(a(6));t=!1,p();var n=d.indexOf(e);d.splice(n,1),l=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(f)throw new Error(a(9));try{f=!0,i=o(i,e)}finally{f=!1}for(var t=l=d,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:c.INIT}),(r={dispatch:g,subscribe:m,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(a(10));o=e,g({type:c.REPLACE})}})[s]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e},r}function d(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:c.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<s.length;l++){var c=s[l],u=n[c],d=e[c],f=u(d,t);if(void 0===f)throw t&&t.type,new Error(a(14));o[c]=f,r=r||f!==d}return(r=r||s.length!==Object.keys(e).length)?o:e}}function f(e,t){return function(){return t(e.apply(this,arguments))}}function p(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return r=h.apply(void 0,s)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},22325:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSelector:()=>s,createSelectorCreator:()=>a,createStructuredSelector:()=>l,defaultEqualityCheck:()=>o,defaultMemoize:()=>i});var r="NOT_FOUND",o=function(e,t){return e===t};function i(e,t){var n,i,a="object"==typeof t?t:{equalityCheck:t},s=a.equalityCheck,l=void 0===s?o:s,c=a.maxSize,u=void 0===c?1:c,d=a.resultEqualityCheck,f=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(l),p=1===u?(n=f,{get:function(e){return i&&n(i.key,e)?i.value:r},put:function(e,t){i={key:e,value:t}},getEntries:function(){return i?[i]:[]},clear:function(){i=void 0}}):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(u,f);function h(){var t=p.get(arguments);if(t===r){if(t=e.apply(null,arguments),d){var n=p.getEntries().find((function(e){return d(e.value,t)}));n&&(t=n.value)}p.put(arguments,t)}return t}return h.clearCache=function(){return p.clear()},h}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,s={memoizeOptions:void 0},l=r.pop();if("object"==typeof l&&(s=l,l=r.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s.memoizeOptions,u=void 0===c?n:c,d=Array.isArray(u)?u:[u],f=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),p=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),h=e((function(){for(var e=[],t=f.length,n=0;n<t;n++)e.push(f[n].apply(null,arguments));return i=p.apply(null,e)}));return Object.assign(h,{resultFunc:l,memoizedResultFunc:p,dependencies:f,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}var s=a(i),l=function(e,t){if(void 0===t&&(t=s),"object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e),r=t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t,r){return e[n[r]]=t,e}),{})}));return r}},31047:(e,t)=>{"use strict";function n(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e[r]=n,e}),{})}function r(e){return"boolean"==typeof e}function o(e){return"function"==typeof e}function i(e){return"number"==typeof e}function a(e){return null==e}function s(e){return e&&"object"==typeof e}function l(e){return"string"==typeof e}function c(e,t){return-1!==e.indexOf(t)}function u(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function d(e,t,n,r){return t+u(n)+r}function f(e){var t=e.indexOf(".");if(-1===t)e=100-parseFloat(e)+"%";else{var n=e.length-t-2;e=(e=100-parseFloat(e)).toFixed(n)+"%"}return e}function p(e){return e.replace(/ +/g," ").split(" ").map((function(e){return e.trim()})).filter(Boolean).reduce((function(e,t){var n=e.list,r=e.state,o=(t.match(/\(/g)||[]).length,i=(t.match(/\)/g)||[]).length;return r.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+t:n.push(t),r.parensDepth+=o-i,{list:n,state:r}}),{list:[],state:{parensDepth:0}}).list}function h(e){var t=p(e);if(t.length<=3||t.length>4)return e;var n=t[0],r=t[1],o=t[2];return[n,t[3],o,r].join(" ")}function m(e){return!r(e)&&!a(e)}function g(e){for(var t=[],n=0,r=0,o=!1;r<e.length;)o||","!==e[r]?"("===e[r]?(o=!0,r++):")"===e[r]?(o=!1,r++):r++:(t.push(e.substring(n,r).trim()),n=++r);return n!=r&&t.push(e.substring(n,r+1)),t}var v={padding:function(e){var t=e.value;return i(t)?t:h(t)},textShadow:function(e){return g(e.value).map((function(e){return e.replace(/(^|\s)(-*)([.|\d]+)/,(function(e,t,n,r){return"0"===r?e:t+(""===n?"-":"")+r}))})).join(",")},borderColor:function(e){return h(e.value)},borderRadius:function(e){var t=e.value;if(i(t))return t;if(c(t,"/")){var n=t.split("/"),r=n[0],o=n[1];return v.borderRadius({value:r.trim()})+" / "+v.borderRadius({value:o.trim()})}var a=p(t);switch(a.length){case 2:return a.reverse().join(" ");case 4:var s=a[0],l=a[1],u=a[2];return[l,s,a[3],u].join(" ");default:return t}},background:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgImgDirectionRegex,a=e.bgPosDirectionRegex;if(i(t))return t;var s=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return t=t.replace(s,v.backgroundPosition({value:s,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:a})),v.backgroundImage({value:t,valuesToConvert:n,bgImgDirectionRegex:o})},backgroundImage:function(e){var t=e.value,n=e.valuesToConvert,r=e.bgImgDirectionRegex;return c(t,"url(")||c(t,"linear-gradient(")?t.replace(r,(function(e,t,r){return e.replace(r,n[r])})):t},backgroundPosition:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgPosDirectionRegex;return t.replace(r?/^((-|\d|\.)+%)/:null,(function(e,t){return f(t)})).replace(o,(function(e){return n[e]}))},backgroundPositionX:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgPosDirectionRegex;return i(t)?t:v.backgroundPosition({value:t,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:o})},transition:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map((function(e){var t=e.split(" ");return t[0]=n[t[0]]||t[0],t.join(" ")})).join(", ")},transitionProperty:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map((function(e){return n[e]||e})).join(", ")},transform:function(e){var t=e.value,n="[^\\u0020-\\u007e]",r="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",o="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|"+n+"|"+r+")(?:[_a-z0-9-]|"+n+"|"+r+")*)?)|(?:inherit|auto))",i=new RegExp("(translateX\\s*\\(\\s*)"+o+"(\\s*\\))","gi"),a=new RegExp("(translate\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,1}\\s*\\))","gi"),s=new RegExp("(translate3d\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,2}\\s*\\))","gi"),l=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+o+"(\\s*\\))","gi");return t.replace(i,d).replace(a,d).replace(s,d).replace(l,d)}};v.objectPosition=v.backgroundPosition,v.margin=v.padding,v.borderWidth=v.padding,v.boxShadow=v.textShadow,v.webkitBoxShadow=v.boxShadow,v.mozBoxShadow=v.boxShadow,v.WebkitBoxShadow=v.boxShadow,v.MozBoxShadow=v.boxShadow,v.borderStyle=v.borderColor,v.webkitTransform=v.transform,v.mozTransform=v.transform,v.WebkitTransform=v.transform,v.MozTransform=v.transform,v.transformOrigin=v.backgroundPosition,v.webkitTransformOrigin=v.transformOrigin,v.mozTransformOrigin=v.transformOrigin,v.WebkitTransformOrigin=v.transformOrigin,v.MozTransformOrigin=v.transformOrigin,v.webkitTransition=v.transition,v.mozTransition=v.transition,v.WebkitTransition=v.transition,v.MozTransition=v.transition,v.webkitTransitionProperty=v.transitionProperty,v.mozTransitionProperty=v.transitionProperty,v.WebkitTransitionProperty=v.transitionProperty,v.MozTransitionProperty=v.transitionProperty,v["text-shadow"]=v.textShadow,v["border-color"]=v.borderColor,v["border-radius"]=v.borderRadius,v["background-image"]=v.backgroundImage,v["background-position"]=v.backgroundPosition,v["background-position-x"]=v.backgroundPositionX,v["object-position"]=v.objectPosition,v["border-width"]=v.padding,v["box-shadow"]=v.textShadow,v["-webkit-box-shadow"]=v.textShadow,v["-moz-box-shadow"]=v.textShadow,v["border-style"]=v.borderColor,v["-webkit-transform"]=v.transform,v["-moz-transform"]=v.transform,v["transform-origin"]=v.transformOrigin,v["-webkit-transform-origin"]=v.transformOrigin,v["-moz-transform-origin"]=v.transformOrigin,v["-webkit-transition"]=v.transition,v["-moz-transition"]=v.transition,v["transition-property"]=v.transitionProperty,v["-webkit-transition-property"]=v.transitionProperty,v["-moz-transition-property"]=v.transitionProperty;var y=n([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),b=["content"],w=n([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),E=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),x=new RegExp("(left)|(right)");function O(e){return Object.keys(e).reduce((function(t,n){var r=e[n];if(l(r)&&(r=r.trim()),c(b,n))return t[n]=r,t;var o=S(n,r),i=o.key,a=o.value;return t[i]=a,t}),Array.isArray(e)?[]:{})}function S(e,t){var n=/\/\*\s?@noflip\s?\*\//.test(t),r=n?e:A(e);return{key:r,value:n?t:_(r,t)}}function A(e){return y[e]||e}function _(e,t){if(!m(t))return t;if(s(t))return O(t);var n,r=i(t),a=o(t),l=r||a?t:t.replace(/ !important.*?$/,""),c=!r&&l.length!==t.length,u=v[e];return n=u?u({value:l,valuesToConvert:w,propertiesToConvert:y,isRtl:!0,bgImgDirectionRegex:E,bgPosDirectionRegex:x}):w[l]||l,c?n+" !important":n}t.arrayToObject=n,t.calculateNewBackgroundPosition=f,t.canConvertValue=m,t.convert=O,t.convertProperty=S,t.flipSign=u,t.flipTransformSign=d,t.getPropertyDoppelganger=A,t.getValueDoppelganger=_,t.getValuesAsList=p,t.handleQuartetValues=h,t.includes=c,t.isBoolean=r,t.isFunction=o,t.isNullOrUndefined=a,t.isNumber=i,t.isObject=s,t.isString=l,t.propertiesToConvert=y,t.propertyValueConverters=v,t.propsToIgnore=b,t.splitShadow=g,t.valuesToConvert=w},45431:(e,t,n)=>{"use strict";var r=n(31047);e.exports=r.convert},7463:(e,t)=>{"use strict";var n,r,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(c,0))},r=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=f.now();t.unstable_now=function(){return f.now()-g}}var v=!1,y=null,b=-1,w=5,E=0;i=function(){return t.unstable_now()>=E},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,O=x.port2;x.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+w;try{y(!0,e)?O.postMessage(null):(v=!1,y=null)}catch(e){throw O.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,O.postMessage(null))},r=function(e,n){b=p((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function A(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],k=[],P=1,I=null,R=3,j=!1,D=!1,N=!1;function M(e){for(var t=A(k);null!==t;){if(null===t.callback)_(k);else{if(!(t.startTime<=e))break;_(k),t.sortIndex=t.expirationTime,S(T,t)}t=A(k)}}function L(e){if(N=!1,M(e),!D)if(null!==A(T))D=!0,n(z);else{var t=A(k);null!==t&&r(L,t.startTime-e)}}function z(e,n){D=!1,N&&(N=!1,o()),j=!0;var a=R;try{for(M(n),I=A(T);null!==I&&(!(I.expirationTime>n)||e&&!i());){var s=I.callback;if(null!==s){I.callback=null,R=I.priorityLevel;var l=s(I.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?I.callback=l:I===A(T)&&_(T),M(n)}else _(T);I=A(T)}if(null!==I)var c=!0;else{var u=A(k);null!==u&&r(L,u.startTime-n),c=!1}return c}finally{I=null,R=a,j=!1}}function W(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||j||(D=!0,n(z))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return A(T)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:W(e)}else a=W(e),l=s;return e={id:P++,callback:i,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,S(k,e),null===A(T)&&e===A(k)&&(N?o():N=!0,r(L,l-s))):(e.sortIndex=a,S(T,e),D||j||(D=!0,n(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var n=A(T);return n!==I&&null!==I&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<I.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},69982:(e,t,n)=>{"use strict";e.exports=n(7463)},96897:(e,t,n)=>{"use strict";var r=n(70453),o=n(30041),i=n(30592)(),a=n(75795),s=n(69675),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},920:(e,t,n)=>{"use strict";var r=n(70453),o=n(38075),i=n(61850),a=n(69675),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),u(e,r,o)):l?(t||(t=new l),p(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},61850:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,x=RegExp.prototype.test,O=Array.prototype.concat,S=Array.prototype.join,A=Array.prototype.slice,_=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-_(-e):_(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var N=n(81635),M=N.custom,L=H(M)?M:null;function z(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function W(e){return b.call(String(e),/"/g,""")}function B(e){return!("[object Array]"!==G(e)||I&&"object"==typeof e&&I in e)}function F(e){return!("[object RegExp]"!==G(e)||I&&"object"==typeof e&&I in e)}function H(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(U(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!U(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return $(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?D(t,x):x}if("bigint"==typeof t){var _=String(t)+"n";return w?D(t,_):_}var T=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=T&&T>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var M,V=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,o);if(void 0===s)s=[];else if(q(s,t)>=0)return"[Circular]";function K(t,n,r){if(n&&(s=A.call(s)).push(n),r){var i={depth:l.depth};return U(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"==typeof t&&!F(t)){var ee=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=J(t,K);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+S.call(te,", ")+" }":"")}if(H(t)){var ne=P?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||P?ne:Z(ne)}if((M=t)&&"object"==typeof M&&("undefined"!=typeof HTMLElement&&M instanceof HTMLElement||"string"==typeof M.nodeName&&"function"==typeof M.getAttribute)){for(var re="<"+E.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)re+=" "+oe[ie].name+"="+z(W(oe[ie].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+"</"+E.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ae=J(t,K);return V&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Q(ae,V)+"]":"[ "+S.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==G(e)||I&&"object"==typeof e&&I in e)}(t)){var se=J(t,K);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(O.call("[cause]: "+K(t.cause),se),", ")+" }"}if("object"==typeof t&&m){if(L&&"function"==typeof t[L]&&N)return N(t,{depth:T-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(K(n,t,!0)+" => "+K(e,t))})),Y("Map",i.call(t),le,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(K(e,t))})),Y("Set",c.call(t),ce,V)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if(function(e){return!("[object Number]"!==G(e)||I&&"object"==typeof e&&I in e)}(t))return Z(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return Z(K(C.call(t)));if(function(e){return!("[object Boolean]"!==G(e)||I&&"object"==typeof e&&I in e)}(t))return Z(h.call(t));if(function(e){return!("[object String]"!==G(e)||I&&"object"==typeof e&&I in e)}(t))return Z(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==G(e)||I&&"object"==typeof e&&I in e)}(t)&&!F(t)){var ue=J(t,K),de=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&I&&Object(t)===t&&I in t?y.call(G(t),8,-1):fe?"Object":"",he=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+S.call(O.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":V?he+"{"+Q(ue,V)+"}":he+"{ "+S.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return V.call(e,t)}function G(e){return m.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(y.call(e,0,t.maxStringLength),t)+r}return z(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):S.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=U(e,o)?t(e[o],e):""}var i,a="function"==typeof T?T(e):[];if(P){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)U(e,l)&&(n&&String(Number(l))===l&&l<e.length||P&&i["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof T)for(var c=0;c<a.length;c++)R.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},94427:function(e,t){!function(e){"use strict";function t(e,t,n,r){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function l(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=this,f=Date.now()-a;function p(){a=Date.now(),n.apply(d,c)}i||(r&&!o&&p(),s(),void 0===r&&f>e?p():!0!==t&&(o=setTimeout(r?function(){o=void 0}:p,void 0===r?e-f:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),l.cancel=function(){s(),i=!0},l}e.debounce=function(e,n,r){return void 0===r?t(e,n,!1):t(e,r,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})}(t)},16426:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},76782:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},l=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:l,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)}))}n.r(t),n.d(t,{default:()=>r})},95902:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},63098:(e,t,n)=>{"use strict";var r=n(91207),o=n(60969),i=n(95902);e.exports={formats:i,parse:o,stringify:r}},60969:(e,t,n)=>{"use strict";var r=n(62795),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<f.length;++u)0===f[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[u]?h="utf-8":"utf8=%26%2310003%3B"===f[u]&&(h="iso-8859-1"),p=u,u=f.length);for(u=0;u<f.length;++u)if(u!==p){var m,g,v=f[u],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g);var w=o.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"==typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},91207:(e,t,n)=>{"use strict";var r=n(920),o=n(62795),i=n(95902),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,a,s,c,d,f,m,g,v,y,b,w,E,x,O,S){for(var A,_=t,C=S,T=0,k=!1;void 0!==(C=C.get(h))&&!k;){var P=C.get(t);if(T+=1,void 0!==P){if(P===T)throw new RangeError("Cyclic object value");k=!0}void 0===C.get(h)&&(T=0)}if("function"==typeof g?_=g(n,_):_ instanceof Date?_=b(_):"comma"===i&&l(_)&&(_=o.maybeMap(_,(function(e){return e instanceof Date?b(e):e}))),null===_){if(c)return m&&!x?m(n,p.encoder,O,"key",w):n;_=""}if("string"==typeof(A=_)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||o.isBuffer(_))return m?[E(x?n:m(n,p.encoder,O,"key",w))+"="+E(m(_,p.encoder,O,"value",w))]:[E(n)+"="+E(String(_))];var I,R=[];if(void 0===_)return R;if("comma"===i&&l(_))x&&m&&(_=o.maybeMap(_,m)),I=[{value:_.length>0?_.join(",")||null:void 0}];else if(l(g))I=g;else{var j=Object.keys(_);I=v?j.sort(v):j}var D=f?n.replace(/\./g,"%2E"):n,N=a&&l(_)&&1===_.length?D+"[]":D;if(s&&l(_)&&0===_.length)return N+"[]";for(var M=0;M<I.length;++M){var L=I[M],z="object"==typeof L&&void 0!==L.value?L.value:_[L];if(!d||null!==z){var W=y&&f?L.replace(/\./g,"%2E"):L,B=l(_)?"function"==typeof i?i(N,W):N:N+(y?"."+W:"["+W+"]");S.set(t,T);var F=r();F.set(h,S),u(R,e(z,B,i,a,s,c,d,f,"comma"===i&&x&&l(_)?null:m,g,v,y,b,w,E,x,O,F))}}return R};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=p.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d=[];if("object"!=typeof o||null===o)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v];c.skipNulls&&null===o[y]||u(d,m(o[y],y,f,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var b=d.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},62795:(e,t,n)=>{"use strict";var r=n(95902),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var d=s.length>=l?s.slice(u,u+l):s,f=[],p=0;p<d.length;++p){var h=d.charCodeAt(p);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===r.RFC1738&&(40===h||41===h)?f[f.length]=d.charAt(p):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(p+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(p)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},88835:(e,t,n)=>{"use strict";var r=n(9655);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),u=["%","/","?",";","#"].concat(c),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(63098);o.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=-1!==o&&o<e.indexOf("#")?"?":"#",l=e.split(a);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(a);if(y=y.trim(),!n&&1===e.split("#").length){var b=s.exec(y);if(b)return this.path=y,this.href=y,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=i.exec(y);if(w){var E=(w=w[0]).toLowerCase();this.protocol=E,y=y.substr(w.length)}if(n||w||y.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===y.substr(0,2);!x||w&&m[w]||(y=y.substr(2),this.slashes=!0)}if(!m[w]&&(x||w&&!g[w])){for(var O,S,A=-1,_=0;_<d.length;_++)-1!==(C=y.indexOf(d[_]))&&(-1===A||C<A)&&(A=C);for(-1!==(S=-1===A?y.lastIndexOf("@"):y.lastIndexOf("@",A))&&(O=y.slice(0,S),y=y.slice(S+1),this.auth=decodeURIComponent(O)),A=-1,_=0;_<u.length;_++){var C;-1!==(C=y.indexOf(u[_]))&&(-1===A||C<A)&&(A=C)}-1===A&&(A=y.length),this.host=y.slice(0,A),y=y.slice(A),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var k=this.hostname.split(/\./),P=(_=0,k.length);_<P;_++){var I=k[_];if(I&&!I.match(f)){for(var R="",j=0,D=I.length;j<D;j++)I.charCodeAt(j)>127?R+="x":R+=I[j];if(!R.match(f)){var N=k.slice(0,_),M=k.slice(_+1),L=I.match(p);L&&(N.push(L[1]),M.unshift(L[2])),M.length&&(y="/"+M.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+z,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[E])for(_=0,P=c.length;_<P;_++){var B=c[_];if(-1!==y.indexOf(B)){var F=encodeURIComponent(B);F===B&&(F=escape(B)),y=y.split(B).join(F)}}var H=y.indexOf("#");-1!==H&&(this.hash=y.substr(H),y=y.slice(0,H));var V=y.indexOf("?");if(-1!==V?(this.search=y.substr(V),this.query=y.substr(V+1),t&&(this.query=v.parse(this.query)),y=y.slice(0,V)):t&&(this.search="",this.query={}),y&&(this.pathname=y),g[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var U=this.search||"";this.path=z+U}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(function(e,t,n){if(e&&"object"==typeof e&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),i=0;i<r.length;i++){var a=r[i];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var c=s[l];"protocol"!==c&&(n[c]=e[c])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var f=u[d];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",v=n.search||"";n.path=h+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||y||n.host&&e.pathname,E=w,x=n.pathname&&n.pathname.split("/")||[],O=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(O&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===x[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=p;else if(p.length)x||(x=[]),x.pop(),x=x.concat(p),n.search=e.search,n.query=e.query;else if(null!=e.search)return O&&(n.host=x.shift(),n.hostname=n.host,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=x.slice(-1)[0],A=(n.host||e.host||x.length>1)&&("."===S||".."===S)||""===S,_=0,C=x.length;C>=0;C--)"."===(S=x[C])?x.splice(C,1):".."===S?(x.splice(C,1),_++):_&&(x.splice(C,1),_--);if(!w&&!E)for(;_--;_)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),A&&"/"!==x.join("/").substr(-1)&&x.push("");var T,k=""===x[0]||x[0]&&"/"===x[0].charAt(0);return O&&(n.hostname=k?"":x.length?x.shift():"",n.host=n.hostname,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),(w=w||n.host&&x.length)&&!k&&x.unshift(""),x.length>0?n.pathname=x.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},54011:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>u});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=[],l=0;l<256;++l)s.push((l+256).toString(16).substr(1));const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&a.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},u=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return c(r)}},81635:()=>{},43693:(e,t,n)=>{var r=n(77736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},94634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6305:(e,t,n)=>{var r=n(73738).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},91847:(e,t,n)=>{var r=n(54893);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},54893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},4633:(e,t,n)=>{var r=n(73738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new j(r||[]);return s(i,"_invoke",{value:k(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var m="suspendedStart",g="suspendedYield",v="executing",y="completed",b={};function w(){}function E(){}function x(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,A=S&&S(S(D([])));A&&A!==i&&a.call(A,c)&&(O=A);var _=x.prototype=w.prototype=Object.create(O);function C(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,i,s,l){var c=h(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function k(e,n,r){var o=m;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var c=h(e,n,r);if("normal"===c.type){if(o=r.done?y:g,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(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 R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return E.prototype=x,s(_,"constructor",{value:x,configurable:!0}),s(x,"constructor",{value:E,configurable:!0}),E.displayName=f(x,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,d,"GeneratorFunction")),e.prototype=Object.create(_),e},n.awrap=function(e){return{__await:e}},C(T.prototype),f(T.prototype,u,(function(){return this})),n.AsyncIterator=T,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new T(p(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(_),f(_,d,"Generator"),f(_,c,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),n.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}},n.values=D,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},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),R(n),b}},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;R(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},89045:(e,t,n)=>{var r=n(73738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},77736:(e,t,n)=>{var r=n(73738).default,o=n(89045);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},73738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},54756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},46942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(20816);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(20816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},77387:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},96274:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(9417);function i(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},5544:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96369),o=n(27800),i=n(76562);function a(e,t){return(0,r.A)(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,c=!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){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||(0,o.A)(e,t)||(0,i.A)()}},87695:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(96369),o=n(96274),i=n(27800),a=n(76562);function s(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},60436:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(43145),o=n(96274),i=n(27800);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,o.A)(e)||(0,i.A)(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.")}()}},20816:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{default:()=>na});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{accessTokensReducer:()=>On,annotationsReducer:()=>Cn,authReducer:()=>In,catalogReducer:()=>Ln,companionWindowsReducer:()=>Gn,configReducer:()=>Yn,elasticLayoutReducer:()=>tr,errorsReducer:()=>ur,infoResponsesReducer:()=>hr,layersReducer:()=>yr,manifestsReducer:()=>xr,searchesReducer:()=>Tr,viewersReducer:()=>Rr,windowsReducer:()=>Mr,workspaceReducer:()=>Fr});var n=__webpack_require__(96540),r=__webpack_require__(40961),o=__webpack_require__(61225),i=__webpack_require__(68055),a=__webpack_require__(8483),s=__webpack_require__.n(a),l=__webpack_require__(7334);function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return function(e){if(Array.isArray(e))return p(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){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(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 p(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 h(e){return e.mapStateToProps||e.mapDispatchToProps?o.Ng.apply(void 0,[e.mapStateToProps,e.mapDispatchToProps].concat(f(e.connectOptions||[])))(e.component):e.component}function m(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 g(e){var t,r,o=e.plugins,a=e.children,c=(t=(0,n.useState)({}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(t,r)||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.")}()),d=c[0],p=c[1];return(0,n.useEffect)((function(){var e=function(e){return e.map((function(e){return u(u({},e),{},{component:h(e)})}))}(o);!function(e){e.filter((function(e){return e.companionWindowKey})).forEach((function(e){l.A[e.companionWindowKey]=e.component})),l.A}(e),p(function(e){return e.reduce((function(e,t){return s()(e,[t.target,t.mode],(function(e){return[].concat(f(e||[]),[t])}))}),{})}(e))}),[o]),n.createElement(i.A.Provider,{value:d},a)}g.defaultProps={children:null,plugins:[]};var v=__webpack_require__(68238),y=__webpack_require__(41733),b=__webpack_require__(37187),w=__webpack_require__(90361),E=__webpack_require__(5406),x=__webpack_require__(82158),O=__webpack_require__(65414);function S(e){var t=e.i18n,r=e.defaultNS,o=e.children,i=(0,n.useMemo)((function(){return{i18n:t,defaultNS:r}}),[t,r]);return(0,n.createElement)(O.gJ.Provider,{value:i},o)}var A=__webpack_require__(96162),_=__webpack_require__(21233),C=__webpack_require__(65429),T=__webpack_require__(88093),k=__webpack_require__(49117),P=__webpack_require__(79350),I=__webpack_require__(79551),R=__webpack_require__(17757),j=__webpack_require__(28746),D=__webpack_require__(98028),N=__webpack_require__(73317),M=__webpack_require__(27571),L=__webpack_require__(82284),z=__webpack_require__(64467);function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){(0,z.A)(e,t,n[t])}))}return e}var B=__webpack_require__(23029),F=__webpack_require__(92901),H=__webpack_require__(56822),V=__webpack_require__(53954),U=__webpack_require__(9417),G=__webpack_require__(85501),q={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},$=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,B.A)(this,e),this.init(t,n)}return(0,F.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||q,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,W({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),K=function(){function e(){(0,B.A)(this,e),this.observers={}}return(0,F.A)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function Z(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function X(e){return null==e?"":""+e}function Y(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function Q(e,t,n){var r=Y(e,t,Object);r.obj[r.k]=n}function J(e,t){var n=Y(e,t),r=n.obj,o=n.k;if(r)return r[o]}function ee(e,t,n){var r=J(e,n);return void 0!==r?r:J(t,n)}function te(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):te(e[r],t[r],n):e[r]=t[r]);return e}function ne(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var re={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function oe(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return re[e]})):e}var ie="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ae=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,B.A)(this,t),n=(0,H.A)(this,(0,V.A)(t).call(this)),ie&&K.call((0,U.A)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return(0,G.A)(t,e),(0,F.A)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),J(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Q(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=J(this.data,a)||{};r?te(s,n,o):s=W({},s,n),Q(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?W({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(K),se={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},le={},ce=function(e){function t(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,B.A)(this,t),n=(0,H.A)(this,(0,V.A)(t).call(this)),ie&&K.call((0,U.A)(n)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=e,i=(0,U.A)(n),r.forEach((function(e){o[e]&&(i[e]=o[e])})),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=$.create("translator"),n}return(0,G.A)(t,e),(0,F.A)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==(0,L.A)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),s=a.key,l=a.namespaces,c=l[l.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(d){var f=n.nsSeparator||this.options.nsSeparator;return c+f+s}return s}var p=this.resolve(e,n),h=p&&p.res,m=p&&p.usedKey||s,g=p&&p.exactUsedKey||s,v=Object.prototype.toString.apply(h),y=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&"string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h&&["[object Number]","[object Function]","[object RegExp]"].indexOf(v)<0&&("string"!=typeof y||"[object Array]"!==v)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,n):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===v,E=w?[]:{},x=w?g:m;for(var O in h)if(Object.prototype.hasOwnProperty.call(h,O)){var S="".concat(x).concat(i).concat(O);E[O]=this.translate(S,W({},n,{joinArrays:!1,ns:l})),E[O]===S&&(E[O]=h[O])}h=E}}else if(b&&"string"==typeof y&&"[object Array]"===v)(h=h.join(y))&&(h=this.extendTranslation(h,e,n,r));else{var A=!1,_=!1,C=void 0!==n.count&&"string"!=typeof n.count,T=t.hasDefaultValue(n),k=C?this.pluralResolver.getSuffix(u,n.count):"",P=n["defaultValue".concat(k)]||n.defaultValue;!this.isValidLookup(h)&&T&&(A=!0,h=P),this.isValidLookup(h)||(_=!0,h=s);var I=T&&P!==h&&this.options.updateMissing;if(_||A||I){if(this.logger.log(I?"updateKey":"missingKey",u,c,s,I?P:h),i){var R=this.resolve(s,W({},n,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var j=[],D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&D&&D[0])for(var N=0;N<D.length;N++)j.push(D[N]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var M=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,t,I?r:h,I,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,t,I?r:h,I,n),o.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){M([e],s+t,n["defaultValue".concat(t)]||P)}))})):M(j,s,P))}h=this.extendTranslation(h,e,n,p,r),_&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(s)),_&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(W({},n,{interpolation:W({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=W({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=se.handle(f,e,t,this.options&&this.options.postProcessPassResolved?W({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(i=e,!le["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(le["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,l,u=c,p=[u];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,s):(d&&(i=a.pluralResolver.getSuffix(n,s.count)),d&&f&&p.push(u+i),f&&p.push(u+="".concat(a.options.contextSeparator).concat(s.context)),d&&p.push(u+=i));l=p.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),t}(K);function ue(e){return e.charAt(0).toUpperCase()+e.slice(1)}var de=function(){function e(t){(0,B.A)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$.create("languageUtils")}return(0,F.A)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ue(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ue(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ue(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),fe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],pe={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},he=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,B.A)(this,e),this.languageUtils=t,this.options=r,this.logger=$.create("pluralResolver"),this.rules=(n={},fe.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:pe[e.fc]}}))})),n)}return(0,F.A)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),me=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,B.A)(this,e),this.logger=$.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,F.A)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:oe,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?ne(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?ne(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?ne(t.nestingPrefix):t.nestingPrefixEscaped||ne("$t("),this.nestingSuffix=t.nestingSuffix?ne(t.nestingSuffix):t.nestingSuffixEscaped||ne(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var o=ee(t,l,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(ee(t,l,a),c,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=u(o[1].trim())))if("function"==typeof d){var n=d(e,o,r);i="string"==typeof n?n:""}else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=X(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=W({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=W({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=X(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),ge=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,B.A)(this,t),o=(0,H.A)(this,(0,V.A)(t).call(this)),ie&&K.call((0,U.A)(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=$.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return(0,G.A)(t,e),(0,F.A)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,l,c,u;r=n.loaded,s=i,l=Y(r,[o],Object),c=l.obj,u=l.k,c[u]=c[u]||[],c[u].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,W({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(K);function ve(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ye(){}const be=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,B.A)(this,t),e=(0,H.A)(this,(0,V.A)(t).call(this)),ie&&K.call((0,U.A)(e)),e.options=ve(n),e.services={},e.logger=$,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),(0,H.A)(e,(0,U.A)(e));setTimeout((function(){e.init(n,r)}),0)}return e}return(0,G.A)(t,e),(0,F.A)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=W({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,L.A)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,L.A)(e[2])||"object"===(0,L.A)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,ve(t)),this.format=this.options.interpolation.format,n||(n=ye),!this.options.isClone){this.modules.logger?$.init(r(this.modules.logger),this.options):$.init(null,this.options);var o=new de(this.options);this.store=new ae(this.options.resources,this.options);var i=this.services;i.logger=$,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new he(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new me(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new ge(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new ce(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=Z(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=Z();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ye),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&se.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=Z();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==(0,L.A)(r)){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];o=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else o=W({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=Z();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Z();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye,o=W({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=W({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ce(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(K)),we=JSON.parse('{"translation":{"aboutThisItem":"عن هذا العنصر","addedFromUrl":"(تمت إضافته من الرابط)","addManifestUrl":"موقع المصدر","addManifestUrlHelp":"الرابط لمصدر IIIF ","addResource":"اضف مصدر","annotationCanvasLabel_1/1":"العنصر: [{{الملصق}}]","annotationCanvasLabel_1/2":"يسار: [{{الملصق }}]","annotationCanvasLabel_2/2":"يمين: [{{الملصق}}]","annotations":"ملاحظات","attribution":"إسناد","attributionTitle":"حقوق","authenticationFailed":"التوثيق لم ينجح","authenticationRequired":"يجب توثيق الحساب لمنح الدخول الكامل","backToResults":"الرجوع الى النتائج","book":"كتاب","bottom":"أسفل","cancel":"الغاء","canvasIndex":"فهرس","changeTheme":"قم بتغيير الموضوع","clearSearch":"امسح","closeAddResourceForm":"إغلاق الإستمارة","closeAddResourceMenu":"إغلاق قائمة المصادر","closeCompanionWindow":"إغلاق اللوحة","closeWindow":"إغلاق النافذة","collapseSection":"تصغير جزء {{section}}","collapseSidePanel":"تصغير الشريط الجانبي","itemList":"قائمة العناصر","continue":"استمر","copy":"نسخ","currentItem":"العنصر الحالي","currentItem_1/1":"العنصر الحالي","currentItem_1/2":"يسار","currentItem_2/2":"يمين","dark":"موضوع داكن","dismiss":"تجاهل","highlightAllAnnotations":"تحديد الكل","downloadExport":"تصدير مساحة العمل","downloadExportWorkspace":"تصدير مساحة العمل","elastic":"مرن","elasticDescription":"حرك النوافذ و غير حجمها بحرية في مساحة عمل غير محدودة. يمكن أن تتداخل النوافذ أيضاً .","emptyResourceList":"قائمة المصادر الخاصة بك فارغة.","errorDialogConfirm":"حسناً","errorDialogTitle":"لقد حدث خطأ","exitFullScreen":"خروج من الشاشة الكاملة","expandSection":"توسيع الجزء {{section}}","expandSidePanel":"توسيع الشريط الجانبي","fetchManifest":"أضف","fullScreen":"شاشة كاملة","gallery":"المعرض","hideZoomControls":"إخفاء ضوابط التكبير","iiif_homepage":"عن هذه المصدر","iiif_manifest":"IIIF قائمة ","iiif_renderings":"تنسيقات بديلة","iiif_seeAlso":"أنظر أيضا","import":"استورد ","importWorkspace":"استيراد مساحة العمل","importWorkspaceHint":"قم بلصق تركيبة Mirador 3 ليتم استيراده","item":"العنصر: {{label}}","language":"اللغة","layer_hide":"إخفاء الطبقة","layer_move":"تحريك الطبقة","layer_opacity":"تعتيم الطبقة","layer_show":"إظهار الطبقة","layer_moveToTop":"حرك الطبقة إلى الأعلى","layers":"طبقات","light":"موضوع فاتح","links":"الروابط","listAllOpenWindows":"انتقل بسرعة للنافذة","login":"تسجيل الدخول","logout":"تسجيل الخروج","manifestError":"لا يمكن إضافة المصدر:","maximizeWindow":"تكبير النافذة إلى الحد الاكبر","minimizeWindow":"تصغير النافذة إلى الحد الأدنى","mirador":"Mirador","miradorResources":"مصادر Mirador ","miradorViewer":"مشاهد Mirador","more":"أكثر...","moreResults":"نتائج إضافية","mosaic":"فسيفساء","mosaicDescription":"حرك وغيٌر حجم النوافذ المتعلقة ببعضها البعض داخل الإطار المرئي.","moveCompanionWindowToBottom":"انتقل للأسفل","moveCompanionWindowToRight":"انتقل لليمين","nextCanvas":"العنصر التالي","numItems":"{{number}} عناصر","off":"ايقاف","openCompanionWindow_annotations":"ملاحظات","openCompanionWindow_attribution":"حقوق","openCompanionWindow_canvas":"فهرس","openCompanionWindow_info":"معلومات","openCompanionWindow_layers":"طبقات","openCompanionWindow_search":"بحث","openInCompanionWindow":"افتح في صفحة جديدة","openWindows":"النوافذ الحالية المفتوحة","pagination":"{{current}} من {{total}}","position":"مركز","previewWindowTitle":"عنوان","previousCanvas":"العنصر السابق","related":"ذات صلة","resource":"مصدر","retry":"أعد المحاولة ","right":"حق","rights":"ترخيص","searchInputLabel":"مصطلحات البحث","searchNextResult":"النتيجة التالية","searchNoResults":"لم يتم العثور على نتائج","searchPreviousResult":"النتيجة السابقة","searchSubmitAria":"ابحث","searchTitle":"بحث","selectWorkspaceMenu":"اختر نوع مساحة العمل","showingNumAnnotations":"تظهر {{number}} ملاحظات","showZoomControls":"اظهر عناصر التحكم بالتكبير و التصغير","sidebarPanelsNavigation":"تصفح لوح الشريط الجانبي","single":"مفرد","startHere":"إبدأ هنا","suggestSearch":"ابحث في هذا المستند عن \\"{{ query }}\\"","tableOfContentsList":"جدول المحتويات","theme":"موضوع","thumbnailList":"قائمة الصور المصغرة","thumbnailNavigation":"الصور المصغرة","thumbnails":"الصور المصغرة","toggleWindowSideBar":"تبديل الشريط الجانبي","tryAgain":"حاول مرة أخرى","untitled":"[بدون عنوان]","view":"شاهد","welcome":"مرحباً بكم في Mirador","window":"النافذة: {{label}}","windowMenu":"عرض النوافذ و الصور المصغرة","windowNavigation":"تصفح النافذة","windowPluginButtons":"خيارات","windowPluginMenu":"خيارات النافذة","workspace":"مساحة العمل","workspaceFullScreen":"شاشة كاملة","workspaceMenu":"اعدادات مساحة العمل","workspaceOptions":"خيارات مساحة العمل ","workspaceSelectionTitle":"اختر نوع مساحة العمل","zoomIn":"تكبير الصورة","zoomOut":"تصغير الصورة","zoomReset":"الرجوع لحجم الصورة الأساسي"}}'),Ee=JSON.parse('{"translation":{"aboutMirador":"Über Mirador","aboutThisItem":"Über dieses Element","addedFromUrl":"(Via URL hinzugefügt)","addManifestUrl":"Ort der Ressource","addManifestUrlHelp":"Die URL einer IIIF-Ressource","addResource":"Ressource hinzufügen","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Links: [{{label}}]","annotationCanvasLabel_2/2":"Rechts: [{{label}}]","annotations":"Annotationen","attribution":"Zuschreibung","attributionTitle":"Rechte","authenticationFailed":"Authentifizierung fehlgeschlagen","authenticationRequired":"Für vollen Zugriff ist eine Authentifizierung nötig.","backToResults":"Zurück zur Trefferansicht","book":"Buch","bottom":"Unten","cancel":"Abbrechen","canvasIndex":"Index","changeTheme":"Farbschema ändern","clearSearch":"zurücksetzen","closeAddResourceForm":"Formular schließen","closeAddResourceMenu":"Ressourcenliste schließen","closeCompanionWindow":"Hilfsfenster schließen","closeWindow":"Fenster schließen","collapseSection":"Bereich \\"{{section}}\\" zuklappen","collapseSidePanel":"Seitenleiste zuklappen","itemList":"Kompaktliste","continue":"Fortfahren","copy":"Kopieren","currentItem":"Aktuelles Objekt","currentItem_1/1":"Aktuelles Objekt","currentItem_1/2":"Links","currentItem_2/2":"Rechts","dark":"Dunkel","digitizedView":"Digitalisat-Ansicht","dismiss":"Verwerfen","highlightAllAnnotations":"Alle hervorheben","displayNoAnnotations":"Keine hervorheben","downloadExport":"Arbeitsfläche exportieren","downloadExportWorkspace":"Arbeitsfläche exportieren","elastic":"Elastisch","elasticDescription":"Fenster können frei und unbegrenzt innerhalb der Arbeitsfläche bewegt werden und sich überlappen","emptyResourceList":"Ihre Ressourcenliste ist leer","error":"Fehler","errorDialogConfirm":"OK","errorDialogTitle":"Es ist ein Fehler aufgetreten","exitFullScreen":"Vollbildmodus verlassen","expandSection":"Bereich \\"{{section}}\\" aufklappen","expandSidePanel":"Seitenleiste aufklappen","exportCopied":"Die Konfiguration der Arbeitsfläche wurde in die Zwischenablage kopiert.","fetchManifest":"Hinzufügen","fullScreen":"Vollbild","gallery":"Galerie","hideZoomControls":"Zoomsteuerung verbergen","iiif_homepage":"Über diese Ressource","iiif_manifest":"IIIF-Manifest","iiif_renderings":"Alternative Formate","iiif_seeAlso":"Siehe auch","import":"Importieren","importWorkspace":"Arbeitsfläche importieren","importWorkspaceHint":"Fügen Sie eine Mirador-3-Konfiguration ein, die importiert werden soll.","item":"Objekt: {{label}}","jsError":"Technische Details","jsStack":"{{ stack }}","language":"Sprache","layer_hide":"Ebene verbergen","layer_move":"Ebene verschieben","layer_opacity":"Ebenendeckkraft","layer_show":"Ebene anzeigen","layer_moveToTop":"Ebene ganz nach vorn bringen","layers":"Ebenen","light":"Hell","links":"Links","listAllOpenWindows":"Zu Fenster springen","login":"Anmelden","logout":"Abmelden","manifestError":"Die Ressource konnte nicht hinzugefügt werden:","maximizeWindow":"Fenster maximieren","minimizeWindow":"Fenster minimieren","mirador":"Mirador","miradorResources":"Mirador-Ressourcen","miradorViewer":"Mirador","more":"mehr...","moreResults":"Mehr Treffer","mosaic":"Mosaik","mosaicDescription":"Fenster können innerhalb der Arbeitsfläche in Relation zueinander verschoben und ihrer Größe verändert werden.","moveCompanionWindowToBottom":"Unten anordnen","moveCompanionWindowToRight":"Rechts anordnen","nextCanvas":"Nächstes Objekt","numItems":"{{number}} Elemente","off":"Keine","openCompanionWindow_annotations":"Annotationen","openCompanionWindow_attribution":"Rechte","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informationen","openCompanionWindow_layers":"Ebenen","openCompanionWindow_search":"Suche","openInCompanionWindow":"In Hilfsfenster öffnen","openWindows":"Aktuell offene Fenster","pagination":"{{current}} von {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Vorheriges Objekt","related":"Verwandtes","resource":"Ressource","retry":"Erneut versuchen","right":"Rechts","rights":"Lizenz","scroll":"Kontinuierlich","searchInputLabel":"Suchbegriffe","searchNextResult":"Nächster Treffer","searchNoResults":"Keine Treffer","searchPreviousResult":"Vorheriger Treffer","searchResultsRemaining":"{{numLeft}} weitere","searchSubmitAria":"Suchen","searchTitle":"Suche","selectWorkspaceMenu":"Wählen Sie einen Arbeitsflächentyp","showingNumAnnotations":"{{number}} Annotationen werden angezeigt","showZoomControls":"Zoomsteuerung anzeigen","sidebarPanelsNavigation":"Hilfsfensternavigation","single":"Einzeln","startHere":"Hier starten","suggestSearch":"Dieses Dokument durchsuchen nach \\"{{ query }}\\"","tableOfContentsList":"Inhaltsverzeichnis","theme":"Farbschema","thumbnailList":"Miniaturansicht","thumbnailNavigation":"Miniaturansicht","thumbnails":"Miniaturansicht","toggleWindowSideBar":"Seitenleiste umschalten","tryAgain":"Wiederholen","untitled":"[Unbenannt]","view":"Ansicht","welcome":"Willkommen bei Mirador","window":"Fenster: {{label}}","windowMenu":"Fenstermenü und Miniaturansicht","windowNavigation":"Fensternavigation","windowPluginButtons":"Optionen","windowPluginMenu":"Fensteroptionen","workspace":"Arbeitsfläche","workspaceNavigation":"Arbeitsflächensteuerung","workspaceFullScreen":"Vollbild","workspaceMenu":"Arbeitsflächenmenü","workspaceOptions":"Arbeitsflächenoptionen","workspaceSelectionTitle":"Bitte wählen Sie einen Arbeitsflächentyp","zoomIn":"Vergrößern","zoomOut":"Verkleinern","zoomReset":"Ansicht zurücksetzen"}}'),xe=JSON.parse('{"translation":{"aboutMirador":"About Project Mirador","aboutThisItem":"About this item","addedFromUrl":"(Added from URL)","addManifestUrl":"Resource location","addManifestUrlHelp":"The URL of a IIIF resource","addResource":"Add resource","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Left: [{{label}}]","annotationCanvasLabel_2/2":"Right: [{{label}}]","annotations":"Annotations","attribution":"Attribution","attributionTitle":"Rights","authenticationFailed":"Authentication failed.","authenticationRequired":"Authentication required for full access","backToResults":"Back to results","book":"Book","bottom":"Bottom","cancel":"Cancel","canvasIndex":"Index","changeTheme":"Change theme","clearSearch":"clear","close":"Close","closeAddResourceForm":"Close form","closeAddResourceMenu":"Close resource list","closeCompanionWindow":"Close panel","closeWindow":"Close window","collapseSection":"Collapse \\"{{section}}\\" section","collapseSidePanel":"Collapse sidebar","collection":"Collection","itemList":"Item list","continue":"Continue","copy":"Copy","currentItem":"Current item","currentItem_1/1":"Current item","currentItem_1/2":"Left","currentItem_2/2":"Right","dark":"Dark theme","digitizedView":"Digitized view","dismiss":"Dismiss","highlightAllAnnotations":"Highlight all","displayNoAnnotations":"Highlight none","downloadExport":"Export workspace","downloadExportWorkspace":"Export workspace","elastic":"Elastic","elasticDescription":"Move and size windows freely in an unlimited workspace. Windows can overlap.","emptyResourceList":"Your resource list is empty","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"An error occurred","exitFullScreen":"Exit full screen","expandSection":"Expand \\"{{section}}\\" section","expandSidePanel":"Expand sidebar","exportCopied":"The workspace configuration was copied to your clipboard","fetchManifest":"Add","fullScreen":"Full Screen","gallery":"Gallery","hideZoomControls":"Hide zoom controls","iiif_homepage":"About this resource","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternate formats","iiif_seeAlso":"See also","import":"Import","importWorkspace":"Import workspace","importWorkspaceHint":"Paste a Mirador 3 configuration to be imported","item":"Item: {{label}}","jsError":"Technical details","jsStack":"{{ stack }}","language":"Language","layer_hide":"Hide layer","layer_move":"Move layer","layer_opacity":"Layer opacity","layer_show":"Show layer","layer_moveToTop":"Move layer to top","layers":"Layers","light":"Light theme","links":"Links","listAllOpenWindows":"Jump to window","login":"Log in","logout":"Log out","manifestError":"The resource cannot be added:","maximizeWindow":"Maximize window","minimizeWindow":"Minimize window","mirador":"Mirador","miradorResources":"Mirador resources","miradorViewer":"Mirador viewer","more":"more...","moreResults":"More results","mosaic":"Mosaic","mosaicDescription":"Move and size windows in relation to each other, within the visible frame.","moveCompanionWindowToBottom":"Move to bottom","moveCompanionWindowToRight":"Move to right","nextCanvas":"Next item","noItemSelected":"No item selected","numItems":"{{number}} item","numItems_plural":"{{number}} items","off":"Off","openCompanionWindow_annotations":"Annotations","openCompanionWindow_attribution":"Rights","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Information","openCompanionWindow_layers":"Layers","openCompanionWindow_search":"Search","openInCompanionWindow":"Open in separate panel","openWindows":"Current open windows","pagination":"{{current}} of {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Previous item","related":"Related","resource":"Resource","retry":"Retry","right":"Right","rights":"License","scroll":"Scroll","searchInputLabel":"search terms","searchNextResult":"Next result","searchNoResults":"No results found","searchPreviousResult":"Previous result","searchResultsRemaining":"{{numLeft}} remaining","searchSubmitAria":"Submit search","searchTitle":"Search","selectWorkspaceMenu":"Select workspace type","showingNumAnnotations":"Showing {{number}} annotation","showingNumAnnotations_plural":"Showing {{number}} annotations","showCollection":"Show collection","showZoomControls":"Show zoom controls","sidebarPanelsNavigation":"Sidebar panels navigation","single":"Single","startHere":"Start Here","suggestSearch":"Search this document for \\"{{ query }}\\"","tableOfContentsList":"Table of contents","theme":"Theme","thumbnailList":"Thumbnail list","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Toggle sidebar","totalCollections":"{{count}} collection","totalCollections_plural":"{{count}} collections","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifests","tryAgain":"Try again","untitled":"[Untitled]","view":"View","viewWorkspaceConfiguration":"View workspace configuration","welcome":"Welcome to Mirador","window":"Window: {{label}}","windowMenu":"Window views & thumbnail display","windowNavigation":"Window navigation","windowPluginButtons":"Options","windowPluginMenu":"Window options","workspace":"Workspace","workspaceNavigation":"Workspace navigation","workspaceFullScreen":"Full screen","workspaceMenu":"Workspace settings","workspaceOptions":"Workspace options","workspaceSelectionTitle":"Select a workspace type","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}'),Oe=JSON.parse('{"translation":{"aboutThisItem":"有关此物件","addedFromUrl":"(从URL添加)","addManifestUrl":"来源","addManifestUrlHelp":"IIIF资源的URL","addResource":"添加资源","annotationCanvasLabel_1/1":"物件: [{{label}}]","annotationCanvasLabel_1/2":"左方: [{{label}}]","annotationCanvasLabel_2/2":"右方: [{{label}}]","annotations":"注释","attribution":"着作权","attributionTitle":"着作权","book":"书籍","bottom":"下方","cancel":"取消","canvasIndex":"索引","changeTheme":"变更佈景主题","closeAddResourceForm":"关闭表格","closeAddResourceMenu":"关闭资源列表","closeCompanionWindow":"关闭附属视窗","closeWindow":"关闭视窗","collapseSection":"关闭{{section}}分页","collapseSidePanel":"关闭边栏","itemList":"标题列表","copy":"複製","currentItem":"目前物件","currentItem_1/1":"目前物件","currentItem_1/2":"左方","currentItem_2/2":"右方","dark":"黑色主题","dismiss":"关闭信息","highlightAllAnnotations":"显示所有注释","downloadExport":"滙出桌面排版","downloadExportWorkspace":"滙出桌面排版","elastic":"弹性","elasticDescription":"在桌面上自由摆放视窗","emptyResourceList":"资源列表没有物件","errorDialogConfirm":"确定","errorDialogTitle":"发生错误","exitFullScreen":"退出全萤幕","expandSection":"开启{{section}}分页","expandSidePanel":"开启边栏","fetchManifest":"添加","fullScreen":"全萤幕","gallery":"矩列","hideZoomControls":"隐藏缩放选项","iiif_homepage":"有关此资源","iiif_manifest":"IIIF","iiif_renderings":"其他格式","iiif_seeAlso":"另见","import":"滙入","importWorkspace":"滙入桌面排版","importWorkspaceHint":"在此贴上Mirador 3排版设定码","item":"物件: {{label}}","language":"语言","light":"白色主题","links":"连结","listAllOpenWindows":"切换至视窗","login":"登入","manifestError":"无法增添资源:","maximizeWindow":"视窗最大化","minimizeWindow":"视窗最小化","mirador":"Mirador","miradorResources":"Mirador资源","miradorViewer":"Mirador阅览器","mosaic":"马赛克","mosaicDescription":"在桌面上以格状方式排列视窗","moveCompanionWindowToBottom":"移至下方","moveCompanionWindowToRight":"移至右方","nextCanvas":"下一页","numItems":"{{number}} 项物件","off":"关闭","openCompanionWindow_annotations":"注释","openCompanionWindow_attribution":"着作权","openCompanionWindow_canvas":"目录","openCompanionWindow_info":"资讯","openInCompanionWindow":"移至新附属视窗","openWindows":"现有视窗","pagination":"{{current}} / {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"上一页","related":"相关资讯","resource":"资源","right":"右方","rights":"版权","selectWorkspaceMenu":"选择桌面排版方式","showingNumAnnotations":"显示 {{number}} 项注释","showZoomControls":"显示缩放选项","sidebarPanelsNavigation":"切换边栏","single":"单项","startHere":"按此开始","theme":"佈景主题","thumbnailList":"缩图列表","thumbnailNavigation":"缩图","thumbnails":"显示缩图","toggleWindowSideBar":"切换边栏开关","tryAgain":"请重试","untitled":"[无标题]","view":"物件排列方式","welcome":"欢迎使用Mirador","window":"视窗: {{label}}","windowMenu":"视窗选项","windowNavigation":"切换视窗","windowPluginButtons":"选项","workspace":"桌面","workspaceFullScreen":"全萤幕","workspaceMenu":"桌面设定","workspaceOptions":"桌面选项","workspaceSelectionTitle":"选择桌面排版方式","zoomIn":"放大","zoomOut":"放小","zoomReset":"重设缩放"}}'),Se=JSON.parse('{"translation":{"aboutThisItem":"有關此物件","addedFromUrl":"(從URL添加)","addManifestUrl":"來源","addManifestUrlHelp":"IIIF資源的URL","addResource":"添加資源","annotationCanvasLabel_1/1":"物件: [{{label}}]","annotationCanvasLabel_1/2":"左方: [{{label}}]","annotationCanvasLabel_2/2":"右方: [{{label}}]","annotations":"注釋","attribution":"著作權","attributionTitle":"著作權","book":"書籍","bottom":"下方","cancel":"取消","canvasIndex":"索引","changeTheme":"變更佈景主題","closeAddResourceForm":"關閉表格","closeAddResourceMenu":"關閉資源列表","closeCompanionWindow":"關閉附屬視窗","closeWindow":"關閉視窗","collapseSection":"關閉{{section}}分頁","collapseSidePanel":"關閉邊欄","itemList":"標題列表","copy":"複製","currentItem":"目前物件","currentItem_1/1":"目前物件","currentItem_1/2":"左方","currentItem_2/2":"右方","dark":"黑色主題","dismiss":"關閉信息","highlightAllAnnotations":"顯示所有注釋","downloadExport":"滙出桌面排版","downloadExportWorkspace":"滙出桌面排版","elastic":"彈性","elasticDescription":"在桌面上自由擺放視窗","emptyResourceList":"資源列表沒有物件","errorDialogConfirm":"確定","errorDialogTitle":"發生錯誤","exitFullScreen":"退出全螢幕","expandSection":"開啟{{section}}分頁","expandSidePanel":"開啟邊欄","fetchManifest":"添加","fullScreen":"全螢幕","gallery":"矩列","hideZoomControls":"隱藏縮放選項","iiif_homepage":"有關此資源","iiif_manifest":"IIIF","iiif_renderings":"其他格式","iiif_seeAlso":"另見","import":"滙入","importWorkspace":"滙入桌面排版","importWorkspaceHint":"在此貼上Mirador 3排版設定碼","item":"物件: {{label}}","language":"語言","light":"白色主題","links":"連結","listAllOpenWindows":"切換至視窗","login":"登入","manifestError":"無法增添資源:","maximizeWindow":"視窗最大化","minimizeWindow":"視窗最小化","mirador":"Mirador","miradorResources":"Mirador資源","miradorViewer":"Mirador閱覽器","mosaic":"馬賽克","mosaicDescription":"在桌面上以格狀方式排列視窗","moveCompanionWindowToBottom":"移至下方","moveCompanionWindowToRight":"移至右方","nextCanvas":"下一頁","numItems":"{{number}} 項物件","off":"關閉","openCompanionWindow_annotations":"注釋","openCompanionWindow_attribution":"著作權","openCompanionWindow_canvas":"目錄","openCompanionWindow_info":"資訊","openInCompanionWindow":"移至新附屬視窗","openWindows":"現有視窗","pagination":"{{current}} / {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"上一頁","related":"相關資訊","resource":"資源","right":"右方","rights":"版權","selectWorkspaceMenu":"選擇桌面排版方式","showingNumAnnotations":"顯示 {{number}} 項注釋","showZoomControls":"顯示縮放選項","sidebarPanelsNavigation":"切換邊欄","single":"單項","startHere":"按此開始","theme":"佈景主題","thumbnailList":"縮圖列表","thumbnailNavigation":"縮圖","thumbnails":"顯示縮圖","toggleWindowSideBar":"切換邊欄開關","tryAgain":"請重試","untitled":"[無標題]","view":"物件排列方式","welcome":"歡迎使用Mirador","window":"視窗: {{label}}","windowMenu":"視窗選項","windowNavigation":"切換視窗","windowPluginButtons":"插件","workspace":"桌面","workspaceFullScreen":"全螢幕","workspaceMenu":"桌面設定","workspaceOptions":"桌面選項","workspaceSelectionTitle":"選擇桌面排版方式","zoomIn":"放大","zoomOut":"放小","zoomReset":"重設縮放"}}'),Ae=JSON.parse('{"translation":{"aboutMirador":"A propos du projet Mirador","aboutThisItem":"Informations","addedFromUrl":"(Ajouté depuis une URL)","addManifestUrl":"Emplacement de la ressource","addManifestUrlHelp":"Coller ici l\'URL de la ressource IIIF","addResource":"Ajouter une ressource","annotationCanvasLabel_1/1":"Item : [{{label}}]","annotationCanvasLabel_1/2":"Gauche : [{{label}}]","annotationCanvasLabel_2/2":"Droite : [{{label}}]","annotations":"Annotations","attribution":"Attribution","attributionTitle":"Droits","authenticationFailed":"L\'authentification a échoué.","authenticationRequired":"Authentification requise pour un accès complet","backToResults":"Retour aux résultats","book":"Livre","bottom":"Bas","cancel":"Annuler","canvasIndex":"Index","changeTheme":"Changer le thème","clearSearch":"effacer","closeAddResourceForm":"Fermer le panneau","closeAddResourceMenu":"Fermer la liste des ressources","closeCompanionWindow":"Fermer le panneau","closeWindow":"Fermer cette fenêtre","collapseSection":"Replier la section \\"{{section}}\\"","collapseSidePanel":"Replier le panneau","itemList":"Liste compacte","continue":"Continuer","copy":"Copier","currentItem":"Image courante","currentItem_1/1":"Image courante","currentItem_1/2":"Gauche","currentItem_2/2":"Droite","dark":"Thème sombre","digitizedView":"Vue de l\'objet numérique","dismiss":"Rejeter","highlightAllAnnotations":"Afficher tout","displayNoAnnotations":"Masquer tout","downloadExport":"Exporter l\'espace de travail","downloadExportWorkspace":"Exporter l\'espace de travail","elastic":"Elastique","elasticDescription":"Déplacer et redimensionner librement les fenêtres dans un espace de travail non limité par l\'écran. Les fenêtres peuvent être superposées.","emptyResourceList":"Votre liste de ressource est vide","error":"Erreur","errorDialogConfirm":"OK","errorDialogTitle":"Une erreur est survenue","exitFullScreen":"Quitter le plein écran","expandSection":"Déplier la section \\"{{section}}\\"","expandSidePanel":"Déplier le panneau","exportCopied":"La configuration de l\'espace de travail a été copiée dans votre presse-papier","fetchManifest":"Ajouter","fullScreen":"Plein écran","gallery":"Galerie","hideZoomControls":"Désactiver les commandes de zoom","iiif_homepage":"A propos de cette ressource","iiif_manifest":"Manifeste IIIF","iiif_renderings":"Formats alternatifs","iiif_seeAlso":"Voir aussi","import":"Importer","importWorkspace":"Importer un espace de travail","importWorkspaceHint":"Insérer une configuration Mirador 3 à importer","item":"Item : {{label}}","jsError":"Détails techniques","jsStack":"{{ stack }}","language":"Langue","layer_hide":"Masquer le calque","layer_move":"Déplacer le calque","layer_opacity":"Opacité du calque","layer_show":"Afficher le calque","layer_moveToTop":"Déplacer le calque en haut","layers":"Calques","light":"Thème clair","links":"Liens","listAllOpenWindows":"Lister les fenêtres","login":"Se connecter","logout":"Se déconnecter","manifestError":"Cette ressource ne peut pas être ajoutée :","maximizeWindow":"Agrandir cette fenêtre","minimizeWindow":"Réduire cette fenêtre","mirador":"Mirador","miradorResources":"Ressources Mirador","miradorViewer":"Visualiseur Mirador","more":"plus...","moreResults":"Plus de résultats","mosaic":"Mosaïque","mosaicDescription":"Déplacer et redimensionner les fenêtres les unes par rapport aux autres dans l\'espace disponible sur l\'écran","moveCompanionWindowToBottom":"Déplacer en bas","moveCompanionWindowToRight":"Déplacer à droite","nextCanvas":"Suivant","noItemSelected":"Aucun élément sélectionné","numItems":"{{number}} image","numItems_plural":"{{number}} images","off":"aucun","openCompanionWindow_annotations":"Annotations","openCompanionWindow_attribution":"Droits","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informations","openCompanionWindow_layers":"Calques","openCompanionWindow_search":"Rechercher","openInCompanionWindow":"Ouvrir dans un panneau séparé","openWindows":"Fenêtres ouvertes","pagination":"{{current}} sur {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Précédent","related":"En relation","resource":"Ressource","retry":"Réessayer","right":"Droite","rights":"Licence","scroll":"Défilement horizontal","searchInputLabel":"Chercher un mot","searchNextResult":"Résultat suivant","searchNoResults":"Aucun résultat trouvé","searchPreviousResult":"Résultat précédent","searchSubmitAria":"Lancer la recherche","searchTitle":"Rechercher","selectWorkspaceMenu":"Changer de type d\'espace de travail","showingNumAnnotations":"{{number}} annotation affichée","showingNumAnnotations_plural":"{{number}} annotations affichées","showCollection":"Voir la collection","showZoomControls":"Activer les commandes de zoom","sidebarPanelsNavigation":"Navigation dans les panneaux latéraux","single":"Simple","startHere":"Commencer ici","suggestSearch":"Rechercher \\"{{ query }}\\" dans ce document","tableOfContentsList":"Sommaire","theme":"Thème","thumbnailList":"Liste des vignettes","thumbnailNavigation":"Vignettes","thumbnails":"Afficher les vignettes","toggleWindowSideBar":"Afficher le menu latéral","totalCollections":"{{count}} collection","totalCollections_plural":"{{count}} collections","totalManifests":"{{count}} manifeste","totalManifests_plural":"{{count}} manifestes","tryAgain":"Essayer à nouveau","untitled":"[Sans titre]","view":"Voir les images en mode","welcome":"Bienvenue dans Mirador","window":"Fenêtre : {{label}}","windowMenu":"Options de fenêtre","windowNavigation":"Navigation dans les fenêtres","windowPluginButtons":"Options","windowPluginMenu":"Autres options et outils","workspace":"Espace de travail","workspaceNavigation":"Menu de l\'espace de travail","workspaceFullScreen":"Plein écran","workspaceMenu":"Réglages de l\'espace de travail","workspaceOptions":"Options de l\'espace de travail","workspaceSelectionTitle":"Sélectionner un type d\'espace de travail","zoomIn":"Zoom avant","zoomOut":"Zoom arrière","zoomReset":"Réinitialiser le zoom"}}'),_e=JSON.parse('{"translation":{"aboutMirador":"Project Miradorについて","aboutThisItem":"この資料について","addedFromUrl":"(URLで追加)","addManifestUrl":"資料のURL","addManifestUrlHelp":"IIIF資料のURL","addResource":"資料の追加","annotationCanvasLabel_1/1":"アイテム: [{{label}}]","annotationCanvasLabel_1/2":"左: [{{label}}]","annotationCanvasLabel_2/2":"右: [{{label}}]","annotations":"アノテーション","attribution":"帰属","attributionTitle":"権利","authenticationFailed":"認証失敗","authenticationRequired":"フルアクセスには認証が必要","backToResults":"結果に戻る","book":"見開き","bottom":"下部","cancel":"キャンセル","canvasIndex":"インデックス","changeTheme":"テーマの変更","clearSearch":"クリア","close":"閉じる","closeAddResourceForm":"フォームを閉じる","closeAddResourceMenu":"資料一覧を閉じる","closeCompanionWindow":"パネルを閉じる","closeWindow":"ウインドウを閉じる","collapseSection":"{{section}} セクションを畳む","collapseSidePanel":"サイドバーを畳む","collection":"コレクション","itemList":"アイテム一覧","continue":"続ける","copy":"コピー","currentItem":"現在のアイテム","currentItem_1/1":"現在のアイテム","currentItem_1/2":"左","currentItem_2/2":"右","dark":"ダークなテーマ","digitizedView":"デジタルビュー","dismiss":"片付け","highlightAllAnnotations":"すべてを表示","displayNoAnnotations":"アノテーションを非表示","downloadExport":"ワークスペースをエクスポート","downloadExportWorkspace":"ワークスペースをエクスポート","elastic":"伸縮","elasticDescription":"自由なウインドウの伸縮","emptyResourceList":"資料の一覧が空です","error":"エラー","errorDialogConfirm":"OK","errorDialogTitle":"エラー発生","exitFullScreen":"全画面を解除","expandSection":"セクション {{section}}を拡大","expandSidePanel":"サイドバーを拡大","exportCopied":"ワークスペースの設定がクリップボードにコピーされました。","fetchManifest":"追加","fullScreen":"全画面","gallery":"ギャラリー","hideZoomControls":"zoom制御を隠す","iiif_homepage":"IIIFホームページ","iiif_manifest":"IIIF マニフェスト","iiif_renderings":"別の形式","iiif_seeAlso":"参照","import":"取り込み","importWorkspace":"ワークスペースの取り込み","importWorkspaceHint":"Mirador3の設定を貼り付け","item":"アイテム: {{label}}","jsError":"技術的な詳細","jsStack":"{{ stack }}","language":"言語","layer_hide":"レイヤーを隠す","layer_move":"レイヤーを動かす","layer_opacity":"レイヤーの透過度","layer_show":"レイヤーを表示","layer_moveToTop":"レイヤーをトップへ","layers":"レイヤー","light":"明るいテーマ","links":"リンク","listAllOpenWindows":"ウインドウにジャンプ","login":"ログイン","logout":"ログアウト","manifestError":"資料追加に失敗:","maximizeWindow":"ウインドウを最大化","minimizeWindow":"ウインドウを最小化","mirador":"Mirador","miradorResources":"Mirador資料","miradorViewer":"Miradorビューワ","more":"さらに...","moreResults":"さらに結果を","mosaic":"モザイク","mosaicDescription":"モザイク表示","moveCompanionWindowToBottom":"下部に移動","moveCompanionWindowToRight":"右に移動","nextCanvas":"次のアイテム","noItemSelected":"アイテムが未選択","numItems":"{{number}} アイテム","off":"オフ","openCompanionWindow_annotations":"アノテーション","openCompanionWindow_attribution":"権利","openCompanionWindow_canvas":"インデックス","openCompanionWindow_info":"情報","openCompanionWindow_layers":"レイヤー","openCompanionWindow_search":"検索","openInCompanionWindow":"別のパネルで開く","openWindows":"現在開いているウインドウ","pagination":"{{current}} of {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"前のアイテム","related":"関連","resource":"資料","retry":"リトライ","right":"右側","rights":"利用条件","scroll":"スクロール","searchInputLabel":"検索語","searchNextResult":"次の結果","searchNoResults":"ヒットせず","searchPreviousResult":"前の結果","searchSubmitAria":"検索","searchTitle":"検索","selectWorkspaceMenu":"ワークスペースタイプの選択","showingNumAnnotations":"アノテーション {{number}} を表示","showCollection":"コレクションを表示","showZoomControls":"ズーム操作を表示","sidebarPanelsNavigation":"サイドバーパネルの操作","single":"単一","startHere":"ここから始める","suggestSearch":"この文書を \\"{{ query }}\\" で検索","tableOfContentsList":"目次","theme":"テーマ","thumbnailList":"サムネイル一覧","thumbnailNavigation":"サムネイル","thumbnails":"サムネイル表示","toggleWindowSideBar":"サイドバー切り替え","totalCollections":"{{count}} コレクション","totalManifests":"{{count}} マニフェスト","tryAgain":"もう一度試す","untitled":"[タイトル無し]","view":"表示の仕方","welcome":"Miradorにようこそ","window":"{{label}} ウインドウ","windowMenu":"ウインドウメニュー","windowNavigation":"ウィンドウ操作","windowPluginButtons":"オプション","windowPluginMenu":"ウインドウオプション","workspace":"ワークスペース","workspaceNavigation":"ワークスペースナビ","workspaceFullScreen":"全画面","workspaceMenu":"ワークスペースの設定","workspaceOptions":"ワークスペースのオプション","workspaceSelectionTitle":"ワークスペースのタイプを選択","zoomIn":"ズームイン","zoomOut":"ズームアウト","zoomReset":"ズームを戻す"}}'),Ce=JSON.parse('{"translation":{"aboutMirador":"Mirador 프로젝트에 대하여","aboutThisItem":"해당 아이템에 대하여","addedFromUrl":"(URL에서 추가됨)","addManifestUrl":"리소스의 위치","addManifestUrlHelp":"IIIF 리소스의 URL","addResource":"리소스 추가","annotationCanvasLabel_1/1":"아이템: [{{label}}]","annotationCanvasLabel_1/2":"왼쪽: [{{label}}]","annotationCanvasLabel_2/2":"오른쪽: [{{label}}]","annotations":"주석","attribution":"귀속","attributionTitle":"권리","authenticationFailed":"인증 실패.","authenticationRequired":"모든 정보에 접근하기 위해선 인증이 필요합니다.","backToResults":"결과로 돌아가기","book":"책","bottom":"아래","cancel":"취소","canvasIndex":"인덱스","changeTheme":"테마 변경","clearSearch":"지우기","close":"닫기","closeAddResourceForm":"폼 닫기","closeAddResourceMenu":"리소스 목록 닫기","closeCompanionWindow":"패널 닫기","closeWindow":"윈도우 닫기","collapseSection":"\\"{{section}}\\" 섹션 접기","collapseSidePanel":"사이드바 접기","collection":"컬렉션","itemList":"아이템 목록","continue":"계속하기","copy":"복사","currentItem":"현재 아이템","currentItem_1/1":"현재 아이템","currentItem_1/2":"왼쪽","currentItem_2/2":"오른쪽","dark":"다크 모드","digitizedView":"디지털 뷰","dismiss":"무시하기","highlightAllAnnotations":"모두 하이라이트하기","displayNoAnnotations":"하이라이트 해제","downloadExport":"작업공간 내보내기","downloadExportWorkspace":"작업공간 내보내기","elastic":"신축성","elasticDescription":"무한한 작업공간에서 윈도우를 자유롭게 움직이고 조절해보세요. 윈도우는 서로 겹칠 수 있습니다.","emptyResourceList":"리소스 목록이 비어있습니다","error":"오류","errorDialogConfirm":"허락","errorDialogTitle":"오류 발생","exitFullScreen":"전체화면에서 나가기","expandSection":"\\"{{section}}\\" 섹션 확장","expandSidePanel":"사이드바 확장","exportCopied":"작업공간 환경설정을 클립보드에 복사했습니다","fetchManifest":"추가하기","fullScreen":"전체화면","gallery":"갤러리","hideZoomControls":"확대/축소 기능 숨기기","iiif_homepage":"해당 리소스에 대하여","iiif_manifest":"IIIF 매니페스트","iiif_renderings":"대체 포맷","iiif_seeAlso":"참고","import":"가져오기","importWorkspace":"작업공간 가져오기","importWorkspaceHint":"Mirador 3 환경설정 가져와 붙여넣기","item":"아이템: {{label}}","jsError":"기술적인 세부사항","jsStack":"{{ stack }}","language":"언어","layer_hide":"레이어 숨기기","layer_move":"레이어 움직이기","layer_opacity":"레이어 불투명도","layer_show":"레이어 보이기","layer_moveToTop":"레이어를 위로 옮기기","layers":"레이어","light":"라이트 모드","links":"링크","listAllOpenWindows":"윈도우로 이동하기","login":"로그인","logout":"로그아웃","manifestError":"리소스를 추가할 수 없습니다:","maximizeWindow":"윈도우 크기 최대화","minimizeWindow":"윈도우 크기 최소화","mirador":"Mirador","miradorResources":"Mirador 리소스","miradorViewer":"Mirador 뷰어","more":"더 보기...","moreResults":"결과 더 보기","mosaic":"모자이크","mosaicDescription":"프레임 내에서 윈도우를 이동하고 크기를 조정합니다.","moveCompanionWindowToBottom":"아래로 옮기기","moveCompanionWindowToRight":"오른쪽으로 옮기기","nextCanvas":"다음 아이템","noItemSelected":"아이템이 선택되지 않았습니다","numItems":"{{number}}개의 아이템","numItems_plural":"{{number}}개의 아이템","off":"끄기","openCompanionWindow_annotations":"주석","openCompanionWindow_attribution":"권리","openCompanionWindow_canvas":"인덱스","openCompanionWindow_info":"정보","openCompanionWindow_layers":"레이어","openCompanionWindow_search":"검색","openInCompanionWindow":"별도의 패널에서 열기","openWindows":"현재 열려있는 윈도우","pagination":"{{current}} of {{total}}","position":"배치","previewWindowTitle":"{{title}}","previousCanvas":"이전 아이템","related":"관련","resource":"리소스","retry":"재시도","right":"오른쪽","rights":"라이선스","scroll":"스크롤","searchInputLabel":"용어 찾기","searchNextResult":"다음 결과","searchNoResults":"해당 결과 없음","searchPreviousResult":"이전 결과","searchResultsRemaining":"{{numLeft}}개 남음","searchSubmitAria":"검색하기","searchTitle":"검색","selectWorkspaceMenu":"작업공간 유형 선택","showingNumAnnotations":"{{number}}개의 주석 나타내기","showingNumAnnotations_plural":"{{number}}개의 주석 나타내기","showCollection":"컬렉션 보이기","showZoomControls":"확대/축소 기능 보이기","sidebarPanelsNavigation":"사이드바 패널 탐색","single":"한 개","startHere":"시작하기","suggestSearch":"이 문서를 \\"{{ query }}\\"로 검색하기","tableOfContentsList":"목차","theme":"테마","thumbnailList":"썸네일 목록","thumbnailNavigation":"썸네일","thumbnails":"썸네일","toggleWindowSideBar":"사이드바 전환","totalCollections":"{{count}}개의 컬렉션","totalCollections_plural":"{{count}}개의 컬렉션","totalManifests":"{{count}}개의 매니페스트","totalManifests_plural":"{{count}}개의 매니페스트","tryAgain":"다시 시도하세요","untitled":"[타이틀 없음]","view":"뷰","viewWorkspaceConfiguration":"작업공간 환경설정 ㅂ괴","welcome":"Mirador에 오신 것을 환영합니다","window":"윈도우: {{label}}","windowMenu":"윈도우 뷰 & 썸네일 표시","windowNavigation":"윈도우 탐색","windowPluginButtons":"옵션","windowPluginMenu":"윈도우 옵션","workspace":"작업공간","workspaceNavigation":"작업공간 탐색","workspaceFullScreen":"전체화면","workspaceMenu":"작업공간 설정","workspaceOptions":"작업공간 옵션","workspaceSelectionTitle":"작업공간 유형을 선택하세요","zoomIn":"확대","zoomOut":"축소","zoomReset":"줌 재설정"}}'),Te=JSON.parse('{"translation":{"aboutThisItem":"Over dit item","addedFromUrl":"(Toegevoegd via URL)","addManifestUrl":"Locatie bron","addManifestUrlHelp":"De URL van een IIIF-resource","addResource":"Voeg bron toe","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Links: [{{label}}]","annotationCanvasLabel_2/2":"Rechts: [{{label}}]","annotations":"Annotaties","attribution":"Naamsvermelding","attributionTitle":"Rechten","authenticationFailed":"Authenticatie gefaald.","authenticationRequired":"Authenticatie is vereist voor volledige toegang","backToResults":"Terug naar resultaten","book":"Boek","bottom":"Onderaan","cancel":"Annuleer","canvasIndex":"Index","changeTheme":"Wijzig thema","clearSearch":"clear","closeAddResourceForm":"Sluit formulier","closeAddResourceMenu":"Sluit lijst met bronnen","closeCompanionWindow":"Sluit paneel","closeWindow":"Sluit venster","collapseSection":"Klap \\"{{section}}\\" sectie in","collapseSidePanel":"Klap zijbalk in","itemList":"Compacte lijst","continue":"Ga verder","copy":"Kopieer","currentItem":"Huidig item","currentItem_1/1":"Huidig item","currentItem_1/2":"Links","currentItem_2/2":"Rechts","dark":"Donker thema","dismiss":"Dismiss","highlightAllAnnotations":"Markeer alles","downloadExport":"Exporteer workspace","downloadExportWorkspace":"Exporteer workspace","elastic":"Elastisch","elasticDescription":"Verplaats en rangschik vensters vrij in een onbeperkte workspace. Vensters kunnen elkaar overlappen.","emptyResourceList":"Je lijst met bronnen is leeg","errorDialogConfirm":"OK","errorDialogTitle":"Er is een fout opgetreden","exitFullScreen":"Verlaat volledig scherm","expandSection":"Klap \\"{{section}}\\" sectie uit","expandSidePanel":"Klap zijbalk uit","fetchManifest":"Voeg toe","fullScreen":"Volledig scherm","gallery":"Gallerij","hideZoomControls":"Verberg zoomknoppen","iiif_homepage":"Over deze bron","iiif_manifest":"IIIF-manifest","iiif_renderings":"Alternatieve formaten","iiif_seeAlso":"Zie ook","import":"Importeer","importWorkspace":"Importeer workspace","importWorkspaceHint":"Plak een Mirador 3 configuratie die geïmporteerd moet worden","item":"Item: {{label}}","language":"Taal","light":"Licht thema","links":"Links","listAllOpenWindows":"Ga naar venster","login":"Log in","manifestError":"De bron kan niet worden toegevoegd:","maximizeWindow":"Maximaliseer venster","minimizeWindow":"Minimaliseer venster","mirador":"Mirador","miradorResources":"Mirador resources","miradorViewer":"Mirador viewer","more":"meer...","moreResults":"Meer resultaten","mosaic":"Mozaïek","mosaicDescription":"Verplaats en rangschik vensters in verhouding tot elkaar binnen het zichtbare kader.","moveCompanionWindowToBottom":"Verplaats naar beneden","moveCompanionWindowToRight":"Verplaats naar rechts","nextCanvas":"Volgend item","numItems":"{{number}} item","numItems_plural":"{{number}} items","off":"Uit","openCompanionWindow_annotations":"Annotaties","openCompanionWindow_attribution":"Rechten","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informatie","openCompanionWindow_search":"Zoeken","openInCompanionWindow":"Open in een apart paneel","openWindows":"Geopende vensters","pagination":"{{current}} van {{total}}","position":"Positie","previewWindowTitle":"{{title}}","previousCanvas":"Vorig item","related":"Verwant","resource":"Bron","retry":"Probeer opnieuw","right":"Rechts","rights":"Licentie","searchInputLabel":"zoek termen","searchNextResult":"Volgend resultaat","searchNoResults":"Geen resultaten gevonden","searchPreviousResult":"Vorig resultaat","searchSubmitAria":"Zoeken","searchTitle":"Zoek","selectWorkspaceMenu":"Selecteer workspacetype","showingNumAnnotations":"{{number}} annotatie weergegeven","showingNumAnnotations_plural":"{{number}} annotaties weergegeven","showZoomControls":"Toon zoomknoppen","sidebarPanelsNavigation":"Zijbalk panelen navigatie","single":"Enkel","startHere":"Begin Hier","suggestSearch":"Zoek in dit document naar \\"{{ query }}\\"","theme":"Thema","thumbnailList":"Lijst thumbnails","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Toon zijbalk","totalCollections":"{{count}} collectie","totalCollections_plural":"{{count}} collecties","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifests","tryAgain":"Probeer opnieuw","untitled":"[Zonder titel]","view":"Weergave","welcome":"Welkom in Mirador","window":"Venster: {{label}}","windowMenu":"Vensters- en miniatuurweergave","windowNavigation":"Navigatie venster","windowPluginButtons":"Opties","windowPluginMenu":"Vensteropties","workspace":"Workspace","workspaceFullScreen":"Volledig scherm","workspaceMenu":"Workspace instellingen","workspaceOptions":"Workspace opties","workspaceSelectionTitle":"Selecteer een workspace type","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}'),ke=JSON.parse('{"translation":{"aboutMirador":"O Projekcie Mirador","aboutThisItem":"O bieżącej pozycji","addedFromUrl":"(Dodano z URL)","addManifestUrl":"Lokalizacja zasobów","addManifestUrlHelp":"URL zasobów IIIF","addResource":"Dodaj zasoby","annotationCanvasLabel_1/1":"Pozycja: [{{label}}]","annotationCanvasLabel_1/2":"Lewo: [{{label}}]","annotationCanvasLabel_2/2":"Prawo: [{{label}}]","annotations":"Adnotacje","attribution":"Atrybucja","attributionTitle":"Prawa","authenticationFailed":"Uwierzytelnianie nie powiodło się.","authenticationRequired":"Do pełnego dostępu wymagane jest uwierzytelnienie","backToResults":"Powrót do wyników","book":"Książka","bottom":"Dół","cancel":"Anuluj","canvasIndex":"Indeks","changeTheme":"Zmień motyw","clearSearch":"wyczyść","close":"Zamknij","closeAddResourceForm":"Zamknij formularz","closeAddResourceMenu":"Zamknij listę zasobów","closeCompanionWindow":"Zamknij panel","closeWindow":"Zamknij okno","collapseSection":"Zwiń sekcję \\"{{section}}\\"","collapseSidePanel":"Zwiń panel boczny","collection":"Zbiór","itemList":"Lista pozycji","continue":"Kontynuuj","copy":"Kopiuj","currentItem":"Bieżąca pozycja","currentItem_1/1":"Bieżąca pozycja","currentItem_1/2":"Lewo","currentItem_2/2":"Prawo","dark":"Ciemny motyw","digitizedView":"Widok zdigitalizowany","dismiss":"Odrzuć","highlightAllAnnotations":"Podświetl wszystko","displayNoAnnotations":"Nie podświetlaj","downloadExport":"Eksportuj obszar roboczy","downloadExportWorkspace":"Eksportuj obszar roboczy","elastic":"Elastyczny","elasticDescription":"Swobodnie przesuwaj i dopasowuj okna w nieograniczonej przestrzeni roboczej. Okna mogą zachodzić na siebie.","emptyResourceList":"Twoja lista zasobów jest pusta","error":"Błąd","errorDialogConfirm":"OK","errorDialogTitle":"Wystąpił błąd","exitFullScreen":"Wyłącz tryb pełnoekranowy","expandSection":"Rozwiń sekcję \\"{{section}}\\"","expandSidePanel":"Rozwiń panel boczny","exportCopied":"Konfiguracja obszaru roboczego została skopiowana do schowka","fetchManifest":"Dodaj","fullScreen":"Pełny ekran","gallery":"Galeria","hideZoomControls":"Ukryj kontrolki powiększenia","iiif_homepage":"O tym zasobie","iiif_manifest":"Manifest IIIF","iiif_renderings":"Alternatywne formaty","iiif_seeAlso":"Zobacz też","import":"Importuj","importWorkspace":"Importuj obszar roboczy","importWorkspaceHint":"Wklej konfigurację Mirador 3 do zaimportowania","item":"Pozycja: {{label}}","jsError":"Szczegóły techniczne","jsStack":"{{ stack }}","language":"Język","layer_hide":"Ukryj warstwę","layer_move":"Przenieś warstwę","layer_opacity":"Krycie warstwy","layer_show":"Pokaż warstwę","layer_moveToTop":"Przenieś warstwę na górę","layers":"Warstwy","light":"Jasny motyw","links":"Linki","listAllOpenWindows":"Przejdź do okna","login":"Zaloguj","logout":"Wyloguj","manifestError":"Następujące zasoby nie mogą być dodane:","maximizeWindow":"Maksymalizuj okno","minimizeWindow":"Minimalizuj okno","mirador":"Mirador","miradorResources":"Zasoby Mirador","miradorViewer":"Przeglądarka Mirador","more":"więcej...","moreResults":"Więcej wyników","mosaic":"Mozaika","mosaicDescription":"Przesuwaj i zmieniaj rozmiary okien względem siebie, w widocznej ramce.","moveCompanionWindowToBottom":"Przesuń na dół","moveCompanionWindowToRight":"Przesuń w prawo","nextCanvas":"Następna pozycja","noItemSelected":"Nie wybrano pozycji","numItems":"{{number}} pozycja","numItems_plural":"{{number}} pozycje","off":"Wyłącz","openCompanionWindow_annotations":"Adnotacje","openCompanionWindow_attribution":"Prawa","openCompanionWindow_canvas":"Indeks","openCompanionWindow_info":"Informacje","openCompanionWindow_layers":"Warstwy","openCompanionWindow_search":"Szukaj","openInCompanionWindow":"Otwórz w oddzielnym panelu","openWindows":"Aktualnie otwarte okna","pagination":"{{current}} of {{total}}","position":"Pozycja","previewWindowTitle":"{{title}}","previousCanvas":"Poprzednia pozycja","related":"Powiązane","resource":"Zasoby","retry":"Spróbuj ponownie","right":"Prawo","rights":"Licencja","scroll":"Przewiń","searchInputLabel":"szukane słowa","searchNextResult":"Następny wynik","searchNoResults":"Nie znaleziono wyników","searchPreviousResult":"Poprzedni wynik","searchResultsRemaining":"Pozostało {{numLeft}}","searchSubmitAria":"Wyszukaj","searchTitle":"Wyszukaj","selectWorkspaceMenu":"Wybierz typ obszaru roboczego","showingNumAnnotations":"Wyświetlanie {{number}} adnotacji","showingNumAnnotations_plural":"Wyświetlanie {{number}} adnotacji","showCollection":"Pokaż zbiór","showZoomControls":"Pokaż kontrolki powiększenia","sidebarPanelsNavigation":"Nawigacja pasków panelu bocznego","single":"Pojedynczy","startHere":"Zacznij tutaj","suggestSearch":"Przeszukaj ten dokument pod kątem \\"{{ query }}\\"","tableOfContentsList":"Spis treści","theme":"Motyw","thumbnailList":"Lista miniatur","thumbnailNavigation":"Miniatury","thumbnails":"Miniatury","toggleWindowSideBar":"Przełącz panel boczny","totalCollections":"{{count}} zbiór","totalCollections_plural":"{{count}} zbiorów","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifestów","tryAgain":"Spróbuj ponownie","untitled":"[Bez nazwy]","view":"Widok","viewWorkspaceConfiguration":"Wyświetl konfigurację obszaru roboczego","welcome":"Witaj w Miradorze","window":"Okno: {{label}}","windowMenu":"Widoki okien i wyświetlanie miniatur","windowNavigation":"Nawigacja okna","windowPluginButtons":"Opcje","windowPluginMenu":"Opcje okna","workspace":"Obszar roboczy","workspaceNavigation":"Nawigacja obszaru roboczego","workspaceFullScreen":"Pełny ekran","workspaceMenu":"Ustawienia obszaru roboczego","workspaceOptions":"Opcje obszaru roboczego","workspaceSelectionTitle":"Wybierz typ obszaru roboczego","zoomIn":"Przybliż","zoomOut":"Oddal","zoomReset":"Zresetuj powiększenie"}}'),Pe=JSON.parse('{"translation":{"aboutThisItem":"Sobre esse item","addedFromUrl":"(Adicionado por URL)","addManifestUrl":"Localização do manifesto","addManifestUrlHelp":"URL do manifesto IIIF","addResource":"Adicionar conteúdo","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Esquerda: [{{label}}]","annotationCanvasLabel_2/2":"Direita: [{{label}}]","annotations":"Anotações","attribution":"Atribuições","attributionTitle":"Direitos","authenticationFailed":"Falha na autenticação.","authenticationRequired":"Autenticação necessária para acesso completo","backToResults":"Voltar aos resultados","book":"Livro","bottom":"Embaixo","cancel":"Cancelar","canvasIndex":"Índice","changeTheme":"Mudar tema","clearSearch":"limpar","closeAddResourceForm":"Fechar formulário","closeAddResourceMenu":"Fechar lista de conteúdo","closeCompanionWindow":"Fechar painel","closeWindow":"Fechar janela","collapseSection":"Suprimir seção \\"{{section}}\\"","collapseSidePanel":"Suprimir barra lateral","itemList":"Lista compacta","continue":"Continuar","copy":"Copiar","currentItem":"Item atual","currentItem_1/1":"Item atual","currentItem_1/2":"Esquerda","currentItem_2/2":"Direita","dark":"Tema escuro","dismiss":"Cancelar","highlightAllAnnotations":"Exibir todas","downloadExport":"Exportar área de trabalho","downloadExportWorkspace":"Exportar área de trabalho","elastic":"Elástico","elasticDescription":"Mova e redimensione janelas livremente numa área de trabalho ilimitada. Janelas podem se sobrepor.","emptyResourceList":"Sua lista de conteúdos está vazia","errorDialogConfirm":"OK","errorDialogTitle":"Um erro ocorreu","exitFullScreen":"Sair do modo tela cheia","expandSection":"Expandir seção \\"{{section}}\\"","expandSidePanel":"Expandir barra lateral","fetchManifest":"Adicionar","fullScreen":"Tela cheia","gallery":"Galeria","hideZoomControls":"Ocultar controles de zoom","iiif_homepage":"Sobre esse conteúdo","iiif_manifest":"Manifesto IIIF","iiif_renderings":"Outros formatos","iiif_seeAlso":"Veja também","import":"Importar","importWorkspace":"Importar área de trabalho","importWorkspaceHint":"Cole uma configuração do Mirador 3 para importar","item":"Item: {{label}}","language":"Idioma","light":"Tema claro","links":"Links","listAllOpenWindows":"Pular para janela","login":"Login","manifestError":"O conteúdo não pode ser adicionado:","maximizeWindow":"Maximizar janela","minimizeWindow":"Minimizar janela","mirador":"Mirador","miradorResources":"conteúdo Mirador","miradorViewer":"visualizador Mirador","more":"mais...","moreResults":"Mais resultados","mosaic":"Mosáico","mosaicDescription":"Mova e redimensione janelas em relação entre si, dentro de uma área visível (grid).","moveCompanionWindowToBottom":"Mover para baixo","moveCompanionWindowToRight":"Mover para direita","nextCanvas":"Próximo item","numItems":"{{number}} itens","off":"Desativado","openCompanionWindow_annotations":"Anotações","openCompanionWindow_attribution":"Direitos","openCompanionWindow_canvas":"Índice","openCompanionWindow_info":"Informações","openCompanionWindow_search":"Busca","openInCompanionWindow":"Abrir em janela separada","openWindows":"Janelas abertas","pagination":"{{current}} de {{total}}","position":"Posição","previewWindowTitle":"{{title}}","previousCanvas":"Item anterior","related":"Relacionado","resource":"Conteúdo","retry":"Tentar novamente","right":"Direita","rights":"Licenças","searchInputLabel":"termos de busca","searchNextResult":"Próximo resultado","searchNoResults":"Nenhum resultado encontrado","searchPreviousResult":"Resultado anterior","searchSubmitAria":"Realizar busca","searchTitle":"Busca","selectWorkspaceMenu":"Selecione um tipo de área de trabalho","showingNumAnnotations":"Mostrando {{number}} anotações","showZoomControls":"Mostrar controles de zoom","sidebarPanelsNavigation":"Navegação por paineis na barra lateral","single":"Individual","startHere":"Comece aqui","suggestSearch":"Procurar neste documento por \\"{{ query }}\\"","theme":"Tema","thumbnailList":"Lista de thumbnails","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Ver barra lateral","tryAgain":"Tente novamente","untitled":"[Sem título]","view":"Visualizações","welcome":"Bem-vindo ao Mirador","window":"Janela: {{label}}","windowMenu":"Opções de visualização de janelas e thumbnails","windowNavigation":"Navegação de janelas","windowPluginButtons":"Opções","windowPluginMenu":"Opções de janela","workspace":"Área de trabalho","workspaceFullScreen":"Tela cheia","workspaceMenu":"Configurações de área de trabalho","workspaceOptions":"Opções de área de trabalho","workspaceSelectionTitle":"Selecionar tipo de área de trabalho","zoomIn":"Mais zoom","zoomOut":"Menos zoom","zoomReset":"Zerar zoom"}}'),Ie=JSON.parse('{"translation":{"aboutMirador":"Informazioni su Mirador","aboutThisItem":"Informazioni sull\'oggetto","addManifestUrl":"URL della risorsa","addManifestUrlHelp":"L\'URL di una risorsa IIIF","addResource":"Aggiungi una risorsa","addedFromUrl":"(Aggiunto dall\'URL)","annotationCanvasLabel_1/1":"Oggetto: [{{label}}]","annotationCanvasLabel_1/2":"Sinistra: [{{label}}]","annotationCanvasLabel_2/2":"Destra: [{{label}}]","annotations":"Annotazioni","attribution":"Attribuzione","attributionTitle":"Diritti","authenticationFailed":"Autenticazione fallita.","authenticationRequired":"Autenticazione richiesta per l\'accesso completo","backToResults":"Torna ai risultati","book":"Libro","bottom":"Fondo","cancel":"Cancella","canvasIndex":"Indice","changeTheme":"Cambia tema","clearSearch":"pulisci","close":"Chiudi","closeAddResourceForm":"Chiudi il modulo","closeAddResourceMenu":"Chiudi la lista di risorse","closeCompanionWindow":"Chiudi il pannello","closeWindow":"Chiudi finestra","collapseSection":"Collassa la sezione \\"{{section}}\\"","collapseSidePanel":"Collassa la barra laterale","collection":"Collezione","continue":"Continua","copy":"Copia","currentItem":"Oggetto corrente","currentItem_1/1":"Oggetto corrente","currentItem_1/2":"Sinistra","currentItem_2/2":"Destra","dark":"Tema scuro","digitizedView":"Digitized view","dismiss":"Dismiss","displayNoAnnotations":"Nascondi evidenziazione","downloadExport":"Esporta il workspace","downloadExportWorkspace":"Esporta il workspace","elastic":"Elastico","elasticDescription":"Muovi e ridimensiona le finestre liberamente in un workspace illimitato. Le finestre possono sovrapporsi.","emptyResourceList":"La tua lista di risorse è vuota.","error":"Errore","errorDialogConfirm":"OK","errorDialogTitle":"Si è verificato un errore.","exitFullScreen":"Esci da schermo intero","expandSection":"Espandi la sezione \\"{{section}}\\"","expandSidePanel":"Espandi la barra laterale","exportCopied":"La configurazione del workspace è stata copiata nella tua clipboard","fetchManifest":"Aggiungi","fullScreen":"Schermo intero","gallery":"Galleria","hideZoomControls":"Nascondi i controlli di zoom","highlightAllAnnotations":"Evidenzia tutto","iiif_homepage":"Informazioni su questa risorsa","iiif_manifest":"IIIF manifest","iiif_renderings":"Formati alternativi","iiif_seeAlso":"Vedi anche","import":"Importa","importWorkspace":"Importa workspace","importWorkspaceHint":"Incolla una configurazione di Mirador 3 da importare","item":"Oggetto: {{label}}","itemList":"Lista compatta","jsError":"Dettagli tecnici","jsStack":"{{ stack }}","language":"Lingua","layer_hide":"Nascondi livello","layer_move":"Sposta livello","layer_moveToTop":"Sposta il livello in alto","layer_opacity":"Opacità del livello","layer_show":"Visualizza livello","layers":"Livelli","light":"Tema chiaro","links":"Link","listAllOpenWindows":"Vai alla finestra","login":"Entra","logout":"Esci","manifestError":"La risorsa non può essere aggiunta:","maximizeWindow":"Massimizza la finestra","minimizeWindow":"Minimizza la finestra","mirador":"Mirador","miradorResources":"Risorse Mirador","miradorViewer":"Visualizzatore Mirador","more":"ancora...","moreResults":"Più risultati","mosaic":"Mosaico","mosaicDescription":"Muovi e ridimensiona le finestre, tenendole all\'interno dell\'area visibile","moveCompanionWindowToBottom":"Sposta in fondo","moveCompanionWindowToRight":"Sposta a destra","nextCanvas":"Prossimo oggetto","noItemSelected":"Nessun oggetto selezionato","numItems":"{{number}} oggetti","numItems_plural":"{{number}} oggetti","off":"Off","openCompanionWindow_annotations":"Annotazioni","openCompanionWindow_attribution":"Diritti","openCompanionWindow_canvas":"Indice","openCompanionWindow_info":"Informazioni","openCompanionWindow_layers":"Livelli","openCompanionWindow_search":"Cerca","openInCompanionWindow":"Apri in un pannello separato","openWindows":"Finestre aperte in questo momento","pagination":"{{current}} di {{total}}","position":"Posizione","previewWindowTitle":"{{title}}","previousCanvas":"Previous item","related":"Contenuti collegati","resource":"Risorsa","retry":"Riprova","right":"Right","rights":"Licenza","scroll":"Scorri","searchInputLabel":"termini di ricerca","searchNextResult":"Prossimo risultato","searchNoResults":"Nessun risultato","searchPreviousResult":"Risultato precedente","searchResultsRemaining":"{{numLeft}} rimanenti","searchSubmitAria":"Cerca","searchTitle":"Cerca","selectWorkspaceMenu":"Selezione il tipo di workspace","showCollection":"Visualizza la collezione","showZoomControls":"Mostra i controlli di zoom","showingNumAnnotations":"Sto mostrando {{number}} annotazioni","showingNumAnnotations_plural":"Visualizzando {{number}} annotazioni","sidebarPanelsNavigation":"Navigazione dei pannelli della barra laterale","single":"Singolo","startHere":"Inizia qui","suggestSearch":"Cerca in questo documento: \\"{{ query }}\\"","tableOfContentsList":"Sommario","theme":"Tema","thumbnailList":"Lista thumbnail","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Apri/Chiudi la barra","totalCollections":"{{count}} collezione","totalCollections_plural":"{{count}} collezioni","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifests","tryAgain":"Riprova","untitled":"[senza titolo]","view":"Visualizza","viewWorkspaceConfiguration":"Visualizza la configurazione del workspace","welcome":"Benvenuto in Mirador","window":"Finestra: {{label}}","windowMenu":"Visualizzazioni finestra e display thumbnail","windowNavigation":"Navigazione finestra","windowPluginButtons":"Opzioni","windowPluginMenu":"Opzioni finestra","workspace":"Workspace","workspaceFullScreen":"Schermo intero","workspaceMenu":"Configurazioni Workspace","workspaceNavigation":"Navigazione del workspace","workspaceOptions":"Opzioni Workspace","workspaceSelectionTitle":"Seleziona il tipo di workspace","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}'),Re=JSON.parse('{"translation":{"aboutMirador":"О пројекту Mirador","aboutThisItem":"Опис","addedFromUrl":"(Додато са URL)","addManifestUrl":"Локација ресурса","addManifestUrlHelp":"URL IIIF ресурса","addResource":"Додајте ресурс","annotationCanvasLabel_1/1":"Страница: [{{label}}]","annotationCanvasLabel_1/2":"Лева: [{{label}}]","annotationCanvasLabel_2/2":"Десна: [{{label}}]","annotations":"Анотације","attribution":"Приступ","attributionTitle":"Права","authenticationFailed":"Неуспела аутентификација.","authenticationRequired":"За потпуни приступ неопходна је аутентификација","backToResults":"Повратак на резултате","book":"Књига","bottom":"На дну","cancel":"Одустаните","canvasIndex":"Индекс","changeTheme":"Промените тему","clearSearch":"обришите","close":"Затворите","closeAddResourceForm":"Затворите","closeAddResourceMenu":"Затворите листу ресурса","closeCompanionWindow":"Затворите панел","closeWindow":"Затворите приказ","collapseSection":"Сакријте \\"{{section}}\\" секцију","collapseSidePanel":"Сакријте","collection":"Колекција","itemList":"Листа страница","continue":"Наставите","copy":"Копирајте","currentItem":"Тренутна страница","currentItem_1/1":"Тренутна страница","currentItem_1/2":"Лева","currentItem_2/2":"Десна","dark":"Тамна тема","digitizedView":"Приказ дигиталног објекта","dismiss":"Откажите","highlightAllAnnotations":"Приказ свих","displayNoAnnotations":"Без приказа","downloadExport":"Извезите радно окружење","downloadExportWorkspace":"Извезите радно окружење","elastic":"Еластични","elasticDescription":"Слободно померајте и одредите величину приказа у неограниченом радном простору. Прикази могу бити већи од радног простора.","emptyResourceList":"Ваша листа ресурса је празна","error":"Грешка","errorDialogConfirm":"OK","errorDialogTitle":"Дошло је до грешке","exitFullScreen":"Изађите из приказа преко целог екрана","expandSection":"Проширите \\"{{section}}\\" секцију","expandSidePanel":"Прикажите","exportCopied":"Конфигурација радног окружења је копирана у привремену меморију","fetchManifest":"Додајте","fullScreen":"Приказ у пуном екрану","gallery":"Галерија","hideZoomControls":"Сакријте контроле зума","iiif_homepage":"О ресурсу","iiif_manifest":"IIIF manifest","iiif_renderings":"Додатни формати","iiif_seeAlso":"Погледајте и","import":"Увезите","importWorkspace":"Увезите радно окружење","importWorkspaceHint":"Убаците конфигурацију Mirador 3 како би могли да је увезете","item":"Страница: {{label}}","jsError":"Технички детаљи","jsStack":"{{ stack }}","language":"Језик приказа","layer_hide":"Сакријте слој","layer_move":"Померите слој","layer_opacity":"Видљивост слоја","layer_show":"Приказ слоја","layer_moveToTop":"Померите слој на врх","layers":"Слојеви","light":"Светла тема","links":"Линкови","listAllOpenWindows":"Идите на приказ","login":"Улогујте се","logout":"Излогујте се","manifestError":"Ресурс се не може додати","maximizeWindow":"Максималан приказ","minimizeWindow":"Минималан приказ","mirador":"Mirador","miradorResources":"Mirador ресурси","miradorViewer":"Mirador прегледач","more":"још...","moreResults":"Још резултата","mosaic":"Мозаик","mosaicDescription":"Померајте и одредите величину приказа који су у међусобној релацији, унутар видљивог оквира.","moveCompanionWindowToBottom":"Пребаците на дно","moveCompanionWindowToRight":"Померите у десну страну","nextCanvas":"Следећа","noItemSelected":"Нема изабраних објеката","numItems":"{{number}} страница/це","off":"Искључене","openCompanionWindow_annotations":"Анотације","openCompanionWindow_attribution":"Права","openCompanionWindow_canvas":"Индекс","openCompanionWindow_info":"Информације","openCompanionWindow_layers":"Слојеви","openCompanionWindow_search":"Претрага","openInCompanionWindow":"Отворите у засебном панелу","openWindows":"Тренутно отворени прикази","pagination":"{{current}} од {{total}}","position":"Позиција","previewWindowTitle":"{{title}}","previousCanvas":"Претходна","related":"Релације","resource":"Ресурс","retry":"Покушајте поново","right":"Десно","rights":"Лиценца","scroll":"Померајте","searchInputLabel":"претражите појам","searchNextResult":"Следећи резултат","searchNoResults":"Тражени појам није пронађен","searchPreviousResult":"Претходни резултат","searchSubmitAria":"Претражите","searchTitle":"Претрага","selectWorkspaceMenu":"Изаберите тип радног окружења","showingNumAnnotations":"Приказ {{number}} анотација/је","showCollection":"Прикажи колекцију","showZoomControls":"Приказ контрола зума","sidebarPanelsNavigation":"Навигација сајдбар панела","single":"Појединачно","startHere":"Започните","suggestSearch":"Пронађите појам \\"{{ query }}\\" у овом документу","tableOfContentsList":"Садржај","theme":"Тема","thumbnailList":"Листа сличица","thumbnailNavigation":"Сличице","thumbnails":"Сличице","toggleWindowSideBar":"Сајдбар","totalCollections":"{{count}} колекција/е","totalManifests":"{{count}} објек(а)та","tryAgain":"Покушајте поново","untitled":"[Без наслова]","view":"Преглед","welcome":"Добродошли у прегледач Mirador","window":"Приказ: {{label}}","windowMenu":"Изглед прегледа и позиција сличица","windowNavigation":"Навигација приказа","windowPluginButtons":"Опције","windowPluginMenu":"Опције приказа","workspace":"Радни простор","workspaceFullScreen":"Приказ преко целог екрана","workspaceMenu":"Уређивање радног простора","workspaceOptions":"Опције радног окружења","workspaceSelectionTitle":"Изаберите тип радног окружења","zoomIn":"Увећајте","zoomOut":"Умањите","zoomReset":"Ресет зума"}}'),je=JSON.parse('{"translation":{"aboutMirador":"Om Projekt Mirador","aboutThisItem":"Om det här objektet","addedFromUrl":"(Tillagd från URL)","addManifestUrl":"Webbadress till samling eller manifest","addManifestUrlHelp":"URL till en IIIF-resurs","addResource":"Lägg till resurs","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Vänster: [{{label}}]","annotationCanvasLabel_2/2":"Höger: [{{label}}]","annotations":"Noteringar","attribution":"Tillskrivning","attributionTitle":"Rättigheter","authenticationFailed":"Autentisering misslyckades.","authenticationRequired":"Autentisering krävs för full åtkomst","backToResults":"Tillbaka till resultat","book":"Bok","bottom":"Nederkant","cancel":"Avbryt","canvasIndex":"Index","changeTheme":"Ändra tema","clearSearch":"Ta bort sökning","close":"Stäng","closeAddResourceForm":"Stäng formulär","closeAddResourceMenu":"Stäng resurslista","closeCompanionWindow":"Stäng panel","closeWindow":"Stäng fönster","collapseSection":"Stäng sektionen \\"{{section}}\\"","collapseSidePanel":"Stäng sidofält","collection":"Samling","itemList":"Objektlista","continue":"Fortsätt","copy":"Kopiera","currentItem":"Aktuellt objekt","currentItem_1/1":"Aktuellt objekt","currentItem_1/2":"Vänster","currentItem_2/2":"Höger","dark":"Mörkt tema","digitizedView":"Digitaliserad vy","dismiss":"Stäng","highlightAllAnnotations":"Markera alla","displayNoAnnotations":"Avmarkera alla","downloadExport":"Exportera arbetsyta","downloadExportWorkspace":"Exportera arbetsyta","elastic":"Elastisk","elasticDescription":"Flytta och ändra storlek på fönster fritt i en obegränsad arbetsyta. Fönster kan överlappa.","emptyResourceList":"Din resurslista är tom","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"Ett problem uppstod","exitFullScreen":"Lämna helskärmsläge","expandSection":"Expandera sektionen \\"{{section}}\\"","expandSidePanel":"Expandera sidofält","exportCopied":"Konfiguration av arbetsytan har kopierats till dina urklipp","fetchManifest":"Lägg till","fullScreen":"Helskärmsläge","gallery":"Galleri","hideZoomControls":"Dölj zoomkontroller","iiif_homepage":"Om den här resursen","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternativa format","iiif_seeAlso":"Se även","import":"Importera","importWorkspace":"Importera arbetsyta","importWorkspaceHint":"Klistra in en Mirador 3 konfiguration att importera","item":"Objekt: {{label}}","jsError":"Tekniska detaljer","jsStack":"{{ stack }}","language":"Språk","layer_hide":"Dölj lager","layer_move":"Flytta lager","layer_opacity":"Lageropacitet","layer_show":"Visa lager","layer_moveToTop":"Flytta lager till toppen","layers":"Lager","light":"Ljust tema","links":"Länkar","listAllOpenWindows":"Gå till fönster","login":"Logga in","logout":"Logga ut","manifestError":"Resursen kan inte läggas till:","maximizeWindow":"Maximera fönster","minimizeWindow":"Minimera fönster","mirador":"Mirador","miradorResources":"Miradorresurser","miradorViewer":"Mirador bildvisare","more":"mer...","moreResults":"Fler resultat","mosaic":"Mosaik","mosaicDescription":"Flytta och ändra storlek på fönster i relation till varandra, innanför den synliga ramen.","moveCompanionWindowToBottom":"Flytta till botten","moveCompanionWindowToRight":"Flytta till höger","nextCanvas":"Nästa objekt","noItemSelected":"Inga valda objekt","numItems":"{{number}} objekt","off":"Av","openCompanionWindow_annotations":"Noteringar","openCompanionWindow_attribution":"Rättigheter","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Information","openCompanionWindow_layers":"Lager","openCompanionWindow_search":"Sök","openInCompanionWindow":"Öppna i separat panel","openWindows":"Öppna fönster","pagination":"{{current}} av {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Föregående objekt","related":"Relaterat","resource":"Resurs","retry":"Försök igen","right":"Till höger","rights":"Licens","scroll":"Scrolla","searchInputLabel":"Sökord","searchNextResult":"Nästa resultat","searchNoResults":"Inga resultat hittades","searchPreviousResult":"Föregående resultat","searchResultsRemaining":"{{numLeft}} kvar","searchSubmitAria":"Sök","searchTitle":"Sök","selectWorkspaceMenu":"Välj typ av arbetsyta","showingNumAnnotations":"Visar {{number}} noteringar","showCollection":"Visa samling","showZoomControls":"Visa zoomkontroller","sidebarPanelsNavigation":"Sidofältspaneler navigering","single":"En och en","startHere":"Börja här","suggestSearch":"Sök i detta dokument efter \\"{{ query }}\\"","tableOfContentsList":"Innehållsförteckning","theme":"Tema","thumbnailList":"Miniatyrlista","thumbnailNavigation":"Miniatyrer","thumbnails":"Miniatyrer","toggleWindowSideBar":"Visa/dölj sidofält","totalCollections":"{{count}} samlingar","totalManifests":"{{count}} manifest","tryAgain":"Försök igen","untitled":"[namnlös]","view":"Vy","welcome":"Välkommen till Mirador","window":"Fönster: {{label}}","windowMenu":"Fönstervyer & miniatyrdisplay","windowNavigation":"Fönsternavigation","windowPluginButtons":"Inställningar","windowPluginMenu":"Fönsterinställningar","workspace":"Arbetsyta","workspaceNavigation":"Navigera i arbetsyta","workspaceFullScreen":"Helskärmsläge","workspaceMenu":"Inställningar för arbetsyta","workspaceOptions":"Fler val för arbetsyta","workspaceSelectionTitle":"Välj typ av arbetsyta","zoomIn":"Zooma in","zoomOut":"Zooma ut","zoomReset":"Återställ zoom"}}'),De=JSON.parse('{"translation":{"aboutMirador":"Apie Project Mirador","aboutThisItem":"Apie šį įrašą","addedFromUrl":"(Pridėta naudojant URL)","addManifestUrl":"Šaltinio adresas","addManifestUrlHelp":"Nuoroda į IIIF šaltinį","addResource":"Pridėti šaltinį","annotationCanvasLabel_1/1":"Įrašas: [{{label}}]","annotationCanvasLabel_1/2":"Kairė: [{{label}}]","annotationCanvasLabel_2/2":"Dešinė: [{{label}}]","annotations":"Anotacijos","attribution":"Priskyrimas","attributionTitle":"Teisės","authenticationFailed":"Autentifikavimo klaida.","authenticationRequired":"Pilnai prieigai būtina autentifikacija","backToResults":"Grįžti į rezultatus","book":"Knyga","bottom":"Apačia","cancel":"Atšaukti","canvasIndex":"Indeksas","changeTheme":"Keisti temą","clearSearch":"valyti","closeAddResourceForm":"Uždaryti paraišką","closeAddResourceMenu":"Uždaryti šaltinių sąrašą","closeCompanionWindow":"Uždaryti panelę","closeWindow":"Uždaryti langą","collapseSection":"Suskleisti \\"{{section}}\\" sekciją","collapseSidePanel":"Suskleisti šoninę juostą","itemList":"Įrašų sąrašas","continue":"Tęsti","copy":"Kopijuoti","currentItem":"Dabartinis įrašas","currentItem_1/1":"Dabartinis įrašas","currentItem_1/2":"Kairė","currentItem_2/2":"Dešinė","dark":"Tamsi tema","digitizedView":"Skaitmenintas vaizdas","dismiss":"Atmesti","highlightAllAnnotations":"Paryškinti viską","displayNoAnnotations":"Slėpti viską","downloadExport":"Išsaugoti darbalaukį","downloadExportWorkspace":"Išsaugoti darbalaukį","elastic":"Lankstus","elasticDescription":"Langų dydis ir vieta gali būti laisvai valdomi. Langai gali persidengti.","emptyResourceList":"Jūsų šaltinių sąrašas yra tuščias","error":"Klaida","errorDialogConfirm":"Gerai","errorDialogTitle":"Įvyko klaida","exitFullScreen":"Išjungti pilno ekrano režimą","expandSection":"Išplėsti \\"{{section}}\\" sekciją","expandSidePanel":"Išplėsti šoninę juostą","exportCopied":"Darbalaukio nustatymai nukopijuoti","fetchManifest":"Pridėti","fullScreen":"Pilnas ekranas","gallery":"Galerija","hideZoomControls":"Slėpti priartinimo valdymą","iiif_homepage":"Apie šį šaltinį","iiif_manifest":"IIIF manifestas","iiif_renderings":"Kiti formatai","iiif_seeAlso":"Susiję","import":"Įkelti","importWorkspace":"Įkelti darbalaukį","importWorkspaceHint":"Įterpkite Mirador 3 nustatymus įkėlimui","item":"Įrašas: {{label}}","jsError":"Techninė informacija","jsStack":"{{ stack }}","language":"Kalba","layer_hide":"Slėpti sluoksnį","layer_move":"Perkelti sluoksnį","layer_opacity":"Sluoksnio nepermatomumas","layer_show":"Rodyti sluoksnį","layer_moveToTop":"Perkelti sluoksnį į viršų","layers":"Sluoksniai","light":"Šviesi tema","links":"Nuorodos","listAllOpenWindows":"Rodyti aktyvius langus","login":"Prisijungti","logout":"Atsijungti","manifestError":"Šaltinis negali būti pridėtas:","maximizeWindow":"Išdidinti langą","minimizeWindow":"Sumažinti langą","mirador":"Mirador","miradorResources":"Mirador šaltiniai","miradorViewer":"Mirador žiūryklė","more":"daugiau...","moreResults":"Daugiau rezultatų","mosaic":"Mosaic","mosaicDescription":"Langų dydžio ir pozicijos keitimai apribojami ekrano erdvėje.","moveCompanionWindowToBottom":"Perkelti į apačią","moveCompanionWindowToRight":"Perkelti į dešinę","nextCanvas":"Kitas įrašas","numItems":"{{number}} įrašas (-ai)","off":"Išjungti","openCompanionWindow_annotations":"Anotacijos","openCompanionWindow_attribution":"Teisės","openCompanionWindow_canvas":"Indeksas","openCompanionWindow_info":"Informacija","openCompanionWindow_layers":"Sluoksniai","openCompanionWindow_search":"Paieška","openInCompanionWindow":"Atidaryti kaip naują panelę","openWindows":"Aktyvųs langai","pagination":"{{current}} iš {{total}}","position":"Pozicija","previewWindowTitle":"{{title}}","previousCanvas":"Buvęs įrašas","related":"Susiję","resource":"Šaltinis","retry":"Pabandyti iš naujo","right":"Dešinė","rights":"Teisės","scroll":"Paslinkti","searchInputLabel":"paieškos terminas","searchNextResult":"Kitas rezultatas","searchNoResults":"Nėra rezultatų","searchPreviousResult":"Buvęs rezultatas","searchSubmitAria":"Pateikti paieškos užklausą","searchTitle":"Ieškoti","selectWorkspaceMenu":"Pasirinkti darbalaukio tipą","showingNumAnnotations":"Rodoma {{number}} anotacija (-os)","showCollection":"Rodyti kolekciją","showZoomControls":"Rodyti priartinimo valdymą","sidebarPanelsNavigation":"Šoninės juostos valdymas","single":"Atskiras","startHere":"Pradėkite čia","suggestSearch":"Ieškoti \\"{{ query }}\\" visame documente","tableOfContentsList":"Turinys","theme":"Tema","thumbnailList":"Miniatiūrų sąrašas","thumbnailNavigation":"Miniatiūros","thumbnails":"Miniatiūros","toggleWindowSideBar":"Perjungti šoninę juostą","totalCollections":"{{count}} kolekcija (-os)","totalManifests":"{{count}} šaltinis (-iai)","tryAgain":"Bandykite dar kartą","untitled":"[Be pavadinimo]","view":"Žiūrėti","welcome":"Sveiki atvykę į Mirador","window":"Langas: {{label}}","windowMenu":"Langų & miniatiūrų atvaizdavimas","windowNavigation":"Langų valdymas","windowPluginButtons":"Pasirinkimai","windowPluginMenu":"Langų pasirinkimai","workspace":"Darbalaukis","workspaceNavigation":"Darbalaukio valdymas","workspaceFullScreen":"Pilnas ekranas","workspaceMenu":"Darbalaukio nustatymai","workspaceOptions":"Darbalaukio pasirinkimai","workspaceSelectionTitle":"Pasirinkite darbalaukio tipą","zoomIn":"Priartinti","zoomOut":"Atitolinti","zoomReset":"Atstatyti priartinimą"}}'),Ne=JSON.parse('{"translation":{"aboutMirador":"Về dự án Mirador","aboutThisItem":"Về khoản mục này","addedFromUrl":"(Được thêm từ URL)","addManifestUrl":"Vị trí tài nguyên","addManifestUrlHelp":"URL của tài nguyên IIIF","addResource":"Bổ sung tài nguyên","annotationCanvasLabel_1/1":"Khoản mục: [{{label}}]","annotationCanvasLabel_1/2":"Trái: [{{label}}]","annotationCanvasLabel_2/2":"Phải: [{{label}}]","annotations":"Chú giải","attribution":"Quyền hạn","attributionTitle":"Quyền","authenticationFailed":"Xác thực thất bại.","authenticationRequired":"Xác thực được yêu cầu cho truy nhập đầy đủ","backToResults":"Trở lại kết quả","book":"Sách","bottom":"Đáy","cancel":"Huỷ bỏ","canvasIndex":"Chỉ mục","changeTheme":"Đổi chủ đề","clearSearch":"xoá","close":"Đóng","closeAddResourceForm":"Đóng mẫu","closeAddResourceMenu":"Đóng danh sách tài nguyên","closeCompanionWindow":"Đóng panel","closeWindow":"Đóng cửa sổ","collapseSection":"Co sập {{section}} mục","collapseSidePanel":"Co sập thanh bên","collection":"Tuyển tập","itemList":"Danh sách khoản mục","continue":"Tiếp tục","copy":"Sao","currentItem":"Khoản mục hiện thời","currentItem_1/1":"Khoản mục hiện thời","currentItem_1/2":"Trái","currentItem_2/2":"Phải","dark":"Chủ đề tối","digitizedView":"Cái nhìn số hoá","dismiss":"Bác bỏ","highlightAllAnnotations":"Làm nổi bật tất","displayNoAnnotations":"Không làm nổi bật","downloadExport":"Vùng xuất khẩu","downloadExportWorkspace":"Vùng xuất khẩu","elastic":"Co giãn","elasticDescription":"Di chuyển và định cỡ cửa sổ tự do trong vùng vô giới hạn. Cửa sổ có thể chèn lấp.","emptyResourceList":"Danh sách tài nguyên của bạn là trống","error":"Lỗi","errorDialogConfirm":"OK","errorDialogTitle":"Lỗi đã xuất hiện","exitFullScreen":"Ra khỏi toàn màn hình","expandSection":"Mở rộng {{section}} mục","expandSidePanel":"Mở rộng thanh bên","exportCopied":"Cấu hình vùng làm việc được sao vào bảng đệm của bạn","fetchManifest":"Thêm","fullScreen":"Toàn màn hình","gallery":"Phòng tranh","hideZoomControls":"Ẩn điều khiển thu phóng","iiif_homepage":"Về tài nguyên này","iiif_manifest":"Bản kê IIIF","iiif_renderings":"Dạng thức luân phiên","iiif_seeAlso":"Cũng xem","import":"Nhập khẩu","importWorkspace":"Vùng nhập khẩu","importWorkspaceHint":"Dán cấu hình Mirador 3 để được nhập khẩu","item":"Khoản mục: {{label}}","jsError":"Chi tiết kĩ thuật","jsStack":"{{ stack }}","language":"Ngôn ngữ","layer_hide":"Giấu tầng","layer_move":"Chuyển tầng","layer_opacity":"Làm mờ tầng","layer_show":"Hiện tầng","layer_moveToTop":"Chuyển tầng lên đỉnh","layers":"Tầng","light":"Chủ đề sáng","links":"Móc nối","listAllOpenWindows":"Nhảy tới cửa sổ","login":"Đăng nhập","logout":"Đăng xuất","manifestError":"Tài nguyên không thể được bổ sung:","maximizeWindow":"Cực đại cửa sổ","minimizeWindow":"Cực tiểu cửa sổ","mirador":"Mirador","miradorResources":"Tài nguyên Mirador","miradorViewer":"Bộ xem Mirador","more":"thêm...","moreResults":"Thêm kết quả","mosaic":"Mosaic","mosaicDescription":"Di chuyển và định cỡ cửa sổ trong quan hệ lẫn nhau, bên trong khung thấy được.","moveCompanionWindowToBottom":"Chuyển tới đáy","moveCompanionWindowToRight":"Chuyển sang phải","nextCanvas":"Khoản mục tiếp","noItemSelected":"Không khoản mục nào được chọn","numItems":"{{number}} khoản mục","off":"Off","openCompanionWindow_annotations":"Chú giải","openCompanionWindow_attribution":"Quyền","openCompanionWindow_canvas":"Chỉ mục","openCompanionWindow_info":"Thông tin","openCompanionWindow_layers":"Tầng","openCompanionWindow_search":"Tìm","openInCompanionWindow":"Mở trong ngăn tách rời","openWindows":"Cửa sổ mở hiện thời","pagination":"{{current}} trong {{total}}","position":"Vị trí","previewWindowTitle":"{{title}}","previousCanvas":"Khoản mục trước","related":"Có liên quan","resource":"Tài nguyên","retry":"Thử lại","right":"Quyền","rights":"Cấp phép","scroll":"Cuộn","searchInputLabel":"Từ tìm kiếm","searchNextResult":"Kết quả tiếp","searchNoResults":"Không tìm được kết quả nào","searchPreviousResult":"Kết quả trước","searchSubmitAria":"Đệ trình việc tìm","searchTitle":"Tìm","selectWorkspaceMenu":"Chọn kiểu vùng làm việc","showingNumAnnotations":"Hiện {{number}} chú giải","showCollection":"Hiện bộ sưu tập","showZoomControls":"Hiện kiểm soát thu phóng","sidebarPanelsNavigation":"Dẫn lái ngăn thanh bên","single":"Chỉ một","startHere":"Bắt đầu ở đây","suggestSearch":"Tìm tài liệu này cho \\"{{ query }}\\"","tableOfContentsList":"Mục lục","theme":"Chủ đề","thumbnailList":"Danh sách ảnh thu nhỏ","thumbnailNavigation":"Ảnh thu nhỏ","thumbnails":"Ảnh thu nhỏ","toggleWindowSideBar":"chốt thanh bên","totalCollections":"{{count}} bộ sưu tập","totalManifests":"{{count}} bản kê","tryAgain":"Thử lại","untitled":"[Untitled]","view":"Xem","welcome":"Chào mừng bạn tới Mirador","window":"Cửa sổ: {{label}}","windowMenu":"Xem cửa sổ & hiển thị ảnh thu nhỏ","windowNavigation":"Dẫn lái cửa sổ","windowPluginButtons":"Tuỳ chọn","windowPluginMenu":"Tuỳ chọn cửa sổ","workspace":"Vùng làm việc","workspaceNavigation":"Dẫn lái vùng làm việc","workspaceFullScreen":"Toàn màn hình","workspaceMenu":"Thiết đặt vùng làm việc","workspaceOptions":"Tuỳ chọn vùng làm việc","workspaceSelectionTitle":"Chọn kiểu vùng làm việc","zoomIn":"Thu nhỏ","zoomOut":"Phóng to","zoomReset":"Đặt lại thu phóng"}}'),Me=JSON.parse('{"translation":{"aboutMirador":"Om Projekt Mirador","aboutThisItem":"Om dette objektet","addedFromUrl":"(Lagt til fra URL)","addManifestUrl":"Nettadresse til samling eller manifest","addManifestUrlHelp":"URL til en IIIF-ressurs","addResource":"Legg til ressurs","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Venstre: [{{label}}]","annotationCanvasLabel_2/2":"Høyre: [{{label}}]","annotations":"Annoteringer","attribution":"Tilskrivelse","attributionTitle":"Rettigheter","authenticationFailed":"Autentiseringen feilet.","authenticationRequired":"Autentisering kreves for full tilgang","backToResults":"Tilbake til resultat","book":"Bok","bottom":"Nederst","cancel":"Avbryt","canvasIndex":"Index","changeTheme":"Skift tema","clearSearch":"Fjern søket","close":"Lukk","closeAddResourceForm":"Lukk skjemaet","closeAddResourceMenu":"Lukk ressurslisten","closeCompanionWindow":"Lukk panelet","closeWindow":"Lukk vinduet","collapseSection":"Lukk seksjonen \\"{{section}}\\"","collapseSidePanel":"Lukk sidemenyen","collection":"Samling","itemList":"Objektliste","continue":"Fortsett","copy":"Kopiere","currentItem":"Valgt objekt","currentItem_1/1":"Valgt objekt","currentItem_1/2":"Venstre","currentItem_2/2":"Høyre","dark":"Mørkt tema","digitizedView":"Digitalisert visning","dismiss":"Lukk","highlightAllAnnotations":"Markér alle","displayNoAnnotations":"Avmarkér alle","downloadExport":"Eksportér arbeidsområde","downloadExportWorkspace":"Eksportér arbeidsområde","elastic":"Elastisk","elasticDescription":"Flytt og endre størrelsen på vinduet fritt i et ubegrenset arbeidsområde. Vindu kan overlappe.","emptyResourceList":"Din resursliste er tom","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"Et problem oppstod","exitFullScreen":"Forlat fullskjermsvisning","expandSection":"Ekspandér seksjonen \\"{{section}}\\"","expandSidePanel":"Ekspandér sidemenyen","exportCopied":"Konfiguration av arbeidsområdet ble kopiert til din utklippstavle","fetchManifest":"Legg til","fullScreen":"Fullskjermsvisning","gallery":"Galleri","hideZoomControls":"Skjul zoomkontroll","iiif_homepage":"Om denne ressursen","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternativt format","iiif_seeAlso":"Se også","import":"Importér","importWorkspace":"Importér arbeidsområde","importWorkspaceHint":"Lim inn en Mirador 3 konfigurasjon for import","item":"Objekt: {{label}}","jsError":"Tekniske detaljer","jsStack":"{{ stack }}","language":"Språk","layer_hide":"Skjul lag","layer_move":"Flytt lag","layer_opacity":"Lag-gjennomsiktighet","layer_show":"Vis lag","layer_moveToTop":"Flytt laget øverst","layers":"Lag","light":"Lyst tema","links":"Lenker","listAllOpenWindows":"Gå til vindu","login":"Logg inn","logout":"Logg ut","manifestError":"Ressursen kan ikke legges til:","maximizeWindow":"Maksimér vinduet","minimizeWindow":"Minimér vinduet","mirador":"Mirador","miradorResources":"Miradorressurser","miradorViewer":"Mirador bildeviser","more":"mer...","moreResults":"Flere resultat","mosaic":"Mosaik","mosaicDescription":"Flytt og endre størrelse på vinduet i relasjon til hverandre, innenfor den synlige rammen.","moveCompanionWindowToBottom":"Flytt til bunnen","moveCompanionWindowToRight":"Flytt til høyre","nextCanvas":"Neste objekt","noItemSelected":"Ingen valgte objekt","numItems":"{{number}} objekt","numItems_plural":"{{number}} objekter","off":"Av","openCompanionWindow_annotations":"Annoteringer","openCompanionWindow_attribution":"Rettigheter","openCompanionWindow_canvas":"Indeks","openCompanionWindow_info":"Informasjon","openCompanionWindow_layers":"Lag","openCompanionWindow_search":"Søk","openInCompanionWindow":"Åpne i eget panel","openWindows":"Åpne vindu","pagination":"{{current}} av {{total}}","position":"Posisjon","previewWindowTitle":"{{title}}","previousCanvas":"Forrige objekt","related":"Relatert","resource":"Ressurs","retry":"Forsøk igjen","right":"Til høyre","rights":"Lisens","scroll":"Bla","searchInputLabel":"Søkeord","searchNextResult":"Neste resultat","searchNoResults":"Ingen treff","searchPreviousResult":"Forrige resultat","searchResultsRemaining":"{{numLeft}} igjen","searchSubmitAria":"Søk","searchTitle":"Søk","selectWorkspaceMenu":"Velg arbeidsområde-type","showingNumAnnotations":"Vis {{number}} annotasjon","showingNumAnnotations_plural":"Vis {{number}} annotasjoner","showCollection":"Vis samling","showZoomControls":"Vis zoomkontroll","sidebarPanelsNavigation":"Sidemeny-panel navigering","single":"En og en","startHere":"Start her","suggestSearch":"Søk etter \\"{{ query }}\\" i dette dokument","tableOfContentsList":"Innholdsfortegnelse","theme":"Tema","thumbnailList":"Miniatyrliste","thumbnailNavigation":"Miniatyrer","thumbnails":"Miniatyrer","toggleWindowSideBar":"Vis/skjul sidemenyen","totalCollections":"{{count}} samling","totalCollections_plural":"{{count}} samlinger","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifester","tryAgain":"Forsøk igjen","untitled":"[uten tittel]","view":"Visning","viewWorkspaceConfiguration":"Vis konfigurasjon av arbeidsområde.","welcome":"Velkommen til Mirador","window":"Vindu: {{label}}","windowMenu":"Vindusvisning & miniatyrvisning","windowNavigation":"Vindusnavigasjon","windowPluginButtons":"Innstillinger","windowPluginMenu":"Vindusinnstillinger","workspace":"Arbeidsområde","workspaceNavigation":"Navigasjon i arbeidsområdet","workspaceFullScreen":"Fullskjermsvisning","workspaceMenu":"Innstillinger for arbeidsområdet","workspaceOptions":"Flere valg for arbeidsområdet","workspaceSelectionTitle":"Velg arbeidsområde-type","zoomIn":"Zoom inn","zoomOut":"Zoom ut","zoomReset":"Tilbakestill zoom"}}');function Le(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 ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t){return We=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},We(e,t)}function Be(e){return Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Be(e)}var Fe=function(e){var t=e.dndManager,r=e.children;return!1===t?r:void 0===t?n.createElement(I.Q,{backend:j.default,options:D.default},r):n.createElement(R.M.Provider,{value:t},r)},He=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&We(e,t)}(s,e);var t,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Be(o);if(i){var n=Be(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function s(e){var t,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).i18n=(n={ar:we,de:Ee,en:xe,fr:Ae,it:Ie,ja:_e,kr:Ce,lt:De,"nb-NO":Me,nl:Te,pl:ke,"pt-BR":Pe,sr:Re,sv:je,vi:Ne,"zh-CN":Oe,"zh-TW":Se},(r=be.createInstance()).use(O.r9).init({fallbackLng:"en",interpolation:{escapeValue:!1},lng:"en",resources:n}),r),t}return t=s,(r=[{key:"componentDidMount",value:function(){var e=this.props.language;this.i18n.changeLanguage(e)}},{key:"componentDidUpdate",value:function(e){var t=this.props.language;e.language!==t&&this.i18n.changeLanguage(t)}},{key:"render",value:function(){var e,t=this,r=this.props,o=r.children,i=r.createGenerateClassNameOptions,a=r.isFullscreenEnabled,s=r.setWorkspaceFullscreen,l=r.theme,c=r.translations,u=r.dndManager,d=(0,_.A)(i);return Object.keys(c).forEach((function(e){t.i18n.addResourceBundle(e,"translation",c[e],!0,!0)})),n.createElement(x.A,{enabled:a,onChange:s},n.createElement(S,{i18n:this.i18n},n.createElement(A.Ai,null,n.createElement(C.A,{theme:(0,T.D)(l)},n.createElement(k.Ay,{jss:(0,N.vt)({plugins:[].concat((e=(0,P.A)().plugins,function(e){if(Array.isArray(e))return Le(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){if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Le(e,t):void 0}}(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.")}()),[(0,M.A)()])}),generateClassName:d},n.createElement(Fe,{dndManager:u},o))))))}}])&&ze(t.prototype,r),s}(n.Component);He.defaultProps={children:null,createGenerateClassNameOptions:{},dndManager:void 0,isFullscreenEnabled:!1};var Ve={setWorkspaceFullscreen:b.Vs};const Ue=(0,v.Zz)((0,o.Ng)((function(e){return{createGenerateClassNameOptions:(0,w.zj)(e).createGenerateClassNameOptions,isFullscreenEnabled:(0,E.H)(e),language:(0,w.zj)(e).language,theme:(0,w.O4)(e),translations:(0,w.zj)(e).translations}}),Ve),(0,y.h)("AppProviders"))(He);function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qe(e,t){return qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qe(e,t)}function $e(e){return $e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$e(e)}var Ke=(0,n.lazy)((function(){return Promise.resolve().then(__webpack_require__.bind(__webpack_require__,49073))})),Ze=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qe(e,t)}(s,e);var t,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$e(o);if(i){var n=$e(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){var e=this.props,t=e.dndManager,r=e.plugins;return n.createElement(g,{plugins:r},n.createElement(Ue,{dndManager:t},n.createElement(n.Suspense,{fallback:n.createElement("div",null)},n.createElement(Ke,null))))}}])&&Ge(t.prototype,r),s}(n.Component);Ze.defaultProps={dndManager:void 0,plugins:[]};const Xe=Ze;var Ye=__webpack_require__(14744),Qe=__webpack_require__.n(Ye),Je=__webpack_require__(85015),et=__webpack_require__.n(Je),tt=__webpack_require__(62216),nt=__webpack_require__.n(tt),rt=__webpack_require__(1882),ot=__webpack_require__.n(rt),it=__webpack_require__(23805),at=__webpack_require__.n(it),st=__webpack_require__(5187),lt=__webpack_require__.n(st),ct=__webpack_require__(35880),ut=__webpack_require__.n(ct),dt=function(e){return[ft,pt,ht,mt,gt,vt,yt].every((function(t){return t(e)}))},ft=function(e){return at()(e)},pt=function(e){var t=e.name;return nt()(t)||et()(t)},ht=function(e){var t=e.mode,n=e.target;return nt()(t)?nt()(n):et()(n)},mt=function(e){var t=e.mode;return nt()(t)||["add","wrap"].some((function(e){return e===t}))},gt=function(e){var t=e.mapStateToProps;return nt()(t)||lt()(t)||ot()(t)},vt=function(e){var t=e.mapDispatchToProps;return nt()(t)||lt()(t)||ot()(t)||at()(t)},yt=function(e){var t=e.reducers;return nt()(t)||at()(t)&&ut()(t).every(ot())};function bt(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 wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){Et(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xt(e){return function(e){if(Array.isArray(e))return Ot(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){if("string"==typeof e)return Ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(e,t):void 0}}(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 Ot(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 St(e){var t=function(e){var t=[],n=[];return e.forEach((function(e){Array.isArray(e)?e.every((function(e){return dt(e)}))?n.push.apply(n,xt(e)):t.push.apply(t,xt(e)):dt(e)?n.push(e):t.push(e)})),{invalidPlugins:t,validPlugins:n}}(e),n=t.validPlugins;return function(e){e.forEach((function(e){return console.log("Mirador: Plugin ".concat(e.name," is not valid and was rejected."))}))}(t.invalidPlugins),n}function At(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var _t=At();_t.withExtraArgument=At;const Ct=_t;var Tt=__webpack_require__(63821),kt=__webpack_require__(58168),Pt=__webpack_require__(98587),It=__webpack_require__(21225),Rt=__webpack_require__(16873);const jt=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var Dt=[],Nt=0;function Mt(e){try{Wt(),e()}finally{Bt()}}function Lt(e){Dt.push(e),Nt||(Wt(),Ft())}function zt(e){try{return Wt(),e()}finally{Ft()}}function Wt(){Nt++}function Bt(){Nt--}function Ft(){var e;for(Bt();!Nt&&void 0!==(e=Dt.shift());)Mt(e)}var Ht=function(e){return function(t){return e.some((function(e){return $t(e)(t)}))}},Vt=function(e){return function(t){return e(t)}},Ut=function(e){return function(t){return t.type===String(e)}},Gt=function(e){return function(t){return t.type===e}},qt=function(){return Rt.k};function $t(e){var t="*"===e?qt:(0,It.Yj)(e)?Ut:(0,It.YO)(e)?Ht:(0,It.mr)(e)?Ut:(0,It.Pc)(e)?Vt:(0,It.HR)(e)?Gt:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Kt={type:Tt.x7},Zt=function(e){return e&&e.type===Tt.x7};function Xt(){var e,t,n,r,o,i,a=(t=!1,r=n=[],o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(Kt)}))},(e={})[Tt.Xl]=!0,e.put=function(e){if(!t)if(Zt(e))i();else for(var o=n=r,a=0,s=o.length;a<s;a++){var l=o[a];l[Tt.E_](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=qt),t?e(Kt):(e[Tt.E_]=n,o(),r.push(e),e.cancel=(0,Rt.o)((function(){o(),(0,Rt.r)(r,e)})))},e.close=i,e),s=a.put;return a.put=function(e){e[Tt.q8]?s(e):Lt((function(){s(e)}))},a}function Yt(e,t){var n=e[Tt.bO];(0,It.Pc)(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Qt,Jt=0,en=function(){return++Jt};function tn(e){e.isRunning()&&e.cancel()}var nn=((Qt={})[Rt.T]=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,i=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!Zt(e)||a?n(e):n(Tt.a6)};try{o.take(s,(0,It.uQ)(i)?$t(i):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},Qt[Rt.P]=function(e,t,n){var r=t.channel,o=t.action,i=t.resolve;Lt((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(e){return void n(e,!0)}i&&(0,It.iv)(t)?Yt(t,n):n(t)}))},Qt[Rt.A]=function(e,t,n,r){var o=r.digestEffect,i=Jt,a=Object.keys(t);if(0!==a.length){var s=(0,Rt.l)(t,n);a.forEach((function(e){o(t[e],i,s[e],e)}))}else n((0,It.YO)(t)?[]:{})},Qt[Rt.R]=function(e,t,n,r){var o=r.digestEffect,i=Jt,a=Object.keys(t),s=(0,It.YO)(t)?(0,Rt.m)(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||(0,Rt.s)(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=Rt.t,l[e]=t})),n.cancel=function(){c||(c=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){c||o(t[e],i,l[e],e)}))},Qt[Rt.C]=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=r.task;try{var l=i.apply(o,a);if((0,It.iv)(l))return void Yt(l,n);if((0,It.lJ)(l))return void pn(e,l,s.context,Jt,(0,Rt.j)(i),!1,n);n(l)}catch(e){n(e,!0)}},Qt[Rt.a]=function(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var a=function(e,t){(0,It.vD)(e)?n(t):n(e,!0)};o.apply(r,i.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},Qt[Rt.F]=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if((0,It.lJ)(o))return o;var i=!1;return(0,Rt.q)((function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!(0,It.iv)(o)})}))}catch(e){return(0,Rt.q)((function(){throw e}))}}({context:o,fn:i,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:(0,Rt.j)(t)}(c,i);zt((function(){var t=pn(e,c,l.context,Jt,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},Qt[Rt.J]=function(e,t,n,r){var o=r.task,i=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&(0,Rt.r)(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if((0,It.YO)(t)){if(0===t.length)return void n([]);var a=(0,Rt.l)(t,n);t.forEach((function(e,t){i(e,a[t])}))}else i(t,n)},Qt[Rt.b]=function(e,t,n,r){var o=r.task;t===Tt.Pe?tn(o):(0,It.YO)(t)?t.forEach(tn):tn(t),n()},Qt[Rt.S]=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(e){n(e,!0)}},Qt[Rt.d]=function(e,t,n){var r=t.pattern,o=function(e){void 0===e&&(e=(0,Rt.e)());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(Kt):e.isEmpty()?(n.push(r),r.cancel=function(){(0,Rt.r)(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(Kt):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++)(0,e[r])(Kt)}}}}(t.buffer),i=$t(r),a=function t(n){Zt(n)||e.channel.take(t,i),o.put(n)},s=o.close;o.close=function(){a.cancel(),s()},e.channel.take(a,i),n(o)},Qt[Rt.f]=function(e,t,n,r){n(r.task.isCancelled())},Qt[Rt.g]=function(e,t,n){t.flush(n)},Qt[Rt.G]=function(e,t,n,r){n(r.task.context[t])},Qt[Rt.h]=function(e,t,n,r){var o=r.task;(0,Rt.p)(o.context,t),n()},Qt);function rn(e,t){return e+"?"+t}function on(e){var t=e.name,n=e.location;return n?t+" "+rn(n.fileName,n.lineNumber):t}var an=null,sn=[],ln=function(e){e.crashedEffect=an,sn.push(e)},cn=function(){an=null,sn.length=0},un=function(e){an=e},dn=function(){var e,t,n,r,o=sn[0],i=sn.slice(1),a=o.crashedEffect?(n=o.crashedEffect,(r=(0,Rt.v)(n))?r.code+" "+rn(r.fileName,r.lineNumber):""):null;return["The above error occurred in task "+on(o.meta)+(a?" \n when executing effect "+a:"")].concat(i.map((function(e){return" created by "+on(e.meta)})),[(e=sn,t=(0,Rt.u)((function(e){return e.cancelledTasks}),e),t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):"")]).join("\n")};function fn(e,t,n,r,o,i,a){var s;void 0===a&&(a=Rt.t);var l,c,u=0,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,o=[],i=!1;function a(e){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name}))),l(),n(e,!0)}function s(t){o.push(t),t.cont=function(s,l){i||((0,Rt.r)(o,t),t.cont=Rt.t,l?a(s):(t===e&&(r=s),o.length||(i=!0,n(r))))}}function l(){i||(i=!0,o.forEach((function(e){e.cont=Rt.t,e.cancel()})),o=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return o}}}(t,0,m);function m(t,n){if(n){if(u=2,ln({meta:o,cancelledTasks:f}),g.isRoot){var r=dn();cn(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===Tt.nm?u=1:1!==u&&(u=3),l=t,d&&d.resolve(t);g.cont(t,n),g.joiners.forEach((function(e){e.cb(t,n)})),g.joiners=null}var g=((s={})[Tt.wn]=!0,s.id=r,s.meta=o,s.isRoot=i,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){0===u&&(u=1,h.cancelAll(),m(Tt.nm,!1))},s.cont=a,s.end=m,s.setContext=function(e){(0,Rt.p)(p,e)},s.toPromise=function(){return d||(d=jt(),2===u?d.reject(c):0!==u&&d.resolve(l)),d.promise},s.isRunning=function(){return 0===u},s.isCancelled=function(){return 1===u||0===u&&1===t.status},s.isAborted=function(){return 2===u},s.result=function(){return l},s.error=function(){return c},s);return g}function pn(e,t,n,r,o,i,a){var s=e.finalizeRunEffect((function(t,n,r){(0,It.iv)(t)?Yt(t,r):(0,It.lJ)(t)?pn(e,t,c.context,n,o,!1,r):t&&t[Tt.IO]?(0,nn[t.type])(e,t.payload,r,u):r(t)}));d.cancel=Rt.t;var l={meta:o,cancel:function(){0===l.status&&(l.status=1,d(Tt.nm))},status:0},c=fn(e,l,n,r,o,i,a),u={task:c,digestEffect:f};return a&&(a.cancel=c.cancel),d(),c;function d(e,n){try{var o;n?(o=t.throw(e),cn()):(0,Rt.y)(e)?(l.status=1,d.cancel(),o=(0,It.Pc)(t.return)?t.return(Tt.nm):{done:!0,value:Tt.nm}):o=(0,Rt.z)(e)?(0,It.Pc)(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==l.status&&(l.status=3),l.cont(o.value)):f(o.value,r,d)}catch(e){if(1===l.status)throw e;l.status=2,l.cont(e,!0)}}function f(t,n,r,o){void 0===o&&(o="");var i,a=en();function l(n,o){i||(i=!0,r.cancel=Rt.t,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&un(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),l.cancel=Rt.t,r.cancel=function(){i||(i=!0,l.cancel(),l.cancel=Rt.t,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function hn(e,t){for(var n=e.channel,r=void 0===n?Xt():n,o=e.dispatch,i=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?Rt.D:u,f=arguments.length,p=new Array(f>2?f-2:0),h=2;h<f;h++)p[h-2]=arguments[h];var m,g=t.apply(void 0,p),v=en();if(l&&(l.rootSagaStarted=l.rootSagaStarted||Rt.t,l.effectTriggered=l.effectTriggered||Rt.t,l.effectResolved=l.effectResolved||Rt.t,l.effectRejected=l.effectRejected||Rt.t,l.effectCancelled=l.effectCancelled||Rt.t,l.actionDispatched=l.actionDispatched||Rt.t,l.rootSagaStarted({effectId:v,saga:t,args:p})),c){var y=Rt.B.apply(void 0,c);m=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else m=Rt.H;var b={channel:r,dispatch:(0,Rt.E)(o),getState:i,sagaMonitor:l,onError:d,finalizeRunEffect:m};return zt((function(){var e=pn(b,g,s,v,(0,Rt.j)(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}const mn=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,i=n.channel,a=void 0===i?Xt():i,s=n.sagaMonitor,l=(0,Pt.A)(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=hn.bind(null,(0,kt.A)({},l,{context:o,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){(0,Rt.p)(o,e)},c};var gn=__webpack_require__(21966),vn=__webpack_require__(90179),yn=__webpack_require__.n(vn),bn=__webpack_require__(91754);function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){xn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function On(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.RESOLVE_AUTHENTICATION_REQUEST:return En(En({},e),{},xn({},t.tokenServiceId,{authId:t.id,id:t.tokenServiceId,isFetching:!0}));case bn.default.REQUEST_ACCESS_TOKEN:return En(En({},e),{},xn({},t.serviceId,{authId:t.authId,id:t.serviceId,isFetching:!0}));case bn.default.RECEIVE_ACCESS_TOKEN:return En(En({},e),{},xn({},t.serviceId,En(En({},e[t.serviceId]),{},{isFetching:!1,json:t.json})));case bn.default.RECEIVE_ACCESS_TOKEN_FAILURE:return En(En({},e),{},xn({},t.serviceId,En(En({},e[t.serviceId]),{},{error:t.error,isFetching:!1})));case bn.default.RESET_AUTHENTICATION_STATE:return yn()(e,t.tokenServiceId);case bn.default.RECEIVE_INFO_RESPONSE:return t.tokenServiceId?e[t.tokenServiceId].success?e:En(En({},e),{},xn({},t.tokenServiceId,En(En({},e[t.tokenServiceId]),{},{success:!0}))):e;default:return e}}function Sn(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 An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){_n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.REQUEST_ANNOTATION:return An(An({},e),{},_n({},t.targetId,An(An({},e[t.targetId]),{},_n({},t.annotationId,{id:t.annotationId,isFetching:!0}))));case bn.default.RECEIVE_ANNOTATION:return An(An({},e),{},_n({},t.targetId,An(An({},e[t.targetId]),{},_n({},t.annotationId,{id:t.annotationId,isFetching:!1,json:t.annotationJson}))));case bn.default.RECEIVE_ANNOTATION_FAILURE:return An(An({},e),{},_n({},t.targetId,An(An({},e[t.targetId]),{},_n({},t.annotationId,{error:t.error,id:t.annotationId,isFetching:!1}))));case bn.default.IMPORT_MIRADOR_STATE:return{};default:return e}};function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){Pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var In=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.ADD_AUTHENTICATION_REQUEST:return kn(kn({},e),{},Pn({},t.id,{id:t.id,isFetching:!0,profile:t.profile,windowId:t.windowId}));case bn.default.RESOLVE_AUTHENTICATION_REQUEST:return kn(kn({},e),{},Pn({},t.id,kn(kn({},e[t.id]),{},{isFetching:!1,ok:t.ok})));case bn.default.RECEIVE_ACCESS_TOKEN:return t.authId?kn(kn({},e),{},Pn({},t.authId,kn(kn({},e[t.authId]),{},{ok:!0}))):e;case bn.default.RESET_AUTHENTICATION_STATE:return yn()(e,t.id);default:return e}};function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){Dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(e){return function(e){if(Array.isArray(e))return Mn(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){if("string"==typeof e)return Mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mn(e,t):void 0}}(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 Mn(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 Ln=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.ADD_RESOURCE:return e.some((function(e){return e.manifestId===t.manifestId}))?e:[jn({manifestId:t.manifestId},t.payload)].concat(Nn(e));case bn.default.ADD_WINDOW:return e.some((function(e){return e.manifestId===t.window.manifestId}))?e:[{manifestId:t.window.manifestId}].concat(Nn(e));case bn.default.UPDATE_WINDOW:return t.payload.manifestId?e.some((function(e){return e.manifestId===t.payload.manifestId}))?e:[{manifestId:t.payload.manifestId}].concat(Nn(e)):e;case bn.default.REMOVE_RESOURCE:return e.filter((function(e){return e.manifestId!==t.manifestId}));case bn.default.IMPORT_CONFIG:return t.config.catalog||[];case bn.default.IMPORT_MIRADOR_STATE:return t.state.catalog||[];default:return e}},zn=__webpack_require__(77731),Wn=__webpack_require__.n(zn),Bn=__webpack_require__(55918),Fn=__webpack_require__.n(Bn);function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){Un(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.ADD_COMPANION_WINDOW:return Wn()([t.id],t.payload,e);case bn.default.ADD_WINDOW:return Vn(Vn({},e),(t.companionWindows||[]).reduce((function(n,r){return n[r.id]=Vn(Vn(Vn({},e[r.id]),r),{},{windowId:t.id}),n}),{}));case bn.default.REMOVE_WINDOW:return Object.keys(e).reduce((function(n,r){return e[r].windowId!==t.windowId&&(n[r]=e[r]),n}),{});case bn.default.UPDATE_COMPANION_WINDOW:return Fn()([t.id],(function(e){return Vn(Vn({},e||{}),t.payload)}),e);case bn.default.REMOVE_COMPANION_WINDOW:return yn()(e,t.id);case bn.default.IMPORT_MIRADOR_STATE:return t.state.companionWindows||[];case bn.default.TOGGLE_TOC_NODE:return Fn()([t.id,"tocNodes"],(function(e){return Vn(Vn({},e||{}),t.payload)}),e);default:return e}}var qn=__webpack_require__(33266);function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zn=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){Kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},qn.A),Xn=function(e,t,n){return t},Yn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zn,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.UPDATE_CONFIG:case bn.default.IMPORT_CONFIG:return Qe()(e,t.config,{arrayMerge:Xn});case bn.default.SET_CONFIG:return t.config;case bn.default.IMPORT_MIRADOR_STATE:return t.state.config||{};default:return e}};function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach((function(t){er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.ADD_WINDOW:return Jn(Jn({},e),{},er({},t.window.id,Jn({windowId:t.window.id},t.elasticLayout)));case bn.default.UPDATE_ELASTIC_WINDOW_LAYOUT:return Fn()([t.windowId],(function(e){return Jn(Jn({},e||{}),t.payload)}),e);case bn.default.REMOVE_WINDOW:return yn()(e,t.windowId);case bn.default.IMPORT_MIRADOR_STATE:return t.state.elasticLayout||{};default:return e}},nr=__webpack_require__(91648),rr=__webpack_require__.n(nr);function or(e){return function(e){if(Array.isArray(e))return ir(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){if("string"==typeof e)return ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ir(e,t):void 0}}(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 ir(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 ar(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 sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cr={items:[]},ur=function(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cr,i=arguments.length>1?arguments[1]:void 0;switch(i.type){case bn.default.ADD_ERROR:return sr(sr({},o),{},(lr(e={},i.id,{id:i.id,message:i.message}),lr(e,"items",[].concat(or(o.items),[i.id])),e));case bn.default.RECEIVE_INFO_RESPONSE_FAILURE:return sr(sr({},o),{},(lr(t={},i.infoId,{id:i.infoId,message:i.error}),lr(t,"items",[].concat(or(o.items),[i.infoId])),t));case bn.default.RECEIVE_SEARCH_FAILURE:return sr(sr({},o),{},(lr(n={},i.searchId,{id:i.searchId,message:i.error}),lr(n,"items",[].concat(or(o.items),[i.searchId])),n));case bn.default.REMOVE_ERROR:return(r=Object.keys(o).reduce((function(e,t){return t!==i.id&&(e[t]=o[t]),e}),{})).items=rr()(r.items,i.id),r;case bn.default.IMPORT_MIRADOR_STATE:return cr;default:return o}};function dr(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 fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.REQUEST_INFO_RESPONSE:return fr(fr({},e),{},pr({},t.infoId,{id:t.infoId,isFetching:!0}));case bn.default.RECEIVE_INFO_RESPONSE:return fr(fr({},e),{},pr({},t.infoId,{degraded:!1,id:t.infoId,isFetching:!1,json:t.infoJson,tokenServiceId:t.tokenServiceId}));case bn.default.RECEIVE_DEGRADED_INFO_RESPONSE:return fr(fr({},e),{},pr({},t.infoId,{degraded:!0,id:t.infoId,isFetching:!1,json:t.infoJson,tokenServiceId:t.tokenServiceId}));case bn.default.RECEIVE_INFO_RESPONSE_FAILURE:return fr(fr({},e),{},pr({},t.infoId,{error:t.error,id:t.infoId,isFetching:!1,tokenServiceId:t.tokenServiceId}));case bn.default.REMOVE_INFO_RESPONSE:return Object.keys(e).reduce((function(n,r){return r!==t.infoId&&(n[r]=e[r]),n}),{});case bn.default.IMPORT_MIRADOR_STATE:return{};default:return e}};function mr(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 gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.UPDATE_LAYERS:return gr(gr({},e),{},vr({},t.windowId,gr(gr({},e[t.windowId]),{},vr({},t.canvasId,Qe()((e[t.windowId]||{})[t.canvasId]||{},t.payload)))));case bn.default.REMOVE_WINDOW:return yn()(e,[t.windowId]);default:return e}};function br(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 wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.REQUEST_MANIFEST:return wr(Er({},t.manifestId,wr(wr(wr({},e[t.manifestId]),t.properties),{},{id:t.manifestId})),yn()(e,t.manifestId));case bn.default.RECEIVE_MANIFEST:return wr(wr({},e),{},Er({},t.manifestId,wr(wr({},e[t.manifestId]),{},{error:null,id:t.manifestId,isFetching:!1,json:t.manifestJson})));case bn.default.RECEIVE_MANIFEST_FAILURE:return wr(wr({},e),{},Er({},t.manifestId,wr(wr({},e[t.manifestId]),{},{error:t.error,id:t.manifestId,isFetching:!1})));case bn.default.REMOVE_MANIFEST:return Object.keys(e).reduce((function(n,r){return r!==t.manifestId&&(n[r]=e[r]),n}),{});case bn.default.IMPORT_MIRADOR_STATE:return t.state.manifests||{};default:return e}},Or=__webpack_require__(35970),Sr=__webpack_require__.n(Or);function Ar(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 _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){Cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=(e[t.windowId]||{})[t.companionWindowId]||{};switch(t.type){case bn.default.REQUEST_SEARCH:return n.query!==t.query?_r(_r({},e),{},Cr({},t.windowId,_r(_r({},e[t.windowId]),{},Cr({},t.companionWindowId,_r(_r({},n),{},{data:Cr({},t.searchId,{isFetching:!0}),query:t.query,selectedContentSearchAnnotation:[]}))))):_r(_r({},e),{},Cr({},t.windowId,_r(_r({},e[t.windowId]),{},Cr({},t.companionWindowId,_r(_r({},n),{},{data:_r(_r({},n.data),{},Cr({},t.searchId,{isFetching:!0}))})))));case bn.default.RECEIVE_SEARCH:return _r(_r({},e),{},Cr({},t.windowId,_r(_r({},e[t.windowId]),{},Cr({},t.companionWindowId,_r(_r({},n),{},{data:_r(_r({},n.data),{},Cr({},t.searchId,{isFetching:!1,json:t.searchJson}))})))));case bn.default.RECEIVE_SEARCH_FAILURE:return _r(_r({},e),{},Cr({},t.windowId,_r(_r({},e[t.windowId]),{},Cr({},t.companionWindowId,_r(_r({},n),{},{data:_r(_r({},n.data),{},Cr({},t.searchId,{error:t.error,isFetching:!1}))})))));case bn.default.REMOVE_SEARCH:return _r(_r({},e),{},Cr({},t.windowId,Object.keys(e[t.windowId]).reduce((function(n,r){return r!==t.companionWindowId&&(n[r]=e[t.windowId][r]),n}),{})));case bn.default.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:return _r(_r({},e),{},Cr({},t.windowId,_r(_r({},e[t.windowId]),{},Cr({},t.companionWindowId,_r(_r({},n),{},{selectedContentSearchAnnotationIds:t.annotationIds})))));case bn.default.SELECT_ANNOTATION:return e[t.windowId]?_r(_r({},e),{},Cr({},t.windowId,Object.keys(e[t.windowId]).reduce((function(n,r){var o=e[t.windowId][r],i=o.data&&Object.values(o.data).filter((function(e){return e.json&&e.json.resources})).some((function(e){return Sr()([e.json.resources]).some((function(e){return e["@id"]===t.annotationId}))}));return n[r]=i?_r(_r({},o),{},{selectedContentSearchAnnotationIds:[t.annotationId]}):o,n}),{}))):e;case bn.default.IMPORT_MIRADOR_STATE:return{};case bn.default.REMOVE_WINDOW:return yn()(e,t.windowId);case bn.default.REMOVE_COMPANION_WINDOW:return e[t.windowId]?_r(_r({},e),{},Cr({},t.windowId,_r({},yn()(e[t.windowId],t.id)))):e;default:return e}};function kr(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 Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){Ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.UPDATE_VIEWPORT:return Pr(Pr({},e),{},Ir({},t.windowId,Pr(Pr({},e[t.windowId]),t.payload)));case bn.default.REMOVE_WINDOW:return yn()(e,t.windowId);case bn.default.SET_WINDOW_VIEW_TYPE:return Wn()([t.windowId],null,e);case bn.default.SET_CANVAS:return t.preserveViewport?e:Wn()([t.windowId],null,e);case bn.default.IMPORT_MIRADOR_STATE:return t.state.viewers||{};default:return e}};function jr(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 Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(n),!0).forEach((function(t){Nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bn.default.ADD_WINDOW:return Dr(Dr({},e),{},Nr({},t.window.id,t.window));case bn.default.MAXIMIZE_WINDOW:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{maximized:!0})));case bn.default.MINIMIZE_WINDOW:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{maximized:!1})));case bn.default.UPDATE_WINDOW:return Fn()([t.id],(function(e){return Dr(Dr({},e||{}),t.payload)}),e);case bn.default.REMOVE_WINDOW:return yn()(e,[t.windowId]);case bn.default.TOGGLE_WINDOW_SIDE_BAR:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{sideBarOpen:!e[t.windowId].sideBarOpen})));case bn.default.SET_WINDOW_VIEW_TYPE:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{view:t.viewType})));case bn.default.UPDATE_WINDOW_POSITION:return Dr(Dr({},e),{},Nr({},t.payload.windowId,Dr(Dr({},e[t.payload.windowId]),{},{x:t.payload.position.x,y:t.payload.position.y})));case bn.default.SET_WINDOW_SIZE:return Dr(Dr({},e),{},Nr({},t.payload.windowId,Dr(Dr({},e[t.payload.windowId]),{},{height:t.payload.size.height,width:t.payload.size.width,x:t.payload.size.x,y:t.payload.size.y})));case bn.default.SET_CANVAS:return e[t.windowId]?Fn()([t.windowId],(function(e){return Dr(Dr({},e||{}),{},{canvasId:t.canvasId,visibleCanvases:t.visibleCanvases||[]})}),e):e;case bn.default.ADD_COMPANION_WINDOW:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{companionWindowIds:e[t.windowId].companionWindowIds.concat([t.id])},"left"===t.payload.position?{companionAreaOpen:!0,sideBarPanel:t.payload.content}:{})));case bn.default.UPDATE_COMPANION_WINDOW:return"left"!==t.payload.position?e:Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{companionAreaOpen:!0})));case bn.default.REMOVE_COMPANION_WINDOW:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{companionWindowIds:e[t.windowId].companionWindowIds.filter((function(e){return e!==t.id}))})));case bn.default.SELECT_ANNOTATION:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{selectedAnnotationId:t.annotationId})));case bn.default.DESELECT_ANNOTATION:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{selectedAnnotationId:void 0})));case bn.default.HOVER_ANNOTATION:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{hoveredAnnotationIds:t.annotationIds})));case bn.default.TOGGLE_ANNOTATION_DISPLAY:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{highlightAllAnnotations:!e[t.windowId].highlightAllAnnotations})));case bn.default.IMPORT_MIRADOR_STATE:return t.state.windows||[];case bn.default.REQUEST_SEARCH:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{suggestedSearches:void 0})));case bn.default.SHOW_COLLECTION_DIALOG:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{collectionDialogOn:!0,collectionManifestId:t.manifestId,collectionPath:t.collectionPath})));case bn.default.HIDE_COLLECTION_DIALOG:return Dr(Dr({},e),{},Nr({},t.windowId,Dr(Dr({},e[t.windowId]),{},{collectionDialogOn:!1})));default:return e}};function Lr(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 zr(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 Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){Br(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fr=function(){var e,t,n,r,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wr(Wr({},qn.A.workspace),{},{windowIds:[]}),s=arguments.length>1?arguments[1]:void 0;switch(s.type){case bn.default.UPDATE_WORKSPACE:return Wr(Wr({},a),s.config);case bn.default.FOCUS_WINDOW:return Wr(Wr({},a),{},{focusedWindowId:s.windowId,viewportPosition:Wr(Wr({},a.viewportPosition),s.position)});case bn.default.ADD_WINDOW:return Wr(Wr({},a),{},{focusedWindowId:s.window.id,windowIds:[].concat((i=a.windowIds||[],function(e){if(Array.isArray(e))return Lr(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return Lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lr(e,t):void 0}}(i)||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.")}()),[s.window.id])});case bn.default.REMOVE_WINDOW:return n=(a.windowIds||[]).filter((function(e){return e!==s.windowId})),Wr(Wr({},a),{},{focusedWindowId:s.windowId===a.focusedWindowId?n[n.length-1]:a.focusedWindowId,windowIds:n});case bn.default.SET_WORKSPACE_FULLSCREEN:return Wr(Wr({},a),{},{isFullscreenEnabled:s.isFullscreenEnabled});case bn.default.TOGGLE_ZOOM_CONTROLS:return Wr(Wr({},a),{},{showZoomControls:s.showZoomControls});case bn.default.UPDATE_WORKSPACE_MOSAIC_LAYOUT:return Wr(Wr({},a),{},{layout:s.layout});case bn.default.SET_WORKSPACE_ADD_VISIBILITY:return Wr(Wr({},a),{},{isWorkspaceAddVisible:s.isWorkspaceAddVisible});case bn.default.SET_WORKSPACE_VIEWPORT_POSITION:return e={},!function(e){return void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height}(t=Wr(Wr({},a.viewportPosition),s.payload.position))||(r={height:a.height,width:a.width,x:0,y:0},(o=t).x-o.width/2>r.x-r.width/2&&o.y-o.height/2>r.y-r.height/2&&o.x+o.width/2<r.x+r.width/2&&o.y+o.height/2<r.y+r.height/2)||(e={height:2*a.height,width:2*a.width}),Wr(Wr(Wr({},a),e),{},{viewportPosition:t});case bn.default.SET_CONFIG:case bn.default.IMPORT_CONFIG:case bn.default.UPDATE_CONFIG:return Wr(Wr({},a),s.config.workspace);case bn.default.IMPORT_MIRADOR_STATE:return s.state.workspace||{};case bn.default.TOGGLE_DRAGGING:return Wr(Wr({},a),{},{draggingEnabled:!a.draggingEnabled});default:return a}};function Hr(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 Vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ur=__webpack_require__(54756),Gr=__webpack_require__.n(Ur),qr=__webpack_require__(43786),$r=__webpack_require__(54011),Kr=__webpack_require__(50916),Zr=__webpack_require__.n(Kr),Xr=__webpack_require__(46346),Yr=__webpack_require__(15972),Qr=__webpack_require__.n(Yr),Jr=__webpack_require__(35485),eo=__webpack_require__(20375),to=__webpack_require__(82780),no=__webpack_require__(52529),ro=__webpack_require__(32697),oo=__webpack_require__(46946),io=__webpack_require__(65419);function ao(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 so(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ao(Object(n),!0).forEach((function(t){lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var co=Gr().mark(Eo),uo=Gr().mark(xo),fo=Gr().mark(Oo),po=Gr().mark(So),ho=Gr().mark(Ao),mo=Gr().mark(_o),go=Gr().mark(Co),vo=Gr().mark(To),yo=Gr().mark(ko),bo=Gr().mark(Po);function wo(e,t,n){var r=n.success,o=n.degraded,i=n.failure;return Zr()(e,t).then((function(e){return e.json().then((function(t){return 401===e.status?(o||r)({json:t,response:e}):e.ok?r({json:t,response:e}):i({error:e.statusText,json:t,response:e})})).catch((function(t){return i({error:t,response:e})}))})).catch((function(e){return i({error:e})}))}function Eo(e,t,n){var r,o,i,a,s,l,c,u,d,f;return Gr().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return r=n.success,o=n.degraded,i=n.failure,p.next=3,(0,qr.select)(w.lT);case 3:return a=p.sent,s=a.preprocessors,l=void 0===s?[]:s,c=a.postprocessors,u=void 0===c?[]:c,p.prev=8,d=l.reduce((function(t,n){return n(e,t)||t}),t),p.next=12,(0,qr.call)(wo,e,d,{degraded:o,failure:i,success:r});case 12:return f=p.sent,f=u.reduce((function(t,n){return n(e,t)||t}),f),p.abrupt("return",f);case 17:return p.prev=17,p.t0=p.catch(8),p.abrupt("return",i({error:p.t0}));case 20:case"end":return p.stop()}}),co,null,[[8,17]])}function xo(e,t,n,r){var o,i,a,s,l,c,u,d,f,p,h,m;return Gr().wrap((function(g){for(;;)switch(g.prev=g.next){case 0:if(o=r.degraded,i=r.failure,a=r.success,s=so({},n),!t){g.next=8;break}return g.next=5,(0,qr.call)(So,t);case 5:c=g.sent,l=c&&c.id,c&&c.json&&(s.headers=so({Authorization:"Bearer ".concat(c.json.accessToken)},n.headers));case 8:return g.next=10,(0,qr.call)(Eo,e,s,{failure:function(e){return e},success:function(e){return e}});case 10:if(u=g.sent,d=u.error,f=u.json,p=u.response,!d){g.next=18;break}return g.next=17,(0,qr.put)(i({error:d,json:f,response:p,tokenServiceId:l}));case 17:return g.abrupt("return");case 18:if(h=f["@id"]||f.id,!p.ok){g.next=26;break}if(Qr()(h,{stripAuthentication:!1})!==Qr()(e.replace(/info\.json$/,""),{stripAuthentication:!1})){g.next=24;break}return g.next=23,(0,qr.put)(a({json:f,response:p,tokenServiceId:l}));case 23:return g.abrupt("return");case 24:g.next=30;break;case 26:if(401===p.status){g.next=30;break}return g.next=29,(0,qr.put)(i({error:d,json:f,response:p,tokenServiceId:l}));case 29:return g.abrupt("return");case 30:return g.next=32,(0,qr.call)(So,f);case 32:if(!(m=g.sent)||m.id===l){g.next=37;break}return g.next=36,(0,qr.call)(xo,e,f,n,{degraded:o,failure:i,success:a});case 36:return g.abrupt("return");case 37:return g.next=39,(0,qr.put)((o||a)({json:f,response:p,tokenServiceId:l}));case 39:case"end":return g.stop()}}),uo)}function Oo(e){var t,n,r;return Gr().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.manifestId,n={failure:function(e){var n=e.error;return e.json,e.response,(0,Jr.ns)(t,"object"==typeof n?String(n):n)},success:function(e){var n=e.json;return e.response,(0,Jr.Dc)(t,n)}},o.next=4,(0,qr.call)(Eo,t,{},n);case 4:return r=o.sent,o.next=7,(0,qr.put)(r);case 7:case"end":return o.stop()}}),fo)}function So(e){var t,n,r,o,i,a,s;return Gr().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=e&&e.__jsonld?e:so(so({},e),{},{options:{}}),0!==(n=Xr.Utils.getServices(t).filter((function(e){return e.getProfile().match(/http:\/\/iiif.io\/api\/auth\//)}))).length){l.next=4;break}return l.abrupt("return",void 0);case 4:return l.next=6,(0,qr.select)(ro.X8);case 6:if(r=l.sent){l.next=9;break}return l.abrupt("return",void 0);case 9:o=0;case 10:if(!(o<n.length)){l.next=19;break}if(i=n[o],a=Xr.Utils.getService(i,"http://iiif.io/api/auth/1/token")||Xr.Utils.getService(i,"http://iiif.io/api/auth/0/token"),!(s=a&&r[a.id])||!s.json){l.next=16;break}return l.abrupt("return",s);case 16:o+=1,l.next=10;break;case 19:return l.abrupt("return",void 0);case 20:case"end":return l.stop()}}),po)}function Ao(e){var t,n,r,o,i;return Gr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.imageResource,n=e.infoId,r=e.windowId,o=t){a.next=6;break}return a.next=5,(0,qr.select)(oo.E_,{infoId:n});case 5:o=a.sent;case 6:return i={degraded:function(e){var t=e.json,o=e.response,i=e.tokenServiceId;return(0,eo.dv)(n,t,o.ok,i,r)},failure:function(e){var t=e.error,r=(e.json,e.response,e.tokenServiceId);return(0,eo.P7)(n,t,r)},success:function(e){var t=e.json,r=e.response,o=e.tokenServiceId;return(0,eo.xO)(n,t,r.ok,o)}},a.next=9,(0,qr.call)(xo,"".concat(n.replace(/\/$/,""),"/info.json"),o,{},i);case 9:case"end":return a.stop()}}),ho)}function _o(e){var t,n,r,o,i;return Gr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.windowId,n=e.companionWindowId,e.query,r=e.searchId,o={failure:function(e){var o=e.error;return e.json,e.response,(0,to.ae)(t,n,r,o)},success:function(e){var o=e.json;return e.response,(0,to.md)(t,n,r,o)}},a.next=4,(0,qr.call)(Eo,r,{},o);case 4:return i=a.sent,a.next=7,(0,qr.put)(i);case 7:case"end":return a.stop()}}),mo)}function Co(e){var t,n,r,o;return Gr().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.targetId,n=e.annotationId,r={failure:function(e){var r=e.error;return e.json,e.response,(0,no.tf)(t,n,r)},success:function(e){var r=e.json;return e.response,(0,no.n_)(t,n,r)}},i.next=4,(0,qr.call)(Eo,n,{},r);case 4:return o=i.sent,i.next=7,(0,qr.put)(o);case 7:case"end":return i.stop()}}),go)}function To(e){var t,n;return Gr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.manifestId,!(n=e.manifestJson)){r.next=5;break}return r.next=4,(0,qr.put)((0,Jr.Dc)(t,n));case 4:return r.abrupt("return");case 5:if(t){r.next=7;break}return r.abrupt("return");case 7:return r.next=9,(0,qr.select)(io.Rv)||{};case 9:if(r.sent[t]){r.next=12;break}return r.delegateYield(Oo({manifestId:t}),"t0",12);case 12:case"end":return r.stop()}}),vo)}function ko(){var e,t,n,r=arguments;return Gr().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,qr.select)(io.Rv);case 2:e=o.sent,t=0;case 4:if(!(t<r.length)){o.next=12;break}if(e[n=t<0||r.length<=t?void 0:r[t]]){o.next=9;break}return o.next=9,(0,qr.call)(Oo,{manifestId:n});case 9:t+=1,o.next=4;break;case 12:case"end":return o.stop()}}),yo)}function Po(){return Gr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,qr.all)([(0,qr.takeEvery)(bn.default.REQUEST_MANIFEST,Oo),(0,qr.takeEvery)(bn.default.REQUEST_INFO_RESPONSE,Ao),(0,qr.takeEvery)(bn.default.REQUEST_SEARCH,_o),(0,qr.takeEvery)(bn.default.REQUEST_ANNOTATION,Co),(0,qr.takeEvery)(bn.default.ADD_RESOURCE,To)]);case 2:case"end":return e.stop()}}),bo)}var Io=__webpack_require__(92537),Ro=__webpack_require__(45196),jo=__webpack_require__(12664),Do=__webpack_require__(91068),No=__webpack_require__(73893),Mo=__webpack_require__(51636),Lo=__webpack_require__(73015),zo=__webpack_require__(17006),Wo=Gr().mark(ti),Bo=Gr().mark(ni),Fo=Gr().mark(ri),Ho=Gr().mark(oi),Vo=Gr().mark(ii),Uo=Gr().mark(ai),Go=Gr().mark(li),qo=Gr().mark(ci),$o=Gr().mark(ui),Ko=Gr().mark(di),Zo=Gr().mark(fi),Xo=Gr().mark(pi),Yo=Gr().mark(hi),Qo=Gr().mark(mi);function Jo(e){return function(e){if(Array.isArray(e))return ei(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){if("string"==typeof e)return ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ei(e,t):void 0}}(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 ei(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 ti(e){var t,n,r,o;return Gr().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.payload||e.window,n=t.collectionPath,r=t.id,o=t.manifestId){i.next=3;break}return i.abrupt("return");case 3:if(!e.manifest){i.next=8;break}return i.next=6,(0,qr.put)((0,Jr.Dc)(o,e.manifest));case 6:i.next=10;break;case 8:return i.next=10,qr.call.apply(void 0,[ko,o].concat(Jo(n||[])));case 10:return i.next=12,(0,qr.call)(ii,e);case 12:return i.next=14,(0,qr.call)(ai,e);case 14:if(n){i.next=17;break}return i.next=17,(0,qr.call)(ri,{manifestId:o,windowId:e.id||e.window.id});case 17:return i.next=19,(0,qr.call)(hi,o,r);case 19:case"end":return i.stop()}}),Wo)}function ni(e){var t,n,r;return Gr().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.id,e&&e.payload&&e.payload.sequenceId){o.next=3;break}return o.abrupt("return");case 3:return o.next=5,(0,qr.select)(oo.P,{windowId:t});case 5:if((n=o.sent)&&n[0]&&n[0].id){o.next=8;break}return o.abrupt("return");case 8:return o.next=10,(0,qr.call)(jo.h5,t,n[0].id);case 10:return r=o.sent,o.next=13,(0,qr.put)(r);case 13:case"end":return o.stop()}}),Bo)}function ri(e){var t,n,r,o,i;return Gr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.manifestId,n=e.windowId,a.next=3,(0,qr.select)(No.SG,{manifestId:t});case 3:if(!(r=a.sent)){a.next=10;break}if(o=r.getProperty("partOf"),!(i=Array.isArray(o)?o[0]:o)||!i.id){a.next=10;break}return a.next=10,(0,qr.put)((0,Do.uE)(n,{collectionPath:[i.id]}));case 10:case"end":return a.stop()}}),Fo)}function oi(e){var t;return Gr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.payload.collectionPath){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,qr.call.apply(void 0,[ko].concat(Jo(t)));case 5:case"end":return n.stop()}}),Ho)}function ii(e){var t,n,r,o,i,a,s,l,c,u;return Gr().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(t=e.payload||e.window,n=t.canvasId,r=t.canvasIndex,o=t.manifestId,i=e.id||e.window.id,!n){d.next=10;break}return d.next=5,(0,qr.call)(jo.h5,i,n,null,{preserveViewport:!!e.payload});case 5:return a=d.sent,d.next=8,(0,qr.put)(a);case 8:d.next=22;break;case 10:return d.next=12,(0,qr.select)(No.SG,{manifestId:o});case 12:if(!(s=d.sent)){d.next=22;break}if(l=new Io.A(s),!(c=l.startCanvas||l.canvasAt(r||0)||l.canvasAt(0))){d.next=22;break}return d.next=19,(0,qr.call)(jo.h5,i,c.id);case 19:return u=d.sent,d.next=22,(0,qr.put)(u);case 22:case"end":return d.stop()}}),Vo)}function ai(e){var t,n,r,o,i,a,s;return Gr().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e.window&&e.window.defaultSearchQuery){l.next=2;break}return l.abrupt("return");case 2:return t=e.window,n=t.id,r=t.defaultSearchQuery,l.next=5,(0,qr.select)(No.B8,{windowId:n});case 5:return o=l.sent,l.next=8,(0,qr.select)(Mo.bN,{position:"left",windowId:n});case 8:if(i=l.sent,a=i[0],!o||!a){l.next=14;break}return s=o&&"".concat(o.id,"?q=").concat(r),l.next=14,(0,qr.put)((0,to.$Q)(n,a,s,r));case 14:case"end":return l.stop()}}),Uo)}function si(e,t){var n=t.canvasIds,r=t.companionWindowIds,o=t.windowId;return r.reduce((function(t,r){var i=(0,Lo.yy)(e,{companionWindowId:r,windowId:o}).resources.find((function(e){return n.includes(e.targetId)}));return i&&(t[r]=[i.id]),t}),{})}function li(e){var t,n,r,o,i;return Gr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e.annotationId,t=e.windowId,n=e.visibleCanvases,a.next=3,(0,qr.select)(Lo.WF,{windowId:t});case 3:if(r=a.sent,0!==(o=Object.keys(r||{})).length){a.next=7;break}return a.abrupt("return");case 7:return a.next=9,(0,qr.select)(si,{canvasIds:n,companionWindowIds:o,windowId:t});case 9:return i=a.sent,a.next=12,(0,qr.all)(Object.keys(i).map((function(e){return(0,qr.put)((0,to.q)(t,e,i[e]))})));case 12:if(!(Object.values(i).length>0)){a.next=15;break}return a.next=15,(0,qr.put)((0,no.gN)(t,Object.values(i)[0][0]));case 15:case"end":return a.stop()}}),Go)}function ci(e){var t,n,r,o,i,a,s,l,c,u,d,f;return Gr().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(t=e.pan,n=e.windowId,t){p.next=3;break}return p.abrupt("return");case 3:return p.next=5,(0,qr.select)(E.Q9);case 5:return r=p.sent,o=r[n]||{},i=o.x,a=o.y,s=o.width,l=o.height,p.next=9,(0,qr.select)(io.K4);case 9:return c=p.sent,u=c.viewportPosition,d=u.width,f=u.height,p.next=15,(0,qr.put)((0,b.Dl)({x:i+s/2-d/2,y:a+l/2-f/2}));case 15:case"end":return p.stop()}}),qo)}function ui(e){var t,n,r,o;return Gr().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.windowId,i.next=3,(0,qr.select)(io.zk,{windowId:t});case 3:return n=i.sent,r=n.canvasId,i.next=7,(0,qr.select)(oo.O$,{canvasId:r,windowId:t});case 7:return o=i.sent,i.next=10,(0,qr.put)((0,Do.uE)(t,{visibleCanvases:(o||[]).map((function(e){return e.id}))}));case 10:case"end":return i.stop()}}),$o)}function di(e){var t,n,r;return Gr().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.companionWindowId,n=e.windowId,o.next=3,(0,qr.select)(zo.R2,{windowId:n});case 3:if(o.sent.switchCanvasOnSearch){o.next=7;break}return o.abrupt("return");case 7:return o.next=9,(0,qr.select)(Lo.SU,{companionWindowId:t,windowId:n});case 9:if(0===o.sent.length){o.next=12;break}return o.abrupt("return");case 12:return o.next=14,(0,qr.select)(Lo.TA,{companionWindowId:t,windowId:n});case 14:if((r=o.sent)&&0!==r.length){o.next=17;break}return o.abrupt("return");case 17:return o.next=19,(0,qr.put)((0,no.gN)(n,r[0].id));case 19:case"end":return o.stop()}}),Ko)}function fi(e){var t,n,r,o,i;return Gr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.annotationId,n=e.windowId,a.next=3,(0,qr.select)(oo.tv,{windowId:n});case 3:return r=a.sent,a.next=6,(0,qr.select)(Lo.bg,{annotationId:t,windowId:n});case 6:if((o=a.sent)&&!r.includes(o.id)){a.next=9;break}return a.abrupt("return");case 9:return a.next=11,(0,qr.call)(jo.h5,n,o.id);case 11:return i=a.sent,a.next=14,(0,qr.put)(i);case 14:case"end":return a.stop()}}),Zo)}function pi(e){var t,n,r,o,i;return Gr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.visibleCanvases,n=e.windowId,a.next=3,(0,qr.select)(oo.P,{windowId:n});case 3:return r=a.sent,a.next=6,(0,qr.select)(oo.dN);case 6:return o=a.sent,i=(r||[]).filter((function(e){return t.includes(e.id)})),a.next=10,(0,qr.all)(i.map((function(e){var t=new Ro.default(e);return(0,qr.all)(t.iiifImageResources.map((function(e){return!o[e.getServices()[0].id]&&(0,qr.put)((0,eo.E9)({imageResource:e,windowId:n}))})).filter(Boolean))})));case 10:case"end":return a.stop()}}),Xo)}function hi(e,t){var n;return Gr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,qr.select)(No.SG,{manifestId:e});case 2:if(!(n=r.sent)||!n.isCollection()){r.next=6;break}return r.next=6,(0,qr.put)((0,Do.Az)(e,[],t));case 6:case"end":return r.stop()}}),Yo)}function mi(){return Gr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,qr.all)([(0,qr.takeEvery)(bn.default.ADD_WINDOW,ti),(0,qr.takeEvery)(bn.default.UPDATE_WINDOW,ti),(0,qr.takeEvery)(bn.default.UPDATE_WINDOW,ni),(0,qr.takeEvery)(bn.default.SET_CANVAS,li),(0,qr.takeEvery)(bn.default.SET_CANVAS,pi),(0,qr.takeEvery)(bn.default.UPDATE_COMPANION_WINDOW,oi),(0,qr.takeEvery)(bn.default.SET_WINDOW_VIEW_TYPE,ui),(0,qr.takeEvery)(bn.default.RECEIVE_SEARCH,di),(0,qr.takeEvery)(bn.default.SELECT_ANNOTATION,fi),(0,qr.takeEvery)(bn.default.FOCUS_WINDOW,ci)]);case 2:case"end":return e.stop()}}),Qo)}function gi(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 vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach((function(t){yi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bi=Gr().mark(Ci),wi=Gr().mark(Ti),Ei=Gr().mark(ki),xi=Gr().mark(Pi);function Oi(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Ai(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 Si(e){return function(e){if(Array.isArray(e))return _i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ai(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 Ai(e,t){if(e){if("string"==typeof e)return _i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_i(e,t):void 0}}function _i(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 Ci(e){return Gr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,qr.all)([].concat(Si(Object.entries(e.state.windows||{}).map((function(e){var t=Oi(e,2),n=(t[0],t[1]);return(0,qr.call)(ti,{id:n.id,payload:n})}))),Si(Object.entries(e.state.manifests||{}).filter((function(e){var t=Oi(e,2);return t[0],!t[1].json})).map((function(e){var t=Oi(e,2),n=(t[0],t[1]);return(0,qr.call)(ko,n.id)})))));case 2:case"end":return t.stop()}}),bi)}function Ti(e){var t,n,r,o;return Gr().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.config,n=t.thumbnailNavigation,(r=t.windows)&&0!==r.length){i.next=3;break}return i.abrupt("return");case 3:return i.next=5,(0,qr.all)(r.map((function(e){var t="window-".concat((0,$r.A)()),r=e.manifestId||e.loadedManifest;return(0,qr.call)(Do._U,vi({id:t,manifestId:r,thumbnailNavigationPosition:n&&n.defaultPosition},e))})));case 5:return o=i.sent,i.next=8,(0,qr.all)(o.map((function(e){return(0,qr.put)(e)})));case 8:case"end":return i.stop()}}),wi)}function ki(e){var t,n;return Gr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.collectionPath,n=e.manifestId,r.next=3,qr.call.apply(void 0,[ko,n].concat(Si(t)));case 3:case"end":return r.stop()}}),Ei)}function Pi(){return Gr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,qr.all)([(0,qr.takeEvery)(bn.default.IMPORT_MIRADOR_STATE,Ci),(0,qr.takeEvery)(bn.default.IMPORT_CONFIG,Ti),(0,qr.takeEvery)(bn.default.SHOW_COLLECTION_DIALOG,ki)]);case 2:case"end":return e.stop()}}),xi)}var Ii=__webpack_require__(74389),Ri=Gr().mark(Li),ji=Gr().mark(zi),Di=Gr().mark(Wi);function Ni(e){return function(e){if(Array.isArray(e))return Mi(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){if("string"==typeof e)return Mi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mi(e,t):void 0}}(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 Mi(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 Li(e){var t,n,r,o,i;return Gr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.canvasId,n=e.windowId,a.next=3,(0,qr.select)(oo.dX,{canvasId:t,windowId:n});case 3:return r=a.sent,a.next=6,(0,qr.select)(Ii.Rh);case 6:return o=a.sent,i=new Ro.default(r),a.next=10,(0,qr.all)([].concat(Ni(i.annotationListUris.filter((function(e){return!(o[r.id]&&o[r.id][e])})).map((function(e){return(0,qr.put)((0,no.pJ)(r.id,e))}))),Ni(i.canvasAnnotationPages.filter((function(e){return!(o[r.id]&&o[r.id][e.id])})).map((function(e){return e.items?(0,qr.put)((0,no.n_)(r.id,e.id,e)):(0,qr.put)((0,no.pJ)(r.id,e.id))})))));case 10:return a.abrupt("return",a.sent);case 11:case"end":return a.stop()}}),Ri)}function zi(e){var t,n,r;return Gr().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.visibleCanvases,n=void 0===t?[]:t,r=e.windowId,o.next=3,(0,qr.all)(n.map((function(e){return(0,qr.put)((0,no.aw)(r,e))})));case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),ji)}function Wi(){return Gr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,qr.all)([(0,qr.takeEvery)(bn.default.REQUEST_CANVAS_ANNOTATIONS,Li),(0,qr.takeEvery)(bn.default.SET_CANVAS,zi)]);case 2:case"end":return e.stop()}}),Di)}var Bi=__webpack_require__(95594),Fi=Gr().mark($i),Hi=Gr().mark(Ki),Vi=Gr().mark(Zi),Ui=Gr().mark(Xi),Gi=Gr().mark(Yi),qi=Gr().mark(Qi);function $i(e){var t;return Gr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.tokenServiceId,n.next=3,(0,qr.delay)(2e3);case 3:return n.next=5,(0,qr.call)(Ki,{serviceId:t});case 5:case"end":return n.stop()}}),Fi)}function Ki(e){var t,n,r,o,i,a,s;return Gr().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.serviceId,l.next=3,(0,qr.select)(io.sl);case 3:return n=l.sent,l.next=6,(0,qr.all)(Object.keys(n).map((function(e){return(0,qr.select)(oo.Mg,{windowId:e})})));case 6:return r=l.sent,o=Sr()(Sr()(r).map((function(e){return new Ro.default(e).imageServiceIds}))),l.next=10,(0,qr.select)(oo.dN);case 10:return i=l.sent,a=function(e){return Xr.Utils.getServices(e).some((function(e){var n=Xr.Utils.getService(e,"http://iiif.io/api/auth/1/token")||Xr.Utils.getService(e,"http://iiif.io/api/auth/0/token");return n&&n.id===t}))},s=Object.values(i).filter((function(e){return e.json&&a(e.json)})),l.next=15,(0,qr.all)(s.map((function(e){var t=e.id;return o.includes(t)?(0,qr.call)(Ao,{infoId:t}):(0,qr.put)({infoId:t,type:bn.default.REMOVE_INFO_RESPONSE})})));case 15:case"end":return l.stop()}}),Hi)}function Zi(e){var t,n,r,o,i,a,s,l,c,u;return Gr().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return t=e.infoJson,n=e.windowId,d.next=3,(0,qr.select)(ro.xI);case 3:return r=d.sent,d.next=6,(0,qr.select)(w.zj);case 6:if(o=d.sent,i=o.auth,a=(i=void 0===i?{}:i).serviceProfiles,s=(void 0===a?[]:a).filter((function(e){return e.external||e.kiosk})),l=Xr.Utils.getServices(t).filter((function(e){return!r[e.id]})).find((function(e){return s.some((function(t){return t.profile===e.getProfile()}))}))){d.next=14;break}return d.abrupt("return");case 14:if(!(c=s.find((function(e){return e.profile===l.getProfile()}))).kiosk){d.next=20;break}return d.next=18,(0,qr.put)((0,Bi.Bq)(n,l.id,l.getProfile()));case 18:d.next=28;break;case 20:if(!c.external){d.next=28;break}if(u=Xr.Utils.getService(l,"http://iiif.io/api/auth/1/token")||Xr.Utils.getService(l,"http://iiif.io/api/auth/0/token")){d.next=24;break}return d.abrupt("return");case 24:return d.next=26,(0,qr.put)((0,Bi._U)(l.id,u.id));case 26:return d.next=28,(0,qr.put)((0,Bi.B0)(u.id,l.id));case 28:case"end":return d.stop()}}),Vi)}function Xi(e){var t,n,r,o,i;return Gr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.infoJson,e.windowId,n=e.tokenServiceId){a.next=3;break}return a.abrupt("return");case 3:if(r=Xr.Utils.getServices(t).find((function(e){var t=Xr.Utils.getService(e,"http://iiif.io/api/auth/1/token")||Xr.Utils.getService(e,"http://iiif.io/api/auth/0/token");return t&&t.id===n})),r){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,(0,qr.select)(ro.X8);case 8:if(o=a.sent,(i=o[n])&&i.success){a.next=12;break}return a.abrupt("return");case 12:return a.next=14,(0,qr.put)((0,Bi.B0)(n,r.id));case 14:case"end":return a.stop()}}),Ui)}function Yi(e){var t,n,r,o,i;return Gr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.serviceId,a.next=3,(0,qr.select)(ro.X8);case 3:return n=a.sent,a.next=6,(0,qr.select)(ro.xI);case 6:if(r=a.sent,o=n[t]){a.next=10;break}return a.abrupt("return");case 10:if(i=r[o.authId]){a.next=13;break}return a.abrupt("return");case 13:if(!o.success){a.next=18;break}return a.next=16,(0,qr.put)((0,Bi.HN)({authServiceId:i.id,tokenServiceId:o.id}));case 16:a.next=20;break;case 18:return a.next=20,(0,qr.put)((0,Bi._U)(i.id,o.id,{ok:!1}));case 20:case"end":return a.stop()}}),Gi)}function Qi(){return Gr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,qr.all)([(0,qr.takeEvery)(bn.default.RECEIVE_DEGRADED_INFO_RESPONSE,Xi),(0,qr.takeEvery)(bn.default.RECEIVE_ACCESS_TOKEN_FAILURE,Yi),(0,qr.takeEvery)(bn.default.RECEIVE_DEGRADED_INFO_RESPONSE,Zi),(0,qr.takeEvery)(bn.default.RECEIVE_ACCESS_TOKEN,Ki),(0,qr.takeEvery)(bn.default.RESET_AUTHENTICATION_STATE,$i)]);case 2:case"end":return e.stop()}}),qi)}function Ji(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 ea=Gr().mark(ta);function ta(e){return Gr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=1,t.next=4,(0,qr.call)(e);case 4:return t.abrupt("break",12);case 7:t.prev=7,t.t0=t.catch(1),console.log(t.t0);case 10:t.next=0;break;case 12:case"end":return t.stop()}}),ea,null,[[1,7]])}const na=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Gr().mark((function t(){var n;return Gr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[Wi,Pi,Po,mi,Qi].concat(function(e){if(Array.isArray(e))return Ji(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ji(e,t):void 0}}(r)||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.")}()),t.next=3,(0,qr.all)(n.map((function(e){return(0,qr.spawn)(ta,e)})));case 3:case"end":return t.stop()}var r}),t)}))},ra=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=function(e){return(0,v.HY)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){Vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({accessTokens:On,annotations:Cn,auth:In,catalog:Ln,companionWindows:Gn,config:Yn,elasticLayout:tr,errors:ur,infoResponses:hr,layers:yr,manifests:xr,searches:Tr,viewers:Rr,windows:Mr,workspace:Fr},e))}(e),a=qn.A.state.slice?(0,v.HY)((t={},r=i,(n=qn.A.state.slice)in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)):i,s=mn(),l=(0,v.y$)(a,(0,gn.tY)((0,v.Tw)(Ct,s)));return s.run(na(o)),l};var oa=__webpack_require__(15750);function ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const aa=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.plugins=St(n.plugins||[]),this.config=t,this.store=n.store||function(e){var t,n=St(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),r=ra((t=n)&&t.reduce((function(e,t){return wt(wt({},e),t.reducers)}),{}),function(e){return e&&e.filter((function(e){return e.saga})).map((function(e){return e.saga}))}(n));return r.dispatch((0,oa.KZ)(Qe()(function(e){return e&&e.reduce((function(e,t){return Qe()(e,t.config||{})}),{})}(n),e))),r}(this.config,this.plugins),t.id&&r.render(this.render(),document.getElementById(t.id))}var t,i;return t=e,i=[{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.createElement(o.Kq,{store:this.store},n.createElement(Xe,Object.assign({plugins:this.plugins},e)))}},{key:"unmount",value:function(){this.config.id&&r.unmountComponentAtNode(document.getElementById(this.config.id))}}],i&&ia(t.prototype,i),e}(),sa={viewer:function(e,t){var n;return n=Array.isArray(t)?{plugins:t}:t,new aa(e,n)}};var la=__webpack_require__(86078),ca=__webpack_require__(79731);const ua={actions:la,createStore:ra,reducers:t,sagas:e,selectors:ca};function da(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 fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?da(Object(n),!0).forEach((function(t){pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):da(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ha=fa(fa({},sa),ua);var ma=__webpack_require__(7639),ga=__webpack_require__(71382),va=__webpack_require__.n(ga),ya=__webpack_require__(70220),ba=__webpack_require__(79320),wa=__webpack_require__(91404),Ea=__webpack_require__(5925),xa=__webpack_require__(58520),Oa=__webpack_require__(34188),Sa=__webpack_require__(28296),Aa=__webpack_require__(46807),_a=__webpack_require__(19681),Ca=__webpack_require__(79626),Ta=__webpack_require__(44768),ka=__webpack_require__(38554),Pa=__webpack_require__(44041),Ia=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.state={open:n.open},r.handleChange=r.handleChange.bind(r),r.handleClick=r.handleClick.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleClick=function(){var e=this.props,t=e.value;"toggle"===e.variant?this.handleChange({},0===t?100:0):this.setState((function(e){return{open:!e.open}}))},t.prototype.handleChange=function(e,t){(0,this.props.onChange)(t)},t.prototype.render=function(){var e=this.props,t=e.children,r=e.containerId,o=e.label,i=e.max,a=e.min,s=e.value,l=e.type,c=e.variant,u=e.windowId,d=e.foregroundColor,f=e.classes,p=e.width,h=this.state.open,m=u+"-"+l,g=void 0;return(h||"toggle"===c&&s>0)&&(g=(0,_a.fade)(d,h?.1:.25)),n.createElement("div",{style:{display:"inline-block"}},n.createElement(ka.MiradorMenuButton,{id:m+"-label","aria-label":o,containerId:r,onClick:this.handleClick,"aria-expanded":h,"aria-controls":m,style:{backgroundColor:g}},t),h&&n.createElement("div",{id:m,"aria-labelledby":m+"-label",className:"MuiPaper-elevation4 "+f.slider},n.createElement(Pa.A,{orientation:["xs","sm"].indexOf(p)>=0?"horizontal":"vertical",min:a,max:i,value:s,onChange:this.handleChange})))},t}(n.Component);Ia.propTypes={},Ia.defaultProps={foregroundColor:"rgb(0, 0, 0)",min:0,max:100,open:!1,variant:"slider"};const Ra=va()((0,Ca.default)((function(e){var t,n=e.palette,r=e.breakpoints;return{slider:(t={backgroundColor:(0,_a.fade)(n.shades.main,.8),borderRadius:25,top:48,marginTop:2,position:"absolute",height:150,zIndex:100,marginLeft:2,padding:[[2,7,2,7]]},t[r.down("sm")]={top:"auto",right:48,width:150,height:"auto",marginTop:-46,marginBottom:2,padding:[[4,2,4,2]]},t)}})),(0,Ta.Ay)())(Ia);var ja=__webpack_require__(62645),Da=__webpack_require__(71762),Na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ma=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.label,r=e.variant,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["label","variant"]);return n.createElement(ka.MiradorMenuButton,Na({"aria-label":t},o),"left"===r?n.createElement(Da.A,null):n.createElement(ja.A,null))},t}(n.Component);Ma.propTypes={};var La=__webpack_require__(47625),za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wa=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.flipped,r=e.label,o=e.backgroundColor,i=e.foregroundColor,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["flipped","label","backgroundColor","foregroundColor"]);return n.createElement(ka.MiradorMenuButton,za({"aria-label":r,style:{backgroundColor:t&&(0,_a.fade)(i,.25)}},a),n.createElement(La.A,{style:{color:t&&o}}))},t}(n.Component);Wa.propTypes={},Wa.defaultProps={backgroundColor:"rgb(255, 255, 255)",foregroundColor:"rgb(0, 0, 0)"};var Ba=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.toggleState=r.toggleState.bind(r),r.toggleRotate=r.toggleRotate.bind(r),r.toggleFlip=r.toggleFlip.bind(r),r.handleChange=r.handleChange.bind(r),r.handleReset=r.handleReset.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.viewer&&this.applyFilters()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.viewConfig;t.viewer&&n!==e.viewConfig&&this.applyFilters()},t.prototype.handleChange=function(e){var t=this.props,n=t.updateViewport,r=t.windowId;return function(t){var o;return n(r,((o={})[e]=t,o))}},t.prototype.handleReset=function(){var e=this.props;(0,e.updateViewport)(e.windowId,{rotation:0,flip:!1,brightness:100,contrast:100,saturate:100,grayscale:0,invert:0})},t.prototype.applyFilters=function(){var e=this.props,t=e.viewConfig,n=t.brightness,r=void 0===n?100:n,o=t.contrast,i=void 0===o?100:o,a=t.saturate,s=void 0===a?100:a,l=t.grayscale,c=void 0===l?0:l,u=t.invert,d=void 0===u?0:u,f=e.viewer.canvas;if(f){var p=["brightness","contrast","saturate","grayscale","invert"],h=f.style.filter.split(" ").filter((function(e){return!p.some((function(t){return e.includes(t)}))}));h.push("brightness("+r+"%)"),h.push("contrast("+i+"%)"),h.push("saturate("+s+"%)"),h.push("grayscale("+c+"%)"),h.push("invert("+d+"%)"),f.style.filter=h.join(" ")}},t.prototype.toggleState=function(){var e=this.props,t=e.open;(0,e.updateWindow)(e.windowId,{imageToolsOpen:!t})},t.prototype.toggleRotate=function(e){var t=this.props,n=t.updateViewport,r=t.viewConfig,o=r.flip,i=void 0!==o&&o,a=r.rotation,s=void 0===a?0:a;n(t.windowId,{rotation:(s+(i?-1*e:e))%360})},t.prototype.toggleFlip=function(){var e=this.props,t=e.updateViewport,n=e.viewConfig.flip,r=void 0!==n&&n;t(e.windowId,{flip:!r})},t.prototype.render=function(){var e=this,t=this.props,r=t.classes,o=t.containerId,i=t.enabled,a=t.open,s=t.viewer,l=t.windowId,c=t.width,u=t.theme.palette,d=t.viewConfig,f=d.flip,p=void 0!==f&&f,h=d.brightness,m=void 0===h?100:h,g=d.contrast,v=void 0===g?100:g,y=d.saturate,b=void 0===y?100:y,w=d.grayscale,E=void 0===w?0:w,x=d.invert,O=void 0===x?0:x,S=t.t;if(!s||!i)return null;var A=u.shades.main,_=u.getContrastText(A),C=["xs","sm"].indexOf(c)>=0,T=n.createElement("div",{className:C&&a?r.borderContainer:""},n.createElement(ka.MiradorMenuButton,{"aria-expanded":a,"aria-haspopup":!0,"aria-label":S("collapse",{context:a?"open":"close"}),containerId:o,onClick:this.toggleState},a?n.createElement(Sa.A,null):n.createElement(Oa.A,null)));return n.createElement("div",{className:"MuiPaper-elevation4 "+r.root},C&&T,a&&n.createElement(n.Fragment,null,n.createElement("div",{className:r.borderContainer},n.createElement(Ma,{containerId:o,label:S("rotateRight"),onClick:function(){return e.toggleRotate(90)},variant:"right"}),n.createElement(Ma,{containerId:o,label:S("rotateLeft"),onClick:function(){return e.toggleRotate(-90)},variant:"left"}),n.createElement(Wa,{label:S("flip"),onClick:this.toggleFlip,flipped:p,containerId:o})),n.createElement("div",{className:r.borderContainer},n.createElement(Ra,{type:"brightness",label:S("brightness"),max:200,windowId:l,value:m,foregroundColor:_,containerId:o,onChange:this.handleChange("brightness")},n.createElement(ya.A,null)),n.createElement(Ra,{type:"contrast",label:S("contrast"),max:200,windowId:l,value:v,foregroundColor:_,containerId:o,onChange:this.handleChange("contrast")},n.createElement(Ea.A,{style:{transform:"rotate(180deg)"}})),n.createElement(Ra,{type:"saturate",label:S("saturation"),max:200,windowId:l,value:b,foregroundColor:_,containerId:o,onChange:this.handleChange("saturate")},n.createElement(wa.A,null)),n.createElement(Ra,{type:"grayscale",variant:"toggle",label:S("greyscale"),windowId:l,value:E,backgroundColor:A,foregroundColor:_,containerId:o,onChange:this.handleChange("grayscale")},n.createElement(ba.A,null)),n.createElement(Ra,{type:"invert",variant:"toggle",label:S("invert"),windowId:l,value:O,foregroundColor:_,containerId:o,onChange:this.handleChange("invert")},n.createElement(xa.A,null))),n.createElement("div",{className:C?"":r.borderContainer},n.createElement(ka.MiradorMenuButton,{"aria-label":S("revert"),containerId:o,onClick:this.handleReset},n.createElement(Aa.A,null)))),!C&&T)},t}(n.Component);Ba.propTypes={},Ba.defaultProps={enabled:!0,open:!0,viewer:void 0,viewConfig:{}};const Fa=va()((0,Ca.default)((function(e){var t,n,r=e.breakpoints,o=e.palette,i=o.shades.main,a=o.getContrastText(i),s="1px solid "+(0,_a.fade)(a,.2),l="linear-gradient(to bottom, "+(0,_a.fade)(a,0)+" 20%, "+(0,_a.fade)(a,.2)+" 20% 80%, "+(0,_a.fade)(a,0)+" 80% )",c=l.replace("to bottom","to right");return{root:(t={backgroundColor:(0,_a.fade)(i,.8),borderRadius:25,position:"absolute",top:8,right:8,zIndex:999,display:"flex",flexDirection:"row"},t[r.down("sm")]={flexDirection:"column"},t),borderContainer:(n={border:0,borderRight:s,borderImageSlice:1,borderImageSource:l,display:"flex",flexDirection:"row"},n[r.down("sm")]={flexDirection:"column",borderBottom:s,borderRight:"none",borderImageSource:c},n)}})),(0,Ta.Ay)())(Ba);var Ha=__webpack_require__(84630),Va=__webpack_require__(61466),Ua=__webpack_require__(77430),Ga=function(e){var t=e.enabled,r=e.handleClose,o=e.t,i=e.updateWindow,a=e.windowId;return n.createElement(Ha.A,{onClick:function(){r(),i(a,{imageToolsEnabled:!t})}},n.createElement(Va.A,null,n.createElement(Oa.A,null)),n.createElement(Ua.A,{primaryTypographyProps:{variant:"body1"}},o(t?"hide":"show")))};Ga.propTypes={},Ga.defaultProps={enabled:!0};const qa=Ga,$a=[{target:"OpenSeadragonViewer",mapDispatchToProps:{updateWindow:Do.uE,updateViewport:jo.yR},mapStateToProps:function(e,t){var n=t.windowId;return{containerId:(0,w.TW)(e),enabled:(0,zo.R2)(e,{windowId:n}).imageToolsEnabled||!1,open:(0,zo.R2)(e,{windowId:n}).imageToolsOpen||!1,viewConfig:(0,io.tk)(e,{windowId:n})||{}}},mode:"add",component:(0,ma.A)(Fa),config:{translations:{de:{brightness:"Helligkeit",collapse_open:"Bildbearbeitung ausblenden",collapse_close:"Bildbearbeitung einblenden",contrast:"Kontrast",flip:"Spiegeln",greyscale:"Darstellung in Graustufen",hide:"Bildbearbeitung verbergen",invert:"Umkehrung der Farben",revert:"Einstellungen zurücksetzen",rotateLeft:"Rotation links",rotateRight:"Rotation rechts",saturation:"Sättigung",show:"Bildbearbeitung anzeigen"},en:{brightness:"Brightness",collapse_open:"Collapse image tools",collapse_close:"Expand image tools",contrast:"Contrast",flip:"Flip",greyscale:"Greyscale",hide:"Hide image tools",invert:"Invert colors",revert:"Revert image",rotateLeft:"Rotate left",rotateRight:"Rotate right",saturation:"Saturation",show:"Show image tools"},fr:{brightness:"Luminosité",collapse_open:"Fermer les outils de réglages de l'image",collapse_close:"Ouvrir les outils de réglages de l'image",contrast:"Contraste",flip:"Miroir",greyscale:"Niveaux de gris",invert:"Inverser les couleurs",revert:"Réinitialiser les réglages",rotateLeft:"Rotation vers la gauche",rotateRight:"Rotation vers la droite",saturation:"Saturation"},sr:{brightness:"Осветљење",collapse_open:"Затворите алат",collapse_close:"Отворите алат",contrast:"Контраст",flip:"Окрени",greyscale:"Црнобело",hideImageTools:"Сакријте алат",invert:"Инверзија боја",revert:"Поништи подешавања",rotateLeft:"Ротирај лево",rotateRight:"Ротирај десно",saturation:"Сатурација",showImageTools:"Прикажите алат"}}}},{target:"WindowTopBarPluginMenu",component:qa,mode:"add",mapDispatchToProps:{updateWindow:Do.uE},mapStateToProps:function(e,t){var n=t.windowId;return{enabled:(0,zo.R2)(e,{windowId:n}).imageToolsEnabled||!1}}}];var Ka=__webpack_require__(30420);window.Mirador=ha,window.miradorPlugins=[...$a,...Ka.A]})()})(); |