diff --git a/frontend/front-srv/assets/gui.ajax/res/dist/libs/PydioWorkspaces.min.js b/frontend/front-srv/assets/gui.ajax/res/dist/libs/PydioWorkspaces.min.js index a0bb6f2877..c300ba15d7 100644 --- a/frontend/front-srv/assets/gui.ajax/res/dist/libs/PydioWorkspaces.min.js +++ b/frontend/front-srv/assets/gui.ajax/res/dist/libs/PydioWorkspaces.min.js @@ -1,2 +1,2 @@ /*! For license information please see PydioWorkspaces.min.js.LICENSE.txt */ -(()=>{var e={98973:(e,t,r)=>{var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},e.exports=n},35205:(e,t,r)=>{"use strict";var n=r(48619),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},l={};function s(e){return n.isMemo(e)?a:l[e.$$typeof]||o}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var o=d(r);o&&o!==m&&e(t,o,n)}var a=u(r);p&&(a=a.concat(p(r)));for(var l=s(t),y=s(r),h=0;h{"use strict";function t(e){return 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},t(e)}e.exports={set:function(e,r,n){if(e&&"object"==t(e)){if("string"==typeof r&&""!==r){var o=r.split(".");return o.reduce((function(e,t,r){return e[t]=e[t]||{},o.length==r+1&&(e[t]=n),e[t]}),e)}return"number"==typeof r?(e[r]=n,e[r]):e}return e},get:function(e,r){return e&&"object"==t(e)?"string"==typeof r&&""!==r?r.split(".").reduce((function(e,t){return e&&e[t]}),e):"number"==typeof r?e[r]:e:e},has:function(e,r,n){return n=n||{},!(!e||"object"!=t(e))&&("string"==typeof r&&""!==r?r.split(".").reduce((function(e,r,o,i){return o==i.length-1?n.own?!(!e||!e.hasOwnProperty(r)):!(null===e||"object"!=t(e)||!(r in e)):e&&e[r]}),e):"number"==typeof r&&r in e)},hasOwn:function(e,t,r){return this.has(e,t,r||{own:!0})},isIn:function(e,r,n,o){if(o=o||{},e&&"object"==t(e)){if("string"==typeof r&&""!==r){var i,a=r.split("."),l=!1;return i=!!a.reduce((function(e,t){return l=l||e===n||!!e&&e[t]===n,e&&e[t]}),e),o.validPath?l&&i:l}return!1}return!1}}},57860:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s{for(var n=r(48603),o="undefined"==typeof window?r.g:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],c=0;!l&&c{var n=r(98973),o=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||function(e){var t=+new Date,r=Math.max(0,16-(t-i)),n=setTimeout(e,r);return i=t,n},i=+new Date,a=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(o=o.bind(n),a=a.bind(n)),(e.exports=o).cancel=a},29768:(e,t)=>{"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)}var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,b=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function O(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case p:case f:case a:case s:case l:case m:return e;default:switch(e=e&&e.$$typeof){case u:case d:case b:case h:case c:return e;default:return t}}case i:return t}}}function x(e){return O(e)===f}t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=b,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||O(e)===p},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===c},t.isElement=function(e){return"object"===r(e)&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===b},t.isMemo=function(e){return O(e)===h},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===l},t.isSuspense=function(e){return O(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===l||e===m||e===y||"object"===r(e)&&null!==e&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===S||e.$$typeof===v)},t.typeOf=O},48619:(e,t,r)=>{"use strict";e.exports=r(29768)},55198:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},51640:(e,t,r)=>{"use strict";r(55198)},77032:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t10*y&&(n.accumulatedTime=0),0===n.accumulatedTime)return n.animationID=null,void n.startAnimationIfNecessary();var i=(n.accumulatedTime-Math.floor(n.accumulatedTime/y)*y)/y,a=Math.floor(n.accumulatedTime/y),l={},s={},p={},d={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var h=t[m];if("number"==typeof h)p[m]=h,d[m]=0,l[m]=h,s[m]=0;else{for(var b=n.state.lastIdealStyle[m],v=n.state.lastIdealVelocity[m],g=0;g{"use strict";function n(e){return n="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},n(e)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t10*y&&(n.accumulatedTime=0),0===n.accumulatedTime)return n.animationID=null,void n.startAnimationIfNecessary();for(var i=(n.accumulatedTime-Math.floor(n.accumulatedTime/y)*y)/y,a=Math.floor(n.accumulatedTime/y),l=[],s=[],p=[],d=[],m=0;m{"use strict";function n(e){return n="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},n(e)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t10*h&&(n.accumulatedTime=0),0===n.accumulatedTime)return n.animationID=null,void n.startAnimationIfNecessary();for(var a=(n.accumulatedTime-Math.floor(n.accumulatedTime/h)*h)/h,l=Math.floor(n.accumulatedTime/h),s=v(n.props.willEnter,n.props.willLeave,n.props.didLeave,n.state.mergedPropsStyles,r,n.state.currentStyles,n.state.currentVelocities,n.state.lastIdealStyles,n.state.lastIdealVelocities),u=s[0],f=s[1],m=s[2],y=s[3],g=s[4],w=0;w{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},82603:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n={},o=0;on[u])return-1;if(o>i[u]&&sn[u])return 1;if(a>i[u]&&l{"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},361:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e.default:e}var o=r(77032);t.y_=n(o),n(r(31809));var i=r(7149);t.bg=n(i);var a=r(70190);t.ST=n(a),n(r(26911)),n(r(20361)),n(r(39791))},39791:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){},e.exports=t.default},65954:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var o="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==o)return!1}return!0},e.exports=t.default},70190:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t{"use strict";t.__esModule=!0,t.default=function(e,t,n,o,i,a,l){var s=n+(-i*(t-o)+-a*n)*e,c=t+s*e;return Math.abs(s){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},16287:e=>{var t=function(e){return"string"==typeof e};e.exports=function(e,r,n){return Array.isArray(e)||(e=[e]),o=e.map((function(e){return t(e)?function(e,r,n){var o=0,i=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var a,l,s,c=r;(function(e){return e instanceof RegExp})(c)||(c=new RegExp("("+(a=c,l=/[\\^$.*+?()[\]{}|]/g,s=RegExp(l.source),(a&&s.test(a)?a.replace(l,"\\$&"):a)+")"),"gi"));for(var u=e.split(c),p=1,f=u.length;p{"use strict";r(57860);var n=r(16689),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},2038:(e,t,r)=>{"use strict";e.exports=r(6375)},70970:(e,t,r)=>{var n=r(17692),o=new Error("Element already at target scroll position"),i=new Error("Scroll cancelled"),a=Math.min;function l(e){return function(t,r,l,u){"function"==typeof(l=l||{})&&(u=l,l={}),"function"!=typeof u&&(u=c);var p=+new Date,f=t[e],d=l.ease||s,m=isNaN(l.duration)?350:+l.duration,y=!1;return f===r?u(o,t[e]):n((function o(l){if(y)return u(i,t[e]);var s=+new Date,c=a(1,(s-p)/m),h=d(c);t[e]=h*(r-f)+f,n(c<1?o:function(){u(null,t[e])})})),function(){y=!0}}}function s(e){return.5*(1-Math.cos(Math.PI*e))}function c(){}e.exports={left:l("scrollLeft"),top:l("scrollTop")}},28566:e=>{"use strict";e.exports=require("create-react-class")},39455:e=>{"use strict";e.exports=require("material-ui")},13173:e=>{"use strict";e.exports=require("material-ui/styles")},580:e=>{"use strict";e.exports=require("prop-types")},10757:e=>{"use strict";e.exports=require("pydio")},32697:e=>{"use strict";e.exports=require("pydio/model/context-menu")},45006:e=>{"use strict";e.exports=require("pydio/model/node")},17367:e=>{"use strict";e.exports=require("pydio/model/repository")},18262:e=>{"use strict";e.exports=require("pydio/util/dom")},9763:e=>{"use strict";e.exports=require("pydio/util/lang")},16689:e=>{"use strict";e.exports=require("react")},57345:e=>{"use strict";e.exports=require("react-textfit")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{default:()=>vk});var e=r(10757),t=r.n(e);function o(e){return o="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},o(e)}function i(e,t){for(var r=0;r0&&void 0!==arguments[0]&&arguments[0],r=this.props,n=r.node,o=r.loadThumbnail,i=r.richPreview;if(o||e){var a=t().getInstance(),l=a.Registry.findEditorsForMime(n.isLeaf()?n.getAjxpMime():"mime_folder",!0);if(l&&l.length||(i&&n.getMetadata().get("PDFPreview")?l=a.Registry.findEditorsForMime("pdf",!0):n.getMetadata().get("ImagePreview")&&(l=a.Registry.findEditorsForMime("jpg",!0)),l&&l.length)){var s=l[0].editorClass;a.Registry.loadEditorResources(l[0].resourcesManager,function(){var e=T().getFunctionByName(s,window);e&&this.loadPreviewFromEditor(e,n)}.bind(this))}}}},{key:"loadPreviewFromEditor",value:function(e,t){this.setState({EditorClass:this.props.richPreview?e.Panel:e.Badge})}},{key:"render",value:function(){var e,r=this.getStyles(),n=r.rootStyle,o=r.mimeFontStyle,i=r.progressColor,a=this.props,l=a.node,s=a.mimeClassName,c=a.processing,u=a.uploading,p=a.uploadprogress,f=a.displayLarge,d=this.state.EditorClass,m="";if(u)f&&(n.display="flex",n.alignItems="center",n.justifyContent="center"),e=React.createElement(q,{size:f?48:28,thickness:f?4:2,value:p,rootStyle:f?{}:{margin:6},fontSize:f?12:9,color:i,bgColor:"var(--md-sys-color-surface-variant)",trackColor:"transparent",onClick:function(){t().getInstance().Controller.fireAction("upload")}});else if(c)n.height>150?(e=React.createElement(E.CircularProgress,{size:30,thickness:2}),n.alignItems="center",n.justifyContent="center"):e=React.createElement(E.CircularProgress,{size:24,thickness:1.5,style:{margin:8}});else if(d)e=React.createElement(d,_({pydio:t().getInstance()},this.props,{preview:!0,mimeFontStyle:o})),m=" editor_mime_"+l.getAjxpMime();else{var y=l.getSvgSource()||(l.isLeaf()?"file":"folder");y&&!y.startsWith("icomoon")&&(y="mdi mdi-"+y),e=React.createElement("div",{key:"icon",className:s||"mimefont "+y,style:o})}return React.createElement("div",{ref:"container",style:n,className:"mimefont-container"+(d?" with-editor-badge":"")+m,onClick:this.props.onClick},e)}}],[{key:"propTypes",get:function(){return{node:d().instanceOf(AjxpNode).isRequired,loadThumbnail:d().bool,richPreview:d().bool,processing:d().bool,style:d().object,mimeFontStyle:d().object,mimeClassName:d().string}}},{key:"defaultProps",get:function(){return{richPreview:!1}}}]),n}(u.PureComponent);const V=(0,P.muiThemeable)()(U);function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function G(e,t){for(var r=0;r1?"s":""),r="MetaComments",n="InfoPanel"}return{tooltip:e,count:t,popoverNS:r,popoverComponent:n,clickAction:o}}},{key:"selectAndApply",value:function(e){var t=this.props,r=t.pydio,n=t.node,o=r.getContextHolder();o.getUniqueNode()===n?e.apply():(r.observeOnce("actions_refreshed",(function(){e.apply()})),o.setSelectedNodes([n]))}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.pydio,o=r.node,i=r.muiTheme,a=r.overlay,l=r.selected,s=r.tooltipPosition,c=void 0===s?"bottom-left":s,f=r.popoverDirection,d=r.style,m=r.className,y=new(k())(i.palette.primary1Color).saturationl(15).lightness(73).toString(),h=this.findAction(),b=h.tooltip,v=h.count,g=h.popoverNS,w=h.popoverComponent,S=h.clickAction;w?e=function(e){e.stopPropagation(),n.getContextHolder().setSelectedNodes([o]),t.setState({popoverAnchor:e.currentTarget,popoverOpen:!0})}:S&&(e=function(e){e.stopPropagation(),S()});var O=p().createElement(E.IconButton,{tooltip:b,tooltipPosition:c,iconClassName:a+" overlay-icon-span"+(m?" "+m:""),style:Q({width:30,height:30,padding:6,margin:"6px 2px",zIndex:0,cursor:e?"pointer":"default"},d),iconStyle:{color:l?"white":y,fontSize:15,transition:"none"},onClick:e,"data-icon-count":v});if(w){var x=this.state||{},P=x.popoverAnchor,j=x.popoverOpen;return p().createElement(u.Fragment,null,p().createElement(E.Popover,{open:j,anchorEl:P,anchorOrigin:{horizontal:f,vertical:"top"},targetOrigin:{horizontal:f,vertical:"top"},canAutoPosition:!0,onRequestClose:function(){t.setState({popoverOpen:!1})},style:{backgroundColor:"transparent",width:310},zDepth:2},p().createElement(ie,{namespace:g,componentName:w,pydio:n,node:o,popoverPanel:!0,popoverRequestClose:function(){t.setState({popoverOpen:!1})},onLoad:function(){window.dispatchEvent(new Event("resize"))}})),O)}return O}}],r&&te(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.Component);le=(0,P.muiThemeable)()(le);const se=require("lodash");var ce=r.n(se);function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},n=this.state.displayMode,o=0===n.indexOf("grid")||"masonry"===n;if(r&&r.parent)return p().createElement(V,{loadThumbnail:!1,node:e,mimeClassName:"mimefont mdi mdi-chevron-left",onClick:function(){t.entryHandleClicks(e,Pe.CLICK_TYPE_DOUBLE)},style:{cursor:"pointer"},lightBackground:o});var i=!!e.getMetadata().get("thumbnails")||!!e.getMetadata().get("ImagePreview"),a=!!e.getMetadata().get("Processing"),l="loading"===e.getMetadata().get("local:UploadStatus"),s=e.getMetadata().get("local:UploadProgress");return p().createElement(V,{loadThumbnail:!r.parentIsScrolling&&i&&!a,node:e,processing:a,lightBackground:o,displayLarge:o,mimeFontOverlay:"list"===n,uploading:l,uploadprogress:s})}},{key:"entryRenderActions",value:function(e){var t=null,n=this.props,o=n.pydio,i=n.dataModel,a=n.searchResults,l=this.state.displayMode,s=!o.Registry.hasPluginOfType("meta","user"),c=0===l.indexOf("grid-")||"masonry"===l,u=e.getMetadata().get("overlay_class")||"";if(e.getMetadata().has("local:entryRenderActions"))return e.getMetadata().get("local:entryRenderActions")(e,this.props,this.state);if(o.UI.MOBILE_EXTENSIONS){var f=r(32697);return p().createElement(E.IconButton,{iconClassName:"mdi mdi-dots-vertical",style:{zIndex:0,padding:10},tooltip:"Info",onClick:function(t){o.observeOnce("actions_refreshed",(function(){f.getInstance().openNodeAtPosition(e,t.clientX,t.clientY)})),t.stopPropagation(),i.setSelectedNodes([e]),f.getInstance().openNodeAtPosition(e,t.clientX,t.clientY)}})}if(u||"list"!==l){var d=u.split(",").filter((function(e){return!!e}));s&&(d=d.filter((function(e){return"mdi-tag"!==e&&"mdi-tag-outline"!==e}))),c&&(d=d.filter((function(e){return"mdi mdi-star"!==e})));var m,y=d.map((function(t){return p().createElement(le,{node:e,key:t,overlay:t,pydio:o,disableActions:!!a,tooltipPosition:c?"bottom-right":void 0,popoverDirection:c?"left":"right"})}));s||"list"===l||"masonry"===l||y.push(p().createElement(le,{pydio:o,node:e,overlay:"mdi mdi-tag-outline",disableActions:!!a,tooltipPosition:c?"bottom-right":void 0,popoverDirection:c?"left":"right"})),c&&y.unshift(p().createElement(le,{pydio:o,node:e,overlay:"mdi mdi-star"+(u.indexOf("mdi-star")>-1?"":"-outline"),disableActions:!!a,tooltipPosition:"bottom-right",clickActions:!0})),"detail"===l&&(m={width:34*y.length}),t=p().createElement("div",{className:"overlay_icon_div",style:m},y),0===l.indexOf("grid-")&&e.isLeaf()&&e.getMetadata().get("ImagePreview")&&e.getSvgSource()&&(t=p().createElement(p().Fragment,null,t,p().createElement("span",{style:{flex:1}}),p().createElement("div",{className:"mdi mdi-"+e.getSvgSource()+" mimefont mimefont-overlay"})))}return t}},{key:"entryHandleClicks",value:function(e,t,r){var n,o=this.props,i=o.dataModel,a=o.pydio,l=a.UI.MOBILE_EXTENSIONS||this.props.horizontalRibbon;if(i.getContextNode().getParent()!==e||t!==Pe.CLICK_TYPE_SIMPLE)if(l||t&&t!==Pe.CLICK_TYPE_SIMPLE)(l||t===Pe.CLICK_TYPE_DOUBLE)&&(e.isBrowsable()?a.goTo(e):(i.setSelectedNodes([e]),a.Controller.fireAction("open_with_unique")));else{var s=i.getSelectedNodes();if(r&&r.shiftKey&&s.length&&this.refs.list){var c=this.refs.list.computeSelectionFromCurrentPlusTargetNode(s,e);i.setSelectedNodes(c)}else if(r&&(r.ctrlKey||r.metaKey)&&s.length)if(-1===s.indexOf(e))i.setSelectedNodes([].concat(function(e){if(Array.isArray(e))return pe(e)}(n=s)||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 pe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pe(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.")}(),[e]));else{var u=s.filter((function(t){return t!==e}));i.setSelectedNodes(u)}else i.setSelectedNodes([e])}}},{key:"entryRenderSecondLine",value:function(e){var r=this.props,n=r.searchResults,o=r.searchScope,i=r.pydio,a=e.getMetadata(),l=[],s=[],c=[];if(a.has("pending_operation"))return a.has("pending_operation_uuid")?p().createElement(Ce,{jobID:a.get("pending_operation_uuid"),style:{display:"flex",flexDirection:"row-reverse",alignItems:"center"},progressStyle:{width:60,paddingRight:10},labelStyle:{flex:1}}):p().createElement("span",{style:{fontStyle:"italic",color:"rgba(0,0,0,.33)"}},a.get("pending_operation"));if(a.has("local:entryRenderSecondLine"))return a.get("local:entryRenderSecondLine")();if(a.has("local:entryDescription"))return p().createElement("span",{className:"metadata_chunk metadata_chunk_description"},a.get("local:entryDescription"));if(n){var u,f;if(e.getMetadata().has("repository_display")){var d=e.getMetadata().get("repository_display");"{{RefLabel}}"===d&&(d=i.getContextHolder().getRootNode().getLabel()),f="["+d+"]"}(u=e.isLeaf()?y().getDirname(e.getPath()):e.getPath())&&"/"===u.charAt(0)&&(u=u.substr(1)),"all"===o&&u?u=f+" "+u:u||(u=f),l.push(p().createElement("span",{className:"metadata_chunk metadata_chunk_description metadata_chunk_clickable",key:"result_path",style:{marginRight:5,cursor:"pointer"},onClick:function(t){t.stopPropagation(),i.goTo(e)}},u),p().createElement("span",null,"• "))}if(a.has("ajxp_modiftime")){var m=ke(1e3*parseFloat(a.get("ajxp_modiftime"))),h=m.calendar();h.indexOf("/")>-1&&(h=m.fromNow());var b=y().formatModifDate(m.toDate());l.push(p().createElement("span",{key:"time_description",title:b,className:"metadata_chunk metadata_chunk_description"},h))}a.has("etag")&&"temporary"===a.get("etag")&&e.isLeaf()&&l.push(p().createElement("span",{style:{marginLeft:5,marginRight:5},key:"etag_temp_description",title:t().getMessages()["ajax_gui.file.temporary-etag.tooltip"],className:"metadata_chunk metadata_chunk_description"},p().createElement("span",{className:"mdi mdi-alert-outline",style:{color:"#e57373"}})," ",t().getMessages()["ajax_gui.file.temporary-etag.flag"]));var v=this.state.columns;return Object.keys(v).forEach((function(t){var r,n=v[t],o=!1;if("ajxp_label"!==t&&"text"!==t&&"ajxp_modiftime"!==t&&!n.inlineHide){var i;if("ajxp_dirname"===t&&a.get("filename"))r=y().getDirname(a.get("filename"))||"/",o=!0;else if("bytesize"===t){if(!a.has(t)||"-"===a.get(t))return;r=y().roundFileSize(parseInt(a.get(t))),o=!0}else if(n.renderComponent){if(n.name=t,null===(r=n.renderComponent(e,n)))return}else{"mimestring"!==t&&"readable_dimension"!==t||(o=!0);var l=a.get(t)||"";if(!l)return;l.length&&l.length>26&&(l=p().createElement(p().Fragment,null,l.substr(0,26),"…")),r=l}i=p().createElement("span",{className:"mdi mdi-chevron-right"});var u="metadata_chunk metadata_chunk_"+(o?"standard":"other")+" metadata_chunk_"+t;n.renderComponent&&n.renderBlock&&(u+=" metadata_chunk_block");var f=p().createElement("span",{key:t,className:u},i,p().createElement("span",{className:"text_label"},r));o?s.push(f):c.push(f)}})),l.push.apply(l,c),i.Registry.hasPluginOfType("meta","user")&&l.push(p().createElement("span",{className:"metadata_chunk metadata_chunk_standard"},p().createElement(le,{pydio:i,node:e,overlay:"mdi mdi-tag-outline",style:{height:18,width:18,margin:0,padding:"1px 0"},disableActions:!!n,tooltipPosition:"bottom-right",popoverDirection:"left"}))),l.push.apply(l,s),l}},{key:"switchDisplayMode",value:function(e){var t=this;this.setState({displayMode:e},(function(){var r=null;0===e.indexOf("grid-")&&(r=parseInt(e.split("-")[1])),t.recomputeThumbnailsDimension(r),t.setPrefValue("FilesListDisplayMode",e),t.props.onDisplayModeChange&&t.props.onDisplayModeChange(e),t.props.pydio.notify("actions_refreshed")}))}},{key:"buildDisplayModeItems",value:function(){var e=this,r=this.state.displayMode,n=[{name:t().getMessages()["ajax_gui.list.display-mode.list"],title:227,icon_class:"mdi mdi-view-list",value:"list",hasAccessKey:!0,accessKey:"list_access_key"},{name:t().getMessages()["ajax_gui.list.display-mode.details"],title:461,icon_class:"mdi mdi-view-headline",value:"detail",hasAccessKey:!0,accessKey:"detail_access_key"},{name:t().getMessages()["ajax_gui.list.display-mode.thumbs"],title:229,icon_class:"mdi mdi-view-grid",value:"grid-160",hasAccessKey:!0,accessKey:"thumbs_access_key",highlight:function(e){return 0===e.indexOf("grid-")}}];return 0===r.indexOf("grid-")&&n.push({name:t().getMessages()["ajax_gui.list.display-mode.thumbs-large"],icon_class:"mdi mdi-arrow-up",value:"grid-320"},{name:t().getMessages()["ajax_gui.list.display-mode.thumbs-small"],icon_class:"mdi mdi-arrow-down",value:"grid-80"}),n.push({name:t().getMessages()["ajax_gui.list.display-mode.masonry"],icon_class:"mdi mdi-view-dashboard",value:"masonry",highlight:function(e){return 0===e.indexOf("masonry")}}),0===r.indexOf("masonry")&&n.push({name:t().getMessages()["ajax_gui.list.display-mode.thumbs-large"],icon_class:"mdi mdi-arrow-up",value:"masonry-440"},{name:t().getMessages()["ajax_gui.list.display-mode.thumbs-small"],icon_class:"mdi mdi-arrow-down",value:"masonry-100"}),n.map((function(t){var n=be({},t),o=t.value;return n.callback=function(){e.switchDisplayMode(n.value)},(o===r||n.highlight&&n.highlight(r))&&(n.name=p().createElement("span",{style:{fontWeight:500,display:"flex"}},p().createElement("span",{style:{flex:1}},n.name),o===r&&p().createElement("span",{className:"mdi mdi-checkbox-marked-circle-outline"}))),n}))}},{key:"buildShowExtensionsItems",value:function(){var e=this,r=this.state,n=r.showExtensions,o=r.pinBookmarks;return[{name:t().getMessages()["ajax_gui.list.extensions.show"],icon_class:n?"mdi mdi-toggle-switch":"mdi mdi-toggle-switch-off",callback:function(){e.setState({showExtensions:!n},(function(){e.props.pydio.notify("actions_refreshed"),e.setPrefValue("FilesListShowExtensions",!n)}))}},{name:t().getMessages()["ajax_gui.list.pin.bookmarks"],icon_class:o?"mdi mdi-toggle-switch":"mdi mdi-toggle-switch-off",callback:function(){e.setState({pinBookmarks:!o},(function(){e.props.pydio.notify("actions_refreshed"),e.setPrefValue("FilesListPinBookmarks",!o)}))}}]}},{key:"getPydioActions",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return["switch_display_mode","toggle_show_extensions"];var e=new(S())({name:"switch_display_mode",icon_class:"mdi mdi-view-list",text_id:150,title_id:151,text:t().getMessages()[150],title:t().getMessages()[151],hasAccessKey:!1,subMenu:!0,subMenuUpdateImage:!0},{selection:!1,dir:!0,actionBar:!0,actionBarGroup:"display_toolbar",contextMenu:!1,infoPanel:!1},{},{},{dynamicBuilder:this.buildDisplayModeItems.bind(this)}),r=new Map;r.set("switch_display_mode",e);var n=new(S())({name:"toggle_show_extensions",icon_class:"mdi mdi-format-size",text_id:"ajax_gui.list.extensions.action",text:t().getMessages()["ajax_gui.list.extensions.action"],subMenu:!0,subMenuUpdateImage:!0},{selection:!1,dir:!0,actionBar:!0,actionBarGroup:"display_toolbar",contextMenu:!1,infoPanel:!1},{},{},{dynamicBuilder:this.buildShowExtensionsItems.bind(this)});return r.set("toggle_show_extensions",n),r}},{key:"render",value:function(){var e,t,r,n,o,i,a=this,l=this.props,s=l.pydio,c=l.dataModel,u=l.style,f=l.onScroll,d=this.state,m=d.contextNode,y=d.displayMode,h=d.columns,b=d.thumbSize,v=d.pinBookmarks,g="files-list layout-fill main-files-list",w=1,S=y;if(0===S.indexOf("grid-")&&(i=parseInt(S.split("-")[1]),S="grid"),"detail"===S)n=Pe.HEIGHT_ONE_LINE,e=h;else if("grid"===S){t=h,g+=" material-list-grid grid-size-"+i;var O=80===i?16:36;(w=this.state.elementsPerLine)>0&&(n=Math.ceil((b+O)/w)),n&&!this.props.horizontalRibbon||(n=1),r={width:b,height:b+O},this.props.horizontalRibbon&&(g+=" horizontal-ribbon")}else"list"===S&&(t=h,n=Pe.HEIGHT_TWO_LINES,o=this.entryRenderSecondLine.bind(this));var x=s.MessageHash,P=s.Controller.getActionByName("upload")&&!m.getMetadata().has("node_readonly"),E=x[P?"565":"566"],j=P?"mdi mdi-cloud-upload":"mdi mdi-folder-outline",k={style:{backgroundColor:"transparent"},iconClassName:j,primaryTextId:x[562],secondaryTextId:E};if(m.isRoot()){var C=!(!s.user||!s.user.activeRepository)&&s.user.getRepositoriesList().get(s.user.activeRepository).getOwner(),T=m.getMetadata().get("repo_has_recycle");k={style:{backgroundColor:"transparent"},iconClassName:j,primaryTextId:C?x[631]:x[563],secondaryTextId:E},T&&(k=be(be({},k),{},{checkEmptyState:function(e){return e.isLoaded()&&1===e.getChildren().size&&e.getChildren().get(T)},actionLabelId:x[567],actionIconClassName:"mdi mdi-delete",actionCallback:function(){s.goTo(T)}}))}else{var R=c.getRootNode().getMetadata().get("repo_has_recycle");m.getPath()===R&&(k=be(be({},k),{},{iconClassName:"mdi mdi-delete-empty",primaryTextId:x[564],secondaryTextId:null}))}m.getMetadata().has("local:custom-list-classes")&&(g+=" "+m.getMetadata().get("local:custom-list-classes").join(" "));var _,M=this.props,I=M.searchResults,A=M.searchScope,D=M.searchLoading,N={};if(I?(N={skipParentNavigation:!0},"all"===A&&(N=be(be({},N),{},{defaultGroupBy:"repository_id",groupByLabel:"repository_display"})),k={primaryTextId:D?"searchengine.searching":478,style:{backgroundColor:"transparent"}}):v&&(N={groupSkipUnique:!0,defaultGroupBy:"bookmark",groupByValueFunc:function(e){return"true"===e?-1:1},renderGroupLabels:function(e,t){return-1===t?p().createElement("span",null,p().createElement("span",{className:"mdi mdi-pin"})," ",s.MessageHash[147]):p().createElement("span",null,p().createElement("span",{className:"mdi mdi-folder-multiple-outline"})," ",s.MessageHash["ajax_gui.pinned-bookmarks.other"])}}),0===S.indexOf("masonry")){var L=220;return 0===S.indexOf("masonry-")&&(L=parseInt(S.replace("masonry-",""))),p().createElement(p().Fragment,null,p().createElement(Ee,{className:"masonry-grid masonry-size-"+L,dataModel:c,entryProps:{handleClicks:this.entryHandleClicks.bind(this),renderIcon:this.entryRenderIcon.bind(this),renderActions:this.entryRenderActions.bind(this)},emptyStateProps:k,containerStyle:u,columnWidth:L,onScroll:f}))}var z=this.props.onSortingInfoChange;return z&&(_=function(e){var t;if(e.attribute)if(h[e.attribute])t=h[e.attribute].label;else if(e.remote){var r=Object.keys(h).map((function(e){return h[e]})).filter((function(t){return t.remoteSortAttribute===e.attribute}));r.length&&(t=r[0].label)}z(be(be({},e),{},{label:t}))}),p().createElement(Pe,ue({ref:"list",pydio:s,tableKeys:e,sortKeys:t,node:m,dataModel:c,observeNodeReload:!0,className:g,actionBarGroups:["change_main"],skipInternalDataModel:!0,style:be(be({},u),{}),displayMode:S,usePlaceHolder:!0,onScroll:f,elementsPerLine:w,elementHeight:n,elementStyle:r,passScrollingStateToChildren:!0,entryRenderIcon:this.entryRenderIcon.bind(this),entryRenderParentIcon:this.entryRenderIcon.bind(this),entryRenderFirstLine:function(e){return a.computeLabel(e)},entryRenderSecondLine:o,entryRenderActions:this.entryRenderActions.bind(this),entryHandleClicks:this.entryHandleClicks.bind(this),entriesProps:"grid"===S?{selectedAsBorder:!0,noHover:!0}:{},horizontalRibbon:this.props.horizontalRibbon,emptyStateProps:k,defaultSortingInfo:{sortType:"file-natural",attribute:"",direction:"asc"},sortingPreferenceKey:"FilesListSortingInfo",onSortingInfoChange:_,hideToolbar:!0,customToolbar:p().createElement(X,{pydio:s})},N))}}]),a}(p().Component);function _e(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function He(e){if(e.type)return e;if("#"===e.charAt(0))return He(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Fe(9,e));var n,o=e.substring(t+1,e.length-1);if("color"===r){if(n=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Fe(10,n))}else o=o.split(",");return{type:r,values:o=o.map((function(e){return parseFloat(e)})),colorSpace:n}}function qe(e){var t=e.type,r=e.colorSpace,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],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function Ue(e){var t="hsl"===(e=He(e)).type||"hsla"===e.type?He(function(e){var t=(e=He(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),qe({type:l,values:s})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ve(e,t){return e=He(e),t=We(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,qe(e)}function Ke(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}const Ge=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}};var $e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const Ye=Ge((function(e){return $e.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Xe=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?nt(dt,--pt):0,ct--,10===ft&&(ct=1,st--),ft}function bt(){return ft=pt2||St(ft)>3?"":" "}function jt(e,t){for(;--t&&bt()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return wt(e,gt()+(t<6&&32==vt()&&32==bt()))}function kt(e){for(;bt();)switch(ft){case e:return pt;case 34:case 39:34!==e&&39!==e&&kt(ft);break;case 40:41===e&&kt(e);break;case 92:bt()}return pt}function Ct(e,t){for(;bt()&&e+ft!==57&&(e+ft!==84||47!==vt()););return"/*"+wt(t,pt-1)+"*"+Ze(47===e?e:bt())}function Tt(e){for(;!St(vt());)bt();return wt(e,pt)}var Rt="-ms-",_t="-moz-",Mt="-webkit-",It="comm",At="rule",Dt="decl",Nt="@import",Lt="@keyframes";function zt(e,t){for(var r="",n=at(e),o=0;o0&&it(x)-p&<(d>32?Ut(x+";",n,r,p-1):Ut(tt(x," ","")+";",n,r,p-2),s);break;case 59:x+=";";default:if(lt(O=Ht(x,t,r,c,u,o,l,g,w=[],S=[],p),i),123===v)if(0===u)Wt(x,t,O,O,w,i,p,l,S);else switch(99===f&&110===nt(x,3)?100:f){case 100:case 109:case 115:Wt(e,O,O,n&<(Ht(e,O,O,0,0,o,l,g,o,w=[],p),S),o,S,p,l,n?w:S);break;default:Wt(x,O,O,O,[""],S,0,l,S)}}c=u=d=0,y=b=1,g=x="",p=a;break;case 58:p=1+it(x),d=m;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==ht())continue;switch(x+=Ze(v),v*y){case 38:b=u>0?1:(x+="\f",-1);break;case 44:l[c++]=(it(x)-1)*b,b=1;break;case 64:45===vt()&&(x+=Pt(bt())),f=vt(),u=p=it(g=x+=Tt(gt())),v++;break;case 45:45===m&&2==it(x)&&(y=0)}}return i}function Ht(e,t,r,n,o,i,a,l,s,c,u){for(var p=o-1,f=0===o?i:[""],d=at(f),m=0,y=0,h=0;m0?f[b]+" "+v:tt(v,/&\f/g,f[b])))&&(s[h++]=g);return mt(e,t,r,0===o?At:l,s,c,u)}function qt(e,t,r){return mt(e,t,r,It,Ze(ft),ot(e,2,-2),0)}function Ut(e,t,r,n){return mt(e,t,r,Dt,ot(e,0,n),ot(e,n+1,-1),n)}var Vt=function(e,t,r){for(var n=0,o=0;n=o,o=vt(),38===n&&12===o&&(t[r]=1),!St(o);)bt();return wt(e,pt)},Kt=new WeakMap,Gt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Kt.get(r))&&!n){Kt.set(e,!0);for(var o=[],i=function(e,t){return xt(function(e,t){var r=-1,n=44;do{switch(St(n)){case 0:38===n&&12===vt()&&(t[r]=1),e[r]+=Vt(pt-1,t,r);break;case 2:e[r]+=Pt(n);break;case 4:if(44===n){e[++r]=58===vt()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ze(n)}}while(n=bt());return e}(Ot(e),t))}(t,o),a=r.props,l=0,s=0;l6)switch(nt(e,t+1)){case 109:if(45!==nt(e,t+4))break;case 102:return tt(e,/(.+:)(.+)-([^]+)/,"$1"+Mt+"$2-$3$1"+_t+(108==nt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rt(e,"stretch")?Yt(tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==nt(e,t+1))break;case 6444:switch(nt(e,it(e)-3-(~rt(e,"!important")&&10))){case 107:return tt(e,":",":"+Mt)+e;case 101:return tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Mt+(45===nt(e,14)?"inline-":"")+"box$3$1"+Mt+"$2$3$1"+Rt+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return Mt+e+Rt+tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mt+e+Rt+tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mt+e+Rt+tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Mt+e+Rt+e+e}return e}var Xt=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Dt:e.return=Yt(e.value,e.length);break;case Lt:return zt([yt(e,{value:tt(e.value,"@","@"+Mt)})],n);case At:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return zt([yt(e,{props:[tt(t,/:(read-\w+)/,":"+_t+"$1")]})],n);case"::placeholder":return zt([yt(e,{props:[tt(t,/:(plac\w+)/,":"+Mt+"input-$1")]}),yt(e,{props:[tt(t,/:(plac\w+)/,":"+_t+"$1")]}),yt(e,{props:[tt(t,/:(plac\w+)/,Rt+"input-$1")]})],n)}return""}))}}];const Jt=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,i=e.stylisPlugins||Xt,a={},l=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},Qt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function er(e){return er="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},er(e)}var tr=/[A-Z]|^ms/g,rr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nr=function(e){return 45===e.charCodeAt(1)},or=function(e){return null!=e&&"boolean"!=typeof e},ir=Ge((function(e){return nr(e)?e:e.replace(tr,"-$&").toLowerCase()})),ar=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(rr,(function(e,t,r){return sr={name:t,styles:r,next:sr},t}))}return 1===Qt[e]||nr(e)||"number"!=typeof t||0===t?t:t+"px"};function lr(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(er(r)){case"boolean":return"";case"object":if(1===r.anim)return sr={name:r.name,styles:r.styles,next:sr},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)sr={name:n.name,styles:n.styles,next:sr},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?gr:wr},Or=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},xr=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return br(t,r,n),fr((function(){return vr(t,r,n)})),null};var Pr=function e(t,r){var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=Or(t,r,i),s=l||Sr(a),c=!s("as");return function(){var p=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{f.push(p[0][0]);for(var d=p.length,m=1;m2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Le({},e):e;return Cr(e)&&Cr(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Cr(t[o])&&o in e&&Cr(e[o])?n[o]=Rr(e[o],t[o],r):r.clone?n[o]=Cr(t[o])?Tr(t[o]):t[o]:n[o]=t[o])})),n}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)}var Mr=["values","unit","step"],Ir=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return Le({},e,function(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_r(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t.key,t.val))}),{})};const Ar={borderRadius:4};function Dr(e){return Dr="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},Dr(e)}var Nr={xs:0,sm:600,md:900,lg:1200,xl:1536},Lr={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Nr[e],"px)")}};function zr(e,t,r){var n=e.theme||{};if(Array.isArray(t)){var o=n.breakpoints||Lr;return t.reduce((function(e,n,i){return e[o.up(o.keys[i])]=r(t[i]),e}),{})}if("object"===Dr(t)){var i=n.breakpoints||Lr;return Object.keys(t).reduce((function(e,n){if(-1!==Object.keys(i.values||Nr).indexOf(n))e[i.up(n)]=r(t[n],n);else{var o=n;e[o]=t[o]}return e}),{})}return r(t)}function Br(e){if("string"!=typeof e)throw new Error(Fe(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fr(e){return Fr="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},Fr(e)}function Wr(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){var n="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=n)return n}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function Hr(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:Wr(e,r)||o,t&&(n=t(n,o,e)),n}const qr=function(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Wr(e.theme,o)||{};return zr(e,r,(function(e){var r=Hr(a,i,e);return e===r&&"string"==typeof e&&(r=Hr(a,i,"".concat(t).concat("default"===e?"":Br(e)),e)),!1===n?r:function(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Fr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Fr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,r)}))};return a.propTypes={},a.filterProps=[t],a},Ur=function(e,t){return t?Rr(e,t,{clone:!1}):e};function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2){if(!Xr[e])return[e];e=Xr[e]}var t,r,n=(t=e.split(""),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vr(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.")}()),o=n[0],i=n[1],a=$r[o],l=Yr[i]||"";return Array.isArray(l)?l.map((function(e){return a+e})):[a+l]},Gr={},function(e){return void 0===Gr[e]&&(Gr[e]=Kr(e)),Gr[e]}),Zr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],en=[].concat(Zr,Qr);function tn(e,t,r,n){var o,i=null!=(o=Wr(e,t,!1))?o:r;return"number"==typeof i?function(e){return"string"==typeof e?e:i*e}:Array.isArray(i)?function(e){return"string"==typeof e?e:i[e]}:"function"==typeof i?i:function(){}}function rn(e){return tn(e,"spacing",8)}function nn(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}function on(e,t){var r=rn(e.theme);return Object.keys(e).map((function(n){return function(e,t,r,n){if(-1===t.indexOf(r))return null;var o=function(e,t){return function(r){return e.reduce((function(e,n){return e[n]=nn(t,r),e}),{})}}(Jr(r),n);return zr(e,e[r],o)}(e,t,n,r)})).reduce(Ur,{})}function an(e){return on(e,Zr)}function ln(e){return on(e,Qr)}function sn(e){return on(e,en)}an.propTypes={},an.filterProps=Zr,ln.propTypes={},ln.filterProps=Qr,sn.propTypes={},sn.filterProps=en;const cn=function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,r){return e[t.up(r)]={},e}),{}))||{}}(l.breakpoints),a=Object.keys(i),c=i;return Object.keys(n).forEach((function(r){var o,i="function"==typeof(o=n[r])?o(l):o;if(null!=i)if("object"===An(i))if(s[r])c=Ur(c,e(r,i,l,s));else{var a=zr({theme:l},i,(function(e){return Dn({},r,e)}));!function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,r=void 0===t?{}:t,n=e.palette,o=void 0===n?{}:n,i=e.spacing,a=e.shape,l=void 0===a?{}:a,s=Ke(e,zn),c=function(e){var t=e.values,r=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,n=e.unit,o=void 0===n?"px":n,i=e.step,a=void 0===i?5:i,l=Ke(e,Mr),s=Ir(r),c=Object.keys(s);function u(e){var t="number"==typeof r[e]?r[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function p(e){var t="number"==typeof r[e]?r[e]:e;return"@media (max-width:".concat(t-a/100).concat(o,")")}function f(e,t){var n=c.indexOf(t);return"@media (min-width:".concat("number"==typeof r[e]?r[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof r[c[n]]?r[c[n]]:t)-a/100).concat(o,")")}return Le({keys:c,values:s,up:u,down:p,between:f,only:function(e){return c.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=rn({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n1?f-1:0),m=1;me.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,r=void 0===t?{}:t,n=e.palette,o=void 0===n?{}:n,i=e.transitions,a=void 0===i?{}:i,l=e.typography,s=void 0===l?{}:l,c=_e(e,_o);if(e.vars)throw new Error(Fe(18));var u,p,f,d,m,y,h=function(e){var t=e.mode,r=void 0===t?"light":t,n=e.contrastThreshold,o=void 0===n?3:n,i=e.tonalOffset,a=void 0===i?.2:i,l=_e(e,po),s=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:so[200],light:so[50],dark:so[400]}:{main:so[700],light:so[400],dark:so[800]}}(r),c=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:io[200],light:io[50],dark:io[400]}:{main:io[500],light:io[300],dark:io[700]}}(r),u=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:ao[500],light:ao[300],dark:ao[700]}:{main:ao[700],light:ao[400],dark:ao[800]}}(r),p=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:co[400],light:co[300],dark:co[700]}:{main:co[700],light:co[500],dark:co[900]}}(r),f=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:uo[400],light:uo[300],dark:uo[700]}:{main:uo[800],light:uo[500],dark:uo[900]}}(r),d=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:lo[400],light:lo[300],dark:lo[700]}:{main:"#ed6c02",light:lo[500],dark:lo[900]}}(r);function m(e){var t=function(e,t){var r=Ue(e),n=Ue(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,mo.text.primary)>=o?mo.text.primary:fo.text.primary;return t}var y=function(e){var t=e.color,r=e.name,n=e.mainShade,o=void 0===n?500:n,i=e.lightShade,l=void 0===i?300:i,s=e.darkShade,c=void 0===s?700:s;if(!(t=Me({},t)).main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(Fe(11,r?" (".concat(r,")"):"",o));if("string"!=typeof t.main)throw new Error(Fe(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return yo(t,"light",l,a),yo(t,"dark",c,a),t.contrastText||(t.contrastText=m(t.main)),t},h={dark:mo,light:fo};return Rr(Me({common:Me({},no),mode:r,primary:y({color:s,name:"primary"}),secondary:y({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:u,name:"error"}),warning:y({color:d,name:"warning"}),info:y({color:p,name:"info"}),success:y({color:f,name:"success"}),grey:oo,contrastThreshold:o,getContrastText:m,augmentColor:y,tonalOffset:a},h[r]),l)}(o),b=Bn(e),v=Rr(b,{mixins:(d=b.breakpoints,m=r,Me({toolbar:(y={minHeight:56},ro(y,d.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),ro(y,d.up("sm"),{minHeight:64}),y)},m)),palette:h,shadows:Po.slice(),typography:go(h,s),transitions:(u=a,p=Me({},jo,u.easing),f=Me({},ko,u.duration),Me({getAutoHeightDuration:To,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.duration,n=void 0===r?f.standard:r,o=t.easing,i=void 0===o?p.easeInOut:o,a=t.delay,l=void 0===a?0:a;return _e(t,Eo),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof n?n:Co(n)," ").concat(i," ").concat("string"==typeof l?l:Co(l))})).join(",")}},u,{easing:p,duration:f})),zIndex:Me({},Ro)});v=Rr(v,c);for(var g=arguments.length,w=new Array(g>1?g-1:0),S=1;S0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,r=void 0===t?eo:t,n=e.rootShouldForwardProp,o=void 0===n?Qn:n,i=e.slotShouldForwardProp,a=void 0===i?Qn:i,l=function(e){var t=Yn(e.theme)?r:e.theme;return Ln(Le({},e,{theme:t}))};return l.__mui_systemSx=!0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jr(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var n=t.name,i=t.slot,s=t.skipVariantsResolver,c=t.skipSx,u=t.overridesResolver,p=Ke(t,Kn),f=void 0!==s?s:i&&"Root"!==i||!1,d=c||!1,m=Qn;"Root"===i?m=o:i?m=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);var y=function(e,t){return Er(e,t)}(e,Le({shouldForwardProp:m,label:void 0},p)),h=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i0){var p=new Array(c).fill("");(s=[].concat(qn(e),qn(p))).raw=[].concat(qn(e.raw),qn(p))}else"function"==typeof e&&e.__emotion_real!==e&&(s=function(t){var n=t.theme,o=Ke(t,$n);return e(Le({theme:Yn(n)?r:n},o))});return y.apply(void 0,[s].concat(qn(a)))};return y.withConfig&&(h.withConfig=y.withConfig),h}}({defaultTheme:Mo,rootShouldForwardProp:Io});const No=Do,Lo=u.createContext(null);function zo(){return u.useContext(Lo)}const Bo=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=zo();return r&&(e=r,0!==Object.keys(e).length)?r:t};var Fo=Bn();const Wo=function(){return Bo(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fo)};function Ho(){return Wo(Mo)}function qo(e,t){var r=Le({},t);return Object.keys(e).forEach((function(n){if(n.toString().match(/^(components|slots)$/))r[n]=Le({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){var o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Le({},i),Object.keys(o).forEach((function(e){r[n][e]=qo(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Uo(e){var t=e.theme,r=e.name,n=e.props;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?qo(t.components[r].defaultProps,n):n}function Vo(e){return function(e){var t=e.props,r=e.name;return Uo({theme:Wo(e.defaultTheme),name:r,props:t})}({props:e.props,name:e.name,defaultTheme:Mo})}const Ko=Br;function Go(e,t){return Go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Go(e,t)}function $o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Go(e,t)}const Yo=p().createContext(null);var Xo="unmounted",Jo="exited",Zo="entering",Qo="entered",ei="exiting",ti=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Jo,n.appearStatus=Zo):o=Qo:o=t.unmountOnExit||t.mountOnEnter?Xo:Jo,n.state={status:o},n.nextCallback=null,n}$o(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Xo?{status:Jo}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Zo&&r!==Qo&&(t=Zo):r!==Zo&&r!==Qo||(t=ei)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Zo){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:x().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jo&&this.setState({status:Xo})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[x().findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;e||r?(this.props.onEnter(i,a),this.safeSetState({status:Zo},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Qo},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Qo},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:x().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:ei},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Jo},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Jo},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:x().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Xo)return null;var t=this.props,r=t.children,n=(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,Ke(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return p().createElement(Yo.Provider,{value:null},"function"==typeof r?r(e,n):p().cloneElement(p().Children.only(r),n))},t}(p().Component);function ri(){}ti.contextType=Yo,ti.propTypes={},ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ri,onEntering:ri,onEntered:ri,onExit:ri,onExiting:ri,onExited:ri},ti.UNMOUNTED=Xo,ti.EXITED=Jo,ti.ENTERING=Zo,ti.ENTERED=Qo,ti.EXITING=ei;const ni=ti;function oi(e){return oi="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},oi(e)}var ii=function(e){return e.scrollTop};function ai(e,t){var r,n,o=e.timeout,i=e.easing,a=e.style,l=void 0===a?{}:a;return{duration:null!=(r=l.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=l.transitionTimingFunction)?n:"object"===oi(i)?i[t.mode]:i,delay:l.transitionDelay}}function li(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function si(){for(var e=arguments.length,t=new Array(e),r=0;r0&&Ei(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ei(n.height)/e.offsetHeight||1);var a=(wi(e)?gi(e):window).visualViewport,l=!ki()&&r,s=(n.left+(l&&a?a.offsetLeft:0))/o,c=(n.top+(l&&a?a.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:s+u,bottom:c+p,left:s,x:s,y:c}}function Ti(e){var t=gi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ri(e){return e?(e.nodeName||"").toLowerCase():null}function _i(e){return((wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mi(e){return Ci(_i(e)).left+Ti(e).scrollLeft}function Ii(e){return gi(e).getComputedStyle(e)}function Ai(e){var t=Ii(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Di(e,t,r){void 0===r&&(r=!1);var n=Si(t),o=Si(t)&&function(e){var t=e.getBoundingClientRect(),r=Ei(t.width)/e.offsetWidth||1,n=Ei(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),i=_i(t),a=Ci(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&(("body"!==Ri(t)||Ai(i))&&(l=function(e){return e!==gi(e)&&Si(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ti(e);var t}(t)),Si(t)?((s=Ci(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Mi(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Ni(e){var t=Ci(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Li(e){return"html"===Ri(e)?e:e.assignedSlot||e.parentNode||(Oi(e)?e.host:null)||_i(e)}function zi(e){return["html","body","#document"].indexOf(Ri(e))>=0?e.ownerDocument.body:Si(e)&&Ai(e)?e:zi(Li(e))}function Bi(e,t){var r;void 0===t&&(t=[]);var n=zi(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=gi(n),a=o?[i].concat(i.visualViewport||[],Ai(n)?n:[]):n,l=t.concat(a);return o?l:l.concat(Bi(Li(a)))}function Fi(e){return["table","td","th"].indexOf(Ri(e))>=0}function Wi(e){return Si(e)&&"fixed"!==Ii(e).position?e.offsetParent:null}function Hi(e){for(var t=gi(e),r=Wi(e);r&&Fi(r)&&"static"===Ii(r).position;)r=Wi(r);return r&&("html"===Ri(r)||"body"===Ri(r)&&"static"===Ii(r).position)?t:r||function(e){var t=/firefox/i.test(ji());if(/Trident/i.test(ji())&&Si(e)&&"fixed"===Ii(e).position)return null;var r=Li(e);for(Oi(r)&&(r=r.host);Si(r)&&["html","body"].indexOf(Ri(r))<0;){var n=Ii(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var qi="top",Ui="bottom",Vi="right",Ki="left",Gi="auto",$i=[qi,Ui,Vi,Ki],Yi="start",Xi="end",Ji="clippingParents",Zi="viewport",Qi="popper",ea="reference",ta=$i.reduce((function(e,t){return e.concat([t+"-"+Yi,t+"-"+Xi])}),[]),ra=[].concat($i,[Gi]).reduce((function(e,t){return e.concat([t,t+"-"+Yi,t+"-"+Xi])}),[]),na=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function oa(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function ia(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var aa={placement:"bottom",modifiers:[],strategy:"absolute"};function la(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function da(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?ua(o):null,a=o?pa(o):null,l=r.x+r.width/2-n.width/2,s=r.y+r.height/2-n.height/2;switch(i){case qi:t={x:l,y:r.y-n.height};break;case Ui:t={x:l,y:r.y+r.height};break;case Vi:t={x:r.x+r.width,y:s};break;case Ki:t={x:r.x-n.width,y:s};break;default:t={x:r.x,y:r.y}}var c=i?fa(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Yi:t[c]=t[c]-(r[u]/2-n[u]/2);break;case Xi:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var ma={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ya(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,f=a.x,d=void 0===f?0:f,m=a.y,y=void 0===m?0:m,h="function"==typeof u?u({x:d,y}):{x:d,y};d=h.x,y=h.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),g=Ki,w=qi,S=window;if(c){var O=Hi(r),x="clientHeight",P="clientWidth";O===gi(r)&&"static"!==Ii(O=_i(r)).position&&"absolute"===l&&(x="scrollHeight",P="scrollWidth"),(o===qi||(o===Ki||o===Vi)&&i===Xi)&&(w=Ui,y-=(p&&O===S&&S.visualViewport?S.visualViewport.height:O[x])-n.height,y*=s?1:-1),o!==Ki&&(o!==qi&&o!==Ui||i!==Xi)||(g=Vi,d-=(p&&O===S&&S.visualViewport?S.visualViewport.width:O[P])-n.width,d*=s?1:-1)}var E,j=Object.assign({position:l},c&&ma),k=!0===u?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:Ei(t*n)/n||0,y:Ei(r*n)/n||0}}({x:d,y}):{x:d,y};return d=k.x,y=k.y,s?Object.assign({},j,((E={})[w]=v?"0":"",E[g]=b?"0":"",E.transform=(S.devicePixelRatio||1)<=1?"translate("+d+"px, "+y+"px)":"translate3d("+d+"px, "+y+"px, 0)",E)):Object.assign({},j,((t={})[w]=v?y+"px":"",t[g]=b?d+"px":"",t.transform="",t))}var ha={left:"right",right:"left",bottom:"top",top:"bottom"};function ba(e){return e.replace(/left|right|bottom|top/g,(function(e){return ha[e]}))}var va={start:"end",end:"start"};function ga(e){return e.replace(/start|end/g,(function(e){return va[e]}))}function wa(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Oi(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Sa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Oa(e,t,r){return t===Zi?Sa(function(e,t){var r=gi(e),n=_i(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=ki();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Mi(e),y:s}}(e,r)):wi(t)?function(e,t){var r=Ci(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Sa(function(e){var t,r=_i(e),n=Ti(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=xi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=xi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Mi(e),s=-n.scrollTop;return"rtl"===Ii(o||r).direction&&(l+=xi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(_i(e)))}function xa(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Pa(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Ea(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,l=r.boundary,s=void 0===l?Ji:l,c=r.rootBoundary,u=void 0===c?Zi:c,p=r.elementContext,f=void 0===p?Qi:p,d=r.altBoundary,m=void 0!==d&&d,y=r.padding,h=void 0===y?0:y,b=xa("number"!=typeof h?h:Pa(h,$i)),v=f===Qi?ea:Qi,g=e.rects.popper,w=e.elements[m?v:f],S=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Bi(Li(e)),r=["absolute","fixed"].indexOf(Ii(e).position)>=0&&Si(e)?Hi(e):e;return wi(r)?t.filter((function(e){return wi(e)&&wa(e,r)&&"body"!==Ri(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],l=i.reduce((function(t,r){var o=Oa(e,r,n);return t.top=xi(o.top,t.top),t.right=Pi(o.right,t.right),t.bottom=Pi(o.bottom,t.bottom),t.left=xi(o.left,t.left),t}),Oa(e,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(wi(w)?w:w.contextElement||_i(e.elements.popper),s,u,a),O=Ci(e.elements.reference),x=da({reference:O,element:g,strategy:"absolute",placement:o}),P=Sa(Object.assign({},g,x)),E=f===Qi?P:O,j={top:S.top-E.top+b.top,bottom:E.bottom-S.bottom+b.bottom,left:S.left-E.left+b.left,right:E.right-S.right+b.right},k=e.modifiersData.offset;if(f===Qi&&k){var C=k[o];Object.keys(j).forEach((function(e){var t=[Vi,Ui].indexOf(e)>=0?1:-1,r=[qi,Ui].indexOf(e)>=0?"y":"x";j[e]+=C[r]*t}))}return j}const ja={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,l=void 0===a||a,s=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,f=r.altBoundary,d=r.flipVariations,m=void 0===d||d,y=r.allowedAutoPlacements,h=t.options.placement,b=ua(h),v=s||(b!==h&&m?function(e){if(ua(e)===Gi)return[];var t=ba(e);return[ga(e),t,ga(t)]}(h):[ba(h)]),g=[h].concat(v).reduce((function(e,r){return e.concat(ua(r)===Gi?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?ra:s,u=pa(n),p=u?l?ta:ta.filter((function(e){return pa(e)===u})):$i,f=p.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,r){return t[r]=Ea(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[ua(r)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:y}):r)}),[]),w=t.rects.reference,S=t.rects.popper,O=new Map,x=!0,P=g[0],E=0;E=0,R=T?"width":"height",_=Ea(t,{placement:j,boundary:u,rootBoundary:p,altBoundary:f,padding:c}),M=T?C?Vi:Ki:C?Ui:qi;w[R]>S[R]&&(M=ba(M));var I=ba(M),A=[];if(i&&A.push(_[k]<=0),l&&A.push(_[M]<=0,_[I]<=0),A.every((function(e){return e}))){P=j,x=!1;break}O.set(j,A)}if(x)for(var D=function(e){var t=g.find((function(t){var r=O.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},N=m?3:1;N>0&&"break"!==D(N);N--);t.placement!==P&&(t.modifiersData[n]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ka(e,t,r){return xi(e,Pi(t,r))}const Ca={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,l=void 0!==a&&a,s=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,f=r.tether,d=void 0===f||f,m=r.tetherOffset,y=void 0===m?0:m,h=Ea(t,{boundary:s,rootBoundary:c,padding:p,altBoundary:u}),b=ua(t.placement),v=pa(t.placement),g=!v,w=fa(b),S="x"===w?"y":"x",O=t.modifiersData.popperOffsets,x=t.rects.reference,P=t.rects.popper,E="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,j="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(O){if(i){var T,R="y"===w?qi:Ki,_="y"===w?Ui:Vi,M="y"===w?"height":"width",I=O[w],A=I+h[R],D=I-h[_],N=d?-P[M]/2:0,L=v===Yi?x[M]:P[M],z=v===Yi?-P[M]:-x[M],B=t.elements.arrow,F=d&&B?Ni(B):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=W[R],q=W[_],U=ka(0,x[M],F[M]),V=g?x[M]/2-N-U-H-j.mainAxis:L-U-H-j.mainAxis,K=g?-x[M]/2+N+U+q+j.mainAxis:z+U+q+j.mainAxis,G=t.elements.arrow&&Hi(t.elements.arrow),$=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Y=null!=(T=null==k?void 0:k[w])?T:0,X=I+K-Y,J=ka(d?Pi(A,I+V-Y-$):A,I,d?xi(D,X):D);O[w]=J,C[w]=J-I}if(l){var Z,Q="x"===w?qi:Ki,ee="x"===w?Ui:Vi,te=O[S],re="y"===S?"height":"width",ne=te+h[Q],oe=te-h[ee],ie=-1!==[qi,Ki].indexOf(b),ae=null!=(Z=null==k?void 0:k[S])?Z:0,le=ie?ne:te-x[re]-P[re]-ae+j.altAxis,se=ie?te+x[re]+P[re]-ae-j.altAxis:oe,ce=d&&ie?function(e,t,r){var n=ka(e,t,r);return n>r?r:n}(le,te,se):ka(d?le:ne,te,d?se:oe);O[S]=ce,C[S]=ce-te}t.modifiersData[n]=C}},requiresIfExists:["offset"]};const Ta={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,l=ua(r.placement),s=fa(l),c=[Ki,Vi].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return xa("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Pa(e,$i))}(o.padding,r),p=Ni(i),f="y"===s?qi:Ki,d="y"===s?Ui:Vi,m=r.rects.reference[c]+r.rects.reference[s]-a[s]-r.rects.popper[c],y=a[s]-r.rects.reference[s],h=Hi(i),b=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,v=m/2-y/2,g=u[f],w=b-p[c]-u[d],S=b/2-p[c]/2+v,O=ka(g,S,w),x=s;r.modifiersData[n]=((t={})[x]=O,t.centerOffset=O-S,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&wa(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ra(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function _a(e){return[qi,Vi,Ui,Ki].some((function(t){return e[t]>=0}))}var Ma=sa({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,l=void 0===a||a,s=gi(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,ca)})),l&&s.addEventListener("resize",r.update,ca),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,ca)})),l&&s.removeEventListener("resize",r.update,ca)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=da({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,l=r.roundOffsets,s=void 0===l||l,c={placement:ua(t.placement),variation:pa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ya(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ya(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Si(o)&&Ri(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Si(n)&&Ri(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=ra.reduce((function(e,r){return e[r]=function(e,t,r){var n=ua(e),o=[Ki,qi].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Ki,Vi].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(r,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},ja,Ca,Ta,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ea(t,{elementContext:"reference"}),l=Ea(t,{altBoundary:!0}),s=Ra(a,n),c=Ra(l,o,i),u=_a(s),p=_a(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]});function Ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:"Mui",n=za[t];return n?"".concat(r,"-").concat(n):"".concat(La.generate(e),"-").concat(t)}function Fa(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",n={};return t.forEach((function(t){n[t]=Ba(e,t,r)})),n}function Wa(e){return Ba("MuiPopperUnstyled",e)}function Ha(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])})).forEach((function(r){t[r]=e[r]})),t}function qa(e,t){return"function"==typeof e?e(t):e}Fa("MuiPopperUnstyled",["root"]);var Ua=["elementType","externalSlotProps","ownerState"];function Va(e){var t,r=e.elementType,n=e.externalSlotProps,o=e.ownerState,i=Ke(e,Ua),a=qa(n,o),l=function(e){var t=e.getSlotProps,r=e.additionalProps,n=e.externalSlotProps,o=e.externalForwardedProps,i=e.className;if(!t){var a=De(null==o?void 0:o.className,null==n?void 0:n.className,i,null==r?void 0:r.className),l=Le({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),s=Le({},r,o,n);return a.length>0&&(s.className=a),Object.keys(l).length>0&&(s.style=l),{props:s,internalRef:void 0}}var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var r={};return Object.keys(e).filter((function(r){return r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)})).forEach((function(t){r[t]=e[t]})),r}(Le({},o,n)),u=Ha(n),p=Ha(o),f=t(c),d=De(null==f?void 0:f.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),m=Le({},null==f?void 0:f.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),y=Le({},f,r,p,u);return d.length>0&&(y.className=d),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}(Le({},i,{externalSlotProps:a}));return Be(r,Le({},l.props,{ref:si(l.internalRef,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ga(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ga(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 Ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=20},n}return Ks(r,[{key:"componentWillReceiveProps",value:function(e){var t=e.size,r=e.scale;this.setState({minusDisabled:r-.5<=0,magnifyDisabled:"contain"===t,plusDisabled:r+.5>=20})}},{key:"render",value:function(){var e=this.state,t=e.minusDisabled,r=void 0!==t&&t,n=e.magnifyDisabled,o=void 0!==n&&n,i=e.plusDisabled,a=void 0!==i&&i,l=(e.searchString,e.searchJump,this.props),s=l.readonly,c=(l.size,l.scale),u=l.playing,f=void 0!==u&&u,d=l.resolution,m=l.onAutoPlayToggle,y=l.onSizeChange,h=l.onResolutionToggle,b=l.style,v=l.className,g=(function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}(l,Fs),this.props),w=g.saveable,S=g.undoable,O=g.redoable,x=g.onSave,P=g.onUndo,j=g.onRedo,k=g.saveDisabled,C=g.undoDisabled,T=g.redoDisabled,R=this.props,_=R.onToggleLineNumbers,M=R.onToggleLineWrapping,I=this.props,A=I.onSearch,D=I.onJumpTo,N=(w||S||O)&&!s,L=this.props,z=L.editortools,B=L.searchable,F=this.props.hdable,W=this.props.playable,H=this.props.resizable;return N||z||B||F||W||H?p().createElement(Ps(),null,p().createElement(E.Toolbar,{style:Hs(Hs({},b),{},{zIndex:10}),className:v},W&&p().createElement(E.ToolbarGroup,null,p().createElement(E.IconButton,{iconClassName:"mdi "+(f?"mdi-pause":"mdi-play"),iconStyle:ac.iconButton,onClick:function(){return m()}})),W&&H&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),H&&p().createElement(E.ToolbarGroup,null,p().createElement(E.IconButton,{iconClassName:"mdi mdi-minus",iconStyle:ac.iconButton,onClick:function(){return y({size:"auto",scale:c-.5})},disabled:r}),p().createElement(E.IconButton,{iconClassName:"mdi mdi-magnify-minus",iconStyle:ac.iconButton,onClick:function(){return y({size:"contain"})},disabled:o}),p().createElement(E.IconButton,{iconClassName:"mdi mdi-plus",iconStyle:ac.iconButton,onClick:function(){return y({size:"auto",scale:c+.5})},disabled:a})),(W||H)&&F&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),F&&p().createElement(E.ToolbarGroup,null,p().createElement(E.IconButton,{iconClassName:"mdi "+("hi"===d?"mdi-quality-high":"mdi-image"),iconStyle:ac.iconButton,onClick:function(){return h()}})),(W||H||F)&&N&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),N&&p().createElement(E.ToolbarGroup,null,w&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-content-save",iconStyle:ac.iconButton,onClick:function(){return x()},disabled:k}),S&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-undo",iconStyle:ac.iconButton,onClick:function(){return P()},disabled:C}),O&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-redo",iconStyle:ac.iconButton,onClick:function(){return j()},disabled:T})),(W||H||F||N)&&z&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),z&&p().createElement(E.ToolbarGroup,null,_&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-format-list-numbers",iconStyle:ac.iconButton,onClick:function(){return _()}}),M&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-wrap",iconStyle:ac.iconButton,onClick:function(){return M()}})),(W||H||F||N||z)&&B&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),B&&p().createElement(E.ToolbarGroup,null,p().createElement(E.TextField,{onMouseDown:function(e){return e.stopPropagation()},onKeyUp:function(e){var t=e.key,r=e.target;return"Enter"===t&&D(r.value)},hintText:"Jump to Line",style:ac.textField,hintStyle:ac.textHint,inputStyle:ac.textInput}),p().createElement(E.TextField,{onMouseDown:function(e){return e.stopPropagation()},onKeyUp:function(e){var t=e.key,r=e.target;return"Enter"===t&&A(r.value)},hintText:"Search...",style:ac.textField,hintStyle:ac.textHint,inputStyle:ac.textInput})))):null}}]),r}(p().Component))||zs)||zs)||zs)||zs)||zs;function cc(e,t){var r=e.editor,n=ec(e),o=n.readonly,i=void 0===o||o,a=n.message,l=void 0===a?"":a,s=n.editorData,c=void 0===s?{editorClass:""}:s,u=T().getFunctionByName(c.editorClass,window);return u?Hs(Hs(Hs({},t),n),{},{resolution:tc(e),isActive:r.activeTabId===n.id,snackbarMessage:l,readonly:i,Editor:u.Editor,Controls:u.Controls,Actions:u.Actions}):Hs(Hs({},t),n)}var uc,pc=(uc=E.Card,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&&Is(e,t)}(l,e);var t,r,n,o,i,a=(o=l,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=As(o);if(i){var r=As(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===js(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(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=a.call(this,e)).state={maximised:e.maximised},t}return t=l,r=[{key:"componentWillReceiveProps",value:function(e){this.setState({maximised:e.maximised})}},{key:"render",value:function(){var e=this,t=this.props.style,r=void 0===t?{}:t,n=r.width,o=void 0===n?"0":n,i=r.height,a=void 0===i?"0":i,l=this.state.maximised,s={width:l?(0,Es.ST)(100,Ns):(0,Es.ST)(parseInt(o.replace(/%$/,"")),Ns),height:l?(0,Es.ST)(100,Ns):(0,Es.ST)(parseInt(a.replace(/%$/,"")),Ns)};return p().createElement(Es.y_,{style:s},(function(t){var n=t.width,o=t.height;return p().createElement(uc,ks({},e.props,{style:Ts(Ts({},r),{},{width:"".concat(n,"%"),height:"".concat(o,"%"),transition:"none"})}))}))}}],n=[{key:"displayName",get:function(){return"MakeMaximise(".concat(Ds(uc),")")}}],r&&_s(t.prototype,r),n&&_s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(p().Component));const fc=require("pydio/http/api");var dc=r.n(fc);const mc=require("pydio/model/data-model");var yc,hc=r.n(mc);function bc(e){return bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bc(e)}function vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gc(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,np)),{},{tabs:n,isOpen:n.filter((function(e){return e.editorData})).length>0,isMinimised:i,displayToolbar:l})}),dp)(rp=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&&cp(e,t)}(a,e);var t,r,n,o,i=(n=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=up(n);if(o){var r=up(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===tp(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;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var r=e.editorModify,n=e.editorSetActiveTab;return r({isOpen:!1}),n(null),t.state={fullBrowserScreen:pydio.UI.MOBILE_EXTENSIONS||!0},t.onFullBrowserScreen=function(){return t.setState({fullBrowserScreen:!t.state.fullBrowserScreen})},t}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.isOpen,r=e.isMinimised,n=e.displayToolbar,o=e.documentWidth,i=e.documentHeight,a=this.state.fullBrowserScreen;if(!t)return null;var l={position:"fixed",top:a?0:"1%",left:a?0:"1%",right:a?0:"15%",bottom:a?0:"1%"},s=i-50,c=o-50,u={position:"fixed",top:s,left:c,cursor:"pointer",transform:"translate(-50%, -50%)",zIndex:5};return p().createElement("div",{style:{position:"fixed",top:0,left:0,zIndex:1400}},!r&&p().createElement("div",{style:{position:"fixed",top:0,bottom:0,right:0,left:0,background:"#000000",opacity:"0.8",transition:"opacity .5s ease-in"}}),p().createElement(ou,{displayToolbar:n,style:l,minimiseStyle:{transformOrigin:c+"px "+s+"px"}}),r&&p().createElement(ep,{style:u}))}}])&&lp(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component))||rp)||rp;function yp(e){return yp="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},yp(e)}function hp(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:null,t=e||this.state.templates,r=this.props.dataModel,n=r.getSelectedNodes();n&&n.length||r.getContextNode()!==r.getRootNode()||(n=[r.getContextNode()]);var o,i,a=[],l={};return!n||n.length<1?o="no_selection":n.length>1?(o="generic_multiple",l.nodes=n):((i=n[0]).isLeaf()?o="generic_file":(o="generic_dir",this.props.dataModel.getRootNode()===i&&(o="ajxp_root_node")),l.node=i),t.has(o)&&(a=a.concat(t.get(o))),i&&t.forEach((function(e,t){t!==o&&(0===t.indexOf("meta:")&&i.getMetadata().has(t.substr(5))||i.getAjxpMime()===t)&&(a=a.concat(e))})),this.props.onContentChange&&!e&&this.props.onContentChange(a.length),a.sort((function(e,t){return e.WEIGHT===t.WEIGHT?0:e.WEIGHT>t.WEIGHT?1:-1})),{TEMPLATES:a,DATA:l}}},{key:"render",value:function(){var e=this,t=this.props.mainEmptyStateProps,r=this.state.displayData,n=r.TEMPLATES.map((function(t,n){var o=t.COMPONENT,i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pp(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.")}()}(o.split(".",2),2),a=i[0],l=i[1];return p().createElement(Np,xp({},r.DATA,e.props,{key:"ip_"+o,namespace:a,componentName:l}))}));return!n.length&&t&&n.push(p().createElement(Dp,t)),p().createElement(Lp,{style:this.props.style},n)}}]),o}(p().Component);zp.propTypes={dataModel:d().instanceOf(PydioDataModel).isRequired,pydio:d().instanceOf(t()).isRequired,style:d().object},zp.contextTypes={scrollArea:d().object},zp=Ap(zp,{id:"info_panel"}),zp=(0,P.muiThemeable)()(zp);var Bp=function(){function e(){Ep(this,e)}return kp(e,null,[{key:"parseConfigs",value:function(){var e=b().XPathSelectNodes(pydio.getXmlRegistry(),'client_configs/component_config[@component="InfoPanel"]/infoPanel'),t=new Map;return e.forEach((function(e){if(e.getAttribute("reactComponent")){var r=e.getAttribute("mime").split(","),n=e.getAttribute("reactComponent");r.map((function(r){t.has(r)||t.set(r,[]),t.get(r).push({COMPONENT:n,THEME:e.getAttribute("theme"),ATTRIBUTES:e.getAttribute("attributes"),WEIGHT:e.getAttribute("weight")?parseInt(e.getAttribute("weight")):0})}))}})),t}}]),e}(),Fp=r(70970),Wp=r.n(Fp),Hp=r(71082),qp=r.n(Hp);function Up(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,r,n){return t+t+r+r+n+n})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}var Vp=function(){if("undefined"==typeof window)return"node";var e=Boolean(window.opera)||navigator.userAgent.indexOf(" OPR/")>=0,t="undefined"!=typeof InstallTrigger,r=!!window.chrome&&!!window.chrome.webstore,n=(Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||!r)&&!e&&void 0!==window.webkitAudioContext,o=Boolean(document.documentMode);return e?"opera":t?"firefox":r?"chrome":n?"safari":o?"ie":""}();function Kp(){var e=document,t=e.body,r=e.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}function Gp(){return document.scrollingElement||(["ie","firefox"].indexOf(Vp)>-1?document.documentElement:document.body)}function $p(e){var t=e.type,r=void 0===t?"joyride":t,n=e.msg,o=e.warn,i=void 0!==o&&o,a=e.debug,l=void 0!==a&&a,s=i?console.warn||console.error:console.log;l&&(console.log("%c"+r,"color: #760bc5; font-weight: bold; font-size: 12px;"),n&&(Array.isArray(n)?s.apply(console,n):s.apply(console,[n])))}function Yp(e){return e.dataset&&e.dataset.reactid?(console.warn("Deprecation warning: React 15.0 removed reactid. Update your code."),'[data-reactid="'+e.dataset.reactid+'"]'):e.dataset&&(console.error("Unsupported error: React 15.0+ doesn’t write reactid to the DOM anymore, please use a plain class in your step.",e),e.className)?"."+e.className.replace(" ","."):e}function Xp(e,t){var r=e.getBoundingClientRect();if(!t)return r;var n=t.getBoundingClientRect(),o=n.top>0?r.top-n.top:r.top,i=n.left>0?r.left-n.left:r.left;return{top:o,left:i,right:n.right>0?n.right-r.right:r.right,bottom:n.bottom>0?n.bottom-r.bottom:r.bottom,x:i,y:o,width:r.width,height:r.height}}function Jp(e){return Jp="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},Jp(e)}var Zp=function(){function e(e,t){for(var r=0;r=n.top&&o<=n.top+n.height,l=i>=n.left&&i<=n.left+n.width&&a;l&&!r.state.mouseOverHole&&r.setState({mouseOverHole:!0}),!l&&r.state.mouseOverHole&&r.setState({mouseOverHole:!1})},r.state={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+rf(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),of(t,[{key:"componentWillMount",value:function(){var e=this.setOpts(),t=this.setStyles(this.props.step.style,e,this.props);this.setState({styles:t,opts:e})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.allowClicksThruHole,r=e.onRender,n=e.showOverlay;this.forceUpdate(),r(),n&&t&&document.addEventListener("mousemove",this.handleMouseMove,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=e.allowClicksThruHole,r=e.animate,n=e.standalone,o=e.step,i=e.holePadding,a=e.position,l=e.xPos,s=e.yPos,c=e.showOverlay,u=this.props,p=u.allowClicksThruHole,f=u.animate,d=u.standalone,m=u.step,y=u.holePadding,h=u.position,b=u.xPos,v=u.yPos,g=u.showOverlay;if(r!==f||n!==d||o!==m||i!==y||a!==h||l!==b||s!==v){var w=this.setOpts(e),S=this.setStyles(e.step.style,w,e);this.setState({styles:S,opts:w})}c!==g&&(c&&t?document.addEventListener("mousemove",this.handleMouseMove,!1):document.removeEventListener("mousemove",this.handleMouseMove,!1)),t!==p&&(t?document.addEventListener("mousemove",this.handleMouseMove,!1):document.removeEventListener("mousemove",this.handleMouseMove,!1))}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.onRender,n=t.selector;e.selector!==n&&(this.forceUpdate(),r())}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousemove",this.handleMouseMove,!1)}},{key:"getArrowPosition",value:function(e){var t=e;return window.innerWidth<480?e<8?t=8:e>92&&(t=92):window.innerWidth<1024?e<6?t=6:e>94&&(t=94):e<5?t=5:e>95&&(t=95),t}},{key:"generateArrow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.location=e.location||"top",e.color=e.color||"#f04",e.color=e.color.replace("#","%23"),e.width=e.width||36,e.height=e.width/2,e.scale=e.width/16,e.rotate="0";var t=e.height,r=e.rotate,n=e.width;return"bottom"===e.location?r="180 8 4":"left"===e.location?(t=e.width,n=e.height,r="270 8 8"):"right"===e.location&&(t=e.width,n=e.height,r="90 4 4"),"data:image/svg+xml,%3Csvg%20width%3D%22"+n+"%22%20height%3D%22"+t+"%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpolygon%20points%3D%220%2C%200%208%2C%208%2016%2C0%22%20fill%3D%22"+e.color+"%22%20transform%3D%22scale%28"+e.scale+"%29%20rotate%28"+r+"%29%22%3E%3C%2Fpolygon%3E%3C%2Fsvg%3E"}},{key:"setStyles",value:function(e,t,r){var n=r.holePadding,o=r.step,i=r.xPos,a=r.yPos,l=!0===o.isFixed,s={arrow:{left:t.arrowPosition},buttons:{},header:{},main:{},footer:{},hole:{},tooltip:{position:l?"fixed":"absolute",top:Math.round(a),left:Math.round(i)}};return s.hole={top:Math.round(t.rect.top-(l?0:document.body.getBoundingClientRect().top)-n),left:Math.round(t.rect.left-n),width:Math.round(t.rect.width+2*n),height:Math.round(t.rect.height+2*n)},l&&(s.hole.position="fixed"),s.buttons={back:{},close:{},primary:{},skip:{}},e&&(e.backgroundColor&&(s.arrow.backgroundImage='url("'+this.generateArrow({location:t.positonBaseClass,color:e.backgroundColor})+'")',s.tooltip.backgroundColor=e.backgroundColor),e.borderRadius&&(s.tooltip.borderRadius=e.borderRadius),e.color&&(s.buttons.primary.color=e.color,s.buttons.close.color=e.color,s.buttons.skip.color=e.color,s.header.color=e.color,s.tooltip.color=e.color,e.mainColor&&e.mainColor===e.color&&(s.buttons.primary.color=e.backgroundColor)),e.mainColor&&(s.buttons.primary.backgroundColor=e.mainColor,s.buttons.back.color=e.mainColor,s.header.borderColor=e.mainColor),e.textAlign&&(s.tooltip.textAlign=e.textAlign),e.width&&(s.tooltip.width=e.width),e.header&&(s.header=nf({},s.header,e.header)),e.main&&(s.main=nf({},s.main,e.main)),e.footer&&(s.footer=nf({},s.footer,e.footer)),e.back&&(s.buttons.back=nf({},s.buttons.back,e.back)),e.arrow&&(s.arrow=nf({},s.arrow,e.arrow)),e.button&&(s.buttons.primary=nf({},s.buttons.primary,e.button)),e.close&&(s.buttons.close=nf({},s.buttons.close,e.close)),e.skip&&(s.buttons.skip=nf({},s.buttons.skip,e.skip)),e.hole&&(s.hole=nf({},e.hole,s.hole))),s}},{key:"setOpts",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.animate,r=e.offsetParentSelector,n=e.position,o=e.standalone,i=e.target,a=e.xPos,l=document.querySelector(Yp(r)),s=document.querySelector(".joyride-tooltip"),c={classes:["joyride-tooltip"],rect:Xp(i,l),positionClass:n};return c.positonBaseClass=c.positionClass.match(/-/)?c.positionClass.split("-")[0]:c.positionClass,(/^bottom$/.test(c.positionClass)||/^top$/.test(c.positionClass))&&a>-1&&(c.tooltip={width:450},s&&(c.tooltip=Xp(s,l)),c.targetMiddle=c.rect.left+c.rect.width/2,c.arrowPosition=((c.targetMiddle-a)/c.tooltip.width*100).toFixed(2),c.arrowPosition=this.getArrowPosition(c.arrowPosition)+"%"),o&&c.classes.push("joyride-tooltip--standalone"),c.positonBaseClass!==c.positionClass&&c.classes.push(c.positonBaseClass),c.classes.push(c.positionClass),t&&c.classes.push("joyride-tooltip--animate"),c}},{key:"render",value:function(){var e=this.props,t=e.buttons,r=e.disableOverlay,n=e.onClick,o=e.selector,i=e.showOverlay,a=e.step,l=e.target,s=e.type;if(l){var c=this.state,u=c.opts,f=c.styles,d={};if(a.title&&(d.header=p().createElement("div",{className:"joyride-tooltip__header",style:f.header},a.title)),t.skip&&(d.skip=p().createElement("button",{className:"joyride-tooltip__button joyride-tooltip__button--skip",style:f.buttons.skip,"data-type":"skip",onClick:n},t.skip)),a.text&&"string"!=typeof a.text?d.main=p().createElement("div",{className:"joyride-tooltip__main",style:f.main},a.text):d.main=p().createElement("div",{className:"joyride-tooltip__main",style:f.main,dangerouslySetInnerHTML:{__html:a.text||""}}),t.secondary&&(d.secondary=p().createElement("button",{className:"joyride-tooltip__button joyride-tooltip__button--secondary",style:f.buttons.back,"data-type":"back",onClick:n},t.secondary)),"hover"===a.event&&(f.buttons.close.opacity=0),d.tooltipComponent=p().createElement("div",{className:u.classes.join(" "),style:f.tooltip,"data-target":o},p().createElement("div",{className:"joyride-tooltip__triangle joyride-tooltip__triangle-"+u.positionClass,style:f.arrow}),p().createElement("button",{className:"joyride-tooltip__close"+(d.header?" joyride-tooltip__close--header":""),style:f.buttons.close,"data-type":"close",onClick:n}),d.header,d.main,p().createElement("div",{className:"joyride-tooltip__footer",style:f.footer},d.skip,d.secondary,p().createElement("button",{className:"joyride-tooltip__button joyride-tooltip__button--primary",style:f.buttons.primary,"data-type":-1!==["single","casual"].indexOf(s)?"close":"next",onClick:n},t.primary))),i&&(d.hole=p().createElement("div",{className:"joyride-hole "+Vp,style:f.hole,onClick:function(){}})),!i)return d.tooltipComponent;var m={cursor:r?"default":"pointer",height:document.body.clientHeight,pointerEvents:this.state.mouseOverHole?"none":"auto"};return p().createElement("div",{className:"joyride-overlay",style:m,"data-type":"close",onClick:r?void 0:n},d.hole,d.tooltipComponent)}}}]),t}(p().Component);af.propTypes={allowClicksThruHole:d().bool.isRequired,animate:d().bool.isRequired,buttons:d().object.isRequired,disableOverlay:d().bool,holePadding:d().number,offsetParentSelector:d().string,onClick:d().func.isRequired,onRender:d().func.isRequired,position:d().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","right","left"]).isRequired,selector:d().string.isRequired,showOverlay:d().bool.isRequired,standalone:d().bool,step:d().object.isRequired,target:d().object.isRequired,type:d().string.isRequired,xPos:d().oneOfType([d().number,d().string]).isRequired,yPos:d().oneOfType([d().number,d().string]).isRequired},af.defaultProps={buttons:{primary:"Close"},step:{},xPos:-1e3,yPos:-1e3};const lf=af;function sf(e){return sf="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},sf(e)}var cf="function"==typeof Symbol&&"symbol"===sf(Symbol.iterator)?function(e){return sf(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":sf(e)},uf=Object.assign||function(e){for(var t=1;t0||t.index>n)&&f&&!f.isFixed;o&&f&&this.calcPlacement(),i&&u&&m&&d>=0&&Wp().top(Gp(),this.getScrollTop()),p.length&&!i&&a&&!l&&this.start()}},{key:"componentWillUnmount",value:function(){var e=this;window.removeEventListener("resize",this.listeners.resize),this.listeners.keyboard&&document.body.removeEventListener("keydown",this.listeners.keyboard),Object.keys(this.listeners.tooltips).length&&Object.keys(this.listeners.tooltips).map((function(t){return{el:document.querySelector(t),event:e.listeners.tooltips[t].event,cb:e.listeners.tooltips[t].cb,key:t}})).filter((function(e){return!!e.el})).forEach((function(t){var r=t.el,n=t.event,o=t.cb,i=t.key;r.removeEventListener(n,o),delete e.listeners.tooltips[i]}))}},{key:"start",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.steps,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.state.index,n=Boolean(this.getStepTargetElement(t[r])),o=!0===e&&n;$p({type:"joyride:start",msg:["autorun:",!0===e],debug:this.props.debug}),this.setState({action:"start",index:r,isRunning:Boolean(t.length)&&n,shouldRenderTooltip:o,shouldRun:!t.length})}},{key:"stop",value:function(){$p({type:"joyride:stop",debug:this.props.debug}),this.setState({isRunning:!1,shouldRenderTooltip:!1})}},{key:"next",value:function(){var e=this.state,t=e.index,r=e.shouldRenderTooltip,n=this.props.steps,o=t+1,i=Boolean(n[o])&&r;$p({type:"joyride:next",msg:["new index:",o],debug:this.props.debug}),this.toggleTooltip({show:i,index:o,action:"next"})}},{key:"back",value:function(){var e=this.state,t=e.index,r=e.shouldRenderTooltip,n=this.props.steps,o=t-1,i=Boolean(n[o])&&r;$p({type:"joyride:back",msg:["new index:",o],debug:this.props.debug}),this.toggleTooltip({show:i,index:o,action:"next"})}},{key:"reset",value:function(e){var t=this.state,r=t.index,n=t.isRunning,o=!0===e,i=uf({},ff,{isRunning:o,shouldRenderTooltip:this.props.autoStart});$p({type:"joyride:reset",msg:["restart:",o],debug:this.props.debug}),o&&n===o&&0===r&&this.forceUpdate(),this.setState(i)}},{key:"getProgress",value:function(){var e=this.state.index,t=this.props.steps;return $p({type:"joyride:getProgress",msg:["steps:",t],debug:this.props.debug}),{index:e,percentageComplete:parseFloat((e/t.length*100).toFixed(2).replace(".00","")),step:t[e]}}},{key:"addTooltip",value:function(e){if(this.checkStepValidity(e)){$p({type:"joyride:addTooltip",msg:["data:",e],debug:this.props.debug});var t=e.trigger||Yp(e.selector),r=document.querySelector(t);r&&(r.setAttribute("data-tooltip",JSON.stringify(e)),"hover"===(e.event||"click")&&(this.listeners.tooltips[t+"mouseenter"]={event:"mouseenter",cb:this.handleClickStandaloneTrigger},this.listeners.tooltips[t+"mouseleave"]={event:"mouseleave",cb:this.handleClickStandaloneTrigger},r.addEventListener("mouseenter",this.listeners.tooltips[t+"mouseenter"].cb),r.addEventListener("mouseleave",this.listeners.tooltips[t+"mouseleave"].cb)),this.listeners.tooltips[t+"click"]={event:"click",cb:this.handleClickStandaloneTrigger},r.addEventListener("click",this.listeners.tooltips[t+"click"].cb))}else $p({type:"joyride:addTooltip:FAIL",msg:["data:",e],debug:this.props.debug})}},{key:"parseSteps",value:function(e){return console.warn("joyride.parseSteps() is deprecated. It is no longer necessary to parse steps before providing them to Joyride"),e}},{key:"checkStepValidity",value:function(e){var t=this;return!e||"object"!==(void 0===e?"undefined":cf(e))||Array.isArray(e)?($p({type:"joyride:checkStepValidity",msg:"Did not provide a step object.",warn:!0,debug:this.props.debug}),!1):["selector"].every((function(r){var n=Boolean(e[r]);return n||$p({type:"joyride:checkStepValidity",msg:["Provided a step without the required "+r+" property.","Step:",e],warn:!0,debug:t.props.debug}),n}))}},{key:"checkStepsValidity",value:function(e){return Array.isArray(e)||"object"!==(void 0===e?"undefined":cf(e))?e.length>0&&e.every(this.checkStepValidity):this.checkStepValidity(e)}},{key:"getStepTargetElement",value:function(e){return this.checkStepValidity(e)?document.querySelector(Yp(e.selector))||($p({type:"joyride:getStepTargetElement",msg:"Target not rendered. For best results only add steps after they are mounted.",warn:!0,debug:this.props.debug}),null):null}},{key:"getElementDimensions",value:function(){var e=this.state,t=e.shouldRenderTooltip,r=!!e.standaloneData||t,n=document.querySelector(r?".joyride-tooltip":".joyride-beacon"),o=0,i=0;if(n){var a=window.getComputedStyle(n);o=n.clientHeight+parseInt(a.marginTop||0,10)+parseInt(a.marginBottom||0,10),i=n.clientWidth+parseInt(a.marginLeft||0,10)+parseInt(a.marginRight||0,10)}return{height:o,width:i}}},{key:"getScrollTop",value:function(){var e=this.state,t=e.index,r=e.yPos,n=this.props,o=n.offsetParentSelector,i=n.scrollOffset,a=n.steps[t],l=this.getStepTargetElement(a),s=document.querySelector(Yp(o));if(!l)return 0;var c=Xp(l,s).top+(window.pageYOffset||document.documentElement.scrollTop),u=this.calcPosition(a),p=0;return/^top/.test(u)?p=Math.floor(r-i):/^bottom|^left|^right/.test(u)&&(p=Math.floor(c-i)),p}},{key:"triggerCallback",value:function(e){var t=this.props.callback;"function"==typeof t&&($p({type:"joyride:triggerCallback",msg:[e],debug:this.props.debug}),t(e))}},{key:"toggleTooltip",value:function(e){var t=e.show,r=e.index,n=void 0===r?this.state.index:r,o=e.action,i=e.steps,a=(void 0===i?this.props.steps:i)[n],l=Boolean(this.getStepTargetElement(a));this.setState({action:o,index:n,isRunning:!(!a||!l)&&this.state.isRunning,shouldRedraw:!t||!l,shouldRenderTooltip:t&&l,xPos:-1e3,yPos:-1e3})}},{key:"calcPlacement",value:function(){var e=this.state,t=e.index,r=e.isRunning,n=e.standaloneData,o=e.shouldRenderTooltip,i=this.props,a=i.offsetParentSelector,l=i.steps,s=i.tooltipOffset,c=n||l[t]||{},u=!!n||o,p=this.getStepTargetElement(c),f=document.querySelector(Yp(a));if($p({type:"joyride:calcPlacement"+this.getRenderStage(),msg:["step:",c],debug:this.props.debug}),p){var d={x:-1e3,y:-1e3};if(c&&(n||r&&l[t])){var m=qp().get(c,"style.beacon.offsetX")||0,y=qp().get(c,"style.beacon.offsetY")||0,h=this.calcPosition(c),b=Gp().getBoundingClientRect(),v=!0===c.isFixed?0:b.top,g=this.getElementDimensions(),w=Xp(p,f);/^left/.test(h)?d.x=w.left-(u?g.width+s:g.width/2+m):/^right/.test(h)?d.x=w.left+w.width-(u?-s:g.width/2-m):d.x=w.left+(w.width/2-g.width/2),/^top/.test(h)?d.y=w.top-v-(u?g.height+s:g.height/2+y):/^bottom/.test(h)?d.y=w.top-v+(w.height-(u?-s:g.height/2-y)):d.y=w.top-v,/^bottom|^top/.test(h)&&(/left/.test(h)?d.x=w.left-(u?s:g.width/2):/right/.test(h)&&(d.x=w.left+(w.width-(u?g.width-s:g.width/2)))),this.setState({shouldRedraw:!1,xPos:this.preventWindowOverflow(Math.ceil(d.x),"x",g.width,g.height),yPos:this.preventWindowOverflow(Math.ceil(d.y),"y",g.width,g.height)})}}}},{key:"calcPosition",value:function(e){var t=this.props,r=t.offsetParentSelector,n=t.tooltipOffset,o=Gp(),i=o.getBoundingClientRect(),a=Xp(this.getStepTargetElement(e),document.querySelector(Yp(r))),l=this.getElementDimensions(),s=l.height,c=l.width,u=void 0===c?290:c,p=e.position||"top";return/^left/.test(p)&&a.left-(u+n)<0?p="top":/^right/.test(p)&&a.left+a.width+(u+n)>i.width&&(p="bottom"),/^top/.test(p)&&(a.top+o.scrollTop-(s+n)<0||e.isFixed&&a.top-s<0)?p="bottom":/^bottom/.test(p)&&(a.top+o.scrollTop+(s+n)>Kp()||e.isFixed&&a.top+a.height+s>i.height)&&(p="top"),p}},{key:"getRenderStage",value:function(){var e=this.state,t=e.shouldRedraw,r=e.xPos;return t?":redraw":r<0?":pre-render":""}},{key:"preventWindowOverflow",value:function(e,t,r,n){var o=window.innerWidth,i=Kp(),a=e;return"x"===t?e+r>=o?a=o-r-15:e<15&&(a=15):"y"===t&&(e+n>=i?a=i-n-15:e<15&&(a=15)),a}},{key:"createComponent",value:function(){var e=this.state,t=e.index,r=e.shouldRedraw,n=e.shouldRenderTooltip,o=e.standaloneData,i=e.xPos,a=e.yPos,l=this.props,s=l.disableOverlay,c=l.holePadding,u=l.locale,f=l.offsetParentSelector,d=l.showBackButton,m=l.showOverlay,y=l.showSkipButton,h=l.showStepsProgress,b=l.steps,v=l.type,g=o||b[t],w=uf({},g),S=this.getStepTargetElement(w),O=void 0,x=w&&w.allowClicksThruHole||this.props.allowClicksThruHole,P=!o&&m,E={primary:u.close};if($p({type:"joyride:createComponent"+this.getRenderStage(),msg:["component:",n||o?"Tooltip":"Beacon","animate:",i>-1&&!r,"step:",w],debug:this.props.debug,warn:!S}),!S)return!1;if(n||o){var j=this.calcPosition(w);if(!o){if(-1!==["continuous","guided"].indexOf(v)){if(E.primary=u.last,b[t+1])if(h){var k=u.next;"string"==typeof u.next&&(k=p().createElement("span",null,u.next)),E.primary=p().createElement("span",null,k," ",p().createElement("span",null,t+1+"/"+b.length))}else E.primary=u.next;d&&t>0&&(E.secondary=u.back)}y&&(E.skip=u.skip)}O=p().createElement(lf,{allowClicksThruHole:x,animate:i>-1&&!r,buttons:E,disableOverlay:s,holePadding:c,offsetParentSelector:f,position:j,selector:Yp(w.selector),showOverlay:P,step:w,standalone:Boolean(o),target:S,type:v,xPos:i,yPos:a,onClick:this.handleClickTooltip,onRender:this.handleRenderTooltip})}else O=p().createElement(tf,{step:w,xPos:i,yPos:a,onTrigger:this.handleClickBeacon,eventType:w.type||"click"});return O}},{key:"render",value:function(){var e=this.state,t=e.index,r=e.isRunning,n=e.standaloneData,o=this.props.steps,i=Boolean(o[t]),a=void 0,l=void 0;return r&&i?$p({type:"joyride:render"+this.getRenderStage(),msg:["step:",o[t]],debug:this.props.debug}):!r&&n&&$p({type:"joyride:render",msg:["tooltip:",n],debug:this.props.debug}),n?l=this.createComponent():r&&i&&(a=this.createComponent()),p().createElement("div",{className:"joyride"},a,l)}}]),t}(p().Component);yf.propTypes={allowClicksThruHole:d().bool,autoStart:d().bool,callback:d().func,debug:d().bool,disableOverlay:d().bool,holePadding:d().number,keyboardNavigation:d().bool,locale:d().object,offsetParentSelector:d().string,resizeDebounce:d().bool,resizeDebounceDelay:d().number,run:d().bool,scrollOffset:d().number,scrollToFirstStep:d().bool,scrollToSteps:d().bool,showBackButton:d().bool,showOverlay:d().bool,showSkipButton:d().bool,showStepsProgress:d().bool,stepIndex:d().number,steps:d().array,tooltipOffset:d().number,type:d().string},yf.defaultProps={allowClicksThruHole:!1,autoStart:!1,debug:!1,disableOverlay:!1,holePadding:5,keyboardNavigation:!0,locale:{back:"Back",close:"Close",last:"Last",next:"Next",skip:"Skip"},offsetParentSelector:"body",resizeDebounce:!1,resizeDebounceDelay:200,run:!1,scrollOffset:20,scrollToFirstStep:!1,scrollToSteps:!0,showBackButton:!0,showOverlay:!0,showSkipButton:!1,showStepsProgress:!1,stepIndex:0,steps:[],tooltipOffset:15,type:"single"};const hf=yf;function bf(e){return bf="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},bf(e)}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length-1&&(t=0),this.setState({index:t,icon:e[t]})}},{key:"componentWillUnmount",value:function(){this._interval&&clearInterval(this._interval)}},{key:"render",value:function(){var e=this.state.icon;return React.createElement(Qf,{dimension:80},React.createElement("span",{className:"mdi mdi-"+e,style:{position:"absolute",top:14,left:14,fontSize:50}}))}}]),r}(u.Component),td=function(e){Kf(r,e);var t=$f(r);function r(){return Hf(this,r),t.apply(this,arguments)}return Uf(r,[{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){e.props.pydio.notify("tutorial-open-create-menu")}),950)}},{key:"render",value:function(){return React.createElement("div",null,React.createElement("p",null,this.props.message("create-menu")),React.createElement(ed,{icons:["file-plus","folder-plus"]}))}}]),r}(u.Component),rd=function(e){Kf(r,e);var t=$f(r);function r(){return Hf(this,r),t.apply(this,arguments)}return Uf(r,[{key:"componentDidMount",value:function(){var e=this;this._int=setInterval((function(){e.setState({closed:!(e.state&&e.state.closed)})}),1500)}},{key:"componentWillUnmount",value:function(){this._int&&clearInterval(this._int)}},{key:"render",value:function(){var e={width:28,transition:Zf.getBeziersTransition(),position:"relative"};this.state&&this.state.closed&&(e=Ff(Ff({},e),{},{width:18}));var t=this.props,r=t.message,n=t.customMessage;return React.createElement("div",null,React.createElement("p",null,n||r("infopanel.1")),React.createElement(Qf,{style:{fontSize:10,padding:25},dimension:140},React.createElement("div",{style:{boxShadow:"2px 2px 0px #CFD8DC",display:"flex"}},React.createElement("div",{style:{backgroundColor:"white",flex:3}},React.createElement("div",null,React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 1 "),React.createElement("div",{style:{backgroundColor:"#757575",color:"white"}},React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 2"),React.createElement("div",null,React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 3"),React.createElement("div",null,React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 4")),React.createElement("div",{style:e},React.createElement("div",{style:{position:"absolute",left:-2,bottom:0,top:0,width:3,backgroundColor:"#03a9f4"}}),React.createElement("div",{style:{backgroundColor:"#edf4f7",padding:4,height:"100%",fontSize:17}},React.createElement("span",{className:"mdi mdi-information-variant"}))))),React.createElement("p",null,this.props.message("infopanel.2")," (",React.createElement("span",{className:"mdi mdi-information",style:{fontSize:18,color:"#5c7784"}}),")."))}}]),r}(u.Component),nd=function(e){Kf(r,e);var t=$f(r);function r(){var e;Hf(this,r);for(var n=arguments.length,o=new Array(n),i=0;i3&&(t=0),this.setState({step:t})}},{key:"componentDidMount",value:function(){var e=this;this._int=setInterval((function(){e.next()}),1500)}},{key:"componentWillUnmount",value:function(){this._int&&clearInterval(this._int)}},{key:"render",value:function(){var e=this.state.step,t={display:"none",backgroundColor:"#03a9f4",fontSize:17,borderRadius:"50%",height:20,width:20,color:"white",margin:2,textAlign:"center"},r={width:28,transition:Zf.getBeziersTransition(),position:"relative",backgroundColor:"#edf4f7"},n=!0;return 1===e?r=Ff(Ff({},r),{},{width:18}):2===e?(r=Ff(Ff({},r),{},{width:28}),t.display="block",n=!1):3===e?(r=Ff(Ff({},r),{},{width:0}),n=!1):0===e&&(r=Ff(Ff({},r),{},{width:28})),React.createElement("div",null,React.createElement("p",null,this.props.message("left-resize.legend")),React.createElement(Qf,{style:{fontSize:10,padding:25},dimension:140},React.createElement("div",{style:{boxShadow:"-2px 2px 0px #CFD8DC",display:"flex"}},React.createElement("div",{style:r},React.createElement("div",{style:{position:"absolute",right:0,bottom:0,top:0,width:3,backgroundColor:n?"#03a9f4":"transparent"}}),React.createElement("div",{style:Ff({},t)},React.createElement("span",{className:"mdi mdi-chevron-double-left"}))),React.createElement("div",{style:{backgroundColor:"white",flex:3}},React.createElement("div",{style:{paddingLeft:2}},React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 1 "),React.createElement("div",{style:{backgroundColor:"#757575",color:"white",paddingLeft:2}},React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 2"),React.createElement("div",{style:{paddingLeft:2}},React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 3"),React.createElement("div",{style:{paddingLeft:2}},React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 4")))))}}]),r}(u.Component),od=function(e){Kf(r,e);var t=$f(r);function r(){return Hf(this,r),t.apply(this,arguments)}return Uf(r,[{key:"render",value:function(){var e={display:"inline-block",textAlign:"center",fontSize:17,lineHeight:"20px",backgroundColor:"#ECEFF1",color:"#607D8B",borderRadius:"50%",padding:"5px 6px",width:30,height:30,marginRight:5};return React.createElement("div",null,React.createElement("p",null,React.createElement("span",{className:"mdi mdi-book-open-variant",style:e})," ",this.props.message("uwidget.addressbook")),React.createElement(E.Divider,null),React.createElement("p",null,React.createElement("span",{className:"mdi mdi-bell-outline",style:e})," ",this.props.message("uwidget.alerts")),React.createElement(E.Divider,null),React.createElement("p",null,React.createElement("span",{className:"mdi mdi-dots-vertical",style:e})," ",this.props.message("uwidget.menu")),React.createElement(E.Divider,null),React.createElement("p",null,React.createElement("span",{className:"mdi mdi-home-variant",style:e})," ",this.props.message("uwidget.home")))}}]),r}(u.Component),id=function(e){Kf(r,e);var t=$f(r);function r(e,n){var o;return Hf(this,r),(o=t.call(this,e,n)).state={started:!(e.pydio.user&&!e.pydio.user.getPreference("gui_preferences",!0)["UserAccount.WelcomeModal.Shown"])},o}return Uf(r,[{key:"discard",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props.pydio.user,r=t.getPreference("gui_preferences",!0);r["UserAccount.WelcomeModal.Shown"]=!0,e&&(r["WelcomeComponent.Pydio8.TourGuide.FSTemplate"]=!0,r["WelcomeComponent.MUITour"]=!0),t.setPreference("gui_preferences",r,!0),t.savePreference("gui_preferences")}},{key:"componentDidMount",value:function(){var e=this;this.state.started||pydio.UI.openComponentInModal("UserAccount","WelcomeModal",{onRequestStart:function(t){t?e.discard(!0):(e.discard(),e.setState({started:!0,skip:t}))}})}},{key:"render",value:function(){var e=this;if(!this.state.started||this.state.skip)return null;var t=this.props,r=t.getMessage,n=t.pydio,o=t.muiTheme,i=function(e){return r("ajax_gui.tour."+e)},a=n.user&&n.user.getPreference("gui_preferences",!0)||{},l=[],s=n.Controller,c=n.user,u=s.getActionByName("mkdir")||{},p=s.getActionByName("upload")||{};return"mui3"!==o.userTheme||a["WelcomeComponent.MUITour"]||l.push({title:i("theme.title"),text:React.createElement(Af,{message:i}),selector:".mdi.mdi-theme-light-dark",position:"right-end"}),!c||!c.activeRepository||u.deny&&p.deny||l.push({title:i("create-menu.title"),text:React.createElement(td,{message:i,pydio:this.props.pydio}),selector:"#create-button-menu",position:"left",style:{width:220}}),document.getElementById("display-toolbar")&&l.push({title:i("display-bar.title"),text:React.createElement("div",null,React.createElement("p",null,i("display-bar")),React.createElement(ed,{icons:["view-list","view-grid","view-carousel","sort-ascending","sort-descending"]})),selector:"#display-toolbar",position:"left"}),document.getElementById("info_panel")&&l.push({title:i("infopanel.title"),text:React.createElement(rd,{message:i}),selector:"#info_panel",position:"left"}),l.push({title:i("uwidget.title"),text:React.createElement(od,{message:i}),selector:".user-widget",position:"right",style:{width:320}}),React.createElement(xf,{ref:"joyride",steps:l,run:!0,autoStart:!0,debug:!1,callback:function(t){("step:after"===t.type&&t.index===l.length-1||"skip"===t.action)&&e.discard(!0)},type:"continuous",showSkipButton:!0})}}]),r}(u.Component);function ad(e){return ad="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},ad(e)}function ld(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sd(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]&&arguments[1];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.setState({loading:!0}),new Gd.UserMetaServiceApi(dc().getRestClient()).userBookmarks(new Gd.RestUserBookmarksRequest).then((function(r){var n=r.Nodes||[];n.sort((function(e,t){return"LEAF"===e.Type?1:"LEAF"===t.Type?-1:0})),t&&(sm=n),e.setState({bookmarks:n,loading:!1})})).catch((function(t){e.setState({loading:!1})}))}},{key:"handleTouchTap",value:function(e){e.preventDefault(),this.load(),this.setState({open:!0,anchorEl:e.currentTarget})}},{key:"handleRequestClose",value:function(){this.setState({open:!1})}},{key:"entryClicked",value:function(e){var t=this.props,r=t.pydio,n=t.onRequestClose;this.handleRequestClose(),r.goTo(e),n&&n()}},{key:"removeBookmark",value:function(e){var t=this,r=e.getMetadata().get("uuid"),n=new Gd.UserMetaServiceApi(dc().getRestClient()),o=new Gd.IdmSearchUserMetaRequest;o.NodeUuids=[r],o.Namespace="bookmark";var i=new Gd.IdmUpdateUserMetaRequest;return n.searchUserMeta(o).then((function(e){e.Metadatas&&e.Metadatas.length&&(i.Operation=Gd.UpdateUserMetaRequestUserMetaOp.constructFromObject("DELETE"),i.MetaDatas=e.Metadatas,n.updateUserMeta(i).then((function(){t.load(!0)})))}))}},{key:"bmToNodes",value:function(e){return e.AppearsIn.map((function(t){var r=Xd({},e);r.Path=t.WsSlug+"/"+t.Path;var n=Kd().parseTreeNode(r,t.WsSlug);return n.getMetadata().set("repository_id",t.WsUuid),n.getMetadata().set("WsLabel",t.WsLabel),n}))}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.pydio,o=r.muiTheme,i=r.iconStyle,a=r.asPopover,l=void 0===a||a,s=this.state,c=s.loading,f=s.open,d=s.anchorEl,m=s.bookmarks;if(!n.user.activeRepository)return null;m&&(e=m.map((function(e){var r=t.bmToNodes(e);return p().createElement(ym,{muiTheme:o,key:r[0].getPath(),pydio:n,nodes:r,onClick:t.entryClicked.bind(t),onRemove:t.removeBookmark.bind(t)})})));var y={borderRadius:"50%"};if(f&&i&&i.color){var h=k()(i.color);y=Xd(Xd({},y),{},{backgroundColor:h.fade(.9).toString()})}var b={overflowY:"auto",overflowX:"hidden",padding:0,flex:1};l&&(b=Xd(Xd({},b),{},{maxHeight:330,minHeight:195}));var v=p().createElement(u.Fragment,null,c&&p().createElement(u.Fragment,null,p().createElement(ym,{placeHolder:!0}),p().createElement(ym,{placeHolder:!0}),p().createElement(ym,{placeHolder:!0})),!c&&e&&e.length>0&&p().createElement("div",{style:b},e),!c&&(!e||!e.length)&&p().createElement(um,{pydio:n,iconClassName:"mdi mdi-star-outline",primaryTextId:"145",secondaryTextId:"482",style:{minHeight:200,backgroundColor:"transparent"}}),p().createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n.bmListEntry{\n transition: background-color 250ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;\n}\n.bmListEntry:hover{\n background-color:var(--md-sys-color-outline-variant-50);\n}\n.bmListEntryWs:hover{\n text-decoration:underline;\n}\n"}}));return l?p().createElement("span",null,p().createElement(E.IconButton,{onClick:this.handleTouchTap.bind(this),iconClassName:"userActionIcon mdi mdi-star",tooltip:n.MessageHash[147],tooltipPosition:"bottom-left",className:"userActionButton",iconStyle:i,style:y}),p().createElement(cm,{open:f,anchorEl:d,anchorOrigin:{horizontal:"left",vertical:"top"},targetOrigin:{horizontal:"left",vertical:"top"},onRequestClose:this.handleRequestClose.bind(this),style:{width:320},zDepth:3,panelTitle:n.MessageHash[147],panelIconClassName:"mdi mdi-star"},v)):v}}]),r}(p().Component);function bm(e){return bm="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},bm(e)}function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"new_share";(arguments.length>1?arguments[1]:void 0).stopPropagation(),e.wrapper=document.body.appendChild(document.createElement("div")),e.wrapper.style.zIndex=11;var r={"%%OWNER%%":e.props.workspace.getOwner()};x().render(p().createElement(vy,Zm({},e.props,{mode:t,replacements:r,onAccept:"new_share"===t?e.handleAccept.bind(iy(e)):e.handleDecline.bind(iy(e)),onDecline:"new_share"===t?e.handleDecline.bind(iy(e)):e.handleCloseAlert.bind(iy(e)),onDismiss:e.handleCloseAlert})),e.wrapper)})),ly(iy(e),"handleCloseAlert",(function(){x().unmountComponentAtNode(e.wrapper),e.wrapper.remove()})),ly(iy(e),"toggleFoldersPanelOpen",(function(t){t.stopPropagation(),e.setState({openFoldersTree:!e.state.openFoldersTree})})),ly(iy(e),"getRootItemStyle",(function(t,r){var n=e.props,o=n.styler,i=n.showFoldersTree;if(!o)return{};var a=e.state.openFoldersTree,l=t&&r&&(r.isRoot()||i&&!a),s=o.rootItemStyle;return l?Jm(Jm({},s.default),s.context):s.default})),ly(iy(e),"getItemStyle",(function(t){var r=e.props,n=r.pydio,o=r.styler.treeItemStyle;return n.getContextHolder().getContextNode()===t?Jm(Jm({},o.default),o.context):-1!==n.getContextHolder().getSelectedNodes().indexOf(t)?Jm(Jm({},o.default),o.selected):o.default})),ly(iy(e),"workspacePopoverNode",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return t?Promise.resolve(t):Kd().loadRoots([e.getSlug()]).then((function(t){if(t&&t[e.getSlug()])return t[e.getSlug()];var r=new(zm())("/",!1,e.getLabel());return r.setRoot(!0),r.getMetadata().set("repository_id",e.getId()),r.getMetadata().set("workspaceEntry",e),r}))})),ly(iy(e),"workspacePopover",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=e.props,o=n.pydio,i=n.workspace;t.stopPropagation();var a=t.target,l=a.getBoundingClientRect().top,s=Ll().getViewportHeight()-l<250;e.workspacePopoverNode(i,r).then((function(t){if(i.getOwner())g().loadClassesAndApply(["ShareDialog"],(function(){var r=p().createElement(ShareDialog.CellCard,{pydio:o,cellId:i.getId(),onDismiss:function(){e.setState({popoverOpen:!1})},onHeightChange:function(){e.setState({popoverHeight:500})},editorOneColumn:!0,rootNode:t});e.setState({popoverAnchor:a,popoverOpen:!0,popoverContent:r,popoverTop:s,popoverHeight:null})}));else{var r=p().createElement($m,{pydio:o,workspace:i,rootNode:t,onDismiss:function(){e.setState({popoverOpen:!1})}});e.setState({popoverAnchor:a,popoverOpen:!0,popoverContent:r,popoverTop:s,popoverHeight:null})}}))})),e}return ty(r,[{key:"componentDidMount",value:function(){this.props.showFoldersTree&&(this._monitorFolder=function(){this.setState({currentContextNode:this.props.pydio.getContextHolder().getContextNode()})}.bind(this),this.props.pydio.getContextHolder().observe("context_changed",this._monitorFolder))}},{key:"componentWillUnmount",value:function(){this._monitorFolder&&this.props.pydio.getContextHolder().stopObserving("context_changed",this._monitorFolder)}},{key:"onClick",value:function(){var e=this,t=this.props,r=t.workspace,n=t.pydio,o=t.showFoldersTree,i=t.searchView,a=t.values,l=t.setValues;if(t.searchLoading,i){var s=r.getSlug();"all"!==s&&"previous_context"!==s&&(s+="/"),l(Jm(Jm({},a),{},{scope:s}))}else r.getId()===n.user.activeRepository&&o?n.goTo("/"):(n.observeOnce("repository_list_refreshed",(function(){e.setState({loading:!1})})),this.setState({loading:!0}),n.triggerRepositoryChange(r.getId()))}},{key:"onContextMenu",value:function(e,t){e.preventDefault(),e.stopPropagation(),this.workspacePopover(e,t)}},{key:"render",value:function(){var e,t,r=this,n=this.props,o=n.workspace,i=n.pydio,a=n.onHoverLink,l=n.onOutLink,s=n.showFoldersTree,c=n.searchView,u=n.values,f=n.showOwner;c?"all"===o.getSlug()||"previous_context"===o.getSlug()?(e=u.scope===o.getSlug(),t=!0):e=u.scope&&0===u.scope.indexOf(o.getSlug()+"/"):e=i.user.getActiveRepository()===o.getId();var d,m,y,h,b="workspace-entry";e&&(b+=" workspace-current");var v,g=i.user.getGUIPreference("MaskedWorkspaces")||[];g.indexOf&&g.indexOf(o.getId())>-1&&(v=!0,b+=" workspace-masked");var w,S,O=this.getRootItemStyle(e,i.getContextHolder().getContextNode());b+=" workspace-access-"+o.getAccessType(),a&&(d=function(e){a(e,o)}.bind(this)),l&&(m=function(e){l(e,o)}.bind(this));var x,P,j="mdi mdi-folder",k={fontSize:20,marginRight:10,opacity:.53};if(c)j=t?"mdi mdi-folder-multiple":"mdi mdi-folder",e||(j+="-outline");else if("workspace-personal"===o.getRepositoryType())j="mdi mdi-folder-account";else if("cell"===o.getRepositoryType()&&(j="icomoon-cells",k=Jm(Jm({},k),{},{fontSize:22}),f&&o.userIsOwner())){var C={position:"absolute",left:30,top:16,fontSize:11,opacity:e?.53:.33};S=p().createElement("span",{className:"mdi mdi-account",style:C})}if(e&&!c){if(x=i.getContextHolder().getRootNode(),s){x.isLoading()&&x.observeOnce("loaded",(function(){r.forceUpdate()}));var T=x.getChildren(),R=!1;if(T.forEach((function(e){e.isLeaf()||(R=!0)})),R){var _=this.state.openFoldersTree?"mdi mdi-chevron-down":"mdi mdi-chevron-right";h=p().createElement("span",{style:{opacity:.3},className:"workspace-additional-action "+_,onClick:this.toggleFoldersPanelOpen})}}k.opacity=1,P=x}else(x=new(zm())("/",!1,o.getLabel())).setRoot(!0),x.getMetadata().set("repository_id",o.getId()),x.getMetadata().set("workspaceEntry",o);var M=this.state,I=M.popoverOpen,A=M.popoverAnchor,D=M.popoverTop,N=M.popoverHeight;if(M.loading)y=p().createElement(E.CircularProgress,{size:20,thickness:2,style:{marginTop:2,marginRight:6,opacity:.5}});else if(!c){var L=I?{opacity:1}:{};I&&(O=Jm(Jm({},O),{},{backgroundColor:"rgba(133, 133, 133, 0.1)"}));var z="mdi-dots-vertical",B="",F=function(e){return r.workspacePopover(e,P)};v&&(z="mdi-playlist-check",B="Unmask "+o.getLabel(),F=function(e){i.user.setGUIPreference("MaskedWorkspaces",g.filter((function(e){return e!==o.getId()})),!0)}),y=p().createElement("span",{title:B,className:"workspace-additional-action with-hover mdi "+z,onClick:F,style:L})}c||!o.getOwner()||i.getPluginConfigs("action.advanced_settings").get("GLOBAL_DISABLE_CHATS")||(w=p().createElement(fy,{pydio:i,roomType:"WORKSPACE",objectId:o.getId()}));var W=o.getLabel(),H=o.getLabel();if(o.getDescription()&&(W+=" - "+o.getDescription()),c){var q=0,U=i.getContextHolder().getSearchNode().getChildren();"all"===o.getSlug()?q=U.size:U.forEach((function(e){e.getMetadata().get("repository_id")!==o.getId()&&"previous_context"!==o.getSlug()||q++}));var V="all"===u.scope;q&&(V||e)&&(H+=" ("+q+")")}var K=p().createElement("span",{className:j,style:k}),G=p().createElement(wy,{node:x,className:b,onClick:this.onClick.bind(this),onMouseOver:d,onMouseOut:m,onContextMenu:function(e){return r.onContextMenu(e,P)},style:O},K,S,p().createElement("span",{className:"workspace-label",title:W},H),w,h,p().createElement("span",{style:{flex:1}}),y,p().createElement(dy,{open:I,anchorEl:A,useLayerForClickAway:!0,autoCloseWhenOffScreen:!1,canAutoPosition:!0,onRequestClose:function(){r.setState({popoverOpen:!1})},anchorOrigin:{horizontal:"right",vertical:D?"bottom":"center"},targetOrigin:{horizontal:"left",vertical:D?"bottom":"center"},zDepth:3,style:{overflow:"hidden",height:N}},p().createElement(E.Menu,{style:{maxWidth:400},listStyle:{paddingBottom:0,paddingTop:0}},this.state.popoverContent)));return s?p().createElement("div",null,G,p().createElement(uy,{pydio:i,dataModel:i.getContextHolder(),className:this.state.openFoldersTree?"open":"closed",draggable:!0,getItemStyle:this.getItemStyle,paddingOffset:-15,offsetSize:15})):G}}]),r}(p().Component);ly(gy,"propTypes",{pydio:d().instanceOf(t()).isRequired,workspace:d().instanceOf(Repository).isRequired,showFoldersTree:d().bool,onHoverLink:d().func,onOutLink:d().func});var wy=function(e){var t=e.canDrop,r=e.isOver,n=e.connectDropTarget,o=e.className||"";return t&&r&&(o+=" droppable-active"),p().createElement("div",Zm({},e,{className:o,ref:function(e){var t=x().findDOMNode(e);"function"==typeof n&&n(t)}}))};wy=(0,Nm.DropTarget)(my.NODE_PROVIDER,hy,yy)(wy),gy=(0,P.muiThemeable)()(gy);var Sy=r(17367),Oy=r.n(Sy);function xy(e){return xy="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},xy(e)}function Py(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ey(e,t){for(var r=0;r0}},{key:"render",value:function(){var e=this,t=this.props,r=t.pydio,n=t.facets,o=t.onToggleFacet,i=t.activeFacets,a=void 0===i?[]:i,l=t.zDepth,s=void 0===l?1:l,c=t.styles,u=void 0===c?{}:c,f=t.emptyStateView,d=function(e){return r.MessageHash["user_home."+e]||e},m={},y={NodeType:"type",Extension:"extension",Size:"size",ModifTime:"modified",Basename:"found",Meta:"metadata"},h=a.filter((function(e){return"TextContent"===e.FieldName})).length>0;n.forEach((function(e){var t=e.FieldName;0===t.indexOf("Meta.")&&(t="Meta"),"Basename"===t&&h||("TextContent"===t&&(t="Basename"),m[t]||(m[t]=[]),m[t].push(e))}));var b=!0;return Object.keys(y).filter((function(e){return m[e]})).filter((function(t){return m[t].filter((function(t){return e.isSelected(a,t)})).length>0||m[t].length>1})).length||(b=!1),p().createElement(E.Paper,{zDepth:s,style:u.container},!b&&f,b&&p().createElement("div",{style:u.header},d("search.facets.title")),b&&Object.keys(y).filter((function(e){return m[e]})).filter((function(t){return m[t].filter((function(t){return e.isSelected(a,t)})).length>0||m[t].length>1})).map((function(t){return p().createElement("div",null,p().createElement("div",{style:u.subHeader},d("search.facet."+y[t])),p().createElement("div",{style:{zoom:1}},m[t].sort((function(e,t){return e.Label.localeCompare(t.Label)})).map((function(t){return p().createElement(_y,{key:t.Label,m:d,facet:t,selected:e.isSelected(a,t),onSelect:o})}))))})))}}]),r}(p().Component);const Iy=My;function Ay(e){return Ay="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},Ay(e)}function Dy(e){return function(e){if(Array.isArray(e))return Ny(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 Ny(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ny(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 Ny(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1&&(r=Math.floor(o/t)+1)}for(var i=Math.ceil(e.length/t),a=(r-1)*t,l=Math.min(r*t,e.length),s=[],c=1;c<=i;c++)s.push(c);return{use:!0,sliceStart:a,sliceEnd:l,total:e.length,pages:s,page:r,pageSize:t}}},{key:"renderPagination",value:function(e){var t=this,r=this.props.titleStyle,n=e.page,o=e.pages,i=e.sliceStart,a=e.sliceEnd,l=e.total,s={style:{width:36,height:36,padding:6},iconStyle:{color:r.color}};return p().createElement("div",{style:{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.03)",color:r.color,alignItems:"center",justifyContent:"center",fontWeight:400}},p().createElement(E.IconButton,Fy({iconClassName:"mdi mdi-chevron-left",disabled:1===n,onClick:function(){return t.setState({page:n-1})}},s)),p().createElement("div",null,i+1,"-",a," of ",l),p().createElement(E.IconButton,Fy({iconClassName:"mdi mdi-chevron-right",disabled:n===o.length,onClick:function(){return t.setState({page:n+1})}},s)))}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.title,o=r.entries,i=void 0===o?[]:o,a=r.filterHint,l=r.workspaceEntryStyler,s=r.titleStyle,c=r.pydio,u=r.createAction,f=r.createActionEntry,d=r.activeWorkspace,m=r.palette,y=r.buttonStyles,h=r.emptyState,b=r.className,v=r.showOwner,g=r.searchView,w=r.values,S=r.setValues,O=r.searchLoading,x=r.listSettings,P=this.state,j=P.toggleFilter,k=P.filterValue,C=i.filter((function(e){return function(e,t,r){return!e||!t||r.getLabel().toLowerCase().indexOf(t.toLowerCase())>=0}(j,k,e)})),T=this.computePagination(C);return T.use&&(C=C.slice(T.sliceStart,T.sliceEnd)),j&&k&&1===C.length&&C[0].getId()!==d&&(e=C[0]),p().createElement("div",{className:b},!j&&p().createElement("div",{key:"shared-title",className:"section-title",style:s},p().createElement("span",{style:{cursor:"pointer"},title:a,onClick:function(){t.setState({toggleFilter:!0})}},n,i.length>0&&p().createElement("span",{style:{fontSize:12,opacity:"0.4",marginLeft:3},className:"mdi mdi-filter"})),x,u),j&&p().createElement("div",{key:"shared-title",className:"section-title filter-active",style:zy(zy({},s),{},{paddingLeft:12,paddingRight:8,textTransform:"none",transition:"none"})},p().createElement(Jy,{focusOnMount:!0,fullWidth:!0,style:{marginTop:-16,marginBottom:-16,top:-1},hintText:a,hintStyle:{fontWeight:400},inputStyle:{fontWeight:400,color:m.primary1Color,backgroundColor:"rgba(0,0,0,.03)"},value:k,onChange:function(e,r){t.setState({filterValue:r})},onBlur:function(){setTimeout((function(){k||t.setState({toggleFilter:!1})}),150)},onKeyPress:function(r){if("Enter"===r.key&&e){if(g){var n=e.getSlug();"all"!==n&&"previous_context"!==n&&(n+="/"),S(zy(zy({},w),{},{scope:n}))}else c.triggerRepositoryChange(e.getId());t.setState({filterValue:"",toggleFilter:!1})}}}),e&&p().createElement("div",{style:zy(zy({},y.button),{},{right:28,lineHeight:"24px",fontSize:20,opacity:.5})},p().createElement("span",{className:"mdi mdi-keyboard-return"})),p().createElement(E.IconButton,{key:"close-filter",iconClassName:"mdi mdi-close",style:y.button,iconStyle:y.icon,onClick:function(){t.setState({toggleFilter:!1,filterValue:""})}})),p().createElement("div",{className:"workspaces"},C.map((function(e){return p().createElement(gy,{pydio:c,key:e.getId(),workspace:e,showOwner:v,showFoldersTree:d&&d===e.getId(),searchView:g,values:w,setValues:S,searchLoading:O,styler:l})})),!i.length&&h,(i.length>0||!h)&&f,T.use&&this.renderPagination(T)))}}]),r}(p().Component),th=function(e){Vy(r,e);var t=Gy(r);function r(e,n){var o;return Wy(this,r),(o=t.call(this,e,n)).state=o.stateFromPydio(e.pydio),o._reloadObserver=function(){o.setState(o.stateFromPydio(o.props.pydio))},o}return qy(r,[{key:"shouldComponentUpdate",value:function(e,t){return t.random!==this.state.random||t.popoverOpen!==this.state.popoverOpen||e.searchView!==this.props.searchView||e.values!==this.props.values||e.facets!==this.props.facets||e.activeFacets!==this.props.activeFacets}},{key:"stateFromPydio",value:function(e){var t,r,n=e.user?e.user.getRepositoriesList():new Map,o=!1,i={},a=!1;return e.user&&((i=e.user.getGUIPreferences()).MaskedWorkspaces&&i.MaskedWorkspaces.length&&(t=i.MaskedWorkspaces,r=i["LeftPanel.MaskedWorkspaces.Show"]||!1),o=i["LeftPanel.OwnedCellsFirst"],a=i["LeftPanel.MergeWorkspaces"]||e.getPluginConfigs("core.pydio").get("MERGE_WORKSPACES_AND_CELLS")),{random:Math.random(),merge:a,workspaces:n,hiddenWorkspaces:t,hiddenWsStatus:r,cellsSortingMixed:o,userPrefs:i,activeWorkspace:!!e.user&&e.user.activeRepository,activeRepoIsHome:e.user&&"homepage"===e.user.activeRepository}}},{key:"togglePref",value:function(e){var t=this.props.pydio,r=this.state.userPrefs;switch(e){case"mask":var n=this.state.hiddenWsStatus;r["LeftPanel.MaskedWorkspaces.Show"]=!n;break;case"owned":var o=this.state.cellsSortingMixed;r["LeftPanel.OwnedCellsFirst"]=!o;break;case"merge":var i=this.state.merge;r["LeftPanel.MergeWorkspaces"]=!i}t.user.setGUIPreferences(r,!0)}},{key:"componentDidMount",value:function(){this.props.pydio.observe("repository_list_refreshed",this._reloadObserver)}},{key:"componentWillUnmount",value:function(){this.props.pydio.stopObserving("repository_list_refreshed",this._reloadObserver)}},{key:"createRepositoryEnabled",value:function(){return this.props.pydio.getPluginConfigs("auth").get("USER_CREATE_CELLS")}},{key:"render",value:function(){var e,t,r=this,n=this.state,o=n.workspaces,i=n.hiddenWorkspaces,a=n.hiddenWsStatus,l=n.activeWorkspace,s=n.popoverOpen,c=n.popoverAnchor,u=n.popoverContent,f=n.merge,d=n.cellsSortingMixed,m=this.props,y=m.pydio,h=m.className,b=m.muiTheme,v=m.sectionTitleStyle,w=m.workspaceEntryStyler,S=m.searchView,O=m.values,x=m.setValues,P=m.searchLoading,j=m.facets,C=m.activeFacets,T=m.toggleFacet,R=[];o.forEach((function(e){return R.push(e)})),i&&!a&&(R=R.filter((function(e){return-1===i.indexOf(e.getId())||l===e.getId()||S&&O.scope&&0===O.scope.indexOf(e.getSlug()+"/")}))),(R=R.filter((function(e){return!Oy().isInternal(e.getId())}))).sort((function(e,t){if("workspace-personal"===e.getRepositoryType())return-1;if("workspace-personal"===t.getRepositoryType())return 1;if(!d){if(e.userIsOwner()&&!t.userIsOwner())return-1;if(t.userIsOwner()&&!e.userIsOwner())return 1}var r=e.getLabel().localeCompare(t.getLabel(),void 0,{numeric:!0});return 0===r?e.getSlug().localeCompare(t.getSlug()):r}));var _=R.filter((function(e){return!e.getOwner()})),M=R.filter((function(e){return e.getOwner()})),I=y.MessageHash,A=function(e){var t=this,r=e.target;g().loadClassesAndApply(["ShareDialog"],(function(){t.setState({popoverOpen:!0,popoverAnchor:r,popoverContent:p().createElement(ShareDialog.CreateCellDialog,{pydio:y,onDismiss:function(){t.setState({popoverOpen:!1})}})})}))}.bind(this),D={button:{width:36,height:36,padding:6,position:"absolute",right:8,top:8},icon:{fontSize:22,color:b.palette.primary1Color}};this.createRepositoryEnabled()&&(M.length||f&&(M.length||_.length))&&(f?t=p().createElement("div",{onClick:A,className:"workspace-entry",style:zy(zy({},w.rootItemStyle.default),{},{color:"var(--md-sys-color-primary)"})},p().createElement("span",{className:"icomoon-cells-full-plus",style:{fontSize:24,marginRight:13,marginLeft:-4,opacity:.53}}),p().createElement("div",null,I[417])):e=p().createElement(E.IconButton,{key:"create-cell",style:D.button,iconStyle:D.icon,iconClassName:"mdi mdi-plus",tooltip:I[417],tooltipPosition:f?"bottom-left":"top-left",onClick:A}));var N=["user-workspaces-list"];h&&N.push(h);var L={pydio:y,palette:b.palette,buttonStyles:D,activeWorkspace:l,workspaceEntryStyler:w};if(S){var z=[],B=new(Oy())("previous_context");B.setSlug("previous_context"),B.setLabel(I[170]),z.push(B);var F=new(Oy())("all");return F.setSlug("all"),F.setLabel(I[610]),z.push(F),p().createElement("div",{className:N.join(" ")},p().createElement(eh,Fy({},L,{title:I["searchengine.scope.title"],entries:[].concat(z,Dy(_),Dy(M)),filterHint:I["ws.quick-filter"],titleStyle:zy(zy({},v),{},{marginTop:5,position:"relative",overflow:"visible",transition:"none"}),searchView:S,values:O,setValues:x,searchLoading:P})),p().createElement(Iy,{pydio:y,facets:j,activeFacets:C,onToggleFacet:T,values:O,dataModel:y.getContextHolder(),zDepth:0,styles:{container:{color:"inherit",backgroundColor:"transparent",padding:"0 16px 16px"},header:{display:"none"},subHeader:{color:k()(b.palette.primary1Color).darken(.1).alpha(.5).toString(),fontWeight:500,textTransform:"uppercase",padding:"12px 0"}}}))}var W={textAlign:"center",background:b.palette.mui3["surface-5"],color:b.palette.mui3.outline,margin:"0px 16px",borderRadius:b.borderRadius,padding:"16px 0px 10px"},H=!f&&_.length>0,q={fontSize:20,top:1},U={fontSize:16,top:1},V=p().createElement(E.IconMenu,{iconButtonElement:p().createElement(E.IconButton,{iconClassName:"mdi mdi-settings",iconStyle:{fontSize:12,opacity:.4,color:"inherit"},style:{padding:0,height:18,width:18}}),desktop:!0},p().createElement(E.Subheader,{style:{marginTop:-10}},I["ajax_gui.wslist-options.title"]),p().createElement(E.MenuItem,{leftIcon:p().createElement(E.FontIcon,{className:"mdi mdi-playlist-plus",style:q}),primaryText:I["ajax_gui.wslist-options.show-masked"],onClick:function(){return r.togglePref("mask")},rightIcon:p().createElement(E.FontIcon,{className:"mdi mdi-toggle-switch"+(a?"":"-off"),style:U})}),p().createElement(E.MenuItem,{leftIcon:p().createElement(E.FontIcon,{className:"mdi mdi-call-merge",style:zy(zy({},q),{},{transform:"rotate(90deg)",top:5})}),primaryText:I["ajax_gui.wslist-options.merge-workspaces"],onClick:function(){return r.togglePref("merge")},rightIcon:p().createElement(E.FontIcon,{className:"mdi mdi-toggle-switch"+(f?"":"-off"),style:U})}),p().createElement(E.MenuItem,{leftIcon:p().createElement(E.FontIcon,{className:"mdi mdi-account-star",style:q}),primaryText:I["ajax_gui.wslist-options.own-cells-first"],onClick:function(){return r.togglePref("owned")},rightIcon:p().createElement(E.FontIcon,{className:"mdi mdi-toggle-switch"+(d?"-off":""),style:U})}));return p().createElement("div",{className:N.join(" ")},p().createElement(Qy,{open:s,anchorEl:c,useLayerForClickAway:!0,onRequestClose:function(){r.setState({popoverOpen:!1})},anchorOrigin:M.length?{horizontal:"left",vertical:"top"}:{horizontal:"left",vertical:"bottom"},targetOrigin:M.length?{horizontal:"left",vertical:"top"}:{horizontal:"left",vertical:"bottom"},zDepth:3,style:{overflow:"hidden",marginLeft:M.length?-10:0,marginTop:M.length?-10:0}},u),H&&p().createElement(eh,Fy({},L,{title:I[468],entries:_,listSettings:V,showOwner:!d,filterHint:I["ws.quick-filter"],titleStyle:zy(zy({},v),{},{marginTop:5,position:"relative",overflow:"visible",transition:"none"}),className:"first-section"})),p().createElement(eh,Fy({},L,{title:I[f?468:469],entries:f?[].concat(Dy(_),Dy(M)):M,listSettings:H?null:V,showOwner:!d,filterHint:I["cells.quick-filter"],titleStyle:zy(zy({},v),{},{position:"relative",overflow:"visible",transition:"none"}),createAction:e,createActionEntry:t,className:H?"":"first-section",emptyState:p().createElement("div",{style:W},p().createElement("div",{className:"icomoon-cells",style:{fontSize:60}}),this.createRepositoryEnabled()&&p().createElement(E.FlatButton,{style:{color:b.palette.mui3.primary,marginTop:5},primary:!0,label:I[418],onClick:A}),p().createElement("div",{style:{fontSize:13,padding:"5px 20px"}},I[633]))})))}}]),r}(p().Component);function rh(e){return rh="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},rh(e)}function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=this,o=arguments.length,i=new Array(o),a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(h.current+=1,{overflow:n,outerHeightStyle:r}):e},x=u.useCallback((function(){var e=w();Oh(e)||g((function(t){return S(t,e)}))}),[w]);return u.useEffect((function(){var e,t=bh((function(){var e;h.current=0,d.current&&(Oh(e=w())||(0,O.flushSync)((function(){g((function(t){return S(t,e)}))})))})),r=hh(d.current);return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(d.current),function(){t.clear(),r.removeEventListener("resize",t),e&&e.disconnect()}})),bi((function(){x()})),u.useEffect((function(){h.current=0}),[c]),(0,ui.jsxs)(u.Fragment,{children:[(0,ui.jsx)("textarea",Le({value:c,onChange:function(e){h.current=0,f||x(),o&&o(e)},ref:m,rows:l,style:Le({height:v.outerHeightStyle,overflow:v.overflow?"hidden":null},s)},p)),(0,ui.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:Le({},Sh,s,{padding:0})})]})}));const Ph=xh;function Eh(e){var t=e.props,r=e.states,n=e.muiFormControl;return r.reduce((function(e,r){return e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e}),{})}const jh=u.createContext(void 0);function kh(){return u.useContext(jh)}const Ch=bi;r(35205);var Th=yr((function(e,t){var r=e.styles,n=ur([r],void 0,(0,u.useContext)(hr)),o=(0,u.useRef)();return dr((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),o.current=[r,i],function(){r.flush()}}),[t]),dr((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&vr(t,n.next,!0),r.tags.length){var i=r.tags[r.tags.length-1].nextElementSibling;r.before=i,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function Rh(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]&&arguments[1];return e&&(Ah(e.value)&&""!==e.value||t&&Ah(e.defaultValue)&&""!==e.defaultValue)}function Nh(e){return Ba("MuiInputBase",e)}const Lh=Fa("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function zh(e){return zh="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},zh(e)}function Bh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?r-1:0),o=1;oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));function gb(e){return Ba("MuiOutlinedInput",e)}const wb=Me({},Lh,Fa("MuiOutlinedInput",["root","notchedOutline","input"]));function Sb(e){return Sb="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},Sb(e)}function Ob(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Sb(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Sb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Sb(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xb=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Pb=No(Uh,{shouldForwardProp:function(e){return Io(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:Hh})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Me((Ob(t={position:"relative",borderRadius:(r.vars||r).shape.borderRadius},"&:hover .".concat(wb.notchedOutline),{borderColor:(r.vars||r).palette.text.primary}),Ob(t,"@media (hover: none)",Ob({},"&:hover .".concat(wb.notchedOutline),{borderColor:r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.23)"):o})),Ob(t,"&.".concat(wb.focused," .").concat(wb.notchedOutline),{borderColor:(r.vars||r).palette[n.color].main,borderWidth:2}),Ob(t,"&.".concat(wb.error," .").concat(wb.notchedOutline),{borderColor:(r.vars||r).palette.error.main}),Ob(t,"&.".concat(wb.disabled," .").concat(wb.notchedOutline),{borderColor:(r.vars||r).palette.action.disabled}),t),n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&Me({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),Eb=No((function(e){var t=e.className,r=e.label,n=e.notched,o=_e(e,hb),i=null!=r&&""!==r,a=Me({},e,{notched:n,withLabel:i});return(0,ui.jsx)(bb,Me({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,ui.jsx)(vb,{ownerState:a,children:i?(0,ui.jsx)("span",{children:r}):yb||(yb=(0,ui.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}})),jb=No(Vh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:qh})((function(e){var t=e.theme,r=e.ownerState;return Me({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&Ob({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),kb=u.forwardRef((function(e,t){var r,n,o,i,a,l=Vo({props:e,name:"MuiOutlinedInput"}),s=l.components,c=void 0===s?{}:s,p=l.fullWidth,f=void 0!==p&&p,d=l.inputComponent,m=void 0===d?"input":d,y=l.label,h=l.multiline,b=void 0!==h&&h,v=l.notched,g=l.slots,w=void 0===g?{}:g,S=l.type,O=void 0===S?"text":S,x=_e(l,xb),P=function(e){var t=e.classes;return Me({},t,Ne({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gb,t))}(l),E=kh(),j=Eh({props:l,muiFormControl:E,states:["required"]}),k=Me({},l,{color:j.color||"primary",disabled:j.disabled,error:j.error,focused:j.focused,formControl:E,fullWidth:f,hiddenLabel:j.hiddenLabel,multiline:b,size:j.size,type:O}),C=null!=(r=null!=(n=w.root)?n:c.Root)?r:Pb,T=null!=(o=null!=(i=w.input)?i:c.Input)?o:jb;return(0,ui.jsx)($h,Me({slots:{root:C,input:T},renderSuffix:function(e){return(0,ui.jsx)(Eb,{ownerState:k,className:P.notchedOutline,label:null!=y&&""!==y&&j.required?a||(a=(0,ui.jsxs)(u.Fragment,{children:[y," ","*"]})):y,notched:void 0!==v?v:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:f,inputComponent:m,multiline:b,ref:t,type:O},x,{classes:Me({},P,{notchedOutline:null})}))}));kb.muiName="Input";const Cb=kb;function Tb(e){return Ba("MuiFormLabel",e)}const Rb=Fa("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);function _b(e){return _b="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},_b(e)}function Mb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_b(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ib=["children","className","color","component","disabled","error","filled","focused","required"],Ab=No("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return Me({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((function(e){var t,r=e.theme,n=e.ownerState;return Me({color:(r.vars||r).palette.text.secondary},r.typography.body1,(Mb(t={lineHeight:"1.4375em",padding:0,position:"relative"},"&.".concat(Rb.focused),{color:(r.vars||r).palette[n.color].main}),Mb(t,"&.".concat(Rb.disabled),{color:(r.vars||r).palette.text.disabled}),Mb(t,"&.".concat(Rb.error),{color:(r.vars||r).palette.error.main}),t))})),Db=No("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return Mb({},"&.".concat(Rb.error),{color:(t.vars||t).palette.error.main})})),Nb=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiFormLabel"}),n=r.children,o=r.className,i=r.component,a=void 0===i?"label":i,l=_e(r,Ib),s=Eh({props:r,muiFormControl:kh(),states:["color","required","focused","disabled","error","filled"]}),c=Me({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=function(e){var t=e.classes,r=e.color,n=e.focused,o=e.disabled,i=e.error,a=e.filled,l=e.required;return Ne({root:["root","color".concat(Ko(r)),o&&"disabled",i&&"error",a&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]},Tb,t)}(c);return(0,ui.jsxs)(Ab,Me({as:a,ownerState:c,className:De(u.root,o),ref:t},l,{children:[n,s.required&&(0,ui.jsxs)(Db,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));const Lb=Nb;function zb(e){return Ba("MuiInputLabel",e)}function Bb(e){return Bb="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},Bb(e)}Fa("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var Fb=["disableAnimation","margin","shrink","variant","className"],Wb=No(Lb,{shouldForwardProp:function(e){return Io(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var r,n,o,i=e.ownerState;return[(r={},n="& .".concat(Rb.asterisk),o=t.asterisk,(n=function(e){var t=function(e,t){if("object"!==Bb(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Bb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bb(t)?t:String(t)}(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r),t.root,i.formControl&&t.formControl,"small"===i.size&&t.sizeSmall,i.shrink&&t.shrink,!i.disableAnimation&&t.animated,t[i.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return Me({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&Me({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&Me({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&Me({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),Hb=u.forwardRef((function(e,t){var r=Vo({name:"MuiInputLabel",props:e}),n=r.disableAnimation,o=void 0!==n&&n,i=r.shrink,a=r.className,l=_e(r,Fb),s=kh(),c=i;void 0===c&&s&&(c=s.filled||s.focused||s.adornedStart);var u=Eh({props:r,muiFormControl:s,states:["size","variant","required"]}),p=Me({},r,{disableAnimation:o,formControl:s,shrink:c,size:u.size,variant:u.variant,required:u.required}),f=function(e){var t=e.classes,r=e.formControl,n=e.size,o=e.shrink;return Me({},t,Ne({root:["root",r&&"formControl",!e.disableAnimation&&"animated",o&&"shrink","small"===n&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},zb,t))}(p);return(0,ui.jsx)(Wb,Me({"data-shrink":c,ownerState:p,ref:t,className:De(f.root,a)},l,{classes:f}))}));const qb=Hb,Ub=function(e,t){return u.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)};function Vb(e){return Ba("MuiFormControl",e)}function Kb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gb(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 Gb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(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=n&&!o.repeating&&gv(n,o);o.previousKeyMatched&&(l||wv(t,n,!1,p,bv,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:o?0:-1},b,{children:O}))})),Ov=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function xv(e){return Ba("MuiPaper",e)}Fa("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var Pv=["className","component","elevation","square","variant"],Ev=No("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((function(e){var t,r=e.theme,n=e.ownerState;return Me({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!n.square&&{borderRadius:r.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((r.vars||r).palette.divider)},"elevation"===n.variant&&Me({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat(Ve("#fff",Ov(n.elevation)),", ").concat(Ve("#fff",Ov(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))})),jv=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiPaper"}),n=r.className,o=r.component,i=void 0===o?"div":o,a=r.elevation,l=void 0===a?1:a,s=r.square,c=void 0!==s&&s,u=r.variant,p=void 0===u?"elevation":u,f=_e(r,Pv),d=Me({},r,{component:i,elevation:l,square:c,variant:p}),m=function(e){var t=e.square,r=e.elevation,n=e.variant,o=e.classes;return Ne({root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]},xv,o)}(d);return(0,ui.jsx)(Ev,Me({as:i,ownerState:d,className:De(m.root,n),ref:t},f))}));const kv=jv,Cv=bh,Tv=hh;function Rv(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rt.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var o=mv(vi(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(Dv(n)+o,"px");var i=vi(n).querySelectorAll(".mui-fixed");[].forEach.call(i,(function(e){r.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(Dv(e)+o,"px")}))}var a;if(n.parentNode instanceof DocumentFragment)a=vi(n).body;else{var l=n.parentElement,s=hh(n);a="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===s.getComputedStyle(l).overflowY?l:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){r.forEach((function(e){var t=e.value,r=e.el,n=e.property;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}(n,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;var n=Lv(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Av(e.modalRef,t),Nv(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{var i=o.modals[o.modals.length-1];i.modalRef&&Av(i.modalRef,!1)}return r}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}],r&&Mv(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Bv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Fv(e){var t=[],r=[];return Array.from(e.querySelectorAll(Bv)).forEach((function(e,n){var o=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function Wv(){return!0}const Hv=function(e){var t=e.children,r=e.disableAutoFocus,n=void 0!==r&&r,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,l=void 0!==a&&a,s=e.getTabbable,c=void 0===s?Fv:s,p=e.isEnabled,f=void 0===p?Wv:p,d=e.open,m=u.useRef(!1),y=u.useRef(null),h=u.useRef(null),b=u.useRef(null),v=u.useRef(null),g=u.useRef(!1),w=u.useRef(null),S=si(t.ref,w),O=u.useRef(null);u.useEffect((function(){d&&w.current&&(g.current=!n)}),[n,d]),u.useEffect((function(){if(d&&w.current){var e=vi(w.current);return w.current.contains(e.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),g.current&&w.current.focus()),function(){l||(b.current&&b.current.focus&&(m.current=!0,b.current.focus()),b.current=null)}}}),[d]),u.useEffect((function(){if(d&&w.current){var e=vi(w.current),t=function(t){var r=w.current;if(null!==r)if(e.hasFocus()&&!i&&f()&&!m.current){if(!r.contains(e.activeElement)){if(t&&v.current!==t.target||e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!g.current)return;var n=[];if(e.activeElement!==y.current&&e.activeElement!==h.current||(n=c(w.current)),n.length>0){var o,a,l=Boolean((null==(o=O.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=O.current)?void 0:a.key)),s=n[0],u=n[n.length-1];"string"!=typeof s&&"string"!=typeof u&&(l?u.focus():s.focus())}else r.focus()}}else m.current=!1},r=function(t){O.current=t,!i&&f()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(m.current=!0,h.current&&h.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",r,!0);var n=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return function(){clearInterval(n),e.removeEventListener("focusin",t),e.removeEventListener("keydown",r,!0)}}}),[n,i,l,f,d,c]);var x=function(e){null===b.current&&(b.current=e.relatedTarget),g.current=!0};return(0,ui.jsxs)(u.Fragment,{children:[(0,ui.jsx)("div",{tabIndex:d?0:-1,onFocus:x,ref:y,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:S,onFocus:function(e){null===b.current&&(b.current=e.relatedTarget),g.current=!0,v.current=e.target;var r=t.props.onFocus;r&&r(e)}}),(0,ui.jsx)("div",{tabIndex:d?0:-1,onFocus:x,ref:h,"data-testid":"sentinelEnd"})]})};function qv(e){return Ba("MuiModal",e)}function Uv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);ru){var m=l-u;o-=m,r.vertical+=m}if(ip){var h=s-p;i-=h,r.horizontal+=h}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:hg(r)}}),[a,f,L,z,g]),F=(r=u.useState(w),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pg(e,t):void 0}}(r,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.")}()),W=F[0],H=F[1],q=u.useCallback((function(){var e=I.current;if(e){var t=B(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,H(!0)}}),[B]);u.useEffect((function(){w&&q()})),u.useImperativeHandle(i,(function(){return w?{updatePosition:function(){q()}}:null}),[w,q]),u.useEffect((function(){if(w){var e=Cv((function(){q()})),t=Tv(a);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[a,w,q]);var U=C;"auto"!==C||j.muiSupportAuto||(U=void 0);var V=y||(a?lv(bg(a)).body:void 0);return(0,ui.jsx)(vg,Me({BackdropProps:{invisible:!0},className:De(N.root,m),container:V,open:w,ref:t,ownerState:D},M,{children:(0,ui.jsx)(j,Me({appear:!0,in:w,onEntering:function(e,t){R&&R(e,t),q()},onExited:function(){H(!1)},timeout:U},_,{children:(0,ui.jsx)(gg,Me({elevation:b},O,{ref:A,className:De(N.paper,O.className)},W?void 0:{style:Me({},O.style,{opacity:0})},{ownerState:D,children:d}))}))}))}));const Sg=wg;function Og(e){return Ba("MuiMenu",e)}Fa("MuiMenu",["root","paper","list"]);var xg=["onEntering"],Pg=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Eg={vertical:"top",horizontal:"right"},jg={vertical:"top",horizontal:"left"},kg=No(Sg,{shouldForwardProp:function(e){return Io(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Cg=No(kv,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Tg=No(Sv,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),Rg=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiMenu"}),n=r.autoFocus,o=void 0===n||n,i=r.children,a=r.disableAutoFocusItem,l=void 0!==a&&a,s=r.MenuListProps,c=void 0===s?{}:s,p=r.onClose,f=r.open,d=r.PaperProps,m=void 0===d?{}:d,y=r.PopoverClasses,h=r.transitionDuration,b=void 0===h?"auto":h,v=r.TransitionProps,g=(void 0===v?{}:v).onEntering,w=r.variant,S=void 0===w?"selectedMenu":w,O=_e(r.TransitionProps,xg),x=_e(r,Pg),P=Ho(),E="rtl"===P.direction,j=Me({},r,{autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:m,transitionDuration:b,TransitionProps:O,variant:S}),k=function(e){return Ne({root:["root"],paper:["paper"],list:["list"]},Og,e.classes)}(j),C=o&&!l&&f,T=u.useRef(null),R=-1;return u.Children.map(i,(function(e,t){u.isValidElement(e)&&(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===R)&&(R=t))})),(0,ui.jsx)(kg,Me({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Eg:jg,PaperProps:Me({component:Cg},m,{classes:Me({},m.classes,{root:k.paper})}),className:k.root,open:f,ref:t,transitionDuration:b,TransitionProps:Me({onEntering:function(e,t){T.current&&T.current.adjustStyleForScrollbar(e,P),g&&g(e,t)}},O),ownerState:j},x,{classes:y,children:(0,ui.jsx)(Tg,Me({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:T,autoFocus:o&&(-1===R||l),autoFocusItem:C,variant:S},c,{className:De(k.list,c.className),children:i}))}))}));const _g=Rg;function Mg(e){return Ba("MuiNativeSelect",e)}const Ig=Fa("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);function Ag(e){return Ag="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},Ag(e)}function Dg(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ag(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ag(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ag(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ng=["className","disabled","IconComponent","inputRef","variant"],Lg=function(e){var t,r=e.ownerState,n=e.theme;return Me((Dg(t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Me({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},"&.".concat(Ig.disabled),{cursor:"default"}),Dg(t,"&[multiple]",{height:"auto"}),Dg(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(n.vars||n).palette.background.paper}),Dg(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===r.variant&&{"&&&":{paddingRight:32}},"outlined"===r.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},zg=No("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Io,overridesResolver:function(e,t){var r=e.ownerState;return[t.select,t[r.variant],Dg({},"&.".concat(Ig.multiple),t.multiple)]}})(Lg),Bg=function(e){var t=e.ownerState,r=e.theme;return Me(Dg({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active},"&.".concat(Ig.disabled),{color:(r.vars||r).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Fg=No("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat(Ko(r.variant))],r.open&&t.iconOpen]}})(Bg),Wg=u.forwardRef((function(e,t){var r=e.className,n=e.disabled,o=e.IconComponent,i=e.inputRef,a=e.variant,l=void 0===a?"standard":a,s=_e(e,Ng),c=Me({},e,{disabled:n,variant:l}),p=function(e){var t=e.classes,r=e.variant,n=e.disabled,o=e.multiple,i=e.open;return Ne({select:["select",r,n&&"disabled",o&&"multiple"],icon:["icon","icon".concat(Ko(r)),i&&"iconOpen",n&&"disabled"]},Mg,t)}(c);return(0,ui.jsxs)(u.Fragment,{children:[(0,ui.jsx)(zg,Me({ownerState:c,className:De(p.select,r),disabled:n,ref:i||t},s)),e.multiple?null:(0,ui.jsx)(Fg,{as:o,ownerState:c,className:p.icon})]})}));const Hg=Wg;function qg(e){return Ba("MuiSelect",e)}const Ug=Fa("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);function Vg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kg(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 Kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,r=void 0===t||t,n=e.ignoreCase,o=void 0===n||n,i=e.limit,a=e.matchFrom,l=void 0===a?"any":a,s=e.stringify,c=e.trim,u=void 0!==c&&c;return function(e,t){var n=t.inputValue,a=t.getOptionLabel,c=u?n.trim():n;o&&(c=c.toLowerCase()),r&&(c=Tw(c));var p=c?e.filter((function(e){var t=(s||a)(e);return o&&(t=t.toLowerCase()),r&&(t=Tw(t)),"start"===l?0===t.indexOf(c):t.indexOf(c)>-1})):e;return"number"==typeof i?p.slice(0,i):p}}(),Mw=5,Iw=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Aw(e){return Ba("MuiListSubheader",e)}Fa("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var Dw=["className","color","component","disableGutters","disableSticky","inset"],Nw=No("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"default"!==r.color&&t["color".concat(Ko(r.color))],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((function(e){var t=e.theme,r=e.ownerState;return Me({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===r.color&&{color:(t.vars||t).palette.primary.main},"inherit"===r.color&&{color:"inherit"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.inset&&{paddingLeft:72},!r.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),Lw=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiListSubheader"}),n=r.className,o=r.color,i=void 0===o?"default":o,a=r.component,l=void 0===a?"li":a,s=r.disableGutters,c=void 0!==s&&s,u=r.disableSticky,p=void 0!==u&&u,f=r.inset,d=void 0!==f&&f,m=_e(r,Dw),y=Me({},r,{color:i,component:l,disableGutters:c,disableSticky:p,inset:d}),h=function(e){var t=e.classes,r=e.color,n=e.disableGutters,o=e.inset,i=e.disableSticky;return Ne({root:["root","default"!==r&&"color".concat(Ko(r)),!n&&"gutters",o&&"inset",!i&&"sticky"]},Aw,t)}(y);return(0,ui.jsx)(Nw,Me({as:l,className:De(h.root,n),ref:t,ownerState:y},m))}));const zw=Lw;function Bw(e,t){var r=Object.create(null);return e&&u.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,u.isValidElement)(e)?t(e):e}(e)})),r}function Fw(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Ww(e,t,r){var n=Bw(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=t.pulsate,o=void 0!==n&&n,i=t.center,l=void 0===i?a||t.pulsate:i,s=t.fakeElement,c=void 0!==s&&s;if("mousedown"===(null==e?void 0:e.type)&&b.current)b.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(b.current=!0);var u,p,f,d=c?null:w.current,m=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(m.width/2),p=Math.round(m.height/2);else{var y=e.touches&&e.touches.length>0?e.touches[0]:e,h=y.clientX,O=y.clientY;u=Math.round(h-m.left),p=Math.round(O-m.top)}if(l)(f=Math.sqrt((2*Math.pow(m.width,2)+Math.pow(m.height,2))/3))%2==0&&(f+=1);else{var x=2*Math.max(Math.abs((d?d.clientWidth:0)-u),u)+2,P=2*Math.max(Math.abs((d?d.clientHeight:0)-p),p)+2;f=Math.sqrt(Math.pow(x,2)+Math.pow(P,2))}null!=e&&e.touches?null===g.current&&(g.current=function(){S({pulsate:o,rippleX:u,rippleY:p,rippleSize:f,cb:r})},v.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),iS)):S({pulsate:o,rippleX:u,rippleY:p,rippleSize:f,cb:r})}}),[a,S]),x=u.useCallback((function(){O({},{pulsate:!0})}),[O]),P=u.useCallback((function(e,t){if(clearTimeout(v.current),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void(v.current=setTimeout((function(){P(e,t)})));g.current=null,m((function(e){return e.length>0?e.slice(1):e})),h.current=t}),[]);return u.useImperativeHandle(t,(function(){return{pulsate:x,start:O,stop:P}}),[x,O,P]),(0,ui.jsx)(cS,Me({className:De(Kw.root,s.root,c),ref:w},p,{children:(0,ui.jsx)(Uw,{component:null,exit:!0,children:d})}))}));const fS=pS;function dS(e){return Ba("MuiButtonBase",e)}const mS=Fa("MuiButtonBase",["root","disabled","focusVisible"]);var yS;function hS(e){return hS="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},hS(e)}function bS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vS(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 vS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:h;return nl((function(n){return t&&t(n),!r&&H.current&&H.current[e](n),!0}))}u.useEffect((function(){X&&v&&!m&&Q&&H.current.pulsate()}),[m,v,X,Q]);var ne=re("start",T),oe=re("stop",x),ie=re("stop",P),ae=re("stop",_),le=re("stop",(function(e){X&&e.preventDefault(),R&&R(e)})),se=re("start",A),ce=re("stop",M),ue=re("stop",I),pe=re("stop",(function(e){G(e),!1===V.current&&J(!1),S&&S(e)}),!1),fe=nl((function(e){W.current||(W.current=e.currentTarget),K(e),!0===V.current&&(J(!0),j&&j(e)),E&&E(e)})),de=function(){var e=W.current;return c&&"button"!==c&&!("A"===e.tagName&&e.href)},me=u.useRef(!1),ye=nl((function(e){v&&!me.current&&X&&H.current&&" "===e.key&&(me.current=!0,H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&de()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&de()&&"Enter"===e.key&&!f&&(e.preventDefault(),O&&O(e))})),he=nl((function(e){v&&" "===e.key&&H.current&&X&&!e.defaultPrevented&&(me.current=!1,H.current.stop(e,(function(){H.current.pulsate(e)}))),C&&C(e),O&&e.target===e.currentTarget&&de()&&" "===e.key&&!e.defaultPrevented&&O(e)})),be=c;"button"===be&&(F.href||F.to)&&(be=w);var ve={};"button"===be?(ve.type=void 0===B?"button":B,ve.disabled=f):(F.href||F.to||(ve.role="button"),f&&(ve["aria-disabled"]=f));var ge=ci(t,$,W),we=Me({},r,{centerRipple:i,component:c,disabled:f,disableRipple:m,disableTouchRipple:h,focusRipple:v,tabIndex:N,focusVisible:X}),Se=function(e){var t=e.disabled,r=e.focusVisible,n=e.focusVisibleClassName,o=Ne({root:["root",t&&"disabled",r&&"focusVisible"]},dS,e.classes);return r&&n&&(o.root+=" ".concat(n)),o}(we);return(0,ui.jsxs)(SS,Me({as:be,className:De(Se.root,l),ownerState:we,onBlur:pe,onClick:O,onContextMenu:oe,onFocus:fe,onKeyDown:ye,onKeyUp:he,onMouseDown:ne,onMouseLeave:le,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:ue,onTouchStart:se,ref:ge,tabIndex:f?-1:N,type:B},ve,F,{children:[a,te?(0,ui.jsx)(fS,Me({ref:q,center:i},L)):null]}))}));const xS=OS;function PS(e){return Ba("MuiIconButton",e)}const ES=Fa("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);function jS(e){return jS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jS(e)}var kS=["edge","children","className","color","disabled","disableFocusRipple","size"],CS=No(xS,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"default"!==r.color&&t["color".concat(Ko(r.color))],r.edge&&t["edge".concat(Ko(r.edge))],t["size".concat(Ko(r.size))]]}})((function(e){var t=e.theme,r=e.ownerState;return Me({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):Ve(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(function(e){var t,r,n,o,i=e.theme,a=e.ownerState,l=null==(t=(i.vars||i).palette)?void 0:t[a.color];return Me({},"inherit"===a.color&&{color:"inherit"},"inherit"!==a.color&&"default"!==a.color&&Me({color:null==l?void 0:l.main},!a.disableRipple&&{"&:hover":Me({},l&&{backgroundColor:i.vars?"rgba(".concat(l.mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):Ve(l.main,i.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===a.size&&{padding:5,fontSize:i.typography.pxToRem(18)},"large"===a.size&&{padding:12,fontSize:i.typography.pxToRem(28)},(r={},n="&.".concat(ES.disabled),o={backgroundColor:"transparent",color:(i.vars||i).palette.action.disabled},(n=function(e){var t=function(e,t){if("object"!==jS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==jS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===jS(t)?t:String(t)}(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r))})),TS=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiIconButton"}),n=r.edge,o=void 0!==n&&n,i=r.children,a=r.className,l=r.color,s=void 0===l?"default":l,c=r.disabled,u=void 0!==c&&c,p=r.disableFocusRipple,f=void 0!==p&&p,d=r.size,m=void 0===d?"medium":d,y=_e(r,kS),h=Me({},r,{edge:o,color:s,disabled:u,disableFocusRipple:f,size:m}),b=function(e){var t=e.classes,r=e.disabled,n=e.color,o=e.edge,i=e.size;return Ne({root:["root",r&&"disabled","default"!==n&&"color".concat(Ko(n)),o&&"edge".concat(Ko(o)),"size".concat(Ko(i))]},PS,t)}(h);return(0,ui.jsx)(CS,Me({className:De(b.root,a),centerRipple:!0,focusRipple:!f,disabled:u,ref:t,ownerState:h},y,{children:i}))}));const RS=TS,_S=cw((0,ui.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function MS(e){return Ba("MuiChip",e)}const IS=Fa("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function AS(e){return AS="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},AS(e)}function DS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==AS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==AS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===AS(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var NS=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],LS=No("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState,n=r.color,o=r.iconColor,i=r.clickable,a=r.onDelete,l=r.size,s=r.variant;return[DS({},"& .".concat(IS.avatar),t.avatar),DS({},"& .".concat(IS.avatar),t["avatar".concat(Ko(l))]),DS({},"& .".concat(IS.avatar),t["avatarColor".concat(Ko(n))]),DS({},"& .".concat(IS.icon),t.icon),DS({},"& .".concat(IS.icon),t["icon".concat(Ko(l))]),DS({},"& .".concat(IS.icon),t["iconColor".concat(Ko(o))]),DS({},"& .".concat(IS.deleteIcon),t.deleteIcon),DS({},"& .".concat(IS.deleteIcon),t["deleteIcon".concat(Ko(l))]),DS({},"& .".concat(IS.deleteIcon),t["deleteIconColor".concat(Ko(n))]),DS({},"& .".concat(IS.deleteIcon),t["deleteIcon".concat(Ko(s),"Color").concat(Ko(n))]),t.root,t["size".concat(Ko(l))],t["color".concat(Ko(n))],i&&t.clickable,i&&"default"!==n&&t["clickableColor".concat(Ko(n),")")],a&&t.deletable,a&&"default"!==n&&t["deletableColor".concat(Ko(n))],t[s],t["".concat(s).concat(Ko(n))]]}})((function(e){var t,r=e.theme,n=e.ownerState,o=Ve(r.palette.text.primary,.26),i="light"===r.palette.mode?r.palette.grey[700]:r.palette.grey[300];return Me((DS(t={maxWidth:"100%",fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(r.vars||r).palette.text.primary,backgroundColor:(r.vars||r).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:r.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},"&.".concat(IS.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),DS(t,"& .".concat(IS.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:r.vars?r.vars.palette.Chip.defaultAvatarColor:i,fontSize:r.typography.pxToRem(12)}),DS(t,"& .".concat(IS.avatarColorPrimary),{color:(r.vars||r).palette.primary.contrastText,backgroundColor:(r.vars||r).palette.primary.dark}),DS(t,"& .".concat(IS.avatarColorSecondary),{color:(r.vars||r).palette.secondary.contrastText,backgroundColor:(r.vars||r).palette.secondary.dark}),DS(t,"& .".concat(IS.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:r.typography.pxToRem(10)}),DS(t,"& .".concat(IS.icon),Me({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&Me({color:r.vars?r.vars.palette.Chip.defaultIconColor:i},"default"!==n.color&&{color:"inherit"}))),DS(t,"& .".concat(IS.deleteIcon),Me({WebkitTapHighlightColor:"transparent",color:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / 0.26)"):o,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / 0.4)"):Ve(o,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:r.vars?"rgba(".concat(r.vars.palette[n.color].contrastTextChannel," / 0.7)"):Ve(r.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(r.vars||r).palette[n.color].contrastText}})),t),"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(r.vars||r).palette[n.color].main,color:(r.vars||r).palette[n.color].contrastText},n.onDelete&&DS({},"&.".concat(IS.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selectedChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):Ve(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),n.onDelete&&"default"!==n.color&&DS({},"&.".concat(IS.focusVisible),{backgroundColor:(r.vars||r).palette[n.color].dark}))}),(function(e){var t,r=e.theme,n=e.ownerState;return Me({},n.clickable&&(DS(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selectedChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):Ve(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)}},"&.".concat(IS.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selectedChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):Ve(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),DS(t,"&:active",{boxShadow:(r.vars||r).shadows[1]}),t),n.clickable&&"default"!==n.color&&DS({},"&:hover, &.".concat(IS.focusVisible),{backgroundColor:(r.vars||r).palette[n.color].dark}))}),(function(e){var t,r,n=e.theme,o=e.ownerState;return Me({},"outlined"===o.variant&&(DS(t={backgroundColor:"transparent",border:n.vars?"1px solid ".concat(n.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[700])},"&.".concat(IS.clickable,":hover"),{backgroundColor:(n.vars||n).palette.action.hover}),DS(t,"&.".concat(IS.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),DS(t,"& .".concat(IS.avatar),{marginLeft:4}),DS(t,"& .".concat(IS.avatarSmall),{marginLeft:2}),DS(t,"& .".concat(IS.icon),{marginLeft:4}),DS(t,"& .".concat(IS.iconSmall),{marginLeft:2}),DS(t,"& .".concat(IS.deleteIcon),{marginRight:5}),DS(t,"& .".concat(IS.deleteIconSmall),{marginRight:3}),t),"outlined"===o.variant&&"default"!==o.color&&(DS(r={color:(n.vars||n).palette[o.color].main,border:"1px solid ".concat(n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / 0.7)"):Ve(n.palette[o.color].main,.7))},"&.".concat(IS.clickable,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):Ve(n.palette[o.color].main,n.palette.action.hoverOpacity)}),DS(r,"&.".concat(IS.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.focusOpacity,")"):Ve(n.palette[o.color].main,n.palette.action.focusOpacity)}),DS(r,"& .".concat(IS.deleteIcon),{color:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / 0.7)"):Ve(n.palette[o.color].main,.7),"&:hover, &:active":{color:(n.vars||n).palette[o.color].main}}),r))})),zS=No("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var r=e.ownerState.size;return[t.label,t["label".concat(Ko(r))]]}})((function(e){return Me({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.ownerState.size&&{paddingLeft:8,paddingRight:8})}));function BS(e){return"Backspace"===e.key||"Delete"===e.key}var FS=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiChip"}),n=r.avatar,o=r.className,i=r.clickable,a=r.color,l=void 0===a?"default":a,s=r.component,c=r.deleteIcon,p=r.disabled,f=void 0!==p&&p,d=r.icon,m=r.label,y=r.onClick,h=r.onDelete,b=r.onKeyDown,v=r.onKeyUp,g=r.size,w=void 0===g?"medium":g,S=r.variant,O=void 0===S?"filled":S,x=r.tabIndex,P=r.skipFocusWhenDisabled,E=void 0!==P&&P,j=_e(r,NS),k=u.useRef(null),C=ci(k,t),T=function(e){e.stopPropagation(),h&&h(e)},R=!(!1===i||!y)||i,_=R||h?xS:s||"div",M=Me({},r,{component:_,disabled:f,size:w,color:l,iconColor:u.isValidElement(d)&&d.props.color||l,onDelete:!!h,clickable:R,variant:O}),I=function(e){var t=e.classes,r=e.disabled,n=e.size,o=e.color,i=e.iconColor,a=e.onDelete,l=e.clickable,s=e.variant;return Ne({root:["root",s,r&&"disabled","size".concat(Ko(n)),"color".concat(Ko(o)),l&&"clickable",l&&"clickableColor".concat(Ko(o)),a&&"deletable",a&&"deletableColor".concat(Ko(o)),"".concat(s).concat(Ko(o))],label:["label","label".concat(Ko(n))],avatar:["avatar","avatar".concat(Ko(n)),"avatarColor".concat(Ko(o))],icon:["icon","icon".concat(Ko(n)),"iconColor".concat(Ko(i))],deleteIcon:["deleteIcon","deleteIcon".concat(Ko(n)),"deleteIconColor".concat(Ko(o)),"deleteIcon".concat(Ko(s),"Color").concat(Ko(o))]},MS,t)}(M),A=_===xS?Me({component:s||"div",focusVisibleClassName:I.focusVisible},h&&{disableRipple:!0}):{},D=null;h&&(D=c&&u.isValidElement(c)?u.cloneElement(c,{className:De(c.props.className,I.deleteIcon),onClick:T}):(0,ui.jsx)(_S,{className:De(I.deleteIcon),onClick:T}));var N=null;n&&u.isValidElement(n)&&(N=u.cloneElement(n,{className:De(I.avatar,n.props.className)}));var L=null;return d&&u.isValidElement(d)&&(L=u.cloneElement(d,{className:De(I.icon,d.props.className)})),(0,ui.jsxs)(LS,Me({as:_,className:De(I.root,o),disabled:!(!R||!f)||void 0,onClick:y,onKeyDown:function(e){e.currentTarget===e.target&&BS(e)&&e.preventDefault(),b&&b(e)},onKeyUp:function(e){e.currentTarget===e.target&&(h&&BS(e)?h(e):"Escape"===e.key&&k.current&&k.current.blur()),v&&v(e)},ref:C,tabIndex:E&&f?-1:x,ownerState:M},A,j,{children:[N||L,(0,ui.jsx)(zS,{className:De(I.label),ownerState:M,children:m}),D]}))}));const WS=FS,HS=cw((0,ui.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function qS(e){return Ba("MuiAutocomplete",e)}const US=Fa("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);function VS(e){return VS="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},VS(e)}function KS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==VS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==VS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===VS(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var GS,$S,YS=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],XS=No("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState,n=r.fullWidth,o=r.hasClearIcon,i=r.hasPopupIcon,a=r.inputFocused,l=r.size;return[KS({},"& .".concat(US.tag),t.tag),KS({},"& .".concat(US.tag),t["tagSize".concat(Ko(l))]),KS({},"& .".concat(US.inputRoot),t.inputRoot),KS({},"& .".concat(US.input),t.input),KS({},"& .".concat(US.input),a&&t.inputFocused),t.root,n&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})((function(e){var t,r,n,o,i,a=e.ownerState;return Me((KS(t={},"&.".concat(US.focused," .").concat(US.clearIndicator),{visibility:"visible"}),KS(t,"@media (pointer: fine)",KS({},"&:hover .".concat(US.clearIndicator),{visibility:"visible"})),t),a.fullWidth&&{width:"100%"},(KS(i={},"& .".concat(US.tag),Me({margin:3,maxWidth:"calc(100% - 6px)"},"small"===a.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),KS(i,"& .".concat(US.inputRoot),(KS(r={flexWrap:"wrap"},".".concat(US.hasPopupIcon,"&, .").concat(US.hasClearIcon,"&"),{paddingRight:30}),KS(r,".".concat(US.hasPopupIcon,".").concat(US.hasClearIcon,"&"),{paddingRight:56}),KS(r,"& .".concat(US.input),{width:0,minWidth:30}),r)),KS(i,"& .".concat(Xh.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),KS(i,"& .".concat(Xh.root,".").concat(Lh.sizeSmall),KS({},"& .".concat(Xh.input),{padding:"2px 4px 3px 0"})),KS(i,"& .".concat(wb.root),(KS(n={padding:9},".".concat(US.hasPopupIcon,"&, .").concat(US.hasClearIcon,"&"),{paddingRight:39}),KS(n,".".concat(US.hasPopupIcon,".").concat(US.hasClearIcon,"&"),{paddingRight:65}),KS(n,"& .".concat(US.input),{padding:"7.5px 4px 7.5px 6px"}),KS(n,"& .".concat(US.endAdornment),{right:9}),n)),KS(i,"& .".concat(wb.root,".").concat(Lh.sizeSmall),KS({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(US.input),{padding:"2.5px 4px 2.5px 6px"})),KS(i,"& .".concat(ab.root),(KS(o={paddingTop:19,paddingLeft:8},".".concat(US.hasPopupIcon,"&, .").concat(US.hasClearIcon,"&"),{paddingRight:39}),KS(o,".".concat(US.hasPopupIcon,".").concat(US.hasClearIcon,"&"),{paddingRight:65}),KS(o,"& .".concat(ab.input),{padding:"7px 4px"}),KS(o,"& .".concat(US.endAdornment),{right:9}),o)),KS(i,"& .".concat(ab.root,".").concat(Lh.sizeSmall),KS({paddingBottom:1},"& .".concat(ab.input),{padding:"2.5px 4px"})),KS(i,"& .".concat(Lh.hiddenLabel),{paddingTop:8}),KS(i,"& .".concat(ab.root,".").concat(Lh.hiddenLabel),KS({paddingTop:0,paddingBottom:0},"& .".concat(US.input),{paddingTop:16,paddingBottom:17})),KS(i,"& .".concat(ab.root,".").concat(Lh.hiddenLabel,".").concat(Lh.sizeSmall),KS({},"& .".concat(US.input),{paddingTop:8,paddingBottom:9})),KS(i,"& .".concat(US.input),Me({flexGrow:1,textOverflow:"ellipsis",opacity:0},a.inputFocused&&{opacity:1})),i))})),JS=No("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),ZS=No(RS,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),QS=No(RS,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var r=e.ownerState;return Me({},t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen)}})((function(e){return Me({padding:2,marginRight:-2},e.ownerState.popupOpen&&{transform:"rotate(180deg)"})})),eO=No(tl,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var r=e.ownerState;return[KS({},"& .".concat(US.option),t.option),t.popper,r.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,r=e.ownerState;return Me({zIndex:(t.vars||t).zIndex.modal},r.disablePortal&&{position:"absolute"})})),tO=No(kv,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){return Me({},e.theme.typography.body1,{overflow:"auto"})})),rO=No("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),nO=No("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),oO=No("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,r,n=e.theme;return KS({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(US.option),(KS(r={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},n.breakpoints.up("sm"),{minHeight:"auto"}),KS(r,"&.".concat(US.focused),{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),KS(r,'&[aria-disabled="true"]',{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),KS(r,"&.".concat(US.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),KS(r,'&[aria-selected="true"]',(KS(t={backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):Ve(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(US.focused),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):Ve(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(n.vars||n).palette.action.selected}}),KS(t,"&.".concat(US.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):Ve(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),t)),r))})),iO=No(zw,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),aO=No("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})(KS({padding:0},"& .".concat(US.option),{paddingLeft:24})),lO=u.forwardRef((function(e,t){var r,n,o,i,a,l=Vo({props:e,name:"MuiAutocomplete"}),s=(l.autoComplete,l.autoHighlight,l.autoSelect,l.blurOnSelect,l.ChipProps),c=l.className,p=l.clearIcon,f=void 0===p?GS||(GS=(0,ui.jsx)(HS,{fontSize:"small"})):p,d=(void 0===l.clearOnBlur&&l.freeSolo,l.clearOnEscape,l.clearText),m=void 0===d?"Clear":d,y=l.closeText,h=void 0===y?"Close":y,b=l.componentsProps,v=void 0===b?{}:b,g=(void 0===l.defaultValue&&l.multiple,l.disableClearable),w=void 0!==g&&g,S=(l.disableCloseOnSelect,l.disabled),O=void 0!==S&&S,x=(l.disabledItemsFocusable,l.disableListWrap,l.disablePortal),P=void 0!==x&&x,E=(l.filterSelectedOptions,l.forcePopupIcon),j=void 0===E?"auto":E,k=l.freeSolo,C=void 0!==k&&k,T=l.fullWidth,R=void 0!==T&&T,_=l.getLimitTagsText,M=void 0===_?function(e){return"+".concat(e)}:_,I=l.getOptionLabel,A=void 0===I?function(e){var t;return null!=(t=e.label)?t:e}:I,D=l.groupBy,N=(void 0===l.handleHomeEndKeys&&l.freeSolo,l.includeInputInList,l.limitTags),L=void 0===N?-1:N,z=l.ListboxComponent,B=void 0===z?"ul":z,F=l.ListboxProps,W=l.loading,H=void 0!==W&&W,q=l.loadingText,U=void 0===q?"Loading…":q,V=l.multiple,K=void 0!==V&&V,G=l.noOptionsText,$=void 0===G?"No options":G,Y=(l.openOnFocus,l.openText),X=void 0===Y?"Open":Y,J=l.PaperComponent,Z=void 0===J?kv:J,Q=l.PopperComponent,ee=void 0===Q?tl:Q,te=l.popupIcon,re=void 0===te?$S||($S=(0,ui.jsx)(uw,{})):te,ne=l.readOnly,oe=void 0!==ne&&ne,ie=l.renderGroup,ae=l.renderInput,le=l.renderOption,se=l.renderTags,ce=(void 0===l.selectOnFocus&&l.freeSolo,l.size),ue=void 0===ce?"medium":ce,pe=l.slotProps,fe=void 0===pe?{}:pe,de=_e(l,YS),me=function(e){var t,r=e.unstable_isActiveElementInListbox,n=void 0===r?Iw:r,o=e.unstable_classNamePrefix,i=void 0===o?"Mui":o,a=e.autoComplete,l=void 0!==a&&a,s=e.autoHighlight,c=void 0!==s&&s,p=e.autoSelect,f=void 0!==p&&p,d=e.blurOnSelect,m=void 0!==d&&d,y=e.clearOnBlur,h=void 0===y?!e.freeSolo:y,b=e.clearOnEscape,v=void 0!==b&&b,g=e.componentName,w=void 0===g?"useAutocomplete":g,S=e.defaultValue,O=void 0===S?e.multiple?[]:null:S,x=e.disableClearable,P=void 0!==x&&x,E=e.disableCloseOnSelect,j=void 0!==E&&E,k=e.disabled,C=e.disabledItemsFocusable,T=void 0!==C&&C,R=e.disableListWrap,_=void 0!==R&&R,M=e.filterOptions,I=void 0===M?_w:M,A=e.filterSelectedOptions,D=void 0!==A&&A,N=e.freeSolo,L=void 0!==N&&N,z=e.getOptionDisabled,B=e.getOptionLabel,F=void 0===B?function(e){var t;return null!=(t=e.label)?t:e}:B,W=e.groupBy,H=e.handleHomeEndKeys,q=void 0===H?!e.freeSolo:H,U=e.id,V=e.includeInputInList,K=void 0!==V&&V,G=e.inputValue,$=e.isOptionEqualToValue,Y=void 0===$?function(e,t){return e===t}:$,X=e.multiple,J=void 0!==X&&X,Z=e.onChange,Q=e.onClose,ee=e.onHighlightChange,te=e.onInputChange,re=e.onOpen,ne=e.open,oe=e.openOnFocus,ie=void 0!==oe&&oe,ae=e.options,le=e.readOnly,se=void 0!==le&&le,ce=e.selectOnFocus,ue=void 0===ce?!e.freeSolo:ce,pe=e.value,fe=ll(U);t=function(e){var t=F(e);return"string"!=typeof t?String(t):t};var de=u.useRef(!1),me=u.useRef(!0),ye=u.useRef(null),he=u.useRef(null),be=kw(u.useState(null),2),ve=be[0],ge=be[1],we=kw(u.useState(-1),2),Se=we[0],Oe=we[1],xe=c?0:-1,Pe=u.useRef(xe),Ee=kw(vl({controlled:pe,default:O,name:w}),2),je=Ee[0],ke=Ee[1],Ce=kw(vl({controlled:G,default:"",name:w,state:"inputValue"}),2),Te=Ce[0],Re=Ce[1],_e=kw(u.useState(!1),2),Me=_e[0],Ie=_e[1],Ae=u.useCallback((function(e,r){if((J?je.length0&&!se,Ge=rl((function(e){-1===e?ye.current.focus():ve.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));u.useEffect((function(){J&&Se>je.length-1&&(Oe(-1),Ge(-1))}),[je,J,Se,Ge]);var $e=rl((function(e){var t=e.event,r=e.index,n=e.reason,o=void 0===n?"auto":n;if(Pe.current=r,-1===r?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant","".concat(fe,"-option-").concat(r)),ee&&ee(t,-1===r?null:Ue[r],o),he.current){var a=he.current.querySelector('[role="option"].'.concat(i,"-focused"));a&&(a.classList.remove("".concat(i,"-focused")),a.classList.remove("".concat(i,"-focusVisible")));var l=he.current.parentElement.querySelector('[role="listbox"]');if(l)if(-1!==r){var s=he.current.querySelector('[data-option-index="'.concat(r,'"]'));if(s&&(s.classList.add("".concat(i,"-focused")),"keyboard"===o&&s.classList.add("".concat(i,"-focusVisible")),l.scrollHeight>l.clientHeight&&"mouse"!==o)){var c=s,u=l.clientHeight+l.scrollTop,p=c.offsetTop+c.offsetHeight;p>u?l.scrollTop=p-l.clientHeight:c.offsetTop-c.offsetHeight*(W?1.3:0)1?0:e:t>e?t===e+1&&K?-1:_||Math.abs(n)>1?e:0:t}(),i);if($e({index:c,reason:s,event:r}),l&&"reset"!==n)if(-1===c)ye.current.value=Te;else{var u=t(Ue[c]);ye.current.value=u,0===u.toLowerCase().indexOf(Te.toLowerCase())&&Te.length>0&&ye.current.setSelectionRange(Te.length,u.length)}}})),Xe=u.useCallback((function(){if(qe&&!function(){var e,r;if(-1!==Pe.current&&Ve.filteredOptions&&Ve.filteredOptions.length!==Ue.length&&(J?je.length===Ve.value.length&&Ve.value.every((function(e,r){return t(je[r])===t(e)})):(e=Ve.value,r=je,(e?t(e):"")===(r?t(r):"")))){var n=Ve.filteredOptions[Pe.current];if(n&&Ue.some((function(e){return t(e)===t(n)})))return!0}return!1}()){var e=J?je[0]:je;if(0!==Ue.length&&null!=e){if(he.current)if(null==e)Pe.current>=Ue.length-1?$e({index:Ue.length-1}):$e({index:Pe.current});else{var r=Ue[Pe.current];if(J&&r&&-1!==Rw(je,(function(e){return Y(r,e)})))return;var n=Rw(Ue,(function(t){return Y(t,e)}));-1===n?Ye({diff:"reset"}):$e({index:n})}}else Ye({diff:"reset"})}}),[Ue.length,!J&&je,D,Ye,$e,qe,Te,J]),Je=rl((function(e){li(he,e),e&&Xe()}));u.useEffect((function(){Xe()}),[Xe]);var Ze=function(e){Ne||(ze(!0),We(!0),re&&re(e))},Qe=function(e,t){Ne&&(ze(!1),Q&&Q(e,t))},et=function(e,t,r,n){if(J){if(je.length===t.length&&je.every((function(e,r){return e===t[r]})))return}else if(je===t)return;Z&&Z(e,t,r,n),ke(t)},tt=u.useRef(!1),rt=function(e,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",o=t;if(J){var i=Rw(o=Array.isArray(je)?je.slice():[],(function(e){return Y(t,e)}));-1===i?o.push(t):"freeSolo"!==r&&(o.splice(i,1),n="removeOption")}Ae(e,o),et(e,o,n,{option:t}),j||e&&(e.ctrlKey||e.metaKey)||Qe(e,n),(!0===m||"touch"===m&&tt.current||"mouse"===m&&!tt.current)&&ye.current.blur()},nt=function(e,t){if(J){""===Te&&Qe(e,"toggleInput");var r=Se;-1===Se?""===Te&&"previous"===t&&(r=je.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===je.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;for(var r=e;;){if("next"===t&&r===je.length||"previous"===t&&-1===r)return-1;var n=ve.querySelector('[data-tag-index="'.concat(r,'"]'));if(n&&n.hasAttribute("tabindex")&&!n.disabled&&"true"!==n.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),Oe(r),Ge(r)}},ot=function(e){de.current=!0,Re(""),te&&te(e,"","clear"),et(e,J?[]:null,"clear")},it=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Se&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Oe(-1),Ge(-1)),229!==t.which))switch(t.key){case"Home":qe&&q&&(t.preventDefault(),Ye({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":qe&&q&&(t.preventDefault(),Ye({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ye({diff:-Mw,direction:"previous",reason:"keyboard",event:t}),Ze(t);break;case"PageDown":t.preventDefault(),Ye({diff:Mw,direction:"next",reason:"keyboard",event:t}),Ze(t);break;case"ArrowDown":t.preventDefault(),Ye({diff:1,direction:"next",reason:"keyboard",event:t}),Ze(t);break;case"ArrowUp":t.preventDefault(),Ye({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ze(t);break;case"ArrowLeft":nt(t,"previous");break;case"ArrowRight":nt(t,"next");break;case"Enter":if(-1!==Pe.current&&qe){var r=Ue[Pe.current],n=!!z&&z(r);if(t.preventDefault(),n)return;rt(t,r,"selectOption"),l&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else L&&""!==Te&&!1===He&&(J&&t.preventDefault(),rt(t,Te,"createOption","freeSolo"));break;case"Escape":qe?(t.preventDefault(),t.stopPropagation(),Qe(t,"escape")):v&&(""!==Te||J&&je.length>0)&&(t.preventDefault(),t.stopPropagation(),ot(t));break;case"Backspace":if(J&&!se&&""===Te&&je.length>0){var o=-1===Se?je.length-1:Se,i=je.slice();i.splice(o,1),et(t,i,"removeOption",{option:je[o]})}break;case"Delete":if(J&&!se&&""===Te&&je.length>0&&-1!==Se){var a=Se,s=je.slice();s.splice(a,1),et(t,s,"removeOption",{option:je[a]})}}}},at=function(e){Ie(!0),ie&&!de.current&&Ze(e)},lt=function(e){n(he)?ye.current.focus():(Ie(!1),me.current=!0,de.current=!1,f&&-1!==Pe.current&&qe?rt(e,Ue[Pe.current],"blur"):f&&L&&""!==Te?rt(e,Te,"blur","freeSolo"):h&&Ae(e,je),Qe(e,"blur"))},st=function(e){var t=e.target.value;Te!==t&&(Re(t),We(!1),te&&te(e,t,"input")),""===t?P||J||et(e,null,"clear"):Ze(e)},ct=function(e){$e({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},ut=function(){tt.current=!0},pt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));rt(e,Ue[t],"selectOption"),tt.current=!1},ft=function(e){return function(t){var r=je.slice();r.splice(e,1),et(t,r,"removeOption",{option:je[e]})}},dt=function(e){Ne?Qe(e,"toggleInput"):Ze(e)},mt=function(e){e.target.getAttribute("id")!==fe&&e.preventDefault()},yt=function(){ye.current.focus(),ue&&me.current&&ye.current.selectionEnd-ye.current.selectionStart==0&&ye.current.select(),me.current=!1},ht=function(e){""!==Te&&Ne||dt(e)},bt=L&&Te.length>0;bt=bt||(J?je.length>0:null!==je);var vt=Ue;return W&&(new Map,vt=Ue.reduce((function(e,t,r){var n=W(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e}),[])),k&&Me&<(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le({"aria-owns":Ke?"".concat(fe,"-listbox"):null},e,{onKeyDown:it(e),onMouseDown:mt,onClick:yt})},getInputLabelProps:function(){return{id:"".concat(fe,"-label"),htmlFor:fe}},getInputProps:function(){return{id:fe,value:Te,onBlur:lt,onFocus:at,onChange:st,onMouseDown:ht,"aria-activedescendant":qe?"":null,"aria-autocomplete":l?"both":"list","aria-controls":Ke?"".concat(fe,"-listbox"):void 0,"aria-expanded":Ke,autoComplete:"off",ref:ye,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:k}},getClearProps:function(){return{tabIndex:-1,onClick:ot}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:dt}},getTagProps:function(e){var t=e.index;return Le({key:t,"data-tag-index":t,tabIndex:-1},!se&&{onDelete:ft(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(fe,"-listbox"),"aria-labelledby":"".concat(fe,"-label"),ref:Je,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var r=e.index,n=e.option,o=(J?je:[je]).some((function(e){return null!=e&&Y(n,e)})),i=!!z&&z(n);return{key:t(n),tabIndex:-1,role:"option",id:"".concat(fe,"-option-").concat(r),onMouseOver:ct,onClick:pt,onTouchStart:ut,"data-option-index":r,"aria-disabled":i,"aria-selected":o}},id:fe,inputValue:Te,value:je,dirty:bt,popupOpen:qe,focused:Me||-1!==Se,anchorEl:ve,setAnchorEl:ge,focusedTag:Se,groupedOptions:vt}}(Me({},l,{componentName:"Autocomplete"})),ye=me.getRootProps,he=me.getInputProps,be=me.getInputLabelProps,ve=me.getPopupIndicatorProps,ge=me.getClearProps,we=me.getTagProps,Se=me.getListboxProps,Oe=me.getOptionProps,xe=me.value,Pe=me.dirty,Ee=me.id,je=me.popupOpen,ke=me.focused,Ce=me.focusedTag,Te=me.anchorEl,Re=me.setAnchorEl,Ie=me.inputValue,Ae=me.groupedOptions,ze=!w&&!O&&Pe&&!oe,Be=(!C||!0===j)&&!1!==j,Fe=Me({},l,{disablePortal:P,focused:ke,fullWidth:R,hasClearIcon:ze,hasPopupIcon:Be,inputFocused:-1===Ce,popupOpen:je,size:ue}),We=function(e){var t=e.classes,r=e.disablePortal,n=e.focused,o=e.fullWidth,i=e.hasClearIcon,a=e.hasPopupIcon,l=e.inputFocused,s=e.popupOpen,c=e.size;return Ne({root:["root",n&&"focused",o&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize".concat(Ko(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},qS,t)}(Fe);if(K&&xe.length>0){var He=function(e){return Me({className:We.tag,disabled:O},we(e))};a=se?se(xe,He,Fe):xe.map((function(e,t){return(0,ui.jsx)(WS,Me({label:A(e),size:ue},He({index:t}),s))}))}if(L>-1&&Array.isArray(a)){var qe=a.length-L;!ke&&qe>0&&(a=a.splice(0,L)).push((0,ui.jsx)("span",{className:We.tag,children:M(qe)},a.length))}var Ue=ie||function(e){return(0,ui.jsxs)("li",{children:[(0,ui.jsx)(iO,{className:We.groupLabel,ownerState:Fe,component:"div",children:e.group}),(0,ui.jsx)(aO,{className:We.groupUl,ownerState:Fe,children:e.children})]},e.key)},Ve=le||function(e,t){return(0,ui.jsx)("li",Me({},e,{children:A(t)}))},Ke=function(e,t){var r=Oe({option:e,index:t});return Ve(Me({},r,{className:We.option}),e,{selected:r["aria-selected"],index:t,inputValue:Ie})},Ge=null!=(r=fe.clearIndicator)?r:v.clearIndicator,$e=null!=(n=fe.paper)?n:v.paper,Ye=null!=(o=fe.popper)?o:v.popper,Xe=null!=(i=fe.popupIndicator)?i:v.popupIndicator;return(0,ui.jsxs)(u.Fragment,{children:[(0,ui.jsx)(XS,Me({ref:t,className:De(We.root,c),ownerState:Fe},ye(de),{children:ae({id:Ee,disabled:O,fullWidth:!0,size:"small"===ue?"small":void 0,InputLabelProps:be(),InputProps:Me({ref:Re,className:We.inputRoot,startAdornment:a},(ze||Be)&&{endAdornment:(0,ui.jsxs)(JS,{className:We.endAdornment,ownerState:Fe,children:[ze?(0,ui.jsx)(ZS,Me({},ge(),{"aria-label":m,title:m,ownerState:Fe},Ge,{className:De(We.clearIndicator,null==Ge?void 0:Ge.className),children:f})):null,Be?(0,ui.jsx)(QS,Me({},ve(),{disabled:O,"aria-label":je?h:X,title:je?h:X,ownerState:Fe},Xe,{className:De(We.popupIndicator,null==Xe?void 0:Xe.className),children:re})):null]})}),inputProps:Me({className:We.input,disabled:O,readOnly:oe},he())})})),Te?(0,ui.jsx)(eO,Me({as:ee,disablePortal:P,style:{width:Te?Te.clientWidth:null},ownerState:Fe,role:"presentation",anchorEl:Te,open:je},Ye,{className:De(We.popper,null==Ye?void 0:Ye.className),children:(0,ui.jsxs)(tO,Me({ownerState:Fe,as:Z},$e,{className:De(We.paper,null==$e?void 0:$e.className),children:[H&&0===Ae.length?(0,ui.jsx)(rO,{className:We.loading,ownerState:Fe,children:U}):null,0!==Ae.length||C||H?null:(0,ui.jsx)(nO,{className:We.noOptions,ownerState:Fe,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:$}),Ae.length>0?(0,ui.jsx)(oO,Me({as:B,className:We.listbox,ownerState:Fe},Se(),F,{children:Ae.map((function(e,t){return D?Ue({key:e.key,group:e.group,children:e.options.map((function(t,r){return Ke(t,e.index+r)}))}):Ke(e,t)}))})):null]}))})):null]})}));const sO=lO;function cO(e){return Ba("MuiCircularProgress",e)}var uO,pO,fO,dO;function mO(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Fa("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var yO,hO,bO,vO,gO=["className","color","disableShrink","size","style","thickness","value","variant"],wO=44,SO=_h(yO||(yO=uO||(uO=mO(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),OO=_h(hO||(hO=pO||(pO=mO(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),xO=No("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["color".concat(Ko(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme;return Me({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&Rh(bO||(bO=fO||(fO=mO(["\n animation: "," 1.4s linear infinite;\n "]))),SO)})),PO=No("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),EO=No("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var r=e.ownerState;return[t.circle,t["circle".concat(Ko(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,r=e.theme;return Me({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&Rh(vO||(vO=dO||(dO=mO(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),OO)})),jO=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiCircularProgress"}),n=r.className,o=r.color,i=void 0===o?"primary":o,a=r.disableShrink,l=void 0!==a&&a,s=r.size,c=void 0===s?40:s,u=r.style,p=r.thickness,f=void 0===p?3.6:p,d=r.value,m=void 0===d?0:d,y=r.variant,h=void 0===y?"indeterminate":y,b=_e(r,gO),v=Me({},r,{color:i,disableShrink:l,size:c,thickness:f,value:m,variant:h}),g=function(e){var t=e.classes,r=e.variant,n=e.color,o=e.disableShrink;return Ne({root:["root",r,"color".concat(Ko(n))],svg:["svg"],circle:["circle","circle".concat(Ko(r)),o&&"circleDisableShrink"]},cO,t)}(v),w={},S={},O={};if("determinate"===h){var x=2*Math.PI*((wO-f)/2);w.strokeDasharray=x.toFixed(3),O["aria-valuenow"]=Math.round(m),w.strokeDashoffset="".concat(((100-m)/100*x).toFixed(3),"px"),S.transform="rotate(-90deg)"}return(0,ui.jsx)(xO,Me({className:De(g.root,n),style:Me({width:c,height:c},S,u),ownerState:v,ref:t,role:"progressbar"},O,b,{children:(0,ui.jsx)(PO,{className:g.svg,ownerState:v,viewBox:"".concat(22," ").concat(22," ").concat(wO," ").concat(wO),children:(0,ui.jsx)(EO,{className:g.circle,style:w,ownerState:v,cx:wO,cy:wO,r:(wO-f)/2,fill:"none",strokeWidth:f})})}))}));const kO=jO;function CO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?(l=a.substring(0,c),c0),g(!1)})).catch((function(e){g(!1)}))}),400)}),[]);u.useEffect((function(){var e=!0;if(""!==s)return k({input:s},(function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e&&S&&(d(JO(t)),E(r),h(n))})),function(){e=!1};d([])}),[s,k]),u.useEffect((function(){var e=function(e){S&&"Escape"===e.key?O(!1):S||e.ctrlKey||e.metaKey||ax[e.key]&&ax[e.key].filterKey()&&(/^(?:input|textarea|select|button)$/i.test(e.target.tagName)||(e.preventDefault(),O(e.key)))};return document.addEventListener("keyup",e),function(){document.removeEventListener("keyup",e)}}));var C,T={backdropColor:"rgba(0,0,0,.1)",modalPosition:{display:"flex",alignItems:"center",justifyContent:"center",bottom:"40%"},mainPaper:{width:"80%",padding:"8px 0 2px !important"},header:{padding:"0 10px 5px",display:"flex",alignItems:"center"},title:{fontSize:18,flex:1},legend:{opacity:.6,fontStyle:"italic"},popperModifiers:[{name:"offset",options:{offset:[0,10]}}],groupHeader:{position:"sticky",top:0,padding:"8px 10px",fontSize:13,fontWeight:500,color:"var(--md-sys-color-on-surface)"}},R=n.filter((function(e){return e.display.toLowerCase().indexOf(s.toLowerCase())>-1}));if(ax[S]){var _=ax[S].label(),M=_.title,I=_.legend;I=sx(I),C=u.createElement("div",{style:T.header},u.createElement("span",{style:T.title},M)," ",u.createElement("span",{style:T.legend},I))}return u.createElement(cg,{open:!!S,onClose:function(){return O(!1)},slotProps:{backdrop:{sx:{backgroundColor:T.backdropColor}}},sx:T.modalPosition},u.createElement(kv,{elevation:10,sx:T.mainPaper},C,u.createElement(sO,{id:"quick-search",fullWidth:!0,getOptionLabel:function(e){return"string"==typeof e?e:e.base||!e.repo?e.label:e.repo.getSlug()+e.label},filterOptions:function(e){return e},options:[].concat(JO(R),JO(f)),autoComplete:!0,openOnFocus:!0,selectOnFocus:!0,autoHighlight:!0,filterSelectedOptions:!1,popupIcon:u.createElement("span",null),slotProps:{paper:{elevation:10},popper:{modifiers:T.popperModifiers}},noOptionsText:u.createElement("div",{style:{padding:"8px 10px"}},e(v?466:478)),onChange:function(e,t){if(t&&ax[S]){var r=ax[S].callback(t),n=r.close,o=r.clear,i=r.error;n?(O(!1),o?(d([]),c("")):(a(t.label),d([t]))):i&&console.error(i)}},onInputChange:function(e,t){c(t),a(null)},renderInput:function(e){return u.createElement(Ew,$O({},e,{variant:"standard",fullWidth:!0,autoFocus:!0,placeholder:i||"",InputLabelProps:{sx:{fontSize:"1rem !important",marginLeft:"10px !important",marginTop:"-3px !important"}},InputProps:XO(XO({},e.InputProps),{},{startAdornment:u.createElement(UO,{position:"start"},u.createElement("span",{className:ax[S]&&ax[S].icon(),style:{marginLeft:10,marginRight:8}})),endAdornment:u.createElement("span",{style:{marginRight:10}},v?u.createElement(kO,{color:"inherit",size:20}):null,e.InputProps.endAdornment),disableUnderline:!0})}))},renderOption:function(e,t){var r=[],n=t.display||t.label||"";if(r.push(u.createElement("span",{className:"mdi mdi-folder-outline",style:{marginRight:10,marginLeft:-6,opacity:.6}})),P&&!t.base){t.repo&&(n=t.repo.getSlug()+n);var o=P.length;r.push(u.createElement("span",{style:{color:"rgba(0,0,0,.5)"}},n.substring(0,o))),n=n.substring(o)}if(t.basename){var i=n.toLowerCase().indexOf(t.basename.toLowerCase());r.push(u.createElement("span",null,n.substring(0,i))),r.push(u.createElement("span",{style:{fontWeight:400,backgroundColor:"rgba(255,255,0,.4)"}},n.substring(i,i+t.basename.length))),r.push(u.createElement("span",null,n.substring(i+t.basename.length)))}else r.push(u.createElement("span",null,n));return u.createElement("li",e,u.createElement("span",{style:{display:"inline"}},r))},groupBy:y?function(e){return e.groupLabel}:void 0,renderGroup:function(e){return u.createElement("li",{key:e.key},u.createElement("div",{style:T.groupHeader},e.group),u.createElement("ul",null,e.children))}})))}const ux="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",px=function(e){var t=e.children,r=e.theme,n=zo(),o=u.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Le({},e,t)}(n,r);return null!=e&&(e[ux]=null!==n),e}),[r,n]);return(0,ui.jsx)(Lo.Provider,{value:o,children:t})};function fx(e){return fx="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},fx(e)}var dx={};function mx(e){var t=Wo();return(0,ui.jsx)(hr.Provider,{value:"object"===fx(t)?t:dx,children:e.children})}const yx=function(e){var t=e.children,r=e.theme;return(0,ui.jsx)(px,{theme:r,children:(0,ui.jsx)(mx,{children:t})})};function hx(e){return hx="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},hx(e)}function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"";return p().createElement(u.Fragment,null,p().createElement(th,bx({className:"vertical_fit"+e,pydio:s,showTreeForWorkspace:!!s.user&&s.user.activeRepository},l)),p().createElement(Ex,{pydio:s,mode:"flex"}))},Y={top:[{id:"home",icon:"home-outline",text:b["ajax_gui.leftrail.buttons.home"],ignore:!w.getRepositoriesList().has("homepage"),active:"homepage"===w.activeRepository,onClick:function(){v.getActionByName("switch_to_homepage").apply()}},{id:"files",icon:"folder-multiple-outline",text:b["ajax_gui.leftrail.buttons.all-files"],active:"gateway"===w.getActiveRepositoryObject().accessType,onClick:function(){if("gateway"!==w.getActiveRepositoryObject().accessType){var e=[];if(w.getRepositoriesList().forEach((function(t){return e.push(t)})),e=e.filter((function(e){return"gateway"===e.accessType})),!e.length)return;e.sort((function(e,t){return e.getLabel().localeCompare(t.getLabel())}));var t=e.filter((function(e){return"workspace-personal"===e.getRepositoryType()}));if(t.length)return void s.triggerRepositoryChange(t[0].getId());var r=e.filter((function(e){return!e.getOwner()}));if(r.length)return void s.triggerRepositoryChange(r[0].getId());s.triggerRepositoryChange(e[0].getId())}},hoverBar:function(){return $(" rail-hover-bar")},activeBar:$},{id:"bookmarks",text:b[147],icon:"star-outline",onClick:function(){},hoverBar:function(){return p().createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",width:"100%",overflow:"hidden"},className:"rail-hover-bar"},p().createElement("div",{style:{fontSize:20,padding:16}},b[147]),p().createElement(hm,{pydio:s,asPopover:!1,useCache:!0,onRequestClose:function(){x(!1)}}))},hoverWidth:320},{id:"directory",text:b["ajax_gui.leftrail.buttons.directory"],ignore:!w.getRepositoriesList().has("directory"),active:"directory"===w.activeRepository,icon:"account-box-outline",onClick:function(){s.triggerRepositoryChange("directory")}}],bottom:[{id:"notifications",text:b["notification_center.1"],icon:"bell-outline",hoverWidth:320,alert:A>0,hoverBar:function(e,t){if(!e)return null;var r=e.ActivityList;return p().createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",width:"100%",overflow:"hidden"},className:"rail-hover-bar"},p().createElement("div",{style:{fontSize:20,padding:16}},b["notification_center.1"]),p().createElement(r,{items:t||[],style:{overflowY:"scroll",flex:1},groupByDate:!0,displayContext:"popover",onRequestClose:function(){x(!1)}}))}},{id:"theme",text:s.MessageHash["ajax_gui.leftrail.buttons.theme."+(d.darkMode?"light":"dark")],icon:"theme-light-dark",onClick:function(){var e=d.darkMode?"mui3-light":"mui3-dark";w.getIdmUser().then((function(t){return t.Attributes||(t.Attributes={}),t.Attributes.theme=e,new Gd.UserServiceApi(dc().getRestClient()).putUser(t.Login,t).then((function(e){s.refreshUserData()}))}))}}]},X=function(e){if(e.setHover=function(t){t&&(e.active&&!L||(e.hoverBar&&j(e),x(!!e.hoverBar)))},e.hover=O&&E&&E.id===e.id,!e.action)return e;var t=v.getActionByName(e.action);if(t.deny)return gx(gx({},e),{},{ignore:!0});var r=e.icon,n=void 0===r?t.options.icon_class:r,o=e.text,i=void 0===o?b[t.options.text_id]:o;return gx(gx({},e),{},{icon:n,text:i,onClick:function(){return t.options.callback()}})},J=E&&E.active&&E.activeBar&&L;h.style.width="auto",h.style.margin="0 auto";var Z,Q=o.width||74,ee=gx(gx({},o),{},{flexShrink:0,overflow:"hidden",paddingBottom:8});if(!y&&!L){var te=Y.top.filter((function(e){return e.active&&e.activeBar}));te.length&&(Z=te[0].activeBar())}var re={position:"absolute",display:"flex",flexDirection:"column",left:Q,top:0,bottom:0,width:0,transition:"width 350ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",background:r.background,zIndex:902,overflow:"hidden",boxShadow:"rgba(0, 0, 0, 0.16) 2px 0px 2px"},ne=E&&E.hoverWidth||294-Q;O&&(re.width=ne);var oe={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:10,zIndex:950,right:10,cursor:"pointer",borderRadius:"50%",height:24,width:24,fontSize:16,backgroundColor:"var(--md-sys-color-surface-variant)"},ie=Y.top.map(X).filter((function(e){return!e.ignore})),ae=Y.bottom.map(X).filter((function(e){return!e.ignore}));return p().createElement(Ss,{enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:Z?K:Q,height:"100%"},onResizeStop:function(e,t,r,n){return o=K+n.width,G(o),window.dispatchEvent(new Event("resize")),void w.setGUIPreference("Layout.RailPanel.ActiveWidth",o/Ll().getViewportWidth(),!0);var o},minWidth:Z?Q+50:Q,handleStyles:{right:{zIndex:900}},style:{transition:"width 550ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",zIndex:905}},p().createElement("div",{className:"left-panel vertical_fit",style:{width:"100%",height:"100%",display:"flex",overflow:E?"visible":null},onClick:c,onMouseOver:f},p().createElement("div",{className:"left-rail vertical_layout",style:ee},p().createElement(Dm,bx({pydio:s,controller:s.getController(),toolbars:["rail_user","zlogin"]},h,{actionBarStyle:{display:"none"},avatarStyle:{padding:0},displayLabel:!1,hideNotifications:!0,hideBookmarks:!0,popoverTargetPosition:"top",popoverStyle:{minWidth:200,marginTop:2,background:"var(--md-sys-color-surface)"},menuStyle:{width:200,listStyle:{background:"transparent"}},popoverHeaderAvatar:!0})),p().createElement("div",null,ie.map((function(e,t,r){return p().createElement(jx,bx({},e,{last:t===r.length-1}))}))),p().createElement("div",{className:"vertical_fit"}),p().createElement("div",null,ae.map((function(e,t,r){return p().createElement(jx,bx({iconOnly:!0},e,{last:t===r.length-1}))})))),Z&&p().createElement("div",{id:"left-rail-active-column",className:"vertical_layout"+(W?" with-rail-close-toggle":""),style:gx({flex:1,height:"100%",overflow:"hidden"},r),onMouseEnter:function(){return H(!0)},onMouseLeave:function(){return H(!1)}},Z,W&&p().createElement("div",{style:gx({},oe),onClick:function(){return B(!0)}},p().createElement("span",{className:"mdi mdi-chevron-double-left"}))),p().createElement("div",{style:re},p().createElement("div",{className:"vertical_layout"+(J?" with-rail-stick-toggle":""),style:gx({flex:1,height:"100%",position:"absolute",width:ne,right:0},r),onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)}},E&&E.hoverBar(_,C)),J&&p().createElement("div",{style:gx({},oe),onMouseEnter:function(){return x(!0)},onClick:function(){B(!1),x(!1)}},p().createElement("span",{className:"mdi mdi-chevron-double-right"})))))};function Cx(e){return Cx="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},Cx(e)}function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rx(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&t[0].contains(x().findDOMNode(e.target))||this.props.onCloseDrawerRequested()}}},{key:"render",value:function(){var e,t=this.props,r=t.pydio,n=t.tutorialComponent,o=t.onContextMenu,i=t.classes,a=t.style,l=t.leftPanelProps,s=t.children,c=t.drawerOpen,u=t.desktopStyle,f=void 0===u?{}:u,d=t.muiTheme,m=this.props.connectDropTarget||function(e){return e},y=function(e){if(Array.isArray(e))return Ix(e)}(e=i)||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 Ix(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ix(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.")}();if(c&&y.push("drawer-open"),void 0===l.workspacesListProps){var h=d.buildFSTemplate({});l.workspacesListProps=h.leftPanel.workspacesList,l.railPanelStyle=h.leftPanel.railPanelStyle}var b=[n,"mui3"===d.userTheme?p().createElement(kx,Mx({pydio:r},l)):p().createElement(ph,Mx({className:"left-panel",pydio:r},l)),p().createElement("div",{className:"desktop-container vertical_layout vertical_fit",style:f},s),p().createElement("span",{className:"context-menu"},p().createElement(Wx,{pydio:this.props.pydio})),p().createElement(cx,null),p().createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:'\n div[role="menu"]{\n background: var(--md-sys-color-surface-2);\n }\n div[role="menu"] span[role="menuitem"]{\n font-size: 14px !important;\n }\n'}})];return d["@mui"]&&(b=p().createElement(yx,{theme:d["@mui"]},b)),m(p().createElement("div",{style:Rx(Rx({},a),{},{overflow:"hidden"}),className:y.join(" "),onClick:this.closeDrawer.bind(this),onContextMenu:o},b))}}],r&&Ax(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component);Hx=Bx(Hx=Fx(Hx=(0,P.muiThemeable)()(Hx)));var qx=r(57345),Ux=r.n(qx);function Vx(e){return Vx="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},Vx(e)}function Kx(){return Kx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0||c.length>0)&&u.push(p().createElement(E.Divider,null)),s.length>0&&c.length>0&&s.push(p().createElement(E.Divider,null)),i=[].concat(a,l,u,Gx(s),Gx(c))),"previous_context"===o&&0===a.length&&(o=m?"all":d.getSlug()+"/"),p().createElement(Qx,Kx({value:o,onChange:function(e,t,r){n(r)},fullWidth:!0},eP.selectFieldV1Search),i)}}])&&Yx(t.prototype,r),n&&Yx(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(u.Component);function nP(e){return nP="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},nP(e)}function oP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function iP(e){for(var t=1;t=1099511627776?(t=Math.round(e/1099511627776*100)/100,r="T"):e>=1073741824?(t=Math.round(e/1073741824*100)/100,r="G"):e>=1048576?(t=Math.round(e/1048576*100)/100,r="M"):e>=1024&&(t=Math.round(e/1024*100)/100,r="k"),{size:t,unit:r}}},{key:"render",value:function(){var e=this,r=t().getMessages().byte_unit_symbol||"B",n=this.props.getMessage,o=this.propsToState(this.props),i=o.from,a=o.to,l=o.fromUnit,s=o.toUnit,c=o.fromInt,f=o.toInt,d=BP(BP({},$P.textFieldV1Search.inputStyle),{},{borderRadius:0}),m=BP(BP({},$P.textFieldV1Search.inputStyle),{},{borderRadius:$P.v1SearchRadiusLeft}),y={display:"flex"};return p().createElement(u.Fragment,null,p().createElement("div",{style:y},p().createElement("div",{style:{flex:2,marginRight:4}},p().createElement(KP,LP({},$P.textFieldV1Search,{inputStyle:d,type:"number",hintText:n(613),fullWidth:!0,value:i||"",onChange:function(t,r){r&&f&&Math.round(e.multiple(r,l))>f&&(r=a),e.update({from:r||0})}}))),p().createElement("div",{style:{marginLeft:4,flex:1}},p().createElement(GP,LP({},$P.selectFieldV1Search,{value:l,onChange:function(t,r,n){i&&f&&Math.round(e.multiple(a,n))>f&&(n=s),e.update({fromUnit:n})},fullWidth:!0}),p().createElement(E.MenuItem,{value:"",primaryText:r}),p().createElement(E.MenuItem,{value:"k",primaryText:"K"+r}),p().createElement(E.MenuItem,{value:"M",primaryText:"M"+r}),p().createElement(E.MenuItem,{value:"G",primaryText:"G"+r}),p().createElement(E.MenuItem,{value:"T",primaryText:"T"+r})))),p().createElement("div",{style:y},p().createElement("div",{style:{flex:2,marginRight:4}},p().createElement(KP,LP({},$P.textFieldV1Search,{inputStyle:m,fullWidth:!0,type:"number",hintText:n(614),value:a||"",onChange:function(t,r){r&&c&&Math.round(e.multiple(r,s)) ")),n.to&&(s+=cE(n.to).calendar(null,m));break;case"bytesize":p=a("2"),s="",n.from&&(s+=y().roundFileSize(n.from),n.to&&(s+=" <=> ")),n.to&&(s+=y().roundFileSize(n.to));break;case"share":switch(n){case"link":p=i.MessageHash["searchengine.share.option.link"];break;case"cell":p=i.MessageHash["searchengine.share.option.cell"];break;case"any":p=i.MessageHash["searchengine.share.option.any"]}break;default:"string"!=typeof n&&"number"!=typeof n||(s=n+"")}return{label:p,value:s}}}],null&&nE(r.prototype,null),n&&nE(r,n),Object.defineProperty(r,"prototype",{writable:!1}),e}();function pE(e){return pE="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},pE(e)}function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,j=P,k=!O&&!d&&P,C=n.SearchConstants,T=f.indexedContent,R=void 0!==T&&T,_=f.indexedMeta,M=void 0===_?[]:_,I=[{name:"basenameOrContent",label:o(R?"searchengine.field.basenameOrContent":1)},{name:C.KeyScope,type:"scope",label:o("searchengine.scope.title")},{name:C.KeyMetaShared,type:"share",label:o("searchengine.share.title")},{subheader:o(489)},{name:C.KeyMime,type:"mime",label:o("searchengine.format.title")}].concat(function(e){if(Array.isArray(e))return dE(e)}(e=M.map((function(e){return vE(vE({},e),{},{name:e.namespace})})))||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 dE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dE(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.")}(),[{subheader:o(498)},{name:C.KeyModifDate,type:"modiftime",label:o(4)},{name:C.KeyBytesize,type:"bytesize",label:o(2)}]),A=function(){t.setState({promptSearchLabel:!1,currentSearchLabel:""})},D=function(){l(m||x),A()};return p().createElement("div",{className:"search-advanced",style:vE({},a)},(O||d)&&p().createElement("div",{style:{display:"flex",alignItems:"center",margin:8,borderRadius:12,background:c.palette.mui3["surface-5"]}},d&&p().createElement("div",{style:{flex:1,paddingLeft:20}},p().createElement(xE,{focusOnMount:!0,fullWidth:!0,hintText:o("searchengine.query.save-label"),value:m||x||"",onChange:function(e,r){return t.setState({currentSearchLabel:r})},onKeyDown:function(e){"Enter"===e.key&&D()}})),!d&&p().createElement("div",{style:{flex:1,cursor:"pointer",fontSize:16,fontWeight:400,padding:"12px 20px"},onClick:function(){return t.setState({promptSearchLabel:!0})}},x),p().createElement("div",{style:{padding:"12px 20px",fontSize:15}},d&&p().createElement("a",{onClick:D,style:b,title:o("searchengine.query.action.save")},p().createElement("span",{className:"mdi mdi-content-save"})),d&&p().createElement("a",{onClick:A,style:b,title:o("54")},p().createElement("span",{className:"mdi mdi-close"})),!d&&p().createElement("a",{onClick:function(){return t.setState({promptSearchLabel:!0})},style:b,title:o("54")},p().createElement("span",{className:"mdi mdi-pencil"})),!d&&O&&p().createElement("a",{onClick:function(){window.confirm(o("searchengine.query.action.delete-confirm"))&&(s(O),A())},title:o("searchengine.query.action.delete")},p().createElement(EE,{style:vE(vE({},b),{},{width:16,height:16,marginBottom:-2})})))),p().createElement("div",{style:{display:"flex"}},p().createElement(E.Subheader,{style:vE(vE({},y),{},{marginTop:0,flex:1})},o(341)),(k||j)&&p().createElement("div",{style:h},k&&p().createElement("a",{onClick:function(){return t.setState({promptSearchLabel:!0})}},o("searchengine.query.action.save-new")),k&&j&&" | ",j&&p().createElement("a",{onClick:function(){return t.clearAll()}},o("searchengine.query.action.clear-all")))),I.map((function(e){return e.subheader?p().createElement(E.Subheader,{style:vE(vE({},y),{},{marginTop:0})},e.subheader):p().createElement(jE,fE({},S,{constants:C,name:e.name,label:e.label}),t.renderField(e))})))}}],n=[{key:"styles",get:function(){return{text:{}}}}],r&&mE(t.prototype,r),n&&mE(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(u.Component);const CE=kE=SE((0,P.muiThemeable)()(kE));function TE(e){return TE="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},TE(e)}function RE(e){return function(e){if(Array.isArray(e))return _E(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 _E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_E(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 _E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(g=[].concat(RE(g),RE(d))),g.length?p().createElement("div",{style:v.container},s&&p().createElement("div",{style:IE(IE({},v.tag),c)},s),g.map((function(e){return p().createElement("div",{style:v.tag},e)}))," ",m):null}}],r&&DE(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component);const FE=BE=(0,P.muiThemeable)()(BE);function WE(e){return WE="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},WE(e)}var HE=["fontSize","color"];function qE(){return qE=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?KE({backgroundColor:g.palette.mui3.tertiary||g.palette.accent1Color,color:g.palette.mui3["on-tertiary"]||"white"},F):{},H=KE(KE(KE({},ZE.filterButton),h.filterButton),W),q=H.fontSize,U=void 0===q?22:q,V=H.color,K=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(H,HE),G={fontSize:U,color:V},$={container:{borderRadius:20,background:g.palette.mui3["surface-variant"],color:g.palette.mui3["on-surface-variant"],display:"flex",alignItems:"center",padding:"2px 10px",marginRight:5,fontSize:13,height:25},value:{fontWeight:500}},Y=function(e){return b.MessageHash["searchengine.complete."+e]||e},X=[],J=[],Z=P();Z&&Z.length>0?X.push({text:"#advanced#",className:"advanced-filters-active",tooltipTitle:Y("activefilters-edit"),value:p().createElement(FE,{muiTheme:g,containerStyle:{paddingTop:6,fontSize:13,flex:1},searchTools:y,title:Y("activefilters"),titleTagStyle:{backgroundColor:"transparent"},showRemove:!1,append:[]})}):J.push({text:"#advanced#",className:"advanced-filters-option",icon:"mdi mdi-tune",value:p().createElement("span",{style:{display:"inline-block",padding:"8px 0"}},b.MessageHash["searchengine.advanced-filter.tooltip"])});var Q=[],ee=k&&k.getMatches();if(ee&&ee.length){var te=k.getRemaining(),re=p().createElement("span",{style:{display:"flex",flexWrap:"wrap",alignItems:"center"}},p().createElement("span",null,Y("suggestion.intro")," "),ee.map((function(t){var r=uE.blockRenderer(e,t.meta?t.meta:t,t.value),n=r.label,o=r.value;return o?p().createElement("span",{className:"nlpTag",style:$.container},n,": ",p().createElement("span",{style:$.value},o)):p().createElement("span",{className:"nlpTag",style:$.container},n)})),p().createElement("span",null,te?Y("suggestion.remain").replace("%s",te):"","?"));Q.push({text:"#nlp#",label:"#nlp#",value:re,icon:"mdi mdi-lightbulb-outline",group:Y("group.suggestion")})}var ne=[].concat(X,Q,UE(_.map((function(e){return{text:"#saved#"+e.searchID,label:"#saved#"+e.searchID,icon:"mdi mdi-content-save",value:e.searchLABEL,isSaved:!0,group:Y("group.saved")}}))),UE(T.map((function(e){return{text:e,label:e,value:e,icon:"mdi mdi-magnify",isLast:!0,group:Y("group.history")}}))),J);return w&&(ne=[]),p().createElement("div",{style:KE(KE(KE(KE(KE({},ZE.container),h.mainStyle),d),z),{},{transition:Ll().getBeziersTransition()}),ref:t},!w&&p().createElement(JE,{open:o,anchorEl:t.current,anchorOrigin:{horizontal:"right",vertical:"bottom"},targetOrigin:{horizontal:"right",vertical:"top"},onRequestClose:function(){c()},useLayerForClickAway:!0,style:{width:420,marginTop:7},zDepth:3},p().createElement(CE,{values:O,searchTools:y,getSearchOptions:j,onChange:function(e){return x(KE(KE({},O),e))},rootStyle:{paddingBottom:8,maxHeight:"80vh",overflowY:"auto"},showScope:!w,savedSearches:_,saveSearch:I,clearSavedSearch:M})),p().createElement(sO,{fullWidth:!0,slotProps:{paper:{elevation:5},popper:{modifiers:[{name:"offset",options:{offset:[0,10]}}]}},value:null,inputValue:l||N,renderInput:function(t){return p().createElement(Ew,qE({},t,{variant:"standard",fullWidth:!0,inputRef:r,placeholder:b.MessageHash["searchengine.main.placeholder"],inputProps:KE(KE({},t.inputProps),{},{style:KE({},h.textField)}),InputLabelProps:{sx:{fontSize:"1rem !important",marginLeft:"10px !important",marginTop:"-3px !important"}},InputProps:KE(KE({},t.InputProps),{},{startAdornment:p().createElement(UO,{position:"start"},p().createElement("span",{className:"mdi mdi-magnify",style:KE(KE({},ZE.magnifierStyle),h.magnifierStyle)})),endAdornment:p().createElement("span",null,t.InputProps.endAdornment,m&&!w&&p().createElement(E.IconButton,{onClick:c,tooltip:b.MessageHash["searchengine.advanced-filter.tooltip"],style:K,iconStyle:G,iconClassName:"mdi mdi-tune"}),m&&w&&S),disableUnderline:!0}),onFocus:function(){!function(){var t=e.active,r=e.onRequestOpen,n=e.searchTools,o=n.values,i=n.setValues;t||i(o),r()}()}}))},onInputChange:function(e,t){e&&(f(t),s(t))},onChange:function(e,t){f(t?"string"==typeof t?t:t.text:"")},popupIcon:null,options:v?[]:ne,getOptionLabel:function(e){return"string"==typeof e?e:"#nlp#"===e.text?N:e.text.indexOf("#saved#")>-1?e.value:e.text},renderOption:function(e,t,r){var n=[e.className||"",t.className||""].join(" ");return p().createElement("li",qE({},e,{className:n,title:t.tooltipTitle}),t.icon&&p().createElement("span",{style:{opacity:.5,marginRight:10},className:t.icon}),t.value)},filterOptions:function(e){return N?e.filter((function(e){return!((e.isLast||e.isSaved)&&-1===e.value.toLowerCase().indexOf(N.toLowerCase()))})):e},groupBy:function(e){return e.group},renderGroup:function(e){return e.group?p().createElement("li",{key:e.key},p().createElement("div",{style:ZE.groupHeader},e.group),p().createElement("ul",{style:{marginBottom:10}},e.children)):e.children},isOptionEqualToValue:function(e,t){return e.text===t.text},getOptionDisabled:function(e){return e.disable},blurOnSelect:!0,autoComplete:!0,freeSolo:!0,disableClearable:!0}),p().createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:".MuiAutocomplete-option.advanced-filters-active{border-bottom: 1px solid var(--md-sys-color-outline-variant);} .MuiAutocomplete-option.advanced-filters-option{border-top: 1px solid var(--md-sys-color-outline-variant);} ".concat(A)}}))}const ej=QE=(0,P.muiThemeable)()(QE);function tj(e){return tj="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},tj(e)}function rj(){return rj=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(l=s)}return t.state={infoPanelOpen:!o,infoPanelToggle:!n,drawerOpen:!1,rightColumnState:r,rightColumnWidth:l,searchFormState:{},searchView:!1},t}return t=a,r=[{key:"setSearchView",value:function(){var e=this.props.pydio;this.state.searchView||this.setState({searchViewTransition:!0,workspaceRootView:!1});var t=e.getContextHolder();t.setSelectedNodes([]),t.getContextNode()!==t.getSearchNode()&&this.setState({previousContext:t.getContextNode()})}},{key:"unsetSearchView",value:function(){var e=this.props.pydio;this.state.searchView&&this.setState({searchViewTransition:!0});var t=e.getContextHolder(),r=this.state.previousContext;t.setSelectedNodes([]);var n=r||t.getRootNode();t.setContextNode(n,!0),this.setState({previousContext:null,workspaceRootView:n.isRoot()})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.pydio,r=(0,se.debounce)((function(){window.dispatchEvent(new Event("resize")),e.setState({searchViewTransition:!1})}),350);this._ctxObserver=function(){var n=t.getContextHolder().getContextNode()===t.getContextHolder().getSearchNode();n!==e.state.searchView&&e.setState({searchView:n,searchViewTransition:!0},r);var o=t.getContextHolder().getContextNode().isRoot();o!==e.state.workspaceRootView&&e.setState({workspaceRootView:o})},t.observe("context_changed",this._ctxObserver)}},{key:"componentWillUnmount",value:function(){this.props.pydio.stopObserving("context_changed",this._ctxObserver)}},{key:"openRightPanel",value:function(e){var t=this,r=this.state.rightColumnState;e!==r?this.setState({rightColumnState:e},(function(){var r=t.state.infoPanelOpen;"info-panel"!==e&&(r=!0),localStorage.setItem("pydio.layout.rightColumnState",e),localStorage.setItem("pydio.layout.infoPanelToggle","open"),localStorage.setItem("pydio.layout.infoPanelOpen",r?"open":"closed"),t.setState({infoPanelToggle:!0,infoPanelOpen:r},(function(){return t.resizeAfterTransition()}))})):this.closeRightPanel()}},{key:"closeRightPanel",value:function(){var e=this;this.setState({infoPanelToggle:!1},(function(){e.resizeAfterTransition()})),localStorage.setItem("pydio.layout.rightColumnState",""),localStorage.setItem("pydio.layout.infoPanelToggle","closed")}},{key:"resizeAfterTransition",value:function(){this.state.infoPanelToggle||this.setState({rightColumnState:null}),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),250),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),500)}},{key:"infoPanelContentChange",value:function(e){var t=this;this.setState({infoPanelOpen:e>0},(function(){return t.resizeAfterTransition()}))}},{key:"openDrawer",value:function(e){e.stopPropagation(),this.setState({drawerOpen:!0})}},{key:"render",value:function(){var e=this,t=this.props,r=t.muiTheme,n=t.pydio,o=r.breakpoint,i=void 0===o?"md":o,a=r.userTheme,l="s"===i||"xs"===i,s="xs"===i,c=n.user?n.user.getPreference("gui_preferences",!0):{},u=n.getPluginConfigs("gui.ajax").get("ENABLE_WELCOME_TOUR"),f=n.getContextHolder(),d=f.getContextNode()===f.getSearchNode(),m=this.state,y=m.searchViewTransition,h=(void 0===m.workspaceRootView&&f.getContextNode().isRoot(),this.state.headerLarge,!n.getPluginConfigs("action.advanced_settings").get("GLOBAL_DISABLE_CHATS")&&!s),b=!n.getPluginConfigs("action.user").get("DASH_DISABLE_ADDRESS_BOOK")&&!l,v=!s;if(h){var g=n.user.getRepositoriesList().get(n.user.activeRepository);g&&!g.getOwner()&&(h=!1)}var w=this.state,S=w.drawerOpen,O=w.rightColumnState,x=w.rightColumnWidth,P=w.displayMode,E=w.sortingInfo,j=!1;h||"chat"!==O||(O="info-panel"),v||"info-panel"!==O||(O=""),O&&!s||(j=!0);var k,C=r.buildFSTemplate({headerHeight:72,searchView:d,rightColumnClosed:j,displayMode:P}),T=this.props,R=T.style,_=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(T,dj);u&&!c["WelcomeComponent.Pydio8.TourGuide.FSTemplate"]?k=p().createElement(id,{pydio:n}):"mui3"===a&&c["WelcomeComponent.Pydio8.TourGuide.FSTemplate"]&&!c["WelcomeComponent.MUITour"]&&(k=p().createElement(Nf,{pydio:n}));var M={headerHeight:72,style:C.leftPanel.masterStyle,railPanelStyle:C.leftPanel.railPanelStyle,closed:d||l,drawerOpen:S,userWidgetProps:{color:C.userWidgetStyle.color,mergeButtonInAvatar:!0,popoverDirection:"left",actionBarStyle:{marginTop:0},style:C.userWidgetStyle},workspacesListProps:hj({},C.leftPanel.workspacesList)},I=this.props,A=I.searchTools,D=I.searchTools,N=D.values,L=D.setValues,z=D.facets,B=D.activeFacets,F=D.toggleFacet,W=D.searchLoading;return d&&(M.workspacesListProps=hj(hj({},M.workspacesListProps),{},{searchView:!0,values:N,setValues:L,searchLoading:W,facets:z,activeFacets:B,toggleFacet:F})),"mui3"!==r.userTheme&&(C.searchForm.textField={color:"white"}),p().createElement(Hx,{pydio:n,style:hj(hj({},R),C.masterStyle),desktopStyle:d?{marginLeft:0}:{},classes:["vertical_fit","react-fs-template"],tutorialComponent:k,drawerOpen:S,leftPanelProps:M,onCloseDrawerRequested:function(){e.setState({drawerOpen:!1})}},p().createElement(pj,{pydio:n,muiTheme:r,styles:C,headerHeight:72,sortingInfo:"detail"!==P&&"masonry"!==P?E:null,searchView:d,searchViewTransition:y,searchTools:A,onUpdateSearchView:function(t){return t?e.setSearchView():e.unsetSearchView()},showChatTab:h,showInfoPanel:v,showAddressBook:b,rightColumnState:O,onOpenRightPanel:function(t){return e.openRightPanel(t)},onOpenDrawer:function(t){return e.openDrawer(t)}}),p().createElement("div",{style:{display:"flex",flex:1,overflow:"hidden"}},d&&p().createElement(th,mj({className:"left-panel",pydio:n,showTreeForWorkspace:!!n.user&&n.user.activeRepository},M.workspacesListProps)),p().createElement(Re,{ref:"list",key:d?"search-results":"files-list",pydio:n,dataModel:n.getContextHolder(),searchResults:d,searchScope:N?N.scope:null,searchLoading:W,onDisplayModeChange:function(t){e.setState({displayMode:t})},onSortingInfoChange:function(t){var r=e.state.sortingInfo,n=void 0===r?{}:r;n.attribute===t.attribute&&n.direction===t.direction||e.setState({sortingInfo:t})},onScroll:function(t){var r=t.scrollTop;return e.setState({headerLarge:r<10})},style:C.listStyle}),p().createElement(Ss,{enable:{top:!1,right:!1,bottom:!1,left:!j,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},style:{transition:"width 550ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},size:{width:j?0:x,height:"100%"},onResizeStop:function(t,r,n,o){var i=x+o.width;e.setState({rightColumnWidth:i}),localStorage.setItem("pydio.layout.rightColumnWidth",i+""),e.resizeAfterTransition()}},"info-panel"===O&&p().createElement(zp,mj({},_,{dataModel:n.getContextHolder(),onRequestClose:function(){e.closeRightPanel()},onContentChange:this.infoPanelContentChange.bind(this),style:C.infoPanel.masterStyle,mainEmptyStateProps:{iconClassName:"",primaryTextId:"ajax_gui.infopanel.empty.select.file",style:{minHeight:180,backgroundColor:"transparent",padding:"0 20px"}}})),"chat"===O&&p().createElement(yd,{pydio:n,style:C.otherPanelsStyle,zDepth:0,onRequestClose:function(){e.closeRightPanel()}}),"address-book"===O&&p().createElement(Ud,{pydio:n,style:C.otherPanelsStyle,zDepth:0,onRequestClose:function(){e.closeRightPanel()}}))),p().createElement(Sp,_))}}],r&&vj(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component);function Pj(e){return Pj="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},Pj(e)}function Ej(e,t){for(var r=0;r10){var c=l.length-10;l=l.slice(0,10),i=p().createElement("div",null,"... and ",c," more.")}var u=s.palette.mui3?s.palette.mui3["outline-variant-50"]:"#eee";return p().createElement(Td,ik({},this.props,{primaryToolbars:o}),p().createElement("div",{style:{padding:"0"}},l.map((function(e){return p().createElement("div",{style:{display:"flex",alignItems:"center",borderBottom:"1px solid "+u}},p().createElement(V,{key:e.getPath(),style:{height:50,width:50,fontSize:25,flexShrink:0},node:e,loadThumbnail:!0,richPreview:!1}),p().createElement("div",{style:{flex:1,fontSize:14,fontWeight:500,marginLeft:6,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},e.getLabel()))})),i))}var f=!!this.props.node.getMetadata().get("Processing");return o.push("info_panel_share"),p().createElement(Td,ik({},this.props,{primaryToolbars:o}),p().createElement(V,{key:this.props.node.getPath(),style:{backgroundColor:"white",height:200,padding:0},node:this.props.node,loadThumbnail:this.state.isLeaf&&!f,richPreview:this.state.isLeaf,processing:f}))}}],r&&ak(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component);function uk(e){return uk="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},uk(e)}function pk(){return pk=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r{var e={98973:(e,t,r)=>{var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},e.exports=n},35205:(e,t,r)=>{"use strict";var n=r(48619),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},l={};function s(e){return n.isMemo(e)?a:l[e.$$typeof]||o}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var o=d(r);o&&o!==m&&e(t,o,n)}var a=u(r);p&&(a=a.concat(p(r)));for(var l=s(t),y=s(r),h=0;h{"use strict";function t(e){return 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},t(e)}e.exports={set:function(e,r,n){if(e&&"object"==t(e)){if("string"==typeof r&&""!==r){var o=r.split(".");return o.reduce((function(e,t,r){return e[t]=e[t]||{},o.length==r+1&&(e[t]=n),e[t]}),e)}return"number"==typeof r?(e[r]=n,e[r]):e}return e},get:function(e,r){return e&&"object"==t(e)?"string"==typeof r&&""!==r?r.split(".").reduce((function(e,t){return e&&e[t]}),e):"number"==typeof r?e[r]:e:e},has:function(e,r,n){return n=n||{},!(!e||"object"!=t(e))&&("string"==typeof r&&""!==r?r.split(".").reduce((function(e,r,o,i){return o==i.length-1?n.own?!(!e||!e.hasOwnProperty(r)):!(null===e||"object"!=t(e)||!(r in e)):e&&e[r]}),e):"number"==typeof r&&r in e)},hasOwn:function(e,t,r){return this.has(e,t,r||{own:!0})},isIn:function(e,r,n,o){if(o=o||{},e&&"object"==t(e)){if("string"==typeof r&&""!==r){var i,a=r.split("."),l=!1;return i=!!a.reduce((function(e,t){return l=l||e===n||!!e&&e[t]===n,e&&e[t]}),e),o.validPath?l&&i:l}return!1}return!1}}},57860:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s{for(var n=r(48603),o="undefined"==typeof window?r.g:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],c=0;!l&&c{var n=r(98973),o=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||function(e){var t=+new Date,r=Math.max(0,16-(t-i)),n=setTimeout(e,r);return i=t,n},i=+new Date,a=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(o=o.bind(n),a=a.bind(n)),(e.exports=o).cancel=a},29768:(e,t)=>{"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)}var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,b=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function O(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case p:case f:case a:case s:case l:case m:return e;default:switch(e=e&&e.$$typeof){case u:case d:case b:case h:case c:return e;default:return t}}case i:return t}}}function x(e){return O(e)===f}t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=b,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||O(e)===p},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===c},t.isElement=function(e){return"object"===r(e)&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===b},t.isMemo=function(e){return O(e)===h},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===l},t.isSuspense=function(e){return O(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===l||e===m||e===y||"object"===r(e)&&null!==e&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===S||e.$$typeof===v)},t.typeOf=O},48619:(e,t,r)=>{"use strict";e.exports=r(29768)},55198:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},51640:(e,t,r)=>{"use strict";r(55198)},77032:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t10*y&&(n.accumulatedTime=0),0===n.accumulatedTime)return n.animationID=null,void n.startAnimationIfNecessary();var i=(n.accumulatedTime-Math.floor(n.accumulatedTime/y)*y)/y,a=Math.floor(n.accumulatedTime/y),l={},s={},p={},d={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var h=t[m];if("number"==typeof h)p[m]=h,d[m]=0,l[m]=h,s[m]=0;else{for(var b=n.state.lastIdealStyle[m],v=n.state.lastIdealVelocity[m],g=0;g{"use strict";function n(e){return n="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},n(e)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t10*y&&(n.accumulatedTime=0),0===n.accumulatedTime)return n.animationID=null,void n.startAnimationIfNecessary();for(var i=(n.accumulatedTime-Math.floor(n.accumulatedTime/y)*y)/y,a=Math.floor(n.accumulatedTime/y),l=[],s=[],p=[],d=[],m=0;m{"use strict";function n(e){return n="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},n(e)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t10*h&&(n.accumulatedTime=0),0===n.accumulatedTime)return n.animationID=null,void n.startAnimationIfNecessary();for(var a=(n.accumulatedTime-Math.floor(n.accumulatedTime/h)*h)/h,l=Math.floor(n.accumulatedTime/h),s=v(n.props.willEnter,n.props.willLeave,n.props.didLeave,n.state.mergedPropsStyles,r,n.state.currentStyles,n.state.currentVelocities,n.state.lastIdealStyles,n.state.lastIdealVelocities),u=s[0],f=s[1],m=s[2],y=s[3],g=s[4],w=0;w{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},82603:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n={},o=0;on[u])return-1;if(o>i[u]&&sn[u])return 1;if(a>i[u]&&l{"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},361:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e.default:e}var o=r(77032);t.y_=n(o),n(r(31809));var i=r(7149);t.bg=n(i);var a=r(70190);t.ST=n(a),n(r(26911)),n(r(20361)),n(r(39791))},39791:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){},e.exports=t.default},65954:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var o="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==o)return!1}return!0},e.exports=t.default},70190:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t{"use strict";t.__esModule=!0,t.default=function(e,t,n,o,i,a,l){var s=n+(-i*(t-o)+-a*n)*e,c=t+s*e;return Math.abs(s){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},16287:e=>{var t=function(e){return"string"==typeof e};e.exports=function(e,r,n){return Array.isArray(e)||(e=[e]),o=e.map((function(e){return t(e)?function(e,r,n){var o=0,i=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var a,l,s,c=r;(function(e){return e instanceof RegExp})(c)||(c=new RegExp("("+(a=c,l=/[\\^$.*+?()[\]{}|]/g,s=RegExp(l.source),(a&&s.test(a)?a.replace(l,"\\$&"):a)+")"),"gi"));for(var u=e.split(c),p=1,f=u.length;p{"use strict";r(57860);var n=r(16689),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},2038:(e,t,r)=>{"use strict";e.exports=r(6375)},70970:(e,t,r)=>{var n=r(17692),o=new Error("Element already at target scroll position"),i=new Error("Scroll cancelled"),a=Math.min;function l(e){return function(t,r,l,u){"function"==typeof(l=l||{})&&(u=l,l={}),"function"!=typeof u&&(u=c);var p=+new Date,f=t[e],d=l.ease||s,m=isNaN(l.duration)?350:+l.duration,y=!1;return f===r?u(o,t[e]):n((function o(l){if(y)return u(i,t[e]);var s=+new Date,c=a(1,(s-p)/m),h=d(c);t[e]=h*(r-f)+f,n(c<1?o:function(){u(null,t[e])})})),function(){y=!0}}}function s(e){return.5*(1-Math.cos(Math.PI*e))}function c(){}e.exports={left:l("scrollLeft"),top:l("scrollTop")}},28566:e=>{"use strict";e.exports=require("create-react-class")},39455:e=>{"use strict";e.exports=require("material-ui")},13173:e=>{"use strict";e.exports=require("material-ui/styles")},580:e=>{"use strict";e.exports=require("prop-types")},10757:e=>{"use strict";e.exports=require("pydio")},32697:e=>{"use strict";e.exports=require("pydio/model/context-menu")},45006:e=>{"use strict";e.exports=require("pydio/model/node")},17367:e=>{"use strict";e.exports=require("pydio/model/repository")},18262:e=>{"use strict";e.exports=require("pydio/util/dom")},9763:e=>{"use strict";e.exports=require("pydio/util/lang")},16689:e=>{"use strict";e.exports=require("react")},57345:e=>{"use strict";e.exports=require("react-textfit")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{default:()=>vk});var e=r(10757),t=r.n(e);function o(e){return o="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},o(e)}function i(e,t){for(var r=0;r0&&void 0!==arguments[0]&&arguments[0],r=this.props,n=r.node,o=r.loadThumbnail,i=r.richPreview;if(o||e){var a=t().getInstance(),l=a.Registry.findEditorsForMime(n.isLeaf()?n.getAjxpMime():"mime_folder",!0);if(l&&l.length||(i&&n.getMetadata().get("PDFPreview")?l=a.Registry.findEditorsForMime("pdf",!0):n.getMetadata().get("ImagePreview")&&(l=a.Registry.findEditorsForMime("jpg",!0)),l&&l.length)){var s=l[0].editorClass;a.Registry.loadEditorResources(l[0].resourcesManager,function(){var e=T().getFunctionByName(s,window);e&&this.loadPreviewFromEditor(e,n)}.bind(this))}}}},{key:"loadPreviewFromEditor",value:function(e,t){this.setState({EditorClass:this.props.richPreview?e.Panel:e.Badge})}},{key:"render",value:function(){var e,r=this.getStyles(),n=r.rootStyle,o=r.mimeFontStyle,i=r.progressColor,a=this.props,l=a.node,s=a.mimeClassName,c=a.processing,u=a.uploading,p=a.uploadprogress,f=a.displayLarge,d=this.state.EditorClass,m="";if(u)f&&(n.display="flex",n.alignItems="center",n.justifyContent="center"),e=React.createElement(q,{size:f?48:28,thickness:f?4:2,value:p,rootStyle:f?{}:{margin:6},fontSize:f?12:9,color:i,bgColor:"var(--md-sys-color-surface-variant)",trackColor:"transparent",onClick:function(){t().getInstance().Controller.fireAction("upload")}});else if(c)n.height>150?(e=React.createElement(E.CircularProgress,{size:30,thickness:2}),n.alignItems="center",n.justifyContent="center"):e=React.createElement(E.CircularProgress,{size:24,thickness:1.5,style:{margin:8}});else if(d)e=React.createElement(d,_({pydio:t().getInstance()},this.props,{preview:!0,mimeFontStyle:o})),m=" editor_mime_"+l.getAjxpMime();else{var y=l.getSvgSource()||(l.isLeaf()?"file":"folder");y&&!y.startsWith("icomoon")&&(y="mdi mdi-"+y),e=React.createElement("div",{key:"icon",className:s||"mimefont "+y,style:o})}return React.createElement("div",{ref:"container",style:n,className:"mimefont-container"+(d?" with-editor-badge":"")+m,onClick:this.props.onClick},e)}}],[{key:"propTypes",get:function(){return{node:d().instanceOf(AjxpNode).isRequired,loadThumbnail:d().bool,richPreview:d().bool,processing:d().bool,style:d().object,mimeFontStyle:d().object,mimeClassName:d().string}}},{key:"defaultProps",get:function(){return{richPreview:!1}}}]),n}(u.PureComponent);const V=(0,P.muiThemeable)()(U);function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function G(e,t){for(var r=0;r1?"s":""),r="MetaComments",n="InfoPanel"}return{tooltip:e,count:t,popoverNS:r,popoverComponent:n,clickAction:o}}},{key:"selectAndApply",value:function(e){var t=this.props,r=t.pydio,n=t.node,o=r.getContextHolder();o.getUniqueNode()===n?e.apply():(r.observeOnce("actions_refreshed",(function(){e.apply()})),o.setSelectedNodes([n]))}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.pydio,o=r.node,i=r.muiTheme,a=r.overlay,l=r.selected,s=r.tooltipPosition,c=void 0===s?"bottom-left":s,f=r.popoverDirection,d=r.style,m=r.className,y=new(k())(i.palette.primary1Color).saturationl(15).lightness(73).toString(),h=this.findAction(),b=h.tooltip,v=h.count,g=h.popoverNS,w=h.popoverComponent,S=h.clickAction;w?e=function(e){e.stopPropagation(),n.getContextHolder().setSelectedNodes([o]),t.setState({popoverAnchor:e.currentTarget,popoverOpen:!0})}:S&&(e=function(e){e.stopPropagation(),S()});var O=p().createElement(E.IconButton,{tooltip:b,tooltipPosition:c,iconClassName:a+" overlay-icon-span"+(m?" "+m:""),style:Q({width:30,height:30,padding:6,margin:"6px 2px",zIndex:0,cursor:e?"pointer":"default"},d),iconStyle:{color:l?"white":y,fontSize:15,transition:"none"},onClick:e,"data-icon-count":v});if(w){var x=this.state||{},P=x.popoverAnchor,j=x.popoverOpen;return p().createElement(u.Fragment,null,p().createElement(E.Popover,{open:j,anchorEl:P,anchorOrigin:{horizontal:f,vertical:"top"},targetOrigin:{horizontal:f,vertical:"top"},canAutoPosition:!0,onRequestClose:function(){t.setState({popoverOpen:!1})},style:{backgroundColor:"transparent",width:310},zDepth:2},p().createElement(ie,{namespace:g,componentName:w,pydio:n,node:o,popoverPanel:!0,popoverRequestClose:function(){t.setState({popoverOpen:!1})},onLoad:function(){window.dispatchEvent(new Event("resize"))}})),O)}return O}}],r&&te(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.Component);le=(0,P.muiThemeable)()(le);const se=require("lodash");var ce=r.n(se);function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},n=this.state.displayMode,o=0===n.indexOf("grid")||"masonry"===n;if(r&&r.parent)return p().createElement(V,{loadThumbnail:!1,node:e,mimeClassName:"mimefont mdi mdi-chevron-left",onClick:function(){t.entryHandleClicks(e,Pe.CLICK_TYPE_DOUBLE)},style:{cursor:"pointer"},lightBackground:o});var i=!!e.getMetadata().get("thumbnails")||!!e.getMetadata().get("ImagePreview"),a=!!e.getMetadata().get("Processing"),l="loading"===e.getMetadata().get("local:UploadStatus"),s=e.getMetadata().get("local:UploadProgress");return p().createElement(V,{loadThumbnail:!r.parentIsScrolling&&i&&!a,node:e,processing:a,lightBackground:o,displayLarge:o,mimeFontOverlay:"list"===n,uploading:l,uploadprogress:s})}},{key:"entryRenderActions",value:function(e){var t=null,n=this.props,o=n.pydio,i=n.dataModel,a=n.searchResults,l=this.state.displayMode,s=!o.Registry.hasPluginOfType("meta","user"),c=0===l.indexOf("grid-")||"masonry"===l,u=e.getMetadata().get("overlay_class")||"";if(e.getMetadata().has("local:entryRenderActions"))return e.getMetadata().get("local:entryRenderActions")(e,this.props,this.state);if(o.UI.MOBILE_EXTENSIONS){var f=r(32697);return p().createElement(E.IconButton,{iconClassName:"mdi mdi-dots-vertical",style:{zIndex:0,padding:10},tooltip:"Info",onClick:function(t){o.observeOnce("actions_refreshed",(function(){f.getInstance().openNodeAtPosition(e,t.clientX,t.clientY)})),t.stopPropagation(),i.setSelectedNodes([e]),f.getInstance().openNodeAtPosition(e,t.clientX,t.clientY)}})}if(u||"list"!==l){var d=u.split(",").filter((function(e){return!!e}));s&&(d=d.filter((function(e){return"mdi-tag"!==e&&"mdi-tag-outline"!==e}))),c&&(d=d.filter((function(e){return"mdi mdi-star"!==e})));var m,y=d.map((function(t){return p().createElement(le,{node:e,key:t,overlay:t,pydio:o,disableActions:!!a,tooltipPosition:c?"bottom-right":void 0,popoverDirection:c?"left":"right"})}));s||"list"===l||"masonry"===l||y.push(p().createElement(le,{pydio:o,node:e,overlay:"mdi mdi-tag-outline",disableActions:!!a,tooltipPosition:c?"bottom-right":void 0,popoverDirection:c?"left":"right"})),c&&y.unshift(p().createElement(le,{pydio:o,node:e,overlay:"mdi mdi-star"+(u.indexOf("mdi-star")>-1?"":"-outline"),disableActions:!!a,tooltipPosition:"bottom-right",clickActions:!0})),"detail"===l&&(m={width:34*y.length}),t=p().createElement("div",{className:"overlay_icon_div",style:m},y),0===l.indexOf("grid-")&&e.isLeaf()&&e.getMetadata().get("ImagePreview")&&e.getSvgSource()&&(t=p().createElement(p().Fragment,null,t,p().createElement("span",{style:{flex:1}}),p().createElement("div",{className:"mdi mdi-"+e.getSvgSource()+" mimefont mimefont-overlay"})))}return t}},{key:"entryHandleClicks",value:function(e,t,r){var n,o=this.props,i=o.dataModel,a=o.pydio,l=a.UI.MOBILE_EXTENSIONS||this.props.horizontalRibbon;if(i.getContextNode().getParent()!==e||t!==Pe.CLICK_TYPE_SIMPLE)if(l||t&&t!==Pe.CLICK_TYPE_SIMPLE)(l||t===Pe.CLICK_TYPE_DOUBLE)&&(e.isBrowsable()?a.goTo(e):(i.setSelectedNodes([e]),a.Controller.fireAction("open_with_unique")));else{var s=i.getSelectedNodes();if(r&&r.shiftKey&&s.length&&this.refs.list){var c=this.refs.list.computeSelectionFromCurrentPlusTargetNode(s,e);i.setSelectedNodes(c)}else if(r&&(r.ctrlKey||r.metaKey)&&s.length)if(-1===s.indexOf(e))i.setSelectedNodes([].concat(function(e){if(Array.isArray(e))return pe(e)}(n=s)||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 pe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pe(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.")}(),[e]));else{var u=s.filter((function(t){return t!==e}));i.setSelectedNodes(u)}else i.setSelectedNodes([e])}}},{key:"entryRenderSecondLine",value:function(e){var r=this.props,n=r.searchResults,o=r.searchScope,i=r.pydio,a=e.getMetadata(),l=[],s=[],c=[];if(a.has("pending_operation"))return a.has("pending_operation_uuid")?p().createElement(Ce,{jobID:a.get("pending_operation_uuid"),style:{display:"flex",flexDirection:"row-reverse",alignItems:"center"},progressStyle:{width:60,paddingRight:10},labelStyle:{flex:1}}):p().createElement("span",{style:{fontStyle:"italic",color:"rgba(0,0,0,.33)"}},a.get("pending_operation"));if(a.has("local:entryRenderSecondLine"))return a.get("local:entryRenderSecondLine")();if(a.has("local:entryDescription"))return p().createElement("span",{className:"metadata_chunk metadata_chunk_description"},a.get("local:entryDescription"));if(n){var u,f;if(e.getMetadata().has("repository_display")){var d=e.getMetadata().get("repository_display");"{{RefLabel}}"===d&&(d=i.getContextHolder().getRootNode().getLabel()),f="["+d+"]"}(u=e.isLeaf()?y().getDirname(e.getPath()):e.getPath())&&"/"===u.charAt(0)&&(u=u.substr(1)),"all"===o&&u?u=f+" "+u:u||(u=f),l.push(p().createElement("span",{className:"metadata_chunk metadata_chunk_description metadata_chunk_clickable",key:"result_path",style:{marginRight:5,cursor:"pointer"},onClick:function(t){t.stopPropagation(),i.goTo(e)}},u),p().createElement("span",null,"• "))}if(a.has("ajxp_modiftime")){var m=ke(1e3*parseFloat(a.get("ajxp_modiftime"))),h=m.calendar();h.indexOf("/")>-1&&(h=m.fromNow());var b=y().formatModifDate(m.toDate());l.push(p().createElement("span",{key:"time_description",title:b,className:"metadata_chunk metadata_chunk_description"},h))}a.has("etag")&&"temporary"===a.get("etag")&&e.isLeaf()&&l.push(p().createElement("span",{style:{marginLeft:5,marginRight:5},key:"etag_temp_description",title:t().getMessages()["ajax_gui.file.temporary-etag.tooltip"],className:"metadata_chunk metadata_chunk_description"},p().createElement("span",{className:"mdi mdi-alert-outline",style:{color:"#e57373"}})," ",t().getMessages()["ajax_gui.file.temporary-etag.flag"]));var v=this.state.columns;return Object.keys(v).forEach((function(t){var r,n=v[t],o=!1;if("ajxp_label"!==t&&"text"!==t&&"ajxp_modiftime"!==t&&!n.inlineHide){var i;if("ajxp_dirname"===t&&a.get("filename"))r=y().getDirname(a.get("filename"))||"/",o=!0;else if("bytesize"===t){if(!a.has(t)||"-"===a.get(t))return;r=y().roundFileSize(parseInt(a.get(t))),o=!0}else if(n.renderComponent){if(n.name=t,null===(r=n.renderComponent(e,n)))return}else{"mimestring"!==t&&"readable_dimension"!==t||(o=!0);var l=a.get(t)||"";if(!l)return;l.length&&l.length>26&&(l=p().createElement(p().Fragment,null,l.substr(0,26),"…")),r=l}i=p().createElement("span",{className:"mdi mdi-chevron-right"});var u="metadata_chunk metadata_chunk_"+(o?"standard":"other")+" metadata_chunk_"+t;n.renderComponent&&n.renderBlock&&(u+=" metadata_chunk_block");var f=p().createElement("span",{key:t,className:u},i,p().createElement("span",{className:"text_label"},r));o?s.push(f):c.push(f)}})),l.push.apply(l,c),i.Registry.hasPluginOfType("meta","user")&&l.push(p().createElement("span",{className:"metadata_chunk metadata_chunk_standard"},p().createElement(le,{pydio:i,node:e,overlay:"mdi mdi-tag-outline",style:{height:18,width:18,margin:0,padding:"1px 0"},disableActions:!!n,tooltipPosition:"bottom-right",popoverDirection:"left"}))),l.push.apply(l,s),l}},{key:"switchDisplayMode",value:function(e){var t=this;this.setState({displayMode:e},(function(){var r=null;0===e.indexOf("grid-")&&(r=parseInt(e.split("-")[1])),t.recomputeThumbnailsDimension(r),t.setPrefValue("FilesListDisplayMode",e),t.props.onDisplayModeChange&&t.props.onDisplayModeChange(e),t.props.pydio.notify("actions_refreshed")}))}},{key:"buildDisplayModeItems",value:function(){var e=this,r=this.state.displayMode,n=[{name:t().getMessages()["ajax_gui.list.display-mode.list"],title:227,icon_class:"mdi mdi-view-list",value:"list",hasAccessKey:!0,accessKey:"list_access_key"},{name:t().getMessages()["ajax_gui.list.display-mode.details"],title:461,icon_class:"mdi mdi-view-headline",value:"detail",hasAccessKey:!0,accessKey:"detail_access_key"},{name:t().getMessages()["ajax_gui.list.display-mode.thumbs"],title:229,icon_class:"mdi mdi-view-grid",value:"grid-160",hasAccessKey:!0,accessKey:"thumbs_access_key",highlight:function(e){return 0===e.indexOf("grid-")}}];return 0===r.indexOf("grid-")&&n.push({name:t().getMessages()["ajax_gui.list.display-mode.thumbs-large"],icon_class:"mdi mdi-arrow-up",value:"grid-320"},{name:t().getMessages()["ajax_gui.list.display-mode.thumbs-small"],icon_class:"mdi mdi-arrow-down",value:"grid-80"}),n.push({name:t().getMessages()["ajax_gui.list.display-mode.masonry"],icon_class:"mdi mdi-view-dashboard",value:"masonry",highlight:function(e){return 0===e.indexOf("masonry")}}),0===r.indexOf("masonry")&&n.push({name:t().getMessages()["ajax_gui.list.display-mode.thumbs-large"],icon_class:"mdi mdi-arrow-up",value:"masonry-440"},{name:t().getMessages()["ajax_gui.list.display-mode.thumbs-small"],icon_class:"mdi mdi-arrow-down",value:"masonry-100"}),n.map((function(t){var n=be({},t),o=t.value;return n.callback=function(){e.switchDisplayMode(n.value)},(o===r||n.highlight&&n.highlight(r))&&(n.name=p().createElement("span",{style:{fontWeight:500,display:"flex"}},p().createElement("span",{style:{flex:1}},n.name),o===r&&p().createElement("span",{className:"mdi mdi-checkbox-marked-circle-outline"}))),n}))}},{key:"buildShowExtensionsItems",value:function(){var e=this,r=this.state,n=r.showExtensions,o=r.pinBookmarks;return[{name:t().getMessages()["ajax_gui.list.extensions.show"],icon_class:n?"mdi mdi-toggle-switch":"mdi mdi-toggle-switch-off",callback:function(){e.setState({showExtensions:!n},(function(){e.props.pydio.notify("actions_refreshed"),e.setPrefValue("FilesListShowExtensions",!n)}))}},{name:t().getMessages()["ajax_gui.list.pin.bookmarks"],icon_class:o?"mdi mdi-toggle-switch":"mdi mdi-toggle-switch-off",callback:function(){e.setState({pinBookmarks:!o},(function(){e.props.pydio.notify("actions_refreshed"),e.setPrefValue("FilesListPinBookmarks",!o)}))}}]}},{key:"getPydioActions",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return["switch_display_mode","toggle_show_extensions"];var e=new(S())({name:"switch_display_mode",icon_class:"mdi mdi-view-list",text_id:150,title_id:151,text:t().getMessages()[150],title:t().getMessages()[151],hasAccessKey:!1,subMenu:!0,subMenuUpdateImage:!0},{selection:!1,dir:!0,actionBar:!0,actionBarGroup:"display_toolbar",contextMenu:!1,infoPanel:!1},{},{},{dynamicBuilder:this.buildDisplayModeItems.bind(this)}),r=new Map;r.set("switch_display_mode",e);var n=new(S())({name:"toggle_show_extensions",icon_class:"mdi mdi-format-size",text_id:"ajax_gui.list.extensions.action",text:t().getMessages()["ajax_gui.list.extensions.action"],subMenu:!0,subMenuUpdateImage:!0},{selection:!1,dir:!0,actionBar:!0,actionBarGroup:"display_toolbar",contextMenu:!1,infoPanel:!1},{},{},{dynamicBuilder:this.buildShowExtensionsItems.bind(this)});return r.set("toggle_show_extensions",n),r}},{key:"render",value:function(){var e,t,r,n,o,i,a=this,l=this.props,s=l.pydio,c=l.dataModel,u=l.style,f=l.onScroll,d=this.state,m=d.contextNode,y=d.displayMode,h=d.columns,b=d.thumbSize,v=d.pinBookmarks,g="files-list layout-fill main-files-list",w=1,S=y;if(0===S.indexOf("grid-")&&(i=parseInt(S.split("-")[1]),S="grid"),"detail"===S)n=Pe.HEIGHT_ONE_LINE,e=h;else if("grid"===S){t=h,g+=" material-list-grid grid-size-"+i;var O=80===i?16:36;(w=this.state.elementsPerLine)>0&&(n=Math.ceil((b+O)/w)),n&&!this.props.horizontalRibbon||(n=1),r={width:b,height:b+O},this.props.horizontalRibbon&&(g+=" horizontal-ribbon")}else"list"===S&&(t=h,n=Pe.HEIGHT_TWO_LINES,o=this.entryRenderSecondLine.bind(this));var x=s.MessageHash,P=s.Controller.getActionByName("upload")&&!m.getMetadata().has("node_readonly"),E=x[P?"565":"566"],j=P?"mdi mdi-cloud-upload":"mdi mdi-folder-outline",k={style:{backgroundColor:"transparent"},iconClassName:j,primaryTextId:x[562],secondaryTextId:E};if(m.isRoot()){var C=!(!s.user||!s.user.activeRepository)&&s.user.getRepositoriesList().get(s.user.activeRepository).getOwner(),T=m.getMetadata().get("repo_has_recycle");k={style:{backgroundColor:"transparent"},iconClassName:j,primaryTextId:C?x[631]:x[563],secondaryTextId:E},T&&(k=be(be({},k),{},{checkEmptyState:function(e){return e.isLoaded()&&1===e.getChildren().size&&e.getChildren().get(T)},actionLabelId:x[567],actionIconClassName:"mdi mdi-delete",actionCallback:function(){s.goTo(T)}}))}else{var R=c.getRootNode().getMetadata().get("repo_has_recycle");m.getPath()===R&&(k=be(be({},k),{},{iconClassName:"mdi mdi-delete-empty",primaryTextId:x[564],secondaryTextId:null}))}m.getMetadata().has("local:custom-list-classes")&&(g+=" "+m.getMetadata().get("local:custom-list-classes").join(" "));var _,M=this.props,I=M.searchResults,A=M.searchScope,D=M.searchLoading,N={};if(I?(N={skipParentNavigation:!0},"all"===A&&(N=be(be({},N),{},{defaultGroupBy:"repository_id",groupByLabel:"repository_display"})),k={primaryTextId:D?"searchengine.searching":478,style:{backgroundColor:"transparent"}}):v&&(N={groupSkipUnique:!0,defaultGroupBy:"bookmark",groupByValueFunc:function(e){return"true"===e?-1:1},renderGroupLabels:function(e,t){return-1===t?p().createElement("span",null,p().createElement("span",{className:"mdi mdi-pin"})," ",s.MessageHash[147]):p().createElement("span",null,p().createElement("span",{className:"mdi mdi-folder-multiple-outline"})," ",s.MessageHash["ajax_gui.pinned-bookmarks.other"])}}),0===S.indexOf("masonry")){var L=220;return 0===S.indexOf("masonry-")&&(L=parseInt(S.replace("masonry-",""))),p().createElement(p().Fragment,null,p().createElement(Ee,{className:"masonry-grid masonry-size-"+L,dataModel:c,entryProps:{handleClicks:this.entryHandleClicks.bind(this),renderIcon:this.entryRenderIcon.bind(this),renderActions:this.entryRenderActions.bind(this)},emptyStateProps:k,containerStyle:u,columnWidth:L,onScroll:f}))}var z=this.props.onSortingInfoChange;return z&&(_=function(e){var t;if(e.attribute)if(h[e.attribute])t=h[e.attribute].label;else if(e.remote){var r=Object.keys(h).map((function(e){return h[e]})).filter((function(t){return t.remoteSortAttribute===e.attribute}));r.length&&(t=r[0].label)}z(be(be({},e),{},{label:t}))}),p().createElement(Pe,ue({ref:"list",pydio:s,tableKeys:e,sortKeys:t,node:m,dataModel:c,observeNodeReload:!0,className:g,actionBarGroups:["change_main"],skipInternalDataModel:!0,style:be(be({},u),{}),displayMode:S,usePlaceHolder:!0,onScroll:f,elementsPerLine:w,elementHeight:n,elementStyle:r,passScrollingStateToChildren:!0,entryRenderIcon:this.entryRenderIcon.bind(this),entryRenderParentIcon:this.entryRenderIcon.bind(this),entryRenderFirstLine:function(e){return a.computeLabel(e)},entryRenderSecondLine:o,entryRenderActions:this.entryRenderActions.bind(this),entryHandleClicks:this.entryHandleClicks.bind(this),entriesProps:"grid"===S?{selectedAsBorder:!0,noHover:!0}:{},horizontalRibbon:this.props.horizontalRibbon,emptyStateProps:k,defaultSortingInfo:{sortType:"file-natural",attribute:"",direction:"asc"},sortingPreferenceKey:"FilesListSortingInfo",onSortingInfoChange:_,hideToolbar:!0,customToolbar:p().createElement(X,{pydio:s})},N))}}]),a}(p().Component);function _e(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function He(e){if(e.type)return e;if("#"===e.charAt(0))return He(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Fe(9,e));var n,o=e.substring(t+1,e.length-1);if("color"===r){if(n=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Fe(10,n))}else o=o.split(",");return{type:r,values:o=o.map((function(e){return parseFloat(e)})),colorSpace:n}}function qe(e){var t=e.type,r=e.colorSpace,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],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function Ue(e){var t="hsl"===(e=He(e)).type||"hsla"===e.type?He(function(e){var t=(e=He(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),qe({type:l,values:s})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ve(e,t){return e=He(e),t=We(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,qe(e)}function Ke(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}const Ge=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}};var $e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const Ye=Ge((function(e){return $e.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Xe=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?nt(dt,--pt):0,ct--,10===ft&&(ct=1,st--),ft}function bt(){return ft=pt2||St(ft)>3?"":" "}function jt(e,t){for(;--t&&bt()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return wt(e,gt()+(t<6&&32==vt()&&32==bt()))}function kt(e){for(;bt();)switch(ft){case e:return pt;case 34:case 39:34!==e&&39!==e&&kt(ft);break;case 40:41===e&&kt(e);break;case 92:bt()}return pt}function Ct(e,t){for(;bt()&&e+ft!==57&&(e+ft!==84||47!==vt()););return"/*"+wt(t,pt-1)+"*"+Ze(47===e?e:bt())}function Tt(e){for(;!St(vt());)bt();return wt(e,pt)}var Rt="-ms-",_t="-moz-",Mt="-webkit-",It="comm",At="rule",Dt="decl",Nt="@import",Lt="@keyframes";function zt(e,t){for(var r="",n=at(e),o=0;o0&&it(x)-p&<(d>32?Ut(x+";",n,r,p-1):Ut(tt(x," ","")+";",n,r,p-2),s);break;case 59:x+=";";default:if(lt(O=Ht(x,t,r,c,u,o,l,g,w=[],S=[],p),i),123===v)if(0===u)Wt(x,t,O,O,w,i,p,l,S);else switch(99===f&&110===nt(x,3)?100:f){case 100:case 109:case 115:Wt(e,O,O,n&<(Ht(e,O,O,0,0,o,l,g,o,w=[],p),S),o,S,p,l,n?w:S);break;default:Wt(x,O,O,O,[""],S,0,l,S)}}c=u=d=0,y=b=1,g=x="",p=a;break;case 58:p=1+it(x),d=m;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==ht())continue;switch(x+=Ze(v),v*y){case 38:b=u>0?1:(x+="\f",-1);break;case 44:l[c++]=(it(x)-1)*b,b=1;break;case 64:45===vt()&&(x+=Pt(bt())),f=vt(),u=p=it(g=x+=Tt(gt())),v++;break;case 45:45===m&&2==it(x)&&(y=0)}}return i}function Ht(e,t,r,n,o,i,a,l,s,c,u){for(var p=o-1,f=0===o?i:[""],d=at(f),m=0,y=0,h=0;m0?f[b]+" "+v:tt(v,/&\f/g,f[b])))&&(s[h++]=g);return mt(e,t,r,0===o?At:l,s,c,u)}function qt(e,t,r){return mt(e,t,r,It,Ze(ft),ot(e,2,-2),0)}function Ut(e,t,r,n){return mt(e,t,r,Dt,ot(e,0,n),ot(e,n+1,-1),n)}var Vt=function(e,t,r){for(var n=0,o=0;n=o,o=vt(),38===n&&12===o&&(t[r]=1),!St(o);)bt();return wt(e,pt)},Kt=new WeakMap,Gt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Kt.get(r))&&!n){Kt.set(e,!0);for(var o=[],i=function(e,t){return xt(function(e,t){var r=-1,n=44;do{switch(St(n)){case 0:38===n&&12===vt()&&(t[r]=1),e[r]+=Vt(pt-1,t,r);break;case 2:e[r]+=Pt(n);break;case 4:if(44===n){e[++r]=58===vt()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ze(n)}}while(n=bt());return e}(Ot(e),t))}(t,o),a=r.props,l=0,s=0;l6)switch(nt(e,t+1)){case 109:if(45!==nt(e,t+4))break;case 102:return tt(e,/(.+:)(.+)-([^]+)/,"$1"+Mt+"$2-$3$1"+_t+(108==nt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rt(e,"stretch")?Yt(tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==nt(e,t+1))break;case 6444:switch(nt(e,it(e)-3-(~rt(e,"!important")&&10))){case 107:return tt(e,":",":"+Mt)+e;case 101:return tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Mt+(45===nt(e,14)?"inline-":"")+"box$3$1"+Mt+"$2$3$1"+Rt+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return Mt+e+Rt+tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mt+e+Rt+tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mt+e+Rt+tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Mt+e+Rt+e+e}return e}var Xt=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Dt:e.return=Yt(e.value,e.length);break;case Lt:return zt([yt(e,{value:tt(e.value,"@","@"+Mt)})],n);case At:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return zt([yt(e,{props:[tt(t,/:(read-\w+)/,":"+_t+"$1")]})],n);case"::placeholder":return zt([yt(e,{props:[tt(t,/:(plac\w+)/,":"+Mt+"input-$1")]}),yt(e,{props:[tt(t,/:(plac\w+)/,":"+_t+"$1")]}),yt(e,{props:[tt(t,/:(plac\w+)/,Rt+"input-$1")]})],n)}return""}))}}];const Jt=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,i=e.stylisPlugins||Xt,a={},l=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},Qt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function er(e){return er="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},er(e)}var tr=/[A-Z]|^ms/g,rr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nr=function(e){return 45===e.charCodeAt(1)},or=function(e){return null!=e&&"boolean"!=typeof e},ir=Ge((function(e){return nr(e)?e:e.replace(tr,"-$&").toLowerCase()})),ar=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(rr,(function(e,t,r){return sr={name:t,styles:r,next:sr},t}))}return 1===Qt[e]||nr(e)||"number"!=typeof t||0===t?t:t+"px"};function lr(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(er(r)){case"boolean":return"";case"object":if(1===r.anim)return sr={name:r.name,styles:r.styles,next:sr},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)sr={name:n.name,styles:n.styles,next:sr},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?gr:wr},Or=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},xr=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return br(t,r,n),fr((function(){return vr(t,r,n)})),null};var Pr=function e(t,r){var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=Or(t,r,i),s=l||Sr(a),c=!s("as");return function(){var p=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{f.push(p[0][0]);for(var d=p.length,m=1;m2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Le({},e):e;return Cr(e)&&Cr(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Cr(t[o])&&o in e&&Cr(e[o])?n[o]=Rr(e[o],t[o],r):r.clone?n[o]=Cr(t[o])?Tr(t[o]):t[o]:n[o]=t[o])})),n}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)}var Mr=["values","unit","step"],Ir=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return Le({},e,function(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_r(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t.key,t.val))}),{})};const Ar={borderRadius:4};function Dr(e){return Dr="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},Dr(e)}var Nr={xs:0,sm:600,md:900,lg:1200,xl:1536},Lr={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Nr[e],"px)")}};function zr(e,t,r){var n=e.theme||{};if(Array.isArray(t)){var o=n.breakpoints||Lr;return t.reduce((function(e,n,i){return e[o.up(o.keys[i])]=r(t[i]),e}),{})}if("object"===Dr(t)){var i=n.breakpoints||Lr;return Object.keys(t).reduce((function(e,n){if(-1!==Object.keys(i.values||Nr).indexOf(n))e[i.up(n)]=r(t[n],n);else{var o=n;e[o]=t[o]}return e}),{})}return r(t)}function Br(e){if("string"!=typeof e)throw new Error(Fe(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fr(e){return Fr="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},Fr(e)}function Wr(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){var n="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=n)return n}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function Hr(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:Wr(e,r)||o,t&&(n=t(n,o,e)),n}const qr=function(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Wr(e.theme,o)||{};return zr(e,r,(function(e){var r=Hr(a,i,e);return e===r&&"string"==typeof e&&(r=Hr(a,i,"".concat(t).concat("default"===e?"":Br(e)),e)),!1===n?r:function(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Fr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Fr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,r)}))};return a.propTypes={},a.filterProps=[t],a},Ur=function(e,t){return t?Rr(e,t,{clone:!1}):e};function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2){if(!Xr[e])return[e];e=Xr[e]}var t,r,n=(t=e.split(""),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vr(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.")}()),o=n[0],i=n[1],a=$r[o],l=Yr[i]||"";return Array.isArray(l)?l.map((function(e){return a+e})):[a+l]},Gr={},function(e){return void 0===Gr[e]&&(Gr[e]=Kr(e)),Gr[e]}),Zr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],en=[].concat(Zr,Qr);function tn(e,t,r,n){var o,i=null!=(o=Wr(e,t,!1))?o:r;return"number"==typeof i?function(e){return"string"==typeof e?e:i*e}:Array.isArray(i)?function(e){return"string"==typeof e?e:i[e]}:"function"==typeof i?i:function(){}}function rn(e){return tn(e,"spacing",8)}function nn(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}function on(e,t){var r=rn(e.theme);return Object.keys(e).map((function(n){return function(e,t,r,n){if(-1===t.indexOf(r))return null;var o=function(e,t){return function(r){return e.reduce((function(e,n){return e[n]=nn(t,r),e}),{})}}(Jr(r),n);return zr(e,e[r],o)}(e,t,n,r)})).reduce(Ur,{})}function an(e){return on(e,Zr)}function ln(e){return on(e,Qr)}function sn(e){return on(e,en)}an.propTypes={},an.filterProps=Zr,ln.propTypes={},ln.filterProps=Qr,sn.propTypes={},sn.filterProps=en;const cn=function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,r){return e[t.up(r)]={},e}),{}))||{}}(l.breakpoints),a=Object.keys(i),c=i;return Object.keys(n).forEach((function(r){var o,i="function"==typeof(o=n[r])?o(l):o;if(null!=i)if("object"===An(i))if(s[r])c=Ur(c,e(r,i,l,s));else{var a=zr({theme:l},i,(function(e){return Dn({},r,e)}));!function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,r=void 0===t?{}:t,n=e.palette,o=void 0===n?{}:n,i=e.spacing,a=e.shape,l=void 0===a?{}:a,s=Ke(e,zn),c=function(e){var t=e.values,r=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,n=e.unit,o=void 0===n?"px":n,i=e.step,a=void 0===i?5:i,l=Ke(e,Mr),s=Ir(r),c=Object.keys(s);function u(e){var t="number"==typeof r[e]?r[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function p(e){var t="number"==typeof r[e]?r[e]:e;return"@media (max-width:".concat(t-a/100).concat(o,")")}function f(e,t){var n=c.indexOf(t);return"@media (min-width:".concat("number"==typeof r[e]?r[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof r[c[n]]?r[c[n]]:t)-a/100).concat(o,")")}return Le({keys:c,values:s,up:u,down:p,between:f,only:function(e){return c.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=rn({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n1?f-1:0),m=1;me.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,r=void 0===t?{}:t,n=e.palette,o=void 0===n?{}:n,i=e.transitions,a=void 0===i?{}:i,l=e.typography,s=void 0===l?{}:l,c=_e(e,_o);if(e.vars)throw new Error(Fe(18));var u,p,f,d,m,y,h=function(e){var t=e.mode,r=void 0===t?"light":t,n=e.contrastThreshold,o=void 0===n?3:n,i=e.tonalOffset,a=void 0===i?.2:i,l=_e(e,po),s=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:so[200],light:so[50],dark:so[400]}:{main:so[700],light:so[400],dark:so[800]}}(r),c=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:io[200],light:io[50],dark:io[400]}:{main:io[500],light:io[300],dark:io[700]}}(r),u=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:ao[500],light:ao[300],dark:ao[700]}:{main:ao[700],light:ao[400],dark:ao[800]}}(r),p=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:co[400],light:co[300],dark:co[700]}:{main:co[700],light:co[500],dark:co[900]}}(r),f=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:uo[400],light:uo[300],dark:uo[700]}:{main:uo[800],light:uo[500],dark:uo[900]}}(r),d=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:lo[400],light:lo[300],dark:lo[700]}:{main:"#ed6c02",light:lo[500],dark:lo[900]}}(r);function m(e){var t=function(e,t){var r=Ue(e),n=Ue(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,mo.text.primary)>=o?mo.text.primary:fo.text.primary;return t}var y=function(e){var t=e.color,r=e.name,n=e.mainShade,o=void 0===n?500:n,i=e.lightShade,l=void 0===i?300:i,s=e.darkShade,c=void 0===s?700:s;if(!(t=Me({},t)).main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(Fe(11,r?" (".concat(r,")"):"",o));if("string"!=typeof t.main)throw new Error(Fe(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return yo(t,"light",l,a),yo(t,"dark",c,a),t.contrastText||(t.contrastText=m(t.main)),t},h={dark:mo,light:fo};return Rr(Me({common:Me({},no),mode:r,primary:y({color:s,name:"primary"}),secondary:y({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:u,name:"error"}),warning:y({color:d,name:"warning"}),info:y({color:p,name:"info"}),success:y({color:f,name:"success"}),grey:oo,contrastThreshold:o,getContrastText:m,augmentColor:y,tonalOffset:a},h[r]),l)}(o),b=Bn(e),v=Rr(b,{mixins:(d=b.breakpoints,m=r,Me({toolbar:(y={minHeight:56},ro(y,d.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),ro(y,d.up("sm"),{minHeight:64}),y)},m)),palette:h,shadows:Po.slice(),typography:go(h,s),transitions:(u=a,p=Me({},jo,u.easing),f=Me({},ko,u.duration),Me({getAutoHeightDuration:To,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.duration,n=void 0===r?f.standard:r,o=t.easing,i=void 0===o?p.easeInOut:o,a=t.delay,l=void 0===a?0:a;return _e(t,Eo),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof n?n:Co(n)," ").concat(i," ").concat("string"==typeof l?l:Co(l))})).join(",")}},u,{easing:p,duration:f})),zIndex:Me({},Ro)});v=Rr(v,c);for(var g=arguments.length,w=new Array(g>1?g-1:0),S=1;S0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,r=void 0===t?eo:t,n=e.rootShouldForwardProp,o=void 0===n?Qn:n,i=e.slotShouldForwardProp,a=void 0===i?Qn:i,l=function(e){var t=Yn(e.theme)?r:e.theme;return Ln(Le({},e,{theme:t}))};return l.__mui_systemSx=!0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jr(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var n=t.name,i=t.slot,s=t.skipVariantsResolver,c=t.skipSx,u=t.overridesResolver,p=Ke(t,Kn),f=void 0!==s?s:i&&"Root"!==i||!1,d=c||!1,m=Qn;"Root"===i?m=o:i?m=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);var y=function(e,t){return Er(e,t)}(e,Le({shouldForwardProp:m,label:void 0},p)),h=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i0){var p=new Array(c).fill("");(s=[].concat(qn(e),qn(p))).raw=[].concat(qn(e.raw),qn(p))}else"function"==typeof e&&e.__emotion_real!==e&&(s=function(t){var n=t.theme,o=Ke(t,$n);return e(Le({theme:Yn(n)?r:n},o))});return y.apply(void 0,[s].concat(qn(a)))};return y.withConfig&&(h.withConfig=y.withConfig),h}}({defaultTheme:Mo,rootShouldForwardProp:Io});const No=Do,Lo=u.createContext(null);function zo(){return u.useContext(Lo)}const Bo=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=zo();return r&&(e=r,0!==Object.keys(e).length)?r:t};var Fo=Bn();const Wo=function(){return Bo(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fo)};function Ho(){return Wo(Mo)}function qo(e,t){var r=Le({},t);return Object.keys(e).forEach((function(n){if(n.toString().match(/^(components|slots)$/))r[n]=Le({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){var o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Le({},i),Object.keys(o).forEach((function(e){r[n][e]=qo(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Uo(e){var t=e.theme,r=e.name,n=e.props;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?qo(t.components[r].defaultProps,n):n}function Vo(e){return function(e){var t=e.props,r=e.name;return Uo({theme:Wo(e.defaultTheme),name:r,props:t})}({props:e.props,name:e.name,defaultTheme:Mo})}const Ko=Br;function Go(e,t){return Go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Go(e,t)}function $o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Go(e,t)}const Yo=p().createContext(null);var Xo="unmounted",Jo="exited",Zo="entering",Qo="entered",ei="exiting",ti=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Jo,n.appearStatus=Zo):o=Qo:o=t.unmountOnExit||t.mountOnEnter?Xo:Jo,n.state={status:o},n.nextCallback=null,n}$o(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Xo?{status:Jo}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Zo&&r!==Qo&&(t=Zo):r!==Zo&&r!==Qo||(t=ei)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Zo){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:x().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jo&&this.setState({status:Xo})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[x().findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;e||r?(this.props.onEnter(i,a),this.safeSetState({status:Zo},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Qo},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Qo},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:x().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:ei},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Jo},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Jo},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:x().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Xo)return null;var t=this.props,r=t.children,n=(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,Ke(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return p().createElement(Yo.Provider,{value:null},"function"==typeof r?r(e,n):p().cloneElement(p().Children.only(r),n))},t}(p().Component);function ri(){}ti.contextType=Yo,ti.propTypes={},ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ri,onEntering:ri,onEntered:ri,onExit:ri,onExiting:ri,onExited:ri},ti.UNMOUNTED=Xo,ti.EXITED=Jo,ti.ENTERING=Zo,ti.ENTERED=Qo,ti.EXITING=ei;const ni=ti;function oi(e){return oi="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},oi(e)}var ii=function(e){return e.scrollTop};function ai(e,t){var r,n,o=e.timeout,i=e.easing,a=e.style,l=void 0===a?{}:a;return{duration:null!=(r=l.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=l.transitionTimingFunction)?n:"object"===oi(i)?i[t.mode]:i,delay:l.transitionDelay}}function li(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function si(){for(var e=arguments.length,t=new Array(e),r=0;r0&&Ei(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ei(n.height)/e.offsetHeight||1);var a=(wi(e)?gi(e):window).visualViewport,l=!ki()&&r,s=(n.left+(l&&a?a.offsetLeft:0))/o,c=(n.top+(l&&a?a.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:s+u,bottom:c+p,left:s,x:s,y:c}}function Ti(e){var t=gi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ri(e){return e?(e.nodeName||"").toLowerCase():null}function _i(e){return((wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mi(e){return Ci(_i(e)).left+Ti(e).scrollLeft}function Ii(e){return gi(e).getComputedStyle(e)}function Ai(e){var t=Ii(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Di(e,t,r){void 0===r&&(r=!1);var n=Si(t),o=Si(t)&&function(e){var t=e.getBoundingClientRect(),r=Ei(t.width)/e.offsetWidth||1,n=Ei(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),i=_i(t),a=Ci(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&(("body"!==Ri(t)||Ai(i))&&(l=function(e){return e!==gi(e)&&Si(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ti(e);var t}(t)),Si(t)?((s=Ci(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Mi(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Ni(e){var t=Ci(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Li(e){return"html"===Ri(e)?e:e.assignedSlot||e.parentNode||(Oi(e)?e.host:null)||_i(e)}function zi(e){return["html","body","#document"].indexOf(Ri(e))>=0?e.ownerDocument.body:Si(e)&&Ai(e)?e:zi(Li(e))}function Bi(e,t){var r;void 0===t&&(t=[]);var n=zi(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=gi(n),a=o?[i].concat(i.visualViewport||[],Ai(n)?n:[]):n,l=t.concat(a);return o?l:l.concat(Bi(Li(a)))}function Fi(e){return["table","td","th"].indexOf(Ri(e))>=0}function Wi(e){return Si(e)&&"fixed"!==Ii(e).position?e.offsetParent:null}function Hi(e){for(var t=gi(e),r=Wi(e);r&&Fi(r)&&"static"===Ii(r).position;)r=Wi(r);return r&&("html"===Ri(r)||"body"===Ri(r)&&"static"===Ii(r).position)?t:r||function(e){var t=/firefox/i.test(ji());if(/Trident/i.test(ji())&&Si(e)&&"fixed"===Ii(e).position)return null;var r=Li(e);for(Oi(r)&&(r=r.host);Si(r)&&["html","body"].indexOf(Ri(r))<0;){var n=Ii(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var qi="top",Ui="bottom",Vi="right",Ki="left",Gi="auto",$i=[qi,Ui,Vi,Ki],Yi="start",Xi="end",Ji="clippingParents",Zi="viewport",Qi="popper",ea="reference",ta=$i.reduce((function(e,t){return e.concat([t+"-"+Yi,t+"-"+Xi])}),[]),ra=[].concat($i,[Gi]).reduce((function(e,t){return e.concat([t,t+"-"+Yi,t+"-"+Xi])}),[]),na=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function oa(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function ia(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var aa={placement:"bottom",modifiers:[],strategy:"absolute"};function la(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function da(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?ua(o):null,a=o?pa(o):null,l=r.x+r.width/2-n.width/2,s=r.y+r.height/2-n.height/2;switch(i){case qi:t={x:l,y:r.y-n.height};break;case Ui:t={x:l,y:r.y+r.height};break;case Vi:t={x:r.x+r.width,y:s};break;case Ki:t={x:r.x-n.width,y:s};break;default:t={x:r.x,y:r.y}}var c=i?fa(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Yi:t[c]=t[c]-(r[u]/2-n[u]/2);break;case Xi:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var ma={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ya(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,f=a.x,d=void 0===f?0:f,m=a.y,y=void 0===m?0:m,h="function"==typeof u?u({x:d,y}):{x:d,y};d=h.x,y=h.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),g=Ki,w=qi,S=window;if(c){var O=Hi(r),x="clientHeight",P="clientWidth";O===gi(r)&&"static"!==Ii(O=_i(r)).position&&"absolute"===l&&(x="scrollHeight",P="scrollWidth"),(o===qi||(o===Ki||o===Vi)&&i===Xi)&&(w=Ui,y-=(p&&O===S&&S.visualViewport?S.visualViewport.height:O[x])-n.height,y*=s?1:-1),o!==Ki&&(o!==qi&&o!==Ui||i!==Xi)||(g=Vi,d-=(p&&O===S&&S.visualViewport?S.visualViewport.width:O[P])-n.width,d*=s?1:-1)}var E,j=Object.assign({position:l},c&&ma),k=!0===u?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:Ei(t*n)/n||0,y:Ei(r*n)/n||0}}({x:d,y}):{x:d,y};return d=k.x,y=k.y,s?Object.assign({},j,((E={})[w]=v?"0":"",E[g]=b?"0":"",E.transform=(S.devicePixelRatio||1)<=1?"translate("+d+"px, "+y+"px)":"translate3d("+d+"px, "+y+"px, 0)",E)):Object.assign({},j,((t={})[w]=v?y+"px":"",t[g]=b?d+"px":"",t.transform="",t))}var ha={left:"right",right:"left",bottom:"top",top:"bottom"};function ba(e){return e.replace(/left|right|bottom|top/g,(function(e){return ha[e]}))}var va={start:"end",end:"start"};function ga(e){return e.replace(/start|end/g,(function(e){return va[e]}))}function wa(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Oi(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Sa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Oa(e,t,r){return t===Zi?Sa(function(e,t){var r=gi(e),n=_i(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=ki();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Mi(e),y:s}}(e,r)):wi(t)?function(e,t){var r=Ci(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Sa(function(e){var t,r=_i(e),n=Ti(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=xi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=xi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Mi(e),s=-n.scrollTop;return"rtl"===Ii(o||r).direction&&(l+=xi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(_i(e)))}function xa(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Pa(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Ea(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,l=r.boundary,s=void 0===l?Ji:l,c=r.rootBoundary,u=void 0===c?Zi:c,p=r.elementContext,f=void 0===p?Qi:p,d=r.altBoundary,m=void 0!==d&&d,y=r.padding,h=void 0===y?0:y,b=xa("number"!=typeof h?h:Pa(h,$i)),v=f===Qi?ea:Qi,g=e.rects.popper,w=e.elements[m?v:f],S=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Bi(Li(e)),r=["absolute","fixed"].indexOf(Ii(e).position)>=0&&Si(e)?Hi(e):e;return wi(r)?t.filter((function(e){return wi(e)&&wa(e,r)&&"body"!==Ri(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],l=i.reduce((function(t,r){var o=Oa(e,r,n);return t.top=xi(o.top,t.top),t.right=Pi(o.right,t.right),t.bottom=Pi(o.bottom,t.bottom),t.left=xi(o.left,t.left),t}),Oa(e,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(wi(w)?w:w.contextElement||_i(e.elements.popper),s,u,a),O=Ci(e.elements.reference),x=da({reference:O,element:g,strategy:"absolute",placement:o}),P=Sa(Object.assign({},g,x)),E=f===Qi?P:O,j={top:S.top-E.top+b.top,bottom:E.bottom-S.bottom+b.bottom,left:S.left-E.left+b.left,right:E.right-S.right+b.right},k=e.modifiersData.offset;if(f===Qi&&k){var C=k[o];Object.keys(j).forEach((function(e){var t=[Vi,Ui].indexOf(e)>=0?1:-1,r=[qi,Ui].indexOf(e)>=0?"y":"x";j[e]+=C[r]*t}))}return j}const ja={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,l=void 0===a||a,s=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,f=r.altBoundary,d=r.flipVariations,m=void 0===d||d,y=r.allowedAutoPlacements,h=t.options.placement,b=ua(h),v=s||(b!==h&&m?function(e){if(ua(e)===Gi)return[];var t=ba(e);return[ga(e),t,ga(t)]}(h):[ba(h)]),g=[h].concat(v).reduce((function(e,r){return e.concat(ua(r)===Gi?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?ra:s,u=pa(n),p=u?l?ta:ta.filter((function(e){return pa(e)===u})):$i,f=p.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,r){return t[r]=Ea(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[ua(r)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:y}):r)}),[]),w=t.rects.reference,S=t.rects.popper,O=new Map,x=!0,P=g[0],E=0;E=0,R=T?"width":"height",_=Ea(t,{placement:j,boundary:u,rootBoundary:p,altBoundary:f,padding:c}),M=T?C?Vi:Ki:C?Ui:qi;w[R]>S[R]&&(M=ba(M));var I=ba(M),A=[];if(i&&A.push(_[k]<=0),l&&A.push(_[M]<=0,_[I]<=0),A.every((function(e){return e}))){P=j,x=!1;break}O.set(j,A)}if(x)for(var D=function(e){var t=g.find((function(t){var r=O.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},N=m?3:1;N>0&&"break"!==D(N);N--);t.placement!==P&&(t.modifiersData[n]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ka(e,t,r){return xi(e,Pi(t,r))}const Ca={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,l=void 0!==a&&a,s=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,f=r.tether,d=void 0===f||f,m=r.tetherOffset,y=void 0===m?0:m,h=Ea(t,{boundary:s,rootBoundary:c,padding:p,altBoundary:u}),b=ua(t.placement),v=pa(t.placement),g=!v,w=fa(b),S="x"===w?"y":"x",O=t.modifiersData.popperOffsets,x=t.rects.reference,P=t.rects.popper,E="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,j="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(O){if(i){var T,R="y"===w?qi:Ki,_="y"===w?Ui:Vi,M="y"===w?"height":"width",I=O[w],A=I+h[R],D=I-h[_],N=d?-P[M]/2:0,L=v===Yi?x[M]:P[M],z=v===Yi?-P[M]:-x[M],B=t.elements.arrow,F=d&&B?Ni(B):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=W[R],q=W[_],U=ka(0,x[M],F[M]),V=g?x[M]/2-N-U-H-j.mainAxis:L-U-H-j.mainAxis,K=g?-x[M]/2+N+U+q+j.mainAxis:z+U+q+j.mainAxis,G=t.elements.arrow&&Hi(t.elements.arrow),$=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Y=null!=(T=null==k?void 0:k[w])?T:0,X=I+K-Y,J=ka(d?Pi(A,I+V-Y-$):A,I,d?xi(D,X):D);O[w]=J,C[w]=J-I}if(l){var Z,Q="x"===w?qi:Ki,ee="x"===w?Ui:Vi,te=O[S],re="y"===S?"height":"width",ne=te+h[Q],oe=te-h[ee],ie=-1!==[qi,Ki].indexOf(b),ae=null!=(Z=null==k?void 0:k[S])?Z:0,le=ie?ne:te-x[re]-P[re]-ae+j.altAxis,se=ie?te+x[re]+P[re]-ae-j.altAxis:oe,ce=d&&ie?function(e,t,r){var n=ka(e,t,r);return n>r?r:n}(le,te,se):ka(d?le:ne,te,d?se:oe);O[S]=ce,C[S]=ce-te}t.modifiersData[n]=C}},requiresIfExists:["offset"]};const Ta={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,l=ua(r.placement),s=fa(l),c=[Ki,Vi].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return xa("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Pa(e,$i))}(o.padding,r),p=Ni(i),f="y"===s?qi:Ki,d="y"===s?Ui:Vi,m=r.rects.reference[c]+r.rects.reference[s]-a[s]-r.rects.popper[c],y=a[s]-r.rects.reference[s],h=Hi(i),b=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,v=m/2-y/2,g=u[f],w=b-p[c]-u[d],S=b/2-p[c]/2+v,O=ka(g,S,w),x=s;r.modifiersData[n]=((t={})[x]=O,t.centerOffset=O-S,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&wa(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ra(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function _a(e){return[qi,Vi,Ui,Ki].some((function(t){return e[t]>=0}))}var Ma=sa({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,l=void 0===a||a,s=gi(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,ca)})),l&&s.addEventListener("resize",r.update,ca),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,ca)})),l&&s.removeEventListener("resize",r.update,ca)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=da({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,l=r.roundOffsets,s=void 0===l||l,c={placement:ua(t.placement),variation:pa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ya(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ya(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Si(o)&&Ri(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Si(n)&&Ri(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=ra.reduce((function(e,r){return e[r]=function(e,t,r){var n=ua(e),o=[Ki,qi].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Ki,Vi].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(r,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},ja,Ca,Ta,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ea(t,{elementContext:"reference"}),l=Ea(t,{altBoundary:!0}),s=Ra(a,n),c=Ra(l,o,i),u=_a(s),p=_a(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]});function Ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:"Mui",n=za[t];return n?"".concat(r,"-").concat(n):"".concat(La.generate(e),"-").concat(t)}function Fa(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",n={};return t.forEach((function(t){n[t]=Ba(e,t,r)})),n}function Wa(e){return Ba("MuiPopperUnstyled",e)}function Ha(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])})).forEach((function(r){t[r]=e[r]})),t}function qa(e,t){return"function"==typeof e?e(t):e}Fa("MuiPopperUnstyled",["root"]);var Ua=["elementType","externalSlotProps","ownerState"];function Va(e){var t,r=e.elementType,n=e.externalSlotProps,o=e.ownerState,i=Ke(e,Ua),a=qa(n,o),l=function(e){var t=e.getSlotProps,r=e.additionalProps,n=e.externalSlotProps,o=e.externalForwardedProps,i=e.className;if(!t){var a=De(null==o?void 0:o.className,null==n?void 0:n.className,i,null==r?void 0:r.className),l=Le({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),s=Le({},r,o,n);return a.length>0&&(s.className=a),Object.keys(l).length>0&&(s.style=l),{props:s,internalRef:void 0}}var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var r={};return Object.keys(e).filter((function(r){return r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)})).forEach((function(t){r[t]=e[t]})),r}(Le({},o,n)),u=Ha(n),p=Ha(o),f=t(c),d=De(null==f?void 0:f.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),m=Le({},null==f?void 0:f.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),y=Le({},f,r,p,u);return d.length>0&&(y.className=d),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}(Le({},i,{externalSlotProps:a}));return Be(r,Le({},l.props,{ref:si(l.internalRef,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ga(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ga(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 Ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=20},n}return Ks(r,[{key:"componentWillReceiveProps",value:function(e){var t=e.size,r=e.scale;this.setState({minusDisabled:r-.5<=0,magnifyDisabled:"contain"===t,plusDisabled:r+.5>=20})}},{key:"render",value:function(){var e=this.state,t=e.minusDisabled,r=void 0!==t&&t,n=e.magnifyDisabled,o=void 0!==n&&n,i=e.plusDisabled,a=void 0!==i&&i,l=(e.searchString,e.searchJump,this.props),s=l.readonly,c=(l.size,l.scale),u=l.playing,f=void 0!==u&&u,d=l.resolution,m=l.onAutoPlayToggle,y=l.onSizeChange,h=l.onResolutionToggle,b=l.style,v=l.className,g=(function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}(l,Fs),this.props),w=g.saveable,S=g.undoable,O=g.redoable,x=g.onSave,P=g.onUndo,j=g.onRedo,k=g.saveDisabled,C=g.undoDisabled,T=g.redoDisabled,R=this.props,_=R.onToggleLineNumbers,M=R.onToggleLineWrapping,I=this.props,A=I.onSearch,D=I.onJumpTo,N=(w||S||O)&&!s,L=this.props,z=L.editortools,B=L.searchable,F=this.props.hdable,W=this.props.playable,H=this.props.resizable;return N||z||B||F||W||H?p().createElement(Ps(),null,p().createElement(E.Toolbar,{style:Hs(Hs({},b),{},{zIndex:10}),className:v},W&&p().createElement(E.ToolbarGroup,null,p().createElement(E.IconButton,{iconClassName:"mdi "+(f?"mdi-pause":"mdi-play"),iconStyle:ac.iconButton,onClick:function(){return m()}})),W&&H&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),H&&p().createElement(E.ToolbarGroup,null,p().createElement(E.IconButton,{iconClassName:"mdi mdi-minus",iconStyle:ac.iconButton,onClick:function(){return y({size:"auto",scale:c-.5})},disabled:r}),p().createElement(E.IconButton,{iconClassName:"mdi mdi-magnify-minus",iconStyle:ac.iconButton,onClick:function(){return y({size:"contain"})},disabled:o}),p().createElement(E.IconButton,{iconClassName:"mdi mdi-plus",iconStyle:ac.iconButton,onClick:function(){return y({size:"auto",scale:c+.5})},disabled:a})),(W||H)&&F&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),F&&p().createElement(E.ToolbarGroup,null,p().createElement(E.IconButton,{iconClassName:"mdi "+("hi"===d?"mdi-quality-high":"mdi-image"),iconStyle:ac.iconButton,onClick:function(){return h()}})),(W||H||F)&&N&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),N&&p().createElement(E.ToolbarGroup,null,w&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-content-save",iconStyle:ac.iconButton,onClick:function(){return x()},disabled:k}),S&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-undo",iconStyle:ac.iconButton,onClick:function(){return P()},disabled:C}),O&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-redo",iconStyle:ac.iconButton,onClick:function(){return j()},disabled:T})),(W||H||F||N)&&z&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),z&&p().createElement(E.ToolbarGroup,null,_&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-format-list-numbers",iconStyle:ac.iconButton,onClick:function(){return _()}}),M&&p().createElement(E.IconButton,{iconClassName:"mdi mdi-wrap",iconStyle:ac.iconButton,onClick:function(){return M()}})),(W||H||F||N||z)&&B&&p().createElement(E.ToolbarSeparator,{style:ac.divider}),B&&p().createElement(E.ToolbarGroup,null,p().createElement(E.TextField,{onMouseDown:function(e){return e.stopPropagation()},onKeyUp:function(e){var t=e.key,r=e.target;return"Enter"===t&&D(r.value)},hintText:"Jump to Line",style:ac.textField,hintStyle:ac.textHint,inputStyle:ac.textInput}),p().createElement(E.TextField,{onMouseDown:function(e){return e.stopPropagation()},onKeyUp:function(e){var t=e.key,r=e.target;return"Enter"===t&&A(r.value)},hintText:"Search...",style:ac.textField,hintStyle:ac.textHint,inputStyle:ac.textInput})))):null}}]),r}(p().Component))||zs)||zs)||zs)||zs)||zs;function cc(e,t){var r=e.editor,n=ec(e),o=n.readonly,i=void 0===o||o,a=n.message,l=void 0===a?"":a,s=n.editorData,c=void 0===s?{editorClass:""}:s,u=T().getFunctionByName(c.editorClass,window);return u?Hs(Hs(Hs({},t),n),{},{resolution:tc(e),isActive:r.activeTabId===n.id,snackbarMessage:l,readonly:i,Editor:u.Editor,Controls:u.Controls,Actions:u.Actions}):Hs(Hs({},t),n)}var uc,pc=(uc=E.Card,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&&Is(e,t)}(l,e);var t,r,n,o,i,a=(o=l,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=As(o);if(i){var r=As(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===js(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(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=a.call(this,e)).state={maximised:e.maximised},t}return t=l,r=[{key:"componentWillReceiveProps",value:function(e){this.setState({maximised:e.maximised})}},{key:"render",value:function(){var e=this,t=this.props.style,r=void 0===t?{}:t,n=r.width,o=void 0===n?"0":n,i=r.height,a=void 0===i?"0":i,l=this.state.maximised,s={width:l?(0,Es.ST)(100,Ns):(0,Es.ST)(parseInt(o.replace(/%$/,"")),Ns),height:l?(0,Es.ST)(100,Ns):(0,Es.ST)(parseInt(a.replace(/%$/,"")),Ns)};return p().createElement(Es.y_,{style:s},(function(t){var n=t.width,o=t.height;return p().createElement(uc,ks({},e.props,{style:Ts(Ts({},r),{},{width:"".concat(n,"%"),height:"".concat(o,"%"),transition:"none"})}))}))}}],n=[{key:"displayName",get:function(){return"MakeMaximise(".concat(Ds(uc),")")}}],r&&_s(t.prototype,r),n&&_s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(p().Component));const fc=require("pydio/http/api");var dc=r.n(fc);const mc=require("pydio/model/data-model");var yc,hc=r.n(mc);function bc(e){return bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bc(e)}function vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gc(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,np)),{},{tabs:n,isOpen:n.filter((function(e){return e.editorData})).length>0,isMinimised:i,displayToolbar:l})}),dp)(rp=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&&cp(e,t)}(a,e);var t,r,n,o,i=(n=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=up(n);if(o){var r=up(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===tp(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;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var r=e.editorModify,n=e.editorSetActiveTab;return r({isOpen:!1}),n(null),t.state={fullBrowserScreen:pydio.UI.MOBILE_EXTENSIONS||!0},t.onFullBrowserScreen=function(){return t.setState({fullBrowserScreen:!t.state.fullBrowserScreen})},t}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.isOpen,r=e.isMinimised,n=e.displayToolbar,o=e.documentWidth,i=e.documentHeight,a=this.state.fullBrowserScreen;if(!t)return null;var l={position:"fixed",top:a?0:"1%",left:a?0:"1%",right:a?0:"15%",bottom:a?0:"1%"},s=i-50,c=o-50,u={position:"fixed",top:s,left:c,cursor:"pointer",transform:"translate(-50%, -50%)",zIndex:5};return p().createElement("div",{style:{position:"fixed",top:0,left:0,zIndex:1400}},!r&&p().createElement("div",{style:{position:"fixed",top:0,bottom:0,right:0,left:0,background:"#000000",opacity:"0.8",transition:"opacity .5s ease-in"}}),p().createElement(ou,{displayToolbar:n,style:l,minimiseStyle:{transformOrigin:c+"px "+s+"px"}}),r&&p().createElement(ep,{style:u}))}}])&&lp(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component))||rp)||rp;function yp(e){return yp="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},yp(e)}function hp(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:null,t=e||this.state.templates,r=this.props.dataModel,n=r.getSelectedNodes();n&&n.length||r.getContextNode()!==r.getRootNode()||(n=[r.getContextNode()]);var o,i,a=[],l={};return!n||n.length<1?o="no_selection":n.length>1?(o="generic_multiple",l.nodes=n):((i=n[0]).isLeaf()?o="generic_file":(o="generic_dir",this.props.dataModel.getRootNode()===i&&(o="ajxp_root_node")),l.node=i),t.has(o)&&(a=a.concat(t.get(o))),i&&t.forEach((function(e,t){t!==o&&(0===t.indexOf("meta:")&&i.getMetadata().has(t.substr(5))||i.getAjxpMime()===t)&&(a=a.concat(e))})),this.props.onContentChange&&!e&&this.props.onContentChange(a.length),a.sort((function(e,t){return e.WEIGHT===t.WEIGHT?0:e.WEIGHT>t.WEIGHT?1:-1})),{TEMPLATES:a,DATA:l}}},{key:"render",value:function(){var e=this,t=this.props.mainEmptyStateProps,r=this.state.displayData,n=r.TEMPLATES.map((function(t,n){var o=t.COMPONENT,i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pp(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.")}()}(o.split(".",2),2),a=i[0],l=i[1];return p().createElement(Np,xp({},r.DATA,e.props,{key:"ip_"+o,namespace:a,componentName:l}))}));return!n.length&&t&&n.push(p().createElement(Dp,t)),p().createElement(Lp,{style:this.props.style},n)}}]),o}(p().Component);zp.propTypes={dataModel:d().instanceOf(PydioDataModel).isRequired,pydio:d().instanceOf(t()).isRequired,style:d().object},zp.contextTypes={scrollArea:d().object},zp=Ap(zp,{id:"info_panel"}),zp=(0,P.muiThemeable)()(zp);var Bp=function(){function e(){Ep(this,e)}return kp(e,null,[{key:"parseConfigs",value:function(){var e=b().XPathSelectNodes(pydio.getXmlRegistry(),'client_configs/component_config[@component="InfoPanel"]/infoPanel'),t=new Map;return e.forEach((function(e){if(e.getAttribute("reactComponent")){var r=e.getAttribute("mime").split(","),n=e.getAttribute("reactComponent");r.map((function(r){t.has(r)||t.set(r,[]),t.get(r).push({COMPONENT:n,THEME:e.getAttribute("theme"),ATTRIBUTES:e.getAttribute("attributes"),WEIGHT:e.getAttribute("weight")?parseInt(e.getAttribute("weight")):0})}))}})),t}}]),e}(),Fp=r(70970),Wp=r.n(Fp),Hp=r(71082),qp=r.n(Hp);function Up(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,r,n){return t+t+r+r+n+n})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}var Vp=function(){if("undefined"==typeof window)return"node";var e=Boolean(window.opera)||navigator.userAgent.indexOf(" OPR/")>=0,t="undefined"!=typeof InstallTrigger,r=!!window.chrome&&!!window.chrome.webstore,n=(Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||!r)&&!e&&void 0!==window.webkitAudioContext,o=Boolean(document.documentMode);return e?"opera":t?"firefox":r?"chrome":n?"safari":o?"ie":""}();function Kp(){var e=document,t=e.body,r=e.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}function Gp(){return document.scrollingElement||(["ie","firefox"].indexOf(Vp)>-1?document.documentElement:document.body)}function $p(e){var t=e.type,r=void 0===t?"joyride":t,n=e.msg,o=e.warn,i=void 0!==o&&o,a=e.debug,l=void 0!==a&&a,s=i?console.warn||console.error:console.log;l&&(console.log("%c"+r,"color: #760bc5; font-weight: bold; font-size: 12px;"),n&&(Array.isArray(n)?s.apply(console,n):s.apply(console,[n])))}function Yp(e){return e.dataset&&e.dataset.reactid?(console.warn("Deprecation warning: React 15.0 removed reactid. Update your code."),'[data-reactid="'+e.dataset.reactid+'"]'):e.dataset&&(console.error("Unsupported error: React 15.0+ doesn’t write reactid to the DOM anymore, please use a plain class in your step.",e),e.className)?"."+e.className.replace(" ","."):e}function Xp(e,t){var r=e.getBoundingClientRect();if(!t)return r;var n=t.getBoundingClientRect(),o=n.top>0?r.top-n.top:r.top,i=n.left>0?r.left-n.left:r.left;return{top:o,left:i,right:n.right>0?n.right-r.right:r.right,bottom:n.bottom>0?n.bottom-r.bottom:r.bottom,x:i,y:o,width:r.width,height:r.height}}function Jp(e){return Jp="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},Jp(e)}var Zp=function(){function e(e,t){for(var r=0;r=n.top&&o<=n.top+n.height,l=i>=n.left&&i<=n.left+n.width&&a;l&&!r.state.mouseOverHole&&r.setState({mouseOverHole:!0}),!l&&r.state.mouseOverHole&&r.setState({mouseOverHole:!1})},r.state={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+rf(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),of(t,[{key:"componentWillMount",value:function(){var e=this.setOpts(),t=this.setStyles(this.props.step.style,e,this.props);this.setState({styles:t,opts:e})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.allowClicksThruHole,r=e.onRender,n=e.showOverlay;this.forceUpdate(),r(),n&&t&&document.addEventListener("mousemove",this.handleMouseMove,!1)}},{key:"componentWillReceiveProps",value:function(e){var t=e.allowClicksThruHole,r=e.animate,n=e.standalone,o=e.step,i=e.holePadding,a=e.position,l=e.xPos,s=e.yPos,c=e.showOverlay,u=this.props,p=u.allowClicksThruHole,f=u.animate,d=u.standalone,m=u.step,y=u.holePadding,h=u.position,b=u.xPos,v=u.yPos,g=u.showOverlay;if(r!==f||n!==d||o!==m||i!==y||a!==h||l!==b||s!==v){var w=this.setOpts(e),S=this.setStyles(e.step.style,w,e);this.setState({styles:S,opts:w})}c!==g&&(c&&t?document.addEventListener("mousemove",this.handleMouseMove,!1):document.removeEventListener("mousemove",this.handleMouseMove,!1)),t!==p&&(t?document.addEventListener("mousemove",this.handleMouseMove,!1):document.removeEventListener("mousemove",this.handleMouseMove,!1))}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.onRender,n=t.selector;e.selector!==n&&(this.forceUpdate(),r())}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousemove",this.handleMouseMove,!1)}},{key:"getArrowPosition",value:function(e){var t=e;return window.innerWidth<480?e<8?t=8:e>92&&(t=92):window.innerWidth<1024?e<6?t=6:e>94&&(t=94):e<5?t=5:e>95&&(t=95),t}},{key:"generateArrow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.location=e.location||"top",e.color=e.color||"#f04",e.color=e.color.replace("#","%23"),e.width=e.width||36,e.height=e.width/2,e.scale=e.width/16,e.rotate="0";var t=e.height,r=e.rotate,n=e.width;return"bottom"===e.location?r="180 8 4":"left"===e.location?(t=e.width,n=e.height,r="270 8 8"):"right"===e.location&&(t=e.width,n=e.height,r="90 4 4"),"data:image/svg+xml,%3Csvg%20width%3D%22"+n+"%22%20height%3D%22"+t+"%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpolygon%20points%3D%220%2C%200%208%2C%208%2016%2C0%22%20fill%3D%22"+e.color+"%22%20transform%3D%22scale%28"+e.scale+"%29%20rotate%28"+r+"%29%22%3E%3C%2Fpolygon%3E%3C%2Fsvg%3E"}},{key:"setStyles",value:function(e,t,r){var n=r.holePadding,o=r.step,i=r.xPos,a=r.yPos,l=!0===o.isFixed,s={arrow:{left:t.arrowPosition},buttons:{},header:{},main:{},footer:{},hole:{},tooltip:{position:l?"fixed":"absolute",top:Math.round(a),left:Math.round(i)}};return s.hole={top:Math.round(t.rect.top-(l?0:document.body.getBoundingClientRect().top)-n),left:Math.round(t.rect.left-n),width:Math.round(t.rect.width+2*n),height:Math.round(t.rect.height+2*n)},l&&(s.hole.position="fixed"),s.buttons={back:{},close:{},primary:{},skip:{}},e&&(e.backgroundColor&&(s.arrow.backgroundImage='url("'+this.generateArrow({location:t.positonBaseClass,color:e.backgroundColor})+'")',s.tooltip.backgroundColor=e.backgroundColor),e.borderRadius&&(s.tooltip.borderRadius=e.borderRadius),e.color&&(s.buttons.primary.color=e.color,s.buttons.close.color=e.color,s.buttons.skip.color=e.color,s.header.color=e.color,s.tooltip.color=e.color,e.mainColor&&e.mainColor===e.color&&(s.buttons.primary.color=e.backgroundColor)),e.mainColor&&(s.buttons.primary.backgroundColor=e.mainColor,s.buttons.back.color=e.mainColor,s.header.borderColor=e.mainColor),e.textAlign&&(s.tooltip.textAlign=e.textAlign),e.width&&(s.tooltip.width=e.width),e.header&&(s.header=nf({},s.header,e.header)),e.main&&(s.main=nf({},s.main,e.main)),e.footer&&(s.footer=nf({},s.footer,e.footer)),e.back&&(s.buttons.back=nf({},s.buttons.back,e.back)),e.arrow&&(s.arrow=nf({},s.arrow,e.arrow)),e.button&&(s.buttons.primary=nf({},s.buttons.primary,e.button)),e.close&&(s.buttons.close=nf({},s.buttons.close,e.close)),e.skip&&(s.buttons.skip=nf({},s.buttons.skip,e.skip)),e.hole&&(s.hole=nf({},e.hole,s.hole))),s}},{key:"setOpts",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.animate,r=e.offsetParentSelector,n=e.position,o=e.standalone,i=e.target,a=e.xPos,l=document.querySelector(Yp(r)),s=document.querySelector(".joyride-tooltip"),c={classes:["joyride-tooltip"],rect:Xp(i,l),positionClass:n};return c.positonBaseClass=c.positionClass.match(/-/)?c.positionClass.split("-")[0]:c.positionClass,(/^bottom$/.test(c.positionClass)||/^top$/.test(c.positionClass))&&a>-1&&(c.tooltip={width:450},s&&(c.tooltip=Xp(s,l)),c.targetMiddle=c.rect.left+c.rect.width/2,c.arrowPosition=((c.targetMiddle-a)/c.tooltip.width*100).toFixed(2),c.arrowPosition=this.getArrowPosition(c.arrowPosition)+"%"),o&&c.classes.push("joyride-tooltip--standalone"),c.positonBaseClass!==c.positionClass&&c.classes.push(c.positonBaseClass),c.classes.push(c.positionClass),t&&c.classes.push("joyride-tooltip--animate"),c}},{key:"render",value:function(){var e=this.props,t=e.buttons,r=e.disableOverlay,n=e.onClick,o=e.selector,i=e.showOverlay,a=e.step,l=e.target,s=e.type;if(l){var c=this.state,u=c.opts,f=c.styles,d={};if(a.title&&(d.header=p().createElement("div",{className:"joyride-tooltip__header",style:f.header},a.title)),t.skip&&(d.skip=p().createElement("button",{className:"joyride-tooltip__button joyride-tooltip__button--skip",style:f.buttons.skip,"data-type":"skip",onClick:n},t.skip)),a.text&&"string"!=typeof a.text?d.main=p().createElement("div",{className:"joyride-tooltip__main",style:f.main},a.text):d.main=p().createElement("div",{className:"joyride-tooltip__main",style:f.main,dangerouslySetInnerHTML:{__html:a.text||""}}),t.secondary&&(d.secondary=p().createElement("button",{className:"joyride-tooltip__button joyride-tooltip__button--secondary",style:f.buttons.back,"data-type":"back",onClick:n},t.secondary)),"hover"===a.event&&(f.buttons.close.opacity=0),d.tooltipComponent=p().createElement("div",{className:u.classes.join(" "),style:f.tooltip,"data-target":o},p().createElement("div",{className:"joyride-tooltip__triangle joyride-tooltip__triangle-"+u.positionClass,style:f.arrow}),p().createElement("button",{className:"joyride-tooltip__close"+(d.header?" joyride-tooltip__close--header":""),style:f.buttons.close,"data-type":"close",onClick:n}),d.header,d.main,p().createElement("div",{className:"joyride-tooltip__footer",style:f.footer},d.skip,d.secondary,p().createElement("button",{className:"joyride-tooltip__button joyride-tooltip__button--primary",style:f.buttons.primary,"data-type":-1!==["single","casual"].indexOf(s)?"close":"next",onClick:n},t.primary))),i&&(d.hole=p().createElement("div",{className:"joyride-hole "+Vp,style:f.hole,onClick:function(){}})),!i)return d.tooltipComponent;var m={cursor:r?"default":"pointer",height:document.body.clientHeight,pointerEvents:this.state.mouseOverHole?"none":"auto"};return p().createElement("div",{className:"joyride-overlay",style:m,"data-type":"close",onClick:r?void 0:n},d.hole,d.tooltipComponent)}}}]),t}(p().Component);af.propTypes={allowClicksThruHole:d().bool.isRequired,animate:d().bool.isRequired,buttons:d().object.isRequired,disableOverlay:d().bool,holePadding:d().number,offsetParentSelector:d().string,onClick:d().func.isRequired,onRender:d().func.isRequired,position:d().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","right","left"]).isRequired,selector:d().string.isRequired,showOverlay:d().bool.isRequired,standalone:d().bool,step:d().object.isRequired,target:d().object.isRequired,type:d().string.isRequired,xPos:d().oneOfType([d().number,d().string]).isRequired,yPos:d().oneOfType([d().number,d().string]).isRequired},af.defaultProps={buttons:{primary:"Close"},step:{},xPos:-1e3,yPos:-1e3};const lf=af;function sf(e){return sf="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},sf(e)}var cf="function"==typeof Symbol&&"symbol"===sf(Symbol.iterator)?function(e){return sf(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":sf(e)},uf=Object.assign||function(e){for(var t=1;t0||t.index>n)&&f&&!f.isFixed;o&&f&&this.calcPlacement(),i&&u&&m&&d>=0&&Wp().top(Gp(),this.getScrollTop()),p.length&&!i&&a&&!l&&this.start()}},{key:"componentWillUnmount",value:function(){var e=this;window.removeEventListener("resize",this.listeners.resize),this.listeners.keyboard&&document.body.removeEventListener("keydown",this.listeners.keyboard),Object.keys(this.listeners.tooltips).length&&Object.keys(this.listeners.tooltips).map((function(t){return{el:document.querySelector(t),event:e.listeners.tooltips[t].event,cb:e.listeners.tooltips[t].cb,key:t}})).filter((function(e){return!!e.el})).forEach((function(t){var r=t.el,n=t.event,o=t.cb,i=t.key;r.removeEventListener(n,o),delete e.listeners.tooltips[i]}))}},{key:"start",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.steps,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.state.index,n=Boolean(this.getStepTargetElement(t[r])),o=!0===e&&n;$p({type:"joyride:start",msg:["autorun:",!0===e],debug:this.props.debug}),this.setState({action:"start",index:r,isRunning:Boolean(t.length)&&n,shouldRenderTooltip:o,shouldRun:!t.length})}},{key:"stop",value:function(){$p({type:"joyride:stop",debug:this.props.debug}),this.setState({isRunning:!1,shouldRenderTooltip:!1})}},{key:"next",value:function(){var e=this.state,t=e.index,r=e.shouldRenderTooltip,n=this.props.steps,o=t+1,i=Boolean(n[o])&&r;$p({type:"joyride:next",msg:["new index:",o],debug:this.props.debug}),this.toggleTooltip({show:i,index:o,action:"next"})}},{key:"back",value:function(){var e=this.state,t=e.index,r=e.shouldRenderTooltip,n=this.props.steps,o=t-1,i=Boolean(n[o])&&r;$p({type:"joyride:back",msg:["new index:",o],debug:this.props.debug}),this.toggleTooltip({show:i,index:o,action:"next"})}},{key:"reset",value:function(e){var t=this.state,r=t.index,n=t.isRunning,o=!0===e,i=uf({},ff,{isRunning:o,shouldRenderTooltip:this.props.autoStart});$p({type:"joyride:reset",msg:["restart:",o],debug:this.props.debug}),o&&n===o&&0===r&&this.forceUpdate(),this.setState(i)}},{key:"getProgress",value:function(){var e=this.state.index,t=this.props.steps;return $p({type:"joyride:getProgress",msg:["steps:",t],debug:this.props.debug}),{index:e,percentageComplete:parseFloat((e/t.length*100).toFixed(2).replace(".00","")),step:t[e]}}},{key:"addTooltip",value:function(e){if(this.checkStepValidity(e)){$p({type:"joyride:addTooltip",msg:["data:",e],debug:this.props.debug});var t=e.trigger||Yp(e.selector),r=document.querySelector(t);r&&(r.setAttribute("data-tooltip",JSON.stringify(e)),"hover"===(e.event||"click")&&(this.listeners.tooltips[t+"mouseenter"]={event:"mouseenter",cb:this.handleClickStandaloneTrigger},this.listeners.tooltips[t+"mouseleave"]={event:"mouseleave",cb:this.handleClickStandaloneTrigger},r.addEventListener("mouseenter",this.listeners.tooltips[t+"mouseenter"].cb),r.addEventListener("mouseleave",this.listeners.tooltips[t+"mouseleave"].cb)),this.listeners.tooltips[t+"click"]={event:"click",cb:this.handleClickStandaloneTrigger},r.addEventListener("click",this.listeners.tooltips[t+"click"].cb))}else $p({type:"joyride:addTooltip:FAIL",msg:["data:",e],debug:this.props.debug})}},{key:"parseSteps",value:function(e){return console.warn("joyride.parseSteps() is deprecated. It is no longer necessary to parse steps before providing them to Joyride"),e}},{key:"checkStepValidity",value:function(e){var t=this;return!e||"object"!==(void 0===e?"undefined":cf(e))||Array.isArray(e)?($p({type:"joyride:checkStepValidity",msg:"Did not provide a step object.",warn:!0,debug:this.props.debug}),!1):["selector"].every((function(r){var n=Boolean(e[r]);return n||$p({type:"joyride:checkStepValidity",msg:["Provided a step without the required "+r+" property.","Step:",e],warn:!0,debug:t.props.debug}),n}))}},{key:"checkStepsValidity",value:function(e){return Array.isArray(e)||"object"!==(void 0===e?"undefined":cf(e))?e.length>0&&e.every(this.checkStepValidity):this.checkStepValidity(e)}},{key:"getStepTargetElement",value:function(e){return this.checkStepValidity(e)?document.querySelector(Yp(e.selector))||($p({type:"joyride:getStepTargetElement",msg:"Target not rendered. For best results only add steps after they are mounted.",warn:!0,debug:this.props.debug}),null):null}},{key:"getElementDimensions",value:function(){var e=this.state,t=e.shouldRenderTooltip,r=!!e.standaloneData||t,n=document.querySelector(r?".joyride-tooltip":".joyride-beacon"),o=0,i=0;if(n){var a=window.getComputedStyle(n);o=n.clientHeight+parseInt(a.marginTop||0,10)+parseInt(a.marginBottom||0,10),i=n.clientWidth+parseInt(a.marginLeft||0,10)+parseInt(a.marginRight||0,10)}return{height:o,width:i}}},{key:"getScrollTop",value:function(){var e=this.state,t=e.index,r=e.yPos,n=this.props,o=n.offsetParentSelector,i=n.scrollOffset,a=n.steps[t],l=this.getStepTargetElement(a),s=document.querySelector(Yp(o));if(!l)return 0;var c=Xp(l,s).top+(window.pageYOffset||document.documentElement.scrollTop),u=this.calcPosition(a),p=0;return/^top/.test(u)?p=Math.floor(r-i):/^bottom|^left|^right/.test(u)&&(p=Math.floor(c-i)),p}},{key:"triggerCallback",value:function(e){var t=this.props.callback;"function"==typeof t&&($p({type:"joyride:triggerCallback",msg:[e],debug:this.props.debug}),t(e))}},{key:"toggleTooltip",value:function(e){var t=e.show,r=e.index,n=void 0===r?this.state.index:r,o=e.action,i=e.steps,a=(void 0===i?this.props.steps:i)[n],l=Boolean(this.getStepTargetElement(a));this.setState({action:o,index:n,isRunning:!(!a||!l)&&this.state.isRunning,shouldRedraw:!t||!l,shouldRenderTooltip:t&&l,xPos:-1e3,yPos:-1e3})}},{key:"calcPlacement",value:function(){var e=this.state,t=e.index,r=e.isRunning,n=e.standaloneData,o=e.shouldRenderTooltip,i=this.props,a=i.offsetParentSelector,l=i.steps,s=i.tooltipOffset,c=n||l[t]||{},u=!!n||o,p=this.getStepTargetElement(c),f=document.querySelector(Yp(a));if($p({type:"joyride:calcPlacement"+this.getRenderStage(),msg:["step:",c],debug:this.props.debug}),p){var d={x:-1e3,y:-1e3};if(c&&(n||r&&l[t])){var m=qp().get(c,"style.beacon.offsetX")||0,y=qp().get(c,"style.beacon.offsetY")||0,h=this.calcPosition(c),b=Gp().getBoundingClientRect(),v=!0===c.isFixed?0:b.top,g=this.getElementDimensions(),w=Xp(p,f);/^left/.test(h)?d.x=w.left-(u?g.width+s:g.width/2+m):/^right/.test(h)?d.x=w.left+w.width-(u?-s:g.width/2-m):d.x=w.left+(w.width/2-g.width/2),/^top/.test(h)?d.y=w.top-v-(u?g.height+s:g.height/2+y):/^bottom/.test(h)?d.y=w.top-v+(w.height-(u?-s:g.height/2-y)):d.y=w.top-v,/^bottom|^top/.test(h)&&(/left/.test(h)?d.x=w.left-(u?s:g.width/2):/right/.test(h)&&(d.x=w.left+(w.width-(u?g.width-s:g.width/2)))),this.setState({shouldRedraw:!1,xPos:this.preventWindowOverflow(Math.ceil(d.x),"x",g.width,g.height),yPos:this.preventWindowOverflow(Math.ceil(d.y),"y",g.width,g.height)})}}}},{key:"calcPosition",value:function(e){var t=this.props,r=t.offsetParentSelector,n=t.tooltipOffset,o=Gp(),i=o.getBoundingClientRect(),a=Xp(this.getStepTargetElement(e),document.querySelector(Yp(r))),l=this.getElementDimensions(),s=l.height,c=l.width,u=void 0===c?290:c,p=e.position||"top";return/^left/.test(p)&&a.left-(u+n)<0?p="top":/^right/.test(p)&&a.left+a.width+(u+n)>i.width&&(p="bottom"),/^top/.test(p)&&(a.top+o.scrollTop-(s+n)<0||e.isFixed&&a.top-s<0)?p="bottom":/^bottom/.test(p)&&(a.top+o.scrollTop+(s+n)>Kp()||e.isFixed&&a.top+a.height+s>i.height)&&(p="top"),p}},{key:"getRenderStage",value:function(){var e=this.state,t=e.shouldRedraw,r=e.xPos;return t?":redraw":r<0?":pre-render":""}},{key:"preventWindowOverflow",value:function(e,t,r,n){var o=window.innerWidth,i=Kp(),a=e;return"x"===t?e+r>=o?a=o-r-15:e<15&&(a=15):"y"===t&&(e+n>=i?a=i-n-15:e<15&&(a=15)),a}},{key:"createComponent",value:function(){var e=this.state,t=e.index,r=e.shouldRedraw,n=e.shouldRenderTooltip,o=e.standaloneData,i=e.xPos,a=e.yPos,l=this.props,s=l.disableOverlay,c=l.holePadding,u=l.locale,f=l.offsetParentSelector,d=l.showBackButton,m=l.showOverlay,y=l.showSkipButton,h=l.showStepsProgress,b=l.steps,v=l.type,g=o||b[t],w=uf({},g),S=this.getStepTargetElement(w),O=void 0,x=w&&w.allowClicksThruHole||this.props.allowClicksThruHole,P=!o&&m,E={primary:u.close};if($p({type:"joyride:createComponent"+this.getRenderStage(),msg:["component:",n||o?"Tooltip":"Beacon","animate:",i>-1&&!r,"step:",w],debug:this.props.debug,warn:!S}),!S)return!1;if(n||o){var j=this.calcPosition(w);if(!o){if(-1!==["continuous","guided"].indexOf(v)){if(E.primary=u.last,b[t+1])if(h){var k=u.next;"string"==typeof u.next&&(k=p().createElement("span",null,u.next)),E.primary=p().createElement("span",null,k," ",p().createElement("span",null,t+1+"/"+b.length))}else E.primary=u.next;d&&t>0&&(E.secondary=u.back)}y&&(E.skip=u.skip)}O=p().createElement(lf,{allowClicksThruHole:x,animate:i>-1&&!r,buttons:E,disableOverlay:s,holePadding:c,offsetParentSelector:f,position:j,selector:Yp(w.selector),showOverlay:P,step:w,standalone:Boolean(o),target:S,type:v,xPos:i,yPos:a,onClick:this.handleClickTooltip,onRender:this.handleRenderTooltip})}else O=p().createElement(tf,{step:w,xPos:i,yPos:a,onTrigger:this.handleClickBeacon,eventType:w.type||"click"});return O}},{key:"render",value:function(){var e=this.state,t=e.index,r=e.isRunning,n=e.standaloneData,o=this.props.steps,i=Boolean(o[t]),a=void 0,l=void 0;return r&&i?$p({type:"joyride:render"+this.getRenderStage(),msg:["step:",o[t]],debug:this.props.debug}):!r&&n&&$p({type:"joyride:render",msg:["tooltip:",n],debug:this.props.debug}),n?l=this.createComponent():r&&i&&(a=this.createComponent()),p().createElement("div",{className:"joyride"},a,l)}}]),t}(p().Component);yf.propTypes={allowClicksThruHole:d().bool,autoStart:d().bool,callback:d().func,debug:d().bool,disableOverlay:d().bool,holePadding:d().number,keyboardNavigation:d().bool,locale:d().object,offsetParentSelector:d().string,resizeDebounce:d().bool,resizeDebounceDelay:d().number,run:d().bool,scrollOffset:d().number,scrollToFirstStep:d().bool,scrollToSteps:d().bool,showBackButton:d().bool,showOverlay:d().bool,showSkipButton:d().bool,showStepsProgress:d().bool,stepIndex:d().number,steps:d().array,tooltipOffset:d().number,type:d().string},yf.defaultProps={allowClicksThruHole:!1,autoStart:!1,debug:!1,disableOverlay:!1,holePadding:5,keyboardNavigation:!0,locale:{back:"Back",close:"Close",last:"Last",next:"Next",skip:"Skip"},offsetParentSelector:"body",resizeDebounce:!1,resizeDebounceDelay:200,run:!1,scrollOffset:20,scrollToFirstStep:!1,scrollToSteps:!0,showBackButton:!0,showOverlay:!0,showSkipButton:!1,showStepsProgress:!1,stepIndex:0,steps:[],tooltipOffset:15,type:"single"};const hf=yf;function bf(e){return bf="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},bf(e)}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length-1&&(t=0),this.setState({index:t,icon:e[t]})}},{key:"componentWillUnmount",value:function(){this._interval&&clearInterval(this._interval)}},{key:"render",value:function(){var e=this.state.icon;return React.createElement(Qf,{dimension:80},React.createElement("span",{className:"mdi mdi-"+e,style:{position:"absolute",top:14,left:14,fontSize:50}}))}}]),r}(u.Component),td=function(e){Kf(r,e);var t=$f(r);function r(){return Hf(this,r),t.apply(this,arguments)}return Uf(r,[{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){e.props.pydio.notify("tutorial-open-create-menu")}),950)}},{key:"render",value:function(){return React.createElement("div",null,React.createElement("p",null,this.props.message("create-menu")),React.createElement(ed,{icons:["file-plus","folder-plus"]}))}}]),r}(u.Component),rd=function(e){Kf(r,e);var t=$f(r);function r(){return Hf(this,r),t.apply(this,arguments)}return Uf(r,[{key:"componentDidMount",value:function(){var e=this;this._int=setInterval((function(){e.setState({closed:!(e.state&&e.state.closed)})}),1500)}},{key:"componentWillUnmount",value:function(){this._int&&clearInterval(this._int)}},{key:"render",value:function(){var e={width:28,transition:Zf.getBeziersTransition(),position:"relative"};this.state&&this.state.closed&&(e=Ff(Ff({},e),{},{width:18}));var t=this.props,r=t.message,n=t.customMessage;return React.createElement("div",null,React.createElement("p",null,n||r("infopanel.1")),React.createElement(Qf,{style:{fontSize:10,padding:25},dimension:140},React.createElement("div",{style:{boxShadow:"2px 2px 0px #CFD8DC",display:"flex"}},React.createElement("div",{style:{backgroundColor:"white",flex:3}},React.createElement("div",null,React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 1 "),React.createElement("div",{style:{backgroundColor:"#757575",color:"white"}},React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 2"),React.createElement("div",null,React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 3"),React.createElement("div",null,React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 4")),React.createElement("div",{style:e},React.createElement("div",{style:{position:"absolute",left:-2,bottom:0,top:0,width:3,backgroundColor:"#03a9f4"}}),React.createElement("div",{style:{backgroundColor:"#edf4f7",padding:4,height:"100%",fontSize:17}},React.createElement("span",{className:"mdi mdi-information-variant"}))))),React.createElement("p",null,this.props.message("infopanel.2")," (",React.createElement("span",{className:"mdi mdi-information",style:{fontSize:18,color:"#5c7784"}}),")."))}}]),r}(u.Component),nd=function(e){Kf(r,e);var t=$f(r);function r(){var e;Hf(this,r);for(var n=arguments.length,o=new Array(n),i=0;i3&&(t=0),this.setState({step:t})}},{key:"componentDidMount",value:function(){var e=this;this._int=setInterval((function(){e.next()}),1500)}},{key:"componentWillUnmount",value:function(){this._int&&clearInterval(this._int)}},{key:"render",value:function(){var e=this.state.step,t={display:"none",backgroundColor:"#03a9f4",fontSize:17,borderRadius:"50%",height:20,width:20,color:"white",margin:2,textAlign:"center"},r={width:28,transition:Zf.getBeziersTransition(),position:"relative",backgroundColor:"#edf4f7"},n=!0;return 1===e?r=Ff(Ff({},r),{},{width:18}):2===e?(r=Ff(Ff({},r),{},{width:28}),t.display="block",n=!1):3===e?(r=Ff(Ff({},r),{},{width:0}),n=!1):0===e&&(r=Ff(Ff({},r),{},{width:28})),React.createElement("div",null,React.createElement("p",null,this.props.message("left-resize.legend")),React.createElement(Qf,{style:{fontSize:10,padding:25},dimension:140},React.createElement("div",{style:{boxShadow:"-2px 2px 0px #CFD8DC",display:"flex"}},React.createElement("div",{style:r},React.createElement("div",{style:{position:"absolute",right:0,bottom:0,top:0,width:3,backgroundColor:n?"#03a9f4":"transparent"}}),React.createElement("div",{style:Ff({},t)},React.createElement("span",{className:"mdi mdi-chevron-double-left"}))),React.createElement("div",{style:{backgroundColor:"white",flex:3}},React.createElement("div",{style:{paddingLeft:2}},React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 1 "),React.createElement("div",{style:{backgroundColor:"#757575",color:"white",paddingLeft:2}},React.createElement("span",{className:"mdi mdi-folder"})," ",this.props.message("infopanel.folder")," 2"),React.createElement("div",{style:{paddingLeft:2}},React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 3"),React.createElement("div",{style:{paddingLeft:2}},React.createElement("span",{className:"mdi mdi-file"})," ",this.props.message("infopanel.file")," 4")))))}}]),r}(u.Component),od=function(e){Kf(r,e);var t=$f(r);function r(){return Hf(this,r),t.apply(this,arguments)}return Uf(r,[{key:"render",value:function(){var e={display:"inline-block",textAlign:"center",fontSize:17,lineHeight:"20px",backgroundColor:"#ECEFF1",color:"#607D8B",borderRadius:"50%",padding:"5px 6px",width:30,height:30,marginRight:5};return React.createElement("div",null,React.createElement("p",null,React.createElement("span",{className:"mdi mdi-book-open-variant",style:e})," ",this.props.message("uwidget.addressbook")),React.createElement(E.Divider,null),React.createElement("p",null,React.createElement("span",{className:"mdi mdi-bell-outline",style:e})," ",this.props.message("uwidget.alerts")),React.createElement(E.Divider,null),React.createElement("p",null,React.createElement("span",{className:"mdi mdi-dots-vertical",style:e})," ",this.props.message("uwidget.menu")),React.createElement(E.Divider,null),React.createElement("p",null,React.createElement("span",{className:"mdi mdi-home-variant",style:e})," ",this.props.message("uwidget.home")))}}]),r}(u.Component),id=function(e){Kf(r,e);var t=$f(r);function r(e,n){var o;return Hf(this,r),(o=t.call(this,e,n)).state={started:!(e.pydio.user&&!e.pydio.user.getPreference("gui_preferences",!0)["UserAccount.WelcomeModal.Shown"])},o}return Uf(r,[{key:"discard",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props.pydio.user,r=t.getPreference("gui_preferences",!0);r["UserAccount.WelcomeModal.Shown"]=!0,e&&(r["WelcomeComponent.Pydio8.TourGuide.FSTemplate"]=!0,r["WelcomeComponent.MUITour"]=!0),t.setPreference("gui_preferences",r,!0),t.savePreference("gui_preferences")}},{key:"componentDidMount",value:function(){var e=this;this.state.started||pydio.UI.openComponentInModal("UserAccount","WelcomeModal",{onRequestStart:function(t){t?e.discard(!0):(e.discard(),e.setState({started:!0,skip:t}))}})}},{key:"render",value:function(){var e=this;if(!this.state.started||this.state.skip)return null;var t=this.props,r=t.getMessage,n=t.pydio,o=t.muiTheme,i=function(e){return r("ajax_gui.tour."+e)},a=n.user&&n.user.getPreference("gui_preferences",!0)||{},l=[],s=n.Controller,c=n.user,u=s.getActionByName("mkdir")||{},p=s.getActionByName("upload")||{};return"mui3"!==o.userTheme||a["WelcomeComponent.MUITour"]||l.push({title:i("theme.title"),text:React.createElement(Af,{message:i}),selector:".mdi.mdi-theme-light-dark",position:"right-end"}),!c||!c.activeRepository||u.deny&&p.deny||l.push({title:i("create-menu.title"),text:React.createElement(td,{message:i,pydio:this.props.pydio}),selector:"#create-button-menu",position:"left",style:{width:220}}),document.getElementById("display-toolbar")&&l.push({title:i("display-bar.title"),text:React.createElement("div",null,React.createElement("p",null,i("display-bar")),React.createElement(ed,{icons:["view-list","view-grid","view-carousel","sort-ascending","sort-descending"]})),selector:"#display-toolbar",position:"left"}),document.getElementById("info_panel")&&l.push({title:i("infopanel.title"),text:React.createElement(rd,{message:i}),selector:"#info_panel",position:"left"}),l.push({title:i("uwidget.title"),text:React.createElement(od,{message:i}),selector:".user-widget",position:"right",style:{width:320}}),React.createElement(xf,{ref:"joyride",steps:l,run:!0,autoStart:!0,debug:!1,callback:function(t){("step:after"===t.type&&t.index===l.length-1||"skip"===t.action)&&e.discard(!0)},type:"continuous",showSkipButton:!0})}}]),r}(u.Component);function ad(e){return ad="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},ad(e)}function ld(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sd(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]&&arguments[1];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.setState({loading:!0}),new Gd.UserMetaServiceApi(dc().getRestClient()).userBookmarks(new Gd.RestUserBookmarksRequest).then((function(r){var n=r.Nodes||[];n.sort((function(e,t){return"LEAF"===e.Type?1:"LEAF"===t.Type?-1:0})),t&&(sm=n),e.setState({bookmarks:n,loading:!1})})).catch((function(t){e.setState({loading:!1})}))}},{key:"handleTouchTap",value:function(e){e.preventDefault(),this.load(),this.setState({open:!0,anchorEl:e.currentTarget})}},{key:"handleRequestClose",value:function(){this.setState({open:!1})}},{key:"entryClicked",value:function(e){var t=this.props,r=t.pydio,n=t.onRequestClose;this.handleRequestClose(),r.goTo(e),n&&n()}},{key:"removeBookmark",value:function(e){var t=this,r=e.getMetadata().get("uuid"),n=new Gd.UserMetaServiceApi(dc().getRestClient()),o=new Gd.IdmSearchUserMetaRequest;o.NodeUuids=[r],o.Namespace="bookmark";var i=new Gd.IdmUpdateUserMetaRequest;return n.searchUserMeta(o).then((function(e){e.Metadatas&&e.Metadatas.length&&(i.Operation=Gd.UpdateUserMetaRequestUserMetaOp.constructFromObject("DELETE"),i.MetaDatas=e.Metadatas,n.updateUserMeta(i).then((function(){t.load(!0)})))}))}},{key:"bmToNodes",value:function(e){return e.AppearsIn.map((function(t){var r=Xd({},e);r.Path=t.WsSlug+"/"+t.Path;var n=Kd().parseTreeNode(r,t.WsSlug);return n.getMetadata().set("repository_id",t.WsUuid),n.getMetadata().set("WsLabel",t.WsLabel),n}))}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.pydio,o=r.muiTheme,i=r.iconStyle,a=r.asPopover,l=void 0===a||a,s=this.state,c=s.loading,f=s.open,d=s.anchorEl,m=s.bookmarks;if(!n.user.activeRepository)return null;m&&(e=m.map((function(e){var r=t.bmToNodes(e);return p().createElement(ym,{muiTheme:o,key:r[0].getPath(),pydio:n,nodes:r,onClick:t.entryClicked.bind(t),onRemove:t.removeBookmark.bind(t)})})));var y={borderRadius:"50%"};if(f&&i&&i.color){var h=k()(i.color);y=Xd(Xd({},y),{},{backgroundColor:h.fade(.9).toString()})}var b={overflowY:"auto",overflowX:"hidden",padding:0,flex:1};l&&(b=Xd(Xd({},b),{},{maxHeight:330,minHeight:195}));var v=p().createElement(u.Fragment,null,c&&p().createElement(u.Fragment,null,p().createElement(ym,{placeHolder:!0}),p().createElement(ym,{placeHolder:!0}),p().createElement(ym,{placeHolder:!0})),!c&&e&&e.length>0&&p().createElement("div",{style:b},e),!c&&(!e||!e.length)&&p().createElement(um,{pydio:n,iconClassName:"mdi mdi-star-outline",primaryTextId:"145",secondaryTextId:"482",style:{minHeight:200,backgroundColor:"transparent"}}),p().createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n.bmListEntry{\n transition: background-color 250ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;\n}\n.bmListEntry:hover{\n background-color:var(--md-sys-color-outline-variant-50);\n}\n.bmListEntryWs:hover{\n text-decoration:underline;\n}\n"}}));return l?p().createElement("span",null,p().createElement(E.IconButton,{onClick:this.handleTouchTap.bind(this),iconClassName:"userActionIcon mdi mdi-star",tooltip:n.MessageHash[147],tooltipPosition:"bottom-left",className:"userActionButton",iconStyle:i,style:y}),p().createElement(cm,{open:f,anchorEl:d,anchorOrigin:{horizontal:"left",vertical:"top"},targetOrigin:{horizontal:"left",vertical:"top"},onRequestClose:this.handleRequestClose.bind(this),style:{width:320},zDepth:3,panelTitle:n.MessageHash[147],panelIconClassName:"mdi mdi-star"},v)):v}}]),r}(p().Component);function bm(e){return bm="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},bm(e)}function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"new_share";(arguments.length>1?arguments[1]:void 0).stopPropagation(),e.wrapper=document.body.appendChild(document.createElement("div")),e.wrapper.style.zIndex=11;var r={"%%OWNER%%":e.props.workspace.getOwner()};x().render(p().createElement(vy,Zm({},e.props,{mode:t,replacements:r,onAccept:"new_share"===t?e.handleAccept.bind(iy(e)):e.handleDecline.bind(iy(e)),onDecline:"new_share"===t?e.handleDecline.bind(iy(e)):e.handleCloseAlert.bind(iy(e)),onDismiss:e.handleCloseAlert})),e.wrapper)})),ly(iy(e),"handleCloseAlert",(function(){x().unmountComponentAtNode(e.wrapper),e.wrapper.remove()})),ly(iy(e),"toggleFoldersPanelOpen",(function(t){t.stopPropagation(),e.setState({openFoldersTree:!e.state.openFoldersTree})})),ly(iy(e),"getRootItemStyle",(function(t,r){var n=e.props,o=n.styler,i=n.showFoldersTree;if(!o)return{};var a=e.state.openFoldersTree,l=t&&r&&(r.isRoot()||i&&!a),s=o.rootItemStyle;return l?Jm(Jm({},s.default),s.context):s.default})),ly(iy(e),"getItemStyle",(function(t){var r=e.props,n=r.pydio,o=r.styler.treeItemStyle;return n.getContextHolder().getContextNode()===t?Jm(Jm({},o.default),o.context):-1!==n.getContextHolder().getSelectedNodes().indexOf(t)?Jm(Jm({},o.default),o.selected):o.default})),ly(iy(e),"workspacePopoverNode",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return t?Promise.resolve(t):Kd().loadRoots([e.getSlug()]).then((function(t){if(t&&t[e.getSlug()])return t[e.getSlug()];var r=new(zm())("/",!1,e.getLabel());return r.setRoot(!0),r.getMetadata().set("repository_id",e.getId()),r.getMetadata().set("workspaceEntry",e),r}))})),ly(iy(e),"workspacePopover",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=e.props,o=n.pydio,i=n.workspace;t.stopPropagation();var a=t.target,l=a.getBoundingClientRect().top,s=Ll().getViewportHeight()-l<250;e.workspacePopoverNode(i,r).then((function(t){if(i.getOwner())g().loadClassesAndApply(["ShareDialog"],(function(){var r=p().createElement(ShareDialog.CellCard,{pydio:o,cellId:i.getId(),onDismiss:function(){e.setState({popoverOpen:!1})},onHeightChange:function(){e.setState({popoverHeight:500})},editorOneColumn:!0,rootNode:t});e.setState({popoverAnchor:a,popoverOpen:!0,popoverContent:r,popoverTop:s,popoverHeight:null})}));else{var r=p().createElement($m,{pydio:o,workspace:i,rootNode:t,onDismiss:function(){e.setState({popoverOpen:!1})}});e.setState({popoverAnchor:a,popoverOpen:!0,popoverContent:r,popoverTop:s,popoverHeight:null})}}))})),e}return ty(r,[{key:"componentDidMount",value:function(){this.props.showFoldersTree&&(this._monitorFolder=function(){this.setState({currentContextNode:this.props.pydio.getContextHolder().getContextNode()})}.bind(this),this.props.pydio.getContextHolder().observe("context_changed",this._monitorFolder))}},{key:"componentWillUnmount",value:function(){this._monitorFolder&&this.props.pydio.getContextHolder().stopObserving("context_changed",this._monitorFolder)}},{key:"onClick",value:function(){var e=this,t=this.props,r=t.workspace,n=t.pydio,o=t.showFoldersTree,i=t.searchView,a=t.values,l=t.setValues;if(t.searchLoading,i){var s=r.getSlug();"all"!==s&&"previous_context"!==s&&(s+="/"),l(Jm(Jm({},a),{},{scope:s}))}else r.getId()===n.user.activeRepository&&o?n.goTo("/"):(n.observeOnce("repository_list_refreshed",(function(){e.setState({loading:!1})})),this.setState({loading:!0}),n.triggerRepositoryChange(r.getId()))}},{key:"onContextMenu",value:function(e,t){e.preventDefault(),e.stopPropagation(),this.workspacePopover(e,t)}},{key:"render",value:function(){var e,t,r=this,n=this.props,o=n.workspace,i=n.pydio,a=n.onHoverLink,l=n.onOutLink,s=n.showFoldersTree,c=n.searchView,u=n.values,f=n.showOwner;c?"all"===o.getSlug()||"previous_context"===o.getSlug()?(e=u.scope===o.getSlug(),t=!0):e=u.scope&&0===u.scope.indexOf(o.getSlug()+"/"):e=i.user.getActiveRepository()===o.getId();var d,m,y,h,b="workspace-entry";e&&(b+=" workspace-current");var v,g=i.user.getGUIPreference("MaskedWorkspaces")||[];g.indexOf&&g.indexOf(o.getId())>-1&&(v=!0,b+=" workspace-masked");var w,S,O=this.getRootItemStyle(e,i.getContextHolder().getContextNode());b+=" workspace-access-"+o.getAccessType(),a&&(d=function(e){a(e,o)}.bind(this)),l&&(m=function(e){l(e,o)}.bind(this));var x,P,j="mdi mdi-folder",k={fontSize:20,marginRight:10,opacity:.53};if(c)j=t?"mdi mdi-folder-multiple":"mdi mdi-folder",e||(j+="-outline");else if("workspace-personal"===o.getRepositoryType())j="mdi mdi-folder-account";else if("cell"===o.getRepositoryType()&&(j="icomoon-cells",k=Jm(Jm({},k),{},{fontSize:22}),f&&o.userIsOwner())){var C={position:"absolute",left:30,top:16,fontSize:11,opacity:e?.53:.33};S=p().createElement("span",{className:"mdi mdi-account",style:C})}if(e&&!c){if(x=i.getContextHolder().getRootNode(),s){x.isLoading()&&x.observeOnce("loaded",(function(){r.forceUpdate()}));var T=x.getChildren(),R=!1;if(T.forEach((function(e){e.isLeaf()||(R=!0)})),R){var _=this.state.openFoldersTree?"mdi mdi-chevron-down":"mdi mdi-chevron-right";h=p().createElement("span",{style:{opacity:.3},className:"workspace-additional-action "+_,onClick:this.toggleFoldersPanelOpen})}}k.opacity=1,P=x}else(x=new(zm())("/",!1,o.getLabel())).setRoot(!0),x.getMetadata().set("repository_id",o.getId()),x.getMetadata().set("workspaceEntry",o);var M=this.state,I=M.popoverOpen,A=M.popoverAnchor,D=M.popoverTop,N=M.popoverHeight;if(M.loading)y=p().createElement(E.CircularProgress,{size:20,thickness:2,style:{marginTop:2,marginRight:6,opacity:.5}});else if(!c){var L=I?{opacity:1}:{};I&&(O=Jm(Jm({},O),{},{backgroundColor:"rgba(133, 133, 133, 0.1)"}));var z="mdi-dots-vertical",B="",F=function(e){return r.workspacePopover(e,P)};v&&(z="mdi-playlist-check",B="Unmask "+o.getLabel(),F=function(e){i.user.setGUIPreference("MaskedWorkspaces",g.filter((function(e){return e!==o.getId()})),!0)}),y=p().createElement("span",{title:B,className:"workspace-additional-action with-hover mdi "+z,onClick:F,style:L})}c||!o.getOwner()||i.getPluginConfigs("action.advanced_settings").get("GLOBAL_DISABLE_CHATS")||(w=p().createElement(fy,{pydio:i,roomType:"WORKSPACE",objectId:o.getId()}));var W=o.getLabel(),H=o.getLabel();if(o.getDescription()&&(W+=" - "+o.getDescription()),c){var q=0,U=i.getContextHolder().getSearchNode().getChildren();"all"===o.getSlug()?q=U.size:U.forEach((function(e){e.getMetadata().get("repository_id")!==o.getId()&&"previous_context"!==o.getSlug()||q++}));var V="all"===u.scope;q&&(V||e)&&(H+=" ("+q+")")}var K=p().createElement("span",{className:j,style:k}),G=p().createElement(wy,{node:x,className:b,onClick:this.onClick.bind(this),onMouseOver:d,onMouseOut:m,onContextMenu:function(e){return r.onContextMenu(e,P)},style:O},K,S,p().createElement("span",{className:"workspace-label",title:W},H),w,h,p().createElement("span",{style:{flex:1}}),y,p().createElement(dy,{open:I,anchorEl:A,useLayerForClickAway:!0,autoCloseWhenOffScreen:!1,canAutoPosition:!0,onRequestClose:function(){r.setState({popoverOpen:!1})},anchorOrigin:{horizontal:"right",vertical:D?"bottom":"center"},targetOrigin:{horizontal:"left",vertical:D?"bottom":"center"},zDepth:3,style:{overflow:"hidden",height:N}},p().createElement(E.Menu,{style:{maxWidth:400},listStyle:{paddingBottom:0,paddingTop:0}},this.state.popoverContent)));return s?p().createElement("div",null,G,p().createElement(uy,{pydio:i,dataModel:i.getContextHolder(),className:this.state.openFoldersTree?"open":"closed",draggable:!0,getItemStyle:this.getItemStyle,paddingOffset:-15,offsetSize:15})):G}}]),r}(p().Component);ly(gy,"propTypes",{pydio:d().instanceOf(t()).isRequired,workspace:d().instanceOf(Repository).isRequired,showFoldersTree:d().bool,onHoverLink:d().func,onOutLink:d().func});var wy=function(e){var t=e.canDrop,r=e.isOver,n=e.connectDropTarget,o=e.className||"";return t&&r&&(o+=" droppable-active"),p().createElement("div",Zm({},e,{className:o,ref:function(e){var t=x().findDOMNode(e);"function"==typeof n&&n(t)}}))};wy=(0,Nm.DropTarget)(my.NODE_PROVIDER,hy,yy)(wy),gy=(0,P.muiThemeable)()(gy);var Sy=r(17367),Oy=r.n(Sy);function xy(e){return xy="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},xy(e)}function Py(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ey(e,t){for(var r=0;r0}},{key:"render",value:function(){var e=this,t=this.props,r=t.pydio,n=t.facets,o=t.onToggleFacet,i=t.activeFacets,a=void 0===i?[]:i,l=t.zDepth,s=void 0===l?1:l,c=t.styles,u=void 0===c?{}:c,f=t.emptyStateView,d=function(e){return r.MessageHash["user_home."+e]||e},m={},y={NodeType:"type",Extension:"extension",Size:"size",ModifTime:"modified",Basename:"found",Meta:"metadata"},h=a.filter((function(e){return"TextContent"===e.FieldName})).length>0;n.forEach((function(e){var t=e.FieldName;0===t.indexOf("Meta.")&&(t="Meta"),"Basename"===t&&h||("TextContent"===t&&(t="Basename"),m[t]||(m[t]=[]),m[t].push(e))}));var b=!0;return Object.keys(y).filter((function(e){return m[e]})).filter((function(t){return m[t].filter((function(t){return e.isSelected(a,t)})).length>0||m[t].length>1})).length||(b=!1),p().createElement(E.Paper,{zDepth:s,style:u.container},!b&&f,b&&p().createElement("div",{style:u.header},d("search.facets.title")),b&&Object.keys(y).filter((function(e){return m[e]})).filter((function(t){return m[t].filter((function(t){return e.isSelected(a,t)})).length>0||m[t].length>1})).map((function(t){return p().createElement("div",null,p().createElement("div",{style:u.subHeader},d("search.facet."+y[t])),p().createElement("div",{style:{zoom:1}},m[t].sort((function(e,t){return e.Label.localeCompare(t.Label)})).map((function(t){return p().createElement(_y,{key:t.Label,m:d,facet:t,selected:e.isSelected(a,t),onSelect:o})}))))})))}}]),r}(p().Component);const Iy=My;function Ay(e){return Ay="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},Ay(e)}function Dy(e){return function(e){if(Array.isArray(e))return Ny(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 Ny(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ny(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 Ny(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1&&(r=Math.floor(o/t)+1)}for(var i=Math.ceil(e.length/t),a=(r-1)*t,l=Math.min(r*t,e.length),s=[],c=1;c<=i;c++)s.push(c);return{use:!0,sliceStart:a,sliceEnd:l,total:e.length,pages:s,page:r,pageSize:t}}},{key:"renderPagination",value:function(e){var t=this,r=this.props.titleStyle,n=e.page,o=e.pages,i=e.sliceStart,a=e.sliceEnd,l=e.total,s={style:{width:36,height:36,padding:6},iconStyle:{color:r.color}};return p().createElement("div",{style:{display:"flex",backgroundColor:"rgba(0, 0, 0, 0.03)",color:r.color,alignItems:"center",justifyContent:"center",fontWeight:400}},p().createElement(E.IconButton,Fy({iconClassName:"mdi mdi-chevron-left",disabled:1===n,onClick:function(){return t.setState({page:n-1})}},s)),p().createElement("div",null,i+1,"-",a," of ",l),p().createElement(E.IconButton,Fy({iconClassName:"mdi mdi-chevron-right",disabled:n===o.length,onClick:function(){return t.setState({page:n+1})}},s)))}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.title,o=r.entries,i=void 0===o?[]:o,a=r.filterHint,l=r.workspaceEntryStyler,s=r.titleStyle,c=r.pydio,u=r.createAction,f=r.createActionEntry,d=r.activeWorkspace,m=r.palette,y=r.buttonStyles,h=r.emptyState,b=r.className,v=r.showOwner,g=r.searchView,w=r.values,S=r.setValues,O=r.searchLoading,x=r.listSettings,P=this.state,j=P.toggleFilter,k=P.filterValue,C=i.filter((function(e){return function(e,t,r){return!e||!t||r.getLabel().toLowerCase().indexOf(t.toLowerCase())>=0}(j,k,e)})),T=this.computePagination(C);return T.use&&(C=C.slice(T.sliceStart,T.sliceEnd)),j&&k&&1===C.length&&C[0].getId()!==d&&(e=C[0]),p().createElement("div",{className:b},!j&&p().createElement("div",{key:"shared-title",className:"section-title",style:s},p().createElement("span",{style:{cursor:"pointer"},title:a,onClick:function(){t.setState({toggleFilter:!0})}},n,i.length>0&&p().createElement("span",{style:{fontSize:12,opacity:"0.4",marginLeft:3},className:"mdi mdi-filter"})),x,u),j&&p().createElement("div",{key:"shared-title",className:"section-title filter-active",style:zy(zy({},s),{},{paddingLeft:12,paddingRight:8,textTransform:"none",transition:"none"})},p().createElement(Jy,{focusOnMount:!0,fullWidth:!0,style:{marginTop:-16,marginBottom:-16,top:-1},hintText:a,hintStyle:{fontWeight:400},inputStyle:{fontWeight:400,color:m.primary1Color,backgroundColor:"rgba(0,0,0,.03)"},value:k,onChange:function(e,r){t.setState({filterValue:r})},onBlur:function(){setTimeout((function(){k||t.setState({toggleFilter:!1})}),150)},onKeyPress:function(r){if("Enter"===r.key&&e){if(g){var n=e.getSlug();"all"!==n&&"previous_context"!==n&&(n+="/"),S(zy(zy({},w),{},{scope:n}))}else c.triggerRepositoryChange(e.getId());t.setState({filterValue:"",toggleFilter:!1})}}}),e&&p().createElement("div",{style:zy(zy({},y.button),{},{right:28,lineHeight:"24px",fontSize:20,opacity:.5})},p().createElement("span",{className:"mdi mdi-keyboard-return"})),p().createElement(E.IconButton,{key:"close-filter",iconClassName:"mdi mdi-close",style:y.button,iconStyle:y.icon,onClick:function(){t.setState({toggleFilter:!1,filterValue:""})}})),p().createElement("div",{className:"workspaces"},C.map((function(e){return p().createElement(gy,{pydio:c,key:e.getId(),workspace:e,showOwner:v,showFoldersTree:d&&d===e.getId(),searchView:g,values:w,setValues:S,searchLoading:O,styler:l})})),!i.length&&h,(i.length>0||!h)&&f,T.use&&this.renderPagination(T)))}}]),r}(p().Component),th=function(e){Vy(r,e);var t=Gy(r);function r(e,n){var o;return Wy(this,r),(o=t.call(this,e,n)).state=o.stateFromPydio(e.pydio),o._reloadObserver=function(){o.setState(o.stateFromPydio(o.props.pydio))},o}return qy(r,[{key:"shouldComponentUpdate",value:function(e,t){return t.random!==this.state.random||t.popoverOpen!==this.state.popoverOpen||e.searchView!==this.props.searchView||e.values!==this.props.values||e.facets!==this.props.facets||e.activeFacets!==this.props.activeFacets}},{key:"stateFromPydio",value:function(e){var t,r,n=e.user?e.user.getRepositoriesList():new Map,o=!1,i={},a=!1;return e.user&&((i=e.user.getGUIPreferences()).MaskedWorkspaces&&i.MaskedWorkspaces.length&&(t=i.MaskedWorkspaces,r=i["LeftPanel.MaskedWorkspaces.Show"]||!1),o=i["LeftPanel.OwnedCellsFirst"],a=i["LeftPanel.MergeWorkspaces"]||e.getPluginConfigs("core.pydio").get("MERGE_WORKSPACES_AND_CELLS")),{random:Math.random(),merge:a,workspaces:n,hiddenWorkspaces:t,hiddenWsStatus:r,cellsSortingMixed:o,userPrefs:i,activeWorkspace:!!e.user&&e.user.activeRepository,activeRepoIsHome:e.user&&"homepage"===e.user.activeRepository}}},{key:"togglePref",value:function(e){var t=this.props.pydio,r=this.state.userPrefs;switch(e){case"mask":var n=this.state.hiddenWsStatus;r["LeftPanel.MaskedWorkspaces.Show"]=!n;break;case"owned":var o=this.state.cellsSortingMixed;r["LeftPanel.OwnedCellsFirst"]=!o;break;case"merge":var i=this.state.merge;r["LeftPanel.MergeWorkspaces"]=!i}t.user.setGUIPreferences(r,!0)}},{key:"componentDidMount",value:function(){this.props.pydio.observe("repository_list_refreshed",this._reloadObserver)}},{key:"componentWillUnmount",value:function(){this.props.pydio.stopObserving("repository_list_refreshed",this._reloadObserver)}},{key:"createRepositoryEnabled",value:function(){return this.props.pydio.getPluginConfigs("auth").get("USER_CREATE_CELLS")}},{key:"render",value:function(){var e,t,r=this,n=this.state,o=n.workspaces,i=n.hiddenWorkspaces,a=n.hiddenWsStatus,l=n.activeWorkspace,s=n.popoverOpen,c=n.popoverAnchor,u=n.popoverContent,f=n.merge,d=n.cellsSortingMixed,m=this.props,y=m.pydio,h=m.className,b=m.muiTheme,v=m.sectionTitleStyle,w=m.workspaceEntryStyler,S=m.searchView,O=m.values,x=m.setValues,P=m.searchLoading,j=m.facets,C=m.activeFacets,T=m.toggleFacet,R=[];o.forEach((function(e){return R.push(e)})),i&&!a&&(R=R.filter((function(e){return-1===i.indexOf(e.getId())||l===e.getId()||S&&O.scope&&0===O.scope.indexOf(e.getSlug()+"/")}))),(R=R.filter((function(e){return!Oy().isInternal(e.getId())}))).sort((function(e,t){if("workspace-personal"===e.getRepositoryType())return-1;if("workspace-personal"===t.getRepositoryType())return 1;if(!d){if(e.userIsOwner()&&!t.userIsOwner())return-1;if(t.userIsOwner()&&!e.userIsOwner())return 1}var r=e.getLabel().localeCompare(t.getLabel(),void 0,{numeric:!0});return 0===r?e.getSlug().localeCompare(t.getSlug()):r}));var _=R.filter((function(e){return!e.getOwner()})),M=R.filter((function(e){return e.getOwner()})),I=y.MessageHash,A=function(e){var t=this,r=e.target;g().loadClassesAndApply(["ShareDialog"],(function(){t.setState({popoverOpen:!0,popoverAnchor:r,popoverContent:p().createElement(ShareDialog.CreateCellDialog,{pydio:y,onDismiss:function(){t.setState({popoverOpen:!1})}})})}))}.bind(this),D={button:{width:36,height:36,padding:6,position:"absolute",right:8,top:8},icon:{fontSize:22,color:b.palette.primary1Color}};this.createRepositoryEnabled()&&(M.length||f&&(M.length||_.length))&&(f?t=p().createElement("div",{onClick:A,className:"workspace-entry",style:zy(zy({},w.rootItemStyle.default),{},{color:"var(--md-sys-color-primary)"})},p().createElement("span",{className:"icomoon-cells-full-plus",style:{fontSize:24,marginRight:13,marginLeft:-4,opacity:.53}}),p().createElement("div",null,I[417])):e=p().createElement(E.IconButton,{key:"create-cell",style:D.button,iconStyle:D.icon,iconClassName:"mdi mdi-plus",tooltip:I[417],tooltipPosition:f?"bottom-left":"top-left",onClick:A}));var N=["user-workspaces-list"];h&&N.push(h);var L={pydio:y,palette:b.palette,buttonStyles:D,activeWorkspace:l,workspaceEntryStyler:w};if(S){var z=[],B=new(Oy())("previous_context");B.setSlug("previous_context"),B.setLabel(I[170]),z.push(B);var F=new(Oy())("all");return F.setSlug("all"),F.setLabel(I[610]),z.push(F),p().createElement("div",{className:N.join(" ")},p().createElement(eh,Fy({},L,{title:I["searchengine.scope.title"],entries:[].concat(z,Dy(_),Dy(M)),filterHint:I["ws.quick-filter"],titleStyle:zy(zy({},v),{},{marginTop:5,position:"relative",overflow:"visible",transition:"none"}),searchView:S,values:O,setValues:x,searchLoading:P})),p().createElement(Iy,{pydio:y,facets:j,activeFacets:C,onToggleFacet:T,values:O,dataModel:y.getContextHolder(),zDepth:0,styles:{container:{color:"inherit",backgroundColor:"transparent",padding:"0 16px 16px"},header:{display:"none"},subHeader:{color:k()(b.palette.primary1Color).darken(.1).alpha(.5).toString(),fontWeight:500,textTransform:"uppercase",padding:"12px 0"}}}))}var W={textAlign:"center",background:b.palette.mui3["surface-5"],color:b.palette.mui3.outline,margin:"0px 16px",borderRadius:b.borderRadius,padding:"16px 0px 10px"},H=!f&&_.length>0,q={fontSize:20,top:1},U={fontSize:16,top:1},V=p().createElement(E.IconMenu,{iconButtonElement:p().createElement(E.IconButton,{iconClassName:"mdi mdi-settings",iconStyle:{fontSize:12,opacity:.4,color:"inherit"},style:{padding:0,height:18,width:18}}),desktop:!0},p().createElement(E.Subheader,{style:{marginTop:-10}},I["ajax_gui.wslist-options.title"]),p().createElement(E.MenuItem,{leftIcon:p().createElement(E.FontIcon,{className:"mdi mdi-playlist-plus",style:q}),primaryText:I["ajax_gui.wslist-options.show-masked"],onClick:function(){return r.togglePref("mask")},rightIcon:p().createElement(E.FontIcon,{className:"mdi mdi-toggle-switch"+(a?"":"-off"),style:U})}),p().createElement(E.MenuItem,{leftIcon:p().createElement(E.FontIcon,{className:"mdi mdi-call-merge",style:zy(zy({},q),{},{transform:"rotate(90deg)",top:5})}),primaryText:I["ajax_gui.wslist-options.merge-workspaces"],onClick:function(){return r.togglePref("merge")},rightIcon:p().createElement(E.FontIcon,{className:"mdi mdi-toggle-switch"+(f?"":"-off"),style:U})}),p().createElement(E.MenuItem,{leftIcon:p().createElement(E.FontIcon,{className:"mdi mdi-account-star",style:q}),primaryText:I["ajax_gui.wslist-options.own-cells-first"],onClick:function(){return r.togglePref("owned")},rightIcon:p().createElement(E.FontIcon,{className:"mdi mdi-toggle-switch"+(d?"-off":""),style:U})}));return p().createElement("div",{className:N.join(" ")},p().createElement(Qy,{open:s,anchorEl:c,useLayerForClickAway:!0,onRequestClose:function(){r.setState({popoverOpen:!1})},anchorOrigin:M.length?{horizontal:"left",vertical:"top"}:{horizontal:"left",vertical:"bottom"},targetOrigin:M.length?{horizontal:"left",vertical:"top"}:{horizontal:"left",vertical:"bottom"},zDepth:3,style:{overflow:"hidden",marginLeft:M.length?-10:0,marginTop:M.length?-10:0}},u),H&&p().createElement(eh,Fy({},L,{title:I[468],entries:_,listSettings:V,showOwner:!d,filterHint:I["ws.quick-filter"],titleStyle:zy(zy({},v),{},{marginTop:5,position:"relative",overflow:"visible",transition:"none"}),className:"first-section"})),p().createElement(eh,Fy({},L,{title:I[f?468:469],entries:f?[].concat(Dy(_),Dy(M)):M,listSettings:H?null:V,showOwner:!d,filterHint:I["cells.quick-filter"],titleStyle:zy(zy({},v),{},{position:"relative",overflow:"visible",transition:"none"}),createAction:e,createActionEntry:t,className:H?"":"first-section",emptyState:p().createElement("div",{style:W},p().createElement("div",{className:"icomoon-cells",style:{fontSize:60}}),this.createRepositoryEnabled()&&p().createElement(E.FlatButton,{style:{color:b.palette.mui3.primary,marginTop:5},primary:!0,label:I[418],onClick:A}),p().createElement("div",{style:{fontSize:13,padding:"5px 20px"}},I[633]))})))}}]),r}(p().Component);function rh(e){return rh="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},rh(e)}function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=this,o=arguments.length,i=new Array(o),a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(h.current+=1,{overflow:n,outerHeightStyle:r}):e},x=u.useCallback((function(){var e=w();Oh(e)||g((function(t){return S(t,e)}))}),[w]);return u.useEffect((function(){var e,t=bh((function(){var e;h.current=0,d.current&&(Oh(e=w())||(0,O.flushSync)((function(){g((function(t){return S(t,e)}))})))})),r=hh(d.current);return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(d.current),function(){t.clear(),r.removeEventListener("resize",t),e&&e.disconnect()}})),bi((function(){x()})),u.useEffect((function(){h.current=0}),[c]),(0,ui.jsxs)(u.Fragment,{children:[(0,ui.jsx)("textarea",Le({value:c,onChange:function(e){h.current=0,f||x(),o&&o(e)},ref:m,rows:l,style:Le({height:v.outerHeightStyle,overflow:v.overflow?"hidden":null},s)},p)),(0,ui.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:Le({},Sh,s,{padding:0})})]})}));const Ph=xh;function Eh(e){var t=e.props,r=e.states,n=e.muiFormControl;return r.reduce((function(e,r){return e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e}),{})}const jh=u.createContext(void 0);function kh(){return u.useContext(jh)}const Ch=bi;r(35205);var Th=yr((function(e,t){var r=e.styles,n=ur([r],void 0,(0,u.useContext)(hr)),o=(0,u.useRef)();return dr((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),o.current=[r,i],function(){r.flush()}}),[t]),dr((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&vr(t,n.next,!0),r.tags.length){var i=r.tags[r.tags.length-1].nextElementSibling;r.before=i,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function Rh(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]&&arguments[1];return e&&(Ah(e.value)&&""!==e.value||t&&Ah(e.defaultValue)&&""!==e.defaultValue)}function Nh(e){return Ba("MuiInputBase",e)}const Lh=Fa("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function zh(e){return zh="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},zh(e)}function Bh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?r-1:0),o=1;oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));function gb(e){return Ba("MuiOutlinedInput",e)}const wb=Me({},Lh,Fa("MuiOutlinedInput",["root","notchedOutline","input"]));function Sb(e){return Sb="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},Sb(e)}function Ob(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Sb(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Sb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Sb(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xb=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Pb=No(Uh,{shouldForwardProp:function(e){return Io(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:Hh})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Me((Ob(t={position:"relative",borderRadius:(r.vars||r).shape.borderRadius},"&:hover .".concat(wb.notchedOutline),{borderColor:(r.vars||r).palette.text.primary}),Ob(t,"@media (hover: none)",Ob({},"&:hover .".concat(wb.notchedOutline),{borderColor:r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.23)"):o})),Ob(t,"&.".concat(wb.focused," .").concat(wb.notchedOutline),{borderColor:(r.vars||r).palette[n.color].main,borderWidth:2}),Ob(t,"&.".concat(wb.error," .").concat(wb.notchedOutline),{borderColor:(r.vars||r).palette.error.main}),Ob(t,"&.".concat(wb.disabled," .").concat(wb.notchedOutline),{borderColor:(r.vars||r).palette.action.disabled}),t),n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&Me({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),Eb=No((function(e){var t=e.className,r=e.label,n=e.notched,o=_e(e,hb),i=null!=r&&""!==r,a=Me({},e,{notched:n,withLabel:i});return(0,ui.jsx)(bb,Me({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,ui.jsx)(vb,{ownerState:a,children:i?(0,ui.jsx)("span",{children:r}):yb||(yb=(0,ui.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}})),jb=No(Vh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:qh})((function(e){var t=e.theme,r=e.ownerState;return Me({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&Ob({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),kb=u.forwardRef((function(e,t){var r,n,o,i,a,l=Vo({props:e,name:"MuiOutlinedInput"}),s=l.components,c=void 0===s?{}:s,p=l.fullWidth,f=void 0!==p&&p,d=l.inputComponent,m=void 0===d?"input":d,y=l.label,h=l.multiline,b=void 0!==h&&h,v=l.notched,g=l.slots,w=void 0===g?{}:g,S=l.type,O=void 0===S?"text":S,x=_e(l,xb),P=function(e){var t=e.classes;return Me({},t,Ne({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gb,t))}(l),E=kh(),j=Eh({props:l,muiFormControl:E,states:["required"]}),k=Me({},l,{color:j.color||"primary",disabled:j.disabled,error:j.error,focused:j.focused,formControl:E,fullWidth:f,hiddenLabel:j.hiddenLabel,multiline:b,size:j.size,type:O}),C=null!=(r=null!=(n=w.root)?n:c.Root)?r:Pb,T=null!=(o=null!=(i=w.input)?i:c.Input)?o:jb;return(0,ui.jsx)($h,Me({slots:{root:C,input:T},renderSuffix:function(e){return(0,ui.jsx)(Eb,{ownerState:k,className:P.notchedOutline,label:null!=y&&""!==y&&j.required?a||(a=(0,ui.jsxs)(u.Fragment,{children:[y," ","*"]})):y,notched:void 0!==v?v:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:f,inputComponent:m,multiline:b,ref:t,type:O},x,{classes:Me({},P,{notchedOutline:null})}))}));kb.muiName="Input";const Cb=kb;function Tb(e){return Ba("MuiFormLabel",e)}const Rb=Fa("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);function _b(e){return _b="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},_b(e)}function Mb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_b(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ib=["children","className","color","component","disabled","error","filled","focused","required"],Ab=No("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return Me({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((function(e){var t,r=e.theme,n=e.ownerState;return Me({color:(r.vars||r).palette.text.secondary},r.typography.body1,(Mb(t={lineHeight:"1.4375em",padding:0,position:"relative"},"&.".concat(Rb.focused),{color:(r.vars||r).palette[n.color].main}),Mb(t,"&.".concat(Rb.disabled),{color:(r.vars||r).palette.text.disabled}),Mb(t,"&.".concat(Rb.error),{color:(r.vars||r).palette.error.main}),t))})),Db=No("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return Mb({},"&.".concat(Rb.error),{color:(t.vars||t).palette.error.main})})),Nb=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiFormLabel"}),n=r.children,o=r.className,i=r.component,a=void 0===i?"label":i,l=_e(r,Ib),s=Eh({props:r,muiFormControl:kh(),states:["color","required","focused","disabled","error","filled"]}),c=Me({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=function(e){var t=e.classes,r=e.color,n=e.focused,o=e.disabled,i=e.error,a=e.filled,l=e.required;return Ne({root:["root","color".concat(Ko(r)),o&&"disabled",i&&"error",a&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]},Tb,t)}(c);return(0,ui.jsxs)(Ab,Me({as:a,ownerState:c,className:De(u.root,o),ref:t},l,{children:[n,s.required&&(0,ui.jsxs)(Db,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));const Lb=Nb;function zb(e){return Ba("MuiInputLabel",e)}function Bb(e){return Bb="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},Bb(e)}Fa("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var Fb=["disableAnimation","margin","shrink","variant","className"],Wb=No(Lb,{shouldForwardProp:function(e){return Io(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var r,n,o,i=e.ownerState;return[(r={},n="& .".concat(Rb.asterisk),o=t.asterisk,(n=function(e){var t=function(e,t){if("object"!==Bb(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Bb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bb(t)?t:String(t)}(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r),t.root,i.formControl&&t.formControl,"small"===i.size&&t.sizeSmall,i.shrink&&t.shrink,!i.disableAnimation&&t.animated,t[i.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return Me({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&Me({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&Me({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&Me({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),Hb=u.forwardRef((function(e,t){var r=Vo({name:"MuiInputLabel",props:e}),n=r.disableAnimation,o=void 0!==n&&n,i=r.shrink,a=r.className,l=_e(r,Fb),s=kh(),c=i;void 0===c&&s&&(c=s.filled||s.focused||s.adornedStart);var u=Eh({props:r,muiFormControl:s,states:["size","variant","required"]}),p=Me({},r,{disableAnimation:o,formControl:s,shrink:c,size:u.size,variant:u.variant,required:u.required}),f=function(e){var t=e.classes,r=e.formControl,n=e.size,o=e.shrink;return Me({},t,Ne({root:["root",r&&"formControl",!e.disableAnimation&&"animated",o&&"shrink","small"===n&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},zb,t))}(p);return(0,ui.jsx)(Wb,Me({"data-shrink":c,ownerState:p,ref:t,className:De(f.root,a)},l,{classes:f}))}));const qb=Hb,Ub=function(e,t){return u.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)};function Vb(e){return Ba("MuiFormControl",e)}function Kb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gb(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 Gb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(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=n&&!o.repeating&&gv(n,o);o.previousKeyMatched&&(l||wv(t,n,!1,p,bv,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:o?0:-1},b,{children:O}))})),Ov=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function xv(e){return Ba("MuiPaper",e)}Fa("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var Pv=["className","component","elevation","square","variant"],Ev=No("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((function(e){var t,r=e.theme,n=e.ownerState;return Me({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!n.square&&{borderRadius:r.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((r.vars||r).palette.divider)},"elevation"===n.variant&&Me({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat(Ve("#fff",Ov(n.elevation)),", ").concat(Ve("#fff",Ov(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))})),jv=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiPaper"}),n=r.className,o=r.component,i=void 0===o?"div":o,a=r.elevation,l=void 0===a?1:a,s=r.square,c=void 0!==s&&s,u=r.variant,p=void 0===u?"elevation":u,f=_e(r,Pv),d=Me({},r,{component:i,elevation:l,square:c,variant:p}),m=function(e){var t=e.square,r=e.elevation,n=e.variant,o=e.classes;return Ne({root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]},xv,o)}(d);return(0,ui.jsx)(Ev,Me({as:i,ownerState:d,className:De(m.root,n),ref:t},f))}));const kv=jv,Cv=bh,Tv=hh;function Rv(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rt.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var o=mv(vi(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(Dv(n)+o,"px");var i=vi(n).querySelectorAll(".mui-fixed");[].forEach.call(i,(function(e){r.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(Dv(e)+o,"px")}))}var a;if(n.parentNode instanceof DocumentFragment)a=vi(n).body;else{var l=n.parentElement,s=hh(n);a="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===s.getComputedStyle(l).overflowY?l:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){r.forEach((function(e){var t=e.value,r=e.el,n=e.property;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}(n,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;var n=Lv(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Av(e.modalRef,t),Nv(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{var i=o.modals[o.modals.length-1];i.modalRef&&Av(i.modalRef,!1)}return r}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}],r&&Mv(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Bv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Fv(e){var t=[],r=[];return Array.from(e.querySelectorAll(Bv)).forEach((function(e,n){var o=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function Wv(){return!0}const Hv=function(e){var t=e.children,r=e.disableAutoFocus,n=void 0!==r&&r,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,l=void 0!==a&&a,s=e.getTabbable,c=void 0===s?Fv:s,p=e.isEnabled,f=void 0===p?Wv:p,d=e.open,m=u.useRef(!1),y=u.useRef(null),h=u.useRef(null),b=u.useRef(null),v=u.useRef(null),g=u.useRef(!1),w=u.useRef(null),S=si(t.ref,w),O=u.useRef(null);u.useEffect((function(){d&&w.current&&(g.current=!n)}),[n,d]),u.useEffect((function(){if(d&&w.current){var e=vi(w.current);return w.current.contains(e.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),g.current&&w.current.focus()),function(){l||(b.current&&b.current.focus&&(m.current=!0,b.current.focus()),b.current=null)}}}),[d]),u.useEffect((function(){if(d&&w.current){var e=vi(w.current),t=function(t){var r=w.current;if(null!==r)if(e.hasFocus()&&!i&&f()&&!m.current){if(!r.contains(e.activeElement)){if(t&&v.current!==t.target||e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!g.current)return;var n=[];if(e.activeElement!==y.current&&e.activeElement!==h.current||(n=c(w.current)),n.length>0){var o,a,l=Boolean((null==(o=O.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=O.current)?void 0:a.key)),s=n[0],u=n[n.length-1];"string"!=typeof s&&"string"!=typeof u&&(l?u.focus():s.focus())}else r.focus()}}else m.current=!1},r=function(t){O.current=t,!i&&f()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(m.current=!0,h.current&&h.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",r,!0);var n=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return function(){clearInterval(n),e.removeEventListener("focusin",t),e.removeEventListener("keydown",r,!0)}}}),[n,i,l,f,d,c]);var x=function(e){null===b.current&&(b.current=e.relatedTarget),g.current=!0};return(0,ui.jsxs)(u.Fragment,{children:[(0,ui.jsx)("div",{tabIndex:d?0:-1,onFocus:x,ref:y,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:S,onFocus:function(e){null===b.current&&(b.current=e.relatedTarget),g.current=!0,v.current=e.target;var r=t.props.onFocus;r&&r(e)}}),(0,ui.jsx)("div",{tabIndex:d?0:-1,onFocus:x,ref:h,"data-testid":"sentinelEnd"})]})};function qv(e){return Ba("MuiModal",e)}function Uv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);ru){var m=l-u;o-=m,r.vertical+=m}if(ip){var h=s-p;i-=h,r.horizontal+=h}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:hg(r)}}),[a,f,L,z,g]),F=(r=u.useState(w),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pg(e,t):void 0}}(r,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.")}()),W=F[0],H=F[1],q=u.useCallback((function(){var e=I.current;if(e){var t=B(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,H(!0)}}),[B]);u.useEffect((function(){w&&q()})),u.useImperativeHandle(i,(function(){return w?{updatePosition:function(){q()}}:null}),[w,q]),u.useEffect((function(){if(w){var e=Cv((function(){q()})),t=Tv(a);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[a,w,q]);var U=C;"auto"!==C||j.muiSupportAuto||(U=void 0);var V=y||(a?lv(bg(a)).body:void 0);return(0,ui.jsx)(vg,Me({BackdropProps:{invisible:!0},className:De(N.root,m),container:V,open:w,ref:t,ownerState:D},M,{children:(0,ui.jsx)(j,Me({appear:!0,in:w,onEntering:function(e,t){R&&R(e,t),q()},onExited:function(){H(!1)},timeout:U},_,{children:(0,ui.jsx)(gg,Me({elevation:b},O,{ref:A,className:De(N.paper,O.className)},W?void 0:{style:Me({},O.style,{opacity:0})},{ownerState:D,children:d}))}))}))}));const Sg=wg;function Og(e){return Ba("MuiMenu",e)}Fa("MuiMenu",["root","paper","list"]);var xg=["onEntering"],Pg=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Eg={vertical:"top",horizontal:"right"},jg={vertical:"top",horizontal:"left"},kg=No(Sg,{shouldForwardProp:function(e){return Io(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Cg=No(kv,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Tg=No(Sv,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),Rg=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiMenu"}),n=r.autoFocus,o=void 0===n||n,i=r.children,a=r.disableAutoFocusItem,l=void 0!==a&&a,s=r.MenuListProps,c=void 0===s?{}:s,p=r.onClose,f=r.open,d=r.PaperProps,m=void 0===d?{}:d,y=r.PopoverClasses,h=r.transitionDuration,b=void 0===h?"auto":h,v=r.TransitionProps,g=(void 0===v?{}:v).onEntering,w=r.variant,S=void 0===w?"selectedMenu":w,O=_e(r.TransitionProps,xg),x=_e(r,Pg),P=Ho(),E="rtl"===P.direction,j=Me({},r,{autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:m,transitionDuration:b,TransitionProps:O,variant:S}),k=function(e){return Ne({root:["root"],paper:["paper"],list:["list"]},Og,e.classes)}(j),C=o&&!l&&f,T=u.useRef(null),R=-1;return u.Children.map(i,(function(e,t){u.isValidElement(e)&&(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===R)&&(R=t))})),(0,ui.jsx)(kg,Me({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Eg:jg,PaperProps:Me({component:Cg},m,{classes:Me({},m.classes,{root:k.paper})}),className:k.root,open:f,ref:t,transitionDuration:b,TransitionProps:Me({onEntering:function(e,t){T.current&&T.current.adjustStyleForScrollbar(e,P),g&&g(e,t)}},O),ownerState:j},x,{classes:y,children:(0,ui.jsx)(Tg,Me({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:T,autoFocus:o&&(-1===R||l),autoFocusItem:C,variant:S},c,{className:De(k.list,c.className),children:i}))}))}));const _g=Rg;function Mg(e){return Ba("MuiNativeSelect",e)}const Ig=Fa("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);function Ag(e){return Ag="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},Ag(e)}function Dg(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ag(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ag(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ag(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ng=["className","disabled","IconComponent","inputRef","variant"],Lg=function(e){var t,r=e.ownerState,n=e.theme;return Me((Dg(t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Me({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},"&.".concat(Ig.disabled),{cursor:"default"}),Dg(t,"&[multiple]",{height:"auto"}),Dg(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(n.vars||n).palette.background.paper}),Dg(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===r.variant&&{"&&&":{paddingRight:32}},"outlined"===r.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},zg=No("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Io,overridesResolver:function(e,t){var r=e.ownerState;return[t.select,t[r.variant],Dg({},"&.".concat(Ig.multiple),t.multiple)]}})(Lg),Bg=function(e){var t=e.ownerState,r=e.theme;return Me(Dg({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active},"&.".concat(Ig.disabled),{color:(r.vars||r).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Fg=No("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat(Ko(r.variant))],r.open&&t.iconOpen]}})(Bg),Wg=u.forwardRef((function(e,t){var r=e.className,n=e.disabled,o=e.IconComponent,i=e.inputRef,a=e.variant,l=void 0===a?"standard":a,s=_e(e,Ng),c=Me({},e,{disabled:n,variant:l}),p=function(e){var t=e.classes,r=e.variant,n=e.disabled,o=e.multiple,i=e.open;return Ne({select:["select",r,n&&"disabled",o&&"multiple"],icon:["icon","icon".concat(Ko(r)),i&&"iconOpen",n&&"disabled"]},Mg,t)}(c);return(0,ui.jsxs)(u.Fragment,{children:[(0,ui.jsx)(zg,Me({ownerState:c,className:De(p.select,r),disabled:n,ref:i||t},s)),e.multiple?null:(0,ui.jsx)(Fg,{as:o,ownerState:c,className:p.icon})]})}));const Hg=Wg;function qg(e){return Ba("MuiSelect",e)}const Ug=Fa("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);function Vg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kg(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 Kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,r=void 0===t||t,n=e.ignoreCase,o=void 0===n||n,i=e.limit,a=e.matchFrom,l=void 0===a?"any":a,s=e.stringify,c=e.trim,u=void 0!==c&&c;return function(e,t){var n=t.inputValue,a=t.getOptionLabel,c=u?n.trim():n;o&&(c=c.toLowerCase()),r&&(c=Tw(c));var p=c?e.filter((function(e){var t=(s||a)(e);return o&&(t=t.toLowerCase()),r&&(t=Tw(t)),"start"===l?0===t.indexOf(c):t.indexOf(c)>-1})):e;return"number"==typeof i?p.slice(0,i):p}}(),Mw=5,Iw=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Aw(e){return Ba("MuiListSubheader",e)}Fa("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var Dw=["className","color","component","disableGutters","disableSticky","inset"],Nw=No("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"default"!==r.color&&t["color".concat(Ko(r.color))],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((function(e){var t=e.theme,r=e.ownerState;return Me({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===r.color&&{color:(t.vars||t).palette.primary.main},"inherit"===r.color&&{color:"inherit"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.inset&&{paddingLeft:72},!r.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),Lw=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiListSubheader"}),n=r.className,o=r.color,i=void 0===o?"default":o,a=r.component,l=void 0===a?"li":a,s=r.disableGutters,c=void 0!==s&&s,u=r.disableSticky,p=void 0!==u&&u,f=r.inset,d=void 0!==f&&f,m=_e(r,Dw),y=Me({},r,{color:i,component:l,disableGutters:c,disableSticky:p,inset:d}),h=function(e){var t=e.classes,r=e.color,n=e.disableGutters,o=e.inset,i=e.disableSticky;return Ne({root:["root","default"!==r&&"color".concat(Ko(r)),!n&&"gutters",o&&"inset",!i&&"sticky"]},Aw,t)}(y);return(0,ui.jsx)(Nw,Me({as:l,className:De(h.root,n),ref:t,ownerState:y},m))}));const zw=Lw;function Bw(e,t){var r=Object.create(null);return e&&u.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,u.isValidElement)(e)?t(e):e}(e)})),r}function Fw(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Ww(e,t,r){var n=Bw(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=t.pulsate,o=void 0!==n&&n,i=t.center,l=void 0===i?a||t.pulsate:i,s=t.fakeElement,c=void 0!==s&&s;if("mousedown"===(null==e?void 0:e.type)&&b.current)b.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(b.current=!0);var u,p,f,d=c?null:w.current,m=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(m.width/2),p=Math.round(m.height/2);else{var y=e.touches&&e.touches.length>0?e.touches[0]:e,h=y.clientX,O=y.clientY;u=Math.round(h-m.left),p=Math.round(O-m.top)}if(l)(f=Math.sqrt((2*Math.pow(m.width,2)+Math.pow(m.height,2))/3))%2==0&&(f+=1);else{var x=2*Math.max(Math.abs((d?d.clientWidth:0)-u),u)+2,P=2*Math.max(Math.abs((d?d.clientHeight:0)-p),p)+2;f=Math.sqrt(Math.pow(x,2)+Math.pow(P,2))}null!=e&&e.touches?null===g.current&&(g.current=function(){S({pulsate:o,rippleX:u,rippleY:p,rippleSize:f,cb:r})},v.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),iS)):S({pulsate:o,rippleX:u,rippleY:p,rippleSize:f,cb:r})}}),[a,S]),x=u.useCallback((function(){O({},{pulsate:!0})}),[O]),P=u.useCallback((function(e,t){if(clearTimeout(v.current),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void(v.current=setTimeout((function(){P(e,t)})));g.current=null,m((function(e){return e.length>0?e.slice(1):e})),h.current=t}),[]);return u.useImperativeHandle(t,(function(){return{pulsate:x,start:O,stop:P}}),[x,O,P]),(0,ui.jsx)(cS,Me({className:De(Kw.root,s.root,c),ref:w},p,{children:(0,ui.jsx)(Uw,{component:null,exit:!0,children:d})}))}));const fS=pS;function dS(e){return Ba("MuiButtonBase",e)}const mS=Fa("MuiButtonBase",["root","disabled","focusVisible"]);var yS;function hS(e){return hS="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},hS(e)}function bS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vS(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 vS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:h;return nl((function(n){return t&&t(n),!r&&H.current&&H.current[e](n),!0}))}u.useEffect((function(){X&&v&&!m&&Q&&H.current.pulsate()}),[m,v,X,Q]);var ne=re("start",T),oe=re("stop",x),ie=re("stop",P),ae=re("stop",_),le=re("stop",(function(e){X&&e.preventDefault(),R&&R(e)})),se=re("start",A),ce=re("stop",M),ue=re("stop",I),pe=re("stop",(function(e){G(e),!1===V.current&&J(!1),S&&S(e)}),!1),fe=nl((function(e){W.current||(W.current=e.currentTarget),K(e),!0===V.current&&(J(!0),j&&j(e)),E&&E(e)})),de=function(){var e=W.current;return c&&"button"!==c&&!("A"===e.tagName&&e.href)},me=u.useRef(!1),ye=nl((function(e){v&&!me.current&&X&&H.current&&" "===e.key&&(me.current=!0,H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&de()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&de()&&"Enter"===e.key&&!f&&(e.preventDefault(),O&&O(e))})),he=nl((function(e){v&&" "===e.key&&H.current&&X&&!e.defaultPrevented&&(me.current=!1,H.current.stop(e,(function(){H.current.pulsate(e)}))),C&&C(e),O&&e.target===e.currentTarget&&de()&&" "===e.key&&!e.defaultPrevented&&O(e)})),be=c;"button"===be&&(F.href||F.to)&&(be=w);var ve={};"button"===be?(ve.type=void 0===B?"button":B,ve.disabled=f):(F.href||F.to||(ve.role="button"),f&&(ve["aria-disabled"]=f));var ge=ci(t,$,W),we=Me({},r,{centerRipple:i,component:c,disabled:f,disableRipple:m,disableTouchRipple:h,focusRipple:v,tabIndex:N,focusVisible:X}),Se=function(e){var t=e.disabled,r=e.focusVisible,n=e.focusVisibleClassName,o=Ne({root:["root",t&&"disabled",r&&"focusVisible"]},dS,e.classes);return r&&n&&(o.root+=" ".concat(n)),o}(we);return(0,ui.jsxs)(SS,Me({as:be,className:De(Se.root,l),ownerState:we,onBlur:pe,onClick:O,onContextMenu:oe,onFocus:fe,onKeyDown:ye,onKeyUp:he,onMouseDown:ne,onMouseLeave:le,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:ue,onTouchStart:se,ref:ge,tabIndex:f?-1:N,type:B},ve,F,{children:[a,te?(0,ui.jsx)(fS,Me({ref:q,center:i},L)):null]}))}));const xS=OS;function PS(e){return Ba("MuiIconButton",e)}const ES=Fa("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);function jS(e){return jS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jS(e)}var kS=["edge","children","className","color","disabled","disableFocusRipple","size"],CS=No(xS,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"default"!==r.color&&t["color".concat(Ko(r.color))],r.edge&&t["edge".concat(Ko(r.edge))],t["size".concat(Ko(r.size))]]}})((function(e){var t=e.theme,r=e.ownerState;return Me({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):Ve(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(function(e){var t,r,n,o,i=e.theme,a=e.ownerState,l=null==(t=(i.vars||i).palette)?void 0:t[a.color];return Me({},"inherit"===a.color&&{color:"inherit"},"inherit"!==a.color&&"default"!==a.color&&Me({color:null==l?void 0:l.main},!a.disableRipple&&{"&:hover":Me({},l&&{backgroundColor:i.vars?"rgba(".concat(l.mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):Ve(l.main,i.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===a.size&&{padding:5,fontSize:i.typography.pxToRem(18)},"large"===a.size&&{padding:12,fontSize:i.typography.pxToRem(28)},(r={},n="&.".concat(ES.disabled),o={backgroundColor:"transparent",color:(i.vars||i).palette.action.disabled},(n=function(e){var t=function(e,t){if("object"!==jS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==jS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===jS(t)?t:String(t)}(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r))})),TS=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiIconButton"}),n=r.edge,o=void 0!==n&&n,i=r.children,a=r.className,l=r.color,s=void 0===l?"default":l,c=r.disabled,u=void 0!==c&&c,p=r.disableFocusRipple,f=void 0!==p&&p,d=r.size,m=void 0===d?"medium":d,y=_e(r,kS),h=Me({},r,{edge:o,color:s,disabled:u,disableFocusRipple:f,size:m}),b=function(e){var t=e.classes,r=e.disabled,n=e.color,o=e.edge,i=e.size;return Ne({root:["root",r&&"disabled","default"!==n&&"color".concat(Ko(n)),o&&"edge".concat(Ko(o)),"size".concat(Ko(i))]},PS,t)}(h);return(0,ui.jsx)(CS,Me({className:De(b.root,a),centerRipple:!0,focusRipple:!f,disabled:u,ref:t,ownerState:h},y,{children:i}))}));const RS=TS,_S=cw((0,ui.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function MS(e){return Ba("MuiChip",e)}const IS=Fa("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function AS(e){return AS="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},AS(e)}function DS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==AS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==AS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===AS(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var NS=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],LS=No("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState,n=r.color,o=r.iconColor,i=r.clickable,a=r.onDelete,l=r.size,s=r.variant;return[DS({},"& .".concat(IS.avatar),t.avatar),DS({},"& .".concat(IS.avatar),t["avatar".concat(Ko(l))]),DS({},"& .".concat(IS.avatar),t["avatarColor".concat(Ko(n))]),DS({},"& .".concat(IS.icon),t.icon),DS({},"& .".concat(IS.icon),t["icon".concat(Ko(l))]),DS({},"& .".concat(IS.icon),t["iconColor".concat(Ko(o))]),DS({},"& .".concat(IS.deleteIcon),t.deleteIcon),DS({},"& .".concat(IS.deleteIcon),t["deleteIcon".concat(Ko(l))]),DS({},"& .".concat(IS.deleteIcon),t["deleteIconColor".concat(Ko(n))]),DS({},"& .".concat(IS.deleteIcon),t["deleteIcon".concat(Ko(s),"Color").concat(Ko(n))]),t.root,t["size".concat(Ko(l))],t["color".concat(Ko(n))],i&&t.clickable,i&&"default"!==n&&t["clickableColor".concat(Ko(n),")")],a&&t.deletable,a&&"default"!==n&&t["deletableColor".concat(Ko(n))],t[s],t["".concat(s).concat(Ko(n))]]}})((function(e){var t,r=e.theme,n=e.ownerState,o=Ve(r.palette.text.primary,.26),i="light"===r.palette.mode?r.palette.grey[700]:r.palette.grey[300];return Me((DS(t={maxWidth:"100%",fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(r.vars||r).palette.text.primary,backgroundColor:(r.vars||r).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:r.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},"&.".concat(IS.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),DS(t,"& .".concat(IS.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:r.vars?r.vars.palette.Chip.defaultAvatarColor:i,fontSize:r.typography.pxToRem(12)}),DS(t,"& .".concat(IS.avatarColorPrimary),{color:(r.vars||r).palette.primary.contrastText,backgroundColor:(r.vars||r).palette.primary.dark}),DS(t,"& .".concat(IS.avatarColorSecondary),{color:(r.vars||r).palette.secondary.contrastText,backgroundColor:(r.vars||r).palette.secondary.dark}),DS(t,"& .".concat(IS.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:r.typography.pxToRem(10)}),DS(t,"& .".concat(IS.icon),Me({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&Me({color:r.vars?r.vars.palette.Chip.defaultIconColor:i},"default"!==n.color&&{color:"inherit"}))),DS(t,"& .".concat(IS.deleteIcon),Me({WebkitTapHighlightColor:"transparent",color:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / 0.26)"):o,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / 0.4)"):Ve(o,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:r.vars?"rgba(".concat(r.vars.palette[n.color].contrastTextChannel," / 0.7)"):Ve(r.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(r.vars||r).palette[n.color].contrastText}})),t),"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(r.vars||r).palette[n.color].main,color:(r.vars||r).palette[n.color].contrastText},n.onDelete&&DS({},"&.".concat(IS.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selectedChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):Ve(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),n.onDelete&&"default"!==n.color&&DS({},"&.".concat(IS.focusVisible),{backgroundColor:(r.vars||r).palette[n.color].dark}))}),(function(e){var t,r=e.theme,n=e.ownerState;return Me({},n.clickable&&(DS(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selectedChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):Ve(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)}},"&.".concat(IS.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selectedChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):Ve(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),DS(t,"&:active",{boxShadow:(r.vars||r).shadows[1]}),t),n.clickable&&"default"!==n.color&&DS({},"&:hover, &.".concat(IS.focusVisible),{backgroundColor:(r.vars||r).palette[n.color].dark}))}),(function(e){var t,r,n=e.theme,o=e.ownerState;return Me({},"outlined"===o.variant&&(DS(t={backgroundColor:"transparent",border:n.vars?"1px solid ".concat(n.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[700])},"&.".concat(IS.clickable,":hover"),{backgroundColor:(n.vars||n).palette.action.hover}),DS(t,"&.".concat(IS.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),DS(t,"& .".concat(IS.avatar),{marginLeft:4}),DS(t,"& .".concat(IS.avatarSmall),{marginLeft:2}),DS(t,"& .".concat(IS.icon),{marginLeft:4}),DS(t,"& .".concat(IS.iconSmall),{marginLeft:2}),DS(t,"& .".concat(IS.deleteIcon),{marginRight:5}),DS(t,"& .".concat(IS.deleteIconSmall),{marginRight:3}),t),"outlined"===o.variant&&"default"!==o.color&&(DS(r={color:(n.vars||n).palette[o.color].main,border:"1px solid ".concat(n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / 0.7)"):Ve(n.palette[o.color].main,.7))},"&.".concat(IS.clickable,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):Ve(n.palette[o.color].main,n.palette.action.hoverOpacity)}),DS(r,"&.".concat(IS.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.focusOpacity,")"):Ve(n.palette[o.color].main,n.palette.action.focusOpacity)}),DS(r,"& .".concat(IS.deleteIcon),{color:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / 0.7)"):Ve(n.palette[o.color].main,.7),"&:hover, &:active":{color:(n.vars||n).palette[o.color].main}}),r))})),zS=No("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var r=e.ownerState.size;return[t.label,t["label".concat(Ko(r))]]}})((function(e){return Me({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.ownerState.size&&{paddingLeft:8,paddingRight:8})}));function BS(e){return"Backspace"===e.key||"Delete"===e.key}var FS=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiChip"}),n=r.avatar,o=r.className,i=r.clickable,a=r.color,l=void 0===a?"default":a,s=r.component,c=r.deleteIcon,p=r.disabled,f=void 0!==p&&p,d=r.icon,m=r.label,y=r.onClick,h=r.onDelete,b=r.onKeyDown,v=r.onKeyUp,g=r.size,w=void 0===g?"medium":g,S=r.variant,O=void 0===S?"filled":S,x=r.tabIndex,P=r.skipFocusWhenDisabled,E=void 0!==P&&P,j=_e(r,NS),k=u.useRef(null),C=ci(k,t),T=function(e){e.stopPropagation(),h&&h(e)},R=!(!1===i||!y)||i,_=R||h?xS:s||"div",M=Me({},r,{component:_,disabled:f,size:w,color:l,iconColor:u.isValidElement(d)&&d.props.color||l,onDelete:!!h,clickable:R,variant:O}),I=function(e){var t=e.classes,r=e.disabled,n=e.size,o=e.color,i=e.iconColor,a=e.onDelete,l=e.clickable,s=e.variant;return Ne({root:["root",s,r&&"disabled","size".concat(Ko(n)),"color".concat(Ko(o)),l&&"clickable",l&&"clickableColor".concat(Ko(o)),a&&"deletable",a&&"deletableColor".concat(Ko(o)),"".concat(s).concat(Ko(o))],label:["label","label".concat(Ko(n))],avatar:["avatar","avatar".concat(Ko(n)),"avatarColor".concat(Ko(o))],icon:["icon","icon".concat(Ko(n)),"iconColor".concat(Ko(i))],deleteIcon:["deleteIcon","deleteIcon".concat(Ko(n)),"deleteIconColor".concat(Ko(o)),"deleteIcon".concat(Ko(s),"Color").concat(Ko(o))]},MS,t)}(M),A=_===xS?Me({component:s||"div",focusVisibleClassName:I.focusVisible},h&&{disableRipple:!0}):{},D=null;h&&(D=c&&u.isValidElement(c)?u.cloneElement(c,{className:De(c.props.className,I.deleteIcon),onClick:T}):(0,ui.jsx)(_S,{className:De(I.deleteIcon),onClick:T}));var N=null;n&&u.isValidElement(n)&&(N=u.cloneElement(n,{className:De(I.avatar,n.props.className)}));var L=null;return d&&u.isValidElement(d)&&(L=u.cloneElement(d,{className:De(I.icon,d.props.className)})),(0,ui.jsxs)(LS,Me({as:_,className:De(I.root,o),disabled:!(!R||!f)||void 0,onClick:y,onKeyDown:function(e){e.currentTarget===e.target&&BS(e)&&e.preventDefault(),b&&b(e)},onKeyUp:function(e){e.currentTarget===e.target&&(h&&BS(e)?h(e):"Escape"===e.key&&k.current&&k.current.blur()),v&&v(e)},ref:C,tabIndex:E&&f?-1:x,ownerState:M},A,j,{children:[N||L,(0,ui.jsx)(zS,{className:De(I.label),ownerState:M,children:m}),D]}))}));const WS=FS,HS=cw((0,ui.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function qS(e){return Ba("MuiAutocomplete",e)}const US=Fa("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);function VS(e){return VS="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},VS(e)}function KS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==VS(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==VS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===VS(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var GS,$S,YS=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],XS=No("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState,n=r.fullWidth,o=r.hasClearIcon,i=r.hasPopupIcon,a=r.inputFocused,l=r.size;return[KS({},"& .".concat(US.tag),t.tag),KS({},"& .".concat(US.tag),t["tagSize".concat(Ko(l))]),KS({},"& .".concat(US.inputRoot),t.inputRoot),KS({},"& .".concat(US.input),t.input),KS({},"& .".concat(US.input),a&&t.inputFocused),t.root,n&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})((function(e){var t,r,n,o,i,a=e.ownerState;return Me((KS(t={},"&.".concat(US.focused," .").concat(US.clearIndicator),{visibility:"visible"}),KS(t,"@media (pointer: fine)",KS({},"&:hover .".concat(US.clearIndicator),{visibility:"visible"})),t),a.fullWidth&&{width:"100%"},(KS(i={},"& .".concat(US.tag),Me({margin:3,maxWidth:"calc(100% - 6px)"},"small"===a.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),KS(i,"& .".concat(US.inputRoot),(KS(r={flexWrap:"wrap"},".".concat(US.hasPopupIcon,"&, .").concat(US.hasClearIcon,"&"),{paddingRight:30}),KS(r,".".concat(US.hasPopupIcon,".").concat(US.hasClearIcon,"&"),{paddingRight:56}),KS(r,"& .".concat(US.input),{width:0,minWidth:30}),r)),KS(i,"& .".concat(Xh.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),KS(i,"& .".concat(Xh.root,".").concat(Lh.sizeSmall),KS({},"& .".concat(Xh.input),{padding:"2px 4px 3px 0"})),KS(i,"& .".concat(wb.root),(KS(n={padding:9},".".concat(US.hasPopupIcon,"&, .").concat(US.hasClearIcon,"&"),{paddingRight:39}),KS(n,".".concat(US.hasPopupIcon,".").concat(US.hasClearIcon,"&"),{paddingRight:65}),KS(n,"& .".concat(US.input),{padding:"7.5px 4px 7.5px 6px"}),KS(n,"& .".concat(US.endAdornment),{right:9}),n)),KS(i,"& .".concat(wb.root,".").concat(Lh.sizeSmall),KS({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(US.input),{padding:"2.5px 4px 2.5px 6px"})),KS(i,"& .".concat(ab.root),(KS(o={paddingTop:19,paddingLeft:8},".".concat(US.hasPopupIcon,"&, .").concat(US.hasClearIcon,"&"),{paddingRight:39}),KS(o,".".concat(US.hasPopupIcon,".").concat(US.hasClearIcon,"&"),{paddingRight:65}),KS(o,"& .".concat(ab.input),{padding:"7px 4px"}),KS(o,"& .".concat(US.endAdornment),{right:9}),o)),KS(i,"& .".concat(ab.root,".").concat(Lh.sizeSmall),KS({paddingBottom:1},"& .".concat(ab.input),{padding:"2.5px 4px"})),KS(i,"& .".concat(Lh.hiddenLabel),{paddingTop:8}),KS(i,"& .".concat(ab.root,".").concat(Lh.hiddenLabel),KS({paddingTop:0,paddingBottom:0},"& .".concat(US.input),{paddingTop:16,paddingBottom:17})),KS(i,"& .".concat(ab.root,".").concat(Lh.hiddenLabel,".").concat(Lh.sizeSmall),KS({},"& .".concat(US.input),{paddingTop:8,paddingBottom:9})),KS(i,"& .".concat(US.input),Me({flexGrow:1,textOverflow:"ellipsis",opacity:0},a.inputFocused&&{opacity:1})),i))})),JS=No("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),ZS=No(RS,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),QS=No(RS,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var r=e.ownerState;return Me({},t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen)}})((function(e){return Me({padding:2,marginRight:-2},e.ownerState.popupOpen&&{transform:"rotate(180deg)"})})),eO=No(tl,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var r=e.ownerState;return[KS({},"& .".concat(US.option),t.option),t.popper,r.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,r=e.ownerState;return Me({zIndex:(t.vars||t).zIndex.modal},r.disablePortal&&{position:"absolute"})})),tO=No(kv,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){return Me({},e.theme.typography.body1,{overflow:"auto"})})),rO=No("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),nO=No("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),oO=No("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,r,n=e.theme;return KS({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(US.option),(KS(r={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},n.breakpoints.up("sm"),{minHeight:"auto"}),KS(r,"&.".concat(US.focused),{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),KS(r,'&[aria-disabled="true"]',{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),KS(r,"&.".concat(US.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),KS(r,'&[aria-selected="true"]',(KS(t={backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):Ve(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(US.focused),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):Ve(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(n.vars||n).palette.action.selected}}),KS(t,"&.".concat(US.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):Ve(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),t)),r))})),iO=No(zw,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),aO=No("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})(KS({padding:0},"& .".concat(US.option),{paddingLeft:24})),lO=u.forwardRef((function(e,t){var r,n,o,i,a,l=Vo({props:e,name:"MuiAutocomplete"}),s=(l.autoComplete,l.autoHighlight,l.autoSelect,l.blurOnSelect,l.ChipProps),c=l.className,p=l.clearIcon,f=void 0===p?GS||(GS=(0,ui.jsx)(HS,{fontSize:"small"})):p,d=(void 0===l.clearOnBlur&&l.freeSolo,l.clearOnEscape,l.clearText),m=void 0===d?"Clear":d,y=l.closeText,h=void 0===y?"Close":y,b=l.componentsProps,v=void 0===b?{}:b,g=(void 0===l.defaultValue&&l.multiple,l.disableClearable),w=void 0!==g&&g,S=(l.disableCloseOnSelect,l.disabled),O=void 0!==S&&S,x=(l.disabledItemsFocusable,l.disableListWrap,l.disablePortal),P=void 0!==x&&x,E=(l.filterSelectedOptions,l.forcePopupIcon),j=void 0===E?"auto":E,k=l.freeSolo,C=void 0!==k&&k,T=l.fullWidth,R=void 0!==T&&T,_=l.getLimitTagsText,M=void 0===_?function(e){return"+".concat(e)}:_,I=l.getOptionLabel,A=void 0===I?function(e){var t;return null!=(t=e.label)?t:e}:I,D=l.groupBy,N=(void 0===l.handleHomeEndKeys&&l.freeSolo,l.includeInputInList,l.limitTags),L=void 0===N?-1:N,z=l.ListboxComponent,B=void 0===z?"ul":z,F=l.ListboxProps,W=l.loading,H=void 0!==W&&W,q=l.loadingText,U=void 0===q?"Loading…":q,V=l.multiple,K=void 0!==V&&V,G=l.noOptionsText,$=void 0===G?"No options":G,Y=(l.openOnFocus,l.openText),X=void 0===Y?"Open":Y,J=l.PaperComponent,Z=void 0===J?kv:J,Q=l.PopperComponent,ee=void 0===Q?tl:Q,te=l.popupIcon,re=void 0===te?$S||($S=(0,ui.jsx)(uw,{})):te,ne=l.readOnly,oe=void 0!==ne&&ne,ie=l.renderGroup,ae=l.renderInput,le=l.renderOption,se=l.renderTags,ce=(void 0===l.selectOnFocus&&l.freeSolo,l.size),ue=void 0===ce?"medium":ce,pe=l.slotProps,fe=void 0===pe?{}:pe,de=_e(l,YS),me=function(e){var t,r=e.unstable_isActiveElementInListbox,n=void 0===r?Iw:r,o=e.unstable_classNamePrefix,i=void 0===o?"Mui":o,a=e.autoComplete,l=void 0!==a&&a,s=e.autoHighlight,c=void 0!==s&&s,p=e.autoSelect,f=void 0!==p&&p,d=e.blurOnSelect,m=void 0!==d&&d,y=e.clearOnBlur,h=void 0===y?!e.freeSolo:y,b=e.clearOnEscape,v=void 0!==b&&b,g=e.componentName,w=void 0===g?"useAutocomplete":g,S=e.defaultValue,O=void 0===S?e.multiple?[]:null:S,x=e.disableClearable,P=void 0!==x&&x,E=e.disableCloseOnSelect,j=void 0!==E&&E,k=e.disabled,C=e.disabledItemsFocusable,T=void 0!==C&&C,R=e.disableListWrap,_=void 0!==R&&R,M=e.filterOptions,I=void 0===M?_w:M,A=e.filterSelectedOptions,D=void 0!==A&&A,N=e.freeSolo,L=void 0!==N&&N,z=e.getOptionDisabled,B=e.getOptionLabel,F=void 0===B?function(e){var t;return null!=(t=e.label)?t:e}:B,W=e.groupBy,H=e.handleHomeEndKeys,q=void 0===H?!e.freeSolo:H,U=e.id,V=e.includeInputInList,K=void 0!==V&&V,G=e.inputValue,$=e.isOptionEqualToValue,Y=void 0===$?function(e,t){return e===t}:$,X=e.multiple,J=void 0!==X&&X,Z=e.onChange,Q=e.onClose,ee=e.onHighlightChange,te=e.onInputChange,re=e.onOpen,ne=e.open,oe=e.openOnFocus,ie=void 0!==oe&&oe,ae=e.options,le=e.readOnly,se=void 0!==le&&le,ce=e.selectOnFocus,ue=void 0===ce?!e.freeSolo:ce,pe=e.value,fe=ll(U);t=function(e){var t=F(e);return"string"!=typeof t?String(t):t};var de=u.useRef(!1),me=u.useRef(!0),ye=u.useRef(null),he=u.useRef(null),be=kw(u.useState(null),2),ve=be[0],ge=be[1],we=kw(u.useState(-1),2),Se=we[0],Oe=we[1],xe=c?0:-1,Pe=u.useRef(xe),Ee=kw(vl({controlled:pe,default:O,name:w}),2),je=Ee[0],ke=Ee[1],Ce=kw(vl({controlled:G,default:"",name:w,state:"inputValue"}),2),Te=Ce[0],Re=Ce[1],_e=kw(u.useState(!1),2),Me=_e[0],Ie=_e[1],Ae=u.useCallback((function(e,r){if((J?je.length0&&!se,Ge=rl((function(e){-1===e?ye.current.focus():ve.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));u.useEffect((function(){J&&Se>je.length-1&&(Oe(-1),Ge(-1))}),[je,J,Se,Ge]);var $e=rl((function(e){var t=e.event,r=e.index,n=e.reason,o=void 0===n?"auto":n;if(Pe.current=r,-1===r?ye.current.removeAttribute("aria-activedescendant"):ye.current.setAttribute("aria-activedescendant","".concat(fe,"-option-").concat(r)),ee&&ee(t,-1===r?null:Ue[r],o),he.current){var a=he.current.querySelector('[role="option"].'.concat(i,"-focused"));a&&(a.classList.remove("".concat(i,"-focused")),a.classList.remove("".concat(i,"-focusVisible")));var l=he.current.parentElement.querySelector('[role="listbox"]');if(l)if(-1!==r){var s=he.current.querySelector('[data-option-index="'.concat(r,'"]'));if(s&&(s.classList.add("".concat(i,"-focused")),"keyboard"===o&&s.classList.add("".concat(i,"-focusVisible")),l.scrollHeight>l.clientHeight&&"mouse"!==o)){var c=s,u=l.clientHeight+l.scrollTop,p=c.offsetTop+c.offsetHeight;p>u?l.scrollTop=p-l.clientHeight:c.offsetTop-c.offsetHeight*(W?1.3:0)1?0:e:t>e?t===e+1&&K?-1:_||Math.abs(n)>1?e:0:t}(),i);if($e({index:c,reason:s,event:r}),l&&"reset"!==n)if(-1===c)ye.current.value=Te;else{var u=t(Ue[c]);ye.current.value=u,0===u.toLowerCase().indexOf(Te.toLowerCase())&&Te.length>0&&ye.current.setSelectionRange(Te.length,u.length)}}})),Xe=u.useCallback((function(){if(qe&&!function(){var e,r;if(-1!==Pe.current&&Ve.filteredOptions&&Ve.filteredOptions.length!==Ue.length&&(J?je.length===Ve.value.length&&Ve.value.every((function(e,r){return t(je[r])===t(e)})):(e=Ve.value,r=je,(e?t(e):"")===(r?t(r):"")))){var n=Ve.filteredOptions[Pe.current];if(n&&Ue.some((function(e){return t(e)===t(n)})))return!0}return!1}()){var e=J?je[0]:je;if(0!==Ue.length&&null!=e){if(he.current)if(null==e)Pe.current>=Ue.length-1?$e({index:Ue.length-1}):$e({index:Pe.current});else{var r=Ue[Pe.current];if(J&&r&&-1!==Rw(je,(function(e){return Y(r,e)})))return;var n=Rw(Ue,(function(t){return Y(t,e)}));-1===n?Ye({diff:"reset"}):$e({index:n})}}else Ye({diff:"reset"})}}),[Ue.length,!J&&je,D,Ye,$e,qe,Te,J]),Je=rl((function(e){li(he,e),e&&Xe()}));u.useEffect((function(){Xe()}),[Xe]);var Ze=function(e){Ne||(ze(!0),We(!0),re&&re(e))},Qe=function(e,t){Ne&&(ze(!1),Q&&Q(e,t))},et=function(e,t,r,n){if(J){if(je.length===t.length&&je.every((function(e,r){return e===t[r]})))return}else if(je===t)return;Z&&Z(e,t,r,n),ke(t)},tt=u.useRef(!1),rt=function(e,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",o=t;if(J){var i=Rw(o=Array.isArray(je)?je.slice():[],(function(e){return Y(t,e)}));-1===i?o.push(t):"freeSolo"!==r&&(o.splice(i,1),n="removeOption")}Ae(e,o),et(e,o,n,{option:t}),j||e&&(e.ctrlKey||e.metaKey)||Qe(e,n),(!0===m||"touch"===m&&tt.current||"mouse"===m&&!tt.current)&&ye.current.blur()},nt=function(e,t){if(J){""===Te&&Qe(e,"toggleInput");var r=Se;-1===Se?""===Te&&"previous"===t&&(r=je.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===je.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;for(var r=e;;){if("next"===t&&r===je.length||"previous"===t&&-1===r)return-1;var n=ve.querySelector('[data-tag-index="'.concat(r,'"]'));if(n&&n.hasAttribute("tabindex")&&!n.disabled&&"true"!==n.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),Oe(r),Ge(r)}},ot=function(e){de.current=!0,Re(""),te&&te(e,"","clear"),et(e,J?[]:null,"clear")},it=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Se&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Oe(-1),Ge(-1)),229!==t.which))switch(t.key){case"Home":qe&&q&&(t.preventDefault(),Ye({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":qe&&q&&(t.preventDefault(),Ye({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ye({diff:-Mw,direction:"previous",reason:"keyboard",event:t}),Ze(t);break;case"PageDown":t.preventDefault(),Ye({diff:Mw,direction:"next",reason:"keyboard",event:t}),Ze(t);break;case"ArrowDown":t.preventDefault(),Ye({diff:1,direction:"next",reason:"keyboard",event:t}),Ze(t);break;case"ArrowUp":t.preventDefault(),Ye({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ze(t);break;case"ArrowLeft":nt(t,"previous");break;case"ArrowRight":nt(t,"next");break;case"Enter":if(-1!==Pe.current&&qe){var r=Ue[Pe.current],n=!!z&&z(r);if(t.preventDefault(),n)return;rt(t,r,"selectOption"),l&&ye.current.setSelectionRange(ye.current.value.length,ye.current.value.length)}else L&&""!==Te&&!1===He&&(J&&t.preventDefault(),rt(t,Te,"createOption","freeSolo"));break;case"Escape":qe?(t.preventDefault(),t.stopPropagation(),Qe(t,"escape")):v&&(""!==Te||J&&je.length>0)&&(t.preventDefault(),t.stopPropagation(),ot(t));break;case"Backspace":if(J&&!se&&""===Te&&je.length>0){var o=-1===Se?je.length-1:Se,i=je.slice();i.splice(o,1),et(t,i,"removeOption",{option:je[o]})}break;case"Delete":if(J&&!se&&""===Te&&je.length>0&&-1!==Se){var a=Se,s=je.slice();s.splice(a,1),et(t,s,"removeOption",{option:je[a]})}}}},at=function(e){Ie(!0),ie&&!de.current&&Ze(e)},lt=function(e){n(he)?ye.current.focus():(Ie(!1),me.current=!0,de.current=!1,f&&-1!==Pe.current&&qe?rt(e,Ue[Pe.current],"blur"):f&&L&&""!==Te?rt(e,Te,"blur","freeSolo"):h&&Ae(e,je),Qe(e,"blur"))},st=function(e){var t=e.target.value;Te!==t&&(Re(t),We(!1),te&&te(e,t,"input")),""===t?P||J||et(e,null,"clear"):Ze(e)},ct=function(e){$e({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},ut=function(){tt.current=!0},pt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));rt(e,Ue[t],"selectOption"),tt.current=!1},ft=function(e){return function(t){var r=je.slice();r.splice(e,1),et(t,r,"removeOption",{option:je[e]})}},dt=function(e){Ne?Qe(e,"toggleInput"):Ze(e)},mt=function(e){e.target.getAttribute("id")!==fe&&e.preventDefault()},yt=function(){ye.current.focus(),ue&&me.current&&ye.current.selectionEnd-ye.current.selectionStart==0&&ye.current.select(),me.current=!1},ht=function(e){""!==Te&&Ne||dt(e)},bt=L&&Te.length>0;bt=bt||(J?je.length>0:null!==je);var vt=Ue;return W&&(new Map,vt=Ue.reduce((function(e,t,r){var n=W(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e}),[])),k&&Me&<(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Le({"aria-owns":Ke?"".concat(fe,"-listbox"):null},e,{onKeyDown:it(e),onMouseDown:mt,onClick:yt})},getInputLabelProps:function(){return{id:"".concat(fe,"-label"),htmlFor:fe}},getInputProps:function(){return{id:fe,value:Te,onBlur:lt,onFocus:at,onChange:st,onMouseDown:ht,"aria-activedescendant":qe?"":null,"aria-autocomplete":l?"both":"list","aria-controls":Ke?"".concat(fe,"-listbox"):void 0,"aria-expanded":Ke,autoComplete:"off",ref:ye,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:k}},getClearProps:function(){return{tabIndex:-1,onClick:ot}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:dt}},getTagProps:function(e){var t=e.index;return Le({key:t,"data-tag-index":t,tabIndex:-1},!se&&{onDelete:ft(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(fe,"-listbox"),"aria-labelledby":"".concat(fe,"-label"),ref:Je,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var r=e.index,n=e.option,o=(J?je:[je]).some((function(e){return null!=e&&Y(n,e)})),i=!!z&&z(n);return{key:t(n),tabIndex:-1,role:"option",id:"".concat(fe,"-option-").concat(r),onMouseOver:ct,onClick:pt,onTouchStart:ut,"data-option-index":r,"aria-disabled":i,"aria-selected":o}},id:fe,inputValue:Te,value:je,dirty:bt,popupOpen:qe,focused:Me||-1!==Se,anchorEl:ve,setAnchorEl:ge,focusedTag:Se,groupedOptions:vt}}(Me({},l,{componentName:"Autocomplete"})),ye=me.getRootProps,he=me.getInputProps,be=me.getInputLabelProps,ve=me.getPopupIndicatorProps,ge=me.getClearProps,we=me.getTagProps,Se=me.getListboxProps,Oe=me.getOptionProps,xe=me.value,Pe=me.dirty,Ee=me.id,je=me.popupOpen,ke=me.focused,Ce=me.focusedTag,Te=me.anchorEl,Re=me.setAnchorEl,Ie=me.inputValue,Ae=me.groupedOptions,ze=!w&&!O&&Pe&&!oe,Be=(!C||!0===j)&&!1!==j,Fe=Me({},l,{disablePortal:P,focused:ke,fullWidth:R,hasClearIcon:ze,hasPopupIcon:Be,inputFocused:-1===Ce,popupOpen:je,size:ue}),We=function(e){var t=e.classes,r=e.disablePortal,n=e.focused,o=e.fullWidth,i=e.hasClearIcon,a=e.hasPopupIcon,l=e.inputFocused,s=e.popupOpen,c=e.size;return Ne({root:["root",n&&"focused",o&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize".concat(Ko(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},qS,t)}(Fe);if(K&&xe.length>0){var He=function(e){return Me({className:We.tag,disabled:O},we(e))};a=se?se(xe,He,Fe):xe.map((function(e,t){return(0,ui.jsx)(WS,Me({label:A(e),size:ue},He({index:t}),s))}))}if(L>-1&&Array.isArray(a)){var qe=a.length-L;!ke&&qe>0&&(a=a.splice(0,L)).push((0,ui.jsx)("span",{className:We.tag,children:M(qe)},a.length))}var Ue=ie||function(e){return(0,ui.jsxs)("li",{children:[(0,ui.jsx)(iO,{className:We.groupLabel,ownerState:Fe,component:"div",children:e.group}),(0,ui.jsx)(aO,{className:We.groupUl,ownerState:Fe,children:e.children})]},e.key)},Ve=le||function(e,t){return(0,ui.jsx)("li",Me({},e,{children:A(t)}))},Ke=function(e,t){var r=Oe({option:e,index:t});return Ve(Me({},r,{className:We.option}),e,{selected:r["aria-selected"],index:t,inputValue:Ie})},Ge=null!=(r=fe.clearIndicator)?r:v.clearIndicator,$e=null!=(n=fe.paper)?n:v.paper,Ye=null!=(o=fe.popper)?o:v.popper,Xe=null!=(i=fe.popupIndicator)?i:v.popupIndicator;return(0,ui.jsxs)(u.Fragment,{children:[(0,ui.jsx)(XS,Me({ref:t,className:De(We.root,c),ownerState:Fe},ye(de),{children:ae({id:Ee,disabled:O,fullWidth:!0,size:"small"===ue?"small":void 0,InputLabelProps:be(),InputProps:Me({ref:Re,className:We.inputRoot,startAdornment:a},(ze||Be)&&{endAdornment:(0,ui.jsxs)(JS,{className:We.endAdornment,ownerState:Fe,children:[ze?(0,ui.jsx)(ZS,Me({},ge(),{"aria-label":m,title:m,ownerState:Fe},Ge,{className:De(We.clearIndicator,null==Ge?void 0:Ge.className),children:f})):null,Be?(0,ui.jsx)(QS,Me({},ve(),{disabled:O,"aria-label":je?h:X,title:je?h:X,ownerState:Fe},Xe,{className:De(We.popupIndicator,null==Xe?void 0:Xe.className),children:re})):null]})}),inputProps:Me({className:We.input,disabled:O,readOnly:oe},he())})})),Te?(0,ui.jsx)(eO,Me({as:ee,disablePortal:P,style:{width:Te?Te.clientWidth:null},ownerState:Fe,role:"presentation",anchorEl:Te,open:je},Ye,{className:De(We.popper,null==Ye?void 0:Ye.className),children:(0,ui.jsxs)(tO,Me({ownerState:Fe,as:Z},$e,{className:De(We.paper,null==$e?void 0:$e.className),children:[H&&0===Ae.length?(0,ui.jsx)(rO,{className:We.loading,ownerState:Fe,children:U}):null,0!==Ae.length||C||H?null:(0,ui.jsx)(nO,{className:We.noOptions,ownerState:Fe,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:$}),Ae.length>0?(0,ui.jsx)(oO,Me({as:B,className:We.listbox,ownerState:Fe},Se(),F,{children:Ae.map((function(e,t){return D?Ue({key:e.key,group:e.group,children:e.options.map((function(t,r){return Ke(t,e.index+r)}))}):Ke(e,t)}))})):null]}))})):null]})}));const sO=lO;function cO(e){return Ba("MuiCircularProgress",e)}var uO,pO,fO,dO;function mO(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Fa("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var yO,hO,bO,vO,gO=["className","color","disableShrink","size","style","thickness","value","variant"],wO=44,SO=_h(yO||(yO=uO||(uO=mO(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),OO=_h(hO||(hO=pO||(pO=mO(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),xO=No("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["color".concat(Ko(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme;return Me({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&Rh(bO||(bO=fO||(fO=mO(["\n animation: "," 1.4s linear infinite;\n "]))),SO)})),PO=No("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),EO=No("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var r=e.ownerState;return[t.circle,t["circle".concat(Ko(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,r=e.theme;return Me({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&Rh(vO||(vO=dO||(dO=mO(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),OO)})),jO=u.forwardRef((function(e,t){var r=Vo({props:e,name:"MuiCircularProgress"}),n=r.className,o=r.color,i=void 0===o?"primary":o,a=r.disableShrink,l=void 0!==a&&a,s=r.size,c=void 0===s?40:s,u=r.style,p=r.thickness,f=void 0===p?3.6:p,d=r.value,m=void 0===d?0:d,y=r.variant,h=void 0===y?"indeterminate":y,b=_e(r,gO),v=Me({},r,{color:i,disableShrink:l,size:c,thickness:f,value:m,variant:h}),g=function(e){var t=e.classes,r=e.variant,n=e.color,o=e.disableShrink;return Ne({root:["root",r,"color".concat(Ko(n))],svg:["svg"],circle:["circle","circle".concat(Ko(r)),o&&"circleDisableShrink"]},cO,t)}(v),w={},S={},O={};if("determinate"===h){var x=2*Math.PI*((wO-f)/2);w.strokeDasharray=x.toFixed(3),O["aria-valuenow"]=Math.round(m),w.strokeDashoffset="".concat(((100-m)/100*x).toFixed(3),"px"),S.transform="rotate(-90deg)"}return(0,ui.jsx)(xO,Me({className:De(g.root,n),style:Me({width:c,height:c},S,u),ownerState:v,ref:t,role:"progressbar"},O,b,{children:(0,ui.jsx)(PO,{className:g.svg,ownerState:v,viewBox:"".concat(22," ").concat(22," ").concat(wO," ").concat(wO),children:(0,ui.jsx)(EO,{className:g.circle,style:w,ownerState:v,cx:wO,cy:wO,r:(wO-f)/2,fill:"none",strokeWidth:f})})}))}));const kO=jO;function CO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?(l=a.substring(0,c),c0),g(!1)})).catch((function(e){g(!1)}))}),400)}),[]);u.useEffect((function(){var e=!0;if(""!==s)return k({input:s},(function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e&&S&&(d(JO(t)),E(r),h(n))})),function(){e=!1};d([])}),[s,k]),u.useEffect((function(){var e=function(e){S&&"Escape"===e.key?O(!1):S||e.ctrlKey||e.metaKey||ax[e.key]&&ax[e.key].filterKey()&&(/^(?:input|textarea|select|button)$/i.test(e.target.tagName)||(e.preventDefault(),O(e.key)))};return document.addEventListener("keyup",e),function(){document.removeEventListener("keyup",e)}}));var C,T={backdropColor:"rgba(0,0,0,.1)",modalPosition:{display:"flex",alignItems:"center",justifyContent:"center",bottom:"40%"},mainPaper:{width:"80%",padding:"8px 0 2px !important"},header:{padding:"0 10px 5px",display:"flex",alignItems:"center"},title:{fontSize:18,flex:1},legend:{opacity:.6,fontStyle:"italic"},popperModifiers:[{name:"offset",options:{offset:[0,10]}}],groupHeader:{position:"sticky",top:0,padding:"8px 10px",fontSize:13,fontWeight:500,color:"var(--md-sys-color-on-surface)"}},R=n.filter((function(e){return e.display.toLowerCase().indexOf(s.toLowerCase())>-1}));if(ax[S]){var _=ax[S].label(),M=_.title,I=_.legend;I=sx(I),C=u.createElement("div",{style:T.header},u.createElement("span",{style:T.title},M)," ",u.createElement("span",{style:T.legend},I))}return u.createElement(cg,{open:!!S,onClose:function(){return O(!1)},slotProps:{backdrop:{sx:{backgroundColor:T.backdropColor}}},sx:T.modalPosition},u.createElement(kv,{elevation:10,sx:T.mainPaper},C,u.createElement(sO,{id:"quick-search",fullWidth:!0,getOptionLabel:function(e){return"string"==typeof e?e:e.base||!e.repo?e.label:e.repo.getSlug()+e.label},filterOptions:function(e){return e},options:[].concat(JO(R),JO(f)),autoComplete:!0,openOnFocus:!0,selectOnFocus:!0,autoHighlight:!0,filterSelectedOptions:!1,popupIcon:u.createElement("span",null),slotProps:{paper:{elevation:10},popper:{modifiers:T.popperModifiers}},noOptionsText:u.createElement("div",{style:{padding:"8px 10px"}},e(v?466:478)),onChange:function(e,t){if(t&&ax[S]){var r=ax[S].callback(t),n=r.close,o=r.clear,i=r.error;n?(O(!1),o?(d([]),c("")):(a(t.label),d([t]))):i&&console.error(i)}},onInputChange:function(e,t){c(t),a(null)},renderInput:function(e){return u.createElement(Ew,$O({},e,{variant:"standard",fullWidth:!0,autoFocus:!0,placeholder:i||"",InputLabelProps:{sx:{fontSize:"1rem !important",marginLeft:"10px !important",marginTop:"-3px !important"}},InputProps:XO(XO({},e.InputProps),{},{startAdornment:u.createElement(UO,{position:"start"},u.createElement("span",{className:ax[S]&&ax[S].icon(),style:{marginLeft:10,marginRight:8}})),endAdornment:u.createElement("span",{style:{marginRight:10}},v?u.createElement(kO,{color:"inherit",size:20}):null,e.InputProps.endAdornment),disableUnderline:!0})}))},renderOption:function(e,t){var r=[],n=t.display||t.label||"";if(r.push(u.createElement("span",{className:"mdi mdi-folder-outline",style:{marginRight:10,marginLeft:-6,opacity:.6}})),P&&!t.base){t.repo&&(n=t.repo.getSlug()+n);var o=P.length;r.push(u.createElement("span",{style:{color:"rgba(0,0,0,.5)"}},n.substring(0,o))),n=n.substring(o)}if(t.basename){var i=n.toLowerCase().indexOf(t.basename.toLowerCase());r.push(u.createElement("span",null,n.substring(0,i))),r.push(u.createElement("span",{style:{fontWeight:400,backgroundColor:"rgba(255,255,0,.4)"}},n.substring(i,i+t.basename.length))),r.push(u.createElement("span",null,n.substring(i+t.basename.length)))}else r.push(u.createElement("span",null,n));return u.createElement("li",e,u.createElement("span",{style:{display:"inline"}},r))},groupBy:y?function(e){return e.groupLabel}:void 0,renderGroup:function(e){return u.createElement("li",{key:e.key},u.createElement("div",{style:T.groupHeader},e.group),u.createElement("ul",null,e.children))}})))}const ux="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",px=function(e){var t=e.children,r=e.theme,n=zo(),o=u.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Le({},e,t)}(n,r);return null!=e&&(e[ux]=null!==n),e}),[r,n]);return(0,ui.jsx)(Lo.Provider,{value:o,children:t})};function fx(e){return fx="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},fx(e)}var dx={};function mx(e){var t=Wo();return(0,ui.jsx)(hr.Provider,{value:"object"===fx(t)?t:dx,children:e.children})}const yx=function(e){var t=e.children,r=e.theme;return(0,ui.jsx)(px,{theme:r,children:(0,ui.jsx)(mx,{children:t})})};function hx(e){return hx="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},hx(e)}function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"";return p().createElement(u.Fragment,null,p().createElement(th,bx({className:"vertical_fit"+e,pydio:s,showTreeForWorkspace:!!s.user&&s.user.activeRepository},l)),p().createElement(Ex,{pydio:s,mode:"flex"}))},Y={top:[{id:"home",icon:"home-outline",text:b["ajax_gui.leftrail.buttons.home"],ignore:!w.getRepositoriesList().has("homepage"),active:"homepage"===w.activeRepository,onClick:function(){v.getActionByName("switch_to_homepage").apply()}},{id:"files",icon:"folder-multiple-outline",text:b["ajax_gui.leftrail.buttons.all-files"],active:"gateway"===w.getActiveRepositoryObject().accessType,onClick:function(){if("gateway"!==w.getActiveRepositoryObject().accessType){var e=[];if(w.getRepositoriesList().forEach((function(t){return e.push(t)})),e=e.filter((function(e){return"gateway"===e.accessType})),!e.length)return;e.sort((function(e,t){return e.getLabel().localeCompare(t.getLabel())}));var t=e.filter((function(e){return"workspace-personal"===e.getRepositoryType()}));if(t.length)return void s.triggerRepositoryChange(t[0].getId());var r=e.filter((function(e){return!e.getOwner()}));if(r.length)return void s.triggerRepositoryChange(r[0].getId());s.triggerRepositoryChange(e[0].getId())}},hoverBar:function(){return $(" rail-hover-bar")},activeBar:$},{id:"bookmarks",text:b[147],icon:"star-outline",onClick:function(){},hoverBar:function(){return p().createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",width:"100%",overflow:"hidden"},className:"rail-hover-bar"},p().createElement("div",{style:{fontSize:20,padding:16}},b[147]),p().createElement(hm,{pydio:s,asPopover:!1,useCache:!0,onRequestClose:function(){x(!1)}}))},hoverWidth:320},{id:"directory",text:b["ajax_gui.leftrail.buttons.directory"],ignore:!w.getRepositoriesList().has("directory"),active:"directory"===w.activeRepository,icon:"account-box-outline",onClick:function(){s.triggerRepositoryChange("directory")}}],bottom:[{id:"notifications",text:b["notification_center.1"],icon:"bell-outline",hoverWidth:320,alert:A>0,hoverBar:function(e,t){if(!e)return null;var r=e.ActivityList;return p().createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",width:"100%",overflow:"hidden"},className:"rail-hover-bar"},p().createElement("div",{style:{fontSize:20,padding:16}},b["notification_center.1"]),p().createElement(r,{items:t||[],style:{overflowY:"scroll",flex:1},groupByDate:!0,displayContext:"popover",onRequestClose:function(){x(!1)}}))}},{id:"theme",text:s.MessageHash["ajax_gui.leftrail.buttons.theme."+(d.darkMode?"light":"dark")],icon:"theme-light-dark",onClick:function(){var e=d.darkMode?"mui3-light":"mui3-dark";w.getIdmUser().then((function(t){return t.Attributes||(t.Attributes={}),t.Attributes.theme=e,new Gd.UserServiceApi(dc().getRestClient()).putUser(t.Login,t).then((function(e){s.refreshUserData()}))}))}}]},X=function(e){if(e.setHover=function(t){t&&(e.active&&!L||(e.hoverBar&&j(e),x(!!e.hoverBar)))},e.hover=O&&E&&E.id===e.id,!e.action)return e;var t=v.getActionByName(e.action);if(t.deny)return gx(gx({},e),{},{ignore:!0});var r=e.icon,n=void 0===r?t.options.icon_class:r,o=e.text,i=void 0===o?b[t.options.text_id]:o;return gx(gx({},e),{},{icon:n,text:i,onClick:function(){return t.options.callback()}})},J=E&&E.active&&E.activeBar&&L;h.style.width="auto",h.style.margin="0 auto";var Z,Q=o.width||74,ee=gx(gx({},o),{},{flexShrink:0,overflow:"hidden",paddingBottom:8});if(!y&&!L){var te=Y.top.filter((function(e){return e.active&&e.activeBar}));te.length&&(Z=te[0].activeBar())}var re={position:"absolute",display:"flex",flexDirection:"column",left:Q,top:0,bottom:0,width:0,transition:"width 350ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",background:r.background,zIndex:902,overflow:"hidden",boxShadow:"rgba(0, 0, 0, 0.16) 2px 0px 2px"},ne=E&&E.hoverWidth||294-Q;O&&(re.width=ne);var oe={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:10,zIndex:950,right:10,cursor:"pointer",borderRadius:"50%",height:24,width:24,fontSize:16,backgroundColor:"var(--md-sys-color-surface-variant)"},ie=Y.top.map(X).filter((function(e){return!e.ignore})),ae=Y.bottom.map(X).filter((function(e){return!e.ignore}));return p().createElement(Ss,{enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:Z?K:Q,height:"100%"},onResizeStop:function(e,t,r,n){return o=K+n.width,G(o),window.dispatchEvent(new Event("resize")),void w.setGUIPreference("Layout.RailPanel.ActiveWidth",o/Ll().getViewportWidth(),!0);var o},minWidth:Z?Q+50:Q,handleStyles:{right:{zIndex:900}},style:{transition:"width 550ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",zIndex:905}},p().createElement("div",{className:"left-panel vertical_fit",style:{width:"100%",height:"100%",display:"flex",overflow:E?"visible":null},onClick:c,onMouseOver:f},p().createElement("div",{className:"left-rail vertical_layout",style:ee},p().createElement(Dm,bx({pydio:s,controller:s.getController(),toolbars:["rail_user","zlogin"]},h,{actionBarStyle:{display:"none"},avatarStyle:{padding:0},displayLabel:!1,hideNotifications:!0,hideBookmarks:!0,popoverTargetPosition:"top",popoverStyle:{minWidth:200,marginTop:2,background:"var(--md-sys-color-surface)"},menuStyle:{width:200,listStyle:{background:"transparent"}},popoverHeaderAvatar:!0})),p().createElement("div",null,ie.map((function(e,t,r){return p().createElement(jx,bx({},e,{last:t===r.length-1}))}))),p().createElement("div",{className:"vertical_fit"}),p().createElement("div",null,ae.map((function(e,t,r){return p().createElement(jx,bx({iconOnly:!0},e,{last:t===r.length-1}))})))),Z&&p().createElement("div",{id:"left-rail-active-column",className:"vertical_layout"+(W?" with-rail-close-toggle":""),style:gx({flex:1,height:"100%",overflow:"hidden"},r),onMouseEnter:function(){return H(!0)},onMouseLeave:function(){return H(!1)}},Z,W&&p().createElement("div",{style:gx({},oe),onClick:function(){return B(!0)}},p().createElement("span",{className:"mdi mdi-chevron-double-left"}))),p().createElement("div",{style:re},p().createElement("div",{className:"vertical_layout"+(J?" with-rail-stick-toggle":""),style:gx({flex:1,height:"100%",position:"absolute",width:ne,right:0},r),onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)}},E&&E.hoverBar(_,C)),J&&p().createElement("div",{style:gx({},oe),onMouseEnter:function(){return x(!0)},onClick:function(){B(!1),x(!1)}},p().createElement("span",{className:"mdi mdi-chevron-double-right"})))))};function Cx(e){return Cx="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},Cx(e)}function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rx(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&t[0].contains(x().findDOMNode(e.target))||this.props.onCloseDrawerRequested()}}},{key:"render",value:function(){var e,t=this.props,r=t.pydio,n=t.tutorialComponent,o=t.onContextMenu,i=t.classes,a=t.style,l=t.leftPanelProps,s=t.children,c=t.drawerOpen,u=t.desktopStyle,f=void 0===u?{}:u,d=t.muiTheme,m=this.props.connectDropTarget||function(e){return e},y=function(e){if(Array.isArray(e))return Ix(e)}(e=i)||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 Ix(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ix(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.")}();if(c&&y.push("drawer-open"),void 0===l.workspacesListProps){var h=d.buildFSTemplate({});l.workspacesListProps=h.leftPanel.workspacesList,l.railPanelStyle=h.leftPanel.railPanelStyle}var b=[n,"mui3"===d.userTheme?p().createElement(kx,Mx({pydio:r},l)):p().createElement(ph,Mx({className:"left-panel",pydio:r},l)),p().createElement("div",{className:"desktop-container vertical_layout vertical_fit",style:f},s),p().createElement("span",{className:"context-menu"},p().createElement(Wx,{pydio:this.props.pydio})),p().createElement(cx,null),p().createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:'\n div[role="menu"]{\n background: var(--md-sys-color-surface-2);\n }\n div[role="menu"] span[role="menuitem"]{\n font-size: 14px !important;\n }\n'}})];return d["@mui"]&&(b=p().createElement(yx,{theme:d["@mui"]},b)),m(p().createElement("div",{style:Rx(Rx({},a),{},{overflow:"hidden"}),className:y.join(" "),onClick:this.closeDrawer.bind(this),onContextMenu:o},b))}}],r&&Ax(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component);Hx=Bx(Hx=Fx(Hx=(0,P.muiThemeable)()(Hx)));var qx=r(57345),Ux=r.n(qx);function Vx(e){return Vx="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},Vx(e)}function Kx(){return Kx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0||c.length>0)&&u.push(p().createElement(E.Divider,null)),s.length>0&&c.length>0&&s.push(p().createElement(E.Divider,null)),i=[].concat(a,l,u,Gx(s),Gx(c))),"previous_context"===o&&0===a.length&&(o=m?"all":d.getSlug()+"/"),p().createElement(Qx,Kx({value:o,onChange:function(e,t,r){n(r)},fullWidth:!0},eP.selectFieldV1Search),i)}}])&&Yx(t.prototype,r),n&&Yx(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(u.Component);function nP(e){return nP="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},nP(e)}function oP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function iP(e){for(var t=1;t=1099511627776?(t=Math.round(e/1099511627776*100)/100,r="T"):e>=1073741824?(t=Math.round(e/1073741824*100)/100,r="G"):e>=1048576?(t=Math.round(e/1048576*100)/100,r="M"):e>=1024&&(t=Math.round(e/1024*100)/100,r="k"),{size:t,unit:r}}},{key:"render",value:function(){var e=this,r=t().getMessages().byte_unit_symbol||"B",n=this.props.getMessage,o=this.propsToState(this.props),i=o.from,a=o.to,l=o.fromUnit,s=o.toUnit,c=o.fromInt,f=o.toInt,d=BP(BP({},$P.textFieldV1Search.inputStyle),{},{borderRadius:0}),m=BP(BP({},$P.textFieldV1Search.inputStyle),{},{borderRadius:$P.v1SearchRadiusLeft}),y={display:"flex"};return p().createElement(u.Fragment,null,p().createElement("div",{style:y},p().createElement("div",{style:{flex:2,marginRight:4}},p().createElement(KP,LP({},$P.textFieldV1Search,{inputStyle:d,type:"number",hintText:n(613),fullWidth:!0,value:i||"",onChange:function(t,r){r&&f&&Math.round(e.multiple(r,l))>f&&(r=a),e.update({from:r||0})}}))),p().createElement("div",{style:{marginLeft:4,flex:1}},p().createElement(GP,LP({},$P.selectFieldV1Search,{value:l,onChange:function(t,r,n){i&&f&&Math.round(e.multiple(a,n))>f&&(n=s),e.update({fromUnit:n})},fullWidth:!0}),p().createElement(E.MenuItem,{value:"",primaryText:r}),p().createElement(E.MenuItem,{value:"k",primaryText:"K"+r}),p().createElement(E.MenuItem,{value:"M",primaryText:"M"+r}),p().createElement(E.MenuItem,{value:"G",primaryText:"G"+r}),p().createElement(E.MenuItem,{value:"T",primaryText:"T"+r})))),p().createElement("div",{style:y},p().createElement("div",{style:{flex:2,marginRight:4}},p().createElement(KP,LP({},$P.textFieldV1Search,{inputStyle:m,fullWidth:!0,type:"number",hintText:n(614),value:a||"",onChange:function(t,r){r&&c&&Math.round(e.multiple(r,s)) ")),n.to&&(s+=cE(n.to).calendar(null,m));break;case"bytesize":p=a("2"),s="",n.from&&(s+=y().roundFileSize(n.from),n.to&&(s+=" <=> ")),n.to&&(s+=y().roundFileSize(n.to));break;case"share":switch(n){case"link":p=i.MessageHash["searchengine.share.option.link"];break;case"cell":p=i.MessageHash["searchengine.share.option.cell"];break;case"any":p=i.MessageHash["searchengine.share.option.any"]}break;default:"string"!=typeof n&&"number"!=typeof n||(s=n+"")}return{label:p,value:s}}}],null&&nE(r.prototype,null),n&&nE(r,n),Object.defineProperty(r,"prototype",{writable:!1}),e}();function pE(e){return pE="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},pE(e)}function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,j=P,k=!O&&!d&&P,C=n.SearchConstants,T=f.indexedContent,R=void 0!==T&&T,_=f.indexedMeta,M=void 0===_?[]:_,I=[{name:"basenameOrContent",label:o(R?"searchengine.field.basenameOrContent":1)},{name:C.KeyScope,type:"scope",label:o("searchengine.scope.title")},{name:C.KeyMetaShared,type:"share",label:o("searchengine.share.title")},{subheader:o(489)},{name:C.KeyMime,type:"mime",label:o("searchengine.format.title")}].concat(function(e){if(Array.isArray(e))return dE(e)}(e=M.map((function(e){return vE(vE({},e),{},{name:e.namespace,userDefined:!0})})))||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 dE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dE(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.")}(),[{subheader:o(498)},{name:C.KeyModifDate,type:"modiftime",label:o(4)},{name:C.KeyBytesize,type:"bytesize",label:o(2)}]),A=function(){t.setState({promptSearchLabel:!1,currentSearchLabel:""})},D=function(){l(m||x),A()};return p().createElement("div",{className:"search-advanced",style:vE({},a)},(O||d)&&p().createElement("div",{style:{display:"flex",alignItems:"center",margin:8,borderRadius:12,background:c.palette.mui3["surface-5"]}},d&&p().createElement("div",{style:{flex:1,paddingLeft:20}},p().createElement(xE,{focusOnMount:!0,fullWidth:!0,hintText:o("searchengine.query.save-label"),value:m||x||"",onChange:function(e,r){return t.setState({currentSearchLabel:r})},onKeyDown:function(e){"Enter"===e.key&&D()}})),!d&&p().createElement("div",{style:{flex:1,cursor:"pointer",fontSize:16,fontWeight:400,padding:"12px 20px"},onClick:function(){return t.setState({promptSearchLabel:!0})}},x),p().createElement("div",{style:{padding:"12px 20px",fontSize:15}},d&&p().createElement("a",{onClick:D,style:b,title:o("searchengine.query.action.save")},p().createElement("span",{className:"mdi mdi-content-save"})),d&&p().createElement("a",{onClick:A,style:b,title:o("54")},p().createElement("span",{className:"mdi mdi-close"})),!d&&p().createElement("a",{onClick:function(){return t.setState({promptSearchLabel:!0})},style:b,title:o("54")},p().createElement("span",{className:"mdi mdi-pencil"})),!d&&O&&p().createElement("a",{onClick:function(){window.confirm(o("searchengine.query.action.delete-confirm"))&&(s(O),A())},title:o("searchengine.query.action.delete")},p().createElement(EE,{style:vE(vE({},b),{},{width:16,height:16,marginBottom:-2})})))),p().createElement("div",{style:{display:"flex"}},p().createElement(E.Subheader,{style:vE(vE({},y),{},{marginTop:0,flex:1})},o(341)),(k||j)&&p().createElement("div",{style:h},k&&p().createElement("a",{onClick:function(){return t.setState({promptSearchLabel:!0})}},o("searchengine.query.action.save-new")),k&&j&&" | ",j&&p().createElement("a",{onClick:function(){return t.clearAll()}},o("searchengine.query.action.clear-all")))),I.map((function(e){return e.subheader?p().createElement(E.Subheader,{style:vE(vE({},y),{},{marginTop:0})},e.subheader):p().createElement(jE,fE({},S,{constants:C,name:e.name,label:e.label}),t.renderField(e))})))}}],n=[{key:"styles",get:function(){return{text:{}}}}],r&&mE(t.prototype,r),n&&mE(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(u.Component);const CE=kE=SE((0,P.muiThemeable)()(kE));function TE(e){return TE="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},TE(e)}function RE(e){return function(e){if(Array.isArray(e))return _E(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 _E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_E(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 _E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(g=[].concat(RE(g),RE(d))),g.length?p().createElement("div",{style:v.container},s&&p().createElement("div",{style:IE(IE({},v.tag),c)},s),g.map((function(e){return p().createElement("div",{style:v.tag},e)}))," ",m):null}}],r&&DE(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component);const FE=BE=(0,P.muiThemeable)()(BE);function WE(e){return WE="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},WE(e)}var HE=["fontSize","color"];function qE(){return qE=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?KE({backgroundColor:g.palette.mui3.tertiary||g.palette.accent1Color,color:g.palette.mui3["on-tertiary"]||"white"},F):{},H=KE(KE(KE({},ZE.filterButton),h.filterButton),W),q=H.fontSize,U=void 0===q?22:q,V=H.color,K=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(H,HE),G={fontSize:U,color:V},$={container:{borderRadius:20,background:g.palette.mui3["surface-variant"],color:g.palette.mui3["on-surface-variant"],display:"flex",alignItems:"center",padding:"2px 10px",marginRight:5,fontSize:13,height:25},value:{fontWeight:500}},Y=function(e){return b.MessageHash["searchengine.complete."+e]||e},X=[],J=[],Z=P();Z&&Z.length>0?X.push({text:"#advanced#",className:"advanced-filters-active",tooltipTitle:Y("activefilters-edit"),value:p().createElement(FE,{muiTheme:g,containerStyle:{paddingTop:6,fontSize:13,flex:1},searchTools:y,title:Y("activefilters"),titleTagStyle:{backgroundColor:"transparent"},showRemove:!1,append:[]})}):J.push({text:"#advanced#",className:"advanced-filters-option",icon:"mdi mdi-tune",value:p().createElement("span",{style:{display:"inline-block",padding:"8px 0"}},b.MessageHash["searchengine.advanced-filter.tooltip"])});var Q=[],ee=k&&k.getMatches();if(ee&&ee.length){var te=k.getRemaining(),re=p().createElement("span",{style:{display:"flex",flexWrap:"wrap",alignItems:"center"}},p().createElement("span",null,Y("suggestion.intro")," "),ee.map((function(t){var r=uE.blockRenderer(e,t.meta?t.meta:t,t.value),n=r.label,o=r.value;return o?p().createElement("span",{className:"nlpTag",style:$.container},n,": ",p().createElement("span",{style:$.value},o)):p().createElement("span",{className:"nlpTag",style:$.container},n)})),p().createElement("span",null,te?Y("suggestion.remain").replace("%s",te):"","?"));Q.push({text:"#nlp#",label:"#nlp#",value:re,icon:"mdi mdi-lightbulb-outline",group:Y("group.suggestion")})}var ne=[].concat(X,Q,UE(_.map((function(e){return{text:"#saved#"+e.searchID,label:"#saved#"+e.searchID,icon:"mdi mdi-content-save",value:e.searchLABEL,isSaved:!0,group:Y("group.saved")}}))),UE(T.map((function(e){return{text:e,label:e,value:e,icon:"mdi mdi-magnify",isLast:!0,group:Y("group.history")}}))),J);return w&&(ne=[]),p().createElement("div",{style:KE(KE(KE(KE(KE({},ZE.container),h.mainStyle),d),z),{},{transition:Ll().getBeziersTransition()}),ref:t},!w&&p().createElement(JE,{open:o,anchorEl:t.current,anchorOrigin:{horizontal:"right",vertical:"bottom"},targetOrigin:{horizontal:"right",vertical:"top"},onRequestClose:function(){c()},useLayerForClickAway:!0,style:{width:420,marginTop:7},zDepth:3},p().createElement(CE,{values:O,searchTools:y,getSearchOptions:j,onChange:function(e){return x(KE(KE({},O),e))},rootStyle:{paddingBottom:8,maxHeight:"80vh",overflowY:"auto"},showScope:!w,savedSearches:_,saveSearch:I,clearSavedSearch:M})),p().createElement(sO,{fullWidth:!0,slotProps:{paper:{elevation:5},popper:{modifiers:[{name:"offset",options:{offset:[0,10]}}]}},value:null,inputValue:l||N,renderInput:function(t){return p().createElement(Ew,qE({},t,{variant:"standard",fullWidth:!0,inputRef:r,placeholder:b.MessageHash["searchengine.main.placeholder"],inputProps:KE(KE({},t.inputProps),{},{style:KE({},h.textField)}),InputLabelProps:{sx:{fontSize:"1rem !important",marginLeft:"10px !important",marginTop:"-3px !important"}},InputProps:KE(KE({},t.InputProps),{},{startAdornment:p().createElement(UO,{position:"start"},p().createElement("span",{className:"mdi mdi-magnify",style:KE(KE({},ZE.magnifierStyle),h.magnifierStyle)})),endAdornment:p().createElement("span",null,t.InputProps.endAdornment,m&&!w&&p().createElement(E.IconButton,{onClick:c,tooltip:b.MessageHash["searchengine.advanced-filter.tooltip"],style:K,iconStyle:G,iconClassName:"mdi mdi-tune"}),m&&w&&S),disableUnderline:!0}),onFocus:function(){!function(){var t=e.active,r=e.onRequestOpen,n=e.searchTools,o=n.values,i=n.setValues;t||i(o),r()}()}}))},onInputChange:function(e,t){e&&(f(t),s(t))},onChange:function(e,t){f(t?"string"==typeof t?t:t.text:"")},popupIcon:null,options:v?[]:ne,getOptionLabel:function(e){return"string"==typeof e?e:"#nlp#"===e.text?N:e.text.indexOf("#saved#")>-1?e.value:e.text},renderOption:function(e,t,r){var n=[e.className||"",t.className||""].join(" ");return p().createElement("li",qE({},e,{className:n,title:t.tooltipTitle}),t.icon&&p().createElement("span",{style:{opacity:.5,marginRight:10},className:t.icon}),t.value)},filterOptions:function(e){return N?e.filter((function(e){return!((e.isLast||e.isSaved)&&-1===e.value.toLowerCase().indexOf(N.toLowerCase()))})):e},groupBy:function(e){return e.group},renderGroup:function(e){return e.group?p().createElement("li",{key:e.key},p().createElement("div",{style:ZE.groupHeader},e.group),p().createElement("ul",{style:{marginBottom:10}},e.children)):e.children},isOptionEqualToValue:function(e,t){return e.text===t.text},getOptionDisabled:function(e){return e.disable},blurOnSelect:!0,autoComplete:!0,freeSolo:!0,disableClearable:!0}),p().createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:".MuiAutocomplete-option.advanced-filters-active{border-bottom: 1px solid var(--md-sys-color-outline-variant);} .MuiAutocomplete-option.advanced-filters-option{border-top: 1px solid var(--md-sys-color-outline-variant);} ".concat(A)}}))}const ej=QE=(0,P.muiThemeable)()(QE);function tj(e){return tj="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},tj(e)}function rj(){return rj=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(l=s)}return t.state={infoPanelOpen:!o,infoPanelToggle:!n,drawerOpen:!1,rightColumnState:r,rightColumnWidth:l,searchFormState:{},searchView:!1},t}return t=a,r=[{key:"setSearchView",value:function(){var e=this.props.pydio;this.state.searchView||this.setState({searchViewTransition:!0,workspaceRootView:!1});var t=e.getContextHolder();t.setSelectedNodes([]),t.getContextNode()!==t.getSearchNode()&&this.setState({previousContext:t.getContextNode()})}},{key:"unsetSearchView",value:function(){var e=this.props.pydio;this.state.searchView&&this.setState({searchViewTransition:!0});var t=e.getContextHolder(),r=this.state.previousContext;t.setSelectedNodes([]);var n=r||t.getRootNode();t.setContextNode(n,!0),this.setState({previousContext:null,workspaceRootView:n.isRoot()})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.pydio,r=(0,se.debounce)((function(){window.dispatchEvent(new Event("resize")),e.setState({searchViewTransition:!1})}),350);this._ctxObserver=function(){var n=t.getContextHolder().getContextNode()===t.getContextHolder().getSearchNode();n!==e.state.searchView&&e.setState({searchView:n,searchViewTransition:!0},r);var o=t.getContextHolder().getContextNode().isRoot();o!==e.state.workspaceRootView&&e.setState({workspaceRootView:o})},t.observe("context_changed",this._ctxObserver)}},{key:"componentWillUnmount",value:function(){this.props.pydio.stopObserving("context_changed",this._ctxObserver)}},{key:"openRightPanel",value:function(e){var t=this,r=this.state.rightColumnState;e!==r?this.setState({rightColumnState:e},(function(){var r=t.state.infoPanelOpen;"info-panel"!==e&&(r=!0),localStorage.setItem("pydio.layout.rightColumnState",e),localStorage.setItem("pydio.layout.infoPanelToggle","open"),localStorage.setItem("pydio.layout.infoPanelOpen",r?"open":"closed"),t.setState({infoPanelToggle:!0,infoPanelOpen:r},(function(){return t.resizeAfterTransition()}))})):this.closeRightPanel()}},{key:"closeRightPanel",value:function(){var e=this;this.setState({infoPanelToggle:!1},(function(){e.resizeAfterTransition()})),localStorage.setItem("pydio.layout.rightColumnState",""),localStorage.setItem("pydio.layout.infoPanelToggle","closed")}},{key:"resizeAfterTransition",value:function(){this.state.infoPanelToggle||this.setState({rightColumnState:null}),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),250),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),500)}},{key:"infoPanelContentChange",value:function(e){var t=this;this.setState({infoPanelOpen:e>0},(function(){return t.resizeAfterTransition()}))}},{key:"openDrawer",value:function(e){e.stopPropagation(),this.setState({drawerOpen:!0})}},{key:"render",value:function(){var e=this,t=this.props,r=t.muiTheme,n=t.pydio,o=r.breakpoint,i=void 0===o?"md":o,a=r.userTheme,l="s"===i||"xs"===i,s="xs"===i,c=n.user?n.user.getPreference("gui_preferences",!0):{},u=n.getPluginConfigs("gui.ajax").get("ENABLE_WELCOME_TOUR"),f=n.getContextHolder(),d=f.getContextNode()===f.getSearchNode(),m=this.state,y=m.searchViewTransition,h=(void 0===m.workspaceRootView&&f.getContextNode().isRoot(),this.state.headerLarge,!n.getPluginConfigs("action.advanced_settings").get("GLOBAL_DISABLE_CHATS")&&!s),b=!n.getPluginConfigs("action.user").get("DASH_DISABLE_ADDRESS_BOOK")&&!l,v=!s;if(h){var g=n.user.getRepositoriesList().get(n.user.activeRepository);g&&!g.getOwner()&&(h=!1)}var w=this.state,S=w.drawerOpen,O=w.rightColumnState,x=w.rightColumnWidth,P=w.displayMode,E=w.sortingInfo,j=!1;h||"chat"!==O||(O="info-panel"),v||"info-panel"!==O||(O=""),O&&!s||(j=!0);var k,C=r.buildFSTemplate({headerHeight:72,searchView:d,rightColumnClosed:j,displayMode:P}),T=this.props,R=T.style,_=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(T,dj);u&&!c["WelcomeComponent.Pydio8.TourGuide.FSTemplate"]?k=p().createElement(id,{pydio:n}):"mui3"===a&&c["WelcomeComponent.Pydio8.TourGuide.FSTemplate"]&&!c["WelcomeComponent.MUITour"]&&(k=p().createElement(Nf,{pydio:n}));var M={headerHeight:72,style:C.leftPanel.masterStyle,railPanelStyle:C.leftPanel.railPanelStyle,closed:d||l,drawerOpen:S,userWidgetProps:{color:C.userWidgetStyle.color,mergeButtonInAvatar:!0,popoverDirection:"left",actionBarStyle:{marginTop:0},style:C.userWidgetStyle},workspacesListProps:hj({},C.leftPanel.workspacesList)},I=this.props,A=I.searchTools,D=I.searchTools,N=D.values,L=D.setValues,z=D.facets,B=D.activeFacets,F=D.toggleFacet,W=D.searchLoading;return d&&(M.workspacesListProps=hj(hj({},M.workspacesListProps),{},{searchView:!0,values:N,setValues:L,searchLoading:W,facets:z,activeFacets:B,toggleFacet:F})),"mui3"!==r.userTheme&&(C.searchForm.textField={color:"white"}),p().createElement(Hx,{pydio:n,style:hj(hj({},R),C.masterStyle),desktopStyle:d?{marginLeft:0}:{},classes:["vertical_fit","react-fs-template"],tutorialComponent:k,drawerOpen:S,leftPanelProps:M,onCloseDrawerRequested:function(){e.setState({drawerOpen:!1})}},p().createElement(pj,{pydio:n,muiTheme:r,styles:C,headerHeight:72,sortingInfo:"detail"!==P&&"masonry"!==P?E:null,searchView:d,searchViewTransition:y,searchTools:A,onUpdateSearchView:function(t){return t?e.setSearchView():e.unsetSearchView()},showChatTab:h,showInfoPanel:v,showAddressBook:b,rightColumnState:O,onOpenRightPanel:function(t){return e.openRightPanel(t)},onOpenDrawer:function(t){return e.openDrawer(t)}}),p().createElement("div",{style:{display:"flex",flex:1,overflow:"hidden"}},d&&p().createElement(th,mj({className:"left-panel",pydio:n,showTreeForWorkspace:!!n.user&&n.user.activeRepository},M.workspacesListProps)),p().createElement(Re,{ref:"list",key:d?"search-results":"files-list",pydio:n,dataModel:n.getContextHolder(),searchResults:d,searchScope:N?N.scope:null,searchLoading:W,onDisplayModeChange:function(t){e.setState({displayMode:t})},onSortingInfoChange:function(t){var r=e.state.sortingInfo,n=void 0===r?{}:r;n.attribute===t.attribute&&n.direction===t.direction||e.setState({sortingInfo:t})},onScroll:function(t){var r=t.scrollTop;return e.setState({headerLarge:r<10})},style:C.listStyle}),p().createElement(Ss,{enable:{top:!1,right:!1,bottom:!1,left:!j,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},style:{transition:"width 550ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},size:{width:j?0:x,height:"100%"},onResizeStop:function(t,r,n,o){var i=x+o.width;e.setState({rightColumnWidth:i}),localStorage.setItem("pydio.layout.rightColumnWidth",i+""),e.resizeAfterTransition()}},"info-panel"===O&&p().createElement(zp,mj({},_,{dataModel:n.getContextHolder(),onRequestClose:function(){e.closeRightPanel()},onContentChange:this.infoPanelContentChange.bind(this),style:C.infoPanel.masterStyle,mainEmptyStateProps:{iconClassName:"",primaryTextId:"ajax_gui.infopanel.empty.select.file",style:{minHeight:180,backgroundColor:"transparent",padding:"0 20px"}}})),"chat"===O&&p().createElement(yd,{pydio:n,style:C.otherPanelsStyle,zDepth:0,onRequestClose:function(){e.closeRightPanel()}}),"address-book"===O&&p().createElement(Ud,{pydio:n,style:C.otherPanelsStyle,zDepth:0,onRequestClose:function(){e.closeRightPanel()}}))),p().createElement(Sp,_))}}],r&&vj(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component);function Pj(e){return Pj="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},Pj(e)}function Ej(e,t){for(var r=0;r10){var c=l.length-10;l=l.slice(0,10),i=p().createElement("div",null,"... and ",c," more.")}var u=s.palette.mui3?s.palette.mui3["outline-variant-50"]:"#eee";return p().createElement(Td,ik({},this.props,{primaryToolbars:o}),p().createElement("div",{style:{padding:"0"}},l.map((function(e){return p().createElement("div",{style:{display:"flex",alignItems:"center",borderBottom:"1px solid "+u}},p().createElement(V,{key:e.getPath(),style:{height:50,width:50,fontSize:25,flexShrink:0},node:e,loadThumbnail:!0,richPreview:!1}),p().createElement("div",{style:{flex:1,fontSize:14,fontWeight:500,marginLeft:6,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},e.getLabel()))})),i))}var f=!!this.props.node.getMetadata().get("Processing");return o.push("info_panel_share"),p().createElement(Td,ik({},this.props,{primaryToolbars:o}),p().createElement(V,{key:this.props.node.getPath(),style:{backgroundColor:"white",height:200,padding:0},node:this.props.node,loadThumbnail:this.state.isLeaf&&!f,richPreview:this.state.isLeaf,processing:f}))}}],r&&ak(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p().Component);function uk(e){return uk="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},uk(e)}function pk(){return pk=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r {return {...m, name: m.namespace}}), // copy namespace prop to name + ...indexedMeta.map(m => {return {...m, name: m.namespace, userDefined: true}}), // copy namespace prop to name {subheader:getMessage(498)}, {name:kk.KeyModifDate, type: 'modiftime', label: getMessage(4)}, {name:kk.KeyBytesize, type:'bytesize', label: getMessage(2)},