@reltio/hierarchy 1.4.73 → 1.4.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bundle.js +1 -1
  2. package/package.json +4 -4
package/bundle.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see bundle.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/Done"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/KeyboardArrowLeft"),require("@mui/icons-material/KeyboardArrowRight"),require("@mui/icons-material/MoreVert"),require("@mui/material/Avatar"),require("@mui/material/Box"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Fade"),require("@mui/material/IconButton"),require("@mui/material/LinearProgress"),require("@mui/material/Link"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n"));else if("function"==typeof define&&define.amd)define(["@mui/icons-material/Add","@mui/icons-material/ArrowDropDown","@mui/icons-material/Cancel","@mui/icons-material/Close","@mui/icons-material/Done","@mui/icons-material/HighlightOff","@mui/icons-material/KeyboardArrowLeft","@mui/icons-material/KeyboardArrowRight","@mui/icons-material/MoreVert","@mui/material/Avatar","@mui/material/Box","@mui/material/Button","@mui/material/Checkbox","@mui/material/Chip","@mui/material/Fade","@mui/material/IconButton","@mui/material/LinearProgress","@mui/material/Link","@mui/material/Menu","@mui/material/MenuItem","@mui/material/Paper","@mui/material/Popper","@mui/material/Portal","@mui/material/TextField","@mui/material/Toolbar","@mui/material/Tooltip","@mui/material/Typography","@mui/material/styles","@mui/styles/StylesProvider","@mui/styles/createGenerateClassName","@mui/styles/withStyles","classnames","mdm-module","mdm-sdk","moment","prop-types","ramda","react","react-dom","react-redux","ui-i18n"],t);else{var n="object"==typeof exports?t(require("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/Done"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/KeyboardArrowLeft"),require("@mui/icons-material/KeyboardArrowRight"),require("@mui/icons-material/MoreVert"),require("@mui/material/Avatar"),require("@mui/material/Box"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Fade"),require("@mui/material/IconButton"),require("@mui/material/LinearProgress"),require("@mui/material/Link"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n")):t(e["@mui/icons-material/Add"],e["@mui/icons-material/ArrowDropDown"],e["@mui/icons-material/Cancel"],e["@mui/icons-material/Close"],e["@mui/icons-material/Done"],e["@mui/icons-material/HighlightOff"],e["@mui/icons-material/KeyboardArrowLeft"],e["@mui/icons-material/KeyboardArrowRight"],e["@mui/icons-material/MoreVert"],e["@mui/material/Avatar"],e["@mui/material/Box"],e["@mui/material/Button"],e["@mui/material/Checkbox"],e["@mui/material/Chip"],e["@mui/material/Fade"],e["@mui/material/IconButton"],e["@mui/material/LinearProgress"],e["@mui/material/Link"],e["@mui/material/Menu"],e["@mui/material/MenuItem"],e["@mui/material/Paper"],e["@mui/material/Popper"],e["@mui/material/Portal"],e["@mui/material/TextField"],e["@mui/material/Toolbar"],e["@mui/material/Tooltip"],e["@mui/material/Typography"],e["@mui/material/styles"],e["@mui/styles/StylesProvider"],e["@mui/styles/createGenerateClassName"],e["@mui/styles/withStyles"],e.classnames,e["mdm-module"],e["mdm-sdk"],e.moment,e["prop-types"],e.ramda,e.react,e["react-dom"],e["react-redux"],e["ui-i18n"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(e,t,n,r,o,i,a,l,s,c,u,d,f,p,h,m,v,g,y,b,x,E,C,w,_,k,O,S,A,P,M,R,T,N,I,L,D,F,j,z,B){return(()=>{var H={947:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HierarchyScreen:()=>iE});var r=n(8156),o=n.n(r);const i="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect;var a=n(4616);const l=e=>{const t=r.createContext({value:{current:e},version:{current:-1},listeners:[]});var n;return t.Provider=(n=t.Provider,e=>{const t=r.useRef(e.value),o=r.useRef(0),l=r.useRef();return l.current||(l.current={value:t,version:o,listeners:[]}),i((()=>{t.current=e.value,o.current+=1,(0,a.unstable_runWithPriority)(a.unstable_NormalPriority,(()=>{l.current.listeners.forEach((t=>{t([o.current,e.value])}))}))}),[e.value]),r.createElement(n,{value:l.current},e.children)}),delete t.Consumer,t};var s=n(2396),c=n(5751),u=n.n(c),d=n(8310),f=n.n(d),p=n(3288),h=n(1733),m=n.n(h),v=n(4176);const g=(e,t)=>{const n=r.useContext(e),{value:{current:o},version:{current:a},listeners:l}=n,s=t(o),[c,u]=r.useReducer(((e,n)=>{if(!n)return[o,s];if(n[0]<=a)return y(e[1],s)?e:[o,s];try{if(y(e[0],n[1]))return e;const r=t(n[1]);return y(e[1],r)?e:[n[1],r]}catch(e){}return[e[0],e[1]]}),[o,s]);return y(c[1],s)||u(void 0),i((()=>(l.push(u),()=>{const e=l.indexOf(u);l.splice(e,1)})),[l]),c[1]},y="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},b=l({}),x=l({}),E=l({}),C=e=>g(x,e),w=()=>C((e=>e.uiPath)),_=()=>C((e=>e.entity)),k=()=>C((e=>e.historyEvent)),O=()=>C((e=>e.metadata)),S=()=>C((e=>{var t;return null===(t=e.user)||void 0===t?void 0:t.username})),A=()=>C((e=>{var t;return null===(t=e.tenant)||void 0===t?void 0:t.id})),P=()=>C((e=>e.searchNavigationData)),M=e=>g(b,(t=>t[e]));var R=n(1461),T=n(7896),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};const I="object"===("undefined"==typeof window?"undefined":N(window))&&"object"===("undefined"==typeof document?"undefined":N(document))&&9===document.nodeType;function L(e){return L="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},L(e)}function D(e){var t=function(e){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(t)?t:t+""}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D(r.key),r)}}function j(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var z=n(1665),B=n(753),H={}.constructor;function V(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(V);if(e.constructor!==H)return e;var t={};for(var n in e)t[n]=V(e[n]);return t}function U(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=V(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var K=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Z=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=K(e[n]," ");else t=K(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function q(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function W(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function $(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var l=q(n),s=l.linebreak,c=l.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var p=d[f];null!=p&&(r&&(r+=s),r+=W(f+":"+c+Z(p)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=s),r+=W(h+":"+c+Z(m)+";",i))}for(var v in t){var g=t[v];null!=g&&"fallbacks"!==v&&(r&&(r+=s),r+=W(v+":"+c+Z(g)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+s+r+s),W(""+e+c+"{"+r,--i)+W("}",i)):r}var G=/([[\].#*$><+~=|^:(),"'`\s])/g,Y="undefined"!=typeof CSS&&CSS.escape,X=function(e){return Y?Y(e):e.replace(G,"\\$1")},Q=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var s=this.options.sheet;return s&&s.attached,this},e}(),J=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,s=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=s((0,B.Z)((0,B.Z)(o)),l),o.selectorText="."+X(o.id)),o}(0,z.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Z(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,T.Z)({},e,{allowEmpty:!0}):e;return $(this.selectorText,this.style,n)},j(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(Q),ee={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new J(e,t,n)}},te={indent:1,children:!0},ne=/@([\w-]+)/,re=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(ne);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Se((0,T.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=te);var t=q(e).linebreak;if(null==e.indent&&(e.indent=te.indent),null==e.children&&(e.children=te.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),oe=/@container|@media|@supports\s+/,ie={onCreateRule:function(e,t,n){return oe.test(e)?new re(e,t,n):null}},ae={indent:1,children:!0},le=/@keyframes\s+([\w-]+)/,se=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(le);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var l in this.id=!1===o?this.name:X(a(this,i)),this.rules=new Se((0,T.Z)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,T.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ae);var t=q(e).linebreak;if(null==e.indent&&(e.indent=ae.indent),null==e.children&&(e.children=ae.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),ce=/@keyframes\s+/,ue=/\$([\w-]+)/g,de=function(e,t){return"string"==typeof e?e.replace(ue,(function(e,n){return n in t?t[n]:e})):e},fe=function(e,t,n){var r=e[t],o=de(r,n);o!==r&&(e[t]=o)},pe={onCreateRule:function(e,t,n){return"string"==typeof e&&ce.test(e)?new se(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&fe(e,"animation-name",n.keyframes),"animation"in e&&fe(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return de(e,r.keyframes);default:return e}}},he=function(e){function t(){return e.apply(this,arguments)||this}return(0,z.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,T.Z)({},e,{allowEmpty:!0}):e;return $(this.key,this.style,n)},t}(Q),me={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new he(e,t,n):null}},ve=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=q(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=$(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return $(this.at,this.style,e)},e}(),ge=/@font-face/,ye={onCreateRule:function(e,t,n){return ge.test(e)?new ve(e,t,n):null}},be=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return $(this.key,this.style,e)},e}(),xe={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new be(e,t,n):null}},Ee=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Ce={"@charset":!0,"@import":!0,"@namespace":!0},we={onCreateRule:function(e,t,n){return e in Ce?new Ee(e,t,n):null}},_e=[ee,ie,pe,me,ye,xe,we],ke={process:!0},Oe={force:!0,process:!0},Se=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,l=r.Renderer,s=r.generateId,c=r.scoped,u=(0,T.Z)({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:l,generateId:s,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+X(this.classes[d]));var f=U(d,t,u);if(!f)return null;this.register(f);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=(0,T.Z)({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof J?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof se&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof J?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof se&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=ke);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t.style;if(i.onUpdate(n,t,a,r),r.process&&l&&l!==t.style){for(var s in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[s];c!==l[s]&&t.prop(s,c,Oe)}for(var u in l){var d=t.style[u],f=l[u];null==d&&d!==f&&t.prop(u,null,Oe)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=q(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Ae=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,T.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Se(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Pe=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Me=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,R.Z)(t,["attached"]),o=q(r).linebreak,i="",a=0;a<this.registry.length;a++){var l=this.registry[a];null!=n&&l.attached!==n||(i&&(i+=o),i+=l.toString(r))}return i},j(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Re=new Me,Te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Ne="2f1acc6c3a606b082e5eef5e54414ffb";null==Te[Ne]&&(Te[Ne]=0);var Ie=Te[Ne]++,Le=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Ie+o+t:i+n.key+"-"+Ie+(o?"-"+o:"")+"-"+t}},De=function(e){var t;return function(){return t||(t=e()),t}},Fe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},je=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Z(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},ze=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Be=function(e,t){return e.selectorText=t,e.selectorText===t},He=De((function(){return document.querySelector("head")}));var Ve=De((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ue=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Ke=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ze=function(){function e(e){this.getPropertyValue=Fe,this.setProperty=je,this.removeProperty=ze,this.setSelector=Be,this.hasInsertedRules=!1,this.cssRules=[],e&&Re.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=Ve();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=Re.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=He(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else He().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Ke(n,t);if(!1===(o=Ue(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var l=Ke(n,t),s=Ue(n,a,l);return!1!==s&&(this.hasInsertedRules=!0,this.refCssRule(e,l,s),s)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Ae&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),qe=0,We=function(){function e(e){this.id=qe++,this.version="10.10.0",this.plugins=new Pe,this.options={id:{minify:!1},createGenerateId:Le,Renderer:I?Ze:null,plugins:[]},this.generateId=Le({minify:!1});for(var t=0;t<_e.length;t++)this.plugins.use(_e[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,T.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Re.index?0:Re.index+1);var r=new Ae(e,(0,T.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Re.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=(0,T.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=U(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),$e=function(e){return new We(e)},Ge="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ye(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Ye(r);i&&(t||(t={}),t[n]=i)}}return t}function Xe(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const o=(0,T.Z)({},t);return Object.keys(n).forEach((e=>{n[e]&&(o[e]=`${t[e]} ${n[e]}`)})),o}$e();const Qe={set:(e,t,n,r)=>{let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},Je=Qe,et=r.createContext(null);function tt(){var e;const t=r.useContext(et);return null!=(e=null==t?void 0:t.$$material)?e:t}var nt=n(5099),rt=n.n(nt);const ot="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",it=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var at=Date.now(),lt="fnValues"+at,st="fnStyle"+ ++at;var ct="@global",ut=function(){function e(e,t,n){for(var r in this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Se((0,T.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),dt=function(){function e(e,t,n){this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,T.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ft=/\s*,\s*/g;function pt(e,t){for(var n=e.split(ft),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var ht=/\s*,\s*/g,mt=/&/g,vt=/\$([\w-]+)/g;var gt=/[A-Z]/g,yt=/^ms-/,bt={};function xt(e){return"-"+e.toLowerCase()}const Et=function(e){if(bt.hasOwnProperty(e))return bt[e];var t=e.replace(gt,xt);return bt[e]=yt.test(t)?"-"+t:t};function Ct(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:Et(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ct):t.fallbacks=Ct(e.fallbacks)),t}var wt=Ge&&CSS?CSS.px:"px",_t=Ge&&CSS?CSS.ms:"ms",kt=Ge&&CSS?CSS.percent:"%";function Ot(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var St=Ot({"animation-delay":_t,"animation-duration":_t,"background-position":wt,"background-position-x":wt,"background-position-y":wt,"background-size":wt,border:wt,"border-bottom":wt,"border-bottom-left-radius":wt,"border-bottom-right-radius":wt,"border-bottom-width":wt,"border-left":wt,"border-left-width":wt,"border-radius":wt,"border-right":wt,"border-right-width":wt,"border-top":wt,"border-top-left-radius":wt,"border-top-right-radius":wt,"border-top-width":wt,"border-width":wt,"border-block":wt,"border-block-end":wt,"border-block-end-width":wt,"border-block-start":wt,"border-block-start-width":wt,"border-block-width":wt,"border-inline":wt,"border-inline-end":wt,"border-inline-end-width":wt,"border-inline-start":wt,"border-inline-start-width":wt,"border-inline-width":wt,"border-start-start-radius":wt,"border-start-end-radius":wt,"border-end-start-radius":wt,"border-end-end-radius":wt,margin:wt,"margin-bottom":wt,"margin-left":wt,"margin-right":wt,"margin-top":wt,"margin-block":wt,"margin-block-end":wt,"margin-block-start":wt,"margin-inline":wt,"margin-inline-end":wt,"margin-inline-start":wt,padding:wt,"padding-bottom":wt,"padding-left":wt,"padding-right":wt,"padding-top":wt,"padding-block":wt,"padding-block-end":wt,"padding-block-start":wt,"padding-inline":wt,"padding-inline-end":wt,"padding-inline-start":wt,"mask-position-x":wt,"mask-position-y":wt,"mask-size":wt,height:wt,width:wt,"min-height":wt,"max-height":wt,"min-width":wt,"max-width":wt,bottom:wt,left:wt,top:wt,right:wt,inset:wt,"inset-block":wt,"inset-block-end":wt,"inset-block-start":wt,"inset-inline":wt,"inset-inline-end":wt,"inset-inline-start":wt,"box-shadow":wt,"text-shadow":wt,"column-gap":wt,"column-rule":wt,"column-rule-width":wt,"column-width":wt,"font-size":wt,"font-size-delta":wt,"letter-spacing":wt,"text-decoration-thickness":wt,"text-indent":wt,"text-stroke":wt,"text-stroke-width":wt,"word-spacing":wt,motion:wt,"motion-offset":wt,outline:wt,"outline-offset":wt,"outline-width":wt,perspective:wt,"perspective-origin-x":kt,"perspective-origin-y":kt,"transform-origin":kt,"transform-origin-x":kt,"transform-origin-y":kt,"transform-origin-z":kt,"transition-delay":_t,"transition-duration":_t,"vertical-align":wt,"flex-basis":wt,"shape-margin":wt,size:wt,gap:wt,grid:wt,"grid-gap":wt,"row-gap":wt,"grid-row-gap":wt,"grid-column-gap":wt,"grid-template-rows":wt,"grid-template-columns":wt,"grid-auto-rows":wt,"grid-auto-columns":wt,"box-shadow-x":wt,"box-shadow-y":wt,"box-shadow-blur":wt,"box-shadow-spread":wt,"font-line-height":wt,"text-shadow-x":wt,"text-shadow-y":wt,"text-shadow-blur":wt});function At(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=At(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=At(o,t[o],n);else for(var i in t)t[i]=At(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||St[e];return!a||0===t&&a===wt?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e,t){if(e){if("string"==typeof e)return Pt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(e,t):void 0}}function Rt(e){return function(e){if(Array.isArray(e))return Pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Mt(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.")}()}var Tt="",Nt="",It="",Lt="",Dt=I&&"ontouchstart"in document.documentElement;if(I){var Ft={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jt=document.createElement("p").style;for(var zt in Ft)if(zt+"Transform"in jt){Tt=zt,Nt=Ft[zt];break}"Webkit"===Tt&&"msHyphens"in jt&&(Tt="ms",Nt=Ft.ms,Lt="edge"),"Webkit"===Tt&&"-apple-trailing-word"in jt&&(It="apple")}var Bt=Tt,Ht=Nt,Vt=It,Ut=Lt,Kt=Dt,Zt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Bt?"-webkit-"+e:Ht+e)}},qt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Bt?Ht+"print-"+e:e)}},Wt=/[-\s]+(.)?/g;function $t(e,t){return t?t.toUpperCase():""}function Gt(e){return e.replace(Wt,$t)}function Yt(e){return Gt("-"+e)}var Xt,Qt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Bt){var n="mask-image";if(Gt(n)in t)return e;if(Bt+Yt(n)in t)return Ht+e}return e}},Jt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Vt||Kt?e:Ht+e)}},en={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Ht+e)}},tn={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Ht+e)}},nn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Bt||"ms"===Bt&&"edge"!==Ut?Ht+e:e)}},rn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Bt||"ms"===Bt||"apple"===Vt?Ht+e:e)}},on={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Bt?"WebkitColumn"+Yt(e)in t&&Ht+"column-"+e:"Moz"===Bt&&"page"+Yt(e)in t&&"page-"+e)}},an={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Bt)return e;var n=e.replace("-inline","");return Bt+Yt(n)in t&&Ht+n}},ln={supportedProperty:function(e,t){return Gt(e)in t&&e}},sn={supportedProperty:function(e,t){var n=Yt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Bt+n in t?Ht+e:"Webkit"!==Bt&&"Webkit"+n in t&&"-webkit-"+e}},cn={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Bt?""+Ht+e:e)}},un={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Bt?Ht+"scroll-chaining":e)}},dn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},fn={supportedProperty:function(e,t){var n=dn[e];return!!n&&Bt+Yt(n)in t&&Ht+n}},pn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},hn=Object.keys(pn),mn=function(e){return Ht+e},vn={supportedProperty:function(e,t,n){var r=n.multiple;if(hn.indexOf(e)>-1){var o=pn[e];if(!Array.isArray(o))return Bt+Yt(o)in t&&Ht+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Bt+Yt(o[0])in t))return!1;return o.map(mn)}return!1}},gn=[Zt,qt,Qt,Jt,en,tn,nn,rn,on,an,ln,sn,cn,un,fn,vn],yn=gn.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),bn=gn.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Rt(t.noPrefill)),e}),[]),xn={};if(I){Xt=document.createElement("p");var En=window.getComputedStyle(document.documentElement,"");for(var Cn in En)isNaN(Cn)||(xn[En[Cn]]=En[Cn]);bn.forEach((function(e){return delete xn[e]}))}function wn(e,t){if(void 0===t&&(t={}),!Xt)return e;if(null!=xn[e])return xn[e];"transition"!==e&&"transform"!==e||(t[e]=e in Xt.style);for(var n=0;n<yn.length&&(xn[e]=yn[n](e,Xt.style,t),!xn[e]);n++);try{Xt.style[e]=""}catch(e){return!1}return xn[e]}var _n,kn={},On={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Sn=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function An(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?wn(t):", "+wn(n))||t||n}function Pn(e,t){var n=t;if(!_n||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=kn[r])return kn[r];try{_n.style[e]=n}catch(e){return kn[r]=!1,!1}if(On[e])n=n.replace(Sn,An);else if(""===_n.style[e]&&("-ms-flex"===(n=Ht+n)&&(_n.style[e]="-ms-flexbox"),_n.style[e]=n,""===_n.style[e]))return kn[r]=!1,!1;return _n.style[e]="",kn[r]=n,kn[r]}I&&(_n=document.createElement("p"));var Mn=n(2322);const Rn=$e({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=U(e,{},n);return r[st]=t,r},onProcessStyle:function(e,t){if(lt in t||st in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[lt]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[st];i&&(o.style=i(e)||{});var a=o[lt];if(a)for(var l in a)o.prop(l,a[l](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===ct)return new ut(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new dt(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[ct]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,T.Z)({},n,{selector:pt(i,e.selector)}));delete r[ct]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===ct){var i=pt(o.substr(7),e.selector);t.addRule(i,r[o],(0,T.Z)({},n,{selector:i})),delete r[o]}}(e,t))}},function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(ht),r=e.split(ht),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(mt,a):a+" "+s}return o}function n(e,t,n){if(n)return(0,T.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,T.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,s=o,c=s.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),f="@"===u[0];if(d||f){if(a=n(s,c,a),d){var p=t(u,s.selector);l||(l=e(c,i)),p=p.replace(vt,l);var h=s.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],(0,T.Z)({},a,{selector:p})):c.addRule(h,r[u],(0,T.Z)({},a,{selector:p}))}else f&&c.addRule(u,{},a).addRule(s.key,r[u],{selector:s.selector});delete r[u]}}return r}}}(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ct(e[t]);return e}return Ct(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Et(t);return t===r?e:(n.prop(r,e),null)}},function(e){void 0===e&&(e={});var t=Ot(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=At(r,e[r],t);return e},onChangeValue:function(e,n){return At(n,e,t)}}}(),"undefined"==typeof window?null:function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=wn(n);i&&i!==n&&(o=!0);var a=!1,l=Pn(i,Z(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Bt?e:"@"+Ht+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Pn(t,Z(e))||e}}}(),(Ln=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Ln),o=0;o<r.length;o++)n[r[o]]=e[r[o]];return n}})]}),Tn=function(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,o=""===r?"":`${r}-`;let i=0;const a=()=>(i+=1,i);return(e,i)=>{const l=i.options.name;if(l&&0===l.indexOf("Mui")&&!i.options.link&&!t){if(-1!==it.indexOf(e.key))return`Mui-${e.key}`;const t=`${o}${l}-${e.key}`;return i.options.theme[ot]&&""===r?`${t}-${a()}`:t}return`${o}${n}${a()}`}}(),Nn={disableGeneration:!1,generateClassName:Tn,jss:Rn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},In=r.createContext(Nn);var Ln;let Dn=-1e9;function Fn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function jn(e){if(!Fn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=jn(e[n])})),t}function zn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Fn(e)&&Fn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Fn(t[o])&&o in e&&Fn(e[o])?r[o]=zn(e[o],t[o],n):n.clone?r[o]=Fn(t[o])?jn(t[o]):t[o]:r[o]=t[o])})),r}function Bn(e){if("string"!=typeof e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Hn=["variant"];function Vn(e){return 0===e.length}const Un={},Kn=["name","classNamePrefix","Component","defaultTheme"];function Zn({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:o},i){if(n.disableGeneration)return;let a=Je.get(n.sheetsManager,r,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},Je.set(n.sheetsManager,r,t,a));const l=(0,T.Z)({},r.options,n,{theme:t,flip:"boolean"==typeof n.flip?n.flip:"rtl"===t.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;const s=n.sheetsRegistry;if(0===a.refs){let e;n.sheetsCache&&(e=Je.get(n.sheetsCache,r,t));const i=r.create(t,o);e||(e=n.jss.createStyleSheet(i,(0,T.Z)({link:!1},l)),e.attach(),n.sheetsCache&&Je.set(n.sheetsCache,r,t,e)),s&&s.add(e),a.staticSheet=e,a.dynamicStyles=Ye(i)}if(a.dynamicStyles){const t=n.jss.createStyleSheet(a.dynamicStyles,(0,T.Z)({link:!0},l));t.update(i),t.attach(),e.dynamicSheet=t,e.classes=Xe({baseClasses:a.staticSheet.classes,newClasses:t.classes}),s&&s.add(t)}else e.classes=a.staticSheet.classes;a.refs+=1}function qn(e,t={}){const{name:n,classNamePrefix:o,Component:i,defaultTheme:a=Un}=t,l=(0,R.Z)(t,Kn),s=function(e){const t="function"==typeof e;return{create:(n,r)=>{let o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return o;const i=n.components[r].styleOverrides||{},a=n.components[r].variants||[],l=(0,T.Z)({},o);return Object.keys(i).forEach((e=>{l[e]=zn(l[e]||{},i[e])})),a.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,R.Z)(e,Hn);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Vn(r)?e[t]:Bn(e[t]):`${Vn(r)?t:Bn(t)}${Bn(e[t].toString())}`})),r}(e.props);l[t]=zn(l[t]||{},e.style)})),l},options:{}}}(e),c=n||o||"makeStyles";return s.options={index:(Dn+=1,Dn),name:n,meta:c,classNamePrefix:c},(e={})=>{const t=tt()||a,o=(0,T.Z)({},r.useContext(In),l),c=r.useRef(),u=r.useRef();!function(i,a){const l=r.useRef([]);let d;const f=r.useMemo((()=>({})),a);l.current!==f&&(l.current=f,d=(()=>{const r={name:n,state:{},stylesCreator:s,stylesOptions:o,theme:t};return Zn(r,e),u.current=!1,c.current=r,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const o=Je.get(n.sheetsManager,r,t);o.refs-=1;const i=n.sheetsRegistry;0===o.refs&&(Je.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(o.staticSheet),i&&i.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}(r)}})()),r.useEffect((()=>()=>{d&&d()}),[f])}(0,[t,s]),r.useEffect((()=>{u.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(c.current,e),u.current=!0}));const d=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=Xe({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(c.current,e.classes,i);return d}}const Wn=qn((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",left:0,right:0,width:"calc(100% - 64px)",maxWidth:"1280px",margin:"0 auto",zIndex:1e4}})));function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(null,arguments)}const Gn=v.ZP.addError,Yn=e=>{let{showErrorFromStore:t}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["showErrorFromStore"]);const i=Wn(),a=M("errorSet"),l=C((e=>e.autoCloseInterval)),s=C((e=>e.uiError));return(0,r.useEffect)((()=>{s&&t&&(Yn.addError({title:u().text("Error"),message:s}),a(null))}),[a,s,t]),o().createElement(m(),{container:document.body},o().createElement(v.ZP,$n({classes:{errorBlock:f()(i.errorBlock,(0,p.path)(["classes","errorBlock"],n))},autoCloseInterval:l},n)))};Yn.addError=Gn;const Xn=(e,t)=>{const{title:n=u().text("Error"),message:r,defaultMessage:o}=t||{};console.warn(e),Yn.addError({title:n,message:r||(0,s.getRequestErrorMessage)(e,o)})};function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Jn(e,t,n[t])}))}return e}function Jn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const er=l({unmaskedAttributes:{},unmaskAttributeValue:void 0,maskAttributeValue:void 0,deleteUnmaskedAttributeForRelation:void 0}),tr=({children:e})=>{const[t,n]=(0,r.useState)({}),[i,a]=(0,r.useState)({}),[l,c]=(0,r.useState)(null),u=C((e=>e.profileLastLoadedTime)),d=C((e=>e.historyMode)),f=C((e=>{var t;return null===(t=e.entity)||void 0===t?void 0:t.uri})),p=k(),h=(0,r.useRef)(t);h.current=t,(0,r.useEffect)((()=>{n({})}),[u,p]),(0,r.useEffect)((()=>{a({}),c(null)}),[f]);const m=(0,r.useCallback)((async e=>{var t;if(!e){const e=null!=l?l:await(0,s.getEntity)(f);return l||c(e),e}const n=null!==(t=i[e])&&void 0!==t?t:await(0,s.getEntityTimeSlice)(f,e);return i[e]||a((t=>Qn({},t,{[e]:n}))),n}),[f,i,l]),v=(0,r.useCallback)((async e=>{let t=await m(null==p?void 0:p.aStamp),n=(0,s.findAttributeValueByUri)(t,e);return n||(t=d===s.HistoryMode.Current?await m():await m(null==p?void 0:p.bStamp),n=(0,s.findAttributeValueByUri)(t,e),n)}),[m,null==p?void 0:p.aStamp,null==p?void 0:p.bStamp,d]),g=(0,r.useCallback)((async e=>{try{const t=h.current;if(t[e])return n((t=>Qn({},t,{[e]:Qn({},t[e],{isUnmasked:!0})}))),t[e].attributeValue;{n((t=>Qn({},t,{[e]:Qn({},t[e],{loading:!0})})));const t=p?await v(e):await(0,s.getUnmaskedAttributeValue)(e);return n((n=>Qn({},n,{[e]:{attributeValue:t,isUnmasked:!0,loading:!1}}))),t}}catch(e){return Xn(e),null}}),[p,v]),y=(0,r.useCallback)((e=>{n((t=>Qn({},t,{[e]:Qn({},t[e],{isUnmasked:!1})})))}),[]),b=(0,r.useCallback)((e=>{n((t=>{const n=Qn({},t);for(const t in n)t.startsWith(e)&&delete n[t];return n}))}),[]);return o().createElement(er.Provider,{value:{unmaskedAttributes:t,unmaskAttributeValue:g,maskAttributeValue:y,deleteUnmaskedAttributeForRelation:b}},e)};var nr=n(9881),rr=n.n(nr),or=n(3962),ir=n.n(or),ar=n(3192),lr=n.n(ar);const sr={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},cr={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},ur=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class dr{constructor({locale:e,formats:t,instance:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=sr,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=e=>{const t=this.moment(e).local();return void 0===this.locale?t:t.locale(this.locale)},this.createUTCDate=e=>{const t=this.moment.utc(e);return void 0===this.locale?t:t.locale(this.locale)},this.createTZDate=(e,t)=>{if(!this.hasTimezonePlugin())throw new Error(ur);const n="default"===t?this.moment(e):this.moment.tz(e,t);return void 0===this.locale?n:n.locale(this.locale)},this.date=e=>{if(null===e)return null;const t=this.moment(e);return t.locale(this.getCurrentLocaleCode()),t},this.dateWithTimezone=(e,t)=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),this.getTimezone=e=>{var t,n,r;if(e.isUTC())return"UTC";const o=null==(t=e._z)?void 0:t.name;return null!=(n=null!=o?o:null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system"},this.setTimezone=(e,t)=>{var n,r;if("UTC"===t)return e.clone().utc();if("system"===t)return e.clone().local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(ur)}const o="default"===t?null!=(n=null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system":t,i=e.clone();return i.tz(o),i},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.getCurrentLocaleCode=()=>this.locale||lr().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(lr().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=e=>e.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((e=>{const t=e[0];return"L"===t||";"===t?lr().localeData(this.getCurrentLocaleCode()).longDateFormat(e):e})).join(""),this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.moment(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const n=e.clone();return n.locale(this.getCurrentLocaleCode()),n.format(t)},this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e.isAfter(t),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBefore=(e,t)=>e.isBefore(t),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.startOfYear=e=>e.clone().startOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfYear=e=>e.clone().endOf("year"),this.endOfMonth=e=>e.clone().endOf("month"),this.endOfWeek=e=>e.clone().endOf("week"),this.endOfDay=e=>e.clone().endOf("day"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.getYear=e=>e.get("year"),this.getMonth=e=>e.get("month"),this.getDate=e=>e.get("date"),this.getHours=e=>e.get("hours"),this.getMinutes=e=>e.get("minutes"),this.getSeconds=e=>e.get("seconds"),this.getMilliseconds=e=>e.get("milliseconds"),this.setYear=(e,t)=>e.clone().year(t),this.setMonth=(e,t)=>e.clone().month(t),this.setDate=(e,t)=>e.clone().date(t),this.setHours=(e,t)=>e.clone().hours(t),this.setMinutes=(e,t)=>e.clone().minutes(t),this.setSeconds=(e,t)=>e.clone().seconds(t),this.setMilliseconds=(e,t)=>e.clone().milliseconds(t),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[this.startOfYear(e)];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.mergeDateAndTime=(e,t)=>e.clone().hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>lr().weekdaysShort(!0),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.clone().startOf("month").startOf("week"),r=t.clone().endOf("month").endOf("week");let o=0,i=n;const a=[];for(;i.isBefore(r);){const e=Math.floor(o/7);a[e]=a[e]||[],a[e].push(i),i=i.clone().add(1,"day"),o+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[];let i=n;for(;i.isBefore(r);)o.push(i),i=i.clone().add(1,"year");return o},this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?lr().localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.moment=n||lr(),this.locale=e,this.formats=(0,T.Z)({},cr,t)}}var fr=n(7655);const pr=["localeText"],hr=r.createContext(null),mr=function(e){var t;const{localeText:n}=e,o=(0,R.Z)(e,pr),{utils:i,localeText:a}=null!=(t=r.useContext(hr))?t:{utils:void 0,localeText:void 0},l=(0,fr.useThemeProps)({props:o,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=l,h=r.useMemo((()=>(0,T.Z)({},p,a,n)),[p,a,n]),m=r.useMemo((()=>{if(!c)return i||null;const e=new c({locale:f,formats:u,instance:d});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[c,f,u,d,i]),v=r.useMemo((()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null),[m]),g=r.useMemo((()=>({utils:m,defaultDates:v,localeText:h})),[v,m,h]);return(0,Mn.jsx)(hr.Provider,{value:g,children:s})};var vr=n(4756),gr=n(2308),yr=n.n(gr);const br=function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}};br('\n/* CSS Custom Properties - All defined on .root with --reltio-assistant-loader- prefix */\n._root_lj6wo_1 {\n\t--reltio-assistant-loader-size: 32px;\n\n\t/* Dot dimensions scale with size */\n\t--reltio-assistant-loader-dot-size: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) *\n\t\t0.25\n\t);\n\t--reltio-assistant-loader-dot-radius: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) *\n\t\t0.15625\n\t);\n\t--reltio-assistant-loader-dot-color: #8d8dc8;\n\t--reltio-assistant-loader-dot-color-dimmed: rgba(152, 128, 255, 0.2);\n\t--reltio-assistant-loader-dot-gap: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) *\n\t\t0.375\n\t);\n\t--reltio-assistant-loader-dot-margin-left: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) *\n\t\t0.625\n\t);\n\t--reltio-assistant-loader-dot-duration: 1s;\n\t--reltio-assistant-loader-dot-delay-middle: 0.5s;\n\t--reltio-assistant-loader-dot-delay-last: 1s;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbox-sizing: border-box;\n}\n\n/* GIF container - uses CSS variable for size with fallback */\n._indicator_lj6wo_36 {\n\twidth: var(--reltio-assistant-loader-size, 32px);\n\theight: var(--reltio-assistant-loader-size, 32px);\n\tdisplay: block;\n\tobject-fit: contain;\n}\n\n/* Dot flashing indicator - uses CSS variables from .root */\n._dotFlashing_lj6wo_44 {\n\tposition: absolute;\n\tleft: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) +\n\t\tvar(--reltio-assistant-loader-dot-margin-left, 20px)\n\t);\n\tbottom: 20%;\n\ttransform: translateY(50%);\n\twidth: var(--reltio-assistant-loader-dot-size, 8px);\n\theight: var(--reltio-assistant-loader-dot-size, 8px);\n\tborder-radius: var(--reltio-assistant-loader-dot-radius, 5px);\n\tbackground-color: var(--reltio-assistant-loader-dot-color, #8d8dc8);\n\tanimation: _dotFlashing_lj6wo_44 var(--reltio-assistant-loader-dot-duration, 1s)\n\t\tinfinite linear alternate;\n\tanimation-delay: var(--reltio-assistant-loader-dot-delay-middle, 0.5s);\n}\n\n._dotFlashing_lj6wo_44::before,\n._dotFlashing_lj6wo_44::after {\n\tcontent: "";\n\tposition: absolute;\n\ttop: 0;\n\tdisplay: block;\n\twidth: var(--reltio-assistant-loader-dot-size, 8px);\n\theight: var(--reltio-assistant-loader-dot-size, 8px);\n\tborder-radius: var(--reltio-assistant-loader-dot-radius, 5px);\n\tbackground-color: var(--reltio-assistant-loader-dot-color, #8d8dc8);\n\tanimation: _dotFlashing_lj6wo_44 var(--reltio-assistant-loader-dot-duration, 1s)\n\t\tinfinite alternate;\n}\n\n._dotFlashing_lj6wo_44::before {\n\tleft: calc(-1 * var(--reltio-assistant-loader-dot-gap, 12px));\n\tanimation-delay: 0s;\n}\n\n._dotFlashing_lj6wo_44::after {\n\tleft: var(--reltio-assistant-loader-dot-gap, 12px);\n\tanimation-delay: var(--reltio-assistant-loader-dot-delay-last, 1s);\n}\n\n@keyframes _dotFlashing_lj6wo_44 {\n\t0% {\n\t\tbackground-color: var(--reltio-assistant-loader-dot-color, #8d8dc8);\n\t}\n\t50%,\n\t100% {\n\t\tbackground-color: var(\n\t\t\t--reltio-assistant-loader-dot-color-dimmed,\n\t\t\trgba(152, 128, 255, 0.2)\n\t\t);\n\t}\n}\n');const xr=(...e)=>{const t=new Set;return e.forEach((e=>{if(!e)return;t.add(e);const n=e.split("__")[0];n&&n!==e&&t.add(n)})),Array.from(t).join(" ")},Er=JSON.parse('{"root":"_root_1lt78_1","filled":"_filled_1lt78_87","outlined":"_outlined_1lt78_92","text":"_text_1lt78_98","primary":"_primary_1lt78_104","inherited":"_inherited_1lt78_114","small":"_small_1lt78_159","medium":"_medium_1lt78_167","large":"_large_1lt78_174","disabled":"_disabled_1lt78_181","fullWidth":"_fullWidth_1lt78_187"}');br('\n/* CSS Custom Properties - All defined on .root (Principle IX) */\n._root_1lt78_1 {\n\t/* Font tokens */\n\t--reltio-button-font-family: var(\n\t\t--reltio-font-family-body,\n\t\t"Roboto",\n\t\tsans-serif\n\t);\n\t--reltio-button-font-size: var(--reltio-font-size-body, 16px);\n\t--reltio-button-font-weight: var(--reltio-font-weight-body, 500);\n\t--reltio-button-line-height: var(--reltio-line-height-body, 1.5);\n\t--reltio-button-letter-spacing: var(--reltio-letter-spacing-body, 0.15px);\n\n\t/* Color tokens */\n\t--reltio-button-color-background: #f5f5fa;\n\t--reltio-button-color-primary: var(--reltio-color-primary, #0000cc);\n\t--reltio-button-color-primary-text: var(--reltio-color-on-primary, #ffffff);\n\t--reltio-button-color-text: var(--reltio-color-text, #0e0e25);\n\n\t/* Spacing tokens */\n\t--reltio-button-padding-x-small: var(--reltio-spacing-sm, 16px);\n\t--reltio-button-padding-y-small: var(--reltio-spacing-xs, 8px);\n\t--reltio-button-padding-x-medium: var(--reltio-spacing-md, 20px);\n\t--reltio-button-padding-y-medium: var(--reltio-spacing-sm, 12px);\n\t--reltio-button-padding-x-large: var(--reltio-spacing-lg, 32px);\n\t--reltio-button-padding-y-large: var(--reltio-spacing-md, 16px);\n\t--reltio-button-gap-x: var(--reltio-spacing-xs, 8px);\n\n\t/* Size tokens */\n\t--reltio-button-height-small: var(--reltio-spacing-xl, 32px);\n\t--reltio-button-height-medium: var(--reltio-spacing-2xl, 40px);\n\t--reltio-button-height-large: var(--reltio-spacing-3xl, 48px);\n\n\t/* Border and shape */\n\t--reltio-button-border-radius: 9999px; /* Fully rounded corners (pill shape) - Material Design 3 */\n\t--reltio-button-border-width: 0;\n\n\t/* Transitions */\n\t--reltio-button-transition-duration: 200ms;\n\t--reltio-button-transition-timing: ease;\n\n\t/* Disabled state */\n\t--reltio-button-disabled-opacity: 0.38;\n\t--reltio-button-disabled-cursor: not-allowed;\n\n\t/* Base styles */\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: var(--reltio-button-gap-x);\n\tborder: var(--reltio-button-border-width) solid transparent;\n\tborder-radius: var(--reltio-button-border-radius);\n\tcursor: pointer;\n\tfont-family: var(--reltio-button-font-family);\n\tfont-size: var(--reltio-button-font-size);\n\tfont-weight: var(--reltio-button-font-weight);\n\tline-height: var(--reltio-button-line-height);\n\tletter-spacing: var(--reltio-button-letter-spacing);\n\ttext-align: center;\n\ttext-decoration: none;\n\twhite-space: nowrap;\n\tuser-select: none;\n\ttransition: all var(--reltio-button-transition-duration)\n\t\tvar(--reltio-button-transition-timing);\n\tbox-sizing: border-box;\n\t/* Remove default button styles */\n\tbackground: none;\n\tmargin: 0;\n\tpadding: 0;\n\n\t/* Focus visible state */\n\t&:focus-visible {\n\t\toutline: 2px solid var(--reltio-button-color-primary);\n\t\toutline-offset: 2px;\n\t}\n\n\t/* Disabled state */\n\t&:disabled,\n\t&[aria-disabled="true"] {\n\t\topacity: var(--reltio-button-disabled-opacity);\n\t\tcursor: var(--reltio-button-disabled-cursor);\n\t\tpointer-events: none;\n\t}\n}\n\n/* Style: Filled - base structure */\n._filled_1lt78_87 {\n\tborder: none;\n}\n\n/* Style: Outlined - base structure */\n._outlined_1lt78_92 {\n\tbackground-color: transparent;\n\tborder: 1px solid;\n}\n\n/* Style: Text - base structure */\n._text_1lt78_98 {\n\tbackground-color: transparent;\n\tborder: none;\n}\n\n/* Filled + Primary */\n._filled_1lt78_87._primary_1lt78_104 {\n\tbackground-color: var(--reltio-button-color-primary);\n\tcolor: #fff;\n\n\t&:hover {\n\t\tbackground-color: #006;\n\t}\n}\n\n/* Filled + Inherited */\n._filled_1lt78_87._inherited_1lt78_114 {\n\tbackground-color: var(--reltio-button-color-background);\n\tcolor: var(--reltio-button-color-text);\n}\n\n/* Outlined + Primary */\n._outlined_1lt78_92._primary_1lt78_104 {\n\tborder-color: var(--reltio-button-color-primary);\n\tcolor: var(--reltio-button-color-primary);\n\n\t&:hover {\n\t\tbackground-color: var(--reltio-button-color-background);\n\t}\n}\n\n/* Outlined + Inherited */\n._outlined_1lt78_92._inherited_1lt78_114 {\n\t/* Border and text color inherit from parent */\n\tborder-color: currentColor;\n\tcolor: inherit;\n\n\t&:hover {\n\t\tbackground-color: var(--reltio-button-color-background);\n\t}\n}\n\n/* Text + Primary */\n._text_1lt78_98._primary_1lt78_104 {\n\tcolor: var(--reltio-button-color-primary);\n\n\t&:hover {\n\t\tbackground-color: var(--reltio-button-color-background);\n\t}\n}\n\n/* Text + Inherited */\n._text_1lt78_98._inherited_1lt78_114 {\n\tcolor: inherit;\n\n\t&:hover {\n\t\tbackground-color: var(--reltio-button-color-background);\n\t}\n}\n\n/* Size: Small */\n._small_1lt78_159 {\n\tmin-height: var(--reltio-button-height-small);\n\tpadding: var(--reltio-button-padding-y-small)\n\t\tvar(--reltio-button-padding-x-small);\n\tfont-size: 0.875rem;\n}\n\n/* Size: Medium */\n._medium_1lt78_167 {\n\tmin-height: var(--reltio-button-height-medium);\n\tpadding: var(--reltio-button-padding-y-medium)\n\t\tvar(--reltio-button-padding-x-medium);\n}\n\n/* Size: Large */\n._large_1lt78_174 {\n\tmin-height: var(--reltio-button-height-large);\n\tpadding: var(--reltio-button-padding-y-large)\n\t\tvar(--reltio-button-padding-x-large);\n}\n\n/* State: Disabled */\n._disabled_1lt78_181 {\n\topacity: var(--reltio-button-disabled-opacity);\n\tcursor: var(--reltio-button-disabled-cursor);\n}\n\n/* Full Width */\n._fullWidth_1lt78_187 {\n\twidth: 100%;\n}\n');const Cr=Er,wr=({variant:e="filled",color:t="inherited",size:n="medium",disabled:o=!1,fullWidth:i=!1,children:a,className:l,onClick:s,href:c,type:u="button","aria-label":d,...f})=>{const p=(0,r.useRef)(null);(0,r.useEffect)((()=>{o&&p.current&&document.activeElement===p.current&&p.current.blur()}),[o]);const h=!o,m=e=>{h?c&&o?e.preventDefault():s?.(e):e.preventDefault()},v=e=>{h?"Enter"!==e.key&&" "!==e.key||(" "===e.key&&e.preventDefault(),c?p.current?.click():s?.(e)):e.preventDefault()},g=xr(Cr.root,Cr[e],Cr[t],Cr[n],o&&Cr.disabled,i&&Cr.fullWidth,l),y={"aria-label":d,"aria-disabled":!!o||void 0};return c?(0,Mn.jsx)("a",{ref:p,href:o?void 0:c,className:g,onClick:m,onKeyDown:v,...y,...f,children:a}):(0,Mn.jsx)("button",{ref:p,type:u,disabled:o,className:g,onClick:m,onKeyDown:v,...y,...f,children:a})};br('\n._skeletonRoot_1e8wa_1 {\n\t--reltio-skeleton-row-height: 16px;\n\t--reltio-skeleton-row-gap: 12px;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: var(--reltio-skeleton-row-gap, 12px);\n}\n\n._row_1e8wa_10 {\n\twidth: 100%;\n\theight: var(--reltio-skeleton-row-height, 16px);\n\tbackground-color: #f5f5fa;\n\toverflow: hidden;\n\tposition: relative;\n}\n\n._row_1e8wa_10::before {\n\tcontent: "";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbottom: 0;\n\tbackground-color: #9898b34d;\n\tanimation: _indeterminate1_1e8wa_1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395)\n\t\tinfinite;\n}\n\n._row_1e8wa_10::after {\n\tcontent: "";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbottom: 0;\n\tbackground-color: #9898b34d;\n\tanimation: _indeterminate2_1e8wa_1 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n\tanimation-delay: 1.15s;\n}\n\n@keyframes _indeterminate1_1e8wa_1 {\n\t0% {\n\t\tleft: -35%;\n\t\tright: 100%;\n\t}\n\t60% {\n\t\tleft: 100%;\n\t\tright: -90%;\n\t}\n\t100% {\n\t\tleft: 100%;\n\t\tright: -90%;\n\t}\n}\n\n@keyframes _indeterminate2_1e8wa_1 {\n\t0% {\n\t\tleft: -200%;\n\t\tright: 100%;\n\t}\n\t60% {\n\t\tleft: 107%;\n\t\tright: -8%;\n\t}\n\t100% {\n\t\tleft: 107%;\n\t\tright: -8%;\n\t}\n}\n');const _r=JSON.parse('{"root":"_root_1v61f_1","small":"_small_1v61f_23","medium":"_medium_1v61f_28","large":"_large_1v61f_33","xlarge":"_xlarge_1v61f_38","inherited":"_inherited_1v61f_43","primary":"_primary_1v61f_47","secondary":"_secondary_1v61f_51","success":"_success_1v61f_55","warning":"_warning_1v61f_59","error":"_error_1v61f_63"}');br("\n._root_1v61f_1 {\n\t--reltio-icon-size-small: 16px;\n\t--reltio-icon-size-medium: 24px;\n\t--reltio-icon-size-large: 32px;\n\t--reltio-icon-size-xlarge: 48px;\n\n\t--reltio-icon-color-inherited: currentColor;\n\t--reltio-icon-color-primary: var(--reltio-color-primary, #0066cc);\n\t--reltio-icon-color-secondary: var(--reltio-color-secondary, #6c757d);\n\t--reltio-icon-color-success: var(--reltio-color-success, #28a745);\n\t--reltio-icon-color-warning: var(--reltio-color-warning, #ffc107);\n\t--reltio-icon-color-error: var(--reltio-color-error, #dc3545);\n\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tflex-shrink: 0;\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-medium));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-medium));\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-inherited));\n}\n\n._small_1v61f_23 {\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-small));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-small));\n}\n\n._medium_1v61f_28 {\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-medium));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-medium));\n}\n\n._large_1v61f_33 {\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-large));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-large));\n}\n\n._xlarge_1v61f_38 {\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-xlarge));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-xlarge));\n}\n\n._inherited_1v61f_43 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-inherited));\n}\n\n._primary_1v61f_47 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-primary));\n}\n\n._secondary_1v61f_51 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-secondary));\n}\n\n._success_1v61f_55 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-success));\n}\n\n._warning_1v61f_59 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-warning));\n}\n\n._error_1v61f_63 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-error));\n}\n");const kr=_r,Or=JSON.parse('{"root":"_root_d5cr4_1","userMessage":"_userMessage_d5cr4_24","userMessageSkeletonWrapper":"_userMessageSkeletonWrapper_d5cr4_29","scrollToBottom":"_scrollToBottom_d5cr4_34","lastMessageWrapper":"_lastMessageWrapper_d5cr4_65"}');br("\n/* CSS Custom Properties - All defined on .root with --reltio-chat- prefix */\n._root_d5cr4_1 {\n\t--reltio-chat-padding: 16px;\n\t--reltio-chat-message-gap: 16px;\n\t--reltio-chat-scroll-button-size: 36px;\n\t--reltio-chat-scroll-button-bg: #ffffff;\n\t--reltio-chat-scroll-button-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n\t--reltio-chat-scroll-button-color: #5f6368;\n\t--reltio-chat-scroll-button-hover-bg: #f1f3f4;\n\t--reltio-chat-scroll-button-bottom: 16px;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\tposition: relative;\n\theight: 100%;\n\twidth: 100%;\n\tbox-sizing: border-box;\n\toverflow: auto;\n\talign-items: start;\n\tpadding: var(--reltio-chat-padding);\n\tgap: var(--reltio-chat-message-gap);\n}\n\n._userMessage_d5cr4_24 {\n\tmargin-left: auto;\n\tmax-width: 80%;\n}\n\n._userMessageSkeletonWrapper_d5cr4_29 {\n\twidth: 40%;\n\tmargin-left: auto;\n}\n\n._scrollToBottom_d5cr4_34 {\n\tposition: sticky;\n\tbottom: var(--reltio-chat-scroll-button-bottom, 16px);\n\talign-self: center;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: var(--reltio-chat-scroll-button-size, 36px);\n\theight: var(--reltio-chat-scroll-button-size, 36px);\n\tborder-radius: 50%;\n\tborder: none;\n\tbackground: var(--reltio-chat-scroll-button-bg, #ffffff);\n\tbox-shadow: var(\n\t\t--reltio-chat-scroll-button-shadow,\n\t\t0 2px 8px rgba(0, 0, 0, 0.15)\n\t);\n\tcolor: var(--reltio-chat-scroll-button-color, #5f6368);\n\tcursor: pointer;\n\ttransition: background 0.15s ease;\n\tflex-shrink: 0;\n}\n\n._scrollToBottom_d5cr4_34:hover {\n\tbackground: var(--reltio-chat-scroll-button-hover-bg);\n}\n\n._scrollToBottom_d5cr4_34:focus-visible {\n\toutline: 2px solid #1a73e8;\n\toutline-offset: 2px;\n}\n\n._lastMessageWrapper_d5cr4_65 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tposition: relative;\n\talign-items: start;\n\tgap: var(--reltio-chat-message-gap);\n\tmin-height: 100%;\n\twidth: 100%;\n}\n");const Sr=Or,Ar=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Mn.jsx)("svg",{className:xr(kr.root,kr[e],kr[t],n),style:r,viewBox:"0 -960 960 960","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:(0,Mn.jsx)("path",{d:"M400-280v-400l200 200-200 200Z"})}),Pr=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Mn.jsxs)("svg",{className:xr(kr.root,kr[e],kr[t],n),style:r,viewBox:"0 0 24 24","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:[(0,Mn.jsx)("path",{d:"M14,15c-.26,0-.51-.1-.71-.29-.39-.39-.39-1.02,0-1.41l1.29-1.29-1.29-1.29c-.39-.39-.39-1.02,0-1.41s1.02-.39,1.41,0l2,2c.39.39.39,1.02,0,1.41l-2,2c-.2.2-.45.29-.71.29ZM10,15c-.26,0-.51-.1-.71-.29l-2-2c-.39-.39-.39-1.02,0-1.41l2-2c.39-.39,1.02-.39,1.41,0s.39,1.02,0,1.41l-1.29,1.29,1.29,1.29c.39.39.39,1.02,0,1.41-.2.2-.45.29-.71.29Z"}),(0,Mn.jsx)("path",{d:"M12,22c-1.32,0-2.61-.26-3.83-.76-1.22-.5-2.31-1.23-3.24-2.17s-1.66-2.03-2.17-3.24c-.51-1.22-.76-2.51-.76-3.83s.26-2.61.76-3.83c.5-1.22,1.23-2.31,2.17-3.24.93-.93,2.02-1.66,3.24-2.17,2.44-1.01,5.21-1.01,7.65,0,1.22.5,2.31,1.23,3.24,2.17s1.66,2.02,2.17,3.24c.51,1.22.76,2.51.76,3.83s-.26,2.61-.76,3.83c-.5,1.22-1.23,2.31-2.17,3.24-.94.93-2.03,1.66-3.25,2.17s-2.51.76-3.83.76ZM12,4c-1.06,0-2.09.21-3.06.61-.98.4-1.85.99-2.59,1.73-.75.75-1.33,1.62-1.73,2.6-.4.98-.61,2.01-.61,3.06s.21,2.09.61,3.06.99,1.85,1.73,2.6c.75.75,1.62,1.33,2.6,1.73,1.95.81,4.18.81,6.12,0,.98-.4,1.85-.99,2.6-1.73.75-.75,1.33-1.62,1.73-2.6.4-.97.61-2,.61-3.06s-.21-2.09-.61-3.06c-.4-.98-.99-1.85-1.73-2.6-.75-.75-1.62-1.33-2.6-1.73s-2.01-.61-3.06-.61Z"})]}),Mr=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Mn.jsx)("svg",{className:xr(kr.root,kr[e],kr[t],n),style:r,viewBox:"0 -960 960 960","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:(0,Mn.jsx)("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Rr=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Mn.jsx)("svg",{className:xr(kr.root,kr[e],kr[t],n),style:r,viewBox:"0 -960 960 960","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:(0,Mn.jsx)("path",{d:"m296-345-56-56 240-240 240 240-56 56-184-184-184 184Z"})}),Tr=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Mn.jsx)("svg",{className:xr(kr.root,kr[e],kr[t],n),style:r,viewBox:"0 -960 960 960","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:(0,Mn.jsx)("path",{d:"M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"})}),Nr=JSON.parse('{"root":"_root_gqx9m_1","text":"_text_gqx9m_24","iconWrapper":"_iconWrapper_gqx9m_33"}');br("\n/* CSS Custom Properties - All defined on .root with --reltio-error-message- prefix */\n._root_gqx9m_1 {\n\t--reltio-error-message-bg: #fef2f2;\n\t--reltio-error-message-border-color: #fecaca;\n\t--reltio-error-message-text-color: #b91c1c;\n\t--reltio-error-message-icon-color: #dc2626;\n\t--reltio-error-message-padding: 12px 16px;\n\t--reltio-error-message-gap: 8px;\n\t--reltio-error-message-border-radius: 8px;\n\t--reltio-error-message-border-width: 1px;\n\t--reltio-error-message-icon-size: 20px;\n\n\tdisplay: flex;\n\talign-items: flex-start;\n\tgap: var(--reltio-error-message-gap, 8px);\n\tpadding: var(--reltio-error-message-padding, 12px 16px);\n\tbackground-color: var(--reltio-error-message-bg, #fef2f2);\n\tborder: var(--reltio-error-message-border-width, 1px) solid\n\t\tvar(--reltio-error-message-border-color, #fecaca);\n\tborder-radius: var(--reltio-error-message-border-radius, 8px);\n\tbox-sizing: border-box;\n}\n\n._text_gqx9m_24 {\n\tcolor: var(--reltio-error-message-text-color, #b91c1c);\n\tfont-size: 14px;\n\tline-height: 1.5;\n\tmargin: 0;\n\tflex: 1;\n\tmin-width: 0;\n}\n\n._iconWrapper_gqx9m_33 {\n\tflex-shrink: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: var(--reltio-error-message-icon-size, 20px);\n\theight: var(--reltio-error-message-icon-size, 20px);\n}\n\n._iconWrapper_gqx9m_33 svg {\n\twidth: 100%;\n\theight: 100%;\n}\n");const Ir=Nr,Lr=({children:e,className:t,...n})=>(0,Mn.jsxs)("div",{className:xr(Ir.root,t),role:"alert","aria-live":"polite",...n,children:[(0,Mn.jsx)("span",{className:Ir.iconWrapper,"aria-hidden":"true",children:(0,Mn.jsx)(Mr,{size:"small",color:"error"})}),(0,Mn.jsx)("p",{className:Ir.text,children:e||"Something went wrong. Please try again."})]});var Dr,Fr=32,jr=9,zr=13,Br=10,Hr=96,Vr=126,Ur=91,Kr=94,Zr=62,qr=35,Wr=37,$r=45,Gr=61,Yr=92,Xr=42,Qr=95,Jr=60,eo=64,to=93,no=33,ro=38,oo=58,io=102,ao=104,lo=119,so=116,co=112,uo=115,fo=160,po=44,ho=59,mo=63,vo=46,go=47,yo=39,bo=34,xo=43,Eo=124,Co=123,wo=125,_o=40,ko=41,Oo=30,So=31,Ao=48,Po=57,Mo=65,Ro=90,To=97,No=122,Io=128,Lo=32,Do={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},Fo=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,jo={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"};function zo(e){var t={};for(var n in e){var r=n.toLowerCase(),o=jo[r];if(o)t[o]=e[n];else{var i=n.indexOf(":");-1!==i?t[n.slice(0,i)+n[i+1].toUpperCase()+n.slice(i+2)]=e[n]:t[n]=e[n]}}return t}var Bo=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function Ho(e){return-1===e.indexOf("&")?e:e.replace(Fo,((e,t)=>{var n=function(e){if(!Dr){if(!(typeof document<"u"))return;Dr=document.createElement("textarea")}var t="&"+e+";";Dr.innerHTML=t;var n=Dr.value;return n!==t?n:void 0}(t);if(n)return n;if("#"===t[0]){var r="x"===t[1]||"X"===t[1]?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return 0===r||r>=55296&&r<=57343||r>1114111?"�":r<=65535?String.fromCharCode(r):String.fromCharCode(55296+(r-65536>>10),56320+(r-65536&1023))}return e}))}var Vo=/(javascript|vbscript|data(?!:image)):/i;function Uo(e){if(Vo.test(e))return null;if(-1===e.indexOf("%"))return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Vo.test(t))return null}catch{return null}return e}var Ko,Zo,qo={};for(Ko=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],Zo=0;Zo<Ko.length;Zo++)qo[Ko[Zo]]="a";for(qo[231]=qo[199]="c",qo[240]=qo[208]="d",Ko=[200,201,202,203,233,232,234,235],Zo=0;Zo<Ko.length;Zo++)qo[Ko[Zo]]="e";for(Ko=[207,239,206,238,205,237,204,236],Zo=0;Zo<Ko.length;Zo++)qo[Ko[Zo]]="i";for(qo[209]=qo[241]="n",Ko=[248,216,339,338,213,245,212,244,211,243,210,242],Zo=0;Zo<Ko.length;Zo++)qo[Ko[Zo]]="o";for(Ko=[220,252,219,251,218,250,217,249],Zo=0;Zo<Ko.length;Zo++)qo[Ko[Zo]]="u";function Wo(e){return e<Io&&!!(ei[e]&(Qo|Jo))}function $o(e){for(var t="",n=-1,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(Wo(o))o>=Mo&&o<=Ro?(n>=0&&(t+=e.slice(n,r),n=-1),t+=String.fromCharCode(o+Lo)):n<0&&(n=r);else if(o===Fr||o===$r)n>=0&&(t+=e.slice(n,r),n=-1),t+="-";else{n>=0&&(t+=e.slice(n,r),n=-1);var i=qo[o];i&&(t+=i)}}return n>=0&&(t+=e.slice(n)),t}function Go(e,t,n){return e.startsWith(t,n)}qo[376]=qo[255]=qo[221]=qo[253]="y";var Yo=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function Xo(e){let t=e.toLowerCase();if(Yo.has(t))return!0;let n=t.indexOf(":");return-1!==n&&(t=t.slice(n+1),Yo.has(t))}var Qo=4,Jo=8,ei=function(){let e,t=new Uint8Array(128);for(t[jr]=33,t[Br]=17,t[12]=1,t[zr]=17,t[Fr]=33,e=no;e<=go;e++)t[e]=2;for(e=oo;e<=eo;e++)t[e]=2;for(e=Ur;e<=Hr;e++)t[e]=2;for(e=Co;e<=Vr;e++)t[e]=2;for(e=Ao;e<=Po;e++)t[e]=Jo;for(e=Mo;e<=Ro;e++)t[e]=64|Qo;for(e=To;e<=No;e++)t[e]=Qo;return t}(),ti=(function(){let e=new Uint8Array(128);e[Yr]=2,e[Ur]=4,e[Xr]=e[Qr]=e[Vr]=e[Gr]=3,e[Hr]=e[Jr]=e[eo]=e[to]=e[Br]=e[Fr]=e[no]=1,e[io]=e[ao]=e[lo]=1}(),[]);function ni(e,t,n){for(var r=e,o=t.split("."),i=0;i<o.length&&(r=r?.[o[i]],void 0!==r);)i++;return r||n}function ri(...e){return e.filter(Boolean).join(" ")}var oi=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),ii=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function ai(e){return oi.has(e.toLowerCase())}function li(e){return ii.lastIndex=0,e.replace(ii,(function(e,t,n,r){return"&lt;"+t+n+r}))}var si=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,ci=/^<[A-Z]/,ui=["script","pre","style","textarea"],di=new Set(ui),fi=/<(?:pre|script|style|textarea)\b/i,pi=new Set(["table","thead","tbody","tfoot","tr","td","th"]),hi=new Uint8Array(128);!function(){for(var e=[Hr,Xr,Qr,Vr,Gr,Ur,no,Jr,Yr,So,ao,lo,io],t=0;t<e.length;t++)hi[e[t]]=1}();var mi=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function vi(e,t,n){for(var r=t,o=n;r<o&&(e.charCodeAt(r)===Fr||e.charCodeAt(r)===jr);)r++;if(r>=o)return!1;e.charCodeAt(r)===Eo&&r++;for(var i=0;r<o;){for(;r<o&&(e.charCodeAt(r)===Fr||e.charCodeAt(r)===jr);)r++;if(r>=o)break;if(e.charCodeAt(r)===Eo&&i>0){for(var a=r+1;a<o&&(e.charCodeAt(a)===Fr||e.charCodeAt(a)===jr);)a++;if(a>=o)return!0}if(e.charCodeAt(r)===oo&&r++,r>=o||e.charCodeAt(r)!==$r)return!1;for(;r<o&&e.charCodeAt(r)===$r;)r++;for(r<o&&e.charCodeAt(r)===oo&&r++,i++;r<o&&(e.charCodeAt(r)===Fr||e.charCodeAt(r)===jr);)r++;if(r<o){if(e.charCodeAt(r)!==Eo)return!1;r++}}return i>0}function gi(e,t){if(e.charCodeAt(t)!==Jr)return null;let n=t+1,r=e.length,o=!1;e.charCodeAt(n)===go&&(n++,o=!0);let i=n,a=e.charCodeAt(n);if(!(a>=To&&a<=No||a>=Mo&&a<=Ro))return null;for(;n<r&&(e.charCodeAt(n)>=To&&e.charCodeAt(n)<=No||e.charCodeAt(n)>=Mo&&e.charCodeAt(n)<=Ro||e.charCodeAt(n)>=Ao&&e.charCodeAt(n)<=Po||e.charCodeAt(n)===$r);)n++;let l=e.slice(i,n);if(!l)return null;let s=n;for(;n<r&&(e.charCodeAt(n)===Fr||e.charCodeAt(n)===jr||e.charCodeAt(n)===Br);)n++;let c=e.slice(s,n);if(n===s&&n<r){var u=e.charCodeAt(n);if(u!==Zr&&u!==go)return null}let d=n,f={},p=!1;for(;n<r;){let t=e.charCodeAt(n);if(t===Zr)return{tag:l,attrs:f,selfClosing:!1,end:n+1,rawAttrs:e.slice(d,n),whitespaceBeforeAttrs:c,isClosing:o,hasSpaceBeforeSlash:p};if(t!==Fr&&t!==jr&&t!==Br){if(t===go&&n+1<r&&e.charCodeAt(n+1)===Zr){let t=e.slice(d,n);return p=n>d&&e.charCodeAt(n-1)===Fr,{tag:l,attrs:f,selfClosing:!0,end:n+2,rawAttrs:t,whitespaceBeforeAttrs:c,isClosing:o,hasSpaceBeforeSlash:p}}var h=n,m=e.charCodeAt(n);if(!(m>=To&&m<=No||m>=Mo&&m<=Ro||m===Qr||m===oo))return null;for(n++;n<r&&((E=e.charCodeAt(n))>=To&&E<=No||E>=Mo&&E<=Ro||E>=Ao&&E<=Po||E===Qr||E===vo||E===oo||E===$r);)n++;for(var v=e.slice(h,n);n<r&&(e.charCodeAt(n)===Fr||e.charCodeAt(n)===jr);)n++;if(e.charCodeAt(n)===Gr){for(n++;n<r&&(e.charCodeAt(n)===Fr||e.charCodeAt(n)===jr);)n++;var g=e.charCodeAt(n);if(g===bo||g===yo){n++;for(var y=n;n<r&&e.charCodeAt(n)!==g;)n++;if(n>=r)return null;if(f[v]=e.slice(y,n),n++,n<r){var b=e.charCodeAt(n);if(b!==Fr&&b!==jr&&b!==Br&&b!==Zr&&b!==go)return null}}else if(g===Co){var x=1;for(y=n,n++;n<r&&x>0;){var E;(E=e.charCodeAt(n))===Co?x++:E===wo&&x--,n++}f[v]=e.slice(y,n)}else{for(y=n;n<r;){var C=e.charCodeAt(n);if(C===Fr||C===jr||C===Zr||C===Br||C===bo||C===yo||C===Gr||C===Jr||C===Hr)break;n++}if(n===y)return null;f[v]=e.slice(y,n)}}else f[v]=""}else n++}return null}function yi(e,t,n){for(var r=0,o=e.length,i=!1;r<o;){for(var a=e.indexOf("\n",r),l=a<0?o:a,s=r,c=0;s<l&&c<4;)if(e.charCodeAt(s)===Fr)c++,s++;else{if(e.charCodeAt(s)!==jr)break;c+=4,s++}if(s>=l)i=!1,r=a<0?o:a+1;else{if(c<4){var u=e.charCodeAt(s);if(u===Hr||u===Vr){for(var d=u,f=0,p=s;p<l&&e.charCodeAt(p)===d;)f++,p++;if(f>=3){i=!1;for(var h=a<0?o:a+1;h<o;){for(var m=h,v=0;m<o&&v<4;){var g=e.charCodeAt(m);if(g===Fr)v++,m++;else{if(g!==jr)break;v+=4,m++}}if(v<4&&m<o&&e.charCodeAt(m)===d){for(var y=0;m<o&&e.charCodeAt(m)===d;)y++,m++;if(y>=f){for(;m<o&&(e.charCodeAt(m)===Fr||e.charCodeAt(m)===jr);)m++;if(m>=o||e.charCodeAt(m)===Br){r=m>=o?o:m+1;break}}}for(;h<o&&e.charCodeAt(h)!==Br;)h++;h<o&&h++}h>=o&&(r=o);continue}}}for(var b=s;b<l&&e.charCodeAt(b)===Zr;){++b<l&&e.charCodeAt(b)===Fr&&b++;for(var x=0;b<l&&x<4;)if(e.charCodeAt(b)===Fr)x++,b++;else{if(e.charCodeAt(b)!==jr)break;x+=4,b++}if(x>=4)break;i=!1}if(!i&&c<4&&b<l&&e.charCodeAt(b)===Ur&&!(b+1<o&&e.charCodeAt(b+1)===Kr)){var E=bi(e,b,t);if(E){r=E,i=!1;continue}}var C=e.charCodeAt(s);if(C===qr&&c<4)i=!1;else if(c<4&&(C===$r||C===Xr||C===Qr)){for(var w=s,_=0;w<l;){var k=e.charCodeAt(w);if(k===C)_++;else if(k!==Fr&&k!==jr)break;w++}i=!(_>=3&&w>=l)}else i=!0;r=a<0?o:a+1}}}function bi(e,t,n){let r=e.length;if(e.charCodeAt(t)!==Ur)return null;let o=t+1<r&&e.charCodeAt(t+1)===Kr,i=t+1;for(;i<r;){if((v=e.charCodeAt(i))===to){i++;break}if(v===Ur)return null;v===Yr&&i+1<r&&i++,i++}if(i>r||e.charCodeAt(i-1)!==to)return null;let a=e.slice(t+1,i-1);if(a.length>999)return null;let l=_i(a);if(!l||i>=r||e.charCodeAt(i)!==oo)return null;i++;let s=!1;for(;i<r;){let t=e.charCodeAt(i);if(t===Fr||t===jr)i++;else{if(t!==Br||s)break;s=!0,i++}}if(o){let t=e.indexOf("\n",i),o=t<0?r:t,a=e.slice(i,o).trim();return n[l]={target:a,title:void 0},t<0?r:t+1}var c;if(i<r&&e.charCodeAt(i)===Jr){i++;for(var u=i;i<r&&e.charCodeAt(i)!==Zr&&e.charCodeAt(i)!==Br;)e.charCodeAt(i)===Yr&&i+1<r&&i++,i++;if(i>=r||e.charCodeAt(i)!==Zr)return null;c=e.slice(u,i),i++;for(var d=e.indexOf("\n",i),f=d<0?r:d,p=i;p<f&&(e.charCodeAt(p)===Fr||e.charCodeAt(p)===jr);)p++;if(p<f){if(p===i)return null;var h=e.charCodeAt(p);if(h!==bo&&h!==yo&&h!==_o)return null}}else{u=i;for(var m=0;i<r;){var v;if((v=e.charCodeAt(i))===_o)m++;else if(v===ko){if(0===m)break;m--}else{if(v===Fr||v===jr||v===Br)break;v===Yr&&i+1<r&&i++}i++}if(!(c=e.slice(u,i)))return null}for(;i<r&&(e.charCodeAt(i)===Fr||e.charCodeAt(i)===jr);)i++;var g,y=e.indexOf("\n",i),b=y<0?r:y,x=!1,E=i,C=i;if(i===b&&i<r)for(C=i+1;C<r&&(e.charCodeAt(C)===Fr||e.charCodeAt(C)===jr);)C++;if(C<r){var w=e.charCodeAt(C);if(w===bo||w===yo||w===_o){for(var _=w===_o?41:w,k=C+1,O=k;k<r;){var S=e.charCodeAt(k);if(S===_){for(var A=k+1;A<r&&(e.charCodeAt(A)===Fr||e.charCodeAt(A)===jr);)A++;(A>=r||e.charCodeAt(A)===Br)&&(g=e.slice(O,k),x=!0,E=A<r?A+1:r);break}if(S===Yr&&k+1<r)k+=2;else{if(S===Br&&k+1<r&&e.charCodeAt(k+1)===Br)break;k++}}if(!x&&C===i)return null}}if(x)return n[l]||(n[l]={target:Oi(c),title:void 0!==g?Ho(Oi(g)):g}),E;for(;i<b&&(e.charCodeAt(i)===Fr||e.charCodeAt(i)===jr);)i++;return i<b?null:(n[l]||(n[l]={target:Oi(c),title:g}),y<0?r:y+1)}var xi=1,Ei=4,Ci=new Uint8Array(128);Ci[Fr]=xi,Ci[jr]=xi,Ci[Br]=2|xi,Ci[zr]=2|xi,Ci[qr]=32|Ei,Ci[Zr]=32|Ei,Ci[$r]=96|Ei,Ci[xo]=32|Ei,Ci[Xr]=96|Ei,Ci[Qr]=96|Ei,Ci[Hr]=96|Ei,Ci[Vr]=96|Ei,Ci[Jr]=96|Ei,Ci[Ur]=64|Ei,Ci[no]=64|Ei,Ci[Eo]=32|Ei;for(let e=Ao;e<=Po;e++)Ci[e]=48;for(let e=Mo;e<=Ro;e++)Ci[e]=8;for(let e=To;e<=No;e++)Ci[e]=8;function wi(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++)if(e.charCodeAt(t)!==Yr){if(e.charCodeAt(t)===Ur||e.charCodeAt(t)===to)return!0}else t++;return!1}function _i(e){var t=e.replace(/\s+/g," ").trim();return-1!==t.indexOf("ẞ")?t.replace(/\u1E9E/g,"ss").toLowerCase():t.toLowerCase()}function ki(e){return e<Io?Ci[e]:e===fo?xi:0}function Oi(e){return e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}function Si(e,t){var n=e.indexOf("\n",t);return n<0?e.length:n}function Ai(e,t){let n=Si(e,t);return n<e.length?n+1:n}function Pi(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==Fr&&n!==jr)break;t++}return t}function Mi(e,t){let n=Ai(e,t);for(;n<e.length;){if(Li(e,n,Si(e,n)))return n;n=Ai(e,n)}return e.length}function Ri(e,t,n,r){let o=0;for(;t+o<n&&e.charCodeAt(t+o)===r;)o++;return o}Ci[Yr]=Ei,Ci[to]=Ei,Ci[_o]=Ei,Ci[ko]=Ei,Ci[oo]=Ei,Ci[bo]=Ei,Ci[yo]=Ei,Ci[ro]=Ei,Ci[Gr]=Ei,Ci[36]=Ei,Ci[Wr]=Ei,Ci[po]=Ei,Ci[vo]=Ei,Ci[go]=Ei,Ci[ho]=Ei,Ci[mo]=Ei,Ci[eo]=Ei,Ci[Kr]=Ei,Ci[Co]=Ei,Ci[wo]=Ei;var Ti=0,Ni=0;function Ii(e,t,n){for(Ti=0,Ni=0;t+Ni<n;){let n=e.charCodeAt(t+Ni);if(n===jr)Ti+=4-Ti%4;else{if(n!==Fr)break;Ti++}Ni++}}function Li(e,t,n){return Pi(e,t,n)>=n}function Di(e,t,n,r){let o=Si(e,t);if(Ii(e,t,o),Ti>3)return null;let i=t+Ni;if(e.charCodeAt(i)!==qr)return null;let a=Ri(e,i,o,35);if(a<1||a>6||(i+=a,i<o&&e.charCodeAt(i)!==Fr&&e.charCodeAt(i)!==jr))return null;i=Pi(e,i,o);for(var l=o;l>i&&e.charCodeAt(l-1)===Fr;)l--;for(var s=l;l>i&&e.charCodeAt(l-1)===qr;)l--;if(l<s)if(l===i||e.charCodeAt(l-1)===Fr)for(;l>i&&e.charCodeAt(l-1)===Fr;)l--;else l=s;let c=e.slice(i,l),u=Ca(c,0,c.length,n,r),d=(r?.slugify||$o)(c);return{node:{type:Do.heading,level:a,children:u,id:d},end:Ai(e,o)}}function Fi(e,t){let n=Si(e,t);if(Ii(e,t,n),Ti>3)return null;let r=t+Ni,o=e.charCodeAt(r);if(o!==$r&&o!==Xr&&o!==Qr)return null;let i=0;for(;r<n;){let t=e.charCodeAt(r);if(t===o)i++;else if(t!==Fr&&t!==jr)return null;r++}return i<3?null:{node:{type:Do.breakThematic},end:Ai(e,n)}}function ji(e,t,n){let r=Si(e,t);if(Ii(e,t,r),Ti>3)return null;let o=Ti,i=t+Ni,a=e.charCodeAt(i);if(a!==Hr&&a!==Vr)return null;let l=Ri(e,i,r,a);if(l<3)return null;i+=l;let s=Pi(e,i,r),c=r;if(a===Hr)for(let t=s;t<r;t++)if(e.charCodeAt(t)===Hr)return null;for(;c>s&&(e.charCodeAt(c-1)===Fr||e.charCodeAt(c-1)===jr);)c--;let u=e.slice(s,c),d="",f="",p=u.indexOf(" ");-1===p?d=u:(d=u.slice(0,p),f=u.slice(p+1).trim()),d=Oi(d);var h=void 0;if(f){mi.lastIndex=0;for(var m;null!==(m=mi.exec(f));)h||(h={}),h[m[1]]=void 0!==m[2]?m[2]:m[3]}let v=Ai(e,r),g=v,y=e.length;for(;g<e.length;){let t=Si(e,g);if(Ii(e,g,t),Ti<4){let n=g+Ni;var b=Ri(e,n,t,a);if(b>=l&&Li(e,n+b,t)){y=Ai(e,t);break}}g=Ai(e,t)}var x;if(0===o)x=g>v&&e.charCodeAt(g-1)===Br?e.slice(v,g-1):e.slice(v,g);else{x="";for(var E=v;E<g;){var C=Si(e,E);Ii(e,E,C);var w=Math.min(Ni,o);x+=e.slice(E+w,C)+"\n",E=Ai(e,C)}x.length>0&&x.charCodeAt(x.length-1)===Br&&(x=x.slice(0,-1))}return{node:{type:Do.codeBlock,lang:d||void 0,text:x,infoString:f||void 0,attrs:h},end:y}}function zi(e,t){if(Ii(e,t,Si(e,t)),Ti<4)return null;let n="",r=t;for(;r<e.length;){let t=Si(e,r);if(Ii(e,r,t),Li(e,r,t)){for(var o=0,i=Ai(e,t);i<e.length;){var a=Si(e,i);if(!Li(e,i,a)){if(Ii(e,i,a),Ti>=4){for(var l=0;l<=o;l++)n+="\n";r=i;break}break}o++,i=Ai(e,a)}if(r!==i)break;continue}if(Ti<4)break;let f=0,p=0;var s=0;for(let n=r;n<t&&p<4;n++){if(e.charCodeAt(n)===jr){var c=4-p%4;p+c>4&&(s=p+c-4),p+=c}else p++;f++}var u="";if(s>0)for(var d=0;d<s;d++)u+=" ";n+=(u+=e.slice(r+f,t))+"\n",r=Ai(e,t)}for(;n.length>0&&n.charCodeAt(n.length-1)===Br;)n=n.slice(0,-1);for(;n.length>0&&n.charCodeAt(n.length-1)===Br;)n=n.slice(0,-1);return n?{node:{type:Do.codeBlock,text:n},end:r}:null}function Bi(e,t,n,r){if(Ii(e,t,Si(e,t)),Ti>3)return null;let o=t+Ni;if(e.charCodeAt(o)!==Zr)return null;let i,a="",l=t,s=!1,c=!1,u=!1;for(;l<e.length;){let t=Si(e,l);Ii(e,l,t);let n=l+Ni;if(e.charCodeAt(n)===Zr){let r=n+1;var d=Ti+1,f=!1;if(r<t){var p=e.charCodeAt(r);p===Fr?(r++,d++,f=!0):p===jr&&(f=!0)}for(var h="",m=!1,v=r;v<t;v++)if(e.charCodeAt(v)===jr){m=!0;break}if(m){var g=d;if(f&&r<t&&e.charCodeAt(r)===jr){for(var y=4-g%4,b=0;b<y-1;b++)h+=" ";g+=y,r++}for(var x=r;x<t;x++)if(e.charCodeAt(x)===jr){for(var E=4-g%4,C=0;C<E;C++)h+=" ";g+=E}else h+=e[x],g++}else h=e.slice(r,t);if(!a&&!i){let n=h.match(/^\[!([A-Za-z]+)\]\s*$/);if(n){i=n[1].toUpperCase(),l=Ai(e,t);continue}}a+=h+"\n";var w=h.trimStart();w.startsWith("```")||w.startsWith("~~~")?u=!u:h.startsWith(" ")||h.startsWith("\t")?u=!0:w.length>0&&!u&&(u=!1),c=w.length>0,l=Ai(e,t)}else{if(!a||Li(e,l,t)||!c)break;if(Ti<4){var _=l+Ni,k=_<t?e.charCodeAt(_):0;if(k===qr||k===Zr||k===Hr||k===Vr||k===Jr||(k===$r||k===Xr||k===Qr)&&Fi(e,l)||(k===$r||k===Xr||k===xo)&&_+1<t&&(e.charCodeAt(_+1)===Fr||e.charCodeAt(_+1)===jr))break;if(k>=Ao&&k<=Po){for(var O=_;O<t&&e.charCodeAt(O)>=Ao&&e.charCodeAt(O)<=Po;)O++;if(O<t&&(e.charCodeAt(O)===vo||e.charCodeAt(O)===ko))break}}if(u)break;a+=e.slice(l,t)+"\n",s=!0,l=Ai(e,t)}}if(!a&&!i)return null;var{inBlockQuote:S,f:A}=n;n.inBlockQuote=!0,s&&(n.f=!0);let P=_a(a||"",n,r);n.inBlockQuote=S,n.f=A;let M={type:Do.blockQuote,children:P};return i&&(M.alert=i),{node:M,end:l}}function Hi(e,t,n){for(var r=0,o=t;o<n;o++)e.charCodeAt(o)===jr?r+=4-r%4:r++;return r}function Vi(e,t,n){if(Ii(e,t,n),Ti>3)return null;var r=t+Ni;if(r>=n)return null;var o=e.charCodeAt(r),i=Ti,a=r;if(o===$r||o===Xr||o===xo){if((a=r+1)<n&&e.charCodeAt(a)!==Fr&&e.charCodeAt(a)!==jr&&e.charCodeAt(a)!==Br)return null}else{if(!(o>=Ao&&o<=Po))return null;for(var l=r;l<n&&l-r<9;){var s=e.charCodeAt(l);if(s<Ao||s>Po)break;l++}if(!(l>r&&l<n))return null;var c=e.charCodeAt(l);if(c!==vo&&c!==ko)return null;if((a=l+1)<n&&e.charCodeAt(a)!==Fr&&e.charCodeAt(a)!==jr&&e.charCodeAt(a)!==Br)return null}var u=a,d=Hi(e,t,a),f=0,p=u,h=d;if(u>=n)return{ordered:o>=Ao&&o<=Po,marker:o>=Ao&&o<=Po?e[l]:e[r],start:o>=Ao&&o<=Po?parseInt(e.slice(r,l),10):void 0,contentStart:u,contentCol:d+1,markerCol:i,isEmpty:!0};for(;p<n&&(e.charCodeAt(p)===Fr||e.charCodeAt(p)===jr);)e.charCodeAt(p)===jr?h+=4-h%4:h++,p++,f++;var m=p>=n;return m||h-d>4?(h=d+1,p=u+1,f=1):0===f&&(h=d+1,p=u,f=1),{ordered:o>=Ao&&o<=Po,marker:o>=Ao&&o<=Po?e[l]:e[r],start:o>=Ao&&o<=Po?parseInt(e.slice(r,l),10):void 0,contentStart:p,contentCol:h,markerCol:i,isEmpty:m}}var Ui=0;function Ki(e,t,n,r){var o=0,i=t;for(Ui=0;i<n&&o<r;){var a=e.charCodeAt(i);if(a===jr){var l=4-o%4;if(o+l>r){Ui=o+l-r,i++,o=r;break}o+=l}else{if(a!==Fr)break;o++}i++}return i}function Zi(e,t,n,r){var o=Si(e,t),i=Vi(e,t,o);if(!i)return null;var a=[],l=t,s=i.contentCol,c="",u=i.isEmpty,d=!1,f=!1;if(!i.isEmpty){for(var p=!1,h=i.contentStart;h<o;h++)if(e.charCodeAt(h)===jr){p=!0;break}if(p){var m="",v=Hi(e,t,i.contentStart),g=v-i.contentCol;if(g>0)for(var y=0;y<g;y++)m+=" ";for(var b=i.contentStart;b<o;b++)if(e.charCodeAt(b)===jr){for(var x=4-v%4,E=0;E<x;E++)m+=" ";v+=x}else m+=e[b],v++;c=m+"\n"}else c=e.slice(i.contentStart,o)+"\n"}for(l=Ai(e,o);l<e.length;){var C=Si(e,l);Ii(e,l,C);var w=e.charCodeAt(l+Ni);if(Ti<s&&(w===$r||w===Xr||w===Qr)&&Ti<=3&&Fi(e,l))break;var _=Vi(e,l,C);if(_&&_.ordered===i.ordered&&_.marker===i.marker&&_.markerCol<s)a.push({contentCol:s,raw:c,hasBlankAfter:d,isEmpty:u}),d&&(f=!0),s=_.contentCol,u=_.isEmpty,d=!1,c=_.isEmpty?"":e.slice(_.contentStart,C)+"\n",l=Ai(e,C);else if(Li(e,l,C)){c+="\n",l=Ai(e,C);for(var k=!1,O=0;O<c.length;O++){var S=c.charCodeAt(O);if(S!==Br&&S!==zr&&S!==Fr&&S!==jr){k=!0;break}}if(u&&!k){if(!(l<e.length))break;var A=Vi(e,l,Si(e,l));if(!A||A.ordered!==i.ordered||A.marker!==i.marker)break;d=!0}if(l<e.length){var P=Si(e,l);Ii(e,l,P);var M=e.charCodeAt(l+Ni);if((M===$r||M===Xr||M===Qr)&&Ti<=3&&Fi(e,l))break;var R=Vi(e,l,P);if(R&&R.ordered===i.ordered&&R.marker===i.marker&&R.markerCol<s){d=!0;continue}if(!Li(e,l,P)&&Ti<s)break}}else{if(!(Ti>=s)){for(var T=!1,N=0;N<c.length;N++){var I=c.charCodeAt(N);if(I!==Br&&I!==zr&&I!==Fr&&I!==jr){T=!0;break}}if(!d&&T&&!u){var L=l+Ni,D=e.charCodeAt(L);if(D!==qr&&D!==Zr&&D!==Jr&&D!==Hr&&D!==Vr&&(D!==$r&&D!==Xr&&D!==Qr&&D!==xo||null===Fi(e,l)&&null===Vi(e,l,C))&&!(D>=Ao&&D<=Po&&null!==Vi(e,l,C))){c+=""+e.slice(L,C)+"\n",l=Ai(e,C);continue}}break}var F=Ki(e,l,C,s);if(Ui>0){for(var j="",z=s,B=0;B<Ui;B++)j+=" ",z++;for(var H=F;H<C;H++)if(e.charCodeAt(H)===jr){for(var V=4-z%4,U=0;U<V;U++)j+=" ";z+=V}else j+=e[H],z++;c+=j+"\n"}else c+=e.slice(F,C)+"\n";l=Ai(e,C)}}if(a.push({contentCol:s,raw:c,hasBlankAfter:d,isEmpty:u}),0===a.length)return null;var K=f;if(!K)for(var Z=0;Z<a.length;Z++){if(a[Z].hasBlankAfter&&Z<a.length-1){K=!0;break}if(!a[Z].isEmpty){for(var q=a[Z].raw,W=q.length,$=0,G=!1,Y=!1,X=!1,Q=!1,J=0,ee=0,te=-1;$<W;){var ne=q.indexOf("\n",$);if(ne<0&&(ne=W),Q){Ii(q,$,ne);for(var re=q.slice($+Ni,ne),oe=0;oe<re.length&&re.charCodeAt(oe)===J;)oe++;oe>=ee&&""===re.slice(oe).trim()&&(Q=!1),$=ne<W?ne+1:W}else if(Li(q,$,ne))te>=0?X=!0:G&&(Y=!0),$=ne<W?ne+1:W;else{if(Ii(q,$,ne),te>=0){if(Ti>=te){$=ne<W?ne+1:W;continue}var ie=Vi(q,$,ne);if(ie&&ie.markerCol<te&&ie.contentCol<=te){$=ne<W?ne+1:W;continue}if(ie){$=ne<W?ne+1:W;continue}te=-1,X&&(Y=!0,X=!1)}var ae=q.slice($+Ni,ne),le=ae.charCodeAt(0);if((le===Hr||le===Vr)&&Ti<=3){for(var se=0;se<ae.length&&ae.charCodeAt(se)===le;)se++;if(se>=3){if(Y&&G){K=!0;break}Q=!0,J=le,ee=se,G=!0,$=ne<W?ne+1:W;continue}}var ce=Ti<=3?Vi(q,$,ne):null;if(ce&&G){if(Y){K=!0;break}te=ce.contentCol,X=!1,$=ne<W?ne+1:W,G=!0}else{if(Y){K=!0;break}G=!0,$=ne<W?ne+1:W}}}if(K)break}}for(var ue=[],de=0;de<a.length;de++){for(var fe=a[de],pe=fe.raw,he=pe.length;he>0&&pe.charCodeAt(he-1)===Br;)he--;var me,ve=he<pe.length?pe.slice(0,he):pe,ge=null;if(ve.length>=3&&ve.charCodeAt(0)===Ur){var ye=ve[1];(" "===ye||"x"===ye||"X"===ye)&&ve.charCodeAt(2)===to&&(ge={type:Do.gfmTask,completed:"x"===ye||"X"===ye},ve=ve.slice(3))}if(fe.isEmpty&&""===ve.trim())me=[];else if(K){var be=n.inList;n.inList=!0,me=_a(ve,n,r),n.inList=be}else{var xe=n.inList;if(n.inList=!0,me=_a(ve,n,r),n.inList=xe,1===me.length&&me[0].type===Do.paragraph)me=me[0].children;else{for(var Ee=[],Ce=0;Ce<me.length;Ce++)if(me[Ce].type===Do.paragraph)for(var we=me[Ce].children,_e=0;_e<we.length;_e++)Ee.push(we[_e]);else Ee.push(me[Ce]);me=Ee}}ge?ue.push([ge,{type:Do.text,text:" "},...me]):ue.push(me)}return{node:{type:i.ordered?Do.orderedList:Do.unorderedList,start:i.ordered?i.start:void 0,items:ue},end:l}}var qi=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function Wi(e,t,n){let r={};for(let[a,l]of Object.entries(e)){let e=a,s=a.toLowerCase();if("style"===s&&"string"==typeof l){let t={},n=[],o=0,i=0;for(let e=0;e<l.length;e++){let t=l.charCodeAt(e);t===_o?o++:t===ko?o--:t===ho&&0===o&&(n.push(l.slice(i,e)),i=e+1)}i<l.length&&n.push(l.slice(i));let a=!1;n.forEach((e=>{let n=e.indexOf(":");if(-1===n)return;let r=e.slice(0,n).trim(),o=e.slice(n+1).trim();if(r&&o){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(o))return void(a=!0);let e=-1!==r.indexOf("-")?r.replace(/-([a-z])/g,((e,t)=>t.toUpperCase())):r;t[e]=o}})),!a&&Object.keys(t).length>0&&(r[e]=t)}else if("href"!==s&&"src"!==s||!n?.sanitizer)if(""===l)r[e]=!0;else if(l.length>=2&&l.charCodeAt(0)===Co&&l.charCodeAt(l.length-1)===wo){var o=l.slice(1,-1);if(o.length>0){var i=o.charCodeAt(0);if(i===Ur||i===Co)try{r[e]=JSON.parse(o);continue}catch{}}if("true"===o){r[e]=!0;continue}if("false"===o){r[e]=!1;continue}if(n?.evalUnserializableExpressions)try{r[e]=(0,eval)("("+o+")");continue}catch{}r[e]=o}else r[e]=l;else{let o=n.sanitizer(l,t,s);null!==o&&(r[e]=o)}}return r}function $i(e,t,n){let r=t.length;var o=t.charCodeAt(0);o>=Mo&&o<=Ro&&(o+=Lo);for(let a=n;a<=e.length-r;a++){var i=e.charCodeAt(a);if(i>=Mo&&i<=Ro&&(i+=Lo),i!==o)continue;let n=!0;for(let o=1;o<r;o++){let r=e.charCodeAt(a+o),i=t.charCodeAt(o);if(r>=Mo&&r<=Ro&&(r+=Lo),i>=Mo&&i<=Ro&&(i+=Lo),r!==i){n=!1;break}}if(n)return a}return-1}var Gi=-1;function Yi(e,t,n){let r=n.toLowerCase(),o="<"+r,i="</"+r,a=1,l=t,s=e.length;for(Gi=-1;l<s&&a>0;){let t=$i(e,o,l),n=$i(e,i,l);if(-1===n)return-1;if(-1!==t&&t<n){let n=gi(e,t);n?(n.tag.toLowerCase()===r&&!n.isClosing&&!n.selfClosing&&!Xo(n.tag)&&a++,l=n.end):l=t+1}else{var c=n+i.length,u=c<s?e.charCodeAt(c):62;if((u===Zr||u===Fr||u===jr||u===Br)&&(a--,0===a)){Gi=n;let t=n+i.length;for(;t<s&&e.charCodeAt(t)!==Zr;)t++;return t+1}l=n+1}}return-1}function Xi(e,t,n,r){if(r.ignoreHTMLBlocks||r.disableParsingRawHTML)return null;var o=Si(e,t);if(Ii(e,t,o),Ti>3&&!n.inHTML)return null;var i=t+Ni;if(e.charCodeAt(i)!==Jr)return null;var a=e.indexOf(">",i+1);if(-1!==a&&a<o){var l=e.slice(i+1,a);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(l)||/^[^\s@]+@[^\s@]+$/.test(l))return null}var s=function(e,t){if(e.charCodeAt(t)!==Jr)return 0;var n=t+1,r=e.length;if(e.charCodeAt(n)===no&&e.charCodeAt(n+1)===$r&&e.charCodeAt(n+2)===$r)return 2;if(e.charCodeAt(n)===mo)return 3;if(e.charCodeAt(n)===no){var o=e.charCodeAt(n+1);if(o>=Mo&&o<=Ro)return 4;if("[CDATA["===e.slice(n+1,n+8))return 5}for(var i=e.charCodeAt(n)===go,a=i?n+1:n,l=a;l<r;){var s=e.charCodeAt(l);if(!(s>=Mo&&s<=Ro||s>=To&&s<=No||s>=Ao&&s<=Po||s===$r))break;l++}if(l===a)return 0;var c=e.slice(a,l);if(di.has(c.toLowerCase())){if(i)return 0;var u=e.charCodeAt(l);return u===Fr||u===jr||u===Zr||u===Br||l>=r?1:0}if(qi.has(c.toLowerCase())){if(i){for(var d=l;d<r&&(e.charCodeAt(d)===Fr||e.charCodeAt(d)===jr);)d++;return d<r&&e.charCodeAt(d)===Zr?6:0}var f=l<r?e.charCodeAt(l):-1;return f===Fr||f===jr||f===Zr||f===Br||f===go||-1===f?6:0}if(i){for(var p=l;p<r&&(e.charCodeAt(p)===Fr||e.charCodeAt(p)===jr);)p++;if(p<r&&e.charCodeAt(p)===Zr){var h=Si(e,t);if(""===e.slice(p+1,h).trim())return 7}}else{var m=Si(e,t),v=gi(e,t);if(v&&v.end<=m&&""===e.slice(v.end,m).trim())return 7}return 0}(e,i);if(s>=1&&s<=5){var c=e.length;if(1===s){for(var u=e.length,d=0;d<ui.length;d++){var f=$i(e,"</"+ui[d]+">",i);f>=0&&f<u&&(u=f)}if(u<e.length){var p=e.indexOf(">",u);c=p>=0?Ai(e,p+1):e.length}}else{var h=2===s?"--\x3e":3===s?"?>":4===s?">":"]]>",m=e.indexOf(h,i);m>=0&&(c=Ai(e,m+h.length))}var v=e.slice(i,c);if(s>=2)return{node:{type:Do.htmlComment,text:v,raw:!0,endPos:c},end:c};var g="div",y=v.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);y&&(g=y[1]);var b,x=gi(e,i),E={};x&&!x.isClosing&&(E=Wi(x.attrs,g,r),b=x.whitespaceBeforeAttrs+x.rawAttrs);var C=$i(v,"</"+g.toLowerCase(),0),w=v,_="";if(x&&x.isClosing)for(w=v.slice(x.end-i);w.length>0&&w.charCodeAt(w.length-1)===Br;)w=w.slice(0,-1);else if(x&&!x.isClosing){var k=x.end-i;if(-1!==C)for((w=v.slice(k)).charCodeAt(0)===Br&&(w=w.slice(1));w.length>0&&w.charCodeAt(w.length-1)===Br;)w=w.slice(0,-1);else for(w=v;w.length>0&&w.charCodeAt(w.length-1)===Br;)w=w.slice(0,-1);-1!==C&&(_=v.slice(k,C).trim())}var O=!!x&&x.isClosing;return{node:{type:Do.htmlBlock,tag:g,attrs:E,e:b,children:[],a:w,text:_,d:!0,b:O,endPos:c,canInterruptParagraph:!0},end:c}}if(6===s||7===s){var S=Mi(e,t),A=S<e.length?S:e.length,P=e.slice(i,A),M=S<e.length?Ai(e,S):e.length,R=gi(e,i);if(R){var T=R.tag,N=T.toLowerCase();if(R.isClosing){var I=e.slice(R.end,A);return{node:{type:Do.htmlBlock,tag:T,attrs:{},children:[],a:I,text:I,d:!0,b:!0,endPos:A,canInterruptParagraph:6===s},end:M}}var L=n.c||0,D=e.slice(i,A),F=-1,j=-1;if(!R.selfClosing&&!Xo(T)&&L<10){for(var z="</"+N,B=1,H=R.end-i;H<D.length&&B>0;){var V=$i(D,"<"+N,H),U=$i(D,z,H);if(-1===U)break;if(-1!==V&&V<U){var K=V+N.length+1;if(K<D.length){var Z=D.charCodeAt(K);(Z===Fr||Z===jr||Z===Br||Z===Zr||Z===go)&&B++}H=V+1}else{var q=U+z.length;if(q<D.length){var W=D.charCodeAt(q);if((W===Zr||W===Fr||W===jr||W===Br)&&0==--B){F=U;for(var $=q;$<D.length&&D.charCodeAt($)!==Zr;)$++;j=$+1;break}}else if(0==--B){F=U,j=D.length;break}H=U+1}}var G=!1;if(-1===F&&6===s&&!R.isClosing&&!pi.has(N)){var Y=e.slice(R.end),X=$i(Y,z,0);if(-1!==X&&-1!==Y.slice(0,X).indexOf("\n\n")){for(var Q=R.end+X,J=Q+z.length;J<e.length&&e.charCodeAt(J)!==Zr;)J++;if(J<e.length&&e.charCodeAt(J)===Zr){var ee=J+1,te=Si(e,ee);A=te,M=Ai(e,te),D=e.slice(i,A),P=e.slice(i,A),F=Q-i,j=ee-i,G=!0}}}}var ne=-1!==R.rawAttrs.indexOf("\n")||-1!==R.whitespaceBeforeAttrs.indexOf("\n"),re=!1;-1!==F&&(re=0===D.slice(j).trim().length);var oe=!1,ie=A,ae=M;if(-1!==F){var le=i+j,se=Si(e,le-1);if(le<se){for(var ce=le;ce<se&&(e.charCodeAt(ce)===Fr||e.charCodeAt(ce)===jr);)ce++;if(ce<se&&e.charCodeAt(ce)===Jr){var ue=gi(e,ce);ue&&!ue.isClosing&&(oe=!0,ie=le,ae=le,re=!0)}}if(!oe){var de=Ai(e,se);if(de<A){for(var fe=de;fe<A&&(e.charCodeAt(fe)===Fr||e.charCodeAt(fe)===jr);)fe++;fe<A&&e.charCodeAt(fe)===Jr&&gi(e,fe)&&(oe=!0,ie=se,ae=de,re=!0)}}!oe&&n.inHTML&&(oe=!0,ie=se,ae=Ai(e,se),re=0===e.slice(le,se).trim().length)}var pe=[],he="";if(-1!==F){var me=(he=D.slice(R.end-i,F)).trim();if(me){var{inline:ve,inHTML:ge,c:ye}=n;if(n.inHTML=!0,n.c=L+1,"p"===N)n.inline=!0,pe=Ca(me,0,me.length,n,r);else{var be=-1!==he.indexOf("\n\n"),xe=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(me),Ee=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.test(me);be||xe||n.inHTML&&Ee||Ee?(n.inline=!1,pe=_a(he,n,r)):(n.inline=!0,pe=Ca(me,0,me.length,n,r))}n.inline=ve,n.inHTML=ge,n.c=ye}}var Ce=!1;if(6===s&&-1!==F&&!n.inHTML&&!ne){var we=he,_e=/<[a-zA-Z][^>]*>/.test(we),ke=/\n\n/.test(we)||/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(we);_e&&!ke&&(Ce=!0)}if(n.inHTML||7===s||ne||!re||Ce){var Oe;if(-1!==F&&oe){var Se=!1;if(n.inHTML&&j<D.length){for(var Ae=j;Ae<D.length&&D.charCodeAt(Ae)!==Br;)Ae++;var Pe=D.slice(j,Ae).trim();Se=Pe.length>1&&Pe.charCodeAt(0)===Jr&&Pe.charCodeAt(1)!==go}Oe=Se?D.slice(R.end-i):he}else 7!==s&&!n.inHTML||-1===F?oe?Oe=e.slice(i,ie):ne?Oe=P:(Oe=D.slice(R.end-i)).charCodeAt(0)===Br&&(Oe=Oe.slice(1)):(Oe=D.slice(R.end-i)).charCodeAt(0)===Br&&(Oe=Oe.slice(1));return{node:{type:Do.htmlBlock,tag:T,attrs:Wi(R.attrs,T,r),e:R.whitespaceBeforeAttrs+R.rawAttrs,children:pe,a:Oe,text:Oe,d:!0,b:!1,endPos:ie,canInterruptParagraph:6===s},end:ae}}return{node:{type:Do.htmlBlock,tag:T,attrs:Wi(R.attrs,T,r),e:R.whitespaceBeforeAttrs+R.rawAttrs,children:pe,a:G?"":he,text:he,d:!1,b:!1,endPos:ie,canInterruptParagraph:6===s},end:ae}}var Me=P.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Re=Me?Me[2]:"div",Te=!!Me&&"/"===Me[1],Ne=P;if(Te){var Ie=P.indexOf(">");-1!==Ie&&(Ne=P.slice(Ie+1))}return{node:{type:Do.htmlBlock,tag:Re,attrs:{},children:[],a:Ne,text:Ne,d:!0,b:Te,endPos:A,canInterruptParagraph:6===s},end:M}}var Le=gi(e,i);if(!Le)return null;var De=Le.tag,Fe=De.toLowerCase(),je=De.charCodeAt(0),ze=je>=Mo&&je<=Ro;if(!(ze||qi.has(Fe)||di.has(Fe)||Fe.includes("-")))return null;if(Le.isClosing)return{node:{type:Do.htmlSelfClosing,tag:De,attrs:{},endPos:Le.end,b:!0,a:e.slice(i,Le.end)},end:Le.end};var Be=Yi(e,Le.end,De),He=[];if(-1!==Be){var Ve=Gi,Ue=e.slice(Le.end,Ve),Ke=Ue.trim();if(Ke){var Ze=-1!==Ue.indexOf("\n\n"),qe=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(Ke),We=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.test(Ke),$e=n.inline,Ge=n.inHTML,Ye=n.c;n.inHTML=!0,n.c=(n.c||0)+1,Ze||qe||We?(n.inline=!1,He=_a(Ue,n,r)):(n.inline=!0,He=Ca(Ke,0,Ke.length,n,r)),n.inline=$e,n.inHTML=Ge,n.c=Ye}var Xe=Si(e,Be),Qe=e.slice(Be,Xe).trim()?Be:Ai(e,Be),Je=ze?e.slice(i,Be):e.slice(i,Qe),et=ze?Be:Qe;return{node:{type:Do.htmlBlock,tag:De,attrs:Wi(Le.attrs,De,r),e:Le.whitespaceBeforeAttrs+Le.rawAttrs,children:He,a:Je,text:ze?Ue:Je,d:!0,b:!1,endPos:et,canInterruptParagraph:!1},end:Qe}}var tt=Mi(e,Le.end),nt=tt<e.length?Ai(e,tt):tt,rt=e.slice(Le.end,tt);if(rt.trim()){var{inline:ot,inHTML:it,c:at}=n;n.inline=!1,n.inHTML=!0,n.c=(n.c||0)+1,He=_a(rt,n,r),n.inline=ot,n.inHTML=it,n.c=at}var lt=e.slice(Le.end,tt);return{node:{type:Do.htmlBlock,tag:De,attrs:Wi(Le.attrs,De,r),e:Le.whitespaceBeforeAttrs+Le.rawAttrs,children:He,a:lt,text:rt,d:!0,b:!1,endPos:tt,canInterruptParagraph:!1},end:nt}}function Qi(e,t,n){for(var r=0,o=e.length;r<o&&(e.charCodeAt(r)===Fr||e.charCodeAt(r)===jr);)r++;for(;o>r&&(e.charCodeAt(o-1)===Fr||e.charCodeAt(o-1)===jr);)o--;r<o&&e.charCodeAt(r)===Eo&&r++,o>r&&e.charCodeAt(o-1)===Eo&&(o-2<r||e.charCodeAt(o-2)!==Yr)&&o--;for(var i=[],a=r,l=!1,s=[],c=r;c<o;){var u=e.charCodeAt(c);if(u===Yr&&c+1<o)e.charCodeAt(c+1)===Eo?(l||(l=!0,s=[]),s.push(e.slice(a,c)),s.push("|"),a=c+=2):c+=2;else if(u!==Hr)if(u!==Eo)c++;else{var d=l?(s.push(e.slice(a,c)),s.join("")):e.slice(a,c);i.push(d.trim()),a=++c,l=!1,s=[]}else{for(var f=0;c<o&&e.charCodeAt(c)===Hr;)f++,c++;for(var p=!1;c<o&&!p;){for(var h=0;c<o&&e.charCodeAt(c)===Hr;)h++,c++;h===f?p=!0:0===h&&c++}}}var m=l?(s.push(e.slice(a,o)),s.join("")):e.slice(a,o);return i.push(m.trim()),i.map((function(e){var r=-1!==e.indexOf("\\|")?e.replace(/\\\|/g,"|"):e;return Ca(r,0,r.length,t,n)}))}function Ji(e,t,n,r){let o=Si(e,t);var i=e.indexOf("|",t);if(i<0||i>=o)return null;let a=Ai(e,o);if(a>=e.length)return null;let l=Si(e,a);if(!vi(e,a,l))return null;let s=e.slice(t,o),c=e.slice(a,l);for(var u=[],d=0,f=c.length;d<f&&(c.charCodeAt(d)===Fr||c.charCodeAt(d)===jr);)d++;for(d<f&&c.charCodeAt(d)===Eo&&d++;d<f;){for(;d<f&&(c.charCodeAt(d)===Fr||c.charCodeAt(d)===jr);)d++;if(d>=f||c.charCodeAt(d)===Eo)break;var p=c.charCodeAt(d)===oo;for(p&&d++;d<f&&c.charCodeAt(d)===$r;)d++;var h=d<f&&c.charCodeAt(d)===oo;for(h&&d++,u.push(p&&h?"center":h?"right":p?"left":null);d<f&&(c.charCodeAt(d)===Fr||c.charCodeAt(d)===jr);)d++;d<f&&c.charCodeAt(d)===Eo&&d++}let m=Qi(s,n,r);if(u.length!==m.length)return null;let v=[],g=Ai(e,l);for(;g<e.length;){let t=Si(e,g),o=e.slice(g,t);if(Li(e,g,t))break;if(Ii(e,g,t),Ti<4){var y=e.charCodeAt(g+Ni);if(y===Zr||y===qr||(y===$r||y===Xr||y===Qr)&&Fi(e,g))break;if(y===Hr||y===Vr){for(var b=g+Ni,x=0;b<t&&e.charCodeAt(b)===y;)x++,b++;if(x>=3)break}}v.push(Qi(o,n,r)),g=Ai(e,t)}if((r.streaming||r.optimizeForStreaming)&&0===v.length)return null;for(var E=m.length,C=0;C<v.length;C++)if(v[C].length<E)for(;v[C].length<E;)v[C].push([]);else v[C].length>E&&(v[C].length=E);return{node:{type:Do.table,header:m,cells:v,align:u},end:g}}function ea(e,t,n){if(Ii(e,t,Si(e,t)),Ti>3)return null;var r=t+Ni;if(e.charCodeAt(r)!==Ur)return null;if(r+1<e.length&&e.charCodeAt(r+1)===Kr){var o=function(e,t,n){var r=e.length;if(e.charCodeAt(t)!==Ur||t+1>=r||e.charCodeAt(t+1)!==Kr)return null;for(var o=t+2,i=o;o<r&&e.charCodeAt(o)!==to;){if(e.charCodeAt(o)===Br)return null;o++}if(o>=r)return null;var a=("^"+e.slice(i,o)).toLowerCase();if(++o>=r||e.charCodeAt(o)!==oo)return null;for(o++;o<r&&(e.charCodeAt(o)===Fr||e.charCodeAt(o)===jr);)o++;if(o<r&&e.charCodeAt(o)===Br)for(o++;o<r&&(e.charCodeAt(o)===Fr||e.charCodeAt(o)===jr);)o++;var l=e.indexOf("\n",o);l<0&&(l=r);for(var s=e.slice(o,l).trim(),c=l<r?l+1:r;c<r;){var u=Si(e,c);if(Ii(e,c,u),!(Ti>=2)||Li(e,c,u)){if(Li(e,c,u)){var d=Ai(e,u);if(d<r&&(Ii(e,d,Si(e,d)),Ti>=2)){s+="\n",c=Ai(e,u);continue}break}break}s+="\n"+e.slice(c,u),c=Ai(e,u)}return n.refs[a]||(n.refs[a]={target:s,title:void 0}),{node:{type:Do.footnote},end:c}}(e,r,n);return o||null}n.refs||(n.refs={});var i=bi(e,r,n.refs);return null===i?null:{node:{type:Do.refCollection},end:i}}function ta(e,t,n,r){let o=t,i=0,a=0,l=-1;for(;o<e.length;){let t=l>=0?l:Si(e,o);if(l=-1,Li(e,o,t))break;if(Ii(e,o,t),Ti<4&&a>0&&!n.f){let n=e.charCodeAt(o+Ni);if(n===Gr||n===$r){let r=o+Ni;for(;r<t&&e.charCodeAt(r)===n;)r++;for(;r<t&&(e.charCodeAt(r)===Fr||e.charCodeAt(r)===jr);)r++;if(r>=t){i=n===Gr?1:2,o=Ai(e,t);break}}}a=t;let b=Ai(e,t);if(b<e.length){if(e.charCodeAt(b)===Oo){var s=Si(e,b);o=Ai(e,s),a=s;continue}let t=Si(e,b);if(l=t,Ii(e,b,t),Ti<4){let i=e.charCodeAt(b+Ni);if(i===Zr){o=b;break}if(i===qr&&Di(e,b,n,r)){o=b;break}if(i===Hr||i===Vr){for(var c=b+Ni,u=0;c<t&&e.charCodeAt(c)===i;)u++,c++;if(u>=3){o=b;break}}if(i===Jr){var d=b+Ni+1,f=d<t?e.charCodeAt(d):0,p=f===no||f===mo;if(p||f!==go){if(!p){for(var h=d;h<t&&(e.charCodeAt(h)>=Mo&&e.charCodeAt(h)<=Ro||e.charCodeAt(h)>=To&&e.charCodeAt(h)<=No||e.charCodeAt(h)>=Ao&&e.charCodeAt(h)<=Po||e.charCodeAt(h)===$r);)h++;if(h>d){var m=e.slice(d,h).toLowerCase();p=qi.has(m)||di.has(m)}}}else{for(var v=d+1,g=v;g<t&&(e.charCodeAt(g)>=Mo&&e.charCodeAt(g)<=Ro||e.charCodeAt(g)>=To&&e.charCodeAt(g)<=No||e.charCodeAt(g)>=Ao&&e.charCodeAt(g)<=Po||e.charCodeAt(g)===$r);)g++;g>v&&(p=qi.has(e.slice(v,g).toLowerCase()))}if(p&&Xi(e,b,n,r)){o=b;break}}if(i===$r||i===Xr||i===xo){let n=b+Ni+1;if(n<t&&(e.charCodeAt(n)===Fr||e.charCodeAt(n)===jr)&&Pi(e,n,t)<t&&!Fi(e,b)){o=b;break}}if(i>=Ao&&i<=Po){let n=b+Ni;for(;n<t&&e.charCodeAt(n)>=Ao&&e.charCodeAt(n)<=Po;)n++;if(n<t&&(e.charCodeAt(n)===vo||e.charCodeAt(n)===ko)&&n-(b+Ni)==1&&49===e.charCodeAt(b+Ni)){var y=n+1;if(y<t&&(e.charCodeAt(y)===Fr||e.charCodeAt(y)===jr)&&Pi(e,y,t)<t){o=b;break}}}if(i===Eo){let n=Ai(e,t);if(n<e.length&&vi(e,n,Si(e,n))){o=b;break}}if((i===$r||i===Xr||i===Qr)&&Fi(e,b)){if(i!==$r){o=b;break}let n=0,r=b+Ni;for(;r<t&&e.charCodeAt(r)===$r;)n++,r++;for(;r<t&&(e.charCodeAt(r)===Fr||e.charCodeAt(r)===jr);)r++;if(r<t){o=b;break}}}}o=Ai(e,t)}for(var b=i?a:o;b>t&&(e.charCodeAt(b-1)===Br||e.charCodeAt(b-1)===zr||e.charCodeAt(b-1)===Fr||e.charCodeAt(b-1)===jr);)b--;for(var x=t;x<b&&(e.charCodeAt(x)===Fr||e.charCodeAt(x)===jr);)x++;if(x>=b)return null;for(var E=!1,C=x;C<b;C++)if(e.charCodeAt(C)===Oo){E=!0;break}var w=E?e.slice(x,b).replace(/\u001E/g,""):e.slice(x,b);if(!w)return null;let _=function(e,t,n,r,o){var i=e.indexOf("\n",0);if(i<0||i>=n)return Ca(e,0,n,r,o);for(var a="",l=0,s=0;s<n;){var c=e.charCodeAt(s);if(c===Hr){var u=ra(e,s,n);if(u>s){for(var d=!1,f=s;f<u;f++)if(e.charCodeAt(f)===Br){d=!0;break}d&&(a+=e.slice(l,s),a+=e.slice(s,u).replace(/\n/g," "),l=u),s=u;continue}}if(c===Jr){var p=oa(e,s,n);if(p>s){s=p;continue}}if(c!==Br)s++;else{var h=!1,m=0;if(s>0&&e.charCodeAt(s-1)===Yr)h=!0,m=1;else{for(var v=0,g=s-1;g>=0&&e.charCodeAt(g)===Fr;)v++,g--;v>=2&&(h=!0,m=v)}for(h?(a+=e.slice(l,s-m),a+=""):a+=e.slice(l,s+1),s++;s<n&&e.charCodeAt(s)===Fr;)s++;l=s}}return l<n&&(a+=e.slice(l,n)),Ca(a,0,a.length,r,o)}(w,0,w.length,n,r);if(i){let e=(r?.slugify||$o)(w);return{node:{type:Do.heading,level:i,children:_,id:e},end:o}}return{node:{type:Do.paragraph,children:_},end:o}}function na(e,t,n){if(e.charCodeAt(t)!==Hr)return null;let r=Ri(e,t,n,96),o=t+r;for(;o<n;){let i=e.indexOf("`",o);if(i<0||i>=n)return null;let a=Ri(e,i,n,96);if(a===r){let n=e.slice(t+r,i);return n=n.replace(/\n/g," "),n.length>0&&" "===n[0]&&" "===n[n.length-1]&&n.trim().length>0&&(n=n.slice(1,-1)),{node:{type:Do.codeInline,text:n},end:i+a}}o=i+a}return null}function ra(e,t,n){if(e.charCodeAt(t)!==Hr)return t;let r=Ri(e,t,n,96),o=t+r;for(;o<n;){let i=e.indexOf("`",o);if(i<0||i>=n)return t;let a=Ri(e,i,n,96);if(a===r)return i+a;o=i+a}return t}function oa(e,t,n){if(e.charCodeAt(t)!==Jr)return t;if(t+1<n&&e.charCodeAt(t+1)===go){let r=t+2;for(;r<n&&e.charCodeAt(r)!==Zr;)r++;return r<n?r+1:t}if(t+3<n&&e.charCodeAt(t+1)===no&&e.charCodeAt(t+2)===$r&&e.charCodeAt(t+3)===$r){let n=e.indexOf("--\x3e",t+4);return n>=0?n+3:t}let r=t+1,o=r;for(;r<n;){let t=e.charCodeAt(r);if(!(t>=Mo&&t<=Ro||t>=To&&t<=No||t>=Ao&&t<=Po||t===$r))break;r++}if(r===o)return t;let i=e.slice(o,r).toLowerCase(),a=!1;for(;r<n;){let o=e.charCodeAt(r);if(o===Zr){r++;break}if(o===go&&r+1<n&&e.charCodeAt(r+1)===Zr){r+=2,a=!0;break}if(o!==bo&&o!==yo){if(o===Br)return t;r++}else{var l=o;for(r++;r<n&&e.charCodeAt(r)!==l;)r++;r<n&&r++}}if(a||Xo(i))return r;let s=1;for(;r<n&&s>0;)if(e.charCodeAt(r)===Jr)if(r+1<n&&e.charCodeAt(r+1)===go){let t=r+2,o=t;for(;o<n&&(e.charCodeAt(o)>=Mo&&e.charCodeAt(o)<=Ro||e.charCodeAt(o)>=To&&e.charCodeAt(o)<=No);)o++;if(e.slice(t,o).toLowerCase()===i){for(;o<n&&e.charCodeAt(o)!==Zr;)o++;if(o<n&&o++,s--,0===s)return o}r=o}else{let t=r+1,o=t;for(;o<n&&(e.charCodeAt(o)>=Mo&&e.charCodeAt(o)<=Ro||e.charCodeAt(o)>=To&&e.charCodeAt(o)<=No);)o++;e.slice(t,o).toLowerCase()===i&&s++,r++}else r++;return r}function ia(e,t,n,r,o){if(e.charCodeAt(t)!==Vr||t+1>=n||e.charCodeAt(t+1)!==Vr)return null;let i=t+2;for(;i+1<n;){let a=e.charCodeAt(i);if(a===Hr){let t=ra(e,i,n);if(t>i){i=t;continue}}if(a===Vr&&e.charCodeAt(i+1)===Vr){let n=e.slice(t+2,i),a=Ca(n,0,n.length,r,o);return{node:{type:Do.textFormatted,tag:"del",children:a},end:i+2}}a===Yr&&i+1<n&&i++,i++}return null}function aa(e,t,n,r,o){if(e.charCodeAt(t)!==Gr||t+1>=n||e.charCodeAt(t+1)!==Gr)return null;let i=t+2;for(;i+1<n;){let a=e.charCodeAt(i);if(a===Hr){let t=ra(e,i,n);if(t>i){i=t;continue}}if(a===Gr&&e.charCodeAt(i+1)===Gr&&i>t+2){let n=e.slice(t+2,i),a=Ca(n,0,n.length,r,o);return{node:{type:Do.textFormatted,tag:"mark",children:a},end:i+2}}a===Yr&&i+1<n&&i++,i++}return null}var la=/[\p{P}\p{S}]/u;function sa(e,t,n){return e<Io?!!(ki(e)&Ei):la.test(t[n])}function ca(e,t,n){return e<Io?!!(ki(e)&xi):/\p{Zs}/u.test(t[n])}function ua(e,t,n){var r=e.charCodeAt(t);if(r!==Xr&&r!==Qr)return null;var o=Ri(e,t,n,r);if(0===o)return null;var i,a,l=t>0?e.charCodeAt(t-1):32,s=t+o<n?e.charCodeAt(t+o):32,c=ca(l,e,t-1),u=ca(s,e,t+o),d=t>0&&sa(l,e,t-1),f=t+o<n&&sa(s,e,t+o),p=!u&&(!f||c||d),h=!c&&(!d||u||f);return r===Xr?(i=p,a=h):(i=p&&(!h||d),a=h&&(!p||f)),{len:o,canOpen:i,canClose:a}}function da(e,t,n,r,o){let i=e.charCodeAt(t)===no,a=i?t+1:t;if(e.charCodeAt(a)!==Ur)return null;var l=e.indexOf("]",a+1);if(l<0||l>=n)return null;for(var s=a+1,c=1;s<n&&c>0;){var u=e.charCodeAt(s);if(u===Yr&&s+1<n)s+=2;else{if(u===Hr){var d=ra(e,s,n);if(d>s){s=d;continue}}if(u===Jr){var f=fa(e,s,n);if(f){s=f.end;continue}var p=oa(e,s,n);if(p>s){s=p;continue}}u===Ur?c++:u===to&&c--,s++}}if(0!==c)return null;var h=s-1,m=e.slice(a+1,h),v=s<n?e.charCodeAt(s):0,g=!1;if(v===_o){var y=!0;for(s++;s<n&&(e.charCodeAt(s)===Fr||e.charCodeAt(s)===Br);)s++;var b="",x=s;if(s<n&&e.charCodeAt(s)===Jr){for(x=++s;x<n&&e.charCodeAt(x)!==Zr;)if(e.charCodeAt(x)===Yr&&x+1<n)x+=2;else{if(e.charCodeAt(x)===Br){y=!1;break}x++}y&&(x>=n||e.charCodeAt(x)!==Zr)&&(y=!1),y&&(b=e.slice(s,x),x++)}else if(y){for(var E=0;x<n;){var C=e.charCodeAt(x);if(C===Yr&&x+1<n)x+=2;else{if(C===_o)E++;else if(C===ko){if(0===E)break;E--}else if(C===Fr||C===Br)break;x++}}b=e.slice(s,x)}if(y){for(s=x;s<n&&(e.charCodeAt(s)===Fr||e.charCodeAt(s)===Br);)s++;var w;if(s<n){var _=e.charCodeAt(s);if(_===bo||_===yo||_===_o){for(var k=_===_o?41:_,O=++s;s<n&&e.charCodeAt(s)!==k;)e.charCodeAt(s)===Yr&&s+1<n&&s++,s++;s>=n?y=!1:(w=e.slice(O,s),s++)}}if(y){for(;s<n&&(e.charCodeAt(s)===Fr||e.charCodeAt(s)===Br);)s++;(s>=n||e.charCodeAt(s)!==ko)&&(y=!1)}}if(y){s++,b=Oi(b),void 0!==w&&(w=Ho(Oi(w)));var S=null===(o?.sanitizer||Uo)(b,i?"img":"a",i?"src":"href")?null:b;if(i){var A=ga(Ca(m,0,m.length,r,o));return{node:{type:Do.image,target:S,alt:A,title:w},end:s}}var P=r.inAnchor;r.inAnchor=!0;var M=P?[{type:Do.text,text:m}]:Ca(m,0,m.length,r,o);return r.inAnchor=P,!r.inAnchor&&va(M)?null:{node:{type:Do.link,target:S,title:w,children:M},end:s}}s=h+1,g=!0}var R="",T=s;if(g||v!==Ur){if(wi(m))return null;R=_i(m)}else{var N=s+1;T=N;for(var I=!1;T<n&&e.charCodeAt(T)!==to;)if(e.charCodeAt(T)===Yr&&T+1<n)T+=2;else{if(e.charCodeAt(T)===Ur){I=!0;break}T++}if(I||T>=n)return null;var L=e.slice(N,T);if(L.trim())R=_i(L);else{if(wi(m))return null;R=_i(m)}T+=1}var D=r.refs[R];if(!D)return null;if(i)return{node:{type:Do.image,target:D.target,alt:ga(Ca(m,0,m.length,r,o)),title:D.title},end:T};var F=r.inAnchor;return r.inAnchor=!0,M=F?[{type:Do.text,text:m}]:Ca(m,0,m.length,r,o),r.inAnchor=F,!r.inAnchor&&va(M)?null:{node:{type:Do.link,target:D.target,title:D.title,children:M},end:T}}function fa(e,t,n){if(e.charCodeAt(t)!==Jr)return null;for(var r=t+1;r<n;){var o=e.charCodeAt(r);if(o===Zr)break;if(o===Fr||o===Br||o===zr||o===Jr)return null;r++}if(r>=n||e.charCodeAt(r)!==Zr)return null;var i=e.slice(t+1,r);return i.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/)?{node:{type:Do.link,target:i,children:[{type:Do.text,text:i}]},end:r+1}:-1!==i.indexOf("@")&&/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(i)?{node:{type:Do.link,target:"mailto:"+i,children:[{type:Do.text,text:i}]},end:r+1}:null}function pa(e,t,n,r){if(e.charCodeAt(t)!==Ur||t+1>=n||e.charCodeAt(t+1)!==Kr)return null;let o=t+2;for(;o<n&&e.charCodeAt(o)!==to&&e.charCodeAt(o)!==Br;)o++;if(o>=n||e.charCodeAt(o)!==to)return null;let i=e.slice(t+2,o);return i?{node:{type:Do.footnoteReference,target:"#"+$o(i),text:i},end:o+1}:null}function ha(e,t,n,r){if(r.disableBareUrls)return null;var o="",i=!1,a=e.charCodeAt(t);if(a===ao||72===a?t+8<=n&&e.charCodeAt(t+1)===so&&e.charCodeAt(t+2)===so&&e.charCodeAt(t+3)===co&&(e.charCodeAt(t+4)===uo&&e.charCodeAt(t+5)===oo&&e.charCodeAt(t+6)===go&&e.charCodeAt(t+7)===go?o="https://":e.charCodeAt(t+4)===oo&&e.charCodeAt(t+5)===go&&e.charCodeAt(t+6)===go&&(o="http://")):a===io||70===a?t+6<=n&&e.charCodeAt(t+1)===so&&e.charCodeAt(t+2)===co&&e.charCodeAt(t+3)===oo&&e.charCodeAt(t+4)===go&&e.charCodeAt(t+5)===go&&(o="ftp://"):(a===lo||87===a)&&t+4<=n&&e.charCodeAt(t+1)===lo&&e.charCodeAt(t+2)===lo&&e.charCodeAt(t+3)===vo&&(o="www.",i=!0),!o)return null;let l=t+o.length;for(;l<n;){let t=e.charCodeAt(l);if(t===Fr||t===Br||t===jr||t===zr||t===Jr||t===Zr)break;l++}for(var s=0,c=0,u=t;u<l;u++){var d=e.charCodeAt(u);d===_o?s++:d===ko&&c++}let f=l;for(;f>t+o.length;){let n=e.charCodeAt(f-1);if(n===vo||n===po||n===oo||n===no||n===mo||n===ko){if(n===ko){if(s>=c)break;c--}f--}else{if(n!==ho)break;for(var p=f-2;p>t&&(e.charCodeAt(p)>=Mo&&e.charCodeAt(p)<=Ro||e.charCodeAt(p)>=To&&e.charCodeAt(p)<=No||e.charCodeAt(p)>=Ao&&e.charCodeAt(p)<=Po);)p--;p>=t&&e.charCodeAt(p)===ro?f=p:f--}}if(f<=t+o.length)return null;var h=t+(i?4:o.length),m=e.indexOf("/",h);if((m<0||m>f)&&(m=f),i&&-1===e.indexOf(".",h))return null;for(var v=-1,g=-1,y=m-1;y>=h;y--)if(e.charCodeAt(y)===vo){if(!(v<0)){g=y;break}v=y}for(y=g>=0?g+1:h;y<m;y++)if(e.charCodeAt(y)===Qr)return null;var b=e.slice(t,f),x=i?"http://"+b:b;return{node:{type:Do.link,target:x,children:[{type:Do.text,text:b}]},end:f}}function ma(e,t,n,r){if(r.disableBareUrls)return null;for(var o=t,i=o;o<n&&((c=e.charCodeAt(o))>=Mo&&c<=Ro||c>=To&&c<=No||c>=Ao&&c<=Po||c===vo||c===no||c===qr||36===c||c===Wr||c===ro||c===yo||c===Xr||c===xo||c===go||c===Gr||c===mo||c===Kr||c===Qr||c===Hr||c===Co||c===Eo||c===wo||c===Vr||c===$r);)o++;if(o===i||o>=n||e.charCodeAt(o)!==eo)return null;for(var a=++o,l=-1,s=o;o<n;){var c;if((c=e.charCodeAt(o))>=Mo&&c<=Ro||c>=To&&c<=No||c>=Ao&&c<=Po)o++;else if((c===$r||c===Qr)&&o>a)o++;else{if(c!==vo)break;if(o===a)break;var u=e.charCodeAt(o-1);if(u===$r||u===Qr||o-s>63)break;if(!(o+1<n))break;var d=e.charCodeAt(o+1);if(!(d>=Mo&&d<=Ro||d>=To&&d<=No||d>=Ao&&d<=Po))break;l=o,s=o+1,o++}}if(o-s>63||l<0)return null;var f=e.charCodeAt(o-1);if(!(f>=Mo&&f<=Ro||f>=To&&f<=No||f>=Ao&&f<=Po)||o<=l+1)return null;for(var p=-1,h=l-1;h>=a;h--)if(e.charCodeAt(h)===vo){p=h;break}for(h=p>=0?p+1:a;h<o;h++)if(e.charCodeAt(h)===Qr)return null;var m=e.slice(t,o);return{node:{type:Do.link,target:"mailto:"+m,children:[{type:Do.text,text:m}]},end:o}}function va(e){for(var t=0;t<e.length;t++)if(e[t].type===Do.link||"children"in e[t]&&Array.isArray(e[t].children)&&va(e[t].children))return!0;return!1}function ga(e){for(var t="",n=0;n<e.length;n++){var r=e[n];r.type===Do.text?t+=r.text:r.type===Do.breakLine?t+=" ":r.type===Do.codeInline?t+=r.text:"children"in r&&Array.isArray(r.children)?t+=ga(r.children):r.type===Do.image?t+=r.alt||"":r.type===Do.link&&(t+=ga(r.children))}return t}function ya(e){let t=e.includes("&")?Ho(e):e;return{type:Do.text,text:t}}function ba(e,t,n,r,o){if(e.charCodeAt(t)!==Jr)return null;var i=t+1;if(i>=n)return null;var a=e.charCodeAt(i);if(a===no&&i+1<n&&e.charCodeAt(i+1)===$r&&i+2<n&&e.charCodeAt(i+2)===$r){var l=i+3;if(l<n&&e.charCodeAt(l)===Zr)return{node:{type:Do.htmlComment,text:"",endsWithGreaterThan:!0},end:l+1};if(l+1<n&&e.charCodeAt(l)===$r&&e.charCodeAt(l+1)===Zr)return{node:{type:Do.htmlComment,text:"-",endsWithGreaterThan:!0},end:l+2};var s=e.indexOf("--\x3e",l);return-1!==s&&s<=n-3?{node:{type:Do.htmlComment,text:e.slice(t+4,s)},end:s+3}:null}if(a===mo){var c=e.indexOf("?>",i+1);return-1!==c&&c<n?{node:{type:Do.htmlSelfClosing,tag:"?",attrs:{},a:e.slice(t,c+2)},end:c+2}:null}if(a===no&&i+1<n){var u=e.charCodeAt(i+1);if(u===Ur&&"[CDATA["===e.slice(i+1,i+8)){var d=e.indexOf("]]>",i+8);return-1!==d&&d<n?{node:{type:Do.htmlSelfClosing,tag:"![CDATA[",attrs:{},a:e.slice(t,d+3)},end:d+3}:null}if(u>=Mo&&u<=Ro){var f=e.indexOf(">",i+2);return-1!==f&&f<n?{node:{type:Do.htmlSelfClosing,tag:"!"+e.slice(i+1,f),attrs:{},a:e.slice(t,f+1)},end:f+1}:null}}if(a===go){var p=i+1;if(p>=n)return null;var h=e.charCodeAt(p);if(!(h>=Mo&&h<=Ro||h>=To&&h<=No))return null;for(p++;p<n;){var m=e.charCodeAt(p);if(!(m>=Mo&&m<=Ro||m>=To&&m<=No||m>=Ao&&m<=Po||m===$r))break;p++}for(;p<n&&(e.charCodeAt(p)===Fr||e.charCodeAt(p)===jr||e.charCodeAt(p)===Br);)p++;if(p<n&&e.charCodeAt(p)===Zr){var v=e.slice(i+1,p).trim();return{node:{type:Do.htmlSelfClosing,tag:v,attrs:{},a:e.slice(t,p+1),b:!0},end:p+1}}return null}if(!(a>=Mo&&a<=Ro||a>=To&&a<=No))return null;var g=gi(e,t);if(!g)return null;var y=g.tag,b=y.toLowerCase();if(g.selfClosing||Xo(y))return{node:{type:Do.htmlSelfClosing,tag:y,attrs:Wi(g.attrs,y,o),a:e.slice(t,g.end)},end:g.end};var x=di.has(b),E=Yi(e.slice(0,n),g.end,y);if(-1===E)return{node:{type:Do.htmlSelfClosing,tag:y,attrs:Wi(g.attrs,y,o),a:e.slice(t,g.end)},end:g.end};var C=function(e,t,n){let r=t.length;var o=t.charCodeAt(0);o>=Mo&&o<=Ro&&(o+=Lo);for(let a=Math.min(n,e.length-r);a>=0;a--){var i=e.charCodeAt(a);if(i>=Mo&&i<=Ro&&(i+=Lo),i!==o)continue;let n=!0;for(let o=1;o<r;o++){let r=e.charCodeAt(a+o),i=t.charCodeAt(o);if(r>=Mo&&r<=Ro&&(r+=Lo),i>=Mo&&i<=Ro&&(i+=Lo),r!==i){n=!1;break}}if(n)return a}return-1}(e,"</"+b,E),w=e.slice(g.end,C),_=[];if(x)w.trim()&&(_=[{type:Do.text,text:w}]);else{var k=w.trim();if(k){var{inAnchor:O,inline:S}=r;"a"===b&&(r.inAnchor=!0),-1!==k.indexOf("\n\n")||/^#{1,6}\s/.test(k)?(r.inline=!1,_=_a(k,r,o)):_=Ca(k,0,k.length,r,o),r.inAnchor=O,r.inline=S}}return{node:{type:Do.htmlBlock,tag:y,attrs:Wi(g.attrs,y,o),e:g.rawAttrs,children:_,text:w,d:!1},end:E}}var xa=200,Ea=0;function Ca(e,t,n,r,o){if(++Ea>xa)return Ea--,[{type:Do.text,text:e.slice(t,n)}];let i=r;if(o.streaming||o.optimizeForStreaming){let r=function(e,t){for(var n=1,r=t+1;r<e.length;r++){var o=e.charCodeAt(r);if(o===Ur)n++;else if(o===to&&0==--n)return r}return-1},o=e.slice(t,n),i=o;for(var a=0,l=0,s=0,c=0,u=0,d=-1,f=-1,p=-1,h=-1,m=-1,v=0;v<o.length;v++){var g=o.charCodeAt(v);g===Xr?v+1<o.length&&o.charCodeAt(v+1)===Xr?(a++,d=v,v++):(l++,f=v):g===Qr?v+1<o.length&&o.charCodeAt(v+1)===Qr?(s++,p=v,v++):(c++,h=v):g===Vr&&v+1<o.length&&o.charCodeAt(v+1)===Vr&&(u++,m=v,v++)}var y=[];u%2==1&&m>=0&&y.push([m,2]),s%2==1&&p>=0&&y.push([p,2]),c%2==1&&h>=0&&y.push([h,1]),a%2==1&&d>=0&&y.push([d,2]),l%2==1&&f>=0&&y.push([f,1]),y.sort((function(e,t){return t[0]-e[0]}));for(var b=0;b<y.length;b++){var x=y[b][0],E=y[b][1];o=o.slice(0,x)+o.slice(x+E)}let F=0,j=-1;for(let e=0;e<o.length;e++)o.charCodeAt(e)===Hr&&(F++,j=e);if(F%2==1&&-1!==j){let e=!1,t=-1,n=0;for(;n<o.length;)o.charCodeAt(n)===Hr&&(e?(e=!1,t=-1):(t=n,e=!0)),n++;e&&-1!==t&&(o=o.slice(0,t))}for(var C=!0;C;){C=!1;for(var w=-1,_=-1,k=-1,O=!1,S=0;S<o.length;S++)if(o.charCodeAt(S)===Ur&&(0===S||o.charCodeAt(S-1)!==Yr)){var A=S>0&&o.charCodeAt(S-1)===no,P=A?S-1:S,M=r(o,S);if(-1===M)w=P,O=A,_=S+1,k=o.length;else{var R=M+1;if(R>=o.length)w=P,O=A,_=S+1,k=M;else if(o.charCodeAt(R)===_o){var T=o.indexOf(")",R+1);-1===T?(w=P,O=A,_=S+1,k=M,S=o.length):S=T}else if(o.charCodeAt(R)===Ur){var N=o.indexOf("]",R+1);-1===N?(w=P,O=A,_=S+1,k=M,S=o.length):S=N}else S=M}}if(w>=0){var I=O?"":o.slice(_,k);o=o.slice(0,w)+I,C=!0}}let z=o.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(z&&void 0!==z.index){for(var L=0,D=0;D<z.index;D++)o.charCodeAt(D)===Hr&&L++;L%2!=1&&-1===$i(o,"</"+z[1],0)&&(o=o.replace(/<[A-Z][A-Za-z0-9]*(?:\s[^>]*)?>([^<]*)$/,"$1"))}o!==i&&(e=e.slice(0,t)+o,n=t+o.length)}let F=[];var j=[];let z=t;var B=o.disableAutoLink||o.disableBareUrls||i.inAnchor?-1:e.indexOf("@",t);for(B>=n&&(B=-1);t<n;){let r=e.charCodeAt(t),a=null;if(r===Hr)a=na(e,t,n),a||(t+=Ri(e,t,n,Hr)-1);else if(r===Xr||r===Qr){var H=ua(e,t,n);if(H){if(H.canOpen||H.canClose){t>z&&F.push(ya(e.slice(z,t)));var V=ya(e.slice(t,t+H.len));j.push({idx:F.length,ch:r,len:H.len,canOpen:H.canOpen,canClose:H.canClose,active:!0}),F.push(V),z=t+=H.len;continue}t+=H.len-1}}else r===Vr?a=ia(e,t,n,i,o):r===Gr?a=aa(e,t,n,i,o):r===Ur?(t+1<n&&e.charCodeAt(t+1)===Kr&&(a=pa(e,t,n)),a||(a=da(e,t,n,i,o))):r===no&&t+1<n&&e.charCodeAt(t+1)===Ur?a=da(e,t,n,i,o):r===Jr?(a=fa(e,t,n),!a&&!o.disableParsingRawHTML&&!o.ignoreHTMLBlocks&&(a=ba(e,t,n,i,o))):(r===ao||r===lo||r===io)&&!i.inAnchor&&!o.disableAutoLink&&(0===t||e.charCodeAt(t-1)!==Jr)&&(a=ha(e,t,n,o));if(!a&&B>=0&&B-t<=64&&!i.inAnchor&&!o.disableAutoLink&&!o.disableBareUrls&&(r>=Mo&&r<=Ro||r>=To&&r<=No||r>=Ao&&r<=Po)&&(a=ma(e,t,n,o),!a&&t>=B&&(B=e.indexOf("@",t+1))>=n&&(B=-1)),r!==So)if(a)t>z&&F.push(ya(e.slice(z,t))),F.push(a.node),z=t=a.end;else{if(r===Yr&&t+1<n&&ki(e.charCodeAt(t+1))&Ei){t>z&&F.push(ya(e.slice(z,t))),F.push(ya(e[t+1])),z=t+=2;continue}if(t++,B<0||B-t>64)for(;t<n;){var U=e.charCodeAt(t);if(!(U<Io)||hi[U])break;t++}}else t>z&&F.push(ya(e.slice(z,t))),F.push({type:Do.breakLine}),z=++t}if(n>z){let t=e.slice(z,n);(o.streaming||o.optimizeForStreaming)&&(t=t.replace(/\*\*([^*]+)$/,"$1"),t.match(/\*[^*]+$/)&&(t=t.replace(/\*([^*]+)$/,"$1")),t=t.replace(/__([^_]+)$/,"$1"),t.match(/_[^_]+$/)&&(t=t.replace(/_([^_]+)$/,"$1")),t=t.replace(/~~([^~]+)$/,"$1"),t=t.replace(/\[([^\]]+)$/,"$1"),t=t.replace(/\[([^\]]+)\]\([^)]*$/,"$1")),t&&F.push(ya(t))}return j.length>0&&function(e,t){if(0!==t.length){for(var n=[],r=0;r<12;r++)n[r]=-1;for(var o=0;o<t.length;){var i=t[o];if(i.active&&i.canClose){for(var a=6*(i.ch===Xr?0:1)+i.len%3*2+(i.canOpen?1:0),l=void 0!==n[a]?n[a]:-1,s=-1,c=o-1;c>l;c--){var u=t[c];if(u.active&&u.ch===i.ch&&u.canOpen&&(!i.canOpen&&!u.canClose||(u.len+i.len)%3!=0||u.len%3==0)){s=c;break}}if(s<0)n[a]=o-1,!i.canOpen&&(i.active=!1),o++;else{var d=t[s],f=d.len>=2&&i.len>=2,p=f?2:1;d.len-=p,i.len-=p;var h=e[d.idx],m=e[i.idx];h.text=h.text.slice(0,h.text.length-p),m.text=m.text.slice(p);var v=d.idx+1,g=i.idx,y=e.slice(v,g),b={type:Do.textFormatted,tag:f?"strong":"em",children:y};e.splice(v,g-v,b);for(var x=g-v-1,E=0;E<t.length;E++)t[E].idx>d.idx&&(t[E].idx-=x);for(var C=s+1;C<o;C++)t[C].active=!1;if(0===d.len&&(d.active=!1,""===h.text)){e.splice(d.idx,1);for(var w=0;w<t.length;w++)t[w].idx>d.idx?t[w].idx--:t[w].idx===d.idx&&(t[w].idx=-1)}if(0===i.len){i.active=!1;var _=i.idx;if(""===m.text){e.splice(_,1);for(var k=0;k<t.length;k++)t[k].idx>_?t[k].idx--:t[k].idx===_&&(t[k].idx=-1)}o++}}}else o++}for(var O=0,S=0;S<e.length;S++){var A=e[S];if(A.type===Do.text){var P=A;if(""===P.text)continue;if(O>0&&e[O-1].type===Do.text){e[O-1].text+=P.text;continue}}e[O++]=A}e.length=O}}(F,j),Ea--,F}var wa=500;function _a(e,t,n){var r=t.g||0;if(r>wa)return[{type:Do.text,text:e}];if(t.g=r+1,n.streaming||n.optimizeForStreaming){var o=e.length;o>0&&e.charCodeAt(o-1)===Br&&o--;for(var i=o;i>0&&e.charCodeAt(i-1)!==Br;)i--;if(i>0&&e.charCodeAt(i)===Eo){for(var a=!0,l=i;l<o;l++){var s=e.charCodeAt(l);if(s!==Fr&&s!==jr&&s!==$r&&s!==oo&&s!==Eo){a=!1;break}}if(a){for(var c=i-1;c>0&&e.charCodeAt(c-1)!==Br;)c--;e.charCodeAt(c)===Eo&&(e=e.slice(0,c).trimEnd())}}var u=e.trim(),d=u.lastIndexOf("\n"),f=-1===d?u:u.slice(d+1);if(f.length>0&&f.charCodeAt(0)===Eo){for(var p=!1,h=!1,m=1;m<f.length;m++){var v=f.charCodeAt(m);v===Eo&&(p=!0),v===$r&&(h=!0)}p&&h&&(e=-1===d?"":e.slice(0,e.lastIndexOf(f)).trimEnd())}for(var g=-1,y=-1,b=-1,x=e.length-1;x>=0;x--)if(e.charCodeAt(x)===Jr){var E=x+1<e.length?e.charCodeAt(x+1):0;if(E>=Mo&&E<=Ro||E>=To&&E<=No){for(var C=x+2;C<e.length;){var w=e.charCodeAt(C);if(!(w>=Mo&&w<=Ro||w>=To&&w<=No||w>=Ao&&w<=Po))break;C++}for(var _=C;_<e.length&&e.charCodeAt(_)!==Zr;)_++;if(_<e.length){for(var k=!1,O=_+1;O<e.length;O++)if(e.charCodeAt(O)===Jr){k=!0;break}k||(g=x,y=C,b=_+1)}}break}if(g>=0){for(var S=0,A=0;A<g;A++)e.charCodeAt(A)===Hr&&S++;if(S%2==0){var P=e.slice(g+1,y);-1===$i(e,"</"+P,0)&&(e=e.slice(0,g)+e.slice(b))}}var M=e.length;if(M>0){for(var R=e.lastIndexOf("\n"),T=-1===R?0:R+1,N=M,I=T,L=0;I<N&&e.charCodeAt(I)===Fr&&L<3;)I++,L++;if(I<N){var D=e.charCodeAt(I),F=!1;if(D===Xr||D===$r||D===xo){var j=I+1;if(j>=N||e.charCodeAt(j)===Fr||e.charCodeAt(j)===jr){for(var z=j;z<N&&(e.charCodeAt(z)===Fr||e.charCodeAt(z)===jr);)z++;z>=N&&(F=!0)}}else if(D>=Ao&&D<=Po){for(var B=I;B<N&&e.charCodeAt(B)>=Ao&&e.charCodeAt(B)<=Po;)B++;if(B<N&&(e.charCodeAt(B)===vo||e.charCodeAt(B)===ko)){var H=B+1;if(H>=N||e.charCodeAt(H)===Fr||e.charCodeAt(H)===jr){for(var V=H;V<N&&(e.charCodeAt(V)===Fr||e.charCodeAt(V)===jr);)V++;V>=N&&(F=!0)}}}F&&(e=e.slice(0,T).trimEnd())}}}if(t.inline)return Ca(e,0,e.length,t,n);let U=[],K=0,Z=e.length;if(0===K&&e.startsWith("---")){let t=function(e){if(!Go(e,"---"))return null;let t=3;for(;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;if(t<e.length&&"\r"===e[t]&&t++,t>=e.length||"\n"!==e[t])return null;t++;let n=!1;for(;t<e.length;){let r=t;for(;t<e.length&&"\n"!==e[t]&&"\r"!==e[t];)t++;if(t>=e.length)break;let o=t;if("\r"===e[t]&&t++,t<e.length&&"\n"===e[t]&&t++,Go(e,"---",r))return{endPos:t,hasValidYaml:n};let i=e.indexOf(":",r);-1!==i&&i<o&&(n=!0)}return null}(e);if(t&&t.hasValidYaml){if(!1!==n.preserveFrontmatter){let n=e.slice(0,t.endPos).trimEnd();U.push({type:Do.frontmatter,text:n})}K=t.endPos}}for(;K<Z;){for(var q=e.indexOf("\n",K),W=q<0?Z:q;K<Z&&Li(e,K,W);)K=W<Z?W+1:W,K<Z&&(W=(q=e.indexOf("\n",K))<0?Z:q);if(K>=Z)break;e.charCodeAt(K),Ii(e,K,W);let r=null;if(e.charCodeAt(K)!==Oo&&Ti>=4&&!t.inHTML)r=zi(e,K);else if(e.charCodeAt(K)!==Oo){let o=K+Ni,i=e.charCodeAt(o);i===qr?r=Di(e,K,t,n):i===Zr?r=Bi(e,K,t,n):i===Hr||i===Vr?r=ji(e,K):i===$r||i===Xr||i===Qr?(r=Fi(e,K),!r&&(r=Zi(e,K,t,n))):i===xo||i>=Ao&&i<=Po?r=Zi(e,K,t,n):i===Jr?r=Xi(e,K,t,n):i===Eo?r=Ji(e,K,t,n):i===Ur&&(r=ea(e,K,t))}if(!r){for(var $=!1,G=K;G<W;G++)if(e.charCodeAt(G)===Eo){$=!0;break}$&&(r=Ji(e,K,t,n))}if(r||(r=ta(e,K,t,n)),r)r.node.type!==Do.refCollection&&U.push(r.node),K=r.end;else{var Y=e.indexOf("\n",K);K=Y<0?Z:Y+1}}return t.g=r,U}function ka(e,t,n,r){var o=gi(e,t);return o?{tagName:o.tag,tagLower:o.tag.toLowerCase(),attrs:o.rawAttrs,whitespaceBeforeAttrs:o.whitespaceBeforeAttrs,isSelfClosing:o.selfClosing,hasSpaceBeforeSlash:o.hasSpaceBeforeSlash,isClosing:o.isClosing,hasNewline:o.whitespaceBeforeAttrs.includes("\n")||o.rawAttrs.includes("\n"),endPos:o.end}:null}function Oa(e,t,n){Ea=0,e=function(e){var t=e.indexOf("\r"),n=e.indexOf("\0");if(-1===t&&-1===n)return e;var r=e.length;ti.length=0;var o=0,i=0;for(i=-1===t?n:-1===n||t<n?t:n;i<r;i++){var a=e.charCodeAt(i);a===zr?(o<i&&ti.push(e.slice(o,i)),i+1<r&&e.charCodeAt(i+1)===Br&&i++,ti.push("\n"),o=i+1):0===a&&(o<i&&ti.push(e.slice(o,i)),ti.push("�"),o=i+1)}return o<r&&ti.push(e.slice(o)),ti.join("")}(e),!t.refs&&(t.refs={}),yi(e,t.refs);let r=_a(e,t,n);return t.refs&&Object.keys(t.refs).length>0?[{type:Do.refCollection,refs:t.refs},...r]:r}var Sa,Aa=/^\n+/;try{Sa=r.createElement("div").$$typeof}catch{Sa=Symbol.for("react.transitional.element")}function Pa(e,t,n){return{$$typeof:Sa,type:e,key:null!=n?""+n:null,ref:null,props:t}}var Ma=typeof r.createContext<"u"?r.createContext(void 0):void 0;function Ra(e,t,n,o,i,a,l,s){switch(e.type){case Do.blockQuote:{let r={key:n.key};return e.alert&&(r.className="markdown-alert-"+a(e.alert.toLowerCase(),$o),e.children.unshift({attrs:{},children:[{type:Do.text,text:e.alert}],d:!0,type:Do.htmlBlock,tag:"header"})),o("blockquote",r,t(e.children,n))}case Do.breakLine:return o("br",{key:n.key});case Do.breakThematic:return o("hr",{key:n.key});case Do.frontmatter:return s.preserveFrontmatter?o("pre",{key:n.key},e.text):null;case Do.codeBlock:let m=e.lang?Ho(e.lang):"";return o("pre",{key:n.key},o("code",{...zo(e.attrs||{}),className:m?`language-${m} lang-${m}`:""},e.text));case Do.codeInline:return o("code",{key:n.key},e.text);case Do.footnoteReference:return o("a",{key:n.key,href:i(e.target,"a","href")||void 0},o("sup",{key:n.key},e.text));case Do.gfmTask:return o("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"});case Do.heading:return o(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n));case Do.htmlBlock:{let m=e;if(s.tagfilter&&ai(m.tag)){var c="";if(m.attrs)for(var u in m.attrs)!0===(h=m.attrs[u])?c+=" "+u:null!=h&&!1!==h&&(c+=" "+u+'="'+String(h)+'"');return o("span",{key:n.key},"<"+m.tag+c+">")}if(m.a&&m.d){let c=function(e){if((e.type===Do.htmlSelfClosing||e.type===Do.htmlBlock)&&e.b)return[];if(e.type===Do.paragraph){let t=e.children;return t?t.flatMap(c):[]}return e.type===Do.text?e.text?.trim()?[e]:[]:e.type===Do.htmlBlock&&e.children?[{...e,children:e.children?.flatMap(c)}]:[e]},u=function(e){for(var t=0;t<e.length;t++)e[t].type===Do.htmlBlock&&(e[t].d=!1),"children"in e[t]&&e[t].children&&u(e[t].children)},h=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.type===Do.paragraph&&r.children)for(var o=r.children,i=0;i<o.length;i++){var a=o[i];if(a.type===Do.htmlSelfClosing&&a.b&&a.tag.toLowerCase()===t){var l=e.slice(0,n);i>0&&l.push({type:Do.paragraph,children:o.slice(0,i)});var s=[];if(i+1<o.length){var c=o.slice(i+1);(c=c.filter((function(e){return!(e.type===Do.htmlSelfClosing&&e.b)}))).length>0&&(s=c)}return{found:!0,beforeClose:l,afterClose:s=s.concat(e.slice(n+1))}}}if((r.type===Do.htmlSelfClosing||r.type===Do.htmlBlock)&&r.b&&r.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,n),afterClose:e.slice(n+1)}}return{found:!1,beforeClose:e,afterClose:[]}},v=m.tag.toLowerCase(),g=function(e){return di.has(e)}(v),y=m.children&&m.children.length>0,b=/<[a-z][^>]{0,100}>/i.test(m.a);if(g){let t=m.a.replace(new RegExp("\\s*</"+v+">\\s*$","i"),"");return s.tagfilter&&(t=li(t)),b?o(e.tag,{key:n.key,...zo(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}}):o(e.tag,{key:n.key,...zo(e.attrs||{})},t)}let x=new RegExp(`^<${m.tag}(\\s|>)`,"i").test(m.a);if(y&&!x&&s.tagfilter&&function(e){return ii.lastIndex=0,ii.test(e)}(m.a))return o(e.tag,{key:n.key,...zo(e.attrs||{})},t(m.children,n));if(function(e){return fi.test(e)}(m.a)){let t=s.tagfilter?li(m.a):m.a;return o(e.tag,{key:n.key,...zo(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}})}let E={slugify:e=>a(e,$o),sanitizer:i,tagfilter:!0},C=m.a.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${m.tag}(\\s[^>]*)?>(\\s*</${m.tag}>)?$`,"i").test(C))return m.children&&m.children.length>0?o(e.tag,{key:n.key,...zo(e.attrs||{})},t(m.children,n)):o(e.tag,{key:n.key,...zo(e.attrs||{})});let w=Oa(C,{inline:!1,refs:l,inHTML:!1},E);u(w);let _=m.tag.toLowerCase(),k="</"+_+">",O=new RegExp(`^<${m.tag}(\\s|>)`,"i").test(C),S=C.toLowerCase().trimEnd().endsWith(k),A=O&&S;if(A&&y)return o(e.tag,{key:n.key,...zo(e.attrs||{})},t(m.children,n));if(A)return t(w.flatMap(c),n);var d=h(w,_);if(d.found&&d.afterClose.length>0){var f=d.beforeClose.flatMap(c),p=d.afterClose.flatMap(c);return Pa(r.Fragment,{children:[o(e.tag,{key:n.key,...zo(e.attrs||{})},t(f,n)),t(p,n)]},null)}return o(e.tag,{key:n.key,...zo(e.attrs||{})},t(w.flatMap(c),n))}return o(e.tag,{key:n.key,...zo(e.attrs||{})},e.children?t(e.children,n):"")}case Do.htmlSelfClosing:{let t=e;if(s.tagfilter&&ai(t.tag)){if(c="",t.attrs)for(var u in t.attrs){var h;!0===(h=t.attrs[u])?c+=" "+u:null!=h&&!1!==h&&(c+=" "+u+'="'+String(h)+'"')}return o("span",{key:n.key},"<"+t.tag+c+" />")}return o(e.tag,{key:n.key,...zo(e.attrs||{})})}case Do.image:{let t=null!=e.target?i(e.target,"img","src"):null;return o("img",{key:n.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:t||void 0})}case Do.link:{let r={key:n.key};return null!=e.target&&(r.href=function(e){for(var t=!1,n=0;n<e.length;n++)if((o=e.charCodeAt(n))<=Fr||o===bo||o===Wr||o===Jr||o===Zr||o===Ur||o===Yr||o===to||o===Kr||o===Hr||o>=123){t=!0;break}if(!t)return e;var r="";for(n=0;n<e.length;n++){var o;if((o=e.charCodeAt(n))===Wr&&n+2<e.length){var i=e.charCodeAt(n+1),a=e.charCodeAt(n+2);if((i>=Ao&&i<=Po||i>=Mo&&i<=70||i>=To&&i<=io)&&(a>=Ao&&a<=Po||a>=Mo&&a<=70||a>=To&&a<=io)){r+=e[n]+e[n+1]+e[n+2],n+=2;continue}}r+=encodeURI(e[n])}return r}(e.target)),e.title&&(r.title=e.title),o("a",r,t(e.children,n))}case Do.table:{let r=e;return o("table",{key:n.key},o("thead",null,o("tr",null,r.header.map((function(e,i){return o("th",{key:i,style:null==r.align[i]?{}:{textAlign:r.align[i]}},t(e,n))})))),o("tbody",null,r.cells.map((function(e,i){return o("tr",{key:i},e.map((function(e,i){return o("td",{key:i,style:null==r.align[i]?{}:{textAlign:r.align[i]}},t(e,n))})))}))))}case Do.text:return e.text;case Do.textFormatted:return o(e.tag,{key:n.key},t(e.children,n));case Do.orderedList:case Do.unorderedList:{let r=e.type===Do.orderedList?"ol":"ul";return o(r,{key:n.key,start:e.type===Do.orderedList?e.start:void 0},e.items.map((function(e,r){return o("li",{key:r},t(e,n))})))}case Do.paragraph:return o("p",{key:n.key},t(e.children,n));case Do.ref:default:return null}}function Ta(e="",t={}){let n={...t||{}};n.overrides=n.overrides||{};let r=n.slugify||$o,o=n.sanitizer||Uo,i={};return function(e){let t=n.forceInline||!n.forceBlock&&!Bo.test(e),a={...n,slugify:e=>r(e,$o),sanitizer:o,tagfilter:!1!==n.tagfilter};t||yi(e,i);let l=e;if(!t){let e=l.length;for(;e>0&&("\n"===l[e-1]||"\r"===l[e-1]);)e--;l=l.slice(0,e),l=`${l.replace(Aa,"")}\n\n`}if(n.optimizeForStreaming){let e=l.lastIndexOf("<");-1!==e&&-1===l.slice(e).indexOf(">")&&(l=l.slice(0,e))}return function(e,t){let n={...t||{}};n.overrides=n.overrides||{};let r=n.slugify||$o,o=n.sanitizer||Uo,i=n.createElement,a=n.overrides&&Object.keys(n.overrides).length>0,l=e=>Ta(e,{...n,wrapper:null});function s(e,t,...r){var o=t||{};for(var s in o){var c=o[s];if("string"==typeof c&&c.length>0&&c.charCodeAt(0)===Jr&&(si.test(c)||ci.test(c)||ka(c,0))){var u=l(c.trim());o[s]="innerHTML"===s&&Array.isArray(u)?u[0]:u}}var d=e;if(a){var f=ni(n.overrides,e+".props",{});d=((e,t)=>{let n=ni(t,e,void 0);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:ni(t,`${e}.component`,e):e})(e,n.overrides),o={...o,...f,className:ri(o.className,f.className)||void 0}}if(!i){var p=o.key;return null!=p&&delete o.key,1===r.length?o.children=r[0]:r.length>1&&(o.children=r),Pa(d,o,p)}return i(d,o,...r)}let c={...n,slugify:e=>r(e,$o),sanitizer:o,tagfilter:!1!==n.tagfilter},u=e[0]&&e[0].type===Do.refCollection?e[0].refs:{},d=((e,t,n,r,o,i)=>{var a=(l,s={})=>{var c=(s.renderDepth||0)+1;if(c>2500)return(e=>e.map((function(e){return"text"in e?e.text:""})))(l);s.renderDepth=c;for(var u=s.key,d=[],f=!1,p=0;p<l.length;p++){var h;if(s.key=p,e){var m=Ra.bind(null,l[p],a,s,t,n,r,o,i);h=e(m,l[p],a,s)}else h=Ra(l[p],a,s,t,n,r,o,i);var v="string"==typeof h;if(v&&f)d[d.length-1]+=h;else if(null!==h)if(Array.isArray(h))for(var g=0;g<h.length;g++)d.push(h[g]);else d.push(h);f=v}return s.key=u,s.renderDepth=c-1,d};return a})(n.renderRule,s,o,r,u,n),f=d(e,{inline:n.forceInline,refs:u}),p=[];for(let e in u)e.charCodeAt(0)===Kr&&p.push({identifier:e,footnote:u[e].target});if(p.length&&f.push(s("footer",{key:"footer"},p.map((function(e){let t=e.identifier.charCodeAt(0)===Kr?e.identifier.slice(1):e.identifier,n=Oa(e.footnote,{inline:!0,refs:u},c);return s("div",{id:r(t,$o),key:e.identifier},t+": ",d(n,{inline:!0,refs:u}))})))),null===n.wrapper)return f;let h,m=n.wrapper||(n.forceInline?"span":"div");if(!(f.length>1||n.forceWrapper))return 1===f.length?f[0]:null;h=f;var v=n.wrapperProps?{...n.wrapperProps}:{};return v.children=h,Pa(m,v,"outer")}(Oa(t?e:l,{inline:t,refs:i},a),{...a,forceInline:t})}(e)}var Na=({children:e,options:t,...n})=>{if(!(typeof r.useContext<"u"))return Ta(e??"",{...t,overrides:{...t?.overrides},wrapperProps:{...t?.wrapperProps,...n}});let o=r.useContext(Ma),i=r.useMemo((()=>({...o,...t,overrides:{...o?.overrides,...t?.overrides},wrapperProps:{...o?.wrapperProps,...t?.wrapperProps,...n}})),[o,t,n]),a=e??"";return r.useMemo((()=>Ta(a,i)),[a,i])};class Ia extends o().Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}render(){return this.state.error?this.props.fallback:this.props.children}}const La=JSON.parse('{"error":"_error_1ixrx_2","root":"_root_1ixrx_8","tableWrapper":"_tableWrapper_1ixrx_127"}');br('\n/* Error fallback when markdown fails to parse */\n._error_1ixrx_2 {\n\twhite-space: pre-wrap;\n\tword-break: break-word;\n}\n\n/* ── Root ── */\n._root_1ixrx_8 {\n\tword-wrap: break-word;\n\tline-height: var(--reltio-markdown-line-height, 1.5);\n\tfont-family: var(--reltio-markdown-font-family, "Roboto Flex", sans-serif);\n\tfont-size: var(--reltio-markdown-font-size, 14px);\n\tfont-weight: var(--reltio-markdown-font-weight, 400);\n\tletter-spacing: var(--reltio-markdown-letter-spacing, 0.15px);\n\tcolor: var(--reltio-markdown-color-text, #0e0e25);\n}\n\n/* ── Paragraphs ── */\n._root_1ixrx_8 p {\n\tmargin: 8px 0 7px 0;\n\tline-height: var(--reltio-markdown-line-height, 1.5);\n}\n\n._root_1ixrx_8 p:not(:last-child) {\n\tmargin-bottom: var(--reltio-markdown-paragraph-margin-bottom, 0.5rem);\n}\n\n/* ── Headings ── */\n._root_1ixrx_8 h1,\n._root_1ixrx_8 h2,\n._root_1ixrx_8 h3,\n._root_1ixrx_8 h4,\n._root_1ixrx_8 h5,\n._root_1ixrx_8 h6 {\n\tmargin: var(--reltio-markdown-heading-margin, 1rem 0 0.5rem 0);\n\tfont-weight: 600;\n\tfont-family: "Libre Franklin", sans-serif;\n}\n\n._root_1ixrx_8 h1 {\n\tfont-size: var(--reltio-markdown-heading1-size, 1.5rem);\n}\n\n._root_1ixrx_8 h2 {\n\tfont-size: var(--reltio-markdown-heading2-size, 1.25rem);\n}\n\n._root_1ixrx_8 h3 {\n\tfont-size: var(--reltio-markdown-heading3-size, 1.1rem);\n}\n\n._root_1ixrx_8 h4 {\n\tfont-size: var(--reltio-markdown-heading4-size, 1rem);\n}\n\n._root_1ixrx_8 h5 {\n\tfont-size: var(--reltio-markdown-heading5-size, 0.95rem);\n}\n\n._root_1ixrx_8 h6 {\n\tfont-size: var(--reltio-markdown-heading6-size, 0.9rem);\n}\n\n/* ── Emphasis ── */\n._root_1ixrx_8 strong {\n\tfont-weight: 600;\n}\n\n._root_1ixrx_8 em {\n\tfont-style: italic;\n}\n\n/* ── Lists ── */\n._root_1ixrx_8 ul,\n._root_1ixrx_8 ol {\n\tmargin: var(--reltio-markdown-list-margin, 0.5rem 0);\n\tpadding-left: var(--reltio-markdown-list-padding-left, 1.5rem);\n}\n\n._root_1ixrx_8 li {\n\tmargin: var(--reltio-markdown-list-item-margin, 0.25rem 0);\n}\n\n/* ── Code ── */\n._root_1ixrx_8 pre {\n\toverflow-x: auto;\n\tmargin: 0;\n\tbackground-color: #e3e3f2;\n\tborder-radius: 8px;\n\tpadding: 16px;\n\tborder: 1px solid #e3e3f2;\n}\n\n._root_1ixrx_8 code {\n\tfont-family: var(--reltio-markdown-code-font-family, monospace);\n\tfont-size: var(--reltio-markdown-code-font-size, 0.9em);\n\tbackground-color: var(--reltio-markdown-color-code-background, #f5f5f5);\n\tpadding: var(--reltio-markdown-code-padding, 0.2em 0.4em);\n\tborder-radius: var(--reltio-markdown-code-border-radius, 3px);\n}\n\n._root_1ixrx_8 pre code {\n\tbackground-color: transparent;\n\tpadding: 0;\n}\n\n/* ── Links ── */\n._root_1ixrx_8 a {\n\tcolor: var(--reltio-markdown-color-link, #0000cc);\n\ttext-decoration: underline;\n}\n\n._root_1ixrx_8 a:hover {\n\ttext-decoration: none;\n}\n\n/* ── Blockquote ── */\n._root_1ixrx_8 blockquote {\n\tborder-left: var(--reltio-markdown-blockquote-border-width, 4px) solid\n\t\tvar(--reltio-markdown-color-blockquote-border, #ddd);\n\tmargin: var(--reltio-markdown-blockquote-margin, 1rem 0);\n\tpadding-left: var(--reltio-markdown-blockquote-padding-left, 1rem);\n\tcolor: var(--reltio-markdown-color-blockquote-text, #666);\n}\n\n/* ── Tables ── */\n._tableWrapper_1ixrx_127 {\n\tfont-family: var(--reltio-markdown-base-font, "Roboto Flex", sans-serif);\n\twidth: 100%;\n\tborder-collapse: collapse;\n\tposition: relative;\n\tcolor: var(--color-text, #0e0e25);\n\tbackground-color: #ffffff;\n\tborder: 1px solid #9898b34d;\n\tborder-radius: 16px;\n\toverflow: auto;\n\tbox-sizing: border-box;\n\tfont-size: 14px;\n}\n\n._tableWrapper_1ixrx_127 table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n}\n\n._tableWrapper_1ixrx_127 thead {\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 1;\n\tbox-shadow: 0 1px 0 #9898b34d;\n}\n\n._tableWrapper_1ixrx_127 th {\n\tpadding: 16px;\n\tfont-weight: 600;\n\ttext-align: left;\n\tborder-right: 1px solid #9898b34d;\n\tbackground-color: #e3e3f2;\n}\n\n._tableWrapper_1ixrx_127 th:last-child {\n\tborder-right: none;\n}\n\n._tableWrapper_1ixrx_127 td {\n\tpadding: 8px 16px;\n\tborder-bottom: 1px solid #9898b34d;\n\tborder-right: 1px solid #9898b34d;\n\ttext-align: left;\n\tbackground-color: var(--reltio-markdown-color-table-cell-background, #ffffff);\n}\n\n._tableWrapper_1ixrx_127 td:last-child {\n\tborder-right: none;\n}\n\n._tableWrapper_1ixrx_127 tr:hover td {\n\tbackground-color: var(--color-table-row-hover, #f5f5fa);\n}\n\n._tableWrapper_1ixrx_127 tr:last-child td {\n\tborder-bottom: none;\n}\n\n/* ── Strikethrough ── */\n._root_1ixrx_8 del {\n\ttext-decoration: line-through;\n\tcolor: var(--reltio-markdown-color-del, #595972);\n}\n\n/* ── Checkboxes ── */\n._root_1ixrx_8 input[type="checkbox"] {\n\tmargin-right: var(--reltio-spacing-xs, 8px);\n\tcursor: not-allowed;\n}\n\n/* ── Horizontal rule ── */\n._root_1ixrx_8 hr {\n\tborder: none;\n\tborder-top: 1px solid var(--color-border, #ddd);\n\tmargin: 1.5rem 0;\n}\n\n/* ── Responsive ── */\n@media (max-width: 768px) {\n\t._tableWrapper_1ixrx_127 table {\n\t\tdisplay: block;\n\t\toverflow-x: auto;\n\t\t-webkit-overflow-scrolling: touch;\n\t}\n\n\t._root_1ixrx_8 h1 {\n\t\tfont-size: 1.3rem;\n\t}\n\n\t._root_1ixrx_8 h2 {\n\t\tfont-size: 1.15rem;\n\t}\n\n\t._root_1ixrx_8 h3 {\n\t\tfont-size: 1.05rem;\n\t}\n}\n');const Da=La,Fa=JSON.parse('{"root":"_root_1njq6_1","summary":"_summary_1njq6_14","icon":"_icon_1njq6_43","summaryText":"_summaryText_1njq6_51","chevron":"_chevron_1njq6_57","chevronOpen":"_chevronOpen_1njq6_69","content":"_content_1njq6_73"}');br('\n/* Override via --reltio-details-* on .root or parent; fallbacks = light values */\n._root_1njq6_1 {\n\tmargin: 1rem 0;\n\tbackground-color: var(--reltio-details-background-color, #fff);\n\tborder: var(--reltio-details-border-width, 0.5px) solid\n\t\tvar(--reltio-details-border-color, #e3e3f2);\n\tborder-radius: var(--reltio-details-border-radius, 12px);\n\toverflow: hidden;\n\tpadding: 0;\n\tfont-family: var(--reltio-details-font-family, "Roboto Flex", sans-serif);\n\tfont-size: var(--reltio-details-font-size, 14px);\n}\n\n._summary_1njq6_14 {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: var(--reltio-details-summary-gap, 8px);\n\tcursor: pointer;\n\tuser-select: none;\n\tlist-style: none;\n\tcolor: var(--reltio-details-summary-text-color, #0e0e25);\n\tline-height: var(--reltio-details-summary-line-height, 1.71);\n\tpadding: var(--reltio-details-summary-padding, 12px);\n\tmargin: 0;\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\toutline: none;\n\tfont-weight: 500;\n}\n\n._summary_1njq6_14:hover {\n\tbackground-color: var(--reltio-details-summary-hover-bg, #b2b2ff4d);\n}\n\n._summary_1njq6_14::-webkit-details-marker {\n\tdisplay: none;\n}\n\n._summary_1njq6_14::marker {\n\tdisplay: none;\n}\n\n._icon_1njq6_43 {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground-color: transparent;\n\tflex-shrink: 0;\n}\n\n._summaryText_1njq6_51 {\n\tflex: 1;\n\tfont-weight: var(--reltio-details-title-font-weight, 500);\n\tletter-spacing: var(--reltio-details-title-letter-spacing, 0.045px);\n}\n\n._chevron_1njq6_57 {\n\tflex-shrink: 0;\n\ttransition: transform var(--reltio-details-transition-duration, 195ms)\n\t\tvar(--reltio-details-transition-ease, cubic-bezier(0.4, 0, 0.2, 1));\n\tcolor: var(--reltio-details-chevron-color, #0e0e25);\n\twidth: var(--reltio-details-chevron-size, 24px);\n\theight: var(--reltio-details-chevron-size, 24px);\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n._chevronOpen_1njq6_69 {\n\ttransform: rotate(180deg);\n}\n\n._content_1njq6_73 {\n\tpadding: 0 var(--reltio-details-content-padding, 12px)\n\t\tvar(--reltio-details-content-padding, 12px)\n\t\tvar(--reltio-details-content-padding, 12px);\n\tcolor: var(--reltio-details-content-text-color, #0e0e25);\n\tline-height: var(--reltio-details-content-line-height, 1.71);\n}\n\n._content_1njq6_73 pre {\n\tmargin: 0;\n\tbackground-color: var(--reltio-details-code-background-color, #f5f5fa);\n\tborder-radius: var(--reltio-details-content-pre-radius, 8px);\n\tpadding: var(--reltio-details-content-pre-padding, 16px);\n}\n\n._content_1njq6_73 code {\n\tcolor: var(--reltio-details-content-code-color, #0e0e25);\n\tbackground-color: #f5f5f5;\n\tpadding: 0.2em 0.4em;\n\tborder-radius: 3px;\n\tfont-family: monospace;\n\tfont-size: 0.9em;\n}\n\n._content_1njq6_73 p {\n\tmargin-top: var(--reltio-details-content-p-margin, 8px);\n\tmargin-bottom: var(--reltio-details-content-p-margin, 8px);\n}\n');const ja=Fa,za=({open:e=!1,children:t,className:n,style:i,...a})=>{const[l,s]=(0,r.useState)(e);(0,r.useEffect)((()=>{s(e)}),[e]);let c="Details";const u=[];o().Children.forEach(t,(e=>{o().isValidElement(e)&&"string"==typeof e.type&&"summary"===e.type?c=e.props.children:null!=e&&u.push(e)}));const d=xr(ja.root,n);return(0,Mn.jsxs)("details",{className:d,style:i,onToggle:e=>{const t=e.currentTarget;s(t.open)},open:e,...a,children:[(0,Mn.jsxs)("summary",{className:ja.summary,children:[(0,Mn.jsx)("span",{className:ja.icon,"aria-hidden":"true",children:(0,Mn.jsx)(Pr,{size:"small"})}),(0,Mn.jsx)("span",{className:ja.summaryText,children:c}),(0,Mn.jsx)("span",{className:xr(ja.chevron,l&&ja.chevronOpen),children:l?(0,Mn.jsx)(Rr,{size:"small","aria-hidden":"true"}):(0,Mn.jsx)(Tr,{size:"small","aria-hidden":"true"})})]}),(0,Mn.jsx)("div",{className:ja.content,children:u})]})},Ba={a:({node:e,href:t,...n})=>{const r=t&&(t.startsWith("http")||t.startsWith("//"));return(0,Mn.jsx)("a",{...n,href:t,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0})},table:({node:e,...t})=>(0,Mn.jsx)("div",{className:xr(Da.tableWrapper),children:(0,Mn.jsx)("table",{...t})}),button:({node:e,...t})=>(0,Mn.jsx)(wr,{...t,className:xr(t.className)}),details:({node:e,...t})=>(0,Mn.jsx)(za,{...t,children:t.children}),li:({node:e,children:t,...n})=>{const o=r.Children.toArray(t)[0];return(0,r.isValidElement)(o)&&"checkbox"===o.props?.type?(0,Mn.jsx)("li",{...n,children:(0,Mn.jsx)("label",{children:t})}):(0,Mn.jsx)("li",{...n,children:t})}},Ha={Button:wr},Va=({children:e,className:t,style:n})=>{if(null==e)return null;const r=xr(Da.root,t);return(0,Mn.jsx)("div",{className:r,style:n,children:(0,Mn.jsx)(Ia,{fallback:(0,Mn.jsx)("pre",{className:Da.error,children:e}),children:(0,Mn.jsx)(Na,{options:{overrides:{...Ba,...Ha},tagfilter:!0,sanitizer:Uo},children:"string"==typeof e?e:String(e)})})})},Ua=JSON.parse('{"assistantMessageRoot":"_assistantMessageRoot_qtch8_2","content":"_content_qtch8_17"}');br("\n/* CSS Custom Properties - All defined on .root with --reltio-assistant-message- prefix */\n._assistantMessageRoot_qtch8_2 {\n\t--reltio-assistant-message-background: transparent;\n\t--reltio-assistant-message-padding: 0;\n\t--reltio-assistant-message-border-radius: 8px;\n\t--reltio-assistant-message-content-color: #0e0e25;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground-color: var(--reltio-assistant-message-background);\n\tpadding: var(--reltio-assistant-message-padding);\n\tborder-radius: var(--reltio-assistant-message-border-radius);\n\tbox-sizing: border-box;\n\twidth: 100%;\n}\n\n._content_qtch8_17 {\n\tflex: 1;\n\tmin-width: 0;\n\tcolor: var(--reltio-assistant-message-content-color);\n}\n");const Ka=Ua,Za=({children:e,errorMessage:t,className:n,style:r,...o})=>{const i=(e=>{if(null==e)return null;if("string"==typeof e){const t=e.trim();return t?(0,Mn.jsx)(Lr,{children:t}):null}return e})(t),a=e.trim();return(0,Mn.jsxs)("div",{className:xr(Ka.assistantMessageRoot,n),style:r,...o,children:[i&&i,!i&&a&&(0,Mn.jsx)(Va,{children:a})]})},qa=JSON.parse('{"userMessageRoot":"_userMessageRoot_11l9d_1"}');br("\n._userMessageRoot_11l9d_1 {\n\tdisplay: inline-flex;\n\tbackground-color: var(--reltio-user-message-background, #f5f5fa);\n\tpadding: var(--reltio-user-message-padding, 12px 16px);\n\tborder-radius: var(--reltio-user-message-border-radius, 12px);\n}\n");const Wa=qa,$a=({children:e,className:t,style:n,...r})=>{const o=null!=e&&""!==String(e).trim();return(0,Mn.jsx)("div",{className:xr(Wa.userMessageRoot,t),style:n,...r,children:o&&(0,Mn.jsx)(Va,{children:e})})},Ga=((0,r.memo)((({message:e})=>"user"===e.role?(0,Mn.jsx)($a,{className:Sr.userMessage,children:e.content}):"assistant"===e.role?(0,Mn.jsx)(Za,{children:e.content}):(0,Mn.jsx)(Mn.Fragment,{children:e.content??null}))),JSON.parse('{"root":"_root_pmwmi_1","inputContainer":"_inputContainer_pmwmi_52","textarea":"_textarea_pmwmi_75","label":"_label_pmwmi_106","supportingText":"_supportingText_pmwmi_135","toolbar":"_toolbar_pmwmi_142"}'));br('\n._root_pmwmi_1 {\n\t--reltio-textarea-font-family: var(\n\t\t--reltio-font-family-body,\n\t\t"Roboto",\n\t\tsans-serif\n\t);\n\t--reltio-textarea-font-size: var(--reltio-font-size-body, 16px);\n\t--reltio-textarea-line-height: var(--reltio-line-height-body, 1.5);\n\t--reltio-textarea-color-text: var(--reltio-color-text, #1d1b20);\n\t--reltio-textarea-color-border: var(--reltio-color-border, #79747e);\n\t--reltio-textarea-color-border-focus: var(--reltio-color-primary, #6750a4);\n\t--reltio-textarea-color-background: var(--reltio-color-background, #fff);\n\t--reltio-textarea-color-error: var(--reltio-color-error, #b3261e);\n\t--reltio-textarea-color-label: var(--reltio-color-text-secondary, #49454f);\n\t--reltio-textarea-color-supporting-text: var(\n\t\t--reltio-color-text-secondary,\n\t\t#49454f\n\t);\n\t--reltio-textarea-border-radius: var(--reltio-spacing-xs, 4px);\n\t--reltio-textarea-padding: var(--reltio-spacing-md, 16px);\n\t--reltio-textarea-min-height: var(--reltio-spacing-3xl, 56px);\n\t--reltio-textarea-max-height: min(500px, 50cqh);\n\t--reltio-textarea-border-width: 1px;\n\t--reltio-textarea-border-width-focus: 2px;\n\n\tfont-family: var(--reltio-textarea-font-family);\n\tcontainer-type: inline-size;\n}\n\n._root_pmwmi_1:focus-within {\n\t--reltio-textarea-color-border: var(--reltio-textarea-color-border-focus);\n\t--reltio-textarea-border-width: var(--reltio-textarea-border-width-focus);\n\t--reltio-textarea-color-label: var(--reltio-textarea-color-border-focus);\n}\n\n._root_pmwmi_1[data-error="true"] {\n\t--reltio-textarea-color-border: var(--reltio-textarea-color-error);\n\t--reltio-textarea-color-label: var(--reltio-textarea-color-error);\n\t--reltio-textarea-color-supporting-text: var(--reltio-textarea-color-error);\n}\n\n._root_pmwmi_1[data-error="true"]:focus-within {\n\t--reltio-textarea-color-border: var(--reltio-textarea-color-error);\n\t--reltio-textarea-color-label: var(--reltio-textarea-color-error);\n}\n\n._root_pmwmi_1[data-disabled="true"] {\n\topacity: 0.38;\n\tcursor: not-allowed;\n}\n\n._inputContainer_pmwmi_52 {\n\tposition: relative;\n\tdisplay: grid;\n\tgrid-template-columns: 1fr;\n\tgrid-template-rows: 1fr auto;\n\tgrid-template-areas:\n\t\t"textarea"\n\t\t"toolbar";\n\tmargin: 0;\n\tbox-sizing: border-box;\n\tborder-radius: var(--reltio-textarea-border-radius);\n\toutline: var(--reltio-textarea-border-width) solid var(--reltio-textarea-color-border);\n\tcursor: text;\n\ttransition:\n\t\toutline-color 0.1s ease,\n\t\toutline-width 0.1s ease;\n\tbackground: var(--reltio-textarea-color-background);\n}\n\n._root_pmwmi_1[data-disabled="true"] ._inputContainer_pmwmi_52 {\n\tcursor: not-allowed;\n}\n\n._textarea_pmwmi_75 {\n\tgrid-area: textarea;\n\tposition: relative;\n\tdisplay: block;\n\tz-index: 1;\n\tborder: none;\n\toutline: none;\n\tbackground: none;\n\twidth: 100%;\n\tmin-height: var(--reltio-textarea-min-height);\n\tmax-height: var(--reltio-textarea-max-height);\n\tborder-radius: var(--reltio-textarea-border-radius);\n\tbox-sizing: border-box;\n\tfont-size: var(--reltio-textarea-font-size);\n\tfont-family: var(--reltio-textarea-font-family);\n\tline-height: var(--reltio-textarea-line-height);\n\tresize: none;\n\tcolor: var(--reltio-textarea-color-text);\n\tpadding: var(--reltio-textarea-padding);\n\toverflow-y: auto;\n\tfield-sizing: content;\n}\n\n._textarea_pmwmi_75::placeholder {\n\tcolor: var(--reltio-textarea-color-label);\n}\n\n._textarea_pmwmi_75:disabled {\n\tcursor: not-allowed;\n}\n\n._label_pmwmi_106 {\n\tposition: absolute;\n\topacity: 0;\n\ttop: 16px;\n\tleft: 8px;\n\ttransform: translateY(-50%);\n\ttransition: all 0.2s ease;\n\tbackground-color: var(--reltio-textarea-color-background);\n\tpadding: 4px 8px;\n\tborder-radius: var(--reltio-textarea-border-radius);\n\tcolor: var(--reltio-textarea-color-label);\n\tz-index: 2;\n\tfont-size: var(--reltio-textarea-font-size);\n\tfont-family: var(--reltio-textarea-font-family);\n\tpointer-events: none;\n}\n\n._textarea_pmwmi_75:not(:placeholder-shown) + ._label_pmwmi_106 {\n\ttop: -1px;\n\tfont-size: 12px;\n\topacity: 1;\n}\n\n._textarea_pmwmi_75:focus + ._label_pmwmi_106 {\n\ttop: -1px;\n\tfont-size: 12px;\n\topacity: 1;\n}\n\n._supportingText_pmwmi_135 {\n\tfont-size: 12px;\n\tpadding: 4px var(--reltio-textarea-padding);\n\tcolor: var(--reltio-textarea-color-supporting-text);\n\tfont-family: var(--reltio-textarea-font-family);\n}\n\n._toolbar_pmwmi_142 {\n\tgrid-area: toolbar;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tgap: 12px;\n\tpadding: 8px 12px;\n}\n');const Ya=Ga;function Xa(e,t,n){return(t=D(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(n),!0).forEach((function(t){Xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function el(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(0,r.forwardRef)((({label:e,error:t,supportingText:n,toolbar:r,className:o,...i},a)=>{const l=String(i.value??i.defaultValue??"").length>0;return(0,Mn.jsxs)("div",{"data-error":t||void 0,"data-disabled":i.disabled||void 0,"data-has-value":l||void 0,className:xr(Ya.root,o),children:[(0,Mn.jsxs)("label",{className:xr(Ya.inputContainer),children:[(0,Mn.jsx)("textarea",{ref:a,className:xr(Ya.textarea),placeholder:e||i.placeholder,"aria-invalid":t||void 0,...i}),e&&(0,Mn.jsx)("span",{className:xr(Ya.label),children:e}),r&&(0,Mn.jsx)("div",{className:xr(Ya.toolbar),children:r})]}),n&&(0,Mn.jsx)("div",{className:xr(Ya.supportingText),children:n})]})})).displayName="TextArea";var tl=n(8960);function nl(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,tl.Z)(e,t)}function rl(e){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rl(e)}function ol(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ol=function(){return!!e})()}function il(e,t){if(t&&("object"==L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,B.Z)(e)}function al(e){var t=ol();return function(){var n,r=rl(e);if(t){var o=rl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return il(this,n)}}var ll={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ll.F1&&t<=ll.F12)return!1;switch(t){case ll.ALT:case ll.CAPS_LOCK:case ll.CONTEXT_MENU:case ll.CTRL:case ll.DOWN:case ll.END:case ll.ESC:case ll.HOME:case ll.INSERT:case ll.LEFT:case ll.MAC_FF_META:case ll.META:case ll.NUMLOCK:case ll.NUM_CENTER:case ll.PAGE_DOWN:case ll.PAGE_UP:case ll.PAUSE:case ll.PRINT_SCREEN:case ll.RIGHT:case ll.SHIFT:case ll.UP:case ll.WIN_KEY:case ll.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ll.ZERO&&e<=ll.NINE)return!0;if(e>=ll.NUM_ZERO&&e<=ll.NUM_MULTIPLY)return!0;if(e>=ll.A&&e<=ll.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ll.SPACE:case ll.QUESTION_MARK:case ll.NUM_PLUS:case ll.NUM_MINUS:case ll.NUM_PERIOD:case ll.NUM_DIVISION:case ll.SEMICOLON:case ll.DASH:case ll.EQUALS:case ll.COMMA:case ll.PERIOD:case ll.SLASH:case ll.APOSTROPHE:case ll.SINGLE_QUOTE:case ll.OPEN_SQUARE_BRACKET:case ll.BACKSLASH:case ll.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const sl=ll;var cl="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function ul(e,t){return 0===e.indexOf(t)}function dl(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Ja({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||ul(n,"aria-"))||t.data&&ul(n,"data-")||t.attr&&cl.includes(n))&&(r[n]=e[n])})),r}var fl={},pl=[];function hl(e,t){}function ml(e,t){}function vl(e,t,n){t||fl[n]||(e(!1,n),fl[n]=!0)}function gl(e,t){vl(hl,e,t)}gl.preMessage=function(e){pl.push(e)},gl.resetWarned=function(){fl={}},gl.noteOnce=function(e,t){vl(ml,e,t)};const yl=gl;var bl=r.createContext(null),xl=r.createContext({});function El(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function Cl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Mt(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 wl(e,t){if(null==e)return{};var n,r,o=(0,R.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _l(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var kl=_l()?r.useLayoutEffect:r.useEffect;const Ol=function(e,t){var n=r.useRef(!0);kl((function(){return e(n.current)}),t),kl((function(){return n.current=!1,function(){n.current=!0}}),[])};var Sl=Symbol.for("react.element"),Al=Symbol.for("react.transitional.element"),Pl=Symbol.for("react.fragment");function Ml(e){return e&&"object"===L(e)&&(e.$$typeof===Sl||e.$$typeof===Al)&&e.type===Pl}function Rl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Rl(e)):Ml(e)&&e.props?n=n.concat(Rl(e.props.children,t)):n.push(e))})),n}var Tl=n(7111),Nl=n.n(Tl);function Il(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ll(e){var t,n=function(e){return e&&"object"===L(e)&&Il(e.nativeElement)?e.nativeElement:Il(e)?e:null}(e);return n||(e instanceof o().Component?null===(t=Nl().findDOMNode)||void 0===t?void 0:t.call(Nl(),e):null)}var Dl=n(1818),Fl=Number(r.version.split(".")[0]),jl=function(e,t){"function"==typeof e?e(t):"object"===L(e)&&e&&"current"in e&&(e.current=t)},zl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){jl(t,e)}))}},Bl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o=t,"value"in(i=r.useRef({})).current&&!function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}(i.current.condition,o)||(i.current.value=zl.apply(void 0,t),i.current.condition=o),i.current.value;var o,i},Hl=function(e){var t,n;if(!e)return!1;if(Vl(e)&&Fl>=19)return!0;var r=(0,Dl.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===Dl.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===Dl.ForwardRef)};function Vl(e){return(0,r.isValidElement)(e)&&!Ml(e)}var Ul=function(e){if(e&&Vl(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},Kl=r.createContext(null),Zl=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),ql="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Wl=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),$l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Wl):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},Gl=["top","right","bottom","left","width","height","size","weight"],Yl="undefined"!=typeof MutationObserver,Xl=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){$l(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ql&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Yl?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){ql&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=Gl.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ql=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Jl=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Wl},es=is(0,0,0,0);function ts(e){return parseFloat(e)||0}function ns(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ts(e["border-"+n+"-width"])}),0)}var rs="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Jl(e).SVGGraphicsElement}:function(e){return e instanceof Jl(e).SVGElement&&"function"==typeof e.getBBox};function os(e){return ql?rs(e)?function(e){var t=e.getBBox();return is(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return es;var r=Jl(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ts(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=ts(r.width),s=ts(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=ns(r,"left","right")+i),Math.round(s+a)!==n&&(s-=ns(r,"top","bottom")+a)),!function(e){return e===Jl(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return is(o.left,o.top,l,s)}(e):es}function is(e,t,n,r){return{x:e,y:t,width:n,height:r}}var as=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=is(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=os(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ls=function(e,t){var n,r,o,i,a,l,s,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),Ql(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);Ql(this,{target:e,contentRect:c})},ss=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Zl,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Jl(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new as(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Jl(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ls(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),cs="undefined"!=typeof WeakMap?new WeakMap:new Zl,us=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Xl.getInstance(),r=new ss(t,n,this);cs.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){us.prototype[e]=function(){var t;return(t=cs.get(this))[e].apply(t,arguments)}}));const ds=void 0!==Wl.ResizeObserver?Wl.ResizeObserver:us;var fs=new Map,ps=new ds((function(e){e.forEach((function(e){var t,n=e.target;null===(t=fs.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),hs=function(e){nl(n,e);var t=al(n);function n(){return el(this,n),t.apply(this,arguments)}return j(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function ms(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(Kl),s="function"==typeof n,c=s?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&r.isValidElement(c)&&Hl(c),f=d?Ul(c):null,p=Bl(f,i),h=function(){var e;return Ll(i.current)||(i.current&&"object"===L(i.current)?Ll(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Ll(a.current)};r.useImperativeHandle(t,(function(){return h()}));var m=r.useRef(e);m.current=e;var v=r.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,s=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==s||u.current.offsetHeight!==c){var p={width:d,height:f,offsetWidth:s,offsetHeight:c};u.current=p;var h=s===Math.round(i)?i:s,v=c===Math.round(a)?a:c,g=Ja(Ja({},p),{},{offsetWidth:h,offsetHeight:v});null==l||l(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return r.useEffect((function(){var e,t,n=h();return n&&!o&&(e=n,t=v,fs.has(e)||(fs.set(e,new Set),ps.observe(e)),fs.get(e).add(t)),function(){return function(e,t){fs.has(e)&&(fs.get(e).delete(t),fs.get(e).size||(ps.unobserve(e),fs.delete(e)))}(n,v)}}),[i.current,o]),r.createElement(hs,{ref:a},d?r.cloneElement(c,{ref:p}):c)}const vs=r.forwardRef(ms);function gs(e,t){var n=e.children;return("function"==typeof n?[n]:Rl(n)).map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(vs,(0,T.Z)({},e,{key:i,ref:0===o?t:void 0}),n)}))}var ys=r.forwardRef(gs);ys.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(Kl),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(Kl.Provider,{value:l},t)};const bs=ys;function xs(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Es(e){var t=r.useRef(!1),n=Cl(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;var Cs=r.forwardRef((function(e,t){var n=e.height,o=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,s=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,p={},h={display:"flex",flexDirection:"column"};return void 0!==o&&(p={height:n,position:"relative",overflow:"hidden"},h=Ja(Ja({},h),{},Xa(Xa(Xa(Xa(Xa({transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),r.createElement("div",{style:p},r.createElement(bs,{onResize:function(e){e.offsetHeight&&s&&s()}},r.createElement("div",(0,T.Z)({style:h,className:f()(Xa({},"".concat(l,"-holder-inner"),l)),ref:t},c),a,d)))}));Cs.displayName="Filler";const ws=Cs;function _s(e){var t=e.children,n=e.setRef,o=r.useCallback((function(e){n(e)}),[]);return r.cloneElement(t,{ref:o})}var ks=function(e){return+setTimeout(e,16)},Os=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ks=function(e){return window.requestAnimationFrame(e)},Os=function(e){return window.cancelAnimationFrame(e)});var Ss=0,As=new Map;function Ps(e){As.delete(e)}var Ms=function(e){var t=Ss+=1;return function n(r){if(0===r)Ps(t),e();else{var o=ks((function(){n(r-1)}));As.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Ms.cancel=function(e){var t=As.get(e);return Ps(e),Os(t)};const Rs=Ms,Ts="object"===("undefined"==typeof navigator?"undefined":L(navigator))&&/Firefox/i.test(navigator.userAgent),Ns=function(e,t,n,o){var i=(0,r.useRef)(!1),a=(0,r.useRef)(null),l=(0,r.useRef)({top:e,bottom:t,left:n,right:o});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&r}};var Is=function(){function e(){el(this,e),Xa(this,"maps",void 0),Xa(this,"id",0),Xa(this,"diffRecords",new Map),this.maps=Object.create(null)}return j(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();const Ls=Is;function Ds(e){var t=parseFloat(e);return isNaN(t)?0:t}var Fs=14/15;function js(e){return Math.floor(Math.pow(e,.5))}function zs(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var Bs=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,p=e.containerSize,h=e.style,m=e.thumbStyle,v=e.showScrollBar,g=Cl(r.useState(!1),2),y=g[0],b=g[1],x=Cl(r.useState(null),2),E=x[0],C=x[1],w=Cl(r.useState(null),2),_=w[0],k=w[1],O=!o,S=r.useRef(),A=r.useRef(),P=Cl(r.useState(v),2),M=P[0],R=P[1],T=r.useRef(),N=function(){!0!==v&&!1!==v&&(clearTimeout(T.current),R(!0),T.current=setTimeout((function(){R(!1)}),3e3))},I=a-p||0,L=p-d||0,D=r.useMemo((function(){return 0===i||0===I?0:i/I*L}),[i,I,L]),F=r.useRef({top:D,dragging:y,pageY:E,startTop:_});F.current={top:D,dragging:y,pageY:E,startTop:_};var j=function(e){b(!0),C(zs(e,u)),k(F.current.top),l(),e.stopPropagation(),e.preventDefault()};r.useEffect((function(){var e=function(e){e.preventDefault()},t=S.current,n=A.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",j,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",j)}}),[]);var z=r.useRef();z.current=I;var B=r.useRef();B.current=L,r.useEffect((function(){if(y){var e,t=function(t){var n=F.current,r=n.dragging,o=n.pageY,i=n.startTop;Rs.cancel(e);var a=S.current.getBoundingClientRect(),l=p/(u?a.width:a.height);if(r){var s=(zs(t,u)-o)*l,d=i;!O&&u?d-=s:d+=s;var f=z.current,h=B.current,m=h?d/h:0,v=Math.ceil(m*f);v=Math.max(v,0),v=Math.min(v,f),e=Rs((function(){c(v,u)}))}},n=function(){b(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Rs.cancel(e)}}}),[y]),r.useEffect((function(){return N(),function(){clearTimeout(T.current)}}),[i]),r.useImperativeHandle(t,(function(){return{delayHidden:N}}));var H="".concat(n,"-scrollbar"),V={position:"absolute",visibility:M?null:"hidden"},U={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(V,{height:8,left:0,right:0,bottom:0}),Object.assign(U,Xa({height:"100%",width:d},O?"left":"right",D))):(Object.assign(V,Xa({width:8,top:0,bottom:0},O?"right":"left",0)),Object.assign(U,{width:"100%",height:d,top:D})),r.createElement("div",{ref:S,className:f()(H,Xa(Xa(Xa({},"".concat(H,"-horizontal"),u),"".concat(H,"-vertical"),!u),"".concat(H,"-visible"),M)),style:Ja(Ja({},V),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:N},r.createElement("div",{ref:A,className:f()("".concat(H,"-thumb"),Xa({},"".concat(H,"-thumb-moving"),y)),style:Ja(Ja({},U),m),onMouseDown:j}))}));const Hs=Bs;var Vs=20;function Us(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Vs),Math.floor(t)}var Ks=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Zs=[],qs={overflowY:"auto",overflowAnchor:"none"};function Ws(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,i=e.className,a=e.height,l=e.itemHeight,s=e.fullHeight,c=void 0===s||s,u=e.style,d=e.data,p=e.children,h=e.itemKey,m=e.virtual,v=e.direction,g=e.scrollWidth,y=e.component,b=void 0===y?"div":y,x=e.onScroll,E=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,_=e.extraRender,k=e.styles,O=e.showScrollBar,S=void 0===O?"optional":O,A=wl(e,Ks),P=r.useCallback((function(e){return"function"==typeof h?h(e):null==e?void 0:e[h]}),[h]),M=function(e){var t=Cl(r.useState(0),2),n=t[0],o=t[1],i=(0,r.useRef)(new Map),a=(0,r.useRef)(new Ls),l=(0,r.useRef)(0);function s(){l.current+=1}function c(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s();var t=function(){var e=!1;i.current.forEach((function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,l=o.marginBottom,s=r+Ds(i)+Ds(l);a.current.get(n)!==s&&(a.current.set(n,s),e=!0)}})),e&&o((function(e){return e+1}))};if(e)t();else{l.current+=1;var n=l.current;Promise.resolve().then((function(){n===l.current&&t()}))}}return(0,r.useEffect)((function(){return s}),[]),[function(t,n){var r=e(t);i.current.get(r);n?(i.current.set(r,n),c()):i.current.delete(r)},c,a.current,n]}(P),R=Cl(M,4),N=R[0],I=R[1],D=R[2],F=R[3],j=!(!1===m||!a||!l),z=r.useMemo((function(){return Object.values(D.maps).reduce((function(e,t){return e+t}),0)}),[D.id,D.maps]),B=j&&d&&(Math.max(l*d.length,z)>a||!!g),H="rtl"===v,V=f()(o,Xa({},"".concat(o,"-rtl"),H),i),U=d||Zs,K=(0,r.useRef)(),Z=(0,r.useRef)(),q=(0,r.useRef)(),W=Cl((0,r.useState)(0),2),$=W[0],G=W[1],Y=Cl((0,r.useState)(0),2),X=Y[0],Q=Y[1],J=Cl((0,r.useState)(!1),2),ee=J[0],te=J[1],ne=function(){te(!0)},re=function(){te(!1)},oe={getKey:P};function ie(e){G((function(t){var n=function(e){var t=e;return Number.isNaN(Ce.current)||(t=Math.min(t,Ce.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return K.current.scrollTop=n,n}))}var ae=(0,r.useRef)({start:0,end:U.length}),le=(0,r.useRef)(),se=Cl(function(e,t,n){var o=Cl(r.useState(e),2),i=o[0],a=o[1],l=Cl(r.useState(null),2),s=l[0],c=l[1];return r.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=s(r[d]);if(f!==s(o[d])){c=d,u=u||f!==s(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),c(e[r.index])),a(e)}),[e]),[s]}(U,P),1)[0];le.current=se;var ce=r.useMemo((function(){if(!j)return{scrollHeight:void 0,start:0,end:U.length-1,offset:void 0};var e;if(!B)return{scrollHeight:(null===(e=Z.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:U.length-1,offset:void 0};for(var t,n,r,o=0,i=U.length,s=0;s<i;s+=1){var c=U[s],u=P(c),d=D.get(u),f=o+(void 0===d?l:d);f>=$&&void 0===t&&(t=s,n=o),f>$+a&&void 0===r&&(r=s),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=U.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,U.length-1),offset:n}}),[B,j,$,U,F,a]),ue=ce.scrollHeight,de=ce.start,fe=ce.end,pe=ce.offset;ae.current.start=de,ae.current.end=fe,r.useLayoutEffect((function(){var e=D.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=U[de];if(r&&void 0===n&&P(r)===t){var o=D.get(t)-l;ie((function(e){return e+o}))}}D.resetRecord()}),[ue]);var he=Cl(r.useState({width:0,height:a}),2),me=he[0],ve=he[1],ge=(0,r.useRef)(),ye=(0,r.useRef)(),be=r.useMemo((function(){return Us(me.width,g)}),[me.width,g]),xe=r.useMemo((function(){return Us(me.height,ue)}),[me.height,ue]),Ee=ue-a,Ce=(0,r.useRef)(Ee);Ce.current=Ee;var we=$<=0,_e=$>=Ee,ke=X<=0,Oe=X>=g,Se=Ns(we,_e,ke,Oe),Ae=function(){return{x:H?-X:X,y:$}},Pe=(0,r.useRef)(Ae()),Me=xs((function(e){if(E){var t=Ja(Ja({},Ae()),e);Pe.current.x===t.x&&Pe.current.y===t.y||(E(t),Pe.current=t)}}));function Re(e,t){var n=e;t?((0,Tl.flushSync)((function(){Q(n)})),Me()):ie(n)}var Te=function(e){var t=e,n=g?g-me.width:0;return t=Math.max(t,0),Math.min(t,n)},Ne=xs((function(e,t){t?((0,Tl.flushSync)((function(){Q((function(t){return Te(t+(H?-e:e))}))})),Me()):ie((function(t){return t+e}))})),Ie=Cl(function(e,t,n,o,i,a,l){var s=(0,r.useRef)(0),c=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)(!1),f=Ns(t,n,o,i),p=(0,r.useRef)(null),h=(0,r.useRef)(null);return[function(t){if(e){Rs.cancel(h.current),h.current=Rs((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,m=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,m=0,p.current="sx");var v=Math.abs(i),g=Math.abs(m);null===p.current&&(p.current=a&&v>g?"x":"y"),"y"===p.current?function(e,t){if(Rs.cancel(c.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,u.current=t,Ts||n.preventDefault(),c.current=Rs((function(){var e=d.current?10:1;l(s.current*e,!1),s.current=0})))}}(t,m):function(e,t){l(t,!0),Ts||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}(j,we,_e,ke,Oe,!!g,Ne),2),Le=Ie[0],De=Ie[1];!function(e,t,n){var o,i=(0,r.useRef)(!1),a=(0,r.useRef)(0),l=(0,r.useRef)(0),s=(0,r.useRef)(null),c=(0,r.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=a.current-t,s=l.current-r,u=Math.abs(o)>Math.abs(s);u?a.current=t:l.current=r;var d=n(u,u?o:s,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?o*=Fs:s*=Fs;var e=Math.floor(u?o:s);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",u,{passive:!1}),s.current.addEventListener("touchend",d,{passive:!0}))};o=function(){s.current&&(s.current.removeEventListener("touchmove",u),s.current.removeEventListener("touchend",d))},Ol((function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(c.current)}}),[e])}(j,K,(function(e,t,n,r){var o=r;return!(Se(e,t,n)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),Le({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),function(e,t){r.useEffect((function(){var n=t.current;if(e&&n){var r,o,i=!1,a=function(){Rs.cancel(r)},l=function e(){a(),r=Rs((function(){var t;t=o,ie((function(e){return e+t})),e()}))},s=function(){i=!1,a()},c=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)}},u=function(e){if(i){var t=zs(e,!1),r=n.getBoundingClientRect(),s=r.top,c=r.bottom;t<=s?(o=-js(s-t),l()):t>=c?(o=js(t-c),l()):a()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",s),n.ownerDocument.addEventListener("mousemove",u),n.ownerDocument.addEventListener("dragend",s),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",s),n.ownerDocument.removeEventListener("mousemove",u),n.ownerDocument.removeEventListener("dragend",s),a()}}}),[e])}(B,K),Ol((function(){function e(e){var t=we&&e.detail<0,n=_e&&e.detail>0;!j||t||n||e.preventDefault()}var t=K.current;return t.addEventListener("wheel",Le,{passive:!1}),t.addEventListener("DOMMouseScroll",De,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Le),t.removeEventListener("DOMMouseScroll",De),t.removeEventListener("MozMousePixelScroll",e)}}),[j,we,_e]),Ol((function(){if(g){var e=Te(X);Q(e),Me({x:e})}}),[me.width,g]);var Fe=function(){var e,t;null===(e=ge.current)||void 0===e||e.delayHidden(),null===(t=ye.current)||void 0===t||t.delayHidden()},je=function(e,t,n,o,i,a,l,s){var c=r.useRef(),u=Cl(r.useState(null),2),d=u[0],f=u[1];return Ol((function(){if(d&&d.times<10){if(!e.current)return void f((function(e){return Ja({},e)}));a();var r=d.targetAlign,s=d.originAlign,c=d.index,u=d.offset,p=e.current.clientHeight,h=!1,m=r,v=null;if(p){for(var g=r||s,y=0,b=0,x=0,E=Math.min(t.length-1,c),C=0;C<=E;C+=1){var w=i(t[C]);b=y;var _=n.get(w);y=x=b+(void 0===_?o:_)}for(var k="top"===g?u:p-u,O=E;O>=0;O-=1){var S=i(t[O]),A=n.get(S);if(void 0===A){h=!0;break}if((k-=A)<=0)break}switch(g){case"top":v=b-u;break;case"bottom":v=x-p+u;break;default:var P=e.current.scrollTop;b<P?m="top":x>P+p&&(m="bottom")}null!==v&&l(v),v!==d.lastTop&&(h=!0)}h&&f(Ja(Ja({},d),{},{times:d.times+1,targetAlign:m,lastTop:v}))}}),[d,e.current]),function(e){if(null!=e){if(Rs.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"===L(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else s()}}(K,U,D,l,P,(function(){return I(!0)}),ie,Fe);r.useImperativeHandle(t,(function(){return{nativeElement:q.current,getScrollInfo:Ae,scrollTo:function(e){var t;(t=e)&&"object"===L(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Q(Te(e.left)),je(e.top)):je(e)}}})),Ol((function(){if(C){var e=U.slice(de,fe+1);C(e,U)}}),[de,fe,U]);var ze=function(e,t,n,o){var i=Cl(r.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),2),a=i[0],l=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,s=a.get(r),c=a.get(i);if(void 0===s||void 0===c)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],h=t(p);a.set(h,d);var m=null!==(f=n.get(h))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+m,h===r&&(s=d),h===i&&(c=d),void 0!==s&&void 0!==c)break}return{top:l[s-1]||0,bottom:l[c]}}}(U,P,D,l),Be=null==_?void 0:_({start:de,end:fe,virtual:B,offsetX:X,offsetY:pe,rtl:H,getSize:ze}),He=function(e,t,n,o,i,a,l,s){var c=s.getKey;return e.slice(t,n+1).map((function(e,n){var s=l(e,t+n,{style:{width:o},offsetX:i}),u=c(e);return r.createElement(_s,{key:u,setRef:function(t){return a(e,t)}},s)}))}(U,de,fe,g,X,N,p,oe),Ve=null;a&&(Ve=Ja(Xa({},c?"height":"maxHeight",a),qs),j&&(Ve.overflowY="hidden",g&&(Ve.overflowX="hidden"),ee&&(Ve.pointerEvents="none")));var Ue={};return H&&(Ue.dir="rtl"),r.createElement("div",(0,T.Z)({ref:q,style:Ja(Ja({},u),{},{position:"relative"}),className:V},Ue,A),r.createElement(bs,{onResize:function(e){ve({width:e.offsetWidth,height:e.offsetHeight})}},r.createElement(b,{className:"".concat(o,"-holder"),style:Ve,ref:K,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==$&&ie(t),null==x||x(e),Me()},onMouseEnter:Fe},r.createElement(ws,{prefixCls:o,height:ue,offsetX:X,offsetY:pe,scrollWidth:g,onInnerResize:I,ref:Z,innerProps:w,rtl:H,extra:Be},He))),B&&ue>a&&r.createElement(Hs,{ref:ge,prefixCls:o,scrollOffset:$,scrollRange:ue,rtl:H,onScroll:Re,onStartMove:ne,onStopMove:re,spinSize:xe,containerSize:me.height,style:null==k?void 0:k.verticalScrollBar,thumbStyle:null==k?void 0:k.verticalScrollBarThumb,showScrollBar:S}),B&&g>me.width&&r.createElement(Hs,{ref:ye,prefixCls:o,scrollOffset:X,scrollRange:g,rtl:H,onScroll:Re,onStartMove:ne,onStopMove:re,spinSize:be,containerSize:me.width,horizontal:!0,style:null==k?void 0:k.horizontalScrollBar,thumbStyle:null==k?void 0:k.horizontalScrollBarThumb,showScrollBar:S}))}var $s=r.forwardRef(Ws);$s.displayName="List";const Gs=$s;var Ys=r.createContext({}),Xs=function(e){nl(n,e);var t=al(n);function n(){return el(this,n),t.apply(this,arguments)}return j(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const Qs=Xs;var Js="none",ec="appear",tc="enter",nc="leave",rc="none",oc="prepare",ic="start",ac="active",lc="end",sc="prepared";function cc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var uc,dc,fc,pc=(uc=_l(),dc="undefined"!=typeof window?window:{},fc={animationend:cc("Animation","AnimationEnd"),transitionend:cc("Transition","TransitionEnd")},uc&&("AnimationEvent"in dc||delete fc.animationend.animation,"TransitionEvent"in dc||delete fc.transitionend.transition),fc),hc={};if(_l()){var mc=document.createElement("div");hc=mc.style}var vc={};function gc(e){if(vc[e])return vc[e];var t=pc[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in hc)return vc[e]=t[i],vc[e]}return""}var yc=gc("animationend"),bc=gc("transitionend"),xc=!(!yc||!bc),Ec=yc||"animationend",Cc=bc||"transitionend";function wc(e,t){return e?"object"===L(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const _c=_l()?r.useLayoutEffect:r.useEffect;var kc=[oc,ic,ac,lc],Oc=[oc,sc],Sc=!1;function Ac(e){return e===ac||e===lc}function Pc(e,t,n,o){var i,a,l,s=o.motionEnter,c=void 0===s||s,u=o.motionAppear,d=void 0===u||u,f=o.motionLeave,p=void 0===f||f,h=o.motionDeadline,m=o.motionLeaveImmediately,v=o.onAppearPrepare,g=o.onEnterPrepare,y=o.onLeavePrepare,b=o.onAppearStart,x=o.onEnterStart,E=o.onLeaveStart,C=o.onAppearActive,w=o.onEnterActive,_=o.onLeaveActive,k=o.onAppearEnd,O=o.onEnterEnd,S=o.onLeaveEnd,A=o.onVisibleChanged,P=Cl(Es(),2),M=P[0],R=P[1],T=(i=Js,a=Cl(r.useReducer((function(e){return e+1}),0),2)[1],l=r.useRef(i),[xs((function(){return l.current})),xs((function(e){l.current="function"==typeof e?e(l.current):e,a()}))]),N=Cl(T,2),I=N[0],L=N[1],D=Cl(Es(null),2),F=D[0],j=D[1],z=I(),B=(0,r.useRef)(!1),H=(0,r.useRef)(null);function V(){return n()}var U=(0,r.useRef)(!1);function K(){L(Js),j(null,!0)}var Z=xs((function(e){var t=I();if(t!==Js){var n=V();if(!e||e.deadline||e.target===n){var r,o=U.current;t===ec&&o?r=null==k?void 0:k(n,e):t===tc&&o?r=null==O?void 0:O(n,e):t===nc&&o&&(r=null==S?void 0:S(n,e)),o&&!1!==r&&K()}}})),q=Cl(function(e){var t=(0,r.useRef)();function n(t){t&&(t.removeEventListener(Cc,e),t.removeEventListener(Ec,e))}return r.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Cc,e),r.addEventListener(Ec,e),t.current=r)},n]}(Z),1)[0],W=function(e){switch(e){case ec:return Xa(Xa(Xa({},oc,v),ic,b),ac,C);case tc:return Xa(Xa(Xa({},oc,g),ic,x),ac,w);case nc:return Xa(Xa(Xa({},oc,y),ic,E),ac,_);default:return{}}},$=r.useMemo((function(){return W(z)}),[z]),G=Cl(function(e,t,n){var o=Cl(Es(rc),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){Rs.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Rs((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=Cl(l,2),c=s[0],u=s[1],d=t?Oc:kc;return _c((function(){if(i!==rc&&i!==lc){var e=d.indexOf(i),t=d[e+1],r=n(i);r===Sc?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(oc,!0)},i]}(z,!e,(function(e){if(e===oc){var t=$[oc];return t?t(V()):Sc}var n;return X in $&&j((null===(n=$[X])||void 0===n?void 0:n.call($,V(),null))||null),X===ac&&z!==Js&&(q(V()),h>0&&(clearTimeout(H.current),H.current=setTimeout((function(){Z({deadline:!0})}),h))),X===sc&&K(),true})),2),Y=G[0],X=G[1],Q=Ac(X);U.current=Q;var J=(0,r.useRef)(null);_c((function(){if(!B.current||J.current!==t){R(t);var n,r=B.current;B.current=!0,!r&&t&&d&&(n=ec),r&&t&&c&&(n=tc),(r&&!t&&p||!r&&m&&!t&&p)&&(n=nc);var o=W(n);n&&(e||o[oc])?(L(n),Y()):L(Js),J.current=t}}),[t]),(0,r.useEffect)((function(){(z===ec&&!d||z===tc&&!c||z===nc&&!p)&&L(Js)}),[d,c,p]),(0,r.useEffect)((function(){return function(){B.current=!1,clearTimeout(H.current)}}),[]);var ee=r.useRef(!1);(0,r.useEffect)((function(){M&&(ee.current=!0),void 0!==M&&z===Js&&((ee.current||M)&&(null==A||A(M)),ee.current=!0)}),[M,z]);var te=F;return $[oc]&&X===ic&&(te=Ja({transition:"none"},te)),[z,X,te,null!=M?M:t]}const Mc=function(e){var t=e;"object"===L(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,s=e.forceRender,c=e.children,u=e.motionName,d=e.leavedClassName,p=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(Ys).motion),m=(0,r.useRef)(),v=(0,r.useRef)(),g=Cl(Pc(h,i,(function(){try{return m.current instanceof HTMLElement?m.current:Ll(v.current)}catch(e){return null}}),e),4),y=g[0],b=g[1],x=g[2],E=g[3],C=r.useRef(E);E&&(C.current=!0);var w,_=r.useCallback((function(e){m.current=e,jl(n,e)}),[n]),k=Ja(Ja({},p),{},{visible:i});if(c)if(y===Js)w=E?c(Ja({},k),_):!l&&C.current&&d?c(Ja(Ja({},k),{},{className:d}),_):s||!l&&!d?c(Ja(Ja({},k),{},{style:{display:"none"}}),_):null;else{var O;b===oc?O="prepare":Ac(b)?O="active":b===ic&&(O="start");var S=wc(u,"".concat(y,"-").concat(O));w=c(Ja(Ja({},k),{},{className:f()(wc(u,y),Xa(Xa({},S,S&&O),u,"string"==typeof u)),style:x}),_)}else w=null;return r.isValidElement(w)&&Hl(w)&&(Ul(w)||(w=r.cloneElement(w,{ref:_}))),r.createElement(Qs,{ref:v},w)}));return n.displayName="CSSMotion",n}(xc);var Rc="add",Tc="keep",Nc="remove",Ic="removed";function Lc(e){var t;return Ja(Ja({},t=e&&"object"===L(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Dc(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Lc)}var Fc=["component","children","onVisibleChanged","onAllRemoved"],jc=["status"],zc=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mc,t=function(t){nl(o,t);var n=al(o);function o(){var e;el(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e=n.call.apply(n,[this].concat(r)),Xa((0,B.Z)(e),"state",{keyEntities:[]}),Xa((0,B.Z)(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Ja(Ja({},e),{},{status:Ic})}))}}),(function(){var t=e.state.keyEntities.filter((function(e){return e.status!==Ic})).length;0===t&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return j(o,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,s=(o.onAllRemoved,wl(o,Fc)),c=i||r.Fragment,u={};return zc.forEach((function(e){u[e]=s[e],delete s[e]})),delete s.keys,r.createElement(c,s,n.map((function(n,o){var i=n.status,s=wl(n,jc),c=i===Rc||i===Tc;return r.createElement(e,(0,T.Z)({},u,{key:s.key,visible:c,eventProps:s,onVisibleChanged:function(e){null==l||l(e,{key:s.key}),e||t.removeKey(s.key)}}),(function(e,t){return a(Ja(Ja({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Dc(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Dc(e),a=Dc(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Ja(Ja({},e),{},{status:Rc})}))),r=i),n.push(Ja(Ja({},l),{},{status:Tc})),r+=1,t=!0;break}}t||n.push(Ja(Ja({},e),{},{status:Nc}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Ja(Ja({},e),{},{status:Rc})}))));var l={};n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1}));var s=Object.keys(l).filter((function(e){return l[e]>1}));return s.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Nc})),n.forEach((function(t){t.key===e&&(t.status=Tc)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Ic||e.status!==Nc}))}}}]),o}(r.Component);Xa(t,"defaultProps",{component:"div"})}(xc);const Bc=Mc;var Hc=function(e){for(var t=e.prefixCls,n=e.level,o=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],s=0;s<n;s+=1)l.push(r.createElement("span",{key:s,className:f()(a,Xa(Xa({},"".concat(a,"-start"),o[s]),"".concat(a,"-end"),i[s]))}));return r.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)};const Vc=r.memo(Hc);function Uc(e,t){return e[t]}var Kc=["children"];function Zc(e,t){return"".concat(e,"-").concat(t)}function qc(e,t){return null!=e?e:t}function Wc(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function $c(e,t,n){var r=Wc(n),o=r._title,i=r.key,a=r.children,l=new Set(!0===t?[]:t),s=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,u){for(var d,f=Zc(r?r.pos:"0",u),p=qc(c[i],f),h=0;h<o.length;h+=1){var m=o[h];if(void 0!==c[m]){d=c[m];break}}var v,g,y,b=Object.assign((v=c,g=[].concat(Rt(o),[i,a]),y=Object.assign({},v),Array.isArray(g)&&g.forEach((function(e){delete y[e]})),y),{title:d,key:p,parent:r,pos:f,children:null,data:c,isStart:[].concat(Rt(r?r.isStart:[]),[0===u]),isEnd:[].concat(Rt(r?r.isEnd:[]),[u===n.length-1])});return s.push(b),!0===t||l.has(p)?b.children=e(c[a]||[],b):b.children=[],b}))}(e),s}function Gc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=i||(arguments.length>2?arguments[2]:void 0),c={},u={},d={posEntities:c,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var o,i=("object"===L(n)?n:{externalGetKey:n})||{},a=i.childrenPropName,l=i.externalGetKey,s=Wc(i.fieldNames),f=s.key,p=s.children,h=a||p;l?"string"==typeof l?o=function(e){return e[l]}:"function"==typeof l&&(o=function(e){return l(e)}):o=function(e,t){return qc(e[f],t)},function t(n,i,a,l){var s=n?n[h]:e,f=n?Zc(a.pos,i):"0",p=n?[].concat(Rt(l),[n]):[];if(n){var m=o(n,f);!function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,s={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},f=qc(i,o);c[o]=s,u[f]=s,s.parent=c[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,d)}({node:n,index:i,pos:f,key:m,parentPos:a.node?a.pos:null,level:a.level+1,nodes:p})}s&&s.forEach((function(e,r){t(e,r,{node:n,pos:f,level:a?a.level+1:-1},p)}))}(null)}(e,0,{externalGetKey:s,childrenPropName:a,fieldNames:l}),o&&o(d),d}function Yc(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,c=t.dropPosition,u=Uc(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function Xc(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,s=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,h=Ja(Ja({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return yl(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var Qc=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Jc="open",eu="close",tu=function(e){var t,n,r,i=e.eventKey,a=e.className,l=e.style,s=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.isLeaf,p=e.isStart,h=e.isEnd,m=e.expanded,v=e.selected,g=e.checked,y=e.halfChecked,b=e.loading,x=e.domRef,E=e.active,C=e.data,w=e.onMouseMove,_=e.selectable,k=wl(e,Qc),O=o().useContext(bl),S=o().useContext(xl),A=o().useRef(null),P=Cl(o().useState(!1),2),M=P[0],R=P[1],N=!!(O.disabled||e.disabled||null!==(t=S.nodeDisabled)&&void 0!==t&&t.call(S,C)),I=o().useMemo((function(){return!(!O.checkable||!1===e.checkable)&&O.checkable}),[O.checkable,e.checkable]),L=function(t){N||I&&!e.disableCheckbox&&O.onNodeCheck(t,Xc(e),!g)},D=o().useMemo((function(){return"boolean"==typeof _?_:O.selectable}),[_,O.selectable]),F=function(t){O.onNodeClick(t,Xc(e)),D?function(t){N||O.onNodeSelect(t,Xc(e))}(t):L(t)},j=function(t){O.onNodeDoubleClick(t,Xc(e))},z=function(t){O.onNodeMouseEnter(t,Xc(e))},B=function(t){O.onNodeMouseLeave(t,Xc(e))},H=function(t){O.onNodeContextMenu(t,Xc(e))},V=o().useMemo((function(){return!(!O.draggable||O.draggable.nodeDraggable&&!O.draggable.nodeDraggable(C))}),[O.draggable,C]),U=function(t){b||O.onNodeExpand(t,Xc(e))},K=o().useMemo((function(){var e=(Uc(O.keyEntities,i)||{}).children;return Boolean((e||[]).length)}),[O.keyEntities,i]),Z=o().useMemo((function(){return!1!==d&&(d||!O.loadData&&!K||O.loadData&&e.loaded&&!K)}),[d,O.loadData,K,e.loaded]);o().useEffect((function(){b||"function"!=typeof O.loadData||!m||Z||e.loaded||O.onNodeLoad(Xc(e))}),[b,O.loadData,O.onNodeLoad,m,Z,e]);var q=o().useMemo((function(){var e;return null!==(e=O.draggable)&&void 0!==e&&e.icon?o().createElement("span",{className:"".concat(O.prefixCls,"-draggable-icon")},O.draggable.icon):null}),[O.draggable]),W=function(t){var n=e.switcherIcon||O.switcherIcon;return"function"==typeof n?n(Ja(Ja({},e),{},{isLeaf:t})):n},$=o().useMemo((function(){if(!I)return null;var t="boolean"!=typeof I?I:null;return o().createElement("span",{className:f()("".concat(O.prefixCls,"-checkbox"),Xa(Xa(Xa({},"".concat(O.prefixCls,"-checkbox-checked"),g),"".concat(O.prefixCls,"-checkbox-indeterminate"),!g&&y),"".concat(O.prefixCls,"-checkbox-disabled"),N||e.disableCheckbox)),onClick:L,role:"checkbox","aria-checked":y?"mixed":g,"aria-disabled":N||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[I,g,y,N,e.disableCheckbox,e.title]),G=o().useMemo((function(){return Z?null:m?Jc:eu}),[Z,m]),Y=o().useMemo((function(){return o().createElement("span",{className:f()("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__").concat(G||"docu"),Xa({},"".concat(O.prefixCls,"-icon_loading"),b))})}),[O.prefixCls,G,b]),X=o().useMemo((function(){var t=Boolean(O.draggable);return!e.disabled&&t&&O.dragOverNodeKey===i?O.dropIndicatorRender({dropPosition:O.dropPosition,dropLevelOffset:O.dropLevelOffset,indent:O.indent,prefixCls:O.prefixCls,direction:O.direction}):null}),[O.dropPosition,O.dropLevelOffset,O.indent,O.prefixCls,O.direction,O.draggable,O.dragOverNodeKey,O.dropIndicatorRender]),Q=o().useMemo((function(){var t,n,r=e.title,i=void 0===r?"---":r,a="".concat(O.prefixCls,"-node-content-wrapper");if(O.showIcon){var l=e.icon||O.icon;t=l?o().createElement("span",{className:f()("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__customize"))},"function"==typeof l?l(e):l):Y}else O.loadData&&b&&(t=Y);return n="function"==typeof i?i(C):O.titleRender?O.titleRender(C):i,o().createElement("span",{ref:A,title:"string"==typeof i?i:"",className:f()(a,"".concat(a,"-").concat(G||"normal"),Xa({},"".concat(O.prefixCls,"-node-selected"),!N&&(v||M))),onMouseEnter:z,onMouseLeave:B,onContextMenu:H,onClick:F,onDoubleClick:j},t,o().createElement("span",{className:"".concat(O.prefixCls,"-title")},n),X)}),[O.prefixCls,O.showIcon,e,O.icon,Y,O.titleRender,C,G,z,B,H,F,j]),J=dl(k,{aria:!0,data:!0}),ee=(Uc(O.keyEntities,i)||{}).level,te=h[h.length-1],ne=!N&&V,re=O.draggingNodeKey===i,oe=void 0!==_?{"aria-selected":!!_}:void 0;return o().createElement("div",(0,T.Z)({ref:x,role:"treeitem","aria-expanded":d?void 0:m,className:f()(a,"".concat(O.prefixCls,"-treenode"),(r={},Xa(Xa(Xa(Xa(Xa(Xa(Xa(Xa(Xa(Xa(r,"".concat(O.prefixCls,"-treenode-disabled"),N),"".concat(O.prefixCls,"-treenode-switcher-").concat(m?"open":"close"),!d),"".concat(O.prefixCls,"-treenode-checkbox-checked"),g),"".concat(O.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(O.prefixCls,"-treenode-selected"),v),"".concat(O.prefixCls,"-treenode-loading"),b),"".concat(O.prefixCls,"-treenode-active"),E),"".concat(O.prefixCls,"-treenode-leaf-last"),te),"".concat(O.prefixCls,"-treenode-draggable"),V),"dragging",re),Xa(Xa(Xa(Xa(Xa(Xa(Xa(r,"drop-target",O.dropTargetKey===i),"drop-container",O.dropContainerKey===i),"drag-over",!N&&s),"drag-over-gap-top",!N&&c),"drag-over-gap-bottom",!N&&u),"filter-node",null===(n=O.filterTreeNode)||void 0===n?void 0:n.call(O,Xc(e))),"".concat(O.prefixCls,"-treenode-leaf"),Z))),style:l,draggable:ne,onDragStart:ne?function(t){t.stopPropagation(),R(!0),O.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:V?function(t){t.preventDefault(),t.stopPropagation(),O.onNodeDragEnter(t,e)}:void 0,onDragOver:V?function(t){t.preventDefault(),t.stopPropagation(),O.onNodeDragOver(t,e)}:void 0,onDragLeave:V?function(t){t.stopPropagation(),O.onNodeDragLeave(t,e)}:void 0,onDrop:V?function(t){t.preventDefault(),t.stopPropagation(),R(!1),O.onNodeDrop(t,e)}:void 0,onDragEnd:V?function(t){t.stopPropagation(),R(!1),O.onNodeDragEnd(t,e)}:void 0,onMouseMove:w},oe,J),o().createElement(Vc,{prefixCls:O.prefixCls,level:ee,isStart:p,isEnd:h}),q,function(){if(Z){var e=W(!0);return!1!==e?o().createElement("span",{className:f()("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher-noop"))},e):null}var t=W(!1);return!1!==t?o().createElement("span",{onClick:U,className:f()("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher_").concat(m?Jc:eu))},t):null}(),$,Q)};tu.isTreeNode=1;const nu=tu;var ru=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ou=r.forwardRef((function(e,t){var n=e.className,o=e.style,i=e.motion,a=e.motionNodes,l=e.motionType,s=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,p=wl(e,ru),h=Cl(r.useState(!0),2),m=h[0],v=h[1],g=r.useContext(bl).prefixCls,y=a&&"hide"!==l;Ol((function(){a&&y!==m&&v(y)}),[a]);var b=r.useRef(!1),x=function(){a&&!b.current&&(b.current=!0,c())};return function(e,t){var n=Cl(r.useState(!1),2),o=n[0],i=n[1];Ol((function(){if(o)return e(),function(){t()}}),[o]),Ol((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&s()}),x),a?r.createElement(Bc,(0,T.Z)({ref:t,visible:m},i,{motionAppear:"show"===l,onVisibleChanged:function(e){y===e&&x()}}),(function(e,t){var n=e.className,o=e.style;return r.createElement("div",{ref:t,className:f()("".concat(g,"-treenode-motion"),n),style:o},a.map((function(e){var t=Object.assign({},(El(e.data),e.data)),n=e.title,o=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=Yc(o,d);return r.createElement(nu,(0,T.Z)({},t,l,{title:n,active:u,data:e.data,key:o,isStart:i,isEnd:a}))})))})):r.createElement(nu,(0,T.Z)({domRef:t,className:n,style:o},p,{active:u}))}));const iu=ou;function au(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var lu=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],su={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},cu=function(){},uu="RC_TREE_MOTION_".concat(Math.random()),du={key:uu},fu={key:uu,level:0,index:0,pos:"0",node:du,nodes:[du]},pu={parent:null,children:[],pos:fu.pos,data:du,title:null,key:uu,isStart:[],isEnd:[]};function hu(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function mu(e){return qc(e.key,e.pos)}var vu=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,v=e.motion,g=e.height,y=e.itemHeight,b=e.virtual,x=e.scrollWidth,E=e.focusable,C=e.activeItem,w=e.focused,_=e.tabIndex,k=e.onKeyDown,O=e.onFocus,S=e.onBlur,A=e.onActiveChange,P=e.onListChangeStart,M=e.onListChangeEnd,R=wl(e,lu),N=r.useRef(null),I=r.useRef(null);r.useImperativeHandle(t,(function(){return{scrollTo:function(e){N.current.scrollTo(e)},getIndentWidth:function(){return I.current.offsetWidth}}}));var L=Cl(r.useState(i),2),D=L[0],F=L[1],j=Cl(r.useState(o),2),z=j[0],B=j[1],H=Cl(r.useState(o),2),V=H[0],U=H[1],K=Cl(r.useState([]),2),Z=K[0],q=K[1],W=Cl(r.useState(null),2),$=W[0],G=W[1],Y=r.useRef(o);function X(){var e=Y.current;B(e),U(e),q([]),G(null),M()}Y.current=o,Ol((function(){F(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(D,i);if(null!==e.key)if(e.add){var t=z.findIndex((function(t){return t.key===e.key})),n=hu(au(z,o,e.key),b,g,y),r=z.slice();r.splice(t+1,0,pu),U(r),q(n),G("show")}else{var a=o.findIndex((function(t){return t.key===e.key})),l=hu(au(o,z,e.key),b,g,y),s=o.slice();s.splice(a+1,0,pu),U(s),q(l),G("hide")}else z!==o&&(B(o),U(o))}),[i,o]),r.useEffect((function(){p||X()}),[p]);var Q=v?V:o,J={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:m,keyEntities:d};return r.createElement(r.Fragment,null,w&&C&&r.createElement("span",{style:su,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(C)),r.createElement("div",null,r.createElement("input",{style:su,disabled:!1===E||f,tabIndex:!1!==E?_:null,onKeyDown:k,onFocus:O,onBlur:S,value:"",onChange:cu,"aria-label":"for screen reader"})),r.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},r.createElement("div",{className:"".concat(n,"-indent")},r.createElement("div",{ref:I,className:"".concat(n,"-indent-unit")}))),r.createElement(Gs,(0,T.Z)({},R,{data:Q,itemKey:mu,height:g,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:N,role:"tree",onVisibleChange:function(e){e.every((function(e){return mu(e)!==uu}))&&X()}}),(function(e){var t=e.pos,n=Object.assign({},(El(e.data),e.data)),o=e.title,i=e.key,a=e.isStart,l=e.isEnd,s=qc(i,t);delete n.key,delete n.children;var c=Yc(s,J);return r.createElement(iu,(0,T.Z)({},n,c,{title:o,active:!!C&&i===C.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:v,motionNodes:i===uu?Z:null,motionType:$,onMotionStart:P,onMotionEnd:X,treeNodeRequiredProps:J,onMouseMove:function(){A(null)}}))})))}));const gu=vu;function yu(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function bu(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function xu(e){return e.split("-")}function Eu(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(Uc(t,e).children),n}function Cu(e){if(e.parent){var t=xu(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function wu(e,t,n,r,o,i,a,l,s,c){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,m=p.height,v=(("rtl"===c?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,g=s.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),y=Uc(l,n.eventKey);if(f<h+m/2){var b=a.findIndex((function(e){return e.key===y.key})),x=a[b<=0?0:b-1].key;y=Uc(l,x)}var E=y.key,C=y,w=y.key,_=0,k=0;if(!g.includes(E))for(var O=0;O<v&&Cu(y);O+=1)y=y.parent,k+=1;var S,A=t.data,P=y.node,M=!0;return S=xu(y.pos),0===Number(S[S.length-1])&&0===y.level&&f<h+m/2&&i({dragNode:A,dropNode:P,dropPosition:-1})&&y.key===n.eventKey?_=-1:(C.children||[]).length&&g.includes(w)?i({dragNode:A,dropNode:P,dropPosition:0})?_=0:M=!1:0===k?v>-1.5?i({dragNode:A,dropNode:P,dropPosition:1})?_=1:M=!1:i({dragNode:A,dropNode:P,dropPosition:0})?_=0:i({dragNode:A,dropNode:P,dropPosition:1})?_=1:M=!1:i({dragNode:A,dropNode:P,dropPosition:1})?_=1:M=!1,{dropPosition:_,dropLevelOffset:k,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:w,dropContainerKey:0===_?null:(null===(u=y.parent)||void 0===u?void 0:u.key)||null,dropAllowed:M}}function _u(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function ku(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==L(e))return yl(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Ou(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=Uc(t,e);if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach((function(e){r(e)})),Rt(n)}function Su(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Au(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Pu(e,t,n,r){var o,i=[];o=r||Au;var a,l=new Set(e.filter((function(e){var t=!!Uc(n,e);return t||i.push(e),t}))),s=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=s.get(r);o||(o=new Set,s.set(r,o)),o.add(t),c=Math.max(c,r)})),yl(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,s=n;s>=0;s-=1)(t.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),s||!n&&!i.has(t)||(s=!0)})),a&&o.add(t.key),s&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Su(i,o))}}(l,s,c,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||l.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var s=new Set,c=r;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!s.has(e.parent.key))if(o(e.parent.node))s.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)})),r||i.delete(t.key),l&&a.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Su(a,i))}}(l,t.halfCheckedKeys,s,c,o),a}var Mu=function(e){nl(n,e);var t=al(n);function n(){var e;el(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Xa((0,B.Z)(e),"destroyed",!1),Xa((0,B.Z)(e),"delayedDragEnterLogic",void 0),Xa((0,B.Z)(e),"loadingRetryTimes",{}),Xa((0,B.Z)(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Wc()}),Xa((0,B.Z)(e),"dragStartMousePosition",null),Xa((0,B.Z)(e),"dragNodeProps",null),Xa((0,B.Z)(e),"currentMouseOverDroppableNodeKey",null),Xa((0,B.Z)(e),"listRef",r.createRef()),Xa((0,B.Z)(e),"onNodeDragStart",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,l=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var s=yu(o,l);e.setState({draggingNodeKey:l,dragChildrenKeys:Eu(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(s),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:Xc(n)})})),Xa((0,B.Z)(e),"onNodeDragEnter",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,l=r.flattenNodes,s=r.indent,c=e.props,u=c.onDragEnter,d=c.onExpand,f=c.allowDrop,p=c.direction,h=n.pos,m=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==m&&(e.currentMouseOverDroppableNodeKey=m),e.dragNodeProps){var v=wu(t,e.dragNodeProps,n,s,e.dragStartMousePosition,f,l,i,o,p),g=v.dropPosition,y=v.dropLevelOffset,b=v.dropTargetKey,x=v.dropContainerKey,E=v.dropTargetPos,C=v.dropAllowed,w=v.dragOverNodeKey;!a.includes(b)&&C?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[h]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var r=Rt(o),a=Uc(i,n.eventKey);a&&(a.children||[]).length&&(r=bu(o,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(r),null==d||d(r,{node:Xc(n),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),e.dragNodeProps.eventKey!==b||0!==y?(e.setState({dragOverNodeKey:w,dropPosition:g,dropLevelOffset:y,dropTargetKey:b,dropContainerKey:x,dropTargetPos:E,dropAllowed:C}),null==u||u({event:t,node:Xc(n),expandedKeys:o})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),Xa((0,B.Z)(e),"onNodeDragOver",(function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,l=r.expandedKeys,s=r.indent,c=e.props,u=c.onDragOver,d=c.allowDrop,f=c.direction;if(e.dragNodeProps){var p=wu(t,e.dragNodeProps,n,s,e.dragStartMousePosition,d,i,a,l,f),h=p.dropPosition,m=p.dropLevelOffset,v=p.dropTargetKey,g=p.dropContainerKey,y=p.dropTargetPos,b=p.dropAllowed,x=p.dragOverNodeKey;!o.includes(v)&&b&&(e.dragNodeProps.eventKey===v&&0===m?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&m===e.state.dropLevelOffset&&v===e.state.dropTargetKey&&g===e.state.dropContainerKey&&y===e.state.dropTargetPos&&b===e.state.dropAllowed&&x===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:m,dropTargetKey:v,dropContainerKey:g,dropTargetPos:y,dropAllowed:b,dragOverNodeKey:x}),null==u||u({event:t,node:Xc(n)}))}})),Xa((0,B.Z)(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:t,node:Xc(n)})})),Xa((0,B.Z)(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),Xa((0,B.Z)(e),"onNodeDragEnd",(function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:t,node:Xc(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),Xa((0,B.Z)(e),"onNodeDrop",(function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,s=i.dropTargetKey,c=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var d=Ja(Ja({},Yc(s,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===s,data:Uc(e.state.keyEntities,s).node}),f=a.includes(s);yl(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=xu(c),h={event:t,node:Xc(d),dragNode:e.dragNodeProps?Xc(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};o||null==u||u(h),e.dragNodeProps=null}}})),Xa((0,B.Z)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),Xa((0,B.Z)(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=i.filter((function(e){return e.key===l}))[0],c=Xc(Ja(Ja({},Yc(l,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(a?yu(o,l):bu(o,l)),e.onNodeExpand(t,c)}})),Xa((0,B.Z)(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),Xa((0,B.Z)(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),Xa((0,B.Z)(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,s=l.onSelect,c=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(r=f?c?bu(r,d):[d]:yu(r,d)).map((function(e){var t=Uc(i,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:r}),null==s||s(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),Xa((0,B.Z)(e),"onNodeCheck",(function(t,n,r){var o,i=e.state,a=i.keyEntities,l=i.checkedKeys,s=i.halfCheckedKeys,c=e.props,u=c.checkStrictly,d=c.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var h=r?bu(l,f):yu(l,f);o={checked:h,halfChecked:yu(s,f)},p.checkedNodes=h.map((function(e){return Uc(a,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var m=Pu([].concat(Rt(l),[f]),!0,a),v=m.checkedKeys,g=m.halfCheckedKeys;if(!r){var y=new Set(v);y.delete(f);var b=Pu(Array.from(y),{checked:!1,halfCheckedKeys:g},a);v=b.checkedKeys,g=b.halfCheckedKeys}o=v,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=g,v.forEach((function(e){var t=Uc(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:g})}null==d||d(o,p)})),Xa((0,B.Z)(e),"onNodeLoad",(function(t){var n,r=t.key,o=Uc(e.state.keyEntities,r);if(null==o||null===(n=o.children)||void 0===n||!n.length){var i=new Promise((function(n,o){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,s=i.loadingKeys,c=void 0===s?[]:s,u=e.props,d=u.loadData,f=u.onLoad;return!d||l.includes(r)||c.includes(r)?null:(d(t).then((function(){var o=bu(e.state.loadedKeys,r);null==f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:yu(e.loadingKeys,r)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:yu(e.loadingKeys,r)}})),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var i=e.state.loadedKeys;yl(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:bu(i,r)}),n()}o(t)})),{loadingKeys:bu(c,r)})}))}));return i.catch((function(){})),i}})),Xa((0,B.Z)(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),Xa((0,B.Z)(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),Xa((0,B.Z)(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),Xa((0,B.Z)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)})),Xa((0,B.Z)(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)})),Xa((0,B.Z)(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),Xa((0,B.Z)(e),"setExpandedKeys",(function(t){var n=e.state,r=$c(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)})),Xa((0,B.Z)(e),"onNodeExpand",(function(t,n){var r=e.state.expandedKeys,o=e.state,i=o.listChanging,a=o.fieldNames,l=e.props,s=l.onExpand,c=l.loadData,u=n.expanded,d=n[a.key];if(!i){var f=r.includes(d),p=!u;if(yl(u&&f||!u&&!f,"Expand state not sync with index check"),r=p?bu(r,d):yu(r,d),e.setExpandedKeys(r),null==s||s(r,{node:n,expanded:p,nativeEvent:t.nativeEvent}),p&&c){var h=e.onNodeLoad(n);h&&h.then((function(){var t=$c(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=yu(e.state.expandedKeys,d);e.setExpandedKeys(t)}))}}})),Xa((0,B.Z)(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),Xa((0,B.Z)(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),Xa((0,B.Z)(e),"onActiveChange",(function(t){var n=e.state.activeKey,r=e.props,o=r.onActiveChange,i=r.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null==o||o(t))})),Xa((0,B.Z)(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null})),Xa((0,B.Z)(e),"offsetActiveKey",(function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)})),Xa((0,B.Z)(e),"onKeyDown",(function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,s=l.onKeyDown,c=l.checkable,u=l.selectable;switch(t.which){case sl.UP:e.offsetActiveKey(-1),t.preventDefault();break;case sl.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,h=Xc(Ja(Ja({},Yc(r,f)),{},{data:d.data,active:!0}));switch(t.which){case sl.LEFT:p&&o.includes(r)?e.onNodeExpand({},h):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case sl.RIGHT:p&&!o.includes(r)?e.onNodeExpand({},h):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case sl.ENTER:case sl.SPACE:!c||h.disabled||!1===h.checkable||h.disableCheckbox?c||!u||h.disabled||!1===h.selectable||e.onNodeSelect({},h):e.onNodeCheck({},h,!i.includes(r))}}null==s||s(t)})),Xa((0,B.Z)(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?i=!1:(o=!0,a[n]=t[n])})),!o||n&&!i||e.setState(Ja(Ja({},a),r))}})),Xa((0,B.Z)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return j(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,o=t.flattenNodes,i=t.keyEntities,a=t.draggingNodeKey,l=t.activeKey,s=t.dropLevelOffset,c=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,p=t.dragOverNodeKey,h=t.indent,m=this.props,v=m.prefixCls,g=m.className,y=m.style,b=m.showLine,x=m.focusable,E=m.tabIndex,C=void 0===E?0:E,w=m.selectable,_=m.showIcon,k=m.icon,O=m.switcherIcon,S=m.draggable,A=m.checkable,P=m.checkStrictly,M=m.disabled,R=m.motion,N=m.loadData,I=m.filterTreeNode,D=m.height,F=m.itemHeight,j=m.scrollWidth,z=m.virtual,B=m.titleRender,H=m.dropIndicatorRender,V=m.onContextMenu,U=m.onScroll,K=m.direction,Z=m.rootClassName,q=m.rootStyle,W=dl(this.props,{aria:!0,data:!0});S&&(e="object"===L(S)?S:"function"==typeof S?{nodeDraggable:S}:{});var $={prefixCls:v,selectable:w,showIcon:_,icon:k,switcherIcon:O,draggable:e,draggingNodeKey:a,checkable:A,checkStrictly:P,disabled:M,keyEntities:i,dropLevelOffset:s,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:p,indent:h,direction:K,dropIndicatorRender:H,loadData:N,filterTreeNode:I,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return r.createElement(bl.Provider,{value:$},r.createElement("div",{className:f()(v,g,Z,Xa(Xa(Xa({},"".concat(v,"-show-line"),b),"".concat(v,"-focused"),n),"".concat(v,"-active-focused"),null!==l)),style:q},r.createElement(gu,(0,T.Z)({ref:this.listRef,prefixCls:v,style:y,data:o,disabled:M,selectable:w,checkable:!!A,motion:R,dragging:null!==a,height:D,itemHeight:F,virtual:z,focusable:x,focused:n,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:U,scrollWidth:j},this.getTreeNodeRequiredProps(),W))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=Wc(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(yl(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=function e(t){return Rl(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return yl(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=Ja({key:n},wl(r,Kc)),a=e(o);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e.children)),n){o.treeData=n;var l=Gc(n,{fieldNames:a});o.keyEntities=Ja(Xa({},uu,fu),l.keyEntities)}var s,c=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Ou(e.expandedKeys,c):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=Ja({},c);delete u[uu];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),o.expandedKeys=d}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Ou(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=$c(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=f}if(e.selectable&&(i("selectedKeys")?o.selectedKeys=_u(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=_u(e.defaultSelectedKeys,e))),e.checkable&&(i("checkedKeys")?s=ku(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=ku(e.defaultCheckedKeys)||{}:n&&(s=ku(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var p=s,h=p.checkedKeys,m=void 0===h?[]:h,v=p.halfCheckedKeys,g=void 0===v?[]:v;if(!e.checkStrictly){var y=Pu(m,!0,c);m=y.checkedKeys,g=y.halfCheckedKeys}o.checkedKeys=m,o.halfCheckedKeys=g}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(r.Component);Xa(Mu,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return o().createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),Xa(Mu,"TreeNode",nu);const Ru=Mu,Tu=JSON.parse('{"levelLines":"_levelLines_12unh_1","levelLine":"_levelLine_12unh_1","showLine":"_showLine_12unh_17","lastLevelLine":"_lastLevelLine_12unh_28","horizontalLine":"_horizontalLine_12unh_39"}');br('\n._levelLines_12unh_1 {\n\tposition: absolute;\n\tdisplay: flex;\n\tpadding-left: 0;\n\tcursor: initial;\n\tbottom: 0;\n\ttop: 0;\n\tz-index: 0;\n}\n\n._levelLine_12unh_1 {\n\tpadding-left: var(--reltio-tree-list-indent-size, 16px);\n\theight: 100%;\n\tposition: relative;\n}\n\n._showLine_12unh_17::after {\n\tcontent: "";\n\tposition: absolute;\n\theight: 100%;\n\twidth: 1px;\n\tleft: calc(var(--reltio-tree-list-indent-size, 16px) - 2px);\n\ttop: 0;\n\tbottom: 0;\n\tbackground-color: var(--reltio-tree-list-line-color, rgba(0, 0, 0, 0.08));\n}\n\n._lastLevelLine_12unh_28::after {\n\theight: 50%;\n}\n\n._lastLevelLine_12unh_28 {\n\tpadding-left: calc(\n\t\tvar(--reltio-tree-list-indent-size, 16px) +\n\t\t(var(--reltio-tree-list-toggle-size, 26px) / 2)\n\t);\n}\n\n._horizontalLine_12unh_39::before {\n\tcontent: "";\n\theight: 1px;\n\twidth: 5px;\n\tposition: absolute;\n\ttop: 50%;\n\tleft: calc(var(--reltio-tree-list-indent-size, 16px) - 2px);\n\tbackground-color: var(--reltio-tree-list-line-color, rgba(0, 0, 0, 0.08));\n}\n');const Nu=Tu,Iu=(0,r.memo)((({needDrawLine:e=!1,isLastLevelLine:t=!1,drawHorizontalLine:n=!1})=>(0,Mn.jsx)("div",{className:xr(Nu.levelLine,e&&Nu.showLine,t&&Nu.lastLevelLine,n&&Nu.horizontalLine)}))),Lu=(0,r.memo)((({levelLines:e,isLast:t=!1})=>{const n=e,r=0===n.length,o=n.length+2;return r?null:(0,Mn.jsxs)("div",{className:xr(Nu.levelLines),children:[n.map(((e,t)=>(0,Mn.jsx)(Iu,{needDrawLine:e},`${t}-${e}`))),(0,Mn.jsx)(Iu,{needDrawLine:!0,drawHorizontalLine:!0,isLastLevelLine:t},o)]})}));Iu.displayName="LevelLine",Lu.displayName="TreeLevelLines";const Du=JSON.parse('{"wrapper":"_wrapper_xk2s6_1","indent":"_indent_xk2s6_11","toggle":"_toggle_xk2s6_17","chevron":"_chevron_xk2s6_29","expanded":"_expanded_xk2s6_33","spinner":"_spinner_xk2s6_37","spin":"_spin_xk2s6_37","actions":"_actions_xk2s6_57"}');br("\n._wrapper_xk2s6_1 {\n\tdisplay: flex;\n\talign-items: center;\n\tline-height: var(--reltio-tree-list-line-height, 1.5);\n\tpadding: var(--reltio-tree-list-row-padding-block, 2px)\n\t\tvar(--reltio-tree-list-row-padding-inline, 4px);\n\tposition: relative;\n\tz-index: 1;\n}\n\n._indent_xk2s6_11 {\n\tdisplay: inline-block;\n\twidth: calc(var(--depth, 1) * var(--reltio-tree-list-indent-size, 16px));\n\tflex: 0 0 auto;\n}\n\n._toggle_xk2s6_17 {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: var(--reltio-tree-list-toggle-size, 26px);\n\theight: var(--reltio-tree-list-toggle-size, 26px);\n\tborder: none;\n\tbackground: none;\n\tcolor: var(--reltio-tree-list-toggle-color, #5f6368);\n\tcursor: pointer;\n}\n\n._chevron_xk2s6_29 {\n\ttransition: transform 0.2s ease;\n}\n\n._expanded_xk2s6_33 {\n\ttransform: rotate(90deg);\n}\n\n._spinner_xk2s6_37 {\n\tdisplay: inline-block;\n\twidth: var(--reltio-tree-list-spinner-size, 10px);\n\theight: var(--reltio-tree-list-spinner-size, 10px);\n\tborder-radius: 50%;\n\tborder: var(--reltio-tree-list-spinner-width, 2px) solid\n\t\tvar(--reltio-tree-list-spinner-color, currentColor);\n\tborder-top-color: transparent;\n\tanimation: _spin_xk2s6_37 0.8s linear infinite;\n}\n\n@keyframes _spin_xk2s6_37 {\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n._actions_xk2s6_57 {\n\tmargin-left: auto;\n\topacity: 0;\n\ttransition: opacity 0.12s ease;\n}\n\n._wrapper_xk2s6_1:hover ._actions_xk2s6_57 {\n\topacity: 1;\n}\n");const Fu=Du,ju=(0,r.memo)((({id:e,node:t,depth:n,isLeaf:o,isExpanded:i,levelLines:a,isLast:l,onToggle:s,LabelComponent:c})=>{const u=(0,r.useCallback)((n=>{n.stopPropagation(),s(e,i,t)}),[s,e,i,t]);return(0,Mn.jsxs)("div",{className:xr(Fu.wrapper),"data-depth":n,children:[(0,Mn.jsx)(Lu,{levelLines:a,isLast:l}),(0,Mn.jsx)("span",{className:xr(Fu.indent),style:{"--depth":`${n}`}}),o?(0,Mn.jsx)("span",{className:xr(Fu.toggle),"aria-hidden":"true"}):t.isLoading?(0,Mn.jsx)("span",{className:xr(Fu.toggle),"aria-hidden":"true",children:(0,Mn.jsx)("span",{className:xr(Fu.spinner)})}):(0,Mn.jsx)("button",{type:"button",className:xr(Fu.toggle),"aria-label":i?"Collapse":"Expand",onClick:u,children:(0,Mn.jsx)(Ar,{size:"small",className:xr(Fu.chevron,i&&Fu.expanded)})}),c?(0,Mn.jsx)(c,{data:t}):t.label]})}));ju.displayName="TreeNode";const zu=(e,t=1,n)=>e.map((e=>({key:e.id,title:null,isLeaf:!e.children,data:{raw:e,depth:t,parentId:n},children:e.children?zu(e.children,t+1,e.id):void 0}))),Bu=JSON.parse('{"root":"_root_k7z3s_1","rc-tree-treenode":"_rc-tree-treenode_k7z3s_17"}');br("\n._root_k7z3s_1 {\n\t--reltio-tree-list-font-family: inherit;\n\t--reltio-tree-list-font-size: inherit;\n\t--reltio-tree-list-text-color: inherit;\n\t--reltio-tree-list-background: inherit;\n\t--reltio-tree-list-line-height: inherit;\n\tdisplay: block;\n\toverflow: auto;\n\tfont-family: var(--reltio-tree-list-font-family, system-ui, sans-serif);\n\tfont-size: var(--reltio-tree-list-font-size, 14px);\n\tcolor: var(--reltio-tree-list-text-color, #1a1a1a);\n\tbackground: var(--reltio-tree-list-background, transparent);\n\tborder: none;\n\tborder-radius: var(--reltio-tree-list-border-radius, 0);\n}\n\n._rc-tree-treenode_k7z3s_17 {\n\tlist-style: none;\n}\n");const Hu=Bu,Vu=(0,r.memo)((({data:e,LabelComponent:t,expandedKeys:n,onExpand:o})=>{const i=(0,r.useMemo)((()=>e.map((e=>e.id))),[e]),a=void 0!==n,[l,s]=(0,r.useState)((()=>a?new Set:new Set(i))),c=(0,r.useMemo)((()=>zu(e)),[e]),u=(0,r.useMemo)((()=>(e=>{const t={},n=(e,r=[],o=0)=>{for(let i=0;i<e.length;i++){const a=e[i],l=i===e.length-1;if(t[a.key]=[r,l],a.children?.length){const e=0===o?[...r,!1]:[...r,!l];n(a.children,e,o+1)}}};return n(e),t})(c)),[c]),d=(0,r.useMemo)((()=>a?new Set(n??[]):l),[n,l,a]),f=(0,r.useMemo)((()=>Array.from(d)),[d]),p=(0,r.useCallback)(((e,t)=>{o?.(e,t),a||s(new Set(e))}),[a,o]),h=(0,r.useCallback)(((e,t,n)=>{const r=new Set(d);t?r.delete(e):r.add(e),p(Array.from(r),n)}),[d,p]),m=(0,r.useCallback)((e=>{const n=e.data.raw,r=!!e.isLeaf,o=d.has(e.key),[i,a]=u[e.key]??[[],!1];return(0,Mn.jsx)(ju,{id:e.key,node:n,depth:e.data.depth,isLeaf:r,isExpanded:o,levelLines:i,isLast:a,onToggle:h,LabelComponent:t})}),[d,u,t,h]);return(0,Mn.jsx)("div",{className:xr(Hu.root),children:(0,Mn.jsx)(Ru,{treeData:c,expandAction:!1,virtual:!1,selectable:!1,expandedKeys:f,showIcon:!1,titleRender:m})})}));Vu.displayName="TreeList";var Uu=n(8759),Ku=n.n(Uu),Zu=n(3627),qu=n.n(Zu),Wu=n(5743),$u=n.n(Wu);const Gu=({entity:e,avatarClassName:t,imageClassName:n})=>{const r=O(),i=C((e=>e.absoluteImagePath))||"",a=(0,s.getEntityImage)(r,i,e),l=(0,s.getAbsoluteImageUrl)(i,(0,s.getEntityTypeImage)(r,e.type)),c=e=>{e.target.onError=null,e.target.src=(0,s.svg2Url)('\n<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Group</title>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Group" fill-rule="nonzero">\n <rect id="Rectangle" fill="#DFE5E9" x="0" y="0" width="400" height="400"></rect>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n </g>\n </g>\n</svg>\n')};return o().createElement($u(),{className:f()(t,n),src:a,imgProps:{onError:c}},o().createElement("img",{className:n,src:l,alt:"fallback entity avatar",onError:c}))};var Yu=n(4073),Xu=n.n(Yu),Qu=n(2436),Ju=n.n(Qu),ed=function(e,t){return ed=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ed(e,t)};"function"==typeof SuppressedError&&SuppressedError;var td=function(e){return"function"==typeof e},nd=function(){return"undefined"==typeof window},rd=function(e){return e instanceof Element||e instanceof HTMLDocument},od=function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!nd()){t&&t.current&&(n.targetRef.current=t.current);var o=n.getElement();o&&(n.observableElement&&n.observableElement===o||(n.observableElement=o,n.resizeObserver.observe(o,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(nd())return null;if(t)return document.querySelector(t);if(r&&rd(r))return r;if(n.targetRef&&rd(n.targetRef.current))return n.targetRef.current;var o=(0,Tl.findDOMNode)(n);if(!o)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,o=void 0===r||r,i=t.handleHeight,a=void 0===i||i,l=t.onResize;(o||a)&&e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!nd()&&function(e){var t=e.width,r=e.height;n.state.width===t&&n.state.height===r||n.state.width===t&&!a||n.state.height===r&&!o||(null==l||l(t,r),n.setState({width:t,height:r}))}({width:r,height:i}),n.skipOnMount=!1}))},n.getRenderType=function(){var e=n.props,t=e.render,o=e.children;return td(t)?"renderProp":td(o)?"childFunction":(0,r.isValidElement)(o)?"child":Array.isArray(o)?"childArray":"parent"};var o=t.skipOnMount,i=t.refreshMode,a=t.refreshRate,l=void 0===a?1e3:a,s=t.refreshOptions;return n.state={width:void 0,height:void 0},n.sizeRef={current:n.state},n.skipOnMount=o,n.targetRef=(0,r.createRef)(),n.observableElement=null,nd()||(n.resizeHandler=function(e,t,n,r){switch(t){case"debounce":return Xu()(e,n,r);case"throttle":return Ju()(e,n,r);default:return e}}(n.createResizeHandler,i,l,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ed(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver(),this.sizeRef.current=this.state},t.prototype.componentWillUnmount=function(){nd()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e=this.props,t=e.render,n=e.children,i=e.nodeType,a=void 0===i?"div":i,l=this.state,s={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return null==t?void 0:t(s);case"childFunction":return null==n?void 0:n(s);case"child":var c=n;if(c.type&&"string"==typeof c.type){var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(s,["targetRef"]);return(0,r.cloneElement)(c,u)}return(0,r.cloneElement)(c,s);case"childArray":return n.map((function(e){return!!e&&(0,r.cloneElement)(e,s)}));default:return o().createElement(a,null)}},t}(r.PureComponent);const id=qn((e=>({tooltip:e.tooltip,popper:{zIndex:1e4}})));function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ad.apply(null,arguments)}function ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){sd(e,t,n[t])}))}return e}function sd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cd=e=>{let{children:t,value:n="",className:i,showOnExceededWidth:a=!0,showOnExceededHeight:l}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","value","className","showOnExceededWidth","showOnExceededHeight"]);const c=id(),u=(0,r.useRef)(),[d,f]=(0,r.useState)(!1),p=()=>f(((e,t,n)=>e&&(t&&e.clientWidth<e.scrollWidth||n&&e.clientHeight<e.scrollHeight))(u.current,a,l));return(0,r.useEffect)(p,[l,a,n]),o().createElement(o().Fragment,null,o().createElement(od,{handleWidth:a,handleHeight:l,onResize:p,refreshMode:"debounce",refreshRate:100}),o().createElement(qu(),ad({ref:u,title:d?n:"",classes:ld({},c,{tooltip:i})},s),t))},ud={primary:{main:"#0072CE",light:"#0072CE",dark:"#0072CE"},secondary:{main:"#0072CE"},error:{main:"#FF1744"},success:{main:"#3B873E"},background:{paper:"#FFF",default:"#FAFAFA"},action:{hover:"rgba(0,0,0,0.04)",hoverOpacity:.04},text:{primary:"rgba(0,0,0,0.87)",secondary:"rgba(0,0,0,0.54)",disabled:"rgba(0,0,0,0.26)",hint:"rgba(0,0,0,0.38)"},divider:"rgba(0,0,0,0.38)",SnackbarContent:{color:"#FFF",bg:"#121212"}},dd=(ud.primary,ud.secondary,qn({"entityType-overflow":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",marginRight:"12px",borderRadius:"2px",flexShrink:0},"entityType-medium":{padding:"2px 7px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"16px",marginRight:"16px",flexShrink:0}})),fd=({entity:e,className:t,size:n="small"})=>{const r=dd(),i=O(),a=(0,s.getEntityType)(i,e.type),l=(a?(0,s.getPropWithInheritance)(i,a,"typeColor"):null)||ud.primary.main,c=(0,s.getEntityTypeLabel)(i,e);return o().createElement(cd,{value:c,placement:"top"},o().createElement(Ku(),{style:{backgroundColor:l,color:s.utils.Colors.getColor(l)?"#FFFFFF":"#212121"},className:f()(r[`entityType-${n}`],r["entityType-overflow"],t),component:"div"},c))};var pd=n(6062),hd=n.n(pd),md=n(1552);hd()(md.Z,{insert:"head",singleton:!1});const vd=md.Z.locals||{},gd=({entity:e,children:t,className:n,classes:i,renderLabel:a=p.identity})=>{const l=O(),c=C((e=>e.showEntityId)),d=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,s.getEntityId)(e))}),[e]);if((0,p.isNil)(e))return null;const h=(0,s.getLabel)(e.label),m=e.secondaryLabel,v=(0,s.getBusinessCardAttributesText)(l,e),g=(0,s.isActiveObject)(e),y=e.uri,b=(0,s.getEntityId)(e);return o().createElement("div",{className:f()(vd.profileBandWrapper,n),"data-reltio-id":"reltio-profile-band"},o().createElement("div",{className:f()(vd.profileBand,null==i?void 0:i.profileBand,{[vd.inactive]:!g}),"data-entity-uri":y},o().createElement(Gu,{key:e.uri,entity:e,avatarClassName:vd.profileIcon,imageClassName:vd.imageProfileIcon}),o().createElement("div",{className:vd.profileInfo},o().createElement("div",null,o().createElement(Ku(),{variant:"h6",className:vd.label},a(h)),m&&o().createElement(Ku(),{variant:"subtitle2",className:vd.secondaryLabel},m),v&&o().createElement(Ku(),{variant:"subtitle1",className:vd.businessCard},v)),o().createElement("div",{className:vd.specialInfo},o().createElement("div",{className:vd.entityType},o().createElement(fd,{entity:e,size:"medium"}),!(0,s.isTempUri)(y)&&c&&o().createElement(qu(),{title:u().text("Copy to clipboard")},o().createElement(Ku(),{display:"inline",variant:"body2",className:vd.entityId,onClick:d},u().text("Entity ID"),": ",b))))),t&&o().createElement("div",null,t)))};var yd=n(2004),bd=n.n(yd),xd=n(4179),Ed=n.n(xd),Cd=n(866),wd=n.n(Cd);const _d=o().createContext({profileBand:{}});_d.displayName="LabelsContext";const kd=qn((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}})));function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(null,arguments)}const Sd=e=>{const t=(0,r.forwardRef)(((t,n)=>{let{tooltipTitle:r,tooltipPlacement:i,showForDisabled:a=!1,tooltipClassName:l}=t,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["tooltipTitle","tooltipPlacement","showForDisabled","tooltipClassName"]);const c=kd();return r?o().createElement(qu(),{ref:n,title:r,placement:i||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:f()(c.tooltip,l)},PopperProps:{modifiers:[{name:"preventOverflow",options:{altAxis:!0}}]}},(t=>t?o().createElement("span",{ref:n,className:c.wrapper},o().createElement(e,s)):o().createElement(e,Od({ref:n},s)))(a)):o().createElement(e,Od({ref:n},s))}));return t.displayName="WithTooltip",t};var Ad=n(9233),Pd=n.n(Ad);const Md={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},Rd=qn({rootAll:{padding:"0"},rootXXS:{height:"16px",width:"16px"},iconXXS:{fontSize:"16px"},rootXS:{height:"20px",width:"20px"},iconXS:{fontSize:"20px"},rootS:{height:"24px",width:"24px"},iconS:{fontSize:"24px"},rootM:{height:"30px",width:"30px"},rootMPlus:{height:"36px",width:"36px"},rootL:{height:"40px",width:"40px"},rootXL:{height:"48px",width:"48px"},disabled:{fillOpacity:.5}});function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Td.apply(null,arguments)}function Nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Id(e,t,n[t])}))}return e}function Id(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ld=(0,r.forwardRef)(((e,t)=>{const{className:n,onClick:r,icon:i,size:a=Md.XS,iconClassName:l,classes:s={}}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","onClick","icon","size","iconClassName","classes"]),u=Rd();return o().createElement(Pd(),Td({ref:t,classes:Nd({root:`${u[`root${a}`]} ${u.rootAll}`,disabled:u.disabled},s),onClick:r,className:n},c,{size:"large"}),i&&o().createElement(i,{classes:{root:u[`icon${a}`]},className:l}))}));Ld.displayName="SmallIconButton";const Dd=Sd(Ld),Fd=qn({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),jd=Sd(bd()),zd=({className:e,total:t=0,onPrev:n,onNext:i,onSearchResultsClick:a,isPrevDisabled:l,isNextDisabled:c})=>{var d;const h=Fd(),m=(0,r.useContext)(_d),{OPEN_RESULTS:v,SEARCH_RESULT:g,SEARCH_RESULTS:y,NEXT_PROFILE:b,PREVIOUS_PROFILE:x}=(0,p.mergeRight)({OPEN_RESULTS:u().text("Go to search results"),SEARCH_RESULT:u().text("Search result"),SEARCH_RESULTS:u().text("Search results"),PREVIOUS_PROFILE:u().text("Go to previous profile"),NEXT_PROFILE:u().text("Go to next profile")},null!==(d=null==m?void 0:m.profileBand)&&void 0!==d?d:{});return o().createElement("div",{className:f()(h.container,e)},o().createElement(jd,{className:h.link,component:"button",variant:"caption",onClick:a,underline:"none",tooltipTitle:v},(0,s.formatNumberAsMetric)(t,1e6)," ",1===t?g:y),o().createElement(Dd,{size:"L",icon:Ed(),"data-reltio-id":"reltio-previous-profile-button",tooltipTitle:x,onClick:n,disabled:l,showForDisabled:!0}),o().createElement(Dd,{size:"L",icon:wd(),"data-reltio-id":"reltio-next-profile-button",tooltipTitle:b,onClick:i,disabled:c,showForDisabled:!0}))},Bd=(0,r.createContext)(null);Bd.displayName="ActionsHookContext";const Hd=o().createContext({isLoading:!1,isEmptyState:!1,updateEntityLoadingState:p.identity,updateEntitiesNavigationLoadingState:p.identity,resetLoadingState:p.identity}),Vd=new Promise((()=>{})),Ud=({cancelPrevious:e=!0,cancelOnUnmount:t=!0}={})=>{const n=(0,r.useRef)(p.identity),o=()=>n.current();return(0,r.useEffect)((()=>()=>{t&&o()}),[]),(0,r.useCallback)((t=>(e&&o(),new Promise(((e,r)=>{n.current=()=>r("canceled"),t.then(e,r)})).catch((function(e){if("canceled"===e)return Vd;throw e})))),[])};function Kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Zd(e,t,n[t])}))}return e}function Zd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class qd{constructor({data:{query:e,sortField:t,sortOrder:n},tenant:r,searchTenant:o,apiPath:i,dtssPath:a,globalSearchRequestOptions:l}){this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=(e=[],t={})=>{const n=[this.getQueryFilter(),...e],r=Kd({},this.globalSearchRequestOptions,{sort:this.sortField,order:this.sortOrder,select:"uri,label,type",scoreEnabled:!1},t);return this.isDT()?(0,s.getFilteredEntitiesFromDataTenant)({filters:n,options:r,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,s.getFilteredEntities)({filters:n,options:r})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,s.getTotalFromDataTenant)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,s.getTotals)({filters:e,options:t})).then((e=>e.total))},this.query=e,this.sortField=t,this.sortOrder=n,this.tenant=r,this.searchTenant=o,this.apiPath=i,this.dtssPath=a,this.globalSearchRequestOptions=l}}class Wd{constructor({data:e,tenant:t,apiPath:n}){this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=(e=[],t={})=>{const n=[{rawFilter:this.searchBody.filter},...e];return(0,s.getGraphSearchEntities)({apiPath:this.apiPath,tenant:this.tenant,searchBody:Kd({},this.searchBody,{filter:e.length?(0,s.buildFilterQueryString)()(n):this.searchBody.filter}),options:t})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,s.getEntityId)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,s.getGraphSearchCount)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=e,this.tenant=t,this.apiPath=n}}const $d=(e,t)=>(0,p.pipe)((0,p.map)((0,p.prop)("uri")),(0,p.reject)((e=>t.includes(e))))(e),Gd=()=>{const e=Ud(),t=Ud(),n=Ud(),o=(w="searchNavigationListener",g(E,(e=>e[w]))),i=M("updateSearchNavigationDataFields"),a=M("openEntity"),l=M("openPerspective"),{uri:c,index:u,total:d,tenant:f,cache:p}=P()||{},{type:h,data:m}=C((e=>e.searchProviderData))||{},v=A(),y=C((e=>e.apiPath)),b=C((e=>e.dtssPath)),x=(_=["ovOnly"],C((e=>(0,s.getGlobalSearchRequestOptions)({activityFilter:e.activityFilter,globalFilter:e.globalFilter,searchOptions:e.searchOptions},_))));var w,_;const{updateEntitiesNavigationLoadingState:k}=(0,r.useContext)(Hd),[O,S]=(0,r.useState)(!1),R=(0,r.useMemo)((()=>((e,t)=>{switch(e){case"search":return new qd(t);case"graphsearch":return new Wd(t)}})(h,{data:m,tenant:v,searchTenant:f,apiPath:y,dtssPath:b,globalSearchRequestOptions:x})),[h,m,v,f,y,b,x]),T=(0,r.useCallback)((e=>{i(e)}),[i]),N=(0,r.useCallback)((e=>{const t=v!==f?(0,s.getEntityUriForLink)({uri:e,dataTenant:f}):e;a({uri:t,source:"navigation"})}),[a,v,f]),I=(0,r.useCallback)((()=>{l(h)}),[l,h]);(0,r.useEffect)((()=>{0!==d&&u>=d?T({index:d-1}):u<0&&T({index:0})}),[d,u,T]);const L=(()=>{const e=(0,r.useContext)(Bd);if(!e)throw new Error("ActionsHookContext must be provided");return e})();(0,r.useEffect)((()=>{const e=L(o);return()=>e()}),[L,T,o]);const D=(0,r.useCallback)(((e,r,o)=>{S(!0),t(R.requestTotal()).then((e=>T({total:e}))).catch((e=>{console.warn("Failed to load total count of entities",e)}));const i=o+1;return n(R.requestEntities(15,i)).then((t=>{if(t){if(t.length){const n=$d(t,e);if(n.length>0)return T({cache:e.concat(n),uri:n[0],index:i+t.length-n.length}),void N(n[0]);if(o+t.length<r-1)return D(e,r-t.length,o+t.length)}T({index:i})}})).finally((()=>{S(!1)}))}),[R,T,N]),F=(0,r.useCallback)(((e,r)=>{S(!0),t(R.requestTotal()).then((e=>T({total:e}))).catch((e=>{console.warn("Failed to load total count of entities",e)}));const o=r-1,i=Math.max(0,r-15),a=15+Math.min(0,r-15);return n(R.requestEntities(a,i)).then((t=>{if(t){if(t.length){const n=$d(t,e);if(n.length>0)return T({cache:n.concat(e),uri:n[n.length-1],index:o-(t.length-n.length)}),void N(n[n.length-1]);if(r-t.length>0)return F(e,r-t.length)}T({index:0})}})).finally((()=>{S(!1)}))}),[R,T,N]),j=(0,r.useCallback)(((t,n,r,o)=>{if(n<t.length){const i=t[n];return S(!0),e(R.checkEntity(i)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),j(e,n,r-1,o)}T({index:o+1,uri:i,cache:t,total:r}),N(i)})).finally((()=>{S(!1)}))}return o>=r-1?(T({cache:t,total:r,index:r-1}),Promise.resolve()):D(t,r,o)}),[R,T,N,D]),z=(0,r.useCallback)(((t,n,r,o)=>{if(n>-1){const i=t[n];return S(!0),e(R.checkEntity(i)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),z(e,n-1,r-1,o-1)}T({index:o-1,uri:i,cache:t,total:r}),N(i)})).finally((()=>{S(!1)}))}return o<=0?(T({index:0,cache:t,total:r}),Promise.resolve()):F(t,o)}),[R,T,N,F]),B=(0,r.useCallback)((()=>{if(p&&c){const e=p.indexOf(c)-1;z(p,e,d,u).catch((e=>{console.warn("Can't load previous page of search",e)}))}}),[z,p,c,d,u]),H=(0,r.useCallback)((()=>{if(p&&c){const e=p.indexOf(c)+1;j(p,e,d,u).catch((e=>{console.warn("Can't load next page of search",e)}))}}),[j,p,c,d,u]);return(0,r.useEffect)((()=>{k(O)}),[k,O]),(0,r.useEffect)((()=>()=>k(!1)),[]),{total:d,onPrev:B,onNext:H,onSearchResultsClick:I,isPrevDisabled:O||u<=0,isNextDisabled:O||u>=d-1}},Yd=({className:e})=>{const{total:t,onPrev:n,onNext:r,onSearchResultsClick:i,isPrevDisabled:a,isNextDisabled:l}=Gd();return(()=>{const{cache:e}=P()||{},t=C((e=>e.mode)),n=_();return(0,s.isViewMode)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?o().createElement(zd,{className:e,total:t,onPrev:n,onNext:r,onSearchResultsClick:i,isPrevDisabled:a,isNextDisabled:l}):null},Xd=(e,t)=>{const n=(0,r.useRef)(!1);(0,r.useEffect)((()=>{n.current?e():n.current=!0}),t)},Qd=o().createContext([]);function Jd(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}Qd.displayName="RelatedObjectUrisContext";const ef=function(e,t){var n;void 0===t&&(t=Jd);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(((e,t)=>(0,s.getAllUsersForTenant)({tenant:e,servicesPath:t}))),tf=o().createContext([]);tf.displayName="UsersContext";const nf={comments:[],commentsMap:null,currentComment:null,updateCommentState:p.identity,clearCommentState:p.identity,getCommentState:()=>({}),getComment:p.identity,getComments:()=>new Promise(p.identity),getCommentsCount:p.identity,createComment:()=>new Promise(p.identity),editComment:()=>new Promise(p.identity),createReply:()=>new Promise(p.identity),resolveThread:p.identity,reOpenThread:p.identity,clearCurrentComment:p.identity,deleteComment:p.identity,sending:!1,loading:!1,pageToken:null,deleteReply:p.identity,editReply:()=>new Promise(p.identity),totalCommentsCount:null},rf=o().createContext(nf);rf.displayName="CollaborationContext";const of=({collaboration:e,children:t})=>{const n=(()=>{const[e,t]=(0,r.useState)([]),n=A(),o=C((e=>e.servicesPath)),i=e=>{console.warn("Users error",e),t([])};return(0,r.useEffect)((()=>{ef(n,o).then((e=>t(e))).catch(i)}),[n,o]),e})();return o().createElement(rf.Provider,{value:e},o().createElement(tf.Provider,{value:n},t))};function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},af.apply(null,arguments)}const lf=e=>o().createElement("svg",af({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgCommentBubble"},e),o().createElement("path",{d:"M2.8 1h14.4c.99 0 1.8.81 1.8 1.8v10.8c0 .99-.81 1.8-1.8 1.8H4.6L1 19V2.8C1 1.81 1.81 1 2.8 1z"})),sf=qn((()=>({root:{position:"relative",height:"18px",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"4px",cursor:"pointer"},icon:{"&:hover":{fillOpacity:.7}}})));function cf(){return cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cf.apply(null,arguments)}const uf=o().forwardRef(((e,t)=>{let{children:n,tooltipTitle:r,icon:i,onClick:a,className:l}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","tooltipTitle","icon","onClick","className"]);const c=sf();return o().createElement(qu(),{title:r},o().createElement("div",cf({ref:t,className:f()(c.root,l),onClick:a},s),o().createElement(i,{className:c.icon}),n))}));uf.displayName="BasicCommentButton";const df=qn({childrenWrapper:{position:"absolute",width:"100%",height:"100%",lineHeight:"15px",display:"flex",alignItems:"center",justifyContent:"center",top:"-2px",left:0,right:0,bottom:0,color:"white",fontSize:"10px",pointerEvents:"none"}}),ff=o().forwardRef((({children:e,onClick:t},n)=>{const r=df();return o().createElement(uf,{ref:n,tooltipTitle:u().text("Show comment"),icon:lf,onClick:t,"data-reltio-id":"reltio-comment-button"},o().createElement("div",{className:r.childrenWrapper},e))}));function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pf.apply(null,arguments)}ff.displayName="CommentButton";const hf=e=>o().createElement("svg",pf({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgAddComment"},e),o().createElement("path",{d:"M2.8 14.653L3.853 13.6H17.2V2.8H2.8v11.853zM17.2 1c.99 0 1.8.81 1.8 1.8v10.8c0 .99-.81 1.8-1.8 1.8H4.6L1 19V2.8C1 1.81 1.81 1 2.8 1h14.4zm-6.3 3.6H9.1v2.699L6.4 7.3v1.8l2.7-.001V11.8h1.8V9.099l2.7.001V7.3l-2.7-.001V4.6z"})),mf=({className:e,onClick:t})=>o().createElement(uf,{className:e,onClick:t,tooltipTitle:u().text("Add comment"),icon:hf});var vf=n(1574),gf=n.n(vf),yf=n(9272),bf=n.n(yf),xf=n(4436),Ef=n.n(xf),Cf=n(4511),wf=n.n(Cf),_f=n(5788),kf=n.n(_f);const Of=({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:o,rafIdRef:i,lastResizeTimestamp:a=0})=>{if(e){if(Date.now()-a>100&&r.current&&t.current&&n.current&&o.current){const i=e.getBoundingClientRect();r.current.style.top="0",r.current.style.left="0",r.current.style.right="0",r.current.style.height=i.top+"px",t.current.style.top="0",t.current.style.left="0",t.current.style.width=i.left+"px",t.current.style.bottom="0",n.current.style.top="0",n.current.style.left=i.right+"px",n.current.style.right="0",n.current.style.bottom="0",o.current.style.top=i.bottom+"px",o.current.style.left="0",o.current.style.right="0",o.current.style.bottom="0",a=Date.now()}i.current=requestAnimationFrame((()=>Of({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:o,rafIdRef:i,lastResizeTimestamp:a})))}},Sf=qn({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}});function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Af.apply(null,arguments)}const Pf=(0,r.forwardRef)(((e,t)=>{var n;let{open:i,anchorEl:a,className:l,modal:s=!0,excludeAnchorFromBackdrop:c=!0,onClose:u=p.identity}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["open","anchorEl","className","modal","excludeAnchorFromBackdrop","onClose"]);const h=Sf(),v=(0,r.useRef)(),g=(0,r.useRef)(),y=(0,r.useRef)(),b=(0,r.useRef)(),x=(0,r.useRef)(),E=tt();return(0,r.useEffect)((()=>{if(i&&s)return Of({anchorEl:a,leftBackdropRef:v,rightBackdropRef:g,topBackdropRef:y,bottomBackdropRef:b,rafIdRef:x}),()=>cancelAnimationFrame(x.current)}),[a,i,s]),o().createElement(o().Fragment,null,s&&i&&o().createElement(m(),{container:document.body},c?o().createElement(o().Fragment,null,o().createElement("div",{ref:y,className:h.backdrop,onClick:u}),o().createElement("div",{ref:g,className:h.backdrop,onClick:u}),o().createElement("div",{ref:b,className:h.backdrop,onClick:u}),o().createElement("div",{ref:v,className:h.backdrop,onClick:u})):o().createElement("div",{className:h.backdrop,onClick:u})),o().createElement(kf(),Af({"data-mui-color-scheme":null==E||null===(n=E.palette)||void 0===n?void 0:n.mode,open:i,anchorEl:a},d,{className:f()(l,h.popper),ref:t})))}));Pf.displayName="Popper";const Mf=qn((e=>{const t=e.palette.background.paper;return{paper:{backgroundColor:t,maxWidth:1e3},popper:{'&[data-popper-placement*="bottom"] $arrow':{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},'&[data-popper-placement*="top"] $arrow':{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},'&[data-popper-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},'&[data-popper-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t,"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",boxShadow:e.shadows[1],backgroundColor:"currentColor",transform:"rotate(45deg)"}}}}));function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rf.apply(null,arguments)}const Tf=e=>{let{children:t,className:n,classes:i,transition:a}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className","classes","transition"]);const s=Mf(),c=a?wf():o().Fragment,[u,d]=(0,r.useState)(null);return o().createElement(Pf,Rf({className:f()(s.popper,n),modifiers:[{name:"preventOverflow",enabled:!0,options:{rootBoundary:"viewport",padding:14,altAxis:!0}},{name:"arrow",enabled:!0,options:{element:u,padding:4}}],transition:a,excludeAnchorFromBackdrop:!1},l),(({TransitionProps:e})=>o().createElement(c,e,o().createElement(Ef(),{className:f()(s.paper,null==i?void 0:i.root)},o().createElement("span",{className:f()(s.arrow,null==i?void 0:i.arrow),ref:d}),t))))};var Nf=n(8515),If=n.n(Nf),Lf=n(5206),Df=n.n(Lf),Ff=n(3526),jf=n.n(Ff),zf=n(2811),Bf=n.n(zf),Hf=n(3222),Vf=n.n(Hf);const Uf=qn((e=>({menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),Kf=Sd(Vf()),Zf=(0,r.forwardRef)((({item:e,onMenuClose:t=p.identity},n)=>{const r=Uf(),{disabled:i,text:a,tooltip:l,onClick:s,id:c="",selectable:u,selected:d}=e;return o().createElement(Kf,{tooltipTitle:l,showForDisabled:!0,classes:{root:r.menuItem},onClick:e=>{t(e),s(e)},disabled:i,ref:n,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${c}`},u&&o().createElement(Bf(),{checked:d,color:"primary"}),o().createElement(Ku(),{classes:{root:r.menuText}},a))}));Zf.displayName="DefaultMenuItemRenderer";const qf=qn((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,fr.alpha)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,fr.alpha)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"}})));function Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wf.apply(null,arguments)}function $f({className:e,menuId:t,buttonComponent:n=Df(),buttonContent:i,menuItems:a=[],buttonProps:l={},popoverProps:s={},onMenuOpen:c=p.identity,onMenuClose:u=p.identity,MenuItemRenderer:d=Zf}){const h=n,m=qf(),v=(0,r.useRef)(),[g,y]=(0,r.useState)(!1);Xd((()=>{g?c():u()}),[g]);const b=(0,r.useCallback)((e=>{null==e||e.stopPropagation(),y((e=>!e))}),[]);return o().createElement(o().Fragment,null,o().createElement(h,Wf({"data-reltio-id":"drop-down-menu-button",ref:v,className:f()(m.buttonRoot,{[m.selected]:g},e),onClick:b,"aria-pressed":g,"aria-controls":g?t:void 0,"aria-haspopup":"true"},l),i),o().createElement(jf(),Wf({id:t,variant:"menu",open:g,autoFocus:!1,classes:{paper:m.paper},anchorEl:v.current,onClose:b,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,MenuListProps:{autoFocusItem:g}},s),a.map(((e,t)=>o().createElement(d,{item:e,key:t,onMenuClose:b})))))}const Gf=(e,t)=>{(0,r.useEffect)((()=>{if(t){var n,r,o,i;const t=null===(n=e.current)||void 0===n||null===(r=n.value)||void 0===r?void 0:r.length;null===(o=e.current)||void 0===o||o.focus(),null===(i=e.current)||void 0===i||i.setSelectionRange(t,t)}}),[e,t])},Yf=(e,t)=>{const n=e.relatedObjectUris.indexOf(t);if(n>=0)return e.relatedObjectUris[1-n]},Xf=e=>`${u().date(e,"LT")} ${u().date(e,"LL")}`,Qf=e=>`comment/${e.commentId}`,Jf=(e,t)=>`comment/${e.commentId}/reply/${t.replyId}`,ep=(e,t)=>{let n=e;for(const e of t)n=n.split(`+${e}`).join(`@[${e}](${e})`);return n},tp=o().createContext({});tp.displayName="EntitiesMapContext";const np=o().createContext({generateEntityUrl:s.generateEntityUrlForOldMode,generatePivotingUrl:s.generatePivotingUrlForOldMode,generateTagUrl:s.generateTagUrlForOldMode,generateSegmentUrl:s.generateSegmentUrl});np.displayName="UrlGeneratorsContext";const rp=e=>e.ctrlKey||e.metaKey;function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},op.apply(null,arguments)}const ip=(0,r.forwardRef)(((e,t)=>{let{value:n,children:i,screen:a,className:l,shouldOpenInNewTab:s=!1}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","children","screen","className","shouldOpenInNewTab"]);const{generateEntityUrl:u}=(0,r.useContext)(np),d=w(),f=M("openEntity"),p=(0,r.useCallback)((e=>{rp(e)||(f({uri:n,screen:a}),e.preventDefault()),e.stopPropagation()}),[f,a,n]);return n?o().createElement("a",op({ref:t,href:u({uiPath:d,uri:n,screen:a}),onClick:s?void 0:p,target:s?"_blank":"_self",rel:"noreferrer",className:l},c),i):o().createElement("span",op({className:l},c),i)}));ip.displayName="EntityUriLink";const ap=qn((e=>({title:{marginBottom:"10px",color:e.palette.divider,fontSize:"12px",lineHeight:"14px"},label:{paddingLeft:"9px",borderLeft:"1px solid #D8D8D8",fontSize:"13px",color:e.palette.text.primary,lineHeight:"15px"},link:{color:e.palette.primary.main,textDecoration:"none",whiteSpace:"break-spaces"}})));function lp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sp=({comment:e,className:t})=>{const n=ap(),i=(0,r.useContext)(tp),a=O(),l=_();return o().createElement(gf(),{className:t},(()=>{switch(e.objectType){case s.CollaborationObjectTypes.ENTITY_ATTRIBUTE:{const t=(0,s.getAttributeTypeUriByValueUri)(e.objectId,l.type),r=(0,s.findAttributeTypeByUri)(a,t);return o().createElement(o().Fragment,null,o().createElement(Ku(),{className:n.title},u().text("Selected attribute:")),o().createElement(Ku(),{className:n.label},null==r?void 0:r.label))}case s.CollaborationObjectTypes.RELATION_ATTRIBUTE:{const t=e.relatedObjectUris.find((0,p.startsWith)("configuration/relationTypes")),r=t&&(0,s.getAttributeTypeUriByValueUri)(e.objectId,t),i=r&&(0,s.findAttributeTypeByUri)(a,r);return o().createElement(o().Fragment,null,o().createElement(Ku(),{className:n.title},u().text("Selected attribute:")),o().createElement(Ku(),{className:n.label},null==i?void 0:i.label))}case s.CollaborationObjectTypes.ENTITY:return o().createElement(o().Fragment,null,o().createElement(Ku(),{className:n.title},u().text("Selected profile:")),o().createElement(ip,{className:f()(n.label,n.link),value:(0,s.getEntityUriForLink)(l)},(0,s.getLabel)(l.label)));case s.CollaborationObjectTypes.RELATION:{const t=Yf(e,l.uri),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){lp(e,t,n[t])}))}return e}({},i[t]||{},{uri:t});return o().createElement(o().Fragment,null,o().createElement(Ku(),{className:n.title},u().text("Selected relation:")),o().createElement(Ku(),{className:n.label},o().createElement(ip,{className:n.link,value:(0,s.getEntityUriForLink)(l)},(0,s.getLabel)(l.label)),t&&o().createElement(o().Fragment,null,` ${u().text("to")} `,o().createElement(ip,{className:n.link,value:(0,s.getEntityUriForLink)(r)},r.label?(0,s.getLabel)(r.label):(0,s.getEntityId)(r)))))}case s.CollaborationObjectTypes.POTENTIAL_MATCH:{var t;const r=Yf(e,l.uri),a={uri:r,label:null===(t=i[r])||void 0===t?void 0:t.label};return o().createElement(o().Fragment,null,o().createElement(Ku(),{className:n.title},u().text("Selected potential match:")),o().createElement(Ku(),{className:n.label},o().createElement(ip,{className:n.link,value:(0,s.getEntityUriForLink)(l)},(0,s.getLabel)(l.label)),r&&o().createElement(o().Fragment,null,` ${u().text("and")} `,o().createElement(ip,{className:n.link,value:(0,s.getEntityUriForLink)(a)},a.label?(0,s.getLabel)(a.label):(0,s.getEntityId)(a)))))}default:return null}})())},cp=qn((e=>({root:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",wordBreak:"break-word"}}))),up=({comment:e,className:t})=>{const n=cp(),i=(0,r.useContext)(tf);return o().createElement(Ku(),{className:f()(n.root,t)},((e,t,n=e=>e,r="+")=>{const o=[];let i="",a=!1;for(let l=0;l<=e.length;l++){const s=e[l],c=e[l+1],u=l===e.length-1;i+=s,s===r&&0===l&&(a=!0),a&&t.includes(i.slice(r.length))&&(a=!1,o.push(n(i)),i=""),c===r&&(a=!0,o.push(i),i=""),u&&o.push(i)}return o})(e.content,e.namedUsers,(e=>{const t=i.find((t=>t.username===e.slice(1)));return t?o().createElement(bd(),{href:`mailto:${t.email}`,underline:"hover"},e):e})).map(((e,t)=>o().createElement(r.Fragment,{key:t},e))))},dp=qn((e=>({root:{width:"32px",height:"32px",fontSize:"12px",color:e.palette.text.secondary,backgroundColor:"rgba(144, 164, 174, 0.2)"}})));function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fp.apply(null,arguments)}const pp=e=>{let{className:t,children:n}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","children"]);const i=dp();return o().createElement($u(),fp({},r,{className:f()(i.root,t)}),n.split(".").map((e=>e[0].toUpperCase())).join(""))};var hp=n(7677),mp=n.n(hp),vp=function(e){return e===Object(e)?Object.keys(e):[]},gp=function(e){return e===Object(e)?Object.values(e):[]};function yp(e,t){var n=Object.assign({},e);return Ep(e)&&Ep(t)&&vp(t).forEach((function(r){Ep(t[r])&&r in e?n[r]=yp(e[r],t[r]):Object.assign(n,Xa({},r,t[r]))})),n}var bp=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return yp(e,t)}),e)},xp=function(e,t){var n=Object.assign({},e);if(t)for(var r=0;r<t.length;r++)delete n[t[r]];return n},Ep=function(e){return!(e!==Object(e)||e instanceof Date||Array.isArray(e))},Cp=function(e){return"&"===e[0]},wp=function(e){return!Cp(e)},_p=function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},kp=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=vp(e),r={},o=0,i=n.length;o<i;o+=1){var a=n[o];("[object Object]"!==Object.prototype.toString.call(e[a])||":"===a[0]||"@"===a[0]||t.indexOf(a)>=0)&&(r[a]=e[a])}return r},Op=function(e,t){for(var n=t.map(_p),r=vp(e),o={},i=0,a=r.length;i<a;i+=1){var l=r[i];(t.indexOf(l)>=0||n.indexOf(_p(l))>=0)&&(o[l]=e[l])}return o},Sp=function e(t,n){for(var r=bp.apply(void 0,[{},xp(t,n)].concat(Rt(gp(Op(t,n))))),o=vp(r).filter(Cp),i=0,a=o.length;i<a;i+=1){var l=o[i],s=e(r[l],n);n.indexOf(l)>=0?(delete r[l],r=bp({},r,s)):r[l]=s}return r};function Ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach((function(t){Xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mp=["animationName"];const Rp=function(e){var t=e.style,n=e.className;return Pp(Pp({},t?{style:kp(t,Mp)}:{}),n?{className:n}:{})};var Tp=(0,r.createContext)(Rp);Tp.Provider;const Np=function(e){if(!e)return[];if("string"==typeof e)return[e];if(!Array.isArray(e)){var t=e;return vp(e).reduce((function(e,n){return e.concat(t[n]?[n]:[])}),[])}return e};var Ip={};function Lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lp(Object(n),!0).forEach((function(t){Xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Fp=function e(t){var n=t.style,r=t.className,o=t.classNames,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rp,a=r||function(e){var t=e&&vp(e)[0];return t&&t.split("__")[0].split("--")[0]}(o)||(null==n?void 0:n.className),l="function"==typeof n?n:function(e){return function(t,n){var r,o=n||Ip;e.memoize=e.memoize||new WeakMap,e.memoize.has(o)?r=e.memoize.get(o):(r={},e.memoize.set(o,r));var i=Np(t).join(" ");return i in r?r[i]:r[i]=e(t||[],n)}}((function(t,r){var l=Np(t);mp()(Array.isArray(l),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),mp()(!r||Ep(r),"Optional second parameter must be a plain object.");var s=l.filter(Cp),c=l.filter(wp),u=c.length>0?function(e){return gp(Op(e,c))}:function(e){return[e]},d=function(){return u(Sp(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s))},f=function(e,t,n){if(e){var r=e.split(" ")[0],o=[].concat(Rt(0===t.length?n.map((function(e){return"".concat(r,"--").concat(e.substring(1))})):[]),Rt(t.map((function(e){return"".concat(r,"__").concat(e)}))));return 0===t.length?[e].concat(Rt(o)):o}}(a,c,s);return e(Dp(Dp(Dp({},(n||r)&&{style:bp.apply(void 0,[{}].concat(Rt(d(r)),Rt(d(n))))}),f&&{className:f.join(" ")}),o&&{classNames:o}),i)})),s=Dp({},"function"==typeof n?n:{style:n}),c=Rt(new Set([].concat(Rt(s.className?s.className.split(" "):[]),Rt(a?a.split(" "):[])))),u=o?(c.map((function(e){return o[e]}))||[]).filter(Boolean):c,d=i(Dp(Dp({},s),u.length>0?{className:u.join(" ")}:{}));return Object.assign(l,d),l},jp=function(e,t,n){var o=t.style,i=t.className,a=t.classNames,l=(0,r.useContext)(Tp);return(0,r.useMemo)((function(){return Fp({style:o,className:i,classNames:a},l)}),[o,i,a,l])(n,e)};function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(n),!0).forEach((function(t){Xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hp=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},Vp="__id__",Up="__display__",Kp=function(e,t){mp()("id"===t||"display"===t,'Second arg must be either "id" or "display", got: "'.concat(t,'"'));var n=e.indexOf(Up),r=e.indexOf(Vp);return n<0&&(n=null),r<0&&(r=null),mp()(null!==n||null!==r,"The markup '".concat(e,"' does not contain either of the placeholders '__id__' or '__display__'")),null!==n&&null!==r?"id"===t&&r<=n||"display"===t&&n<=r?0:1:0},Zp=function(e){var t=0;return e.indexOf("__id__")>=0&&t++,e.indexOf("__display__")>=0&&t++,t},qp=function(){},Wp=function(e,t,n){for(var r,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qp,l=(r=t.map((function(e){return e.regex})),o=/^\/(.+)\/(\w+)?$/,new RegExp(r.map((function(e){var t=Cl(o.exec(e.toString()),3),n=t[1],r=t[2];return mp()(!r,"RegExp flags are not supported. Change /".concat(n,"/").concat(r," into /").concat(n,"/")),"(".concat(n,")")})).join("|"),"g")),s=2,c=t.map((function(e){var t=e.markup,n=s;return s+=Zp(t)+1,n})),u=0,d=0;null!==(i=l.exec(e));){var f=c.find((function(e){return!!i[e]})),p=c.indexOf(f),h=t[p],m=h.markup,v=h.displayTransform,g=f+Kp(m,"id"),y=f+Kp(m,"display"),b=i[g],x=v(b,i[y]),E=e.substring(u,i.index);a(E,u,d),d+=E.length,n(i[0],i.index,d,b,x,p,u),d+=x.length,u=l.lastIndex}u<e.length&&a(e.substring(u),u,d)},$p=function(e,t){var n="";return Wp(e,t,(function(e,t,r,o,i){n+=i}),(function(e){n+=e})),n},Gp=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";return"number"!=typeof n?n:(Wp(e,t,(function(e,t,i,a,l,s,c){void 0===r&&i+l.length>n&&(r="NULL"===o?null:t+("END"===o?e.length:0))}),(function(e,t,o){void 0===r&&o+e.length>=n&&(r=t+n-o)})),void 0===r?e.length:r)},Yp=function(e,t,n,r){return e.substring(0,t)+r+e.substring(n)},Xp=function(e,t){var n=[];return Wp(e,t,(function(e,t,r,o,i,a,l){n.push({id:o,display:i,childIndex:a,index:t,plainTextIndex:r})})),n},Qp=function(e,t){return"".concat(e,"-").concat(t)},Jp=function(e){return Object.values(e).reduce((function(e,t){return e+t.results.length}),0)},eh=function(e){var t=Hp(e),n=e[e.indexOf(Up)+11],r=e[e.indexOf(Vp)+6];return new RegExp(t.replace(Up,"([^".concat(Hp(n||""),"]+?)")).replace(Vp,"([^".concat(Hp(r||""),"]+?)")))},th=function(e){return r.Children.toArray(e).map((function(e){var t=e.props,n=t.markup,r=t.regex,o=t.displayTransform;return{markup:n,regex:r?nh(r,n):eh(n),displayTransform:o||function(e,t){return t||e}}}))},nh=function(e,t){var n=new RegExp(e.toString()+"|").exec("").length-1,r=Zp(t);return mp()(n===r,"Number of capturing groups in RegExp ".concat(e.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(t,"' (").concat(r,")")),e},rh=[{base:"A",letters:/(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(&#42802;|[\uA732])/g},{base:"AE",letters:/(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(&#42804;|[\uA734])/g},{base:"AU",letters:/(&#42806;|[\uA736])/g},{base:"AV",letters:/(&#42808;|&#42810;|[\uA738\uA73A])/g},{base:"AY",letters:/(&#42812;|[\uA73C])/g},{base:"B",letters:/(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(&#497;|&#452;|[\u01F1\u01C4])/g},{base:"Dz",letters:/(&#498;|&#453;|[\u01F2\u01C5])/g},{base:"E",letters:/(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(&#455;|[\u01C7])/g},{base:"Lj",letters:/(&#456;|[\u01C8])/g},{base:"M",letters:/(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(&#458;|[\u01CA])/g},{base:"Nj",letters:/(&#459;|[\u01CB])/g},{base:"O",letters:/(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(&#338;|[\u0152])/g},{base:"OI",letters:/(&#418;|[\u01A2])/g},{base:"OO",letters:/(&#42830;|[\uA74E])/g},{base:"OU",letters:/(&#546;|[\u0222])/g},{base:"P",letters:/(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(&#222;|[\u00DE])/g},{base:"TZ",letters:/(&#42792;|[\uA728])/g},{base:"U",letters:/(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(&#42848;|[\uA760])/g},{base:"W",letters:/(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(&#42803;|[\uA733])/g},{base:"ae",letters:/(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(&#42805;|[\uA735])/g},{base:"au",letters:/(&#42807;|[\uA737])/g},{base:"av",letters:/(&#42809;|&#42811;|[\uA739\uA73B])/g},{base:"ay",letters:/(&#42813;|[\uA73D])/g},{base:"b",letters:/(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(&#499;|&#454;|[\u01F3\u01C6])/g},{base:"e",letters:/(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(&#405;|[\u0195])/g},{base:"i",letters:/(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(&#307;|[\u0133])/g},{base:"j",letters:/(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(&#457;|[\u01C9])/g},{base:"m",letters:/(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(&#460;|[\u01CC])/g},{base:"o",letters:/(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(&#339;|[\u0153])/g},{base:"oi",letters:/(&#419;|[\u01A3])/g},{base:"ou",letters:/(&#547;|[\u0223])/g},{base:"oo",letters:/(&#42831;|[\uA74F])/g},{base:"p",letters:/(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(&#223;|[\u00DF])/g},{base:"t",letters:/(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(&#254;|[\u00FE])/g},{base:"tz",letters:/(&#42793;|[\uA729])/g},{base:"u",letters:/(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(&#42849;|[\uA761])/g},{base:"w",letters:/(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],oh=function(e){return function(e){var t=e;return rh.forEach((function(e){t=t.replace(e.letters,e.base)})),t}(e).toLowerCase()},ih=function(e,t,n){return n?oh(e).indexOf(oh(t)):e.toLowerCase().indexOf(t.toLowerCase())},ah=function(e){return"number"==typeof e},lh=function(e){return e===Object(e)?Object.keys(e):[]},sh=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=(t=[]).concat.apply(t,r);return Object.keys(e).reduce((function(t,n){return e.hasOwnProperty(n)&&!i.includes(n)&&void 0!==e[n]&&(t[n]=e[n]),t}),{})};function ch(e,t){return function(n){var r=function(r){var i=r.style,a=r.className,l=r.classNames,s=wl(r,["style","className","classNames"]),c=t?t(s):void 0,u=jp(e,{style:i,className:a,classNames:l},c);return o().createElement(n,(0,T.Z)({},s,{style:u}))},i=n.displayName||n.name||"Component";return r.displayName="defaultStyle(".concat(i,")"),r}}var uh=function(e){function t(){var e;return el(this,t),e=il(this,rl(t).apply(this,arguments)),Xa((0,B.Z)(e),"setCaretElement",(function(t){e.caretElement=t})),e.state={left:void 0,top:void 0},e}return nl(t,e),j(t,[{key:"componentDidMount",value:function(){this.notifyCaretPosition()}},{key:"componentDidUpdate",value:function(){this.notifyCaretPosition()}},{key:"notifyCaretPosition",value:function(){if(this.caretElement){var e=this.caretElement,t=e.offsetLeft,n=e.offsetTop;if(this.state.left!==t||this.state.top!==n){var r={left:t,top:n};this.setState(r),this.props.onCaretPositionChange(r)}}}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.selectionStart,i=n.selectionEnd,a=n.value,l=n.style,s=n.children,c=n.containerRef,u=th(s);r===i&&(e=Gp(a,u,r,"START"));var d=[],f={},p=d,h=0;return Wp(a,u,(function(e,n,r,o,i,a,l){var s=function(e,t){return e.hasOwnProperty(t)?e[t]++:e[t]=0,t+"_"+e[t]}(f,o);p.push(t.getMentionComponentForMatch(o,i,a,s))}),(function(n,r,o){if(ah(e)&&e>=r&&e<=r+n.length){var i=e-r;p.push(t.renderSubstring(n.substring(0,i),h)),p=[t.renderSubstring(n.substring(i),h)]}else p.push(t.renderSubstring(n,h));h++})),p.push(" "),p!==d&&d.push(this.renderHighlighterCaret(p)),o().createElement("div",(0,T.Z)({},l,{ref:c}),d)}},{key:"renderSubstring",value:function(e,t){return o().createElement("span",(0,T.Z)({},this.props.style("substring"),{key:t}),e)}},{key:"getMentionComponentForMatch",value:function(e,t,n,i){var a={id:e,display:t,key:i},l=r.Children.toArray(this.props.children)[n];return o().cloneElement(l,a)}},{key:"renderHighlighterCaret",value:function(e){return o().createElement("span",(0,T.Z)({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),e)}}]),t}(r.Component);Xa(uh,"propTypes",{selectionStart:rt().number,selectionEnd:rt().number,value:rt().string.isRequired,onCaretPositionChange:rt().func.isRequired,containerRef:rt().oneOfType([rt().func,rt().shape({current:"undefined"==typeof Element?rt().any:rt().instanceOf(Element)})]),children:rt().oneOfType([rt().element,rt().arrayOf(rt().element)]).isRequired}),Xa(uh,"defaultProps",{value:""});var dh=ch({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},(function(e){return{"&singleLine":e.singleLine}}))(uh),fh=function(e){function t(){return el(this,t),il(this,rl(t).apply(this,arguments))}return nl(t,e),j(t,[{key:"render",value:function(){var e=sh(this.props,["style","classNames","className"],lh(t.propTypes));return o().createElement("li",(0,T.Z)({id:this.props.id,role:"option","aria-selected":this.props.focused},e,this.props.style),this.renderContent())}},{key:"renderContent",value:function(){var e=this.props,t=e.query,n=e.renderSuggestion,r=e.suggestion,o=e.index,i=e.focused,a=this.getDisplay(),l=this.renderHighlightedDisplay(a,t);return n?n(r,t,l,o,i):l}},{key:"getDisplay",value:function(){var e=this.props.suggestion;if("string"==typeof e)return e;var t=e.id,n=e.display;return void 0!==t&&n?n:t}},{key:"renderHighlightedDisplay",value:function(e){var t=this.props,n=t.ignoreAccents,r=t.query,i=t.style,a=ih(e,r,n);return-1===a?o().createElement("span",i("display"),e):o().createElement("span",i("display"),e.substring(0,a),o().createElement("b",i("highlight"),e.substring(a,a+r.length)),e.substring(a+r.length))}}]),t}(r.Component);Xa(fh,"propTypes",{id:rt().string.isRequired,query:rt().string.isRequired,index:rt().number.isRequired,ignoreAccents:rt().bool,suggestion:rt().oneOfType([rt().string,rt().shape({id:rt().oneOfType([rt().string,rt().number]).isRequired,display:rt().string})]).isRequired,renderSuggestion:rt().func,focused:rt().bool});var ph=ch({cursor:"pointer"},(function(e){return{"&focused":e.focused}}))(fh);function hh(){var e=jp(),t=e("spinner");return o().createElement("div",e,o().createElement("div",t,o().createElement("div",t(["element","element1"])),o().createElement("div",t(["element","element2"])),o().createElement("div",t(["element","element3"])),o().createElement("div",t(["element","element4"])),o().createElement("div",t(["element","element5"]))))}var mh=function(e){function t(){var e,n;el(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=il(this,(e=rl(t)).call.apply(e,[this].concat(o))),Xa((0,B.Z)(n),"handleMouseEnter",(function(e,t){n.props.onMouseEnter&&n.props.onMouseEnter(e)})),Xa((0,B.Z)(n),"select",(function(e,t){n.props.onSelect(e,t)})),Xa((0,B.Z)(n),"setUlElement",(function(e){n.ulElement=e})),n}return nl(t,e),j(t,[{key:"componentDidUpdate",value:function(){if(this.ulElement&&!(this.ulElement.offsetHeight>=this.ulElement.scrollHeight)&&this.props.scrollFocusedIntoView){var e=this.ulElement.scrollTop,t=this.ulElement.children[this.props.focusIndex].getBoundingClientRect(),n=t.top,r=t.bottom,o=this.ulElement.getBoundingClientRect().top;r=r-o+e,(n=n-o+e)<e?this.ulElement.scrollTop=n:r>this.ulElement.offsetHeight&&(this.ulElement.scrollTop=r-this.ulElement.offsetHeight)}}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.a11ySuggestionsListLabel,r=e.isOpened,i=e.style,a=e.onMouseDown,l=e.containerRef,s=e.position,c=e.left,u=e.top;return r?o().createElement("div",(0,T.Z)({},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return Bp(Bp(Bp({},e),"function"==typeof t?t:{}),{},{style:Bp(Bp({},e.style),"function"==typeof t?t.style:t)})}),{})}({position:s||"absolute",left:c,top:u},i),{onMouseDown:a,ref:l}),o().createElement("ul",(0,T.Z)({ref:this.setUlElement,id:t,role:"listbox","aria-label":n},i("list")),this.renderSuggestions()),this.renderLoadingIndicator()):null}},{key:"renderSuggestions",value:function(){var e=this;return Object.values(this.props.suggestions).reduce((function(t,n){var r=n.results,o=n.queryInfo;return[].concat(Rt(t),Rt(r.map((function(n,r){return e.renderSuggestion(n,o,t.length+r)}))))}),[])}},{key:"renderSuggestion",value:function(e,t,n){var i=this,a=n===this.props.focusIndex,l=t.childIndex,s=t.query,c=r.Children.toArray(this.props.children)[l].props.renderSuggestion,u=this.props.ignoreAccents;return o().createElement(ph,{style:this.props.style("item"),key:"".concat(l,"-").concat(vh(e)),id:Qp(this.props.id,n),query:s,index:n,ignoreAccents:u,renderSuggestion:c,suggestion:e,focused:a,onClick:function(){return i.select(e,t)},onMouseEnter:function(){return i.handleMouseEnter(n)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return o().createElement(hh,{style:this.props.style("loadingIndicator")})}}]),t}(r.Component);Xa(mh,"propTypes",{id:rt().string.isRequired,suggestions:rt().object.isRequired,a11ySuggestionsListLabel:rt().string,focusIndex:rt().number,position:rt().string,left:rt().number,top:rt().number,scrollFocusedIntoView:rt().bool,isLoading:rt().bool,isOpened:rt().bool.isRequired,onSelect:rt().func,ignoreAccents:rt().bool,containerRef:rt().oneOfType([rt().func,rt().shape({current:"undefined"==typeof Element?rt().any:rt().instanceOf(Element)})]),children:rt().oneOfType([rt().element,rt().arrayOf(rt().element)]).isRequired}),Xa(mh,"defaultProps",{suggestions:{},onSelect:function(){return null}});var vh=function(e){return"string"==typeof e?e:e.id},gh=ch({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(mh);function yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yh(n,!0).forEach((function(t){Xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yh(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xh={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},Eh=!1,Ch={singleLine:rt().bool,allowSpaceInQuery:rt().bool,allowSuggestionsAboveCursor:rt().bool,forceSuggestionsAboveCursor:rt().bool,ignoreAccents:rt().bool,a11ySuggestionsListLabel:rt().string,value:rt().string,onKeyDown:rt().func,onSelect:rt().func,onBlur:rt().func,onChange:rt().func,suggestionsPortalHost:"undefined"==typeof Element?rt().any:rt().PropTypes.instanceOf(Element),inputRef:rt().oneOfType([rt().func,rt().shape({current:"undefined"==typeof Element?rt().any:rt().instanceOf(Element)})]),children:rt().oneOfType([rt().element,rt().arrayOf(rt().element)]).isRequired},wh=function(e){function t(e){var n;return el(this,t),n=il(this,rl(t).call(this,e)),Xa((0,B.Z)(n),"setContainerElement",(function(e){n.containerElement=e})),Xa((0,B.Z)(n),"getInputProps",(function(){var e=n.props,t=e.readOnly,r=e.disabled,o=e.style;return bh({},sh(n.props,["style","classNames","className"],lh(Ch)),{},o("input"),{value:n.getPlainText()},!t&&!r&&{onChange:n.handleChange,onSelect:n.handleSelect,onKeyDown:n.handleKeyDown,onBlur:n.handleBlur,onCompositionStart:n.handleCompositionStart,onCompositionEnd:n.handleCompositionEnd,onScroll:n.updateHighlighterScroll},{},n.isOpened()&&{role:"combobox","aria-controls":n.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":Qp(n.uuidSuggestionsOverlay,n.state.focusIndex)})})),Xa((0,B.Z)(n),"renderControl",(function(){var e=n.props,t=e.singleLine,r=e.style,i=n.getInputProps();return o().createElement("div",r("control"),n.renderHighlighter(),t?n.renderInput(i):n.renderTextarea(i))})),Xa((0,B.Z)(n),"renderInput",(function(e){return o().createElement("input",(0,T.Z)({type:"text",ref:n.setInputRef},e))})),Xa((0,B.Z)(n),"renderTextarea",(function(e){return o().createElement("textarea",(0,T.Z)({ref:n.setInputRef},e))})),Xa((0,B.Z)(n),"setInputRef",(function(e){n.inputElement=e;var t=n.props.inputRef;"function"==typeof t?t(e):t&&(t.current=e)})),Xa((0,B.Z)(n),"setSuggestionsElement",(function(e){n.suggestionsElement=e})),Xa((0,B.Z)(n),"renderSuggestionsOverlay",(function(){if(!ah(n.state.selectionStart))return null;var e=n.state.suggestionsPosition,t=e.position,r=e.left,i=e.top,a=o().createElement(gh,{id:n.uuidSuggestionsOverlay,style:n.props.style("suggestions"),position:t,left:r,top:i,focusIndex:n.state.focusIndex,scrollFocusedIntoView:n.state.scrollFocusedIntoView,containerRef:n.setSuggestionsElement,suggestions:n.state.suggestions,onSelect:n.addMention,onMouseDown:n.handleSuggestionsMouseDown,onMouseEnter:n.handleSuggestionsMouseEnter,isLoading:n.isLoading(),isOpened:n.isOpened(),ignoreAccents:n.props.ignoreAccents,a11ySuggestionsListLabel:n.props.a11ySuggestionsListLabel},n.props.children);return n.props.suggestionsPortalHost?Nl().createPortal(a,n.props.suggestionsPortalHost):a})),Xa((0,B.Z)(n),"renderHighlighter",(function(){var e=n.state,t=e.selectionStart,r=e.selectionEnd,i=n.props,a=i.singleLine,l=i.children,s=i.value,c=i.style;return o().createElement(dh,{containerRef:n.setHighlighterElement,style:c("highlighter"),value:s,singleLine:a,selectionStart:t,selectionEnd:r,onCaretPositionChange:n.handleCaretPositionChange},l)})),Xa((0,B.Z)(n),"setHighlighterElement",(function(e){n.highlighterElement=e})),Xa((0,B.Z)(n),"handleCaretPositionChange",(function(e){n.setState({caretPosition:e})})),Xa((0,B.Z)(n),"getPlainText",(function(){return $p(n.props.value||"",th(n.props.children))})),Xa((0,B.Z)(n),"executeOnChange",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i,a;return n.props.onChange?(i=n.props).onChange.apply(i,[e].concat(r)):n.props.valueLink?(a=n.props.valueLink).requestChange.apply(a,[e.target.value].concat(r)):void 0})),Xa((0,B.Z)(n),"handleChange",(function(e){if(Eh=!1,(document.activeElement&&document.activeElement.contentDocument||document).activeElement===e.target){var t=n.props.value||"",r=th(n.props.children),o=e.target.value,i=function(e,t,n,r){var o=n.selectionStartBefore,i=n.selectionEndBefore,a=n.selectionEndAfter,l=$p(e,r),s=l.length-t.length;"undefined"===o&&(o=a+s),"undefined"===i&&(i=o),o===i&&i===a&&l.length===t.length&&(o-=1);var c=t.slice(o,a),u=Math.min(o,a),d=i;o===a&&(d=Math.max(i,o+s));var f=Gp(e,r,u,"START"),p=Gp(e,r,d,"END"),h=Gp(e,r,u,"NULL"),m=Gp(e,r,d,"NULL"),v=null===h||null===m,g=Yp(e,f,p,c);if(!v){var y=$p(g,r);if(y!==t){for(u=0;t[u]===y[u];)u++;c=t.slice(u,a),d=l.lastIndexOf(t.substring(a)),f=Gp(e,r,u,"START"),p=Gp(e,r,d,"END"),g=Yp(e,f,p,c)}}return g}(t,o,{selectionStartBefore:n.state.selectionStart,selectionEndBefore:n.state.selectionEnd,selectionEndAfter:e.target.selectionEnd},r);o=$p(i,r);var a=e.target.selectionStart,l=e.target.selectionEnd,s=!1,c=function(e,t,n){var r=n,o=!1;if(Wp(e,t,(function(e,t,i,a,l,s,c){i<=n&&i+l.length>n&&(r=i,o=!0)})),o)return r}(t,r,a);void 0!==c&&n.state.selectionEnd>c&&(l=a=c,s=!0),n.setState({selectionStart:a,selectionEnd:l,setSelectionAfterMentionChange:s});var u=Xp(i,r),d={target:{value:i}};n.executeOnChange(d,i,o,u)}})),Xa((0,B.Z)(n),"handleSelect",(function(e){if(n.setState({selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd}),!Eh){var t=n.inputElement;e.target.selectionStart===e.target.selectionEnd?n.updateMentionsQueries(t.value,e.target.selectionStart):n.clearSuggestions(),n.updateHighlighterScroll(),n.props.onSelect(e)}})),Xa((0,B.Z)(n),"handleKeyDown",(function(e){if(0!==Jp(n.state.suggestions)&&n.suggestionsElement)switch(Object.values(xh).indexOf(e.keyCode)>=0&&(e.preventDefault(),e.stopPropagation()),e.keyCode){case xh.ESC:return void n.clearSuggestions();case xh.DOWN:return void n.shiftFocus(1);case xh.UP:return void n.shiftFocus(-1);case xh.RETURN:case xh.TAB:return void n.selectFocused();default:return}else n.props.onKeyDown(e)})),Xa((0,B.Z)(n),"shiftFocus",(function(e){var t=Jp(n.state.suggestions);n.setState({focusIndex:(t+n.state.focusIndex+e)%t,scrollFocusedIntoView:!0})})),Xa((0,B.Z)(n),"selectFocused",(function(){var e=n.state,t=e.suggestions,r=e.focusIndex,o=Object.values(t).reduce((function(e,t){var n=t.results,r=t.queryInfo;return[].concat(Rt(e),Rt(n.map((function(e){return{result:e,queryInfo:r}}))))}),[])[r],i=o.result,a=o.queryInfo;n.addMention(i,a),n.setState({focusIndex:0})})),Xa((0,B.Z)(n),"handleBlur",(function(e){var t=n._suggestionsMouseDown;n._suggestionsMouseDown=!1,t||n.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){n.updateHighlighterScroll()}),1),n.props.onBlur(e,t)})),Xa((0,B.Z)(n),"handleSuggestionsMouseDown",(function(e){n._suggestionsMouseDown=!0})),Xa((0,B.Z)(n),"handleSuggestionsMouseEnter",(function(e){n.setState({focusIndex:e,scrollFocusedIntoView:!1})})),Xa((0,B.Z)(n),"updateSuggestionsPosition",(function(){var e=n.state.caretPosition,t=n.props,r=t.suggestionsPortalHost,o=t.allowSuggestionsAboveCursor,i=t.forceSuggestionsAboveCursor;if(e&&n.suggestionsElement){var a=n.suggestionsElement,l=n.highlighterElement,s=l.getBoundingClientRect(),c=_h(l,"font-size"),u={left:s.left+e.left,top:s.top+e.top+c},d=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(a){var f={};if(r){f.position="fixed";var p=u.left,h=u.top;p-=_h(a,"margin-left"),h-=_h(a,"margin-top"),p-=l.scrollLeft,h-=l.scrollTop;var m=Math.max(document.documentElement.clientWidth,window.innerWidth||0);p+a.offsetWidth>m?f.left=Math.max(0,m-a.offsetWidth):f.left=p,o&&h+a.offsetHeight>d&&a.offsetHeight<h-c||i?f.top=Math.max(0,h-a.offsetHeight-c):f.top=h}else{var v=e.left-l.scrollLeft,g=e.top-l.scrollTop;v+a.offsetWidth>n.containerElement.offsetWidth?f.right=0:f.left=v,o&&u.top-l.scrollTop+a.offsetHeight>d&&a.offsetHeight<s.top-c-l.scrollTop?f.top=g-a.offsetHeight-c:f.top=g}f.left===n.state.suggestionsPosition.left&&f.top===n.state.suggestionsPosition.top&&f.position===n.state.suggestionsPosition.position||n.setState({suggestionsPosition:f})}}})),Xa((0,B.Z)(n),"updateHighlighterScroll",(function(){var e=n.inputElement,t=n.highlighterElement;e&&t&&(t.scrollLeft=e.scrollLeft,t.scrollTop=e.scrollTop,t.height=e.height)})),Xa((0,B.Z)(n),"handleCompositionStart",(function(){Eh=!0})),Xa((0,B.Z)(n),"handleCompositionEnd",(function(){Eh=!1})),Xa((0,B.Z)(n),"setSelection",(function(e,t){if(null!==e&&null!==t){var r=n.inputElement;if(r.setSelectionRange)r.setSelectionRange(e,t);else if(r.createTextRange){var o=r.createTextRange();o.collapse(!0),o.moveEnd("character",t),o.moveStart("character",e),o.select()}}})),Xa((0,B.Z)(n),"updateMentionsQueries",(function(e,t){n._queryId++,n.suggestions={},n.setState({suggestions:{}});var r=n.props.value||"",i=n.props.children,a=th(i),l=Gp(r,a,t,"NULL");if(null!==l){var s=function(e,t){var n=Xp(e,t),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0}(r.substring(0,l),a),c=e.substring(s,t);o().Children.forEach(i,(function(t,r){if(t){var o=function(e){if(e instanceof RegExp)return e;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowSpaceInQuery,n=Hp(e);return new RegExp("(?:^|\\s)(".concat(n,"([^").concat(t?"":"\\s").concat(n,"]*))$"))}(t.props.trigger,n.props),i=c.match(o);if(i){var a=s+c.indexOf(i[1],i.index);n.queryData(i[2],r,a,a+i[1].length,e)}}}))}})),Xa((0,B.Z)(n),"clearSuggestions",(function(){n._queryId++,n.suggestions={},n.setState({suggestions:{},focusIndex:0})})),Xa((0,B.Z)(n),"queryData",(function(e,t,o,i,a){var l=n.props,s=l.children,c=l.ignoreAccents,u=function(e,t){return e instanceof Array?function(n,r){for(var o=[],i=0,a=e.length;i<a;++i){var l=e[i].display||e[i].id;ih(l,n,t)>=0&&o.push(e[i])}return o}:e}(r.Children.toArray(s)[t].props.data,c),d=u(e,n.updateSuggestions.bind(null,n._queryId,t,e,o,i,a));d instanceof Array&&n.updateSuggestions(n._queryId,t,e,o,i,a,d)})),Xa((0,B.Z)(n),"updateSuggestions",(function(e,t,r,o,i,a,l){if(e===n._queryId){n.suggestions=bh({},n.suggestions,Xa({},t,{queryInfo:{childIndex:t,query:r,querySequenceStart:o,querySequenceEnd:i,plainTextValue:a},results:l}));var s=n.state.focusIndex,c=Jp(n.suggestions);n.setState({suggestions:n.suggestions,focusIndex:s>=c?Math.max(c-1,0):s})}})),Xa((0,B.Z)(n),"addMention",(function(e,t){var o=e.id,i=e.display,a=t.childIndex,l=t.querySequenceStart,s=t.querySequenceEnd,c=t.plainTextValue,u=n.props.value||"",d=th(n.props.children),f=r.Children.toArray(n.props.children)[a].props,p=f.markup,h=f.displayTransform,m=f.appendSpaceOnAdd,v=f.onAdd,g=Gp(u,d,l,"START"),y=g+s-l,b=function(e,t,n){return e.replace(Vp,t).replace(Up,n)}(p,o,i);m&&(b+=" ");var x=Yp(u,g,y,b);n.inputElement.focus();var E=h(o,i);m&&(E+=" ");var C=l+E.length;n.setState({selectionStart:C,selectionEnd:C,setSelectionAfterMentionChange:!0});var w={target:{value:x}},_=Xp(x,d),k=Yp(c,l,s,E);n.executeOnChange(w,x,k,_),v&&v(o,i,g,y),n.clearSuggestions()})),Xa((0,B.Z)(n),"isLoading",(function(){var e=!1;return o().Children.forEach(n.props.children,(function(t){e=e||t&&t.props.isLoading})),e})),Xa((0,B.Z)(n),"isOpened",(function(){return ah(n.state.selectionStart)&&(0!==Jp(n.state.suggestions)||n.isLoading())})),Xa((0,B.Z)(n),"_queryId",0),n.suggestions={},n.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),n.handleCopy=n.handleCopy.bind((0,B.Z)(n)),n.handleCut=n.handleCut.bind((0,B.Z)(n)),n.handlePaste=n.handlePaste.bind((0,B.Z)(n)),n.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},n}return nl(t,e),j(t,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(e,t){t.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return o().createElement("div",(0,T.Z)({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault();var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.value,a=o.children,l=th(a),s=Gp(i,l,n,"START"),c=Gp(i,l,r,"END"),u=e.clipboardData.getData("text/react-mentions"),d=e.clipboardData.getData("text/plain"),f=Yp(i,s,c,u||d).replace(/\r/g,""),p=$p(f,l),h={target:bh({},e.target,{value:f})};this.executeOnChange(h,f,p,Xp(f,l))}}},{key:"saveSelectionToClipboard",value:function(e){var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,l=th(i),s=Gp(a,l,n,"START"),c=Gp(a,l,r,"END");e.clipboardData.setData("text/plain",e.target.value.slice(n,r)),e.clipboardData.setData("text/react-mentions",a.slice(s,c))}},{key:"supportsClipboardActions",value:function(e){return!!e.clipboardData}},{key:"handleCopy",value:function(e){e.target===this.inputElement&&this.supportsClipboardActions(e)&&(e.preventDefault(),this.saveSelectionToClipboard(e))}},{key:"handleCut",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault(),this.saveSelectionToClipboard(e);var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,l=th(i),s=Gp(a,l,n,"START"),c=Gp(a,l,r,"END"),u=[a.slice(0,s),a.slice(c)].join(""),d=$p(u,l),f={target:bh({},e.target,{value:d})};this.executeOnChange(f,u,d,Xp(a,l))}}}]),t}(o().Component);Xa(wh,"propTypes",Ch),Xa(wh,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var _h=function(e,t){var n=parseFloat(window.getComputedStyle(e,null).getPropertyValue(t));return isFinite(n)?n:0},kh=ch({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:bh({height:"100%",bottom:0,overflow:"hidden",resize:"none"},"undefined"!=typeof navigator&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?{marginTop:1,marginLeft:-3}:null)}},(function(e){var t=e.singleLine;return{"&singleLine":t,"&multiLine":!t}}))(wh),Oh={fontWeight:"inherit"},Sh=function(e){var t=e.display,n=e.style,r=e.className,i=e.classNames,a=jp(Oh,{style:n,className:r,classNames:i});return o().createElement("strong",a,t)};Sh.propTypes={onAdd:rt().func,onRemove:rt().func,renderSuggestion:rt().func,trigger:rt().oneOfType([rt().string,rt().instanceOf(RegExp)]),markup:rt().string,displayTransform:rt().func,allowSpaceInQuery:rt().bool,isLoading:rt().bool},Sh.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(e,t){return t||e},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};const Ah=qn((e=>({root:{backgroundColor:"#fff",fontFamily:"Roboto"},mentionsControl:{fontSize:"13px"},mentionsHighlighter:{padding:"10px 22px",border:"1px solid transparent !important","&::before":{content:({placeholder:e})=>e&&`"${e}"`}},mentionsInput:{borderRadius:"2px",border:"1px solid rgba(0,0,0,0.12)",padding:"10px 22px",outline:0,overflow:"auto !important"},mentionsSuggestions:{padding:"8px 0",zIndex:"1301!important",borderRadius:"4px",backgroundColor:"#fafafa !important",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)"},mentionsSuggestionsList:{maxHeight:"200px",overflowY:"scroll"},mentionsSuggestionsItem:{padding:"6px 12px",color:e.palette.text.primary,fontSize:"13px",transition:e.transitions.create(["background-color"]),"&:hover":{backgroundColor:"rgba(0,0,0,0.04)"}},mentionsSuggestionsItemFocused:{backgroundColor:"rgba(0,0,0,0.04)"},mention:{position:"relative",zIndex:1,color:e.palette.primary.main,textShadow:"1px 1px 1px white, 1px -1px 1px white, -1px 1px 1px white, -1px -1px 1px white",pointerEvents:"none"}})));function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ph.apply(null,arguments)}const Mh="mentionsTextArea",Rh=e=>{let{onChange:t,className:n,value:i,placeholder:a}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["onChange","className","value","placeholder"]);const s=Ah({placeholder:i?"":a}),c=(0,r.useContext)(tf);return o().createElement("div",{className:f()(s.root,n)},o().createElement(kh,Ph({},l,{value:i,placeholder:a,onChange:(e,n,r,o)=>{t(n,r,(0,p.uniq)(o.map((({display:e})=>e.slice(1)))))},className:Mh,suggestionsPortalHost:document.body,allowSuggestionsAboveCursor:!0,classNames:{[`${Mh}__input`]:s.mentionsInput,[`${Mh}__highlighter`]:s.mentionsHighlighter,[`${Mh}__control`]:s.mentionsControl,[`${Mh}__suggestions`]:s.mentionsSuggestions,[`${Mh}__suggestions__list`]:s.mentionsSuggestionsList,[`${Mh}__suggestions__item`]:s.mentionsSuggestionsItem,[`${Mh}__suggestions__item--focused`]:s.mentionsSuggestionsItemFocused}}),o().createElement(Sh,{trigger:"+",data:c.map((({username:e})=>({id:e,display:e}))),displayTransform:(e,t)=>`+${t}`,appendSpaceOnAdd:!0,className:s.mention})))},Th=qn({root:({isEditing:e})=>({padding:e?"6px 6px 6px 0":" 6px 6px 6px 8px",borderRadius:"4px",backgroundColor:e?"transparent":"rgba(0,114,206,0.06)"}),textField:({isEditing:e})=>({width:e?"100%":"calc(100% - 40px)"}),form:{marginBottom:0},main:{display:"flex",alignItems:"center"},avatar:{marginRight:"8px"},buttons:({isEditing:e})=>({marginLeft:e?"0":"40px",marginTop:"8px"}),button:{"& + $button":{marginLeft:"8px"}}}),Nh=e=>{switch(e){case"open":return u().text("Reply...");case"resolved":return u().text("Adding a comment will re-open this");default:return""}},Ih=({inputRef:e,className:t,uri:n,relatedObjectUris:i,objectType:a,popperRef:l,comment:s,reply:c,isEditingComment:d,isEditingReply:h,onCancel:m})=>{const v=d||h,g=Th({isEditing:v}),[y,b]=(0,r.useState)(!1),{createReply:x,createComment:E,sending:C,editComment:w,editReply:_,getCommentState:k,updateCommentState:O,clearCommentState:A}=(0,r.useContext)(rf),P=S(),M=(({comment:e,reply:t,isEditingComment:n,isEditingReply:r})=>(0,p.isNil)(e)?"comment/new":n?Qf(e):r?Jf(e,t):(e=>`comment/${e.commentId}/reply/new`)(e))({comment:s,reply:c,isEditingComment:d,isEditingReply:h}),R=(({comment:e,reply:t,isEditingComment:n,isEditingReply:r})=>{const o=n?e:r?t:null,{content:i="",namedUsers:a=[]}=o||{};return{value:ep(i,a),plainTextValue:i,mentions:a}})({comment:s,reply:c,isEditingComment:d,isEditingReply:h}),{value:T=R.value,plainTextValue:N=R.plainTextValue,mentions:I=R.mentions}=k(n,M),L=""!==R.value.trim(),D=""!==T.trim(),F=y||D||L,j=null==s?void 0:s.status,z=()=>{null==m||m(),A(n,M)};(0,r.useEffect)((()=>{l&&l.current.forceUpdate()}),[l,F]);const B=v?"small":"medium";return o().createElement(gf(),{className:f()(g.root,t)},o().createElement("form",{onSubmit:e=>(e.preventDefault(),(0,p.cond)([[(0,p.always)(!s),()=>E({content:N,namedUsers:I,objectType:a,uri:n,relatedObjectUris:i})],[(0,p.always)(d),()=>w({content:N,namedUsers:I,commentId:s.commentId,objectType:a,replies:s.replies,relatedObjectUris:i,uri:n})],[(0,p.always)(h),()=>_({content:N,namedUsers:I,commentId:s.commentId,replyId:c.replyId})],[p.T,()=>x({content:N,namedUsers:I,commentId:s.commentId,action:"open"===s.status?"none":"reopen",uri:n})]])().then(z).catch(console.log)),className:g.form},o().createElement(gf(),{className:g.main},!v&&o().createElement(pp,{classes:{root:g.avatar}},P),o().createElement(Rh,{className:g.textField,disabled:C,onChange:(e,t,r)=>O(n,M,{value:e,plainTextValue:t,mentions:r}),inputRef:e,value:T,onFocus:()=>b(!0),onBlur:()=>b(!1),placeholder:Nh(j)})),F&&o().createElement(gf(),{className:g.buttons},o().createElement(Df(),{className:g.button,variant:"contained",color:"primary",disabled:!D||C,type:"submit",size:B},((e,t,n)=>t||n?u().text("Edit"):"open"===e||"resolved"===e?u().text("Reply"):u().text("Comment"))(j,d,h)),o().createElement(Df(),{disabled:C,onClick:()=>z(),className:g.button,variant:"outlined",color:"primary",size:B},u().text("Cancel")))))},Lh=qn((e=>({header:{display:"flex"},avatar:{marginRight:"8px"},username:{marginBottom:"1px",color:e.palette.text.primary,fontSize:"13px",fontWeight:500,lineHeight:"15px"},createdAt:{marginTop:"3px",marginRight:"4px",color:e.palette.text.secondary,fontSize:"11px",lineHeight:"13px",whiteSpace:"nowrap"},body:{marginLeft:"40px"},commentTarget:{marginTop:"-15px",overflowWrap:"break-word"},message:{marginTop:"12px"},dropdownMenu:{zIndex:"3000 !important"},buttons:{marginTop:"15px",marginBottom:"12px",display:"flex","& $button + $button":{marginLeft:"10px"}},button:{fontSize:"13px",lineHeight:"15px"}}))),Dh=({onReply:e,className:t,uri:n,comment:i,relatedObjectUris:a,objectType:l})=>{const s=Lh(),c=(0,r.useRef)(),d=S(),{commentId:f,createdBy:p,createdTime:h,status:m}=i,v="resolved"===m,g=p===d,{resolveThread:y,reOpenThread:b,sending:x,deleteComment:E,updateCommentState:C,getCommentState:w}=(0,r.useContext)(rf),_=Qf(i),{isEditing:k}=w(n,_),O=(0,r.useCallback)((e=>C(n,_,{isEditing:e})),[_,C,n]);Gf(c,k);const A=(0,r.useMemo)((()=>v?[{text:u().text("Delete"),onClick:()=>E({uri:n,commentId:f})}]:[{text:u().text("Edit"),onClick:()=>O(!0)},{text:u().text("Delete"),onClick:()=>E({uri:n,commentId:f})}]),[f,E,v,O,n]),P=o().createElement(Ih,{inputRef:c,uri:n,relatedObjectUris:a,objectType:l,onCancel:()=>O(!1),isEditingComment:k,comment:i});return o().createElement(gf(),{className:t},o().createElement(gf(),{className:s.header},o().createElement(pp,{classes:{root:s.avatar}},p),o().createElement(gf(),{width:"100%"},o().createElement(Ku(),{className:s.username},p)),o().createElement(Ku(),{className:s.createdAt},Xf(h)),g&&o().createElement($f,{buttonComponent:Dd,buttonProps:{icon:If(),tooltipTitle:u().text("Open menu")},popoverProps:{PopoverClasses:{root:s.dropdownMenu}},menuItems:A,menuId:"collaboration-comment-menu"})),o().createElement(gf(),{className:s.body},o().createElement(sp,{comment:i,className:s.commentTarget}),k?P:o().createElement(up,{comment:i,className:s.message}),o().createElement(gf(),{className:s.buttons},o().createElement(bd(),{className:s.button,onClick:e,component:"button",underline:"hover"},u().text("Reply")),!v&&o().createElement(bd(),{disabled:x,className:s.button,onClick:()=>{y({commentId:f,uri:n})},component:"button",underline:"hover"},u().text("Resolve")),v&&o().createElement(bd(),{disabled:x,className:s.button,onClick:()=>{b({commentId:f,uri:n})},component:"button",underline:"hover"},u().text("Re-open")))))},Fh=qn((e=>({root:{display:"flex",padding:"8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},avatar:{marginRight:"8px"},replyArea:{width:"calc(100% - 60px)"},header:{display:"flex",marginBottom:"8px"},username:{color:e.palette.text.primary,fontSize:"13px",fontWeight:500,lineHeight:"15px"},message:{marginBottom:"8px",color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},createdAt:{color:e.palette.text.secondary,fontSize:"11px",lineHeight:"13px",whiteSpace:"nowrap"},marked:{marginLeft:"8px",color:e.palette.text.secondary,fontSize:"13px",fontStyle:"italic",lineHeight:"15px"}}))),jh=({className:e,reply:t,uri:n,comment:i,popperRef:a})=>{const l=(0,r.useRef)(),s=S(),{createdBy:c,action:d,createdTime:p}=t,h=c===s&&"resolved"!==i.status,{deleteReply:m,updateCommentState:v,getCommentState:g}=(0,r.useContext)(rf),y=Jf(i,t),{isEditing:b}=g(n,y),x=(0,r.useCallback)((e=>v(n,y,{isEditing:e})),[y,v,n]);Gf(l,b);const E=Fh(),C=(0,r.useMemo)((()=>[{text:u().text("Edit"),onClick:()=>x(!0)},{text:u().text("Delete"),onClick:()=>m({uri:n,commentId:i.commentId,reply:t})}]),[m,n,i.commentId,t,x]),w=o().createElement(Ih,{inputRef:l,popperRef:a,uri:n,onCancel:()=>x(!1),isEditingReply:b,reply:t,comment:i});return o().createElement(gf(),{className:f()(E.root,e)},o().createElement(pp,{classes:{root:E.avatar}},c),o().createElement(gf(),{className:E.replyArea},o().createElement(gf(),{className:E.header},o().createElement(Ku(),{className:E.username},c),"resolve"===d&&o().createElement(Ku(),{className:E.marked},u().text("Marked as resolved")),"reopen"===d&&o().createElement(Ku(),{className:E.marked},u().text("Re-opened"))),"resolve"!==d&&(b?w:o().createElement(up,{className:E.message,comment:t})),o().createElement(Ku(),{className:E.createdAt},Xf(p))),h&&o().createElement($f,{buttonComponent:Dd,buttonProps:{icon:If(),tooltipTitle:u().text("Open menu")},menuItems:C,menuId:"collaboration-comment-menu"}))},zh=qn((()=>({root:{maxWidth:"100%",padding:"8px 4px 10px 16px"},messages:{},repliedComment:{marginBottom:"2px"},replies:{marginLeft:"40px"},sendMessageArea:{marginLeft:"40px"},comment:{}}))),Bh=({uri:e,relatedObjectUris:t,objectType:n,classes:i,popperRef:a,messagesRef:l,comment:s})=>{const c=(0,r.useRef)(),u=zh({classes:i}),d=o().createElement(Ih,{className:u.sendMessageArea,inputRef:c,popperRef:a,uri:e,relatedObjectUris:t,objectType:n,comment:s});return o().createElement(gf(),{className:u.root},s&&o().createElement(o().Fragment,null,o().createElement("div",{className:u.messages,ref:l},o().createElement(Dh,{comment:s,uri:e,onReply:()=>{c.current.focus()},className:u.comment,relatedObjectUris:t,objectType:n}),o().createElement(gf(),{className:u.replies},s.replies.map((t=>o().createElement(jh,{key:t.replyId,className:u.repliedComment,reply:t,uri:e,comment:s}))))),d),!s&&d)},Hh=(0,r.memo)(Bh),Vh=qn((e=>({root:{},header:{display:"flex",alignItems:"center",height:"48px",paddingLeft:"16px",paddingRight:"8px"},headerInfo:{marginRight:"auto",display:"flex",alignItems:"center"},title:{marginRight:"15px",color:e.palette.text.primary,fontSize:"16px"},counter:{paddingLeft:"15px",borderLeft:"1px solid rgba(0,0,0,0.12)",color:e.palette.text.secondary,fontSize:"14px",lineHeight:"24px"},resolveButton:{zIndex:3e3,"&:hover":{backgroundColor:"transparent"}},popper:{width:"424px",borderRadius:"0 0 4px 4px"},collaborationItem:{padding:"0 0 10px 0"},comment:({hasScroll:e})=>({marginLeft:"16px",marginRight:e?"2px":"8px"}),replies:({hasScroll:e})=>({marginLeft:"8px",marginRight:e?"2px":"8px"}),sendMessageArea:({hasScroll:e,scrollWidth:t})=>({marginLeft:"8px",marginRight:e?t+2:"8px"}),messages:{maxHeight:"400px",overflowY:"auto"}}))),Uh=({uri:e,relatedObjectUris:t,objectType:n,anchorEl:i,onClose:a,open:l,comment:s})=>{const[c,d]=(0,r.useState)(0),f=Vh({scrollWidth:c,hasScroll:0!==c}),p=(0,r.useRef)(null),{resolveThread:h,loading:m,sending:v}=(0,r.useContext)(rf),g=1+(null==s?void 0:s.replies.length);return o().createElement(Tf,{popperRef:p,anchorEl:i,open:l,placement:"right-start",onClose:a,className:f.popper},o().createElement(gf(),{className:f.header},o().createElement(gf(),{className:f.headerInfo},o().createElement(Ku(),{className:f.title},u().text("Comments")),s&&!m&&o().createElement(Ku(),{className:f.counter},u().number(g)," ",1===g?u().text("item"):u().text("items"))),s&&!m&&o().createElement(Dd,{className:f.resolveButton,size:"S",onClick:()=>{h({commentId:s.commentId,uri:e})},disabled:v,showForDisabled:!0,tooltipTitle:u().text("Resolve"),icon:bf(),color:"primary"})),!m&&o().createElement(Hh,{popperRef:p,messagesRef:e=>{e&&d(e.offsetWidth-e.clientWidth)},classes:{root:f.collaborationItem,replies:f.replies,sendMessageArea:f.sendMessageArea,messages:f.messages,comment:f.comment},uri:e,relatedObjectUris:t,objectType:n,comment:s}))},Kh="commentsContainerVisibilityArea",Zh=qn((()=>({root:{display:"flex",alignItems:"start"},addButton:{visibility:"hidden","&$showAlways":{visibility:"visible"},[`.${Kh}:hover &`]:{visibility:"visible"}},showAlways:{}}))),qh=({className:e,uri:t,objectType:n,relatedObjectUris:i,onChangePopupVisibility:a,allowOnlyOneComment:l=!1,showAlways:s=!1})=>{const c=Zh(),[u,d]=(0,r.useState)(null),[p,h]=(0,r.useState)(!1),m=p&&Boolean(u),{currentComment:v,commentsMap:g,getComment:y,clearCurrentComment:b,objectTypes:x}=(0,r.useContext)(rf),E=!!g&&(!x||x.includes(n)),C=((null==g?void 0:g[t])||[]).filter((({status:e})=>"resolved"!==e)).reverse(),w=!l||l&&0===C.length,_=null===v&&m;Xd((()=>{a&&a(m)}),[m]);const k=(0,r.useContext)(Qd),O=(0,r.useMemo)((()=>k?[...i,...k]:i),[k,i]);return E&&o().createElement("div",{"data-reltio-id":"comments-container",className:f()(c.root,e)},w&&o().createElement(mf,{className:f()(c.addButton,{[c.showAlways]:s||_}),onClick:e=>{d(e.currentTarget),h(!0)}}),C.map((({replies:e,commentId:t})=>o().createElement(ff,{ref:t===(null==v?void 0:v.commentId)?d:null,key:t,onClick:()=>(e=>{y(e),h(!0)})(t)},1+e))),o().createElement(Uh,{anchorEl:u,open:m,onClose:()=>{d(null),b(),h(!1)},uri:t,relatedObjectUris:O,objectType:n,comment:v}))};function Wh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){$h(e,t,n[t])}))}return e}function $h(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gh=(e,t)=>t.filter((t=>t.replyId!==e)),Yh=(e,t)=>{const n=e.replies.findIndex((({replyId:e})=>e===t.replyId)),r=[...e.replies];return r[n]=t,r},Xh=[],Qh=e=>console.warn("Collaboration error",e),Jh=qn({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),em=()=>{const e=Jh(),t=M("clearHistoryEvent"),n=k();return n?o().createElement("div",{className:e.root},o().createElement(Ku(),{component:"div"},u().text("You are viewing a historic slice:")," ",o().createElement("span",{className:e.slice},u().date(n.aStamp,"llll"))),o().createElement(Df(),{className:e.cancelButton,variant:"contained",color:"primary",onClick:t},u().text("Cancel"))):null},tm=qn({profileBandNavigation:{marginBottom:"10px"},comments:{display:"flex",justifyContent:"flex-end"}}),nm=(0,r.memo)((({entity:e,className:t,historySlice:n})=>{const i=tm(),a=(({objectIds:e=Xh,objectTypes:t,enabled:n=!0,needsTotalCount:o=!1})=>{const i=_(),a=A(),l=C((e=>e.collaborationPath)),c=C((e=>e.isCollaborationEnabled))&&n,[u,d]=(0,r.useState)(null),[f,h]=(0,r.useState)([]),[m,v]=(0,r.useState)(null),[g,y]=(0,r.useState)(null),[b,x]=(0,r.useState)(null),[E,w]=(0,r.useState)(!1),[k,O]=(0,r.useState)(!1),[S,P]=(0,r.useState)({}),M=(0,r.useCallback)((e=>{v((t=>Wh({},t,e)))}),[]),R=null==i?void 0:i.uri,T=c&&R&&!(0,s.isTempUri)(R),N=(0,r.useCallback)(((e,t=!1)=>{T?(0,p.pipe)(s.getCommentsCount,(0,p.andThen)((0,p.map)((0,p.props)(["objectId","comments"]))),(0,p.andThen)(p.fromPairs),(0,p.andThen)(t?v:M),(0,p.otherwise)((e=>{console.warn("Collaboration error",e),v(null)})))({uris:e,tenant:a,collaborationPath:l}):v(null)}),[M,l,T,a]),I=(0,r.useCallback)((()=>{if(T){const e=e=>{console.warn("Collaboration error",e),y(null)};(0,p.pipe)(s.getTotalCommentsCount,(0,p.andThen)((0,p.prop)("total")),(0,p.andThen)(y),(0,p.otherwise)(e))({relatedObjectUri:R,collaborationPath:l,tenant:a})}else y(null)}),[T,l,R,a]);(0,r.useEffect)((()=>{o&&I()}),[I,o]),(0,r.useEffect)((()=>{N(e,!0)}),[e,N]);const L=(0,r.useCallback)(((e,t)=>{(0,s.getComments)({collaborationPath:l,tenant:a,relatedObjectUri:e,pageToken:t}).then((({items:e,nextPageToken:n})=>{h((n=>t?(0,p.uniqBy)((0,p.prop)("commentId"),[...n,...e]):e)),d(n)})).catch(Qh)}),[l,a]),D=(0,r.useCallback)((e=>{O(!0),(0,s.getComment)({collaborationPath:l,tenant:a,commentId:e}).then(x).catch(Qh).finally((()=>O(!1)))}),[l,a]),F=(0,r.useCallback)((({content:e,namedUsers:t,objectType:n,uri:r,relatedObjectUris:o})=>{w(!0);const i={objectId:r,content:e,relatedObjectUris:o,objectType:n,visibility:"public",namedUsers:t,permanentLink:`${window.location.href}&commentId=${encodeURIComponent("{commentId}")}`};return(0,s.createComment)({collaborationPath:l,tenant:a,data:i}).then((([e])=>((e,t)=>{x(e),v((n=>Wh({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),h((t=>[e,...t])),y((e=>(e||0)+1))})(e,r))).catch(Qh).finally((()=>w(!1)))}),[l,a]),j=(0,r.useCallback)((({content:e,namedUsers:t,objectType:n,uri:r,relatedObjectUris:o,commentId:i,replies:c})=>{w(!0);const u={objectId:r,content:e,relatedObjectUris:o,objectType:n,visibility:"public",namedUsers:t,commentId:i,replies:c};return(0,s.updateComment)({collaborationPath:l,tenant:a,data:u}).then((e=>(e=>{x(e),h((0,p.map)((0,p.when)((0,p.propEq)("commentId",e.commentId),(0,p.always)(e))))})(Wh({},e,{replies:c})))).catch(Qh).finally((()=>w(!1)))}),[l,a]),z=(0,r.useCallback)((({uri:e,commentId:t})=>{w(!0),(0,s.deleteComment)({collaborationPath:l,tenant:a,commentId:t}).then((()=>((e,t)=>{let n,r;x(null),v((n=>{var o,i;r=null==n||null===(o=n[t])||void 0===o||null===(i=o.find((t=>t.commentId===e)))||void 0===i?void 0:i.replies;const a=n[t]||[];return Wh({},n,{[t]:a.filter((t=>t.commentId!==e))})})),h((t=>{var r;return n=null===(r=t.find((t=>t.commentId===e)))||void 0===r?void 0:r.replies.length,t.filter((t=>t.commentId!==e))})),y((e=>{var t,o;return Math.max((e||0)-(1+(null!==(t=null!==(o=n)&&void 0!==o?o:r)&&void 0!==t?t:0)),0)}))})(t,e))).catch(Qh).finally((()=>w(!1)))}),[l,a]),B=(0,r.useCallback)(((e,t,n,r)=>{const o="resolve"===e.action?"resolved":"open",{replyId:i}=e;x("resolved"===o?e=>{if(e)return null}:t=>{if(t)return Wh({},t,{replies:r?Gh(i,t.replies):[...t.replies,e]})}),v((e=>Wh({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?Wh({},e,{status:o,replies:r?e.replies-1:e.replies+1}):e))}))),h((t=>t.map((t=>t.commentId===n?Wh({},t,{status:o,replies:r?Gh(e.replyId,t.replies):[...t.replies,e]}):t)))),y(r?e=>Math.max((e||0)-1,0):e=>(e||0)+1)}),[]),H=(0,r.useCallback)((({uri:e,commentId:t,reply:n})=>{w(!0),(0,s.deleteReply)({collaborationPath:l,tenant:a,commentId:t,replyId:n.replyId}).then((()=>B(n,e,t,!0))).catch(Qh).finally((()=>w(!1)))}),[l,B,a]),V=(0,r.useCallback)(((e,t)=>{x((t=>{if(t)return Wh({},t,{replies:Yh(t,e)})})),h((n=>n.map((n=>n.commentId===t?Wh({},n,{replies:Yh(n,e)}):n))))}),[]),U=(0,r.useCallback)((({content:e,namedUsers:t,commentId:n,replyId:r})=>{w(!0);const o={content:e,namedUsers:t};return(0,s.updateReply)({collaborationPath:l,tenant:a,commentId:n,replyId:r,data:o}).then((e=>V(e,n))).catch(Qh).finally((()=>w(!1)))}),[l,a,V]),K=(0,r.useCallback)((({content:e,namedUsers:t,commentId:n,action:r,uri:o})=>{w(!0);const i={content:e,action:r,namedUsers:t};return(0,s.createReply)({collaborationPath:l,tenant:a,commentId:n,data:i}).then((([e])=>B(e,o,n))).catch(Qh).finally((()=>w(!1)))}),[l,a,B]),Z=(0,r.useCallback)((({commentId:e,uri:t})=>{K({content:"",namedUsers:[],commentId:e,action:"resolve",uri:t})}),[K]),q=(0,r.useCallback)((({commentId:e,uri:t})=>{K({content:"",namedUsers:[],commentId:e,action:"reopen",uri:t})}),[K]),W=(0,r.useCallback)((()=>{x(null)}),[]),$=(0,r.useCallback)(((e,t)=>(0,p.pathOr)({},[e,t],S)),[S]),G=(0,r.useCallback)(((e,t)=>P((0,p.dissocPath)([e,t]))),[]),Y=(0,r.useCallback)(((e,t,n)=>{P((r=>{const o=[e,t],i=(0,p.path)(o,r);return(0,p.assocPath)(o,(0,p.mergeRight)(i,n),r)}))}),[]);return(0,r.useMemo)((()=>({clearCurrentComment:W,comments:f,commentsMap:m,getCommentState:$,updateCommentState:Y,clearCommentState:G,createComment:F,createReply:K,currentComment:b,deleteComment:z,editComment:j,getComment:D,getComments:L,getCommentsCount:N,loading:k,objectTypes:t,pageToken:u,reOpenThread:q,resolveThread:Z,sending:E,deleteReply:H,editReply:U,totalCommentsCount:g})),[W,f,m,$,Y,G,F,K,b,z,j,D,L,N,k,t,u,q,Z,E,H,U,g])})({objectIds:(0,r.useMemo)((()=>(0,s.getProfileBandObjectIdsForCollaboration)(e)),[e])}),l=(0,s.getEntityUriForLink)(e);return o().createElement(of,{collaboration:a},o().createElement(gd,{className:f()(t,Kh),entity:(null==n?void 0:n.aEntity)||e},n?o().createElement(em,null):o().createElement(o().Fragment,null,o().createElement(Yd,{className:i.profileBandNavigation}),o().createElement(qh,{className:i.comments,uri:l,relatedObjectUris:(0,s.createRelatedObjectUris)(s.CollaborationObjectTypes.ENTITY,{entityUri:l}),objectType:s.CollaborationObjectTypes.ENTITY}))))}));nm.displayName="ScreenProfileBand";var rm=n(9681),om=n.n(rm);const im=qn({loadingOverlay:{position:"absolute",width:"100%",height:"100%",top:0,left:0,zIndex:10,backgroundColor:"rgba(255, 255, 255, 0.37)"},transparent:{backgroundColor:"transparent"},relativePosition:{position:"relative"}}),am=({transparent:e=!1,relativePosition:t=!1,className:n})=>{const r=im();return o().createElement("div",{"data-reltio-id":"reltio-linear-load-indicator",className:f()(r.loadingOverlay,n,{[r.transparent]:e,[r.relativePosition]:t})},o().createElement(om(),{color:"primary"}))};function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lm.apply(null,arguments)}function sm(){return sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sm.apply(null,arguments)}function cm(){return cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cm.apply(null,arguments)}function um(){return um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},um.apply(null,arguments)}function dm(){return dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dm.apply(null,arguments)}function fm(){return fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(null,arguments)}const pm=qn((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","&$root_small":{minHeight:"160px"},"& $text":{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},root_small:{},small:{width:"88px",height:"88px"},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));function hm(){return hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hm.apply(null,arguments)}let mm=function(e){return e.full="full",e.embedded="embedded",e.small="small",e}({});const vm={SEARCH_RESULTS:e=>o().createElement("svg",lm({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgEmptySearchResults"},e),o().createElement("defs",null,o().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},o().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),o().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),o().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},o().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),o().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),o().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},o().createElement("stop",{stopColor:"#FFF",offset:"0%"}),o().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),o().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),o().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},o().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),o().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),o().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},o().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),o().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),o().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},o().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),o().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),o().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},o().createElement("g",{transform:"translate(56 34)"},o().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},o().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),o().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),o().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),o().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),o().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),o().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),o().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),o().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),o().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),o().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},o().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),o().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),o().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),o().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),o().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),o().createElement("g",null,o().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),o().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),o().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),o().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),o().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),o().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),o().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),o().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>o().createElement("svg",sm({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgSelectAttributes"},e),o().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),o().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},o().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),o().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),o().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),o().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),o().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),o().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),o().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),o().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),o().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),o().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),o().createElement("defs",null,o().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),o().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})))),NO_DATA:e=>o().createElement("svg",cm({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgNoData"},e),o().createElement("defs",null,o().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),o().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),o().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},o().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),o().createElement("stop",{stopColor:"#000",offset:"100%"})),o().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},o().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),o().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),o().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},o().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),o().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),o().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),o().createElement("feMerge",null,o().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),o().createElement("feMergeNode",{in:"SourceGraphic"}))),o().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),o().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},o().createElement("use",{xlinkHref:"#NoData_svg__a"})),o().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),o().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),o().createElement("g",{mask:"url(#NoData_svg__c)"},o().createElement("g",{transform:"translate(29 37)"},o().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},o().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),o().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),o().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),o().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),o().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),o().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),o().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),o().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),o().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),o().createElement("g",{mask:"url(#NoData_svg__c)"},o().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),o().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),o().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},o().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),o().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),o().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),o().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),o().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>o().createElement("svg",um({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgError"},e),o().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},o().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),o().createElement("g",{mask:"url(#Error_svg__a)"},o().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),o().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),o().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),o().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),o().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),o().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),o().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),o().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),o().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),o().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),o().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),o().createElement("g",{filter:"url(#Error_svg__filter0_d)"},o().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),o().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),o().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),o().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),o().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),o().createElement("g",{filter:"url(#Error_svg__filter1_d)"},o().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),o().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),o().createElement("g",{filter:"url(#Error_svg__filter2_d)"},o().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),o().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),o().createElement("defs",null,o().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o().createElement("feOffset",{dy:2}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),o().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o().createElement("feOffset",{dy:2}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),o().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o().createElement("feOffset",{dy:2}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),o().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:0}),o().createElement("stop",{offset:1})))),LOADING:e=>o().createElement("svg",hm({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgEmptyLoading"},e),o().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.03}),o().createElement("mask",{id:"EmptyLoading_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},o().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),o().createElement("g",{mask:"url(#EmptyLoading_svg__a)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#EmptyLoading_svg__paint0_linear_2978_41880)"}),o().createElement("g",{fillRule:"evenodd",clipRule:"evenodd"},o().createElement("path",{d:"M40.755 44.17C40.755 38.002 45.76 33 51.92 33h251.675c6.167 0 11.166 5.001 11.166 11.17v160.596H40.755V44.171z",fill:"#5E7282"}),o().createElement("path",{d:"M50.371 43.106h255.685V195.71H50.371V43.106z",fill:"url(#EmptyLoading_svg__paint1_linear_2978_41880)"}),o().createElement("path",{d:"M15.545 208.914c2.321.469 4.723.716 7.183.716H338.75c.22 0 .439-.002.658-.006-7.061 8.445-17.67 13.816-29.524 13.816H45.655c-12.111 0-22.916-5.597-29.968-14.349l-.142-.177z",fill:"#BDCBD8"}),o().createElement("path",{d:"M339.015 204.883v4.966H15v-4.966h324.015z",fill:"#D4DCDF"}),o().createElement("path",{d:"M201.107 213.991h-45.221a11.176 11.176 0 01-11.046-9.449h67.314a11.172 11.172 0 01-11.047 9.449z",fill:"url(#EmptyLoading_svg__paint2_linear_2978_41880)"})),o().createElement("g",{filter:"url(#EmptyLoading_svg__filter0_d_2978_41880)"},o().createElement("rect",{x:81.703,y:99,width:170,height:26,rx:8,fill:"#D1E6FF"}),o().createElement("rect",{x:84.703,y:102,width:164,height:20,rx:5,stroke:"#fff",strokeWidth:6})),o().createElement("g",{filter:"url(#EmptyLoading_svg__filter1_d_2978_41880)"},o().createElement("mask",{id:"EmptyLoading_svg__b",fill:"#fff"},o().createElement("rect",{x:81,y:105,width:108,height:14,rx:2})),o().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,fill:"#61A3F1"}),o().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,stroke:"#4A90E2",strokeWidth:8,mask:"url(#EmptyLoading_svg__b)"})),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M122.703 74a3 3 0 013-3h81.625a3 3 0 010 6h-81.625a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M146.703 86a3 3 0 013-3h34a3 3 0 110 6h-34a3 3 0 01-3-3zM136.703 139a3 3 0 013-3h54a3 3 0 110 6h-54a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M112.703 151a3 3 0 013-3h103a3 3 0 110 6h-103a3 3 0 01-3-3zM124.703 163a3 3 0 013-3h79a3 3 0 110 6h-79a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("g",{filter:"url(#EmptyLoading_svg__filter2_ddd_2978_41880)"},o().createElement("path",{fill:"#A0C1D7",d:"M70.703 64h11v8h-11z"}),o().createElement("rect",{x:62,y:59,width:28,height:8,rx:1,fill:"#BDD4E3"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.23 160.5c20.704 20.703 54.27 20.703 74.973 0 20.703-20.703 20.703-54.27 0-74.973-20.703-20.703-54.27-20.703-74.973 0-20.703 20.703-20.703 54.27 0 74.973z",fill:"#BDD4E3"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M113.427 85.988c20.463 20.652 20.404 53.981-.175 74.561-20.432 20.431-53.432 20.635-74.115.613l-.446-.439 74.736-74.735z",fill:"#A0C1D7"}),o().createElement("path",{opacity:.144,fillRule:"evenodd",clipRule:"evenodd",d:"M75.037 175.385c29.402 0 53.236-23.834 53.236-53.236a54.67 54.67 0 00-.106-3.399L100.45 91.037l-55.142 58.396 25.814 25.811c1.293.094 2.598.141 3.915.141z",fill:"url(#EmptyLoading_svg__paint3_linear_2978_41880)"}),o().createElement("circle",{cx:75.94,cy:123.237,r:44.723,fill:"#91B0C2"}),o().createElement("g",{filter:"url(#EmptyLoading_svg__filter3_d_2978_41880)"},o().createElement("circle",{r:42.793,transform:"matrix(-1 0 0 1 75.94 123.237)",fill:"#F7F4FF"})),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M105.043 175.309l-10.298.861-20.313-20.152.863-2.292-9.973-9.982 18.679-6.882h-4.308l-8.943-8.951 4.545-10.532L94.35 90.74l37.888 37.162c-.343 20.088-11.146 37.627-27.195 47.407z",fill:"url(#EmptyLoading_svg__paint4_linear_2978_41880)"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.703 123a8 8 0 0112.362-6.707l14.477-25.145A36.828 36.828 0 0075.703 86c-20.434 0-37 16.565-37 37h29z",fill:"url(#EmptyLoading_svg__paint5_angular_2978_41880)"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.297 90.6l.24.138s-12.45 35.125-12.811 35.752a6.92 6.92 0 01-11.985-6.92c.361-.626 24.556-28.97 24.556-28.97z",fill:"#323232"}),o().createElement("circle",{cx:75.94,cy:123.237,r:2.896,fill:"#EEEBF6"}),o().createElement("circle",{cx:96.211,cy:148.655,r:2.574,fill:"#A0C3D7"}),o().createElement("circle",{cx:107.15,cy:131.924,r:2.574,fill:"#A0C3D7"}),o().createElement("rect",{x:62.427,y:135.592,width:27.027,height:10.039,rx:3,fill:"#A0C3D7"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M85.914 170.534H75.112l-21.605-21.472 2.126-2.775v-1.01L42.8 132.523l2.853-2.529 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint6_linear_2978_41880)"}),o().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M96.362 136.555h-4.988l-38.126-38.01 2.853-2.53 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint7_linear_2978_41880)"}),o().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M116.746 129.006h-4.988L73.632 90.995l2.853-2.53 40.261 40.541z",fill:"url(#EmptyLoading_svg__paint8_linear_2978_41880)"}),o().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M85.793 152.41h-4.988l-38.126-38.011 2.852-2.53 40.262 40.541z",fill:"url(#EmptyLoading_svg__paint9_linear_2978_41880)"}),o().createElement("circle",{cx:75.618,cy:155.734,r:2.574,fill:"#A0C3D7"}),o().createElement("circle",{cx:55.026,cy:148.655,r:2.574,fill:"#A0C3D7"}),o().createElement("circle",{cx:44.73,cy:131.924,r:2.574,fill:"#A0C3D7"}),o().createElement("g",{fill:"#A0C3D7"},o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 96.21 97.363)"}),o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 107.149 114.094)"}),o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 75.618 90.284)"}),o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 55.026 97.363)"}),o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 44.73 114.094)"})))),o().createElement("defs",null,o().createElement("linearGradient",{id:"EmptyLoading_svg__paint0_linear_2978_41880",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),o().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint1_linear_2978_41880",x1:178.214,y1:43.106,x2:178.214,y2:195.709,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#F2F9FB"}),o().createElement("stop",{offset:1,stopColor:"#fff"})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint2_linear_2978_41880",x1:178.497,y1:204.542,x2:178.497,y2:213.991,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#90AABF"}),o().createElement("stop",{offset:1,stopColor:"#869DAE"})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint3_linear_2978_41880",x1:154.275,y1:146.574,x2:96.683,y2:91.352,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint4_linear_2978_41880",x1:60.762,y1:143.327,x2:114.747,y2:176.019,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.87}),o().createElement("stop",{offset:1,stopOpacity:.01})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint6_linear_2978_41880",x1:90.287,y1:154.267,x2:68.53,y2:131.301,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint7_linear_2978_41880",x1:100.735,y1:120.288,x2:78.978,y2:97.322,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint8_linear_2978_41880",x1:121.119,y1:112.739,x2:99.362,y2:89.773,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint9_linear_2978_41880",x1:90.166,y1:136.143,x2:68.409,y2:113.177,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("filter",{id:"EmptyLoading_svg__filter0_d_2978_41880",x:77.703,y:96,width:178,height:34,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:1}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),o().createElement("filter",{id:"EmptyLoading_svg__filter1_d_2978_41880",x:77,y:102,width:116,height:22,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:1}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),o().createElement("filter",{id:"EmptyLoading_svg__filter2_ddd_2978_41880",x:-13.297,y:28,width:181.534,height:189.17,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feMorphology",{radius:4,operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_2978_41880"}),o().createElement("feOffset",{dy:7}),o().createElement("feGaussianBlur",{stdDeviation:4}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.600156 0 0 0 0 0.745337 0 0 0 0 0.8625 0 0 0 0.1 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feMorphology",{radius:4,operator:"dilate",in:"SourceAlpha",result:"effect2_dropShadow_2978_41880"}),o().createElement("feOffset",{dy:5}),o().createElement("feGaussianBlur",{stdDeviation:16}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),o().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_2978_41880",result:"effect2_dropShadow_2978_41880"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feMorphology",{radius:2,operator:"dilate",in:"SourceAlpha",result:"effect3_dropShadow_2978_41880"}),o().createElement("feOffset",{dy:12}),o().createElement("feGaussianBlur",{stdDeviation:8.5}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),o().createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_2978_41880",result:"effect3_dropShadow_2978_41880"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_2978_41880",result:"shape"})),o().createElement("filter",{id:"EmptyLoading_svg__filter3_d_2978_41880",x:29.148,y:78.444,width:93.585,height:93.585,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:2}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),o().createElement("radialGradient",{id:"EmptyLoading_svg__paint5_angular_2978_41880",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(-56.035 152.55 -12.515) scale(43.4058 65.5062)"},o().createElement("stop",{stopColor:"#CFE8FF"}),o().createElement("stop",{offset:.599,stopColor:"#D1F2F9",stopOpacity:0})))),NO_LOGS:e=>o().createElement("svg",dm({width:80,height:81,viewBox:"0 0 80 81",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgNoLogs"},e),o().createElement("circle",{cx:40,cy:40.5,r:40,fill:"#0072CE",fillOpacity:.1}),o().createElement("mask",{id:"NoLogs_svg__a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:81},o().createElement("circle",{cx:40,cy:40.5,r:40,fill:"#fff"})),o().createElement("g",{mask:"url(#NoLogs_svg__a)",fillRule:"evenodd",clipRule:"evenodd"},o().createElement("path",{d:"M-5 3.313h80V80.5H-5V3.312z",fill:"url(#NoLogs_svg__paint0_linear_8548_48660)"}),o().createElement("path",{opacity:.05,d:"M58.675 18.27L77 36.596v46.522H29.182L16.25 70.84V18.27h42.425z",fill:"url(#NoLogs_svg__paint1_linear_8548_48660)"}),o().createElement("path",{opacity:.06,d:"M14.688 18.625h63.124c1.209 0 2.188.98 2.188 2.188v49.062c0 1.208-.98 2.188-2.188 2.188H14.688a2.188 2.188 0 01-2.188-2.188V20.812c0-1.208.98-2.187 2.188-2.187z",fill:"#000"}),o().createElement("path",{d:"M15.625 18h62.813C79.3 18 80 18.7 80 19.563v49.062c0 .863-.7 1.563-1.563 1.563H15.626c-.863 0-1.563-.7-1.563-1.563V19.562c0-.862.7-1.562 1.563-1.562z",fill:"#fff"}),o().createElement("path",{opacity:.8,d:"M18.526 25.017c0-.518.42-.938.938-.938h13.008a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.937z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 25.017c0-.518.419-.938.937-.938H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.937z",fill:"#979797"}),o().createElement("path",{opacity:.8,d:"M18.526 47.753c0-.517.42-.937.938-.937h13.008a.938.938 0 010 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 47.753c0-.517.419-.937.937-.937H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.938z",fill:"#979797"}),o().createElement("path",{opacity:.8,d:"M18.526 56.174c0-.517.42-.937.938-.937h25.508a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.938zM18.526 63.753c0-.517.42-.937.938-.937h19.611a.938.938 0 010 1.875H19.464a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 56.174c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938zM55.58 63.753c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938z",fill:"#979797"}),o().createElement("path",{opacity:.8,d:"M18.526 32.174c0-.517.42-.937.938-.937h25.508a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 32.174c0-.517.419-.937.937-.937H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.938z",fill:"#979797"}),o().createElement("path",{opacity:.8,d:"M18.526 39.753c0-.517.42-.937.938-.937h25.508a.938.938 0 010 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 39.753c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938z",fill:"#979797"}),o().createElement("path",{opacity:.6,d:"M15.625 7.375H73.75c1.035 0 1.875.84 1.875 1.875v5.625c0 1.036-.84 1.875-1.875 1.875H15.625a1.875 1.875 0 01-1.875-1.875V9.25c0-1.036.84-1.875 1.875-1.875z",fill:"#fff"}),o().createElement("path",{opacity:.2,d:"M18.125 12.063c0-1.036.84-1.876 1.875-1.876h21.875a1.875 1.875 0 010 3.75H20a1.875 1.875 0 01-1.875-1.874zM55.158 12.079c0-1.047.848-1.895 1.895-1.895H72.21a1.895 1.895 0 110 3.79H57.052a1.895 1.895 0 01-1.894-1.895z",fill:"#979797"})),o().createElement("defs",null,o().createElement("linearGradient",{id:"NoLogs_svg__paint0_linear_8548_48660",x1:-5,y1:3.313,x2:-5,y2:80.5,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),o().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"NoLogs_svg__paint1_linear_8548_48660",x1:83.162,y1:57.097,x2:48.401,y2:24.776,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})))),NO_ACTIVATIONS:e=>o().createElement("svg",fm({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgNoActivations"},e),o().createElement("circle",{cx:100,cy:100,r:100,fill:"#0072CE",fillOpacity:.1}),o().createElement("mask",{id:"NoActivation_svg__a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:200,height:200},o().createElement("circle",{cx:100,cy:100,r:100,fill:"#fff"})),o().createElement("g",{mask:"url(#NoActivation_svg__a)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-12.5 7.031h200V200h-200V7.031z",fill:"url(#NoActivation_svg__paint0_linear_8548_48982)"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M146.688 44.426L192.5 90.237v116.306H72.956l-32.331-30.697V44.426h106.063z",fill:"url(#NoActivation_svg__paint1_linear_8548_48982)"}),o().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M36.719 45.313H194.53A5.468 5.468 0 01200 50.78v122.657a5.468 5.468 0 01-5.469 5.468H36.719a5.468 5.468 0 01-5.469-5.468V50.781a5.469 5.469 0 015.469-5.468z",fill:"#000"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.063 43.75h157.031A3.906 3.906 0 01200 47.656v122.656a3.907 3.907 0 01-3.906 3.907H39.063a3.907 3.907 0 01-3.907-3.907V47.656a3.906 3.906 0 013.907-3.906z",fill:"#fff"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 56.746a2.344 2.344 0 012.343-2.344h32.52a2.343 2.343 0 010 4.688h-32.52a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 66.121a2.344 2.344 0 012.344-2.344h50.16a2.344 2.344 0 110 4.688h-50.16a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 127.344A2.344 2.344 0 0184.668 125h32.52a2.344 2.344 0 010 4.688h-32.52a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 136.719a2.344 2.344 0 012.344-2.344h50.16a2.343 2.343 0 110 4.687h-50.16a2.343 2.343 0 01-2.344-2.343z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 150.781a2.343 2.343 0 012.343-2.343h63.77a2.343 2.343 0 010 4.687h-63.77a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 160.156a2.344 2.344 0 012.344-2.344h57.973a2.343 2.343 0 010 4.688H84.375a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M108.106 80.469a2.344 2.344 0 012.344-2.344h63.769a2.344 2.344 0 010 4.688H110.45a2.344 2.344 0 01-2.344-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M107.812 89.844a2.344 2.344 0 012.344-2.344h50.16a2.344 2.344 0 110 4.688h-50.16a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),o().createElement("circle",{cx:52.344,cy:61.719,r:7.031,fill:"#B6C7DB"}),o().createElement("circle",{cx:52.344,cy:61.719,r:7.031,fill:"#B6C7DB"}),o().createElement("circle",{cx:93.75,cy:82.813,r:4.688,fill:"#B6C7DB"}),o().createElement("circle",{cx:93.75,cy:106.25,r:4.688,fill:"#B6C7DB"}),o().createElement("circle",{cx:52.344,cy:132.031,r:7.031,fill:"#B6C7DB"}),o().createElement("circle",{cx:52.344,cy:155.469,r:7.031,fill:"#B6C7DB"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M108.106 103.906a2.344 2.344 0 012.344-2.344h63.769a2.344 2.344 0 010 4.688H110.45a2.343 2.343 0 01-2.344-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M107.812 113.281a2.344 2.344 0 012.344-2.343h57.973a2.344 2.344 0 010 4.687h-57.973a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M72.277 84.375v-6.25h-1.563v31.535h8.734v-1.562h-7.171v-22.16h7.17v-1.563h-7.17z",fill:"#2B98F0"}),o().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M74.274 60.156l-2.762 2.762-2.762-2.762h5.524z",fill:"#000"}),o().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M39.063 17.188h145.312a4.687 4.687 0 014.687 4.687v14.063a4.687 4.687 0 01-4.687 4.687H39.062a4.688 4.688 0 01-4.687-4.688V21.876a4.688 4.688 0 014.688-4.688z",fill:"#fff"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M45.313 28.906A4.687 4.687 0 0150 24.22h54.688a4.688 4.688 0 010 9.375H50a4.688 4.688 0 01-4.688-4.688zM115.625 28.906a4.688 4.688 0 014.688-4.687h7.812a4.687 4.687 0 010 9.375h-7.813a4.688 4.688 0 01-4.687-4.688z",fill:"#979797"})),o().createElement("g",{filter:"url(#NoActivation_svg__filter0_d_8548_48982)"},o().createElement("path",{d:"M130.469 168.75c21.573 0 39.062-17.489 39.062-39.062 0-21.574-17.489-39.063-39.062-39.063-21.574 0-39.063 17.489-39.063 39.063 0 21.573 17.489 39.062 39.063 39.062z",fill:"#000"})),o().createElement("path",{d:"M130.469 168.75c21.573 0 39.062-17.489 39.062-39.062 0-21.574-17.489-39.063-39.062-39.063-21.574 0-39.063 17.489-39.063 39.063 0 21.573 17.489 39.062 39.063 39.062z",fill:"#93D204"}),o().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 78.906c28.045 0 50.781 22.736 50.781 50.781 0 28.046-22.736 50.782-50.781 50.782-28.046 0-50.781-22.736-50.781-50.782 0-28.045 22.735-50.78 50.781-50.78zm-.391 5.469c-24.81 0-44.922 20.112-44.922 44.922s20.112 44.922 44.922 44.922S175 154.107 175 129.297s-20.112-44.922-44.922-44.922z",fill:"#A9F300"}),o().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 88.281c22.868 0 41.406 18.538 41.406 41.406 0 22.869-18.538 41.407-41.406 41.407s-41.406-18.538-41.406-41.407c0-22.868 18.538-41.406 41.406-41.406zm0 4.644c-20.304 0-36.763 16.459-36.763 36.762 0 20.304 16.459 36.763 36.763 36.763 20.303 0 36.762-16.459 36.762-36.763 0-20.303-16.459-36.762-36.762-36.762z",fill:"#A9F300"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 60.156c38.401 0 69.531 31.13 69.531 69.532 0 38.401-31.13 69.531-69.531 69.531-38.401 0-69.531-31.13-69.531-69.531 0-38.401 31.13-69.532 69.531-69.532zm-.391 7.813c-33.87 0-61.328 27.457-61.328 61.328 0 33.87 27.457 61.328 61.328 61.328s61.328-27.458 61.328-61.328c0-33.87-27.457-61.328-61.328-61.328z",fill:"#A9F300"}),o().createElement("path",{d:"M130.469 163.281c18.553 0 33.593-15.04 33.593-33.593 0-18.554-15.04-33.594-33.593-33.594-18.554 0-33.594 15.04-33.594 33.594 0 18.553 15.04 33.593 33.594 33.593z",fill:"#A5E418"}),o().createElement("path",{opacity:.05,d:"M182.031 146.094l-34.375-34.375-5.344 2.343-11.719-11.718-.905 22.656-13.282-13.281-7.031 10.156v23.437l36.719 36.719 35.937-35.937z",fill:"url(#NoActivation_svg__paint2_linear_8548_48982)"}),o().createElement("g",{filter:"url(#NoActivation_svg__filter1_d_8548_48982)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 102.344a3.907 3.907 0 00-3.907 3.906v17.969a3.907 3.907 0 007.813 0V106.25a3.906 3.906 0 00-3.906-3.906zm17.996 9.347a3.907 3.907 0 00-5.524 5.524 18.186 18.186 0 013.943 19.825 18.187 18.187 0 01-26.912 8.163 18.182 18.182 0 01-7.735-18.674 18.194 18.194 0 014.978-9.314 3.905 3.905 0 10-5.524-5.524 26.008 26.008 0 00-5.637 28.338 26 26 0 0024.024 16.053 25.999 25.999 0 0024.024-16.053 26.007 26.007 0 00-5.637-28.338z",fill:"#fff"})),o().createElement("defs",null,o().createElement("linearGradient",{id:"NoActivation_svg__paint0_linear_8548_48982",x1:-12.5,y1:7.031,x2:-12.5,y2:200,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),o().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"NoActivation_svg__paint1_linear_8548_48982",x1:207.904,y1:141.493,x2:121.002,y2:60.688,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"NoActivation_svg__paint2_linear_8548_48982",x1:123.438,y1:112.109,x2:172.656,y2:161.328,gradientUnits:"userSpaceOnUse"},o().createElement("stop",null),o().createElement("stop",{offset:1,stopOpacity:0})),o().createElement("filter",{id:"NoActivation_svg__filter0_d_8548_48982",x:88.281,y:89.063,width:84.375,height:84.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:1.563}),o().createElement("feGaussianBlur",{stdDeviation:1.563}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8548_48982"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8548_48982",result:"shape"})),o().createElement("filter",{id:"NoActivation_svg__filter1_d_8548_48982",x:100.95,y:100.781,width:58.257,height:59.988,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:1.563}),o().createElement("feGaussianBlur",{stdDeviation:1.563}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8548_48982"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8548_48982",result:"shape"}))))},gm=({variant:e=mm.full,LogoRenderer:t=vm.SEARCH_RESULTS,text:n,secondaryText:r,buttonTitle:i,onClick:a=p.identity,access:l,children:s})=>{const c=pm(),u=l&&i;return o().createElement("div",{className:f()(c.root,c[`root_${e}`])},o().createElement(t,{className:c[`${e}`]}),o().createElement("div",{className:c.textBox},o().createElement(Ku(),{variant:"h5",classes:{h5:c.text}},n),r&&o().createElement(Ku(),{variant:"subtitle1",classes:{subtitle1:c.secondaryText}},r)),s,u&&o().createElement(Df(),{className:c.button,variant:"contained",color:"primary",onClick:a},i))};function ym(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){bm(e,t,n[t])}))}return e}function bm(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xm=qn((e=>({basicViewPaper:ym({display:"flex",flexDirection:"column"},e.basicView)})));function Em(){return Em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Em.apply(null,arguments)}const Cm=(0,r.forwardRef)(((e,t)=>{let{children:n,className:r}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className"]);const a=xm();return o().createElement(Ef(),Em({ref:t,className:r,classes:{root:a.basicViewPaper}},i),n)}));Cm.displayName="BasicView";const wm=o().createContext(void 0);function _m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){km(e,t,n[t])}))}return e}function km(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wm.displayName="PageRequestsAbortingContext";let Om=1;const Sm=e=>{var t,n;if(null==e||!e.entityId)return null;const r=(null===(t=e.children)||void 0===t?void 0:t.length)>0||e.hasMoreChildren;return _m({id:Om++,entityId:e.entityId,label:e.label,entityType:e.entityType,pending:e.hasMoreChildren,hasManyParents:e.hasManyParents,selected:e.selected,connectionId:e.connectionId,isLoading:!1},r?{children:(null!==(n=e.children)&&void 0!==n?n:[]).map(Sm).filter(Boolean)}:{})},Am=(e=[],t=[])=>(0,p.reduce)(((e,t)=>(0,p.any)((0,p.eqProps)("id",t),e)?e:(0,p.append)(t,e)),[...e],t),Pm=(e,t,n)=>e.map((e=>(0,s.mapTree)(e,{nodeProcessing:e=>t(e)?n(e):e})));var Mm=n(6038),Rm=n.n(Mm);const Tm=qn({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"20px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function Nm(){return Nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nm.apply(null,arguments)}const Im=e=>{let{title:t="",children:n=null,classes:r={}}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","children","classes"]);const a=Tm();return o().createElement(Rm(),Nm({className:r.root,classes:{root:a.toolbar}},i),t&&o().createElement(Ku(),{className:r.title,classes:{root:a.title},variant:"h6"},u().text(t)),n)};var Lm=n(8282),Dm=n.n(Lm);const Fm=qn((e=>({expanded:{transform:"rotate(180deg)"},disabled:{color:`${e.palette.text.disabled} !important`}})));function jm(){return jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jm.apply(null,arguments)}const zm=e=>{const{selectProps:{classes:t,menuIsOpen:n,isDisabled:r},innerProps:i}=e,a=Fm();return o().createElement(Dm(),jm({"data-reltio-id":"select-dropdown-indicator"},i,{className:f()(t.dropdownIndicator,{[a.expanded]:n},{[a.disabled]:r})}))};zm.propTypes={innerProps:rt().object.isRequired,selectProps:rt().shape({classes:rt().shape({dropdownIndicator:rt().string}).isRequired,menuIsOpen:rt().bool.isRequired,isDisabled:rt().bool}).isRequired};var Bm=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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 n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Hm=Math.abs,Vm=String.fromCharCode,Um=Object.assign;function Km(e){return e.trim()}function Zm(e,t,n){return e.replace(t,n)}function qm(e,t){return e.indexOf(t)}function Wm(e,t){return 0|e.charCodeAt(t)}function $m(e,t,n){return e.slice(t,n)}function Gm(e){return e.length}function Ym(e){return e.length}function Xm(e,t){return t.push(e),e}var Qm=1,Jm=1,ev=0,tv=0,nv=0,rv="";function ov(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qm,column:Jm,length:a,return:""}}function iv(e,t){return Um(ov("",null,null,"",null,null,0),e,{length:-e.length},t)}function av(){return nv=tv>0?Wm(rv,--tv):0,Jm--,10===nv&&(Jm=1,Qm--),nv}function lv(){return nv=tv<ev?Wm(rv,tv++):0,Jm++,10===nv&&(Jm=1,Qm++),nv}function sv(){return Wm(rv,tv)}function cv(){return tv}function uv(e,t){return $m(rv,e,t)}function dv(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fv(e){return Qm=Jm=1,ev=Gm(rv=e),tv=0,[]}function pv(e){return rv="",e}function hv(e){return Km(uv(tv-1,gv(91===e?e+2:40===e?e+1:e)))}function mv(e){for(;(nv=sv())&&nv<33;)lv();return dv(e)>2||dv(nv)>3?"":" "}function vv(e,t){for(;--t&&lv()&&!(nv<48||nv>102||nv>57&&nv<65||nv>70&&nv<97););return uv(e,cv()+(t<6&&32==sv()&&32==lv()))}function gv(e){for(;lv();)switch(nv){case e:return tv;case 34:case 39:34!==e&&39!==e&&gv(nv);break;case 40:41===e&&gv(e);break;case 92:lv()}return tv}function yv(e,t){for(;lv()&&e+nv!==57&&(e+nv!==84||47!==sv()););return"/*"+uv(t,tv-1)+"*"+Vm(47===e?e:lv())}function bv(e){for(;!dv(sv());)lv();return uv(e,tv)}var xv="-ms-",Ev="-moz-",Cv="-webkit-",wv="comm",_v="rule",kv="decl",Ov="@keyframes";function Sv(e,t){for(var n="",r=Ym(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Av(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case kv:return e.return=e.return||e.value;case wv:return"";case Ov:return e.return=e.value+"{"+Sv(e.children,r)+"}";case _v:e.value=e.props.join(",")}return Gm(n=Sv(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pv(e){return pv(Mv("",null,null,null,[""],e=fv(e),0,[0],e))}function Mv(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,v=1,g=1,y=0,b="",x=o,E=i,C=r,w=b;v;)switch(h=y,y=lv()){case 40:if(108!=h&&58==Wm(w,d-1)){-1!=qm(w+=Zm(hv(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:w+=hv(y);break;case 9:case 10:case 13:case 32:w+=mv(h);break;case 92:w+=vv(cv()-1,7);continue;case 47:switch(sv()){case 42:case 47:Xm(Tv(yv(lv(),cv()),t,n),s);break;default:w+="/"}break;case 123*m:l[c++]=Gm(w)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:-1==g&&(w=Zm(w,/\f/g,"")),p>0&&Gm(w)-d&&Xm(p>32?Nv(w+";",r,n,d-1):Nv(Zm(w," ","")+";",r,n,d-2),s);break;case 59:w+=";";default:if(Xm(C=Rv(w,t,n,c,u,o,l,b,x=[],E=[],d),i),123===y)if(0===u)Mv(w,t,C,C,x,i,d,l,E);else switch(99===f&&110===Wm(w,3)?100:f){case 100:case 108:case 109:case 115:Mv(e,C,C,r&&Xm(Rv(e,C,C,0,0,o,l,b,o,x=[],d),E),o,E,d,l,r?x:E);break;default:Mv(w,C,C,C,[""],E,0,l,E)}}c=u=p=0,m=g=1,b=w="",d=a;break;case 58:d=1+Gm(w),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==av())continue;switch(w+=Vm(y),y*m){case 38:g=u>0?1:(w+="\f",-1);break;case 44:l[c++]=(Gm(w)-1)*g,g=1;break;case 64:45===sv()&&(w+=hv(lv())),f=sv(),u=d=Gm(b=w+=bv(cv())),y++;break;case 45:45===h&&2==Gm(w)&&(m=0)}}return i}function Rv(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,f=0===o?i:[""],p=Ym(f),h=0,m=0,v=0;h<r;++h)for(var g=0,y=$m(e,d+1,d=Hm(m=a[h])),b=e;g<p;++g)(b=Km(m>0?f[g]+" "+y:Zm(y,/&\f/g,f[g])))&&(s[v++]=b);return ov(e,t,n,0===o?_v:l,s,c,u)}function Tv(e,t,n){return ov(e,t,n,wv,Vm(nv),$m(e,2,-2),0)}function Nv(e,t,n,r){return ov(e,t,n,kv,$m(e,0,r),$m(e,r+1,-1),r)}var Iv=function(e,t,n){for(var r=0,o=0;r=o,o=sv(),38===r&&12===o&&(t[n]=1),!dv(o);)lv();return uv(e,tv)},Lv=new WeakMap,Dv=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Lv.get(n))&&!r){Lv.set(e,!0);for(var o=[],i=function(e,t){return pv(function(e,t){var n=-1,r=44;do{switch(dv(r)){case 0:38===r&&12===sv()&&(t[n]=1),e[n]+=Iv(tv-1,t,n);break;case 2:e[n]+=hv(r);break;case 4:if(44===r){e[++n]=58===sv()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Vm(r)}}while(r=lv());return e}(fv(e),t))}(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},Fv=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function jv(e,t){switch(function(e,t){return 45^Wm(e,0)?(((t<<2^Wm(e,0))<<2^Wm(e,1))<<2^Wm(e,2))<<2^Wm(e,3):0}(e,t)){case 5103:return Cv+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Cv+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Cv+e+Ev+e+xv+e+e;case 6828:case 4268:return Cv+e+xv+e+e;case 6165:return Cv+e+xv+"flex-"+e+e;case 5187:return Cv+e+Zm(e,/(\w+).+(:[^]+)/,Cv+"box-$1$2"+xv+"flex-$1$2")+e;case 5443:return Cv+e+xv+"flex-item-"+Zm(e,/flex-|-self/,"")+e;case 4675:return Cv+e+xv+"flex-line-pack"+Zm(e,/align-content|flex-|-self/,"")+e;case 5548:return Cv+e+xv+Zm(e,"shrink","negative")+e;case 5292:return Cv+e+xv+Zm(e,"basis","preferred-size")+e;case 6060:return Cv+"box-"+Zm(e,"-grow","")+Cv+e+xv+Zm(e,"grow","positive")+e;case 4554:return Cv+Zm(e,/([^-])(transform)/g,"$1"+Cv+"$2")+e;case 6187:return Zm(Zm(Zm(e,/(zoom-|grab)/,Cv+"$1"),/(image-set)/,Cv+"$1"),e,"")+e;case 5495:case 3959:return Zm(e,/(image-set\([^]*)/,Cv+"$1$`$1");case 4968:return Zm(Zm(e,/(.+:)(flex-)?(.*)/,Cv+"box-pack:$3"+xv+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Cv+e+e;case 4095:case 3583:case 4068:case 2532:return Zm(e,/(.+)-inline(.+)/,Cv+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Gm(e)-1-t>6)switch(Wm(e,t+1)){case 109:if(45!==Wm(e,t+4))break;case 102:return Zm(e,/(.+:)(.+)-([^]+)/,"$1"+Cv+"$2-$3$1"+Ev+(108==Wm(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qm(e,"stretch")?jv(Zm(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Wm(e,t+1))break;case 6444:switch(Wm(e,Gm(e)-3-(~qm(e,"!important")&&10))){case 107:return Zm(e,":",":"+Cv)+e;case 101:return Zm(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Cv+(45===Wm(e,14)?"inline-":"")+"box$3$1"+Cv+"$2$3$1"+xv+"$2box$3")+e}break;case 5936:switch(Wm(e,t+11)){case 114:return Cv+e+xv+Zm(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Cv+e+xv+Zm(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Cv+e+xv+Zm(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Cv+e+xv+e+e}return e}var zv=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kv:e.return=jv(e.value,e.length);break;case Ov:return Sv([iv(e,{value:Zm(e.value,"@","@"+Cv)})],r);case _v:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Sv([iv(e,{props:[Zm(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Sv([iv(e,{props:[Zm(t,/:(plac\w+)/,":"+Cv+"input-$1")]}),iv(e,{props:[Zm(t,/:(plac\w+)/,":-moz-$1")]}),iv(e,{props:[Zm(t,/:(plac\w+)/,xv+"input-$1")]})],r)}return""}))}}],Bv=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||zv,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var s,c,u,d,f=[Av,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[Dv,Fv].concat(i,f),u=Ym(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,Sv(Pv(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Bm({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(l),h},Hv=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Vv={animationIterationCount:1,aspectRatio: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 Uv(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Kv=/[A-Z]|^ms/g,Zv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qv=function(e){return 45===e.charCodeAt(1)},Wv=function(e){return null!=e&&"boolean"!=typeof e},$v=Uv((function(e){return qv(e)?e:e.replace(Kv,"-$&").toLowerCase()})),Gv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Zv,(function(e,t,n){return Xv={name:t,styles:n,next:Xv},t}))}return 1===Vv[e]||qv(e)||"number"!=typeof t||0===t?t:t+"px"};function Yv(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Xv={name:n.name,styles:n.styles,next:Xv},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Xv={name:r.name,styles:r.styles,next:Xv},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Yv(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Wv(a)&&(r+=$v(i)+":"+Gv(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Yv(e,t,a);switch(i){case"animation":case"animationName":r+=$v(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Wv(a[s])&&(r+=$v(i)+":"+Gv(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Xv,i=n(e);return Xv=o,Yv(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Xv,Qv=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Jv=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Xv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Yv(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Yv(n,t,e[a]),r&&(o+=i[a]);Qv.lastIndex=0;for(var l,s="";null!==(l=Qv.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:Xv}},eg=!!r.useInsertionEffect&&r.useInsertionEffect,tg=eg||function(e){return e()},ng=(eg||r.useLayoutEffect,{}.hasOwnProperty),rg=r.createContext("undefined"!=typeof HTMLElement?Bv({key:"css"}):null);rg.Provider;var og=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(rg);return e(t,o,n)}))},ig=r.createContext({}),ag="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lg=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Hv(t,n,r),tg((function(){return function(e,t,n){Hv(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},sg=og((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[ag],a=[o],l="";"string"==typeof e.className?l=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(l=e.className+" ");var s=Jv(a,void 0,r.useContext(ig));l+=t.key+"-"+s.name;var c={};for(var u in e)ng.call(e,u)&&"css"!==u&&u!==ag&&(c[u]=e[u]);return c.ref=n,c.className=l,r.createElement(r.Fragment,null,r.createElement(lg,{cache:t,serialized:s,isStringTag:"string"==typeof i}),r.createElement(i,c))})),cg=sg,ug=(n(3463),function(e,t){var n=arguments;if(null==t||!ng.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=cg,i[1]=function(e,t){var n={};for(var r in t)ng.call(t,r)&&(n[r]=t[r]);return n[ag]=e,n}(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)});function dg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Jv(t)}const fg=Math.min,pg=Math.max,hg=Math.round,mg=Math.floor,vg=e=>({x:e,y:e});function gg(e){return xg(e)?(e.nodeName||"").toLowerCase():"#document"}function yg(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bg(e){var t;return null==(t=(xg(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function xg(e){return e instanceof Node||e instanceof yg(e).Node}function Eg(e){return e instanceof Element||e instanceof yg(e).Element}function Cg(e){return e instanceof HTMLElement||e instanceof yg(e).HTMLElement}function wg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof yg(e).ShadowRoot)}function _g(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kg(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function kg(e){return yg(e).getComputedStyle(e)}function Og(e){const t=function(e){if("html"===gg(e))return e;const t=e.assignedSlot||e.parentNode||wg(e)&&e.host||bg(e);return wg(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(gg(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cg(t)&&_g(t)?t:Og(t)}function Sg(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Og(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=yg(o);if(i){const e=Ag(a);return t.concat(a,a.visualViewport||[],_g(o)?o:[],e&&n?Sg(e):[])}return t.concat(o,Sg(o,[],n))}function Ag(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Pg(e){return Eg(e)?e:e.contextElement}function Mg(e){const t=Pg(e);if(!Cg(t))return vg(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=kg(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Cg(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=hg(n)!==i||hg(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}(t);let a=(i?hg(n.width):n.width)/r,l=(i?hg(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Rg=vg(0);function Tg(e){const t=yg(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Rg}function Ng(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Pg(e);let a=vg(1);t&&(r?Eg(r)&&(a=Mg(r)):a=Mg(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==yg(e))&&t}(i,n,r)?Tg(i):vg(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=yg(i),t=r&&Eg(r)?yg(r):r;let n=e,o=Ag(n);for(;o&&r&&t!==n;){const e=Mg(o),t=o.getBoundingClientRect(),r=kg(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=yg(o),o=Ag(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:s,y:c})}const Ig=r.useLayoutEffect;var Lg=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Dg=function(){};function Fg(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function jg(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Fg(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var zg=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===L(e)&&null!==e?[e]:[];var t},Bg=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Ja({},wl(e,Lg))},Hg=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Vg(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ug(e){return Vg(e)?window.pageYOffset:e.scrollTop}function Kg(e,t){Vg(e)?window.scrollTo(0,t):e.scrollTop=t}function Zg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dg,o=Ug(e),i=t-o,a=0;!function t(){var l=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Kg(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function qg(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Kg(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Kg(e,Math.max(t.offsetTop-o,0))}function Wg(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var $g=!1,Gg={get passive(){return $g=!0}},Yg="undefined"!=typeof window?window:{};Yg.addEventListener&&Yg.removeEventListener&&(Yg.addEventListener("p",Dg,Gg),Yg.removeEventListener("p",Dg,!1));var Xg=$g;function Qg(e){return null!=e}function Jg(e,t,n){return e?t:n}var ey=["children","innerProps"],ty=["children","innerProps"];var ny,ry=function(e){return"auto"===e?"bottom":e},oy=(0,r.createContext)(null),iy=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,s=e.theme,c=((0,r.useContext)(oy)||{}).setPortalPlacement,u=(0,r.useRef)(null),d=Cl((0,r.useState)(o),2),f=d[0],p=d[1],h=Cl((0,r.useState)(null),2),m=h[0],v=h[1],g=s.spacing.controlHeight;return Ig((function(){var e=u.current;if(e){var t="fixed"===a,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:function(e){return Vg(e)?window.innerHeight:e.clientHeight}(s),g=Ug(s),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),x=m-b,E=v-h,C=x+g,w=u-g-h,_=f-v+g+y,k=g+h-b,O=160;switch(o){case"auto":case"bottom":if(E>=p)return{placement:"bottom",maxHeight:t};if(w>=p&&!a)return i&&Zg(s,_,O),{placement:"bottom",maxHeight:t};if(!a&&w>=r||a&&E>=r)return i&&Zg(s,_,O),{placement:"bottom",maxHeight:a?E-y:w-y};if("auto"===o||a){var S=t,A=a?x:C;return A>=r&&(S=Math.min(A-y-l,t)),{placement:"top",maxHeight:S}}if("bottom"===o)return i&&Kg(s,_),{placement:"bottom",maxHeight:t};break;case"top":if(x>=p)return{placement:"top",maxHeight:t};if(C>=p&&!a)return i&&Zg(s,k,O),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&x>=r){var P=t;return(!a&&C>=r||a&&x>=r)&&(P=a?x-b:C-b),i&&Zg(s,k,O),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:g});p(r.maxHeight),v(r.placement),null==c||c(r.placement)}}),[o,i,a,l,n,c,g]),t({ref:u,placerProps:Ja(Ja({},e),{},{placement:m||ry(i),maxHeight:f})})},ay=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Ja({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ly=ay,sy=ay,cy=["size"],uy=["innerProps","isRtl","size"],dy={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},fy=function(e){var t=e.size,n=wl(e,cy);return ug("svg",(0,T.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:dy},n))},py=function(e){return ug(fy,(0,T.Z)({size:20},e),ug("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},hy=function(e){return ug(fy,(0,T.Z)({size:20},e),ug("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},my=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ja({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},vy=my,gy=my,yy=function(){var e=dg.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ny||(ny=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),by=function(e){var t=e.delay,n=e.offset;return ug("span",{css:dg({animation:"".concat(yy," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},xy=["data"],Ey=["innerRef","isDisabled","isHidden","inputClassName"],Cy={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},wy={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ja({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Cy)},_y=function(e){return Ja({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Cy)},ky=function(e){var t=e.children,n=e.innerProps;return ug("div",n,t)},Oy={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ug("div",(0,T.Z)({},Hg(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ug(py,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return ug("div",(0,T.Z)({ref:o},Hg(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ug("div",(0,T.Z)({},Hg(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ug(hy,null))},DownChevron:hy,CrossIcon:py,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return ug("div",(0,T.Z)({},Hg(e,"group",{group:!0}),l),ug(i,(0,T.Z)({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),s),ug("div",null,t))},GroupHeading:function(e){var t=Bg(e);t.data;var n=wl(t,xy);return ug("div",(0,T.Z)({},Hg(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ug("div",(0,T.Z)({},Hg(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ug("span",(0,T.Z)({},t,Hg(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Bg(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=wl(r,Ey);return ug("div",(0,T.Z)({},Hg(e,"input",{"input-container":!0}),{"data-value":n||""}),ug("input",(0,T.Z)({className:t({input:!0},l),ref:o,style:_y(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=wl(e,uy);return ug("div",(0,T.Z)({},Hg(Ja(Ja({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ug(by,{delay:0,offset:n}),ug(by,{delay:160,offset:!0}),ug(by,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ug("div",(0,T.Z)({},Hg(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ug("div",(0,T.Z)({},Hg(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,a=e.menuPlacement,l=e.menuPosition,s=(0,r.useRef)(null),c=(0,r.useRef)(null),u=Cl((0,r.useState)(ry(a)),2),d=u[0],f=u[1],p=(0,r.useMemo)((function(){return{setPortalPlacement:f}}),[]),h=Cl((0,r.useState)(null),2),m=h[0],v=h[1],g=(0,r.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===l?0:window.pageYOffset,n=e[d]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||v({offset:n,rect:e})}}),[o,l,d,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Ig((function(){g()}),[g]);var y=(0,r.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),o&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Pg(e),u=o||i?[...c?Sg(c):[],...Sg(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=bg(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-mg(u)+"px "+-mg(o.clientWidth-(c+d))+"px "+-mg(o.clientHeight-(u+f))+"px "+-mg(c)+"px",threshold:pg(0,fg(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!s&&h.observe(c),h.observe(t));let m=s?Ng(e):null;return s&&function t(){const r=Ng(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}(o,s.current,g,{elementResize:"ResizeObserver"in window}))}),[o,g]);Ig((function(){y()}),[y]);var b=(0,r.useCallback)((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==l||!m)return null;var x=ug("div",(0,T.Z)({ref:b},Hg(Ja(Ja({},e),{},{offset:m.offset,position:l,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),n);return ug(oy.Provider,{value:p},t?(0,Tl.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=wl(e,ty);return ug("div",(0,T.Z)({},Hg(Ja(Ja({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=wl(e,ey);return ug("div",(0,T.Z)({},Hg(Ja(Ja({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return ug(s,{data:r,innerProps:Ja(Ja({},Hg(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},ug(c,{data:r,innerProps:Ja({},Hg(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),ug(u,{data:r,innerProps:Ja(Ja({},Hg(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:ky,MultiValueLabel:ky,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ug("div",(0,T.Z)({role:"button"},n),t||ug(py,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return ug("div",(0,T.Z)({},Hg(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ug("div",(0,T.Z)({},Hg(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ug("div",(0,T.Z)({},Hg(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ug("div",(0,T.Z)({},Hg(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ug("div",(0,T.Z)({},Hg(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Sy=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ay(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Sy(r)&&Sy(o)))return!1;var r,o;return!0}for(var Py={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},My=function(e){return ug("span",(0,T.Z)({css:Py},e))},Ry={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=l?" disabled":"",f="".concat(s?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ty=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,l=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,p=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,v=s.isSearchable,g=s.menuIsOpen,y=s.options,b=s.screenReaderStatus,x=s.tabSelectsValue,E=s.isLoading,C=s["aria-label"],w=s["aria-live"],_=(0,r.useMemo)((function(){return Ja(Ja({},Ry),d||{})}),[d]),k=(0,r.useMemo)((function(){var e,n="";if(t&&_.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,s=t.value,c=i||r||(e=s,Array.isArray(e)?null:e),u=c?f(c):"",d=o||a||void 0,p=d?d.map(f):[],h=Ja({isDisabled:c&&m(c,l),label:u,labels:p},t);n=_.onChange(h)}return n}),[t,_,m,l,f]),O=(0,r.useMemo)((function(){var e="",t=n||o,r=!!(n&&l&&l.includes(n));if(t&&_.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,l),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:l,isAppleDevice:u};e=_.onFocus(a)}return e}),[n,o,f,m,_,i,l,u]),S=(0,r.useMemo)((function(){var e="";if(g&&y.length&&!E&&_.onFilter){var t=b({count:i.length});e=_.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,g,_,y,b,E]),A="initial-input-focus"===(null==t?void 0:t.action),P=(0,r.useMemo)((function(){var e="";if(_.guidance){var t=o?"value":g?"menu":"input";e=_.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,l),isMulti:h,isSearchable:v,tabSelectsValue:x,isInitialFocus:A})}return e}),[C,n,o,h,m,v,g,_,l,x,A]),M=ug(r.Fragment,null,ug("span",{id:"aria-selection"},k),ug("span",{id:"aria-focused"},O),ug("span",{id:"aria-results"},S),ug("span",{id:"aria-guidance"},P));return ug(r.Fragment,null,ug(My,{id:c},A&&M),ug(My,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&M))},Ny=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Iy=new RegExp("["+Ny.map((function(e){return e.letters})).join("")+"]","g"),Ly={},Dy=0;Dy<Ny.length;Dy++)for(var Fy=Ny[Dy],jy=0;jy<Fy.letters.length;jy++)Ly[Fy.letters[jy]]=Fy.base;var zy=function(e){return e.replace(Iy,(function(e){return Ly[e]}))},By=function(e,t){void 0===t&&(t=Ay);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(zy),Hy=function(e){return e.replace(/^\s+|\s+$/g,"")},Vy=function(e){return"".concat(e.label," ").concat(e.value)},Uy=["innerRef"];function Ky(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Cl(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Cl(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(wl(e,Uy),"onExited","in","enter","exit","appear");return ug("input",(0,T.Z)({ref:t},n,{css:dg({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Zy=["boxSizing","height","overflow","paddingRight","position"],qy={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Wy(e){e.preventDefault()}function $y(e){e.stopPropagation()}function Gy(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Yy(){return"ontouchstart"in window||navigator.maxTouchPoints}var Xy=!("undefined"==typeof window||!window.document||!window.document.createElement),Qy=0,Jy={capture:!1,passive:!1},eb=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},tb={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function nb(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,l=(0,r.useRef)(!1),s=(0,r.useRef)(!1),c=(0,r.useRef)(0),u=(0,r.useRef)(null),d=(0,r.useCallback)((function(e,t){if(null!==u.current){var r=u.current,c=r.scrollTop,d=r.scrollHeight,f=r.clientHeight,p=u.current,h=t>0,m=d-f-c,v=!1;m>t&&l.current&&(o&&o(e),l.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!l.current&&n(e),p.scrollTop=d,v=!0,l.current=!0):!h&&-t>c&&(i&&!s.current&&i(e),p.scrollTop=0,v=!0,s.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,i,a]),f=(0,r.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,r.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,r.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,r.useCallback)((function(e){if(e){var t=!!Xg&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),v=(0,r.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return(0,r.useEffect)((function(){if(t){var e=u.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=(0,r.useRef)({}),a=(0,r.useRef)(null),l=(0,r.useCallback)((function(e){if(Xy){var t=document.body,n=t&&t.style;if(o&&Zy.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Qy<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+r||0;Object.keys(qy).forEach((function(e){var t=qy[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Yy()&&(t.addEventListener("touchmove",Wy,Jy),e&&(e.addEventListener("touchstart",Gy,Jy),e.addEventListener("touchmove",$y,Jy))),Qy+=1}}),[o]),s=(0,r.useCallback)((function(e){if(Xy){var t=document.body,n=t&&t.style;Qy=Math.max(Qy-1,0),o&&Qy<1&&Zy.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Yy()&&(t.removeEventListener("touchmove",Wy,Jy),e&&(e.removeEventListener("touchstart",Gy,Jy),e.removeEventListener("touchmove",$y,Jy)))}}),[o]);return(0,r.useEffect)((function(){if(t){var e=a.current;return l(e),function(){s(e)}}}),[t,l,s]),function(e){a.current=e}}({isEnabled:n});return ug(r.Fragment,null,n&&ug("div",{onClick:eb,css:tb}),t((function(e){i(e),a(e)})))}var rb={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ob=function(e){var t=e.name,n=e.onFocus;return ug("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:rb,value:"",onChange:function(){}})};function ib(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ab(){return ib(/^Mac/i)}var lb={clearIndicator:gy,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Ja({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:vy,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Ja({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ja({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Ja(Ja({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},wy),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Ja({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:sy,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,l=o.colors;return Ja((Xa(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Xa(n,"position","absolute"),Xa(n,"width","100%"),Xa(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Ja({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Ja({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Ja({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Ja({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:ly,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,l=i.colors;return Ja({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Ja({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Ja({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Ja({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},sb={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},cb={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Wg(),captureMenuScroll:!Wg(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Ja({ignoreCase:!0,ignoreAccents:!0,stringify:Vy,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,l=n.matchFrom,s=a?Hy(t):t,c=a?Hy(i(e)):i(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),o&&(s=By(s),c=zy(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ub(e,t,n,r){return{type:"option",data:t,isDisabled:yb(e,t,n),isSelected:bb(e,t,n),label:vb(e,t),value:gb(e,t),index:r}}function db(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return ub(e,n,t,r)})).filter((function(t){return hb(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=ub(e,n,t,r);return hb(e,i)?i:void 0})).filter(Qg)}function fb(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Rt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function pb(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Rt(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function hb(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!Eb(e)||!i)&&xb(e,{label:a,value:l,data:o},r)}var mb=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},vb=function(e,t){return e.getOptionLabel(t)},gb=function(e,t){return e.getOptionValue(t)};function yb(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function bb(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=gb(e,t);return n.some((function(t){return gb(e,t)===r}))}function xb(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Eb=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Cb=1,wb=function(e){nl(n,e);var t=al(n);function n(e){var r;if(el(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=ab()||ib(/^iPhone/i)||ib(/^iPad/i)||ab()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,l=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:l}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,l=o&&r.isOptionSelected(e,a),s=r.isOptionDisabled(e,a);if(l){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(Rt(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=Jg(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Jg(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Jg(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return mb(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return pb(db(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jg.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return vb(r.props,e)},r.getOptionValue=function(e){return gb(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=lb[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Ja(Ja({},Oy),e.components);var e},r.buildCategorizedOptions=function(){return db(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return fb(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Ja({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Vg(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Eb(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,l=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,v=p.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||f&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):l&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Cb),r.state.selectValue=zg(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=mb(o,i[a])}return r}return j(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&qg(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(qg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(sb):Ja(Ja({},sb),this.props.theme):sb}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,u=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:i,selectProps:l,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return yb(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return bb(this.props,e,t)}},{key:"filterOption",value:function(e,t){return xb(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,l=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),v=Ja(Ja(Ja({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(u,(0,T.Z)({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:i},v)):r.createElement(Ky,(0,T.Z)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Dg,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:l,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,l=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,v=this.state,g=v.selectValue,y=v.focusedValue,b=v.isFocused;if(!this.hasValue()||!d)return h?null:r.createElement(s,(0,T.Z)({},c,{key:"placeholder",isDisabled:f,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return g.map((function(t,l){var s=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,(0,T.Z)({},c,{components:{Container:o,Label:i,Remove:a},isFocused:s,isDisabled:f,key:u,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var x=g[0];return r.createElement(l,(0,T.Z)({},c,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,(0,T.Z)({},t,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?r.createElement(e,(0,T.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return r.createElement(n,(0,T.Z)({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,(0,T.Z)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,l=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,v=p.isLoading,g=p.loadingMessage,y=p.minMenuHeight,b=p.maxMenuHeight,x=p.menuIsOpen,E=p.menuPlacement,C=p.menuPosition,w=p.menuPortalTarget,_=p.menuShouldBlockScroll,k=p.menuShouldScrollIntoView,O=p.noOptionsMessage,S=p.onMenuScrollToTop,A=p.onMenuScrollToBottom;if(!x)return null;var P,M=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,l=t.isSelected,s=t.label,c=t.value,p=f===i,h=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},v="".concat(e.getElementId("option"),"-").concat(n),g={id:v,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:l};return r.createElement(u,(0,T.Z)({},d,{innerProps:g,data:i,isDisabled:a,isSelected:l,key:v,label:s,type:o,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,l=t.index,s="".concat(e.getElementId("group"),"-").concat(l),c="".concat(s,"-heading");return r.createElement(n,(0,T.Z)({},d,{key:s,data:i,options:a,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(v){var R=g({inputValue:m});if(null===R)return null;P=r.createElement(s,d,R)}else{var N=O({inputValue:m});if(null===N)return null;P=r.createElement(c,d,N)}var I={minMenuHeight:y,maxMenuHeight:b,menuPlacement:E,menuPosition:C,menuShouldScrollIntoView:k},L=r.createElement(iy,(0,T.Z)({},d,I),(function(t){var n=t.ref,o=t.placerProps,l=o.placement,s=o.maxHeight;return r.createElement(i,(0,T.Z)({},d,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:l}),r.createElement(nb,{captureEnabled:h,onTopArrive:S,onBottomArrive:A,lockEnabled:_},(function(t){return r.createElement(a,(0,T.Z)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:s,focusedOption:f}),P)})))}));return w||"fixed"===C?r.createElement(l,(0,T.Z)({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:E,menuPosition:C}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,l=t.required,s=this.state.selectValue;if(l&&!this.hasValue()&&!o)return r.createElement(ob,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:a,type:"hidden",value:""});return r.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return r.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,l=t.selectValue,s=this.getFocusableOptions();return r.createElement(Ty,(0,T.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:l,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,l=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return r.createElement(o,(0,T.Z)({},f,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,(0,T.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),r.createElement(i,(0,T.Z)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,(0,T.Z)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=zg(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var v=d?function(e,t){return fb(db(e,t))}(e,h):[],g=d?pb(db(e,h),"".concat(s,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:b,focusedOptionId:mb(g,b),focusableOptionsWithIds:g,focusedValue:y,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},E=i,C=a&&l;return a&&!C&&(E={value:Jg(p,h,h[0]||null),options:h,action:"initial-input-focus"},C=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(E=null),Ja(Ja(Ja({},m),x),{},{prevProps:e,ariaSelection:E,prevWasFocused:C})}}]),n}(r.Component);wb.defaultProps=cb;var _b=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function kb(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,a=e.defaultValue,l=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=wl(e,_b),v=Cl((0,r.useState)(void 0!==s?s:n),2),g=v[0],y=v[1],b=Cl((0,r.useState)(void 0!==c?c:i),2),x=b[0],E=b[1],C=Cl((0,r.useState)(void 0!==h?h:l),2),w=C[0],_=C[1],k=(0,r.useCallback)((function(e,t){"function"==typeof u&&u(e,t),_(e)}),[u]),O=(0,r.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),S=(0,r.useCallback)((function(){"function"==typeof p&&p(),E(!0)}),[p]),A=(0,r.useCallback)((function(){"function"==typeof f&&f(),E(!1)}),[f]),P=void 0!==s?s:g,M=void 0!==c?c:x,R=void 0!==h?h:w;return Ja(Ja({},m),{},{inputValue:P,menuIsOpen:M,onChange:k,onInputChange:O,onMenuClose:A,onMenuOpen:S,value:R})}var Ob=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],Sb=(0,r.forwardRef)((function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,o=e.cacheOptions,i=void 0!==o&&o,a=e.loadOptions;e.options;var l=e.isLoading,s=void 0!==l&&l,c=e.onInputChange,u=e.filterOption,d=void 0===u?null:u,f=wl(e,Ob),p=f.inputValue,h=(0,r.useRef)(void 0),m=(0,r.useRef)(!1),v=Cl((0,r.useState)(Array.isArray(n)?n:void 0),2),g=v[0],y=v[1],b=Cl((0,r.useState)(void 0!==p?p:""),2),x=b[0],E=b[1],C=Cl((0,r.useState)(!0===n),2),w=C[0],_=C[1],k=Cl((0,r.useState)(void 0),2),O=k[0],S=k[1],A=Cl((0,r.useState)([]),2),P=A[0],M=A[1],R=Cl((0,r.useState)(!1),2),T=R[0],N=R[1],I=Cl((0,r.useState)({}),2),L=I[0],D=I[1],F=Cl((0,r.useState)(void 0),2),j=F[0],z=F[1],B=Cl((0,r.useState)(void 0),2),H=B[0],V=B[1];i!==H&&(D({}),V(i)),n!==j&&(y(Array.isArray(n)?n:void 0),z(n)),(0,r.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var U=(0,r.useCallback)((function(e,t){if(!a)return t();var n=a(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[a]);(0,r.useEffect)((function(){!0===n&&U(x,(function(e){m.current&&(y(e||[]),_(!!h.current))}))}),[]);var K=(0,r.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,c);if(!n)return h.current=void 0,E(""),S(""),M([]),_(!1),void N(!1);if(i&&L[n])E(n),S(n),M(L[n]),_(!1),N(!1);else{var r=h.current={};E(n),_(!0),N(!O),U(n,(function(e){m&&r===h.current&&(h.current=void 0,_(!1),S(n),M(e||[]),N(!1),D(e?Ja(Ja({},L),{},Xa({},n,e)):L))}))}}),[i,U,O,L,c]),Z=T?[]:x&&O?P:g||[];return Ja(Ja({},f),{},{options:Z,isLoading:w||s,onInputChange:K,filterOption:d})}(e),o=kb(n);return r.createElement(wb,(0,T.Z)({ref:t},o))})),Ab=Sb,Pb=n(518),Mb=n.n(Pb);function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rb.apply(null,arguments)}var Tb=n(7290),Nb=n.n(Tb);function Ib(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Lb(e,t,n[t])}))}return e}function Lb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Db.apply(null,arguments)}const Fb=o().forwardRef(((e,t)=>o().createElement("div",Db({ref:t},e))));function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jb.apply(null,arguments)}function zb(){return zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zb.apply(null,arguments)}Fb.displayName="InputComponent";var Bb=n(6091),Hb=n.n(Bb),Vb=n(5635),Ub=n.n(Vb);function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kb.apply(null,arguments)}const Zb=e=>{const{children:t,selectProps:n,removeProps:r}=e;return o().createElement(Hb(),{tabIndex:-1,label:t,className:n.classes.multiValue,classes:{label:n.classes.multiValue__label},onDelete:r.onClick,deleteIcon:o().createElement(Ub(),Kb({},e.removeProps,{style:{height:"18px",width:"18px",color:"rgba(0,0,0,0.38)",marginRight:"8px"}}))})};function qb(){return qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qb.apply(null,arguments)}Zb.propTypes={children:rt().node,isFocused:rt().bool.isRequired,removeProps:rt().shape({onClick:rt().func.isRequired,onMouseDown:rt().func.isRequired,onTouchEnd:rt().func.isRequired}).isRequired,selectProps:rt().object.isRequired};const Wb=e=>{const{innerProps:t,innerRef:n,children:r,isFocused:i,isSelected:a,label:l,selectProps:{classes:s}}=e;return o().createElement(Vf(),qb({className:f()(s.option,{[s["option--selected"]]:a}),ref:n,selected:i,component:"div"},t),o().createElement(cd,{value:l},o().createElement("div",{className:s["option--item"]},r)))};function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$b.apply(null,arguments)}Wb.propTypes={children:rt().node,innerProps:rt().shape({id:rt().string.isRequired,key:rt().string,onClick:rt().func.isRequired,onMouseMove:rt().func.isRequired,onMouseOver:rt().func.isRequired,tabIndex:rt().number.isRequired}).isRequired,innerRef:rt().oneOfType([rt().oneOf([null]),rt().func,rt().shape({current:rt().any.isRequired})]),isFocused:rt().bool.isRequired,isSelected:rt().bool.isRequired,label:rt().string,selectProps:rt().shape({classes:rt().shape({option:rt().string,"option--selected":rt().string})})};const Gb={ClearIndicator:e=>{const{innerProps:t,selectProps:{classes:n}}=e;return o().createElement(Pd(),Rb({},t,{className:n.clearIndicator,size:"large"}),o().createElement(Mb(),null))},Control:e=>{const{children:t,innerProps:n,innerRef:r,selectProps:{classes:i,TextFieldProps:a={}}}=e;return o().createElement(Nb(),Db({variant:"standard",fullWidth:!0},a,{InputProps:Ib({inputComponent:Fb},a.InputProps,{inputProps:Ib({className:i.control,ref:r,children:t},n,a.inputProps)})}))},DropdownIndicator:e=>{const{innerProps:t,selectProps:{classes:n}}=e;return o().createElement(Pd(),jb({},t,{className:n.dropdownIndicator,size:"large"}),o().createElement(Dm(),null))},GroupHeading:e=>{const{children:t,selectProps:{classes:n}}=e;return o().createElement(Ku(),{variant:"subtitle2",className:f()(n.groupHeading)},t)},Menu:e=>{const{selectProps:{classes:t},innerProps:n,innerRef:r,getStyles:i,children:a}=e;return o().createElement(Ef(),zb({ref:r,style:i("menu",e),className:t.menu},n),a)},MultiValue:Zb,NoOptionsMessage:e=>{const{selectProps:{classes:t},children:n}=e;return o().createElement(Ku(),{color:"textSecondary",className:t.noOptionsMessage},n)},Option:Wb,Placeholder:e=>{const{selectProps:{classes:t},children:n}=e;return o().createElement(Ku(),{color:"textSecondary",className:t.placeholder},n)},SingleValue:e=>{const{selectProps:{classes:t},innerProps:n,children:r}=e;return o().createElement(Ku(),$b({className:t.singleValue},n),r)},ValueContainer:e=>{const{selectProps:{classes:t},children:n,isMulti:r}=e;return o().createElement("div",{className:f()(t.valueContainer,{[t["valueContainer--multi"]]:r})},n)}};function Yb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xb=qn((e=>({control:{display:"flex","&&":{padding:0},height:"auto"},valueContainer:{display:"flex",flexWrap:"nowrap",flex:1,alignItems:"center",overflow:"hidden",marginLeft:e.spacing(1)},"valueContainer--multi":{flexWrap:"wrap"},multiValue:{margin:e.spacing(.5,.5),maxWidth:"calc(100% - 8px)"},multiValue__label:{paddingRight:0,marginRight:12,maxWidth:"100%",overflow:"hidden"},noOptionsMessage:{padding:e.spacing(1,2)},singleValue:{fontSize:16,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},placeholder:{position:"absolute",left:6,bottom:10,fontSize:16},menu:{zIndex:40,marginTop:e.spacing(1)},clearIndicator:{},dropdownIndicator:{},groupHeading:{paddingLeft:"28px"},option:{fontWeight:400},"option--selected":{fontWeight:400},"option--item":{display:"block",width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"}})));function Qb(){return Qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qb.apply(null,arguments)}function Jb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){ex(e,t,n[t])}))}return e}function ex(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tx=e=>{function t(t){const{components:n,classes:r,error:i,TextFieldProps:a,innerRef:l}=t,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["components","classes","error","TextFieldProps","innerRef"]),c=Xb(),u=Jb({},Gb,n),d=((e,t)=>(0,p.union)(Object.keys(e),Object.keys(t)).reduce(((n,r)=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Yb(e,t,n[t])}))}return e}({},n,{[r]:f()(e[r],t[r])})),{}))(c,r);return o().createElement(e,Qb({ref:l,components:u,classes:d,TextFieldProps:Jb({},a,{error:i})},s))}return t.displayName=`withMuiSkin(${e.displayName||e.name})`,t.defaultProps={components:{},classes:{}},t},nx=tx(Ab),rx=tx((0,r.forwardRef)((function(e,t){var n=kb(e);return r.createElement(wb,(0,T.Z)({ref:t},n))}))),ox=()=>null;var ix=n(1884),ax=n.n(ix);const lx=o().createContext(null);lx.displayName="PopupBoundariesContext";const sx=qn({popper:{borderRadius:"4px",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",backgroundColor:"#FFFFFF",margin:0,zIndex:1e4}});function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cx.apply(null,arguments)}const ux=e=>{const{selectProps:{inputRef:t,menuIsOpen:n,inputValue:i},innerRef:a,children:l,innerProps:s}=e,[c,u]=(0,r.useState)("id");(0,r.useEffect)((()=>{u(((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))())}),[i]);const d=sx(),f=(0,r.useContext)(lx),h=Boolean(null==f?void 0:f.element),m=h?f.element.clientWidth:window.innerWidth;return o().createElement(Pf,{anchorEl:t.current,open:n,className:d.popper,key:c,modifiers:[{name:"preventOverflow",enabled:!0,options:{altAxis:!0,altBoundary:!0,tether:!1,boundary:h?f.element:document.body,padding:5}}],placement:"bottom-start"},o().createElement(Ef(),cx({ref:a,style:{minWidth:Math.min((0,p.prop)("clientWidth",t.current),m),maxWidth:Math.min(521,m)}},s),l))};ux.propTypes={children:rt().oneOfType([rt().element,rt().array]).isRequired,selectProps:rt().shape({inputRef:rt().object.isRequired,menuIsOpen:rt().bool.isRequired,inputValue:rt().string}).isRequired,innerRef:rt().oneOfType([rt().oneOf([null]),rt().func,rt().shape({current:rt().any})]).isRequired,innerProps:rt().object.isRequired};const dx=qn((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),fx=e=>{const{selectProps:{onCreate:t,createLabel:n,inputValue:r,components:i,canCreateOption:a},children:l}=e,s=dx();return o().createElement(ux,e,l,n&&!(0,p.prop)("Group",i)&&a()&&o().createElement("span",{className:s.addLabel,onClick:()=>t(r)},o().createElement(ax(),{className:s.addIcon}),n))},px=qn({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"17px"}});function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hx.apply(null,arguments)}const mx=e=>{const{selectProps:{menuIsOpen:t},innerProps:n,children:r}=e,i=px();return!t&&o().createElement(Ku(),hx({className:i.singleValue},n),r)};function vx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){gx(e,t,n[t])}))}return e}function gx(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}mx.propTypes={children:rt().node,innerProps:rt().object};const yx=qn({control:{height:"auto"},dropdownIndicator:{boxSizing:"content-box",transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),bx={menu:e=>vx({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",margin:0}),menuList:e=>vx({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>vx({},e,{padding:"0 0 8px 0"}),input:e=>vx({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>vx({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},xx={menuList:e=>vx({},e,{padding:0})},Ex={input:e=>vx({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function Cx(){return Cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cx.apply(null,arguments)}function wx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){_x(e,t,n[t])}))}return e}function _x(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kx=e=>{let{value:t,label:n,options:i,getOptions:a,createLabel:l,height:c=46,onChange:u=p.identity,onCreate:d,canCreateOption:h=()=>Boolean(d),onClear:m=p.identity,components:v={},textFieldInputRef:g,TextFieldProps:y,classes:b={}}=e,x=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","label","options","getOptions","createLabel","height","onChange","onCreate","canCreateOption","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const E=yx({height:c}),[C,w]=(0,r.useState)(!1),_=(0,r.useRef)(null),k=a?nx:rx,O=(0,p.prop)("ClearIndicator",v)?{}:{IndicatorSeparator:ox,ClearIndicator:ox},S=d?(e,t)=>{d(e,t),w(!1)}:void 0,A=(0,p.prop)("Group",v)?xx:{},P=(0,p.isEmpty)(n)?Ex:{},M=wx({},bx,A,P),R=wx({},E,b);return o().createElement(k,Cx({placeholder:"",defaultOptions:!0},x,{value:(0,p.defaultTo)(null,t),loadOptions:a,options:i,cacheOptions:!0,onChange:u,onCreate:S,onClear:m,createLabel:l,canCreateOption:h,classes:R,styles:M,components:wx({DropdownIndicator:zm,LoadingIndicator:ox,SingleValue:mx,Menu:fx},O,v),menuPlacement:"auto",TextFieldProps:wx({},y,{label:n,variant:"filled",size:"small",classes:wx({},(0,p.prop)("classes",y),{root:f()(E.formControl,(0,p.path)(["classes","root"],y))}),inputProps:wx({},(0,p.prop)("inputProps",y)),InputProps:wx({},(0,p.prop)("InputProps",y),{classes:wx({},(0,p.path)(["InputProps","classes"],y),{root:f()(E.filledInputRoot,(0,p.path)(["InputProps","classes","root"],y)),underline:f()({[E.filledInputUnderline]:(0,s.isEmptyValue)(t)},(0,p.path)(["InputProps","classes","underline"],y)),focused:f()("focused",(0,p.path)(["InputProps","classes","focused"],y))})}),InputLabelProps:wx({},(0,p.prop)("InputLabelProps",y),{classes:wx({},(0,p.path)(["InputLabelProps","classes"],y),{root:f()(E.inputLabel,(0,p.path)(["InputLabelProps","classes","root"],y)),shrink:f()("shrink",(0,p.path)(["InputLabelProps","classes","shrink"],y))}),shrink:!(0,s.isEmptyValue)(t)||void 0}),ref:g||_}),inputRef:g||_,menuIsOpen:C,onMenuOpen:()=>w(!0),onMenuClose:()=>w(!1)}))};var Ox=n(2614);hd()(Ox.Z,{insert:"head",singleton:!1});const Sx=Ox.Z.locals||{},Ax=({hierarchyOptions:e,instanceId:t,onChange:n})=>{const i=(0,r.useMemo)((()=>e.map((({value:e,label:t})=>({value:e,label:t})))),[e]),a=(0,r.useMemo)((()=>i.find((e=>e.value===t))||i[0]),[i,t]),l=(0,r.useCallback)((e=>n(e.value)),[n]);return o().createElement(kx,{classes:{valueContainer:Sx.valueContainer},className:Sx.hierarchyTypeSelector,height:42,label:u().text("Hierarchy type"),value:a,options:i,onChange:l,TextFieldProps:{InputProps:{disableUnderline:!1,classes:{root:Sx.filledInputRoot}}}})};var Px=n(3110);hd()(Px.Z,{insert:"head",singleton:!1});const Mx=Px.Z.locals||{},Rx=({title:e,instanceId:t,onInstanceIdChange:n,hierarchyOptions:r,hasHierarchy:i})=>o().createElement("div",{className:Mx.headerContainer},o().createElement(Im,{className:Mx.header},o().createElement(Ax,{instanceId:t,onChange:n,hierarchyOptions:r})),i&&o().createElement(Im,{title:e,className:Mx.header})),Tx=(0,r.memo)(Rx),Nx=qn({link:{textDecoration:"inherit",color:"inherit","&:visited":{textDecoration:"inherit",color:"inherit"}}}),Ix=({to:e,children:t,onClick:n})=>{const r=Nx();return o().createElement("a",{href:e,onClick:t=>{rp(t)&&e||!n||(n(),t.stopPropagation(),t.preventDefault())},className:r.link},t)},Lx=qn((e=>({image:{width:"40px",height:"40px"},info:{marginLeft:"12px",overflow:"hidden",display:"flex",flexDirection:"column"},label:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre",fontWeight:400,fontSize:"13px",lineHeight:"15px",color:e.palette.primary.main},secondaryLabel:{marginTop:"4px",fontWeight:400,fontSize:"10px",lineHeight:"12px",color:e.palette.text.secondary,whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis"},link:{textDecoration:"none"},thirdRow:{display:"flex",overflow:"hidden",alignItems:"center",marginTop:"auto",paddingTop:"4px"},entityId:{display:"flex",overflow:"hidden",alignItems:"baseline",whiteSpace:"nowrap",fontWeight:400,fontSize:"12px",lineHeight:"16px"},entityIdLabel:{color:e.palette.text.secondary},entityIdValue:{marginLeft:"8px",color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis","&[aria-describedby]":{cursor:"pointer","&:hover":{textDecoration:"underline"}}}}))),Dx=({entity:e,classes:t={}})=>{const n=Lx(),{secondaryLabel:i,label:a}=t,l=(0,s.getLabel)(e.label),{secondaryLabel:c}=e,d=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,s.getEntityId)(e))}),[e]);return o().createElement(o().Fragment,null,o().createElement(Gu,{entity:e,imageClassName:n.image}),o().createElement("div",{className:n.info},o().createElement(ip,{value:(0,s.getEntityUriForLink)(e),className:n.link},o().createElement(cd,{value:l,placement:"top",showOnExceededHeight:!0},o().createElement("div",{className:f()(n.label,a)},l))),c&&o().createElement(cd,{value:c,placement:"top",showOnExceededHeight:!0},o().createElement("div",{className:f()(n.secondaryLabel,i)},c)),o().createElement("div",{className:n.thirdRow},o().createElement(fd,{entity:e,size:"medium"}),o().createElement("div",{className:n.entityId,onClick:d},o().createElement("div",{className:n.entityIdLabel},u().text("ID:")),o().createElement(cd,{value:`Copy to clipboard ${(0,s.getEntityId)(e)}`,placement:"top"},o().createElement("div",{className:n.entityIdValue},(0,s.getEntityId)(e)))))))},Fx=qn({"@keyframes keyframes-wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},wave:{overflow:"hidden",position:"relative","&:after":{top:"0",left:"0",right:"0",bottom:"0",content:'""',position:"absolute",animation:"$keyframes-wave 1.6s linear 0.5s infinite",transform:"translateX(-100%)",background:"linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);"}},avatar:{flex:"none",width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.11)"},info:{marginLeft:"12px",flex:"auto"},label:{width:"40%",height:"15px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.11)"},secondaryLabel:{marginTop:"4px",width:"100%",height:"12px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.11)"},thirdRow:{marginTop:"4px",width:"60%",height:"24px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.11)"}}),jx=()=>{const e=Fx();return o().createElement(o().Fragment,null,o().createElement("div",{"data-reltio-id":"profile-card-placeholder-avatar",className:f()(e.avatar,e.wave)}),o().createElement("div",{"data-reltio-id":"profile-card-placeholder-info",className:e.info},o().createElement("div",{className:f()(e.label,e.wave)}),o().createElement("div",{className:f()(e.secondaryLabel,e.wave)}),o().createElement("div",{className:f()(e.thirdRow,e.wave)})))},zx=qn({container:{display:"flex",padding:"16px",overflow:"hidden"}});function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bx.apply(null,arguments)}const Hx=e=>{let{entity:t,classes:n={},variant:r="normal"}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["entity","classes","variant"]);const a=zx(),{container:l}=n;return o().createElement("div",Bx({className:f()(a.container,l)},i),"normal"===r?o().createElement(Dx,{entity:t,classes:n}):o().createElement(jx,null))},Vx=(0,r.memo)(Hx),Ux=qn((e=>({link:{cursor:"pointer",color:e.palette.primary.main,lineHeight:"15px",wordBreak:"break-word",whiteSpace:"break-spaces"},selected:{fontWeight:"bold"},popper:{maxWidth:"345px",minWidth:"200px",boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",backgroundColor:"white",borderRadius:"2px"}}))),Kx=({title:e,isSelected:t,entityUri:n,anchorEl:i,withEntityDetails:a=!0,classNames:l})=>{const c=Ux(),{generateEntityUrl:u}=(0,r.useContext)(np),d=M("openEntity"),p=w(),{isLoading:h,entityDetails:m,showEntityDetails:v,hideEntityDetails:g}=(e=>{const[t,n]=(0,r.useState)(null),[o,i]=(0,r.useState)(!1),a=Ud(),l=(0,r.useCallback)((()=>a(Promise.resolve())),[a]),c=O(),u=C((e=>e.showMasking)),d=(0,r.useMemo)((()=>(0,s.addGetEntityMaskingOptions)(c,{showMasking:u,showAccess:!1})),[c,u]),f=(0,r.useCallback)((0,s.debounce)((()=>{i(!0),a((0,s.getEntity)(e,d)).then(n).catch((e=>{console.warn("Failed to load entity",e)})).finally((()=>i(!1)))}),1e3),[e,a,d]),p=(0,r.useCallback)((()=>{l(),f.cancel(),i(!1),n(null)}),[f,l]);return(0,r.useEffect)((()=>()=>f.cancel()),[]),{isLoading:o,entityDetails:t,showEntityDetails:f,hideEntityDetails:p}})(n),y=u({uiPath:p,uri:n}),b=Boolean(i)&&(Boolean(m)||h),x=(0,r.useCallback)((()=>{d({uri:n})}),[d,n]);return o().createElement(o().Fragment,null,o().createElement("span",{"data-reltio-id":"reltio-hierarchy-node-title",className:f()(c.link,{[c.selected]:t},l),onMouseEnter:a?v:void 0,onMouseLeave:a?g:void 0},o().createElement(Ix,{to:y,onClick:x},e)),o().createElement(Pf,{anchorEl:i,className:c.popper,open:b,modal:!1,placement:"top-start"},o().createElement(Vx,{entity:m,variant:h?"loading":"normal"})))};var Zx=n(4055);function qx(){return qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qx.apply(null,arguments)}const Wx=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",qx({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("path",{d:"M8 1.333C4.367 1.333 1.333 4.367 1.333 8S4.367 14.667 8 14.667 14.667 11.633 14.667 8 11.633 1.333 8 1.333zm-1.333 10L3.334 8l.94-.94 2.393 2.387 5.06-5.06.94.947-6 6z",fill:"#0072CE"}))};function $x(){return $x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$x.apply(null,arguments)}const Gx=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",$x({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("circle",{cx:"8",cy:"8",r:"7.2",fill:"#0072CE",fillOpacity:".25"}),o().createElement("path",{d:"M7.021 8.746l-.693.693c-.324-.33-.64-.76-.838-1.359l.837-.213c.142.402.358.692.694 1.016zM7.556 6L5.777 4.222 4 6h1.343c.009.36.035.684.084.963l.837-.214c-.031-.22-.055-.48-.058-.749h1.35zM12 6l-1.778-1.778L8.444 6H9.78c-.052 1.636-.576 2.08-1.137 2.571-.337.294-.68.608-.945.977a3.518 3.518 0 00-.56-.617l-.689.69c.435.397.728.724.728 1.468v2.022h.863V11.09c0-.858.306-1.124.836-1.602.646-.569 1.459-1.29 1.51-3.487h1.615z",fill:"#0072CE"}))};var Yx=n(3872);hd()(Yx.Z,{insert:"head",singleton:!1});const Xx=Yx.Z.locals||{},Qx=({data:e,entityId:t})=>{var n;const{label:i,hasManyParents:a,entityId:l}=e,c=t===l,u=(0,r.useRef)(null),d=(0,vr.useSelector)(yr().selectors.getAbsoluteImagePath),p=(0,vr.useSelector)(yr().selectors.getMetadata),h=(0,s.createEntityUriFromEntityId)(l),m=(0,r.useMemo)((()=>(({entityType:e,metadata:t,absoluteImagePath:n})=>{if(!e||!t||!n)return;const r=(0,s.getEntityType)(t,e),o=r?(0,s.getPropWithInheritance)(t,r,"typeGraphIcon"):null;if("string"!=typeof o||!o)return;const i=(0,s.getAbsoluteImageUrl)(n,o);return null!=i?i:void 0})({entityType:e.entityType,metadata:p,absoluteImagePath:d})),[d,e.entityType,p]);return o().createElement("div",{className:Xx.container,"data-reltio-id":"hierarchy-tree-list-item",ref:u},o().createElement($u(),{className:Xx.icon,src:null!=m?m:Zx}),o().createElement(Kx,{classNames:f()(Xx.label,{[Xx.currentEntity]:c}),title:(0,s.getLabel)(i),entityUri:h,isSelected:c,anchorEl:null!==(n=u.current)&&void 0!==n?n:void 0}),c&&o().createElement(Wx,{className:Xx.icon}),a&&o().createElement(Gx,{className:Xx.icon}))},Jx=(0,r.memo)(Qx),eE=()=>o().createElement(gm,{LogoRenderer:vm.SELECT_ATTRIBUTES,text:u().text("Create your first hierarchy"),secondaryText:u().text("Create a hierarchy to define how this profile relates to other entities and visualise its structure."),variant:mm.embedded});var tE=n(5670);hd()(tE.Z,{insert:"head",singleton:!1});const nE=tE.Z.locals||{},rE=({instanceId:e,onInstanceIdChange:t})=>{const n=(0,vr.useSelector)(yr().selectors.getEntity),i=(0,s.getEntityId)(n),[a,l]=(0,r.useState)([]),{hierarchyOptions:c,selectedInstanceId:d,hierarchyTitle:f,hierarchies:h,isLoading:m,errorMessage:v}=(({instanceId:e,onInstanceIdChange:t})=>{var n;const o=(0,vr.useSelector)(yr().selectors.getEntity),i=(0,vr.useSelector)(yr().selectors.getMetadata),a=(0,r.useContext)(wm),l=Ud(),[c,d]=(0,r.useState)(null),[f,h]=(0,r.useState)(!1),[m,v]=(0,r.useState)(null),g=(0,s.getEntityId)(o),y=null==o?void 0:o.type,b=(0,r.useMemo)((()=>{var e;const t=y?(0,s.getHierarchyTypesForEntityType)(i,y):null!==(e=null==i?void 0:i.hierarchyTypes)&&void 0!==e?e:[];return(({hierarchies:e=[],allowedHierarchyTypes:t})=>{const n=(0,p.fromPairs)(t.map((({uri:e,label:t})=>[e,null!=t?t:e]))),r=(0,p.map)((({uri:e})=>e),t),o=e.filter((({type:e})=>(0,p.includes)(e,r))),i=o.reduce(((e,{type:t})=>{var n;return e[t]=(null!==(n=e[t])&&void 0!==n?n:0)+1,e}),{});return o.map((({type:e,name:t,hierarchyId:r,singleInstanceId:o})=>{var a;const l=null!==(a=n[e])&&void 0!==a?a:e;return{value:o,label:i[e]>1?`${l} (${t||r||o})`:l,typeUri:e}}))})({hierarchies:null!=c?c:[],allowedHierarchyTypes:t})}),[y,c,i]),x=(0,r.useMemo)((()=>{var t,n,r,o;return null!==(t=null!==(n=null===(r=b.find((({value:t})=>t===e)))||void 0===r?void 0:r.value)&&void 0!==n?n:null===(o=b[0])||void 0===o?void 0:o.value)&&void 0!==t?t:null}),[b,e]),E=(0,r.useMemo)((()=>null==c?void 0:c.find((({singleInstanceId:e})=>e===x))),[c,x]),C=null!==(n=null==E?void 0:E.name)&&void 0!==n?n:u().text("Hierarchy"),w=(0,r.useCallback)((async()=>{if(g){h(!0),v(null);try{const e=await l((0,s.getHierarchyList)({entityId:g,signal:a}));d(null!=e?e:[])}catch(t){var e;if((0,s.isAbortError)(t))return;console.warn("Failed to load hierarchy list",t),v(null!==(e=null==t?void 0:t.message)&&void 0!==e?e:u().text("Failed to load hierarchy list"))}finally{h(!1)}}}),[g,l,a]);return(0,r.useEffect)((()=>{w()}),[w]),(0,r.useEffect)((()=>{x&&x!==e&&t(x)}),[x,e,t]),{hierarchyOptions:b,selectedInstanceId:x,hierarchyTitle:C,hierarchies:c,isLoading:f,errorMessage:m}})({instanceId:e,onInstanceIdChange:t}),{treeData:g,isLoading:y,errorMessage:b,loadNodeChildren:x,pathToCurrentEntity:E}=(({entityId:e,selectedInstanceId:t,setExpandedKeys:n,activenessDate:o})=>{const i=(0,r.useContext)(wm),a=Ud(),l=Ud({cancelPrevious:!1}),[c,d]=(0,r.useState)([]),[f,h]=(0,r.useState)(!1),[m,v]=(0,r.useState)(null),g=(0,r.useMemo)((()=>(0,p.isNil)(o)?void 0:new Date(o).toISOString()),[o]),y=(0,r.useMemo)((()=>((e,t)=>t&&0!==e.length?e.reduce(((e,n)=>{var r;const o=n.entityId===t?[[n]]:[],i=(null!==(r=n.children)&&void 0!==r?r:[]).reduce(((e,r)=>{const o=(0,s.getPathByCondition)((({entityId:e})=>e===t),r);return o.length>0&&e.push([n,...o]),e}),[]);return e.push(...o,...i),e}),[]):[])(c,e)),[e,c]),b=(0,r.useCallback)((async()=>{if(e&&t){h(!0),v(null);try{const n=await a((0,s.getHierarchy)({instanceId:t,entityId:e,date:g,signal:i})),r=Sm(n);d(r?[r]:[])}catch(e){var n;if((0,s.isAbortError)(e))return;console.warn("Failed to load hierarchy tree",e),v(null!==(n=null==e?void 0:e.message)&&void 0!==n?n:u().text("Failed to load hierarchy"))}finally{h(!1)}}}),[g,e,t,a,i]),x=(0,r.useCallback)(((e,t)=>{d((n=>((e,t,n)=>Pm(e,(e=>e.id===t),(e=>e.isLoading===n?e:_m({},e,{isLoading:n}))))(n,e,t)))}),[d]),E=(0,r.useCallback)(((e,t)=>{d((n=>((e,t,n)=>Pm(e,(e=>e.id===t),(e=>_m({},e,{children:Am(e.children,n),pending:!1,isLoading:!1}))))(n,e,t)))}),[d]),C=(0,r.useCallback)((async e=>{const{entityId:n,id:r,label:o}=e;if(!t||!n)return!0;x(r,!0);try{var a;const e=await l((0,s.getHierarchyChildren)({instanceId:t,entityId:n,date:g,signal:i})),o=null!==(a=null==e?void 0:e.map(Sm).filter(Boolean))&&void 0!==a?a:[];return o.length>0?E(r,o):x(r,!1),!0}catch(e){if(x(r,!1),(0,s.isAbortError)(e))return;return console.warn("Failed to load hierarchy children view",e),Xn(e,{message:u().text("Failed to load children for node ${label}",{label:o})}),!1}}),[g,t,l,x,i,E]),w=(0,r.useCallback)((async e=>{await C(e)||n((t=>t.filter((t=>t!==e.id))))}),[C,n]);return(0,r.useEffect)((()=>{d([]),v(null),b()}),[b,t]),(0,r.useEffect)((()=>{if(!y.length)return;const e=y.map((e=>e[e.length-1])).filter((e=>Boolean(e))).filter((e=>e.pending&&!e.isLoading));e.forEach(w)}),[y,w]),{treeData:c,isLoading:f,errorMessage:m,pathToCurrentEntity:y,reload:b,updateChildren:E,setNodeLoading:x,loadNodeChildren:w}})({entityId:i,selectedInstanceId:d,setExpandedKeys:l}),C=(0,r.useCallback)((async(e,t)=>{l(e),t.pending&&!t.isLoading&&await x(t)}),[x]);(0,r.useEffect)((()=>{l([])}),[e]),(0,r.useEffect)((()=>{var e;if(null==g||null===(e=g[0])||void 0===e||!e.id)return;const t=E.length>0?E.flatMap((e=>e.map((({id:e})=>e)))):[g[0].id];l((e=>e.length>0?e:t))}),[E]);const w=(0,r.useCallback)((({data:e})=>o().createElement(Jx,{data:e,entityId:i})),[i]),_=m||y,k=null!=v?v:b,O=!_&&0===(null==h?void 0:h.length)&&0===(null==g?void 0:g.length)&&!k,S=(0,r.useMemo)((()=>_?o().createElement(o().Fragment,null,o().createElement(am,null),o().createElement(gm,{LogoRenderer:vm.LOADING,text:u().text("Loading ..."),variant:mm.embedded})):k?o().createElement(gm,{LogoRenderer:vm.ERROR,text:k,variant:mm.embedded}):O?o().createElement(eE,null):o().createElement("div",{className:nE.hierarchyTreeContainer},o().createElement(Vu,{data:g,LabelComponent:w,expandedKeys:a,onExpand:C}))),[_,k,O,g,a,C,w]);return o().createElement(Cm,{className:nE.hierarchyView},o().createElement(nm,{entity:n}),o().createElement("div",{className:nE.hierarchyContainer},o().createElement(Tx,{title:f,instanceId:d,onInstanceIdChange:t,hierarchyOptions:c,hasHierarchy:!O&&!_}),S))},oE=rr()({productionPrefix:"hierarchy",disableGlobal:!0,seed:"hier"}),iE=({instanceId:e,onInstanceIdChange:t})=>o().createElement(ir(),{generateClassName:oE},o().createElement(mr,{dateAdapter:dr},o().createElement(tr,null,o().createElement(rE,{instanceId:e,onInstanceIdChange:t}))))},1552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,'.ProfileBand-profileBandWrapper--SO4U7{box-shadow:0 1px 0 rgba(0,0,0,.12);flex-shrink:0;margin-bottom:1px}.ProfileBand-profileBand--arzRh{align-items:flex-start;background-color:#fff;display:flex;padding:16px 12px 16px 16px}.ProfileBand-profileBand--arzRh:after{content:"";font-size:0;min-height:inherit}.ProfileBand-inactive--DCQSZ{background:var(--mui-inactiveBackground)}.ProfileBand-profileIcon--sQyrJ{margin-right:12px}.ProfileBand-imageProfileIcon--ARcZw{height:48px;width:48px}.ProfileBand-profileInfo--kSnV3{display:flex;flex:1 1 50%;flex-direction:column}.ProfileBand-label--Sigpt{color:var(--mui-palette-text-primary);letter-spacing:.25px;line-height:1.2;white-space:break-spaces;word-break:break-word}.ProfileBand-label--Sigpt+.ProfileBand-specialInfo--bjxGx{margin-top:4px}.ProfileBand-secondaryLabel--tYf1j{color:var(--mui-palette-text-primary);display:inline-flex;font-size:14px;font-weight:400;line-height:16px;margin-top:2px;white-space:break-spaces}.ProfileBand-secondaryLabel--tYf1j+.ProfileBand-businessCard--sjn5N{margin-left:12px}.ProfileBand-businessCard--sjn5N{color:var(--mui-palette-text-secondary);display:inline-flex;font-size:14px;line-height:1.2;margin-top:4px;white-space:break-spaces}.ProfileBand-specialInfo--bjxGx{justify-content:space-between;margin-top:8px;width:100%}.ProfileBand-entityType--ndiVA,.ProfileBand-specialInfo--bjxGx{display:flex;flex-wrap:wrap}.ProfileBand-entityId--piIyT{color:var(--mui-palette-text-secondary);cursor:pointer;font-size:13px;white-space:nowrap}.ProfileBand-entityId--piIyT:hover{text-decoration:underline}',""]),a.locals={profileBandWrapper:"ProfileBand-profileBandWrapper--SO4U7",profileBand:"ProfileBand-profileBand--arzRh",inactive:"ProfileBand-inactive--DCQSZ",profileIcon:"ProfileBand-profileIcon--sQyrJ",imageProfileIcon:"ProfileBand-imageProfileIcon--ARcZw",profileInfo:"ProfileBand-profileInfo--kSnV3",label:"ProfileBand-label--Sigpt",specialInfo:"ProfileBand-specialInfo--bjxGx",secondaryLabel:"ProfileBand-secondaryLabel--tYf1j",businessCard:"ProfileBand-businessCard--sjn5N",entityType:"ProfileBand-entityType--ndiVA",entityId:"ProfileBand-entityId--piIyT"};const l=a},3110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".HierarchyHeader-headerContainer--i8NFh{display:flex;flex-direction:column;margin-bottom:6px}.HierarchyHeader-header--qNYQr{align-items:center;box-shadow:0 1px 0 rgba(0,0,0,.12);display:flex;font-size:16px;justify-content:space-between}",""]),a.locals={headerContainer:"HierarchyHeader-headerContainer--i8NFh",header:"HierarchyHeader-header--qNYQr"};const l=a},3872:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".HierarchyTreeListItem-container--rAVHe{align-items:center;display:inline-flex;gap:8px;line-height:20px}.HierarchyTreeListItem-icon--G7Zhm{height:16px;width:16px}.HierarchyTreeListItem-label--IsA3m{align-items:center;color:var(--mui-palette-text-primary);display:inline-flex}.HierarchyTreeListItem-label--IsA3m:hover{color:var(--mui-palette-primary-main)}.HierarchyTreeListItem-currentEntity--qozy7{font-weight:600}",""]),a.locals={container:"HierarchyTreeListItem-container--rAVHe",icon:"HierarchyTreeListItem-icon--G7Zhm",label:"HierarchyTreeListItem-label--IsA3m",currentEntity:"HierarchyTreeListItem-currentEntity--qozy7"};const l=a},2614:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".HierarchyTypeSelector-hierarchyTypeSelector--EFdYu{min-width:200px;opacity:1}.HierarchyTypeSelector-filledInputRoot--tjx3E{border-radius:4px}.HierarchyTypeSelector-valueContainer--x4SaZ{margin-left:16px;width:auto}",""]),a.locals={hierarchyTypeSelector:"HierarchyTypeSelector-hierarchyTypeSelector--EFdYu",filledInputRoot:"HierarchyTypeSelector-filledInputRoot--tjx3E",valueContainer:"HierarchyTypeSelector-valueContainer--x4SaZ"};const l=a},5670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".InternalHierarchyScreen-hierarchyView--iHF8w{background-color:var(--mui-palette-background-default);bottom:0;left:0;position:absolute;right:0;top:0}.InternalHierarchyScreen-hierarchyContainer--l1Wff,.InternalHierarchyScreen-hierarchyView--iHF8w{display:flex;flex-direction:column;overflow:hidden}.InternalHierarchyScreen-hierarchyContainer--l1Wff{background-color:var(--mui-palette-background-paper);border-radius:4px;box-shadow:1px 4px 4px 1px rgba(0,0,0,.25);flex:1 1 auto;margin:20px 16px 10px;min-height:0}.InternalHierarchyScreen-hierarchyTreeContainer--I28Q7{flex:1 1 auto;overflow:auto;padding:16px 0;width:100%}",""]),a.locals={hierarchyView:"InternalHierarchyScreen-hierarchyView--iHF8w",hierarchyContainer:"InternalHierarchyScreen-hierarchyContainer--l1Wff",hierarchyTreeContainer:"InternalHierarchyScreen-hierarchyTreeContainer--I28Q7"};const l=a},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},3463:(e,t,n)=>{"use strict";var r=n(8570),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 r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=s(t),m=s(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||m&&m[g]||l&&l[g])){var y=f(n,g);try{c(t,g,y)}catch(e){}}}}return t}},7677:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},3366:(e,t,n)=>{var r=n(857),o=n(2107),i=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},1704:(e,t,n)=>{var r=n(2153),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2107:(e,t,n)=>{var r=n(857),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7772:(e,t,n)=>{var r=n(1242),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4073:(e,t,n)=>{var r=n(9259),o=n(1100),i=n(7642),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,d,f,p,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||v&&e-h>=u}function x(){var e=o();if(b(e))return E(e);f=setTimeout(x,function(e){var n=t-(e-p);return v?l(n,u-(e-h)):n}(e))}function E(e){return f=void 0,g&&s?y(e):(s=c=void 0,d)}function C(){var e=o(),n=b(e);if(s=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(x,t),m?y(e):d}(p);if(v)return clearTimeout(f),f=setTimeout(x,t),y(p)}return void 0===f&&(f=setTimeout(x,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(v="maxWait"in n)?a(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),C.cancel=function(){void 0!==f&&clearTimeout(f),h=0,s=p=c=f=void 0},C.flush=function(){return void 0===f?d:E(o())},C}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var r=n(3366),o=n(5125);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},1100:(e,t,n)=>{var r=n(7772);e.exports=function(){return r.Date.now()}},2436:(e,t,n)=>{var r=n(4073),o=n(9259);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},7642:(e,t,n)=>{var r=n(1704),o=n(9259),i=n(4795),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,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<arguments.length;s++){for(var c in i=Object(arguments[s]))n.call(i,c)&&(l[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l}},7467:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case u:case h:case p:case l:return e;default:return t}}case r:return t}}}(e)===p}},1818:(e,t,n)=>{"use strict";e.exports=n(7467)},4660:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(8156)),i=r(n(5099)),a=r(n(3627)),l=r(n(9233)),s=r(n(4294)),c=r(n(5751)),u=r(n(8310));function d(e){var t=e.classes,n=e.title,r=e.message;return o.default.createElement("div",null,o.default.createElement("span",{className:t.errorTitle},n),o.default.createElement("span",{className:t.errorMessage},r))}d.defaultProps={title:c.default.text("Error:"),message:c.default.text("Something was wrong"),classes:{}},d.propTypes={title:i.default.string,message:i.default.string,classes:i.default.object};var f=function(e){var t,n=e.error,r=e.onClose,i=e.style,f=e.classes,p=e.className,h=c.default.text("Close");if(o.default.isValidElement(n))t=n;else{var m=n||{},v=m.title,g=m.message;t=o.default.createElement(d,{classes:f,title:v,message:g})}return o.default.createElement("div",{className:(0,u.default)(f.errorBlock,p),style:i,"data-reltio-id":"error-message"},o.default.createElement("div",{className:f.descriptionBlock},t),o.default.createElement("div",{className:f.closeIconContainer},o.default.createElement(a.default,{title:h,placement:"bottom"},o.default.createElement(l.default,{onClick:r,"aria-label":h,size:"large"},o.default.createElement(s.default,null)))))};f.propTypes={id:i.default.oneOfType([i.default.string,i.default.number]),error:i.default.oneOfType([i.default.node,i.default.shape({title:i.default.string,message:i.default.string})]),style:i.default.object,onClose:i.default.func,className:i.default.oneOfType([i.default.string,i.default.object]),classes:i.default.object},f.defaultProps={classes:{}};var p=f;t.default=p},4176:(e,t,n)=>{"use strict";var r=n(1600),o=n(7425);t.ZP=void 0;var i=r(n(3100)),a=r(n(8870)),l=r(n(5297)),s=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),p=r(n(5099)),h=n(7420),m=r(n(4660)),v=r(n(1230)),g=r(n(1444));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}var b=function(e){(0,s.default)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.default)(t);if(n){var o=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function o(e){var t;return(0,i.default)(this,o),t=r.call(this,e),(0,d.default)((0,l.default)(t),"processAutoCloseInterval",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t.autoCloseInterval&&(t.timer&&(clearTimeout(t.timer),t.timer=null),e&&(t.timer=setTimeout((function(){t.handleCloseErrorMessage()}),t.autoCloseInterval)))})),o.$$instance=(0,l.default)(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind((0,l.default)(t)),t.state={errors:[]},t}return(0,a.default)(o,[{key:"handleCloseErrorMessage",value:function(){var e=this.state.errors,t=e.length;this.setState({errors:e.slice(0,t-1)}),this.processAutoCloseInterval(t>1)}},{key:"autoCloseInterval",get:function(){return 1e3*(this.props.autoCloseInterval||0)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.classes,r=this.state.errors,o=r.length,i=r[o-1];return f.default.createElement(h.TransitionGroup,null,Boolean(o)&&f.default.createElement(h.CSSTransition,{key:"errorMessage".concat(o),classNames:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,exit:n.errorContainerExit,exitActive:n.errorContainerExitActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},timeout:{enter:600,exit:300}},f.default.createElement(m.default,{classes:n,onClose:this.handleCloseErrorMessage,error:i,className:t})))}}],[{key:"addError",value:function(e){o.$$instance&&(o.$$instance.setState({errors:o.$$instance.state.errors.concat(e)}),o.$$instance.processAutoCloseInterval())}}]),o}(f.PureComponent);b.propTypes={className:p.default.oneOfType([p.default.string,p.default.object]),classes:p.default.object,autoCloseInterval:p.default.number},b.defaultProps={classes:{}};var x=(0,v.default)(g.default)(b);t.ZP=x},1444:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6290)),i="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerExit:{opacity:1},errorContainerExitActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:i,position:"absolute",display:"flex",left:346,top:64,right:90,background:"linear-gradient(180deg, ".concat("#E54C4C"," 0%, ").concat("#F16262"," 100%)"),minHeight:48,justifyContent:"space-between",alignItems:"baseline",boxShadow:"0 0 24px 0 rgba(0,0,0,0.22)"},(0,o.default)(t,e.breakpoints.down("md"),{left:0,right:0}),(0,o.default)(t,e.breakpoints.down("lg"),{left:288,right:32}),(0,o.default)(t,e.breakpoints.down("xl"),{left:336,right:80}),(0,o.default)(t,e.breakpoints.up("xl"),{left:456,right:200}),t),descriptionBlock:{fontSize:13,padding:"20px 32px",alignSelf:"center",overflow:"hidden",textOverflow:"ellipsis"},errorTitle:{fontWeight:"bold",marginRight:7},errorMessage:{},closeIconContainer:{position:"relative","& button":{color:i,marginTop:5}}}}},6866:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||E(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=E},8570:(e,t,n)=>{"use strict";e.exports=n(6866)},7420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CSSTransition:()=>_,ReplaceTransition:()=>N,SwitchTransition:()=>V,Transition:()=>E,TransitionGroup:()=>R,config:()=>d});var r=n(7896),o=n(1461),i=n(1665);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n(5099);var l=n(8156),s=n.n(l),c=n(7111),u=n.n(c);const d={disabled:!1},f=s().createContext(null);var p=function(e){return e.scrollTop},h="unmounted",m="exited",v="entering",g="entered",y="exiting",b=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=m,r.appearStatus=v):o=g:o=t.unmountOnExit||t.mountOnEnter?h:m,r.state={status:o},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===h?{status:m}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==v&&n!==g&&(t=v):n!==v&&n!==g||(t=y)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===v){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this);n&&p(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===m&&this.setState({status:h})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[u().findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||d.disabled?this.safeSetState({status:g},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:v},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:g},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u().findDOMNode(this);t&&!d.disabled?(this.props.onExit(r),this.safeSetState({status:y},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:m},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:m},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===h)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s().createElement(f.Provider,{value:null},"function"==typeof n?n(e,r):s().cloneElement(s().Children.only(n),r))},t}(s().Component);function x(){}b.contextType=f,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},b.UNMOUNTED=h,b.EXITED=m,b.ENTERING=v,b.ENTERED=g,b.EXITING=y;const E=b;var C=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&p(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&C(e,r),o&&C(e,o),i&&C(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.Z)(e,["classNames"]));return s().createElement(E,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s().Component);w.defaultProps={classNames:""},w.propTypes={};const _=w;var k=n(753);function O(e,t){var n=Object.create(null);return e&&l.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,l.isValidElement)(e)?t(e):e}(e)})),n}function S(e,t,n){return null!=n[t]?n[t]:e.props[t]}function A(e,t,n){var r=O(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if((0,l.isValidElement)(a)){var s=i in t,c=i in r,u=t[i],d=(0,l.isValidElement)(u)&&!u.props.in;!c||s&&!d?c||!s||d?c&&s&&(0,l.isValidElement)(u)&&(o[i]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:S(a,"exit",e),enter:S(a,"enter",e)})):o[i]=(0,l.cloneElement)(a,{in:!1}):o[i]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:S(a,"exit",e),enter:S(a,"enter",e)})}})),o}var P=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},M=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,k.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,i.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,O(n.children,(function(e){return(0,l.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:S(e,"appear",n),enter:S(e,"enter",n),exit:S(e,"exit",n)})}))):A(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=O(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,o.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=P(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?s().createElement(f.Provider,{value:i},a):s().createElement(f.Provider,{value:i},s().createElement(t,r,a))},t}(s().Component);M.propTypes={},M.defaultProps={component:"div",childFactory:function(e){return e}};const R=M;var T=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,i.Z)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=s().Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:u().findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,o.Z)(e,["children","in"]),i=s().Children.toArray(t),a=i[0],l=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,s().createElement(R,r,n?s().cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):s().cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(s().Component);T.propTypes={};const N=T;var I,L,D="out-in",F="in-out",j=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},z=((I={})[D]=function(e){var t=e.current,n=e.changeState;return s().cloneElement(t,{in:!1,onExited:j(t,"onExited",(function(){n(v,null)}))})},I[F]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,s().cloneElement(r,{in:!0,onEntered:j(r,"onEntered",(function(){n(v)}))})]},I),B=((L={})[D]=function(e){var t=e.children,n=e.changeState;return s().cloneElement(t,{in:!0,onEntered:j(t,"onEntered",(function(){n(g,s().cloneElement(t,{in:!0}))}))})},L[F]=function(e){var t=e.current,n=e.children,r=e.changeState;return[s().cloneElement(t,{in:!1,onExited:j(t,"onExited",(function(){r(g,s().cloneElement(n,{in:!0}))}))}),s().cloneElement(n,{in:!0})]},L),H=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:g,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,i.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===v&&e.mode===F?{status:v}:!t.current||((n=t.current)===(r=e.children)||s().isValidElement(n)&&s().isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:s().cloneElement(e.children,{in:!0})}:{status:y};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,l={children:n,current:a,changeState:this.changeState,status:i};switch(i){case v:e=B[r](l);break;case y:e=z[r](l);break;case g:e=a}return s().createElement(f.Provider,{value:{isMounting:!this.appeared}},e)},t}(s().Component);H.propTypes={},H.defaultProps={mode:D};const V=H},1837:(e,t,n)=>{"use strict";n(7320);var r=n(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__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,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},6475:(e,t)=>{"use strict";var n,r,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,s=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(c,0))},r=function(e,t){s=setTimeout(e,t)},o=function(){clearTimeout(s)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var v=f.now();t.unstable_now=function(){return f.now()-v}}var g=!1,y=null,b=-1,x=5,E=0;i=function(){return t.unstable_now()>=E},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,w=C.port2;C.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+x;try{y(!0,e)?w.postMessage(null):(g=!1,y=null)}catch(e){throw w.postMessage(null),e}}else g=!1},n=function(e){y=e,g||(g=!0,w.postMessage(null))},r=function(e,n){b=p((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<S(o,t)))break e;e[r]=t,e[n]=o,n=r}}function k(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,s=e[l];if(void 0!==a&&0>S(a,n))void 0!==s&&0>S(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>S(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],P=[],M=1,R=null,T=3,N=!1,I=!1,L=!1;function D(e){for(var t=k(P);null!==t;){if(null===t.callback)O(P);else{if(!(t.startTime<=e))break;O(P),t.sortIndex=t.expirationTime,_(A,t)}t=k(P)}}function F(e){if(L=!1,D(e),!I)if(null!==k(A))I=!0,n(j);else{var t=k(P);null!==t&&r(F,t.startTime-e)}}function j(e,n){I=!1,L&&(L=!1,o()),N=!0;var a=T;try{for(D(n),R=k(A);null!==R&&(!(R.expirationTime>n)||e&&!i());){var l=R.callback;if(null!==l){R.callback=null,T=R.priorityLevel;var s=l(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?R.callback=s:R===k(A)&&O(A),D(n)}else O(A);R=k(A)}if(null!==R)var c=!0;else{var u=k(P);null!==u&&r(F,u.startTime-n),c=!1}return c}finally{R=null,T=a,N=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||N||(I=!0,n(j))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return k(A)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();if("object"==typeof a&&null!==a){var s=a.delay;s="number"==typeof s&&0<s?l+s:l,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),s=l;return e={id:M++,callback:i,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>l?(e.sortIndex=s,_(P,e),null===k(A)&&e===k(P)&&(L?o():L=!0,r(F,s-l))):(e.sortIndex=a,_(A,e),I||N||(I=!0,n(j))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var n=k(A);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},6062:(e,t,n)=>{"use strict";var r,o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function a(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var l=e[o],s=t.base?l[0]+t.base:l[0],c=n[s]||0,u="".concat(s," ").concat(c);n[s]=c+1;var d=a(u),f={css:l[1],media:l[2],sourceMap:l[3]};-1!==d?(i[d].references++,i[d].updater(f)):i.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,h=0;function m(e,t){var n,r,o;if(t.singleton){var i=h++;n=p||(p=s(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=s(t),r=f.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=a(n[r]);i[o].references--}for(var s=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=s}}}},4055:(e,t,n)=>{"use strict";e.exports=n.p+"5271a9e7b6651c852e93.png"},1884:t=>{"use strict";t.exports=e},8282:e=>{"use strict";e.exports=t},5635:e=>{"use strict";e.exports=n},4294:e=>{"use strict";e.exports=r},9272:e=>{"use strict";e.exports=o},518:e=>{"use strict";e.exports=i},4179:e=>{"use strict";e.exports=a},866:e=>{"use strict";e.exports=l},8515:e=>{"use strict";e.exports=s},5743:e=>{"use strict";e.exports=c},1574:e=>{"use strict";e.exports=u},5206:e=>{"use strict";e.exports=d},2811:e=>{"use strict";e.exports=f},6091:e=>{"use strict";e.exports=p},4511:e=>{"use strict";e.exports=h},9233:e=>{"use strict";e.exports=m},9681:e=>{"use strict";e.exports=v},2004:e=>{"use strict";e.exports=g},3526:e=>{"use strict";e.exports=y},3222:e=>{"use strict";e.exports=b},4436:e=>{"use strict";e.exports=x},5788:e=>{"use strict";e.exports=E},1733:e=>{"use strict";e.exports=C},7290:e=>{"use strict";e.exports=w},6038:e=>{"use strict";e.exports=_},3627:e=>{"use strict";e.exports=k},8759:e=>{"use strict";e.exports=O},7655:e=>{"use strict";e.exports=S},3962:e=>{"use strict";e.exports=A},9881:e=>{"use strict";e.exports=P},1230:e=>{"use strict";e.exports=M},8310:e=>{"use strict";e.exports=R},2308:e=>{"use strict";e.exports=T},2396:e=>{"use strict";e.exports=N},3192:e=>{"use strict";e.exports=I},5099:e=>{"use strict";e.exports=L},3288:e=>{"use strict";e.exports=D},8156:e=>{"use strict";e.exports=F},7111:e=>{"use strict";e.exports=j},4756:e=>{"use strict";e.exports=z},5751:e=>{"use strict";e.exports=B},5297:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},3100:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},8870:(e,t,n)=>{var r=n(7739);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6290:(e,t,n)=>{var r=n(7739);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1147:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8230:(e,t,n)=>{var r=n(8560);e.exports=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&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},1600:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},421:(e,t,n)=>{var r=n(7425).default,o=n(5297);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8560:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8064:(e,t,n)=>{var r=n(7425).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7739:(e,t,n)=>{var r=n(7425).default,o=n(8064);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},753:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},7896:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{Z:()=>r})},1665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8960);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},1461:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:()=>r})},8960:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},V={};function U(e){var t=V[e];if(void 0!==t)return t.exports;var n=V[e]={id:e,exports:{}};return H[e](n,n.exports,U),n.exports}return U.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return U.d(t,{a:t}),t},U.d=(e,t)=>{for(var n in t)U.o(t,n)&&!U.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},U.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),U.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),U.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;U.g.importScripts&&(e=U.g.location+"");var t=U.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),U.p=e})(),U(947)})()}));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/CheckCircle"),require("@mui/icons-material/Close"),require("@mui/icons-material/CloudUpload"),require("@mui/icons-material/Done"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/KeyboardArrowLeft"),require("@mui/icons-material/KeyboardArrowRight"),require("@mui/icons-material/MoreVert"),require("@mui/icons-material/Warning"),require("@mui/material/Avatar"),require("@mui/material/Box"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/CircularProgress"),require("@mui/material/Dialog"),require("@mui/material/DialogActions"),require("@mui/material/DialogContent"),require("@mui/material/DialogTitle"),require("@mui/material/Fade"),require("@mui/material/IconButton"),require("@mui/material/LinearProgress"),require("@mui/material/Link"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Snackbar"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n"));else if("function"==typeof define&&define.amd)define(["@mui/icons-material/Add","@mui/icons-material/ArrowDropDown","@mui/icons-material/Cancel","@mui/icons-material/CheckCircle","@mui/icons-material/Close","@mui/icons-material/CloudUpload","@mui/icons-material/Done","@mui/icons-material/HighlightOff","@mui/icons-material/KeyboardArrowLeft","@mui/icons-material/KeyboardArrowRight","@mui/icons-material/MoreVert","@mui/icons-material/Warning","@mui/material/Avatar","@mui/material/Box","@mui/material/Button","@mui/material/Checkbox","@mui/material/Chip","@mui/material/CircularProgress","@mui/material/Dialog","@mui/material/DialogActions","@mui/material/DialogContent","@mui/material/DialogTitle","@mui/material/Fade","@mui/material/IconButton","@mui/material/LinearProgress","@mui/material/Link","@mui/material/Menu","@mui/material/MenuItem","@mui/material/Paper","@mui/material/Popper","@mui/material/Portal","@mui/material/Snackbar","@mui/material/TextField","@mui/material/Toolbar","@mui/material/Tooltip","@mui/material/Typography","@mui/material/styles","@mui/styles/StylesProvider","@mui/styles/createGenerateClassName","@mui/styles/withStyles","classnames","mdm-module","mdm-sdk","moment","prop-types","ramda","react","react-dom","react-redux","ui-i18n"],t);else{var n="object"==typeof exports?t(require("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/CheckCircle"),require("@mui/icons-material/Close"),require("@mui/icons-material/CloudUpload"),require("@mui/icons-material/Done"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/KeyboardArrowLeft"),require("@mui/icons-material/KeyboardArrowRight"),require("@mui/icons-material/MoreVert"),require("@mui/icons-material/Warning"),require("@mui/material/Avatar"),require("@mui/material/Box"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/CircularProgress"),require("@mui/material/Dialog"),require("@mui/material/DialogActions"),require("@mui/material/DialogContent"),require("@mui/material/DialogTitle"),require("@mui/material/Fade"),require("@mui/material/IconButton"),require("@mui/material/LinearProgress"),require("@mui/material/Link"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Snackbar"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n")):t(e["@mui/icons-material/Add"],e["@mui/icons-material/ArrowDropDown"],e["@mui/icons-material/Cancel"],e["@mui/icons-material/CheckCircle"],e["@mui/icons-material/Close"],e["@mui/icons-material/CloudUpload"],e["@mui/icons-material/Done"],e["@mui/icons-material/HighlightOff"],e["@mui/icons-material/KeyboardArrowLeft"],e["@mui/icons-material/KeyboardArrowRight"],e["@mui/icons-material/MoreVert"],e["@mui/icons-material/Warning"],e["@mui/material/Avatar"],e["@mui/material/Box"],e["@mui/material/Button"],e["@mui/material/Checkbox"],e["@mui/material/Chip"],e["@mui/material/CircularProgress"],e["@mui/material/Dialog"],e["@mui/material/DialogActions"],e["@mui/material/DialogContent"],e["@mui/material/DialogTitle"],e["@mui/material/Fade"],e["@mui/material/IconButton"],e["@mui/material/LinearProgress"],e["@mui/material/Link"],e["@mui/material/Menu"],e["@mui/material/MenuItem"],e["@mui/material/Paper"],e["@mui/material/Popper"],e["@mui/material/Portal"],e["@mui/material/Snackbar"],e["@mui/material/TextField"],e["@mui/material/Toolbar"],e["@mui/material/Tooltip"],e["@mui/material/Typography"],e["@mui/material/styles"],e["@mui/styles/StylesProvider"],e["@mui/styles/createGenerateClassName"],e["@mui/styles/withStyles"],e.classnames,e["mdm-module"],e["mdm-sdk"],e.moment,e["prop-types"],e.ramda,e.react,e["react-dom"],e["react-redux"],e["ui-i18n"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(e,t,n,r,o,i,a,l,s,c,u,d,f,p,h,m,g,v,y,b,x,E,C,w,k,_,O,S,A,M,P,R,T,N,I,D,L,F,j,z,B,H,U,V,Z,K,q,W,$,G){return(()=>{var Y={621:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HierarchyScreen:()=>UE});var r=n(8156),o=n.n(r);const i="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect;var a=n(4616);const l=e=>{const t=r.createContext({value:{current:e},version:{current:-1},listeners:[]});var n;return t.Provider=(n=t.Provider,e=>{const t=r.useRef(e.value),o=r.useRef(0),l=r.useRef();return l.current||(l.current={value:t,version:o,listeners:[]}),i((()=>{t.current=e.value,o.current+=1,(0,a.unstable_runWithPriority)(a.unstable_NormalPriority,(()=>{l.current.listeners.forEach((t=>{t([o.current,e.value])}))}))}),[e.value]),r.createElement(n,{value:l.current},e.children)}),delete t.Consumer,t};var s=n(2396),c=n(5751),u=n.n(c),d=n(8310),f=n.n(d),p=n(3288),h=n(1733),m=n.n(h),g=n(4176);const v=(e,t)=>{const n=r.useContext(e),{value:{current:o},version:{current:a},listeners:l}=n,s=t(o),[c,u]=r.useReducer(((e,n)=>{if(!n)return[o,s];if(n[0]<=a)return y(e[1],s)?e:[o,s];try{if(y(e[0],n[1]))return e;const r=t(n[1]);return y(e[1],r)?e:[n[1],r]}catch(e){}return[e[0],e[1]]}),[o,s]);return y(c[1],s)||u(void 0),i((()=>(l.push(u),()=>{const e=l.indexOf(u);l.splice(e,1)})),[l]),c[1]},y="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},b=l({}),x=l({}),E=l({}),C=e=>v(x,e),w=()=>C((e=>e.uiPath)),k=()=>C((e=>e.entity)),_=()=>C((e=>e.historyEvent)),O=()=>C((e=>e.metadata)),S=()=>C((e=>{var t;return null===(t=e.user)||void 0===t?void 0:t.username})),A=()=>C((e=>{var t;return null===(t=e.tenant)||void 0===t?void 0:t.id})),M=()=>C((e=>e.searchNavigationData)),P=e=>v(b,(t=>t[e]));var R=n(1461),T=n(7896),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};const I="object"===("undefined"==typeof window?"undefined":N(window))&&"object"===("undefined"==typeof document?"undefined":N(document))&&9===document.nodeType;function D(e){return D="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},D(e)}function L(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L(r.key),r)}}function j(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var z=n(1665),B=n(753),H={}.constructor;function U(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(U);if(e.constructor!==H)return e;var t={};for(var n in e)t[n]=U(e[n]);return t}function V(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=U(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var Z=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},K=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Z(e[n]," ");else t=Z(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function q(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function W(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function $(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var l=q(n),s=l.linebreak,c=l.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var p=d[f];null!=p&&(r&&(r+=s),r+=W(f+":"+c+K(p)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=s),r+=W(h+":"+c+K(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=s),r+=W(g+":"+c+K(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+s+r+s),W(""+e+c+"{"+r,--i)+W("}",i)):r}var G=/([[\].#*$><+~=|^:(),"'`\s])/g,Y="undefined"!=typeof CSS&&CSS.escape,X=function(e){return Y?Y(e):e.replace(G,"\\$1")},Q=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var s=this.options.sheet;return s&&s.attached,this},e}(),J=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,s=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=s((0,B.Z)((0,B.Z)(o)),l),o.selectorText="."+X(o.id)),o}(0,z.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=K(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,T.Z)({},e,{allowEmpty:!0}):e;return $(this.selectorText,this.style,n)},j(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(Q),ee={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new J(e,t,n)}},te={indent:1,children:!0},ne=/@([\w-]+)/,re=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(ne);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Se((0,T.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=te);var t=q(e).linebreak;if(null==e.indent&&(e.indent=te.indent),null==e.children&&(e.children=te.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),oe=/@container|@media|@supports\s+/,ie={onCreateRule:function(e,t,n){return oe.test(e)?new re(e,t,n):null}},ae={indent:1,children:!0},le=/@keyframes\s+([\w-]+)/,se=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(le);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var l in this.id=!1===o?this.name:X(a(this,i)),this.rules=new Se((0,T.Z)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,T.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ae);var t=q(e).linebreak;if(null==e.indent&&(e.indent=ae.indent),null==e.children&&(e.children=ae.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),ce=/@keyframes\s+/,ue=/\$([\w-]+)/g,de=function(e,t){return"string"==typeof e?e.replace(ue,(function(e,n){return n in t?t[n]:e})):e},fe=function(e,t,n){var r=e[t],o=de(r,n);o!==r&&(e[t]=o)},pe={onCreateRule:function(e,t,n){return"string"==typeof e&&ce.test(e)?new se(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&fe(e,"animation-name",n.keyframes),"animation"in e&&fe(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return de(e,r.keyframes);default:return e}}},he=function(e){function t(){return e.apply(this,arguments)||this}return(0,z.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,T.Z)({},e,{allowEmpty:!0}):e;return $(this.key,this.style,n)},t}(Q),me={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new he(e,t,n):null}},ge=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=q(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=$(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return $(this.at,this.style,e)},e}(),ve=/@font-face/,ye={onCreateRule:function(e,t,n){return ve.test(e)?new ge(e,t,n):null}},be=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return $(this.key,this.style,e)},e}(),xe={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new be(e,t,n):null}},Ee=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Ce={"@charset":!0,"@import":!0,"@namespace":!0},we={onCreateRule:function(e,t,n){return e in Ce?new Ee(e,t,n):null}},ke=[ee,ie,pe,me,ye,xe,we],_e={process:!0},Oe={force:!0,process:!0},Se=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,l=r.Renderer,s=r.generateId,c=r.scoped,u=(0,T.Z)({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:l,generateId:s,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+X(this.classes[d]));var f=V(d,t,u);if(!f)return null;this.register(f);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=(0,T.Z)({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof J?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof se&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof J?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof se&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=_e);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t.style;if(i.onUpdate(n,t,a,r),r.process&&l&&l!==t.style){for(var s in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[s];c!==l[s]&&t.prop(s,c,Oe)}for(var u in l){var d=t.style[u],f=l[u];null==d&&d!==f&&t.prop(u,null,Oe)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=q(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Ae=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,T.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Se(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Me=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Pe=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,R.Z)(t,["attached"]),o=q(r).linebreak,i="",a=0;a<this.registry.length;a++){var l=this.registry[a];null!=n&&l.attached!==n||(i&&(i+=o),i+=l.toString(r))}return i},j(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Re=new Pe,Te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Ne="2f1acc6c3a606b082e5eef5e54414ffb";null==Te[Ne]&&(Te[Ne]=0);var Ie=Te[Ne]++,De=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Ie+o+t:i+n.key+"-"+Ie+(o?"-"+o:"")+"-"+t}},Le=function(e){var t;return function(){return t||(t=e()),t}},Fe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},je=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=K(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},ze=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Be=function(e,t){return e.selectorText=t,e.selectorText===t},He=Le((function(){return document.querySelector("head")}));var Ue=Le((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ve=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Ze=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ke=function(){function e(e){this.getPropertyValue=Fe,this.setProperty=je,this.removeProperty=ze,this.setSelector=Be,this.hasInsertedRules=!1,this.cssRules=[],e&&Re.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=Ue();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=Re.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=He(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else He().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Ze(n,t);if(!1===(o=Ve(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var l=Ze(n,t),s=Ve(n,a,l);return!1!==s&&(this.hasInsertedRules=!0,this.refCssRule(e,l,s),s)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Ae&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),qe=0,We=function(){function e(e){this.id=qe++,this.version="10.10.0",this.plugins=new Me,this.options={id:{minify:!1},createGenerateId:De,Renderer:I?Ke:null,plugins:[]},this.generateId=De({minify:!1});for(var t=0;t<ke.length;t++)this.plugins.use(ke[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,T.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Re.index?0:Re.index+1);var r=new Ae(e,(0,T.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Re.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=(0,T.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=V(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),$e=function(e){return new We(e)},Ge="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ye(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Ye(r);i&&(t||(t={}),t[n]=i)}}return t}function Xe(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const o=(0,T.Z)({},t);return Object.keys(n).forEach((e=>{n[e]&&(o[e]=`${t[e]} ${n[e]}`)})),o}$e();const Qe={set:(e,t,n,r)=>{let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},Je=Qe,et=r.createContext(null);function tt(){var e;const t=r.useContext(et);return null!=(e=null==t?void 0:t.$$material)?e:t}var nt=n(5099),rt=n.n(nt);const ot="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",it=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var at=Date.now(),lt="fnValues"+at,st="fnStyle"+ ++at;var ct="@global",ut=function(){function e(e,t,n){for(var r in this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Se((0,T.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),dt=function(){function e(e,t,n){this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,T.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ft=/\s*,\s*/g;function pt(e,t){for(var n=e.split(ft),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var ht=/\s*,\s*/g,mt=/&/g,gt=/\$([\w-]+)/g;var vt=/[A-Z]/g,yt=/^ms-/,bt={};function xt(e){return"-"+e.toLowerCase()}const Et=function(e){if(bt.hasOwnProperty(e))return bt[e];var t=e.replace(vt,xt);return bt[e]=yt.test(t)?"-"+t:t};function Ct(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:Et(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ct):t.fallbacks=Ct(e.fallbacks)),t}var wt=Ge&&CSS?CSS.px:"px",kt=Ge&&CSS?CSS.ms:"ms",_t=Ge&&CSS?CSS.percent:"%";function Ot(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var St=Ot({"animation-delay":kt,"animation-duration":kt,"background-position":wt,"background-position-x":wt,"background-position-y":wt,"background-size":wt,border:wt,"border-bottom":wt,"border-bottom-left-radius":wt,"border-bottom-right-radius":wt,"border-bottom-width":wt,"border-left":wt,"border-left-width":wt,"border-radius":wt,"border-right":wt,"border-right-width":wt,"border-top":wt,"border-top-left-radius":wt,"border-top-right-radius":wt,"border-top-width":wt,"border-width":wt,"border-block":wt,"border-block-end":wt,"border-block-end-width":wt,"border-block-start":wt,"border-block-start-width":wt,"border-block-width":wt,"border-inline":wt,"border-inline-end":wt,"border-inline-end-width":wt,"border-inline-start":wt,"border-inline-start-width":wt,"border-inline-width":wt,"border-start-start-radius":wt,"border-start-end-radius":wt,"border-end-start-radius":wt,"border-end-end-radius":wt,margin:wt,"margin-bottom":wt,"margin-left":wt,"margin-right":wt,"margin-top":wt,"margin-block":wt,"margin-block-end":wt,"margin-block-start":wt,"margin-inline":wt,"margin-inline-end":wt,"margin-inline-start":wt,padding:wt,"padding-bottom":wt,"padding-left":wt,"padding-right":wt,"padding-top":wt,"padding-block":wt,"padding-block-end":wt,"padding-block-start":wt,"padding-inline":wt,"padding-inline-end":wt,"padding-inline-start":wt,"mask-position-x":wt,"mask-position-y":wt,"mask-size":wt,height:wt,width:wt,"min-height":wt,"max-height":wt,"min-width":wt,"max-width":wt,bottom:wt,left:wt,top:wt,right:wt,inset:wt,"inset-block":wt,"inset-block-end":wt,"inset-block-start":wt,"inset-inline":wt,"inset-inline-end":wt,"inset-inline-start":wt,"box-shadow":wt,"text-shadow":wt,"column-gap":wt,"column-rule":wt,"column-rule-width":wt,"column-width":wt,"font-size":wt,"font-size-delta":wt,"letter-spacing":wt,"text-decoration-thickness":wt,"text-indent":wt,"text-stroke":wt,"text-stroke-width":wt,"word-spacing":wt,motion:wt,"motion-offset":wt,outline:wt,"outline-offset":wt,"outline-width":wt,perspective:wt,"perspective-origin-x":_t,"perspective-origin-y":_t,"transform-origin":_t,"transform-origin-x":_t,"transform-origin-y":_t,"transform-origin-z":_t,"transition-delay":kt,"transition-duration":kt,"vertical-align":wt,"flex-basis":wt,"shape-margin":wt,size:wt,gap:wt,grid:wt,"grid-gap":wt,"row-gap":wt,"grid-row-gap":wt,"grid-column-gap":wt,"grid-template-rows":wt,"grid-template-columns":wt,"grid-auto-rows":wt,"grid-auto-columns":wt,"box-shadow-x":wt,"box-shadow-y":wt,"box-shadow-blur":wt,"box-shadow-spread":wt,"font-line-height":wt,"text-shadow-x":wt,"text-shadow-y":wt,"text-shadow-blur":wt});function At(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=At(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=At(o,t[o],n);else for(var i in t)t[i]=At(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||St[e];return!a||0===t&&a===wt?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pt(e,t){if(e){if("string"==typeof e)return Mt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mt(e,t):void 0}}function Rt(e){return function(e){if(Array.isArray(e))return Mt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pt(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.")}()}var Tt="",Nt="",It="",Dt="",Lt=I&&"ontouchstart"in document.documentElement;if(I){var Ft={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jt=document.createElement("p").style;for(var zt in Ft)if(zt+"Transform"in jt){Tt=zt,Nt=Ft[zt];break}"Webkit"===Tt&&"msHyphens"in jt&&(Tt="ms",Nt=Ft.ms,Dt="edge"),"Webkit"===Tt&&"-apple-trailing-word"in jt&&(It="apple")}var Bt=Tt,Ht=Nt,Ut=It,Vt=Dt,Zt=Lt,Kt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Bt?"-webkit-"+e:Ht+e)}},qt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Bt?Ht+"print-"+e:e)}},Wt=/[-\s]+(.)?/g;function $t(e,t){return t?t.toUpperCase():""}function Gt(e){return e.replace(Wt,$t)}function Yt(e){return Gt("-"+e)}var Xt,Qt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Bt){var n="mask-image";if(Gt(n)in t)return e;if(Bt+Yt(n)in t)return Ht+e}return e}},Jt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Ut||Zt?e:Ht+e)}},en={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Ht+e)}},tn={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Ht+e)}},nn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Bt||"ms"===Bt&&"edge"!==Vt?Ht+e:e)}},rn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Bt||"ms"===Bt||"apple"===Ut?Ht+e:e)}},on={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Bt?"WebkitColumn"+Yt(e)in t&&Ht+"column-"+e:"Moz"===Bt&&"page"+Yt(e)in t&&"page-"+e)}},an={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Bt)return e;var n=e.replace("-inline","");return Bt+Yt(n)in t&&Ht+n}},ln={supportedProperty:function(e,t){return Gt(e)in t&&e}},sn={supportedProperty:function(e,t){var n=Yt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Bt+n in t?Ht+e:"Webkit"!==Bt&&"Webkit"+n in t&&"-webkit-"+e}},cn={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Bt?""+Ht+e:e)}},un={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Bt?Ht+"scroll-chaining":e)}},dn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},fn={supportedProperty:function(e,t){var n=dn[e];return!!n&&Bt+Yt(n)in t&&Ht+n}},pn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},hn=Object.keys(pn),mn=function(e){return Ht+e},gn={supportedProperty:function(e,t,n){var r=n.multiple;if(hn.indexOf(e)>-1){var o=pn[e];if(!Array.isArray(o))return Bt+Yt(o)in t&&Ht+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Bt+Yt(o[0])in t))return!1;return o.map(mn)}return!1}},vn=[Kt,qt,Qt,Jt,en,tn,nn,rn,on,an,ln,sn,cn,un,fn,gn],yn=vn.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),bn=vn.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Rt(t.noPrefill)),e}),[]),xn={};if(I){Xt=document.createElement("p");var En=window.getComputedStyle(document.documentElement,"");for(var Cn in En)isNaN(Cn)||(xn[En[Cn]]=En[Cn]);bn.forEach((function(e){return delete xn[e]}))}function wn(e,t){if(void 0===t&&(t={}),!Xt)return e;if(null!=xn[e])return xn[e];"transition"!==e&&"transform"!==e||(t[e]=e in Xt.style);for(var n=0;n<yn.length&&(xn[e]=yn[n](e,Xt.style,t),!xn[e]);n++);try{Xt.style[e]=""}catch(e){return!1}return xn[e]}var kn,_n={},On={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Sn=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function An(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?wn(t):", "+wn(n))||t||n}function Mn(e,t){var n=t;if(!kn||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=_n[r])return _n[r];try{kn.style[e]=n}catch(e){return _n[r]=!1,!1}if(On[e])n=n.replace(Sn,An);else if(""===kn.style[e]&&("-ms-flex"===(n=Ht+n)&&(kn.style[e]="-ms-flexbox"),kn.style[e]=n,""===kn.style[e]))return _n[r]=!1,!1;return kn.style[e]="",_n[r]=n,_n[r]}I&&(kn=document.createElement("p"));var Pn=n(2322);const Rn=$e({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=V(e,{},n);return r[st]=t,r},onProcessStyle:function(e,t){if(lt in t||st in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[lt]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[st];i&&(o.style=i(e)||{});var a=o[lt];if(a)for(var l in a)o.prop(l,a[l](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===ct)return new ut(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new dt(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[ct]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,T.Z)({},n,{selector:pt(i,e.selector)}));delete r[ct]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===ct){var i=pt(o.substr(7),e.selector);t.addRule(i,r[o],(0,T.Z)({},n,{selector:i})),delete r[o]}}(e,t))}},function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(ht),r=e.split(ht),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(mt,a):a+" "+s}return o}function n(e,t,n){if(n)return(0,T.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,T.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,s=o,c=s.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),f="@"===u[0];if(d||f){if(a=n(s,c,a),d){var p=t(u,s.selector);l||(l=e(c,i)),p=p.replace(gt,l);var h=s.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],(0,T.Z)({},a,{selector:p})):c.addRule(h,r[u],(0,T.Z)({},a,{selector:p}))}else f&&c.addRule(u,{},a).addRule(s.key,r[u],{selector:s.selector});delete r[u]}}return r}}}(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ct(e[t]);return e}return Ct(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Et(t);return t===r?e:(n.prop(r,e),null)}},function(e){void 0===e&&(e={});var t=Ot(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=At(r,e[r],t);return e},onChangeValue:function(e,n){return At(n,e,t)}}}(),"undefined"==typeof window?null:function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=wn(n);i&&i!==n&&(o=!0);var a=!1,l=Mn(i,K(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Bt?e:"@"+Ht+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Mn(t,K(e))||e}}}(),(Dn=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Dn),o=0;o<r.length;o++)n[r[o]]=e[r[o]];return n}})]}),Tn=function(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,o=""===r?"":`${r}-`;let i=0;const a=()=>(i+=1,i);return(e,i)=>{const l=i.options.name;if(l&&0===l.indexOf("Mui")&&!i.options.link&&!t){if(-1!==it.indexOf(e.key))return`Mui-${e.key}`;const t=`${o}${l}-${e.key}`;return i.options.theme[ot]&&""===r?`${t}-${a()}`:t}return`${o}${n}${a()}`}}(),Nn={disableGeneration:!1,generateClassName:Tn,jss:Rn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},In=r.createContext(Nn);var Dn;let Ln=-1e9;function Fn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function jn(e){if(!Fn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=jn(e[n])})),t}function zn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Fn(e)&&Fn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Fn(t[o])&&o in e&&Fn(e[o])?r[o]=zn(e[o],t[o],n):n.clone?r[o]=Fn(t[o])?jn(t[o]):t[o]:r[o]=t[o])})),r}function Bn(e){if("string"!=typeof e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Hn=["variant"];function Un(e){return 0===e.length}const Vn={},Zn=["name","classNamePrefix","Component","defaultTheme"];function Kn({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:o},i){if(n.disableGeneration)return;let a=Je.get(n.sheetsManager,r,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},Je.set(n.sheetsManager,r,t,a));const l=(0,T.Z)({},r.options,n,{theme:t,flip:"boolean"==typeof n.flip?n.flip:"rtl"===t.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;const s=n.sheetsRegistry;if(0===a.refs){let e;n.sheetsCache&&(e=Je.get(n.sheetsCache,r,t));const i=r.create(t,o);e||(e=n.jss.createStyleSheet(i,(0,T.Z)({link:!1},l)),e.attach(),n.sheetsCache&&Je.set(n.sheetsCache,r,t,e)),s&&s.add(e),a.staticSheet=e,a.dynamicStyles=Ye(i)}if(a.dynamicStyles){const t=n.jss.createStyleSheet(a.dynamicStyles,(0,T.Z)({link:!0},l));t.update(i),t.attach(),e.dynamicSheet=t,e.classes=Xe({baseClasses:a.staticSheet.classes,newClasses:t.classes}),s&&s.add(t)}else e.classes=a.staticSheet.classes;a.refs+=1}function qn(e,t={}){const{name:n,classNamePrefix:o,Component:i,defaultTheme:a=Vn}=t,l=(0,R.Z)(t,Zn),s=function(e){const t="function"==typeof e;return{create:(n,r)=>{let o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return o;const i=n.components[r].styleOverrides||{},a=n.components[r].variants||[],l=(0,T.Z)({},o);return Object.keys(i).forEach((e=>{l[e]=zn(l[e]||{},i[e])})),a.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,R.Z)(e,Hn);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Un(r)?e[t]:Bn(e[t]):`${Un(r)?t:Bn(t)}${Bn(e[t].toString())}`})),r}(e.props);l[t]=zn(l[t]||{},e.style)})),l},options:{}}}(e),c=n||o||"makeStyles";return s.options={index:(Ln+=1,Ln),name:n,meta:c,classNamePrefix:c},(e={})=>{const t=tt()||a,o=(0,T.Z)({},r.useContext(In),l),c=r.useRef(),u=r.useRef();!function(i,a){const l=r.useRef([]);let d;const f=r.useMemo((()=>({})),a);l.current!==f&&(l.current=f,d=(()=>{const r={name:n,state:{},stylesCreator:s,stylesOptions:o,theme:t};return Kn(r,e),u.current=!1,c.current=r,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const o=Je.get(n.sheetsManager,r,t);o.refs-=1;const i=n.sheetsRegistry;0===o.refs&&(Je.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(o.staticSheet),i&&i.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}(r)}})()),r.useEffect((()=>()=>{d&&d()}),[f])}(0,[t,s]),r.useEffect((()=>{u.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(c.current,e),u.current=!0}));const d=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=Xe({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(c.current,e.classes,i);return d}}const Wn=qn((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",left:0,right:0,width:"calc(100% - 64px)",maxWidth:"1280px",margin:"0 auto",zIndex:1e4}})));function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(null,arguments)}const Gn=g.ZP.addError,Yn=e=>{let{showErrorFromStore:t}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["showErrorFromStore"]);const i=Wn(),a=P("errorSet"),l=C((e=>e.autoCloseInterval)),s=C((e=>e.uiError));return(0,r.useEffect)((()=>{s&&t&&(Yn.addError({title:u().text("Error"),message:s}),a(null))}),[a,s,t]),o().createElement(m(),{container:document.body},o().createElement(g.ZP,$n({classes:{errorBlock:f()(i.errorBlock,(0,p.path)(["classes","errorBlock"],n))},autoCloseInterval:l},n)))};Yn.addError=Gn;const Xn=(e,t)=>{const{title:n=u().text("Error"),message:r,defaultMessage:o}=t||{};console.warn(e),Yn.addError({title:n,message:r||(0,s.getRequestErrorMessage)(e,o)})};function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Jn(e,t,n[t])}))}return e}function Jn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const er=l({unmaskedAttributes:{},unmaskAttributeValue:void 0,maskAttributeValue:void 0,deleteUnmaskedAttributeForRelation:void 0}),tr=({children:e})=>{const[t,n]=(0,r.useState)({}),[i,a]=(0,r.useState)({}),[l,c]=(0,r.useState)(null),u=C((e=>e.profileLastLoadedTime)),d=C((e=>e.historyMode)),f=C((e=>{var t;return null===(t=e.entity)||void 0===t?void 0:t.uri})),p=_(),h=(0,r.useRef)(t);h.current=t,(0,r.useEffect)((()=>{n({})}),[u,p]),(0,r.useEffect)((()=>{a({}),c(null)}),[f]);const m=(0,r.useCallback)((async e=>{var t;if(!e){const e=null!=l?l:await(0,s.getEntity)(f);return l||c(e),e}const n=null!==(t=i[e])&&void 0!==t?t:await(0,s.getEntityTimeSlice)(f,e);return i[e]||a((t=>Qn({},t,{[e]:n}))),n}),[f,i,l]),g=(0,r.useCallback)((async e=>{let t=await m(null==p?void 0:p.aStamp),n=(0,s.findAttributeValueByUri)(t,e);return n||(t=d===s.HistoryMode.Current?await m():await m(null==p?void 0:p.bStamp),n=(0,s.findAttributeValueByUri)(t,e),n)}),[m,null==p?void 0:p.aStamp,null==p?void 0:p.bStamp,d]),v=(0,r.useCallback)((async e=>{try{const t=h.current;if(t[e])return n((t=>Qn({},t,{[e]:Qn({},t[e],{isUnmasked:!0})}))),t[e].attributeValue;{n((t=>Qn({},t,{[e]:Qn({},t[e],{loading:!0})})));const t=p?await g(e):await(0,s.getUnmaskedAttributeValue)(e);return n((n=>Qn({},n,{[e]:{attributeValue:t,isUnmasked:!0,loading:!1}}))),t}}catch(e){return Xn(e),null}}),[p,g]),y=(0,r.useCallback)((e=>{n((t=>Qn({},t,{[e]:Qn({},t[e],{isUnmasked:!1})})))}),[]),b=(0,r.useCallback)((e=>{n((t=>{const n=Qn({},t);for(const t in n)t.startsWith(e)&&delete n[t];return n}))}),[]);return o().createElement(er.Provider,{value:{unmaskedAttributes:t,unmaskAttributeValue:v,maskAttributeValue:y,deleteUnmaskedAttributeForRelation:b}},e)},nr=o().createContext((()=>{}));nr.displayName="SnackbarContext";var rr=n(5206),or=n.n(rr),ir=n(4596),ar=n.n(ir),lr=n(9881),sr=n.n(lr),cr=n(3962),ur=n.n(cr),dr=n(3192),fr=n.n(dr);const pr={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},hr={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},mr=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class gr{constructor({locale:e,formats:t,instance:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=pr,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=e=>{const t=this.moment(e).local();return void 0===this.locale?t:t.locale(this.locale)},this.createUTCDate=e=>{const t=this.moment.utc(e);return void 0===this.locale?t:t.locale(this.locale)},this.createTZDate=(e,t)=>{if(!this.hasTimezonePlugin())throw new Error(mr);const n="default"===t?this.moment(e):this.moment.tz(e,t);return void 0===this.locale?n:n.locale(this.locale)},this.date=e=>{if(null===e)return null;const t=this.moment(e);return t.locale(this.getCurrentLocaleCode()),t},this.dateWithTimezone=(e,t)=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),this.getTimezone=e=>{var t,n,r;if(e.isUTC())return"UTC";const o=null==(t=e._z)?void 0:t.name;return null!=(n=null!=o?o:null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system"},this.setTimezone=(e,t)=>{var n,r;if("UTC"===t)return e.clone().utc();if("system"===t)return e.clone().local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(mr)}const o="default"===t?null!=(n=null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system":t,i=e.clone();return i.tz(o),i},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.getCurrentLocaleCode=()=>this.locale||fr().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(fr().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=e=>e.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((e=>{const t=e[0];return"L"===t||";"===t?fr().localeData(this.getCurrentLocaleCode()).longDateFormat(e):e})).join(""),this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.moment(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const n=e.clone();return n.locale(this.getCurrentLocaleCode()),n.format(t)},this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e.isAfter(t),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBefore=(e,t)=>e.isBefore(t),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.startOfYear=e=>e.clone().startOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfYear=e=>e.clone().endOf("year"),this.endOfMonth=e=>e.clone().endOf("month"),this.endOfWeek=e=>e.clone().endOf("week"),this.endOfDay=e=>e.clone().endOf("day"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.getYear=e=>e.get("year"),this.getMonth=e=>e.get("month"),this.getDate=e=>e.get("date"),this.getHours=e=>e.get("hours"),this.getMinutes=e=>e.get("minutes"),this.getSeconds=e=>e.get("seconds"),this.getMilliseconds=e=>e.get("milliseconds"),this.setYear=(e,t)=>e.clone().year(t),this.setMonth=(e,t)=>e.clone().month(t),this.setDate=(e,t)=>e.clone().date(t),this.setHours=(e,t)=>e.clone().hours(t),this.setMinutes=(e,t)=>e.clone().minutes(t),this.setSeconds=(e,t)=>e.clone().seconds(t),this.setMilliseconds=(e,t)=>e.clone().milliseconds(t),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[this.startOfYear(e)];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.mergeDateAndTime=(e,t)=>e.clone().hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>fr().weekdaysShort(!0),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.clone().startOf("month").startOf("week"),r=t.clone().endOf("month").endOf("week");let o=0,i=n;const a=[];for(;i.isBefore(r);){const e=Math.floor(o/7);a[e]=a[e]||[],a[e].push(i),i=i.clone().add(1,"day"),o+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[];let i=n;for(;i.isBefore(r);)o.push(i),i=i.clone().add(1,"year");return o},this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?fr().localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.moment=n||fr(),this.locale=e,this.formats=(0,T.Z)({},hr,t)}}var vr=n(7655);const yr=["localeText"],br=r.createContext(null),xr=function(e){var t;const{localeText:n}=e,o=(0,R.Z)(e,yr),{utils:i,localeText:a}=null!=(t=r.useContext(br))?t:{utils:void 0,localeText:void 0},l=(0,vr.useThemeProps)({props:o,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=l,h=r.useMemo((()=>(0,T.Z)({},p,a,n)),[p,a,n]),m=r.useMemo((()=>{if(!c)return i||null;const e=new c({locale:f,formats:u,instance:d});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[c,f,u,d,i]),g=r.useMemo((()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null),[m]),v=r.useMemo((()=>({utils:m,defaultDates:g,localeText:h})),[g,m,h]);return(0,Pn.jsx)(br.Provider,{value:v,children:s})};var Er=n(4756),Cr=n(2308),wr=n.n(Cr);const kr=function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}};kr('\n/* CSS Custom Properties - All defined on .root with --reltio-assistant-loader- prefix */\n._root_lj6wo_1 {\n\t--reltio-assistant-loader-size: 32px;\n\n\t/* Dot dimensions scale with size */\n\t--reltio-assistant-loader-dot-size: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) *\n\t\t0.25\n\t);\n\t--reltio-assistant-loader-dot-radius: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) *\n\t\t0.15625\n\t);\n\t--reltio-assistant-loader-dot-color: #8d8dc8;\n\t--reltio-assistant-loader-dot-color-dimmed: rgba(152, 128, 255, 0.2);\n\t--reltio-assistant-loader-dot-gap: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) *\n\t\t0.375\n\t);\n\t--reltio-assistant-loader-dot-margin-left: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) *\n\t\t0.625\n\t);\n\t--reltio-assistant-loader-dot-duration: 1s;\n\t--reltio-assistant-loader-dot-delay-middle: 0.5s;\n\t--reltio-assistant-loader-dot-delay-last: 1s;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbox-sizing: border-box;\n}\n\n/* GIF container - uses CSS variable for size with fallback */\n._indicator_lj6wo_36 {\n\twidth: var(--reltio-assistant-loader-size, 32px);\n\theight: var(--reltio-assistant-loader-size, 32px);\n\tdisplay: block;\n\tobject-fit: contain;\n}\n\n/* Dot flashing indicator - uses CSS variables from .root */\n._dotFlashing_lj6wo_44 {\n\tposition: absolute;\n\tleft: calc(\n\t\tvar(--reltio-assistant-loader-size, 32px) +\n\t\tvar(--reltio-assistant-loader-dot-margin-left, 20px)\n\t);\n\tbottom: 20%;\n\ttransform: translateY(50%);\n\twidth: var(--reltio-assistant-loader-dot-size, 8px);\n\theight: var(--reltio-assistant-loader-dot-size, 8px);\n\tborder-radius: var(--reltio-assistant-loader-dot-radius, 5px);\n\tbackground-color: var(--reltio-assistant-loader-dot-color, #8d8dc8);\n\tanimation: _dotFlashing_lj6wo_44 var(--reltio-assistant-loader-dot-duration, 1s)\n\t\tinfinite linear alternate;\n\tanimation-delay: var(--reltio-assistant-loader-dot-delay-middle, 0.5s);\n}\n\n._dotFlashing_lj6wo_44::before,\n._dotFlashing_lj6wo_44::after {\n\tcontent: "";\n\tposition: absolute;\n\ttop: 0;\n\tdisplay: block;\n\twidth: var(--reltio-assistant-loader-dot-size, 8px);\n\theight: var(--reltio-assistant-loader-dot-size, 8px);\n\tborder-radius: var(--reltio-assistant-loader-dot-radius, 5px);\n\tbackground-color: var(--reltio-assistant-loader-dot-color, #8d8dc8);\n\tanimation: _dotFlashing_lj6wo_44 var(--reltio-assistant-loader-dot-duration, 1s)\n\t\tinfinite alternate;\n}\n\n._dotFlashing_lj6wo_44::before {\n\tleft: calc(-1 * var(--reltio-assistant-loader-dot-gap, 12px));\n\tanimation-delay: 0s;\n}\n\n._dotFlashing_lj6wo_44::after {\n\tleft: var(--reltio-assistant-loader-dot-gap, 12px);\n\tanimation-delay: var(--reltio-assistant-loader-dot-delay-last, 1s);\n}\n\n@keyframes _dotFlashing_lj6wo_44 {\n\t0% {\n\t\tbackground-color: var(--reltio-assistant-loader-dot-color, #8d8dc8);\n\t}\n\t50%,\n\t100% {\n\t\tbackground-color: var(\n\t\t\t--reltio-assistant-loader-dot-color-dimmed,\n\t\t\trgba(152, 128, 255, 0.2)\n\t\t);\n\t}\n}\n');const _r=(...e)=>{const t=new Set;return e.forEach((e=>{if(!e)return;t.add(e);const n=e.split("__")[0];n&&n!==e&&t.add(n)})),Array.from(t).join(" ")},Or=JSON.parse('{"root":"_root_1lt78_1","filled":"_filled_1lt78_87","outlined":"_outlined_1lt78_92","text":"_text_1lt78_98","primary":"_primary_1lt78_104","inherited":"_inherited_1lt78_114","small":"_small_1lt78_159","medium":"_medium_1lt78_167","large":"_large_1lt78_174","disabled":"_disabled_1lt78_181","fullWidth":"_fullWidth_1lt78_187"}');kr('\n/* CSS Custom Properties - All defined on .root (Principle IX) */\n._root_1lt78_1 {\n\t/* Font tokens */\n\t--reltio-button-font-family: var(\n\t\t--reltio-font-family-body,\n\t\t"Roboto",\n\t\tsans-serif\n\t);\n\t--reltio-button-font-size: var(--reltio-font-size-body, 16px);\n\t--reltio-button-font-weight: var(--reltio-font-weight-body, 500);\n\t--reltio-button-line-height: var(--reltio-line-height-body, 1.5);\n\t--reltio-button-letter-spacing: var(--reltio-letter-spacing-body, 0.15px);\n\n\t/* Color tokens */\n\t--reltio-button-color-background: #f5f5fa;\n\t--reltio-button-color-primary: var(--reltio-color-primary, #0000cc);\n\t--reltio-button-color-primary-text: var(--reltio-color-on-primary, #ffffff);\n\t--reltio-button-color-text: var(--reltio-color-text, #0e0e25);\n\n\t/* Spacing tokens */\n\t--reltio-button-padding-x-small: var(--reltio-spacing-sm, 16px);\n\t--reltio-button-padding-y-small: var(--reltio-spacing-xs, 8px);\n\t--reltio-button-padding-x-medium: var(--reltio-spacing-md, 20px);\n\t--reltio-button-padding-y-medium: var(--reltio-spacing-sm, 12px);\n\t--reltio-button-padding-x-large: var(--reltio-spacing-lg, 32px);\n\t--reltio-button-padding-y-large: var(--reltio-spacing-md, 16px);\n\t--reltio-button-gap-x: var(--reltio-spacing-xs, 8px);\n\n\t/* Size tokens */\n\t--reltio-button-height-small: var(--reltio-spacing-xl, 32px);\n\t--reltio-button-height-medium: var(--reltio-spacing-2xl, 40px);\n\t--reltio-button-height-large: var(--reltio-spacing-3xl, 48px);\n\n\t/* Border and shape */\n\t--reltio-button-border-radius: 9999px; /* Fully rounded corners (pill shape) - Material Design 3 */\n\t--reltio-button-border-width: 0;\n\n\t/* Transitions */\n\t--reltio-button-transition-duration: 200ms;\n\t--reltio-button-transition-timing: ease;\n\n\t/* Disabled state */\n\t--reltio-button-disabled-opacity: 0.38;\n\t--reltio-button-disabled-cursor: not-allowed;\n\n\t/* Base styles */\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: var(--reltio-button-gap-x);\n\tborder: var(--reltio-button-border-width) solid transparent;\n\tborder-radius: var(--reltio-button-border-radius);\n\tcursor: pointer;\n\tfont-family: var(--reltio-button-font-family);\n\tfont-size: var(--reltio-button-font-size);\n\tfont-weight: var(--reltio-button-font-weight);\n\tline-height: var(--reltio-button-line-height);\n\tletter-spacing: var(--reltio-button-letter-spacing);\n\ttext-align: center;\n\ttext-decoration: none;\n\twhite-space: nowrap;\n\tuser-select: none;\n\ttransition: all var(--reltio-button-transition-duration)\n\t\tvar(--reltio-button-transition-timing);\n\tbox-sizing: border-box;\n\t/* Remove default button styles */\n\tbackground: none;\n\tmargin: 0;\n\tpadding: 0;\n\n\t/* Focus visible state */\n\t&:focus-visible {\n\t\toutline: 2px solid var(--reltio-button-color-primary);\n\t\toutline-offset: 2px;\n\t}\n\n\t/* Disabled state */\n\t&:disabled,\n\t&[aria-disabled="true"] {\n\t\topacity: var(--reltio-button-disabled-opacity);\n\t\tcursor: var(--reltio-button-disabled-cursor);\n\t\tpointer-events: none;\n\t}\n}\n\n/* Style: Filled - base structure */\n._filled_1lt78_87 {\n\tborder: none;\n}\n\n/* Style: Outlined - base structure */\n._outlined_1lt78_92 {\n\tbackground-color: transparent;\n\tborder: 1px solid;\n}\n\n/* Style: Text - base structure */\n._text_1lt78_98 {\n\tbackground-color: transparent;\n\tborder: none;\n}\n\n/* Filled + Primary */\n._filled_1lt78_87._primary_1lt78_104 {\n\tbackground-color: var(--reltio-button-color-primary);\n\tcolor: #fff;\n\n\t&:hover {\n\t\tbackground-color: #006;\n\t}\n}\n\n/* Filled + Inherited */\n._filled_1lt78_87._inherited_1lt78_114 {\n\tbackground-color: var(--reltio-button-color-background);\n\tcolor: var(--reltio-button-color-text);\n}\n\n/* Outlined + Primary */\n._outlined_1lt78_92._primary_1lt78_104 {\n\tborder-color: var(--reltio-button-color-primary);\n\tcolor: var(--reltio-button-color-primary);\n\n\t&:hover {\n\t\tbackground-color: var(--reltio-button-color-background);\n\t}\n}\n\n/* Outlined + Inherited */\n._outlined_1lt78_92._inherited_1lt78_114 {\n\t/* Border and text color inherit from parent */\n\tborder-color: currentColor;\n\tcolor: inherit;\n\n\t&:hover {\n\t\tbackground-color: var(--reltio-button-color-background);\n\t}\n}\n\n/* Text + Primary */\n._text_1lt78_98._primary_1lt78_104 {\n\tcolor: var(--reltio-button-color-primary);\n\n\t&:hover {\n\t\tbackground-color: var(--reltio-button-color-background);\n\t}\n}\n\n/* Text + Inherited */\n._text_1lt78_98._inherited_1lt78_114 {\n\tcolor: inherit;\n\n\t&:hover {\n\t\tbackground-color: var(--reltio-button-color-background);\n\t}\n}\n\n/* Size: Small */\n._small_1lt78_159 {\n\tmin-height: var(--reltio-button-height-small);\n\tpadding: var(--reltio-button-padding-y-small)\n\t\tvar(--reltio-button-padding-x-small);\n\tfont-size: 0.875rem;\n}\n\n/* Size: Medium */\n._medium_1lt78_167 {\n\tmin-height: var(--reltio-button-height-medium);\n\tpadding: var(--reltio-button-padding-y-medium)\n\t\tvar(--reltio-button-padding-x-medium);\n}\n\n/* Size: Large */\n._large_1lt78_174 {\n\tmin-height: var(--reltio-button-height-large);\n\tpadding: var(--reltio-button-padding-y-large)\n\t\tvar(--reltio-button-padding-x-large);\n}\n\n/* State: Disabled */\n._disabled_1lt78_181 {\n\topacity: var(--reltio-button-disabled-opacity);\n\tcursor: var(--reltio-button-disabled-cursor);\n}\n\n/* Full Width */\n._fullWidth_1lt78_187 {\n\twidth: 100%;\n}\n');const Sr=Or,Ar=({variant:e="filled",color:t="inherited",size:n="medium",disabled:o=!1,fullWidth:i=!1,children:a,className:l,onClick:s,href:c,type:u="button","aria-label":d,...f})=>{const p=(0,r.useRef)(null);(0,r.useEffect)((()=>{o&&p.current&&document.activeElement===p.current&&p.current.blur()}),[o]);const h=!o,m=e=>{h?c&&o?e.preventDefault():s?.(e):e.preventDefault()},g=e=>{h?"Enter"!==e.key&&" "!==e.key||(" "===e.key&&e.preventDefault(),c?p.current?.click():s?.(e)):e.preventDefault()},v=_r(Sr.root,Sr[e],Sr[t],Sr[n],o&&Sr.disabled,i&&Sr.fullWidth,l),y={"aria-label":d,"aria-disabled":!!o||void 0};return c?(0,Pn.jsx)("a",{ref:p,href:o?void 0:c,className:v,onClick:m,onKeyDown:g,...y,...f,children:a}):(0,Pn.jsx)("button",{ref:p,type:u,disabled:o,className:v,onClick:m,onKeyDown:g,...y,...f,children:a})};kr('\n._skeletonRoot_1e8wa_1 {\n\t--reltio-skeleton-row-height: 16px;\n\t--reltio-skeleton-row-gap: 12px;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: var(--reltio-skeleton-row-gap, 12px);\n}\n\n._row_1e8wa_10 {\n\twidth: 100%;\n\theight: var(--reltio-skeleton-row-height, 16px);\n\tbackground-color: #f5f5fa;\n\toverflow: hidden;\n\tposition: relative;\n}\n\n._row_1e8wa_10::before {\n\tcontent: "";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbottom: 0;\n\tbackground-color: #9898b34d;\n\tanimation: _indeterminate1_1e8wa_1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395)\n\t\tinfinite;\n}\n\n._row_1e8wa_10::after {\n\tcontent: "";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbottom: 0;\n\tbackground-color: #9898b34d;\n\tanimation: _indeterminate2_1e8wa_1 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n\tanimation-delay: 1.15s;\n}\n\n@keyframes _indeterminate1_1e8wa_1 {\n\t0% {\n\t\tleft: -35%;\n\t\tright: 100%;\n\t}\n\t60% {\n\t\tleft: 100%;\n\t\tright: -90%;\n\t}\n\t100% {\n\t\tleft: 100%;\n\t\tright: -90%;\n\t}\n}\n\n@keyframes _indeterminate2_1e8wa_1 {\n\t0% {\n\t\tleft: -200%;\n\t\tright: 100%;\n\t}\n\t60% {\n\t\tleft: 107%;\n\t\tright: -8%;\n\t}\n\t100% {\n\t\tleft: 107%;\n\t\tright: -8%;\n\t}\n}\n');const Mr=JSON.parse('{"root":"_root_1v61f_1","small":"_small_1v61f_23","medium":"_medium_1v61f_28","large":"_large_1v61f_33","xlarge":"_xlarge_1v61f_38","inherited":"_inherited_1v61f_43","primary":"_primary_1v61f_47","secondary":"_secondary_1v61f_51","success":"_success_1v61f_55","warning":"_warning_1v61f_59","error":"_error_1v61f_63"}');kr("\n._root_1v61f_1 {\n\t--reltio-icon-size-small: 16px;\n\t--reltio-icon-size-medium: 24px;\n\t--reltio-icon-size-large: 32px;\n\t--reltio-icon-size-xlarge: 48px;\n\n\t--reltio-icon-color-inherited: currentColor;\n\t--reltio-icon-color-primary: var(--reltio-color-primary, #0066cc);\n\t--reltio-icon-color-secondary: var(--reltio-color-secondary, #6c757d);\n\t--reltio-icon-color-success: var(--reltio-color-success, #28a745);\n\t--reltio-icon-color-warning: var(--reltio-color-warning, #ffc107);\n\t--reltio-icon-color-error: var(--reltio-color-error, #dc3545);\n\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tflex-shrink: 0;\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-medium));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-medium));\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-inherited));\n}\n\n._small_1v61f_23 {\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-small));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-small));\n}\n\n._medium_1v61f_28 {\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-medium));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-medium));\n}\n\n._large_1v61f_33 {\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-large));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-large));\n}\n\n._xlarge_1v61f_38 {\n\twidth: var(--reltio-icon-size, var(--reltio-icon-size-xlarge));\n\theight: var(--reltio-icon-size, var(--reltio-icon-size-xlarge));\n}\n\n._inherited_1v61f_43 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-inherited));\n}\n\n._primary_1v61f_47 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-primary));\n}\n\n._secondary_1v61f_51 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-secondary));\n}\n\n._success_1v61f_55 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-success));\n}\n\n._warning_1v61f_59 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-warning));\n}\n\n._error_1v61f_63 {\n\tfill: var(--reltio-icon-color, var(--reltio-icon-color-error));\n}\n");const Pr=Mr,Rr=JSON.parse('{"root":"_root_d5cr4_1","userMessage":"_userMessage_d5cr4_24","userMessageSkeletonWrapper":"_userMessageSkeletonWrapper_d5cr4_29","scrollToBottom":"_scrollToBottom_d5cr4_34","lastMessageWrapper":"_lastMessageWrapper_d5cr4_65"}');kr("\n/* CSS Custom Properties - All defined on .root with --reltio-chat- prefix */\n._root_d5cr4_1 {\n\t--reltio-chat-padding: 16px;\n\t--reltio-chat-message-gap: 16px;\n\t--reltio-chat-scroll-button-size: 36px;\n\t--reltio-chat-scroll-button-bg: #ffffff;\n\t--reltio-chat-scroll-button-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n\t--reltio-chat-scroll-button-color: #5f6368;\n\t--reltio-chat-scroll-button-hover-bg: #f1f3f4;\n\t--reltio-chat-scroll-button-bottom: 16px;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\tposition: relative;\n\theight: 100%;\n\twidth: 100%;\n\tbox-sizing: border-box;\n\toverflow: auto;\n\talign-items: start;\n\tpadding: var(--reltio-chat-padding);\n\tgap: var(--reltio-chat-message-gap);\n}\n\n._userMessage_d5cr4_24 {\n\tmargin-left: auto;\n\tmax-width: 80%;\n}\n\n._userMessageSkeletonWrapper_d5cr4_29 {\n\twidth: 40%;\n\tmargin-left: auto;\n}\n\n._scrollToBottom_d5cr4_34 {\n\tposition: sticky;\n\tbottom: var(--reltio-chat-scroll-button-bottom, 16px);\n\talign-self: center;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: var(--reltio-chat-scroll-button-size, 36px);\n\theight: var(--reltio-chat-scroll-button-size, 36px);\n\tborder-radius: 50%;\n\tborder: none;\n\tbackground: var(--reltio-chat-scroll-button-bg, #ffffff);\n\tbox-shadow: var(\n\t\t--reltio-chat-scroll-button-shadow,\n\t\t0 2px 8px rgba(0, 0, 0, 0.15)\n\t);\n\tcolor: var(--reltio-chat-scroll-button-color, #5f6368);\n\tcursor: pointer;\n\ttransition: background 0.15s ease;\n\tflex-shrink: 0;\n}\n\n._scrollToBottom_d5cr4_34:hover {\n\tbackground: var(--reltio-chat-scroll-button-hover-bg);\n}\n\n._scrollToBottom_d5cr4_34:focus-visible {\n\toutline: 2px solid #1a73e8;\n\toutline-offset: 2px;\n}\n\n._lastMessageWrapper_d5cr4_65 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tposition: relative;\n\talign-items: start;\n\tgap: var(--reltio-chat-message-gap);\n\tmin-height: 100%;\n\twidth: 100%;\n}\n");const Tr=Rr,Nr=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Pn.jsx)("svg",{className:_r(Pr.root,Pr[e],Pr[t],n),style:r,viewBox:"0 -960 960 960","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:(0,Pn.jsx)("path",{d:"M400-280v-400l200 200-200 200Z"})}),Ir=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Pn.jsxs)("svg",{className:_r(Pr.root,Pr[e],Pr[t],n),style:r,viewBox:"0 0 24 24","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:[(0,Pn.jsx)("path",{d:"M14,15c-.26,0-.51-.1-.71-.29-.39-.39-.39-1.02,0-1.41l1.29-1.29-1.29-1.29c-.39-.39-.39-1.02,0-1.41s1.02-.39,1.41,0l2,2c.39.39.39,1.02,0,1.41l-2,2c-.2.2-.45.29-.71.29ZM10,15c-.26,0-.51-.1-.71-.29l-2-2c-.39-.39-.39-1.02,0-1.41l2-2c.39-.39,1.02-.39,1.41,0s.39,1.02,0,1.41l-1.29,1.29,1.29,1.29c.39.39.39,1.02,0,1.41-.2.2-.45.29-.71.29Z"}),(0,Pn.jsx)("path",{d:"M12,22c-1.32,0-2.61-.26-3.83-.76-1.22-.5-2.31-1.23-3.24-2.17s-1.66-2.03-2.17-3.24c-.51-1.22-.76-2.51-.76-3.83s.26-2.61.76-3.83c.5-1.22,1.23-2.31,2.17-3.24.93-.93,2.02-1.66,3.24-2.17,2.44-1.01,5.21-1.01,7.65,0,1.22.5,2.31,1.23,3.24,2.17s1.66,2.02,2.17,3.24c.51,1.22.76,2.51.76,3.83s-.26,2.61-.76,3.83c-.5,1.22-1.23,2.31-2.17,3.24-.94.93-2.03,1.66-3.25,2.17s-2.51.76-3.83.76ZM12,4c-1.06,0-2.09.21-3.06.61-.98.4-1.85.99-2.59,1.73-.75.75-1.33,1.62-1.73,2.6-.4.98-.61,2.01-.61,3.06s.21,2.09.61,3.06.99,1.85,1.73,2.6c.75.75,1.62,1.33,2.6,1.73,1.95.81,4.18.81,6.12,0,.98-.4,1.85-.99,2.6-1.73.75-.75,1.33-1.62,1.73-2.6.4-.97.61-2,.61-3.06s-.21-2.09-.61-3.06c-.4-.98-.99-1.85-1.73-2.6-.75-.75-1.62-1.33-2.6-1.73s-2.01-.61-3.06-.61Z"})]}),Dr=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Pn.jsx)("svg",{className:_r(Pr.root,Pr[e],Pr[t],n),style:r,viewBox:"0 -960 960 960","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:(0,Pn.jsx)("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Lr=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Pn.jsx)("svg",{className:_r(Pr.root,Pr[e],Pr[t],n),style:r,viewBox:"0 -960 960 960","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:(0,Pn.jsx)("path",{d:"m296-345-56-56 240-240 240 240-56 56-184-184-184 184Z"})}),Fr=({size:e="medium",color:t="inherited",className:n,style:r,"aria-label":o})=>(0,Pn.jsx)("svg",{className:_r(Pr.root,Pr[e],Pr[t],n),style:r,viewBox:"0 -960 960 960","aria-hidden":!o,"aria-label":o,role:o?"img":void 0,children:(0,Pn.jsx)("path",{d:"M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"})}),jr=JSON.parse('{"root":"_root_gqx9m_1","text":"_text_gqx9m_24","iconWrapper":"_iconWrapper_gqx9m_33"}');kr("\n/* CSS Custom Properties - All defined on .root with --reltio-error-message- prefix */\n._root_gqx9m_1 {\n\t--reltio-error-message-bg: #fef2f2;\n\t--reltio-error-message-border-color: #fecaca;\n\t--reltio-error-message-text-color: #b91c1c;\n\t--reltio-error-message-icon-color: #dc2626;\n\t--reltio-error-message-padding: 12px 16px;\n\t--reltio-error-message-gap: 8px;\n\t--reltio-error-message-border-radius: 8px;\n\t--reltio-error-message-border-width: 1px;\n\t--reltio-error-message-icon-size: 20px;\n\n\tdisplay: flex;\n\talign-items: flex-start;\n\tgap: var(--reltio-error-message-gap, 8px);\n\tpadding: var(--reltio-error-message-padding, 12px 16px);\n\tbackground-color: var(--reltio-error-message-bg, #fef2f2);\n\tborder: var(--reltio-error-message-border-width, 1px) solid\n\t\tvar(--reltio-error-message-border-color, #fecaca);\n\tborder-radius: var(--reltio-error-message-border-radius, 8px);\n\tbox-sizing: border-box;\n}\n\n._text_gqx9m_24 {\n\tcolor: var(--reltio-error-message-text-color, #b91c1c);\n\tfont-size: 14px;\n\tline-height: 1.5;\n\tmargin: 0;\n\tflex: 1;\n\tmin-width: 0;\n}\n\n._iconWrapper_gqx9m_33 {\n\tflex-shrink: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: var(--reltio-error-message-icon-size, 20px);\n\theight: var(--reltio-error-message-icon-size, 20px);\n}\n\n._iconWrapper_gqx9m_33 svg {\n\twidth: 100%;\n\theight: 100%;\n}\n");const zr=jr,Br=({children:e,className:t,...n})=>(0,Pn.jsxs)("div",{className:_r(zr.root,t),role:"alert","aria-live":"polite",...n,children:[(0,Pn.jsx)("span",{className:zr.iconWrapper,"aria-hidden":"true",children:(0,Pn.jsx)(Dr,{size:"small",color:"error"})}),(0,Pn.jsx)("p",{className:zr.text,children:e||"Something went wrong. Please try again."})]});var Hr,Ur=32,Vr=9,Zr=13,Kr=10,qr=96,Wr=126,$r=91,Gr=94,Yr=62,Xr=35,Qr=37,Jr=45,eo=61,to=92,no=42,ro=95,oo=60,io=64,ao=93,lo=33,so=38,co=58,uo=102,fo=104,po=119,ho=116,mo=112,go=115,vo=160,yo=44,bo=59,xo=63,Eo=46,Co=47,wo=39,ko=34,_o=43,Oo=124,So=123,Ao=125,Mo=40,Po=41,Ro=30,To=31,No=48,Io=57,Do=65,Lo=90,Fo=97,jo=122,zo=128,Bo=32,Ho={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},Uo=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,Vo={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"};function Zo(e){var t={};for(var n in e){var r=n.toLowerCase(),o=Vo[r];if(o)t[o]=e[n];else{var i=n.indexOf(":");-1!==i?t[n.slice(0,i)+n[i+1].toUpperCase()+n.slice(i+2)]=e[n]:t[n]=e[n]}}return t}var Ko=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function qo(e){return-1===e.indexOf("&")?e:e.replace(Uo,((e,t)=>{var n=function(e){if(!Hr){if(!(typeof document<"u"))return;Hr=document.createElement("textarea")}var t="&"+e+";";Hr.innerHTML=t;var n=Hr.value;return n!==t?n:void 0}(t);if(n)return n;if("#"===t[0]){var r="x"===t[1]||"X"===t[1]?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return 0===r||r>=55296&&r<=57343||r>1114111?"�":r<=65535?String.fromCharCode(r):String.fromCharCode(55296+(r-65536>>10),56320+(r-65536&1023))}return e}))}var Wo=/(javascript|vbscript|data(?!:image)):/i;function $o(e){if(Wo.test(e))return null;if(-1===e.indexOf("%"))return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Wo.test(t))return null}catch{return null}return e}var Go,Yo,Xo={};for(Go=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],Yo=0;Yo<Go.length;Yo++)Xo[Go[Yo]]="a";for(Xo[231]=Xo[199]="c",Xo[240]=Xo[208]="d",Go=[200,201,202,203,233,232,234,235],Yo=0;Yo<Go.length;Yo++)Xo[Go[Yo]]="e";for(Go=[207,239,206,238,205,237,204,236],Yo=0;Yo<Go.length;Yo++)Xo[Go[Yo]]="i";for(Xo[209]=Xo[241]="n",Go=[248,216,339,338,213,245,212,244,211,243,210,242],Yo=0;Yo<Go.length;Yo++)Xo[Go[Yo]]="o";for(Go=[220,252,219,251,218,250,217,249],Yo=0;Yo<Go.length;Yo++)Xo[Go[Yo]]="u";function Qo(e){return e<zo&&!!(ii[e]&(ri|oi))}function Jo(e){for(var t="",n=-1,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(Qo(o))o>=Do&&o<=Lo?(n>=0&&(t+=e.slice(n,r),n=-1),t+=String.fromCharCode(o+Bo)):n<0&&(n=r);else if(o===Ur||o===Jr)n>=0&&(t+=e.slice(n,r),n=-1),t+="-";else{n>=0&&(t+=e.slice(n,r),n=-1);var i=Xo[o];i&&(t+=i)}}return n>=0&&(t+=e.slice(n)),t}function ei(e,t,n){return e.startsWith(t,n)}Xo[376]=Xo[255]=Xo[221]=Xo[253]="y";var ti=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function ni(e){let t=e.toLowerCase();if(ti.has(t))return!0;let n=t.indexOf(":");return-1!==n&&(t=t.slice(n+1),ti.has(t))}var ri=4,oi=8,ii=function(){let e,t=new Uint8Array(128);for(t[Vr]=33,t[Kr]=17,t[12]=1,t[Zr]=17,t[Ur]=33,e=lo;e<=Co;e++)t[e]=2;for(e=co;e<=io;e++)t[e]=2;for(e=$r;e<=qr;e++)t[e]=2;for(e=So;e<=Wr;e++)t[e]=2;for(e=No;e<=Io;e++)t[e]=oi;for(e=Do;e<=Lo;e++)t[e]=64|ri;for(e=Fo;e<=jo;e++)t[e]=ri;return t}(),ai=(function(){let e=new Uint8Array(128);e[to]=2,e[$r]=4,e[no]=e[ro]=e[Wr]=e[eo]=3,e[qr]=e[oo]=e[io]=e[ao]=e[Kr]=e[Ur]=e[lo]=1,e[uo]=e[fo]=e[po]=1}(),[]);function li(e,t,n){for(var r=e,o=t.split("."),i=0;i<o.length&&(r=r?.[o[i]],void 0!==r);)i++;return r||n}function si(...e){return e.filter(Boolean).join(" ")}var ci=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),ui=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function di(e){return ci.has(e.toLowerCase())}function fi(e){return ui.lastIndex=0,e.replace(ui,(function(e,t,n,r){return"&lt;"+t+n+r}))}var pi=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,hi=/^<[A-Z]/,mi=["script","pre","style","textarea"],gi=new Set(mi),vi=/<(?:pre|script|style|textarea)\b/i,yi=new Set(["table","thead","tbody","tfoot","tr","td","th"]),bi=new Uint8Array(128);!function(){for(var e=[qr,no,ro,Wr,eo,$r,lo,oo,to,To,fo,po,uo],t=0;t<e.length;t++)bi[e[t]]=1}();var xi=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function Ei(e,t,n){for(var r=t,o=n;r<o&&(e.charCodeAt(r)===Ur||e.charCodeAt(r)===Vr);)r++;if(r>=o)return!1;e.charCodeAt(r)===Oo&&r++;for(var i=0;r<o;){for(;r<o&&(e.charCodeAt(r)===Ur||e.charCodeAt(r)===Vr);)r++;if(r>=o)break;if(e.charCodeAt(r)===Oo&&i>0){for(var a=r+1;a<o&&(e.charCodeAt(a)===Ur||e.charCodeAt(a)===Vr);)a++;if(a>=o)return!0}if(e.charCodeAt(r)===co&&r++,r>=o||e.charCodeAt(r)!==Jr)return!1;for(;r<o&&e.charCodeAt(r)===Jr;)r++;for(r<o&&e.charCodeAt(r)===co&&r++,i++;r<o&&(e.charCodeAt(r)===Ur||e.charCodeAt(r)===Vr);)r++;if(r<o){if(e.charCodeAt(r)!==Oo)return!1;r++}}return i>0}function Ci(e,t){if(e.charCodeAt(t)!==oo)return null;let n=t+1,r=e.length,o=!1;e.charCodeAt(n)===Co&&(n++,o=!0);let i=n,a=e.charCodeAt(n);if(!(a>=Fo&&a<=jo||a>=Do&&a<=Lo))return null;for(;n<r&&(e.charCodeAt(n)>=Fo&&e.charCodeAt(n)<=jo||e.charCodeAt(n)>=Do&&e.charCodeAt(n)<=Lo||e.charCodeAt(n)>=No&&e.charCodeAt(n)<=Io||e.charCodeAt(n)===Jr);)n++;let l=e.slice(i,n);if(!l)return null;let s=n;for(;n<r&&(e.charCodeAt(n)===Ur||e.charCodeAt(n)===Vr||e.charCodeAt(n)===Kr);)n++;let c=e.slice(s,n);if(n===s&&n<r){var u=e.charCodeAt(n);if(u!==Yr&&u!==Co)return null}let d=n,f={},p=!1;for(;n<r;){let t=e.charCodeAt(n);if(t===Yr)return{tag:l,attrs:f,selfClosing:!1,end:n+1,rawAttrs:e.slice(d,n),whitespaceBeforeAttrs:c,isClosing:o,hasSpaceBeforeSlash:p};if(t!==Ur&&t!==Vr&&t!==Kr){if(t===Co&&n+1<r&&e.charCodeAt(n+1)===Yr){let t=e.slice(d,n);return p=n>d&&e.charCodeAt(n-1)===Ur,{tag:l,attrs:f,selfClosing:!0,end:n+2,rawAttrs:t,whitespaceBeforeAttrs:c,isClosing:o,hasSpaceBeforeSlash:p}}var h=n,m=e.charCodeAt(n);if(!(m>=Fo&&m<=jo||m>=Do&&m<=Lo||m===ro||m===co))return null;for(n++;n<r&&((E=e.charCodeAt(n))>=Fo&&E<=jo||E>=Do&&E<=Lo||E>=No&&E<=Io||E===ro||E===Eo||E===co||E===Jr);)n++;for(var g=e.slice(h,n);n<r&&(e.charCodeAt(n)===Ur||e.charCodeAt(n)===Vr);)n++;if(e.charCodeAt(n)===eo){for(n++;n<r&&(e.charCodeAt(n)===Ur||e.charCodeAt(n)===Vr);)n++;var v=e.charCodeAt(n);if(v===ko||v===wo){n++;for(var y=n;n<r&&e.charCodeAt(n)!==v;)n++;if(n>=r)return null;if(f[g]=e.slice(y,n),n++,n<r){var b=e.charCodeAt(n);if(b!==Ur&&b!==Vr&&b!==Kr&&b!==Yr&&b!==Co)return null}}else if(v===So){var x=1;for(y=n,n++;n<r&&x>0;){var E;(E=e.charCodeAt(n))===So?x++:E===Ao&&x--,n++}f[g]=e.slice(y,n)}else{for(y=n;n<r;){var C=e.charCodeAt(n);if(C===Ur||C===Vr||C===Yr||C===Kr||C===ko||C===wo||C===eo||C===oo||C===qr)break;n++}if(n===y)return null;f[g]=e.slice(y,n)}}else f[g]=""}else n++}return null}function wi(e,t,n){for(var r=0,o=e.length,i=!1;r<o;){for(var a=e.indexOf("\n",r),l=a<0?o:a,s=r,c=0;s<l&&c<4;)if(e.charCodeAt(s)===Ur)c++,s++;else{if(e.charCodeAt(s)!==Vr)break;c+=4,s++}if(s>=l)i=!1,r=a<0?o:a+1;else{if(c<4){var u=e.charCodeAt(s);if(u===qr||u===Wr){for(var d=u,f=0,p=s;p<l&&e.charCodeAt(p)===d;)f++,p++;if(f>=3){i=!1;for(var h=a<0?o:a+1;h<o;){for(var m=h,g=0;m<o&&g<4;){var v=e.charCodeAt(m);if(v===Ur)g++,m++;else{if(v!==Vr)break;g+=4,m++}}if(g<4&&m<o&&e.charCodeAt(m)===d){for(var y=0;m<o&&e.charCodeAt(m)===d;)y++,m++;if(y>=f){for(;m<o&&(e.charCodeAt(m)===Ur||e.charCodeAt(m)===Vr);)m++;if(m>=o||e.charCodeAt(m)===Kr){r=m>=o?o:m+1;break}}}for(;h<o&&e.charCodeAt(h)!==Kr;)h++;h<o&&h++}h>=o&&(r=o);continue}}}for(var b=s;b<l&&e.charCodeAt(b)===Yr;){++b<l&&e.charCodeAt(b)===Ur&&b++;for(var x=0;b<l&&x<4;)if(e.charCodeAt(b)===Ur)x++,b++;else{if(e.charCodeAt(b)!==Vr)break;x+=4,b++}if(x>=4)break;i=!1}if(!i&&c<4&&b<l&&e.charCodeAt(b)===$r&&!(b+1<o&&e.charCodeAt(b+1)===Gr)){var E=ki(e,b,t);if(E){r=E,i=!1;continue}}var C=e.charCodeAt(s);if(C===Xr&&c<4)i=!1;else if(c<4&&(C===Jr||C===no||C===ro)){for(var w=s,k=0;w<l;){var _=e.charCodeAt(w);if(_===C)k++;else if(_!==Ur&&_!==Vr)break;w++}i=!(k>=3&&w>=l)}else i=!0;r=a<0?o:a+1}}}function ki(e,t,n){let r=e.length;if(e.charCodeAt(t)!==$r)return null;let o=t+1<r&&e.charCodeAt(t+1)===Gr,i=t+1;for(;i<r;){if((g=e.charCodeAt(i))===ao){i++;break}if(g===$r)return null;g===to&&i+1<r&&i++,i++}if(i>r||e.charCodeAt(i-1)!==ao)return null;let a=e.slice(t+1,i-1);if(a.length>999)return null;let l=Mi(a);if(!l||i>=r||e.charCodeAt(i)!==co)return null;i++;let s=!1;for(;i<r;){let t=e.charCodeAt(i);if(t===Ur||t===Vr)i++;else{if(t!==Kr||s)break;s=!0,i++}}if(o){let t=e.indexOf("\n",i),o=t<0?r:t,a=e.slice(i,o).trim();return n[l]={target:a,title:void 0},t<0?r:t+1}var c;if(i<r&&e.charCodeAt(i)===oo){i++;for(var u=i;i<r&&e.charCodeAt(i)!==Yr&&e.charCodeAt(i)!==Kr;)e.charCodeAt(i)===to&&i+1<r&&i++,i++;if(i>=r||e.charCodeAt(i)!==Yr)return null;c=e.slice(u,i),i++;for(var d=e.indexOf("\n",i),f=d<0?r:d,p=i;p<f&&(e.charCodeAt(p)===Ur||e.charCodeAt(p)===Vr);)p++;if(p<f){if(p===i)return null;var h=e.charCodeAt(p);if(h!==ko&&h!==wo&&h!==Mo)return null}}else{u=i;for(var m=0;i<r;){var g;if((g=e.charCodeAt(i))===Mo)m++;else if(g===Po){if(0===m)break;m--}else{if(g===Ur||g===Vr||g===Kr)break;g===to&&i+1<r&&i++}i++}if(!(c=e.slice(u,i)))return null}for(;i<r&&(e.charCodeAt(i)===Ur||e.charCodeAt(i)===Vr);)i++;var v,y=e.indexOf("\n",i),b=y<0?r:y,x=!1,E=i,C=i;if(i===b&&i<r)for(C=i+1;C<r&&(e.charCodeAt(C)===Ur||e.charCodeAt(C)===Vr);)C++;if(C<r){var w=e.charCodeAt(C);if(w===ko||w===wo||w===Mo){for(var k=w===Mo?41:w,_=C+1,O=_;_<r;){var S=e.charCodeAt(_);if(S===k){for(var A=_+1;A<r&&(e.charCodeAt(A)===Ur||e.charCodeAt(A)===Vr);)A++;(A>=r||e.charCodeAt(A)===Kr)&&(v=e.slice(O,_),x=!0,E=A<r?A+1:r);break}if(S===to&&_+1<r)_+=2;else{if(S===Kr&&_+1<r&&e.charCodeAt(_+1)===Kr)break;_++}}if(!x&&C===i)return null}}if(x)return n[l]||(n[l]={target:Ri(c),title:void 0!==v?qo(Ri(v)):v}),E;for(;i<b&&(e.charCodeAt(i)===Ur||e.charCodeAt(i)===Vr);)i++;return i<b?null:(n[l]||(n[l]={target:Ri(c),title:v}),y<0?r:y+1)}var _i=1,Oi=4,Si=new Uint8Array(128);Si[Ur]=_i,Si[Vr]=_i,Si[Kr]=2|_i,Si[Zr]=2|_i,Si[Xr]=32|Oi,Si[Yr]=32|Oi,Si[Jr]=96|Oi,Si[_o]=32|Oi,Si[no]=96|Oi,Si[ro]=96|Oi,Si[qr]=96|Oi,Si[Wr]=96|Oi,Si[oo]=96|Oi,Si[$r]=64|Oi,Si[lo]=64|Oi,Si[Oo]=32|Oi;for(let e=No;e<=Io;e++)Si[e]=48;for(let e=Do;e<=Lo;e++)Si[e]=8;for(let e=Fo;e<=jo;e++)Si[e]=8;function Ai(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++)if(e.charCodeAt(t)!==to){if(e.charCodeAt(t)===$r||e.charCodeAt(t)===ao)return!0}else t++;return!1}function Mi(e){var t=e.replace(/\s+/g," ").trim();return-1!==t.indexOf("ẞ")?t.replace(/\u1E9E/g,"ss").toLowerCase():t.toLowerCase()}function Pi(e){return e<zo?Si[e]:e===vo?_i:0}function Ri(e){return e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}function Ti(e,t){var n=e.indexOf("\n",t);return n<0?e.length:n}function Ni(e,t){let n=Ti(e,t);return n<e.length?n+1:n}function Ii(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==Ur&&n!==Vr)break;t++}return t}function Di(e,t){let n=Ni(e,t);for(;n<e.length;){if(Bi(e,n,Ti(e,n)))return n;n=Ni(e,n)}return e.length}function Li(e,t,n,r){let o=0;for(;t+o<n&&e.charCodeAt(t+o)===r;)o++;return o}Si[to]=Oi,Si[ao]=Oi,Si[Mo]=Oi,Si[Po]=Oi,Si[co]=Oi,Si[ko]=Oi,Si[wo]=Oi,Si[so]=Oi,Si[eo]=Oi,Si[36]=Oi,Si[Qr]=Oi,Si[yo]=Oi,Si[Eo]=Oi,Si[Co]=Oi,Si[bo]=Oi,Si[xo]=Oi,Si[io]=Oi,Si[Gr]=Oi,Si[So]=Oi,Si[Ao]=Oi;var Fi=0,ji=0;function zi(e,t,n){for(Fi=0,ji=0;t+ji<n;){let n=e.charCodeAt(t+ji);if(n===Vr)Fi+=4-Fi%4;else{if(n!==Ur)break;Fi++}ji++}}function Bi(e,t,n){return Ii(e,t,n)>=n}function Hi(e,t,n,r){let o=Ti(e,t);if(zi(e,t,o),Fi>3)return null;let i=t+ji;if(e.charCodeAt(i)!==Xr)return null;let a=Li(e,i,o,35);if(a<1||a>6||(i+=a,i<o&&e.charCodeAt(i)!==Ur&&e.charCodeAt(i)!==Vr))return null;i=Ii(e,i,o);for(var l=o;l>i&&e.charCodeAt(l-1)===Ur;)l--;for(var s=l;l>i&&e.charCodeAt(l-1)===Xr;)l--;if(l<s)if(l===i||e.charCodeAt(l-1)===Ur)for(;l>i&&e.charCodeAt(l-1)===Ur;)l--;else l=s;let c=e.slice(i,l),u=Sa(c,0,c.length,n,r),d=(r?.slugify||Jo)(c);return{node:{type:Ho.heading,level:a,children:u,id:d},end:Ni(e,o)}}function Ui(e,t){let n=Ti(e,t);if(zi(e,t,n),Fi>3)return null;let r=t+ji,o=e.charCodeAt(r);if(o!==Jr&&o!==no&&o!==ro)return null;let i=0;for(;r<n;){let t=e.charCodeAt(r);if(t===o)i++;else if(t!==Ur&&t!==Vr)return null;r++}return i<3?null:{node:{type:Ho.breakThematic},end:Ni(e,n)}}function Vi(e,t,n){let r=Ti(e,t);if(zi(e,t,r),Fi>3)return null;let o=Fi,i=t+ji,a=e.charCodeAt(i);if(a!==qr&&a!==Wr)return null;let l=Li(e,i,r,a);if(l<3)return null;i+=l;let s=Ii(e,i,r),c=r;if(a===qr)for(let t=s;t<r;t++)if(e.charCodeAt(t)===qr)return null;for(;c>s&&(e.charCodeAt(c-1)===Ur||e.charCodeAt(c-1)===Vr);)c--;let u=e.slice(s,c),d="",f="",p=u.indexOf(" ");-1===p?d=u:(d=u.slice(0,p),f=u.slice(p+1).trim()),d=Ri(d);var h=void 0;if(f){xi.lastIndex=0;for(var m;null!==(m=xi.exec(f));)h||(h={}),h[m[1]]=void 0!==m[2]?m[2]:m[3]}let g=Ni(e,r),v=g,y=e.length;for(;v<e.length;){let t=Ti(e,v);if(zi(e,v,t),Fi<4){let n=v+ji;var b=Li(e,n,t,a);if(b>=l&&Bi(e,n+b,t)){y=Ni(e,t);break}}v=Ni(e,t)}var x;if(0===o)x=v>g&&e.charCodeAt(v-1)===Kr?e.slice(g,v-1):e.slice(g,v);else{x="";for(var E=g;E<v;){var C=Ti(e,E);zi(e,E,C);var w=Math.min(ji,o);x+=e.slice(E+w,C)+"\n",E=Ni(e,C)}x.length>0&&x.charCodeAt(x.length-1)===Kr&&(x=x.slice(0,-1))}return{node:{type:Ho.codeBlock,lang:d||void 0,text:x,infoString:f||void 0,attrs:h},end:y}}function Zi(e,t){if(zi(e,t,Ti(e,t)),Fi<4)return null;let n="",r=t;for(;r<e.length;){let t=Ti(e,r);if(zi(e,r,t),Bi(e,r,t)){for(var o=0,i=Ni(e,t);i<e.length;){var a=Ti(e,i);if(!Bi(e,i,a)){if(zi(e,i,a),Fi>=4){for(var l=0;l<=o;l++)n+="\n";r=i;break}break}o++,i=Ni(e,a)}if(r!==i)break;continue}if(Fi<4)break;let f=0,p=0;var s=0;for(let n=r;n<t&&p<4;n++){if(e.charCodeAt(n)===Vr){var c=4-p%4;p+c>4&&(s=p+c-4),p+=c}else p++;f++}var u="";if(s>0)for(var d=0;d<s;d++)u+=" ";n+=(u+=e.slice(r+f,t))+"\n",r=Ni(e,t)}for(;n.length>0&&n.charCodeAt(n.length-1)===Kr;)n=n.slice(0,-1);for(;n.length>0&&n.charCodeAt(n.length-1)===Kr;)n=n.slice(0,-1);return n?{node:{type:Ho.codeBlock,text:n},end:r}:null}function Ki(e,t,n,r){if(zi(e,t,Ti(e,t)),Fi>3)return null;let o=t+ji;if(e.charCodeAt(o)!==Yr)return null;let i,a="",l=t,s=!1,c=!1,u=!1;for(;l<e.length;){let t=Ti(e,l);zi(e,l,t);let n=l+ji;if(e.charCodeAt(n)===Yr){let r=n+1;var d=Fi+1,f=!1;if(r<t){var p=e.charCodeAt(r);p===Ur?(r++,d++,f=!0):p===Vr&&(f=!0)}for(var h="",m=!1,g=r;g<t;g++)if(e.charCodeAt(g)===Vr){m=!0;break}if(m){var v=d;if(f&&r<t&&e.charCodeAt(r)===Vr){for(var y=4-v%4,b=0;b<y-1;b++)h+=" ";v+=y,r++}for(var x=r;x<t;x++)if(e.charCodeAt(x)===Vr){for(var E=4-v%4,C=0;C<E;C++)h+=" ";v+=E}else h+=e[x],v++}else h=e.slice(r,t);if(!a&&!i){let n=h.match(/^\[!([A-Za-z]+)\]\s*$/);if(n){i=n[1].toUpperCase(),l=Ni(e,t);continue}}a+=h+"\n";var w=h.trimStart();w.startsWith("```")||w.startsWith("~~~")?u=!u:h.startsWith(" ")||h.startsWith("\t")?u=!0:w.length>0&&!u&&(u=!1),c=w.length>0,l=Ni(e,t)}else{if(!a||Bi(e,l,t)||!c)break;if(Fi<4){var k=l+ji,_=k<t?e.charCodeAt(k):0;if(_===Xr||_===Yr||_===qr||_===Wr||_===oo||(_===Jr||_===no||_===ro)&&Ui(e,l)||(_===Jr||_===no||_===_o)&&k+1<t&&(e.charCodeAt(k+1)===Ur||e.charCodeAt(k+1)===Vr))break;if(_>=No&&_<=Io){for(var O=k;O<t&&e.charCodeAt(O)>=No&&e.charCodeAt(O)<=Io;)O++;if(O<t&&(e.charCodeAt(O)===Eo||e.charCodeAt(O)===Po))break}}if(u)break;a+=e.slice(l,t)+"\n",s=!0,l=Ni(e,t)}}if(!a&&!i)return null;var{inBlockQuote:S,f:A}=n;n.inBlockQuote=!0,s&&(n.f=!0);let M=Ma(a||"",n,r);n.inBlockQuote=S,n.f=A;let P={type:Ho.blockQuote,children:M};return i&&(P.alert=i),{node:P,end:l}}function qi(e,t,n){for(var r=0,o=t;o<n;o++)e.charCodeAt(o)===Vr?r+=4-r%4:r++;return r}function Wi(e,t,n){if(zi(e,t,n),Fi>3)return null;var r=t+ji;if(r>=n)return null;var o=e.charCodeAt(r),i=Fi,a=r;if(o===Jr||o===no||o===_o){if((a=r+1)<n&&e.charCodeAt(a)!==Ur&&e.charCodeAt(a)!==Vr&&e.charCodeAt(a)!==Kr)return null}else{if(!(o>=No&&o<=Io))return null;for(var l=r;l<n&&l-r<9;){var s=e.charCodeAt(l);if(s<No||s>Io)break;l++}if(!(l>r&&l<n))return null;var c=e.charCodeAt(l);if(c!==Eo&&c!==Po)return null;if((a=l+1)<n&&e.charCodeAt(a)!==Ur&&e.charCodeAt(a)!==Vr&&e.charCodeAt(a)!==Kr)return null}var u=a,d=qi(e,t,a),f=0,p=u,h=d;if(u>=n)return{ordered:o>=No&&o<=Io,marker:o>=No&&o<=Io?e[l]:e[r],start:o>=No&&o<=Io?parseInt(e.slice(r,l),10):void 0,contentStart:u,contentCol:d+1,markerCol:i,isEmpty:!0};for(;p<n&&(e.charCodeAt(p)===Ur||e.charCodeAt(p)===Vr);)e.charCodeAt(p)===Vr?h+=4-h%4:h++,p++,f++;var m=p>=n;return m||h-d>4?(h=d+1,p=u+1,f=1):0===f&&(h=d+1,p=u,f=1),{ordered:o>=No&&o<=Io,marker:o>=No&&o<=Io?e[l]:e[r],start:o>=No&&o<=Io?parseInt(e.slice(r,l),10):void 0,contentStart:p,contentCol:h,markerCol:i,isEmpty:m}}var $i=0;function Gi(e,t,n,r){var o=0,i=t;for($i=0;i<n&&o<r;){var a=e.charCodeAt(i);if(a===Vr){var l=4-o%4;if(o+l>r){$i=o+l-r,i++,o=r;break}o+=l}else{if(a!==Ur)break;o++}i++}return i}function Yi(e,t,n,r){var o=Ti(e,t),i=Wi(e,t,o);if(!i)return null;var a=[],l=t,s=i.contentCol,c="",u=i.isEmpty,d=!1,f=!1;if(!i.isEmpty){for(var p=!1,h=i.contentStart;h<o;h++)if(e.charCodeAt(h)===Vr){p=!0;break}if(p){var m="",g=qi(e,t,i.contentStart),v=g-i.contentCol;if(v>0)for(var y=0;y<v;y++)m+=" ";for(var b=i.contentStart;b<o;b++)if(e.charCodeAt(b)===Vr){for(var x=4-g%4,E=0;E<x;E++)m+=" ";g+=x}else m+=e[b],g++;c=m+"\n"}else c=e.slice(i.contentStart,o)+"\n"}for(l=Ni(e,o);l<e.length;){var C=Ti(e,l);zi(e,l,C);var w=e.charCodeAt(l+ji);if(Fi<s&&(w===Jr||w===no||w===ro)&&Fi<=3&&Ui(e,l))break;var k=Wi(e,l,C);if(k&&k.ordered===i.ordered&&k.marker===i.marker&&k.markerCol<s)a.push({contentCol:s,raw:c,hasBlankAfter:d,isEmpty:u}),d&&(f=!0),s=k.contentCol,u=k.isEmpty,d=!1,c=k.isEmpty?"":e.slice(k.contentStart,C)+"\n",l=Ni(e,C);else if(Bi(e,l,C)){c+="\n",l=Ni(e,C);for(var _=!1,O=0;O<c.length;O++){var S=c.charCodeAt(O);if(S!==Kr&&S!==Zr&&S!==Ur&&S!==Vr){_=!0;break}}if(u&&!_){if(!(l<e.length))break;var A=Wi(e,l,Ti(e,l));if(!A||A.ordered!==i.ordered||A.marker!==i.marker)break;d=!0}if(l<e.length){var M=Ti(e,l);zi(e,l,M);var P=e.charCodeAt(l+ji);if((P===Jr||P===no||P===ro)&&Fi<=3&&Ui(e,l))break;var R=Wi(e,l,M);if(R&&R.ordered===i.ordered&&R.marker===i.marker&&R.markerCol<s){d=!0;continue}if(!Bi(e,l,M)&&Fi<s)break}}else{if(!(Fi>=s)){for(var T=!1,N=0;N<c.length;N++){var I=c.charCodeAt(N);if(I!==Kr&&I!==Zr&&I!==Ur&&I!==Vr){T=!0;break}}if(!d&&T&&!u){var D=l+ji,L=e.charCodeAt(D);if(L!==Xr&&L!==Yr&&L!==oo&&L!==qr&&L!==Wr&&(L!==Jr&&L!==no&&L!==ro&&L!==_o||null===Ui(e,l)&&null===Wi(e,l,C))&&!(L>=No&&L<=Io&&null!==Wi(e,l,C))){c+=""+e.slice(D,C)+"\n",l=Ni(e,C);continue}}break}var F=Gi(e,l,C,s);if($i>0){for(var j="",z=s,B=0;B<$i;B++)j+=" ",z++;for(var H=F;H<C;H++)if(e.charCodeAt(H)===Vr){for(var U=4-z%4,V=0;V<U;V++)j+=" ";z+=U}else j+=e[H],z++;c+=j+"\n"}else c+=e.slice(F,C)+"\n";l=Ni(e,C)}}if(a.push({contentCol:s,raw:c,hasBlankAfter:d,isEmpty:u}),0===a.length)return null;var Z=f;if(!Z)for(var K=0;K<a.length;K++){if(a[K].hasBlankAfter&&K<a.length-1){Z=!0;break}if(!a[K].isEmpty){for(var q=a[K].raw,W=q.length,$=0,G=!1,Y=!1,X=!1,Q=!1,J=0,ee=0,te=-1;$<W;){var ne=q.indexOf("\n",$);if(ne<0&&(ne=W),Q){zi(q,$,ne);for(var re=q.slice($+ji,ne),oe=0;oe<re.length&&re.charCodeAt(oe)===J;)oe++;oe>=ee&&""===re.slice(oe).trim()&&(Q=!1),$=ne<W?ne+1:W}else if(Bi(q,$,ne))te>=0?X=!0:G&&(Y=!0),$=ne<W?ne+1:W;else{if(zi(q,$,ne),te>=0){if(Fi>=te){$=ne<W?ne+1:W;continue}var ie=Wi(q,$,ne);if(ie&&ie.markerCol<te&&ie.contentCol<=te){$=ne<W?ne+1:W;continue}if(ie){$=ne<W?ne+1:W;continue}te=-1,X&&(Y=!0,X=!1)}var ae=q.slice($+ji,ne),le=ae.charCodeAt(0);if((le===qr||le===Wr)&&Fi<=3){for(var se=0;se<ae.length&&ae.charCodeAt(se)===le;)se++;if(se>=3){if(Y&&G){Z=!0;break}Q=!0,J=le,ee=se,G=!0,$=ne<W?ne+1:W;continue}}var ce=Fi<=3?Wi(q,$,ne):null;if(ce&&G){if(Y){Z=!0;break}te=ce.contentCol,X=!1,$=ne<W?ne+1:W,G=!0}else{if(Y){Z=!0;break}G=!0,$=ne<W?ne+1:W}}}if(Z)break}}for(var ue=[],de=0;de<a.length;de++){for(var fe=a[de],pe=fe.raw,he=pe.length;he>0&&pe.charCodeAt(he-1)===Kr;)he--;var me,ge=he<pe.length?pe.slice(0,he):pe,ve=null;if(ge.length>=3&&ge.charCodeAt(0)===$r){var ye=ge[1];(" "===ye||"x"===ye||"X"===ye)&&ge.charCodeAt(2)===ao&&(ve={type:Ho.gfmTask,completed:"x"===ye||"X"===ye},ge=ge.slice(3))}if(fe.isEmpty&&""===ge.trim())me=[];else if(Z){var be=n.inList;n.inList=!0,me=Ma(ge,n,r),n.inList=be}else{var xe=n.inList;if(n.inList=!0,me=Ma(ge,n,r),n.inList=xe,1===me.length&&me[0].type===Ho.paragraph)me=me[0].children;else{for(var Ee=[],Ce=0;Ce<me.length;Ce++)if(me[Ce].type===Ho.paragraph)for(var we=me[Ce].children,ke=0;ke<we.length;ke++)Ee.push(we[ke]);else Ee.push(me[Ce]);me=Ee}}ve?ue.push([ve,{type:Ho.text,text:" "},...me]):ue.push(me)}return{node:{type:i.ordered?Ho.orderedList:Ho.unorderedList,start:i.ordered?i.start:void 0,items:ue},end:l}}var Xi=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function Qi(e,t,n){let r={};for(let[a,l]of Object.entries(e)){let e=a,s=a.toLowerCase();if("style"===s&&"string"==typeof l){let t={},n=[],o=0,i=0;for(let e=0;e<l.length;e++){let t=l.charCodeAt(e);t===Mo?o++:t===Po?o--:t===bo&&0===o&&(n.push(l.slice(i,e)),i=e+1)}i<l.length&&n.push(l.slice(i));let a=!1;n.forEach((e=>{let n=e.indexOf(":");if(-1===n)return;let r=e.slice(0,n).trim(),o=e.slice(n+1).trim();if(r&&o){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(o))return void(a=!0);let e=-1!==r.indexOf("-")?r.replace(/-([a-z])/g,((e,t)=>t.toUpperCase())):r;t[e]=o}})),!a&&Object.keys(t).length>0&&(r[e]=t)}else if("href"!==s&&"src"!==s||!n?.sanitizer)if(""===l)r[e]=!0;else if(l.length>=2&&l.charCodeAt(0)===So&&l.charCodeAt(l.length-1)===Ao){var o=l.slice(1,-1);if(o.length>0){var i=o.charCodeAt(0);if(i===$r||i===So)try{r[e]=JSON.parse(o);continue}catch{}}if("true"===o){r[e]=!0;continue}if("false"===o){r[e]=!1;continue}if(n?.evalUnserializableExpressions)try{r[e]=(0,eval)("("+o+")");continue}catch{}r[e]=o}else r[e]=l;else{let o=n.sanitizer(l,t,s);null!==o&&(r[e]=o)}}return r}function Ji(e,t,n){let r=t.length;var o=t.charCodeAt(0);o>=Do&&o<=Lo&&(o+=Bo);for(let a=n;a<=e.length-r;a++){var i=e.charCodeAt(a);if(i>=Do&&i<=Lo&&(i+=Bo),i!==o)continue;let n=!0;for(let o=1;o<r;o++){let r=e.charCodeAt(a+o),i=t.charCodeAt(o);if(r>=Do&&r<=Lo&&(r+=Bo),i>=Do&&i<=Lo&&(i+=Bo),r!==i){n=!1;break}}if(n)return a}return-1}var ea=-1;function ta(e,t,n){let r=n.toLowerCase(),o="<"+r,i="</"+r,a=1,l=t,s=e.length;for(ea=-1;l<s&&a>0;){let t=Ji(e,o,l),n=Ji(e,i,l);if(-1===n)return-1;if(-1!==t&&t<n){let n=Ci(e,t);n?(n.tag.toLowerCase()===r&&!n.isClosing&&!n.selfClosing&&!ni(n.tag)&&a++,l=n.end):l=t+1}else{var c=n+i.length,u=c<s?e.charCodeAt(c):62;if((u===Yr||u===Ur||u===Vr||u===Kr)&&(a--,0===a)){ea=n;let t=n+i.length;for(;t<s&&e.charCodeAt(t)!==Yr;)t++;return t+1}l=n+1}}return-1}function na(e,t,n,r){if(r.ignoreHTMLBlocks||r.disableParsingRawHTML)return null;var o=Ti(e,t);if(zi(e,t,o),Fi>3&&!n.inHTML)return null;var i=t+ji;if(e.charCodeAt(i)!==oo)return null;var a=e.indexOf(">",i+1);if(-1!==a&&a<o){var l=e.slice(i+1,a);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(l)||/^[^\s@]+@[^\s@]+$/.test(l))return null}var s=function(e,t){if(e.charCodeAt(t)!==oo)return 0;var n=t+1,r=e.length;if(e.charCodeAt(n)===lo&&e.charCodeAt(n+1)===Jr&&e.charCodeAt(n+2)===Jr)return 2;if(e.charCodeAt(n)===xo)return 3;if(e.charCodeAt(n)===lo){var o=e.charCodeAt(n+1);if(o>=Do&&o<=Lo)return 4;if("[CDATA["===e.slice(n+1,n+8))return 5}for(var i=e.charCodeAt(n)===Co,a=i?n+1:n,l=a;l<r;){var s=e.charCodeAt(l);if(!(s>=Do&&s<=Lo||s>=Fo&&s<=jo||s>=No&&s<=Io||s===Jr))break;l++}if(l===a)return 0;var c=e.slice(a,l);if(gi.has(c.toLowerCase())){if(i)return 0;var u=e.charCodeAt(l);return u===Ur||u===Vr||u===Yr||u===Kr||l>=r?1:0}if(Xi.has(c.toLowerCase())){if(i){for(var d=l;d<r&&(e.charCodeAt(d)===Ur||e.charCodeAt(d)===Vr);)d++;return d<r&&e.charCodeAt(d)===Yr?6:0}var f=l<r?e.charCodeAt(l):-1;return f===Ur||f===Vr||f===Yr||f===Kr||f===Co||-1===f?6:0}if(i){for(var p=l;p<r&&(e.charCodeAt(p)===Ur||e.charCodeAt(p)===Vr);)p++;if(p<r&&e.charCodeAt(p)===Yr){var h=Ti(e,t);if(""===e.slice(p+1,h).trim())return 7}}else{var m=Ti(e,t),g=Ci(e,t);if(g&&g.end<=m&&""===e.slice(g.end,m).trim())return 7}return 0}(e,i);if(s>=1&&s<=5){var c=e.length;if(1===s){for(var u=e.length,d=0;d<mi.length;d++){var f=Ji(e,"</"+mi[d]+">",i);f>=0&&f<u&&(u=f)}if(u<e.length){var p=e.indexOf(">",u);c=p>=0?Ni(e,p+1):e.length}}else{var h=2===s?"--\x3e":3===s?"?>":4===s?">":"]]>",m=e.indexOf(h,i);m>=0&&(c=Ni(e,m+h.length))}var g=e.slice(i,c);if(s>=2)return{node:{type:Ho.htmlComment,text:g,raw:!0,endPos:c},end:c};var v="div",y=g.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);y&&(v=y[1]);var b,x=Ci(e,i),E={};x&&!x.isClosing&&(E=Qi(x.attrs,v,r),b=x.whitespaceBeforeAttrs+x.rawAttrs);var C=Ji(g,"</"+v.toLowerCase(),0),w=g,k="";if(x&&x.isClosing)for(w=g.slice(x.end-i);w.length>0&&w.charCodeAt(w.length-1)===Kr;)w=w.slice(0,-1);else if(x&&!x.isClosing){var _=x.end-i;if(-1!==C)for((w=g.slice(_)).charCodeAt(0)===Kr&&(w=w.slice(1));w.length>0&&w.charCodeAt(w.length-1)===Kr;)w=w.slice(0,-1);else for(w=g;w.length>0&&w.charCodeAt(w.length-1)===Kr;)w=w.slice(0,-1);-1!==C&&(k=g.slice(_,C).trim())}var O=!!x&&x.isClosing;return{node:{type:Ho.htmlBlock,tag:v,attrs:E,e:b,children:[],a:w,text:k,d:!0,b:O,endPos:c,canInterruptParagraph:!0},end:c}}if(6===s||7===s){var S=Di(e,t),A=S<e.length?S:e.length,M=e.slice(i,A),P=S<e.length?Ni(e,S):e.length,R=Ci(e,i);if(R){var T=R.tag,N=T.toLowerCase();if(R.isClosing){var I=e.slice(R.end,A);return{node:{type:Ho.htmlBlock,tag:T,attrs:{},children:[],a:I,text:I,d:!0,b:!0,endPos:A,canInterruptParagraph:6===s},end:P}}var D=n.c||0,L=e.slice(i,A),F=-1,j=-1;if(!R.selfClosing&&!ni(T)&&D<10){for(var z="</"+N,B=1,H=R.end-i;H<L.length&&B>0;){var U=Ji(L,"<"+N,H),V=Ji(L,z,H);if(-1===V)break;if(-1!==U&&U<V){var Z=U+N.length+1;if(Z<L.length){var K=L.charCodeAt(Z);(K===Ur||K===Vr||K===Kr||K===Yr||K===Co)&&B++}H=U+1}else{var q=V+z.length;if(q<L.length){var W=L.charCodeAt(q);if((W===Yr||W===Ur||W===Vr||W===Kr)&&0==--B){F=V;for(var $=q;$<L.length&&L.charCodeAt($)!==Yr;)$++;j=$+1;break}}else if(0==--B){F=V,j=L.length;break}H=V+1}}var G=!1;if(-1===F&&6===s&&!R.isClosing&&!yi.has(N)){var Y=e.slice(R.end),X=Ji(Y,z,0);if(-1!==X&&-1!==Y.slice(0,X).indexOf("\n\n")){for(var Q=R.end+X,J=Q+z.length;J<e.length&&e.charCodeAt(J)!==Yr;)J++;if(J<e.length&&e.charCodeAt(J)===Yr){var ee=J+1,te=Ti(e,ee);A=te,P=Ni(e,te),L=e.slice(i,A),M=e.slice(i,A),F=Q-i,j=ee-i,G=!0}}}}var ne=-1!==R.rawAttrs.indexOf("\n")||-1!==R.whitespaceBeforeAttrs.indexOf("\n"),re=!1;-1!==F&&(re=0===L.slice(j).trim().length);var oe=!1,ie=A,ae=P;if(-1!==F){var le=i+j,se=Ti(e,le-1);if(le<se){for(var ce=le;ce<se&&(e.charCodeAt(ce)===Ur||e.charCodeAt(ce)===Vr);)ce++;if(ce<se&&e.charCodeAt(ce)===oo){var ue=Ci(e,ce);ue&&!ue.isClosing&&(oe=!0,ie=le,ae=le,re=!0)}}if(!oe){var de=Ni(e,se);if(de<A){for(var fe=de;fe<A&&(e.charCodeAt(fe)===Ur||e.charCodeAt(fe)===Vr);)fe++;fe<A&&e.charCodeAt(fe)===oo&&Ci(e,fe)&&(oe=!0,ie=se,ae=de,re=!0)}}!oe&&n.inHTML&&(oe=!0,ie=se,ae=Ni(e,se),re=0===e.slice(le,se).trim().length)}var pe=[],he="";if(-1!==F){var me=(he=L.slice(R.end-i,F)).trim();if(me){var{inline:ge,inHTML:ve,c:ye}=n;if(n.inHTML=!0,n.c=D+1,"p"===N)n.inline=!0,pe=Sa(me,0,me.length,n,r);else{var be=-1!==he.indexOf("\n\n"),xe=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(me),Ee=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.test(me);be||xe||n.inHTML&&Ee||Ee?(n.inline=!1,pe=Ma(he,n,r)):(n.inline=!0,pe=Sa(me,0,me.length,n,r))}n.inline=ge,n.inHTML=ve,n.c=ye}}var Ce=!1;if(6===s&&-1!==F&&!n.inHTML&&!ne){var we=he,ke=/<[a-zA-Z][^>]*>/.test(we),_e=/\n\n/.test(we)||/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(we);ke&&!_e&&(Ce=!0)}if(n.inHTML||7===s||ne||!re||Ce){var Oe;if(-1!==F&&oe){var Se=!1;if(n.inHTML&&j<L.length){for(var Ae=j;Ae<L.length&&L.charCodeAt(Ae)!==Kr;)Ae++;var Me=L.slice(j,Ae).trim();Se=Me.length>1&&Me.charCodeAt(0)===oo&&Me.charCodeAt(1)!==Co}Oe=Se?L.slice(R.end-i):he}else 7!==s&&!n.inHTML||-1===F?oe?Oe=e.slice(i,ie):ne?Oe=M:(Oe=L.slice(R.end-i)).charCodeAt(0)===Kr&&(Oe=Oe.slice(1)):(Oe=L.slice(R.end-i)).charCodeAt(0)===Kr&&(Oe=Oe.slice(1));return{node:{type:Ho.htmlBlock,tag:T,attrs:Qi(R.attrs,T,r),e:R.whitespaceBeforeAttrs+R.rawAttrs,children:pe,a:Oe,text:Oe,d:!0,b:!1,endPos:ie,canInterruptParagraph:6===s},end:ae}}return{node:{type:Ho.htmlBlock,tag:T,attrs:Qi(R.attrs,T,r),e:R.whitespaceBeforeAttrs+R.rawAttrs,children:pe,a:G?"":he,text:he,d:!1,b:!1,endPos:ie,canInterruptParagraph:6===s},end:ae}}var Pe=M.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Re=Pe?Pe[2]:"div",Te=!!Pe&&"/"===Pe[1],Ne=M;if(Te){var Ie=M.indexOf(">");-1!==Ie&&(Ne=M.slice(Ie+1))}return{node:{type:Ho.htmlBlock,tag:Re,attrs:{},children:[],a:Ne,text:Ne,d:!0,b:Te,endPos:A,canInterruptParagraph:6===s},end:P}}var De=Ci(e,i);if(!De)return null;var Le=De.tag,Fe=Le.toLowerCase(),je=Le.charCodeAt(0),ze=je>=Do&&je<=Lo;if(!(ze||Xi.has(Fe)||gi.has(Fe)||Fe.includes("-")))return null;if(De.isClosing)return{node:{type:Ho.htmlSelfClosing,tag:Le,attrs:{},endPos:De.end,b:!0,a:e.slice(i,De.end)},end:De.end};var Be=ta(e,De.end,Le),He=[];if(-1!==Be){var Ue=ea,Ve=e.slice(De.end,Ue),Ze=Ve.trim();if(Ze){var Ke=-1!==Ve.indexOf("\n\n"),qe=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(Ze),We=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.test(Ze),$e=n.inline,Ge=n.inHTML,Ye=n.c;n.inHTML=!0,n.c=(n.c||0)+1,Ke||qe||We?(n.inline=!1,He=Ma(Ve,n,r)):(n.inline=!0,He=Sa(Ze,0,Ze.length,n,r)),n.inline=$e,n.inHTML=Ge,n.c=Ye}var Xe=Ti(e,Be),Qe=e.slice(Be,Xe).trim()?Be:Ni(e,Be),Je=ze?e.slice(i,Be):e.slice(i,Qe),et=ze?Be:Qe;return{node:{type:Ho.htmlBlock,tag:Le,attrs:Qi(De.attrs,Le,r),e:De.whitespaceBeforeAttrs+De.rawAttrs,children:He,a:Je,text:ze?Ve:Je,d:!0,b:!1,endPos:et,canInterruptParagraph:!1},end:Qe}}var tt=Di(e,De.end),nt=tt<e.length?Ni(e,tt):tt,rt=e.slice(De.end,tt);if(rt.trim()){var{inline:ot,inHTML:it,c:at}=n;n.inline=!1,n.inHTML=!0,n.c=(n.c||0)+1,He=Ma(rt,n,r),n.inline=ot,n.inHTML=it,n.c=at}var lt=e.slice(De.end,tt);return{node:{type:Ho.htmlBlock,tag:Le,attrs:Qi(De.attrs,Le,r),e:De.whitespaceBeforeAttrs+De.rawAttrs,children:He,a:lt,text:rt,d:!0,b:!1,endPos:tt,canInterruptParagraph:!1},end:nt}}function ra(e,t,n){for(var r=0,o=e.length;r<o&&(e.charCodeAt(r)===Ur||e.charCodeAt(r)===Vr);)r++;for(;o>r&&(e.charCodeAt(o-1)===Ur||e.charCodeAt(o-1)===Vr);)o--;r<o&&e.charCodeAt(r)===Oo&&r++,o>r&&e.charCodeAt(o-1)===Oo&&(o-2<r||e.charCodeAt(o-2)!==to)&&o--;for(var i=[],a=r,l=!1,s=[],c=r;c<o;){var u=e.charCodeAt(c);if(u===to&&c+1<o)e.charCodeAt(c+1)===Oo?(l||(l=!0,s=[]),s.push(e.slice(a,c)),s.push("|"),a=c+=2):c+=2;else if(u!==qr)if(u!==Oo)c++;else{var d=l?(s.push(e.slice(a,c)),s.join("")):e.slice(a,c);i.push(d.trim()),a=++c,l=!1,s=[]}else{for(var f=0;c<o&&e.charCodeAt(c)===qr;)f++,c++;for(var p=!1;c<o&&!p;){for(var h=0;c<o&&e.charCodeAt(c)===qr;)h++,c++;h===f?p=!0:0===h&&c++}}}var m=l?(s.push(e.slice(a,o)),s.join("")):e.slice(a,o);return i.push(m.trim()),i.map((function(e){var r=-1!==e.indexOf("\\|")?e.replace(/\\\|/g,"|"):e;return Sa(r,0,r.length,t,n)}))}function oa(e,t,n,r){let o=Ti(e,t);var i=e.indexOf("|",t);if(i<0||i>=o)return null;let a=Ni(e,o);if(a>=e.length)return null;let l=Ti(e,a);if(!Ei(e,a,l))return null;let s=e.slice(t,o),c=e.slice(a,l);for(var u=[],d=0,f=c.length;d<f&&(c.charCodeAt(d)===Ur||c.charCodeAt(d)===Vr);)d++;for(d<f&&c.charCodeAt(d)===Oo&&d++;d<f;){for(;d<f&&(c.charCodeAt(d)===Ur||c.charCodeAt(d)===Vr);)d++;if(d>=f||c.charCodeAt(d)===Oo)break;var p=c.charCodeAt(d)===co;for(p&&d++;d<f&&c.charCodeAt(d)===Jr;)d++;var h=d<f&&c.charCodeAt(d)===co;for(h&&d++,u.push(p&&h?"center":h?"right":p?"left":null);d<f&&(c.charCodeAt(d)===Ur||c.charCodeAt(d)===Vr);)d++;d<f&&c.charCodeAt(d)===Oo&&d++}let m=ra(s,n,r);if(u.length!==m.length)return null;let g=[],v=Ni(e,l);for(;v<e.length;){let t=Ti(e,v),o=e.slice(v,t);if(Bi(e,v,t))break;if(zi(e,v,t),Fi<4){var y=e.charCodeAt(v+ji);if(y===Yr||y===Xr||(y===Jr||y===no||y===ro)&&Ui(e,v))break;if(y===qr||y===Wr){for(var b=v+ji,x=0;b<t&&e.charCodeAt(b)===y;)x++,b++;if(x>=3)break}}g.push(ra(o,n,r)),v=Ni(e,t)}if((r.streaming||r.optimizeForStreaming)&&0===g.length)return null;for(var E=m.length,C=0;C<g.length;C++)if(g[C].length<E)for(;g[C].length<E;)g[C].push([]);else g[C].length>E&&(g[C].length=E);return{node:{type:Ho.table,header:m,cells:g,align:u},end:v}}function ia(e,t,n){if(zi(e,t,Ti(e,t)),Fi>3)return null;var r=t+ji;if(e.charCodeAt(r)!==$r)return null;if(r+1<e.length&&e.charCodeAt(r+1)===Gr){var o=function(e,t,n){var r=e.length;if(e.charCodeAt(t)!==$r||t+1>=r||e.charCodeAt(t+1)!==Gr)return null;for(var o=t+2,i=o;o<r&&e.charCodeAt(o)!==ao;){if(e.charCodeAt(o)===Kr)return null;o++}if(o>=r)return null;var a=("^"+e.slice(i,o)).toLowerCase();if(++o>=r||e.charCodeAt(o)!==co)return null;for(o++;o<r&&(e.charCodeAt(o)===Ur||e.charCodeAt(o)===Vr);)o++;if(o<r&&e.charCodeAt(o)===Kr)for(o++;o<r&&(e.charCodeAt(o)===Ur||e.charCodeAt(o)===Vr);)o++;var l=e.indexOf("\n",o);l<0&&(l=r);for(var s=e.slice(o,l).trim(),c=l<r?l+1:r;c<r;){var u=Ti(e,c);if(zi(e,c,u),!(Fi>=2)||Bi(e,c,u)){if(Bi(e,c,u)){var d=Ni(e,u);if(d<r&&(zi(e,d,Ti(e,d)),Fi>=2)){s+="\n",c=Ni(e,u);continue}break}break}s+="\n"+e.slice(c,u),c=Ni(e,u)}return n.refs[a]||(n.refs[a]={target:s,title:void 0}),{node:{type:Ho.footnote},end:c}}(e,r,n);return o||null}n.refs||(n.refs={});var i=ki(e,r,n.refs);return null===i?null:{node:{type:Ho.refCollection},end:i}}function aa(e,t,n,r){let o=t,i=0,a=0,l=-1;for(;o<e.length;){let t=l>=0?l:Ti(e,o);if(l=-1,Bi(e,o,t))break;if(zi(e,o,t),Fi<4&&a>0&&!n.f){let n=e.charCodeAt(o+ji);if(n===eo||n===Jr){let r=o+ji;for(;r<t&&e.charCodeAt(r)===n;)r++;for(;r<t&&(e.charCodeAt(r)===Ur||e.charCodeAt(r)===Vr);)r++;if(r>=t){i=n===eo?1:2,o=Ni(e,t);break}}}a=t;let b=Ni(e,t);if(b<e.length){if(e.charCodeAt(b)===Ro){var s=Ti(e,b);o=Ni(e,s),a=s;continue}let t=Ti(e,b);if(l=t,zi(e,b,t),Fi<4){let i=e.charCodeAt(b+ji);if(i===Yr){o=b;break}if(i===Xr&&Hi(e,b,n,r)){o=b;break}if(i===qr||i===Wr){for(var c=b+ji,u=0;c<t&&e.charCodeAt(c)===i;)u++,c++;if(u>=3){o=b;break}}if(i===oo){var d=b+ji+1,f=d<t?e.charCodeAt(d):0,p=f===lo||f===xo;if(p||f!==Co){if(!p){for(var h=d;h<t&&(e.charCodeAt(h)>=Do&&e.charCodeAt(h)<=Lo||e.charCodeAt(h)>=Fo&&e.charCodeAt(h)<=jo||e.charCodeAt(h)>=No&&e.charCodeAt(h)<=Io||e.charCodeAt(h)===Jr);)h++;if(h>d){var m=e.slice(d,h).toLowerCase();p=Xi.has(m)||gi.has(m)}}}else{for(var g=d+1,v=g;v<t&&(e.charCodeAt(v)>=Do&&e.charCodeAt(v)<=Lo||e.charCodeAt(v)>=Fo&&e.charCodeAt(v)<=jo||e.charCodeAt(v)>=No&&e.charCodeAt(v)<=Io||e.charCodeAt(v)===Jr);)v++;v>g&&(p=Xi.has(e.slice(g,v).toLowerCase()))}if(p&&na(e,b,n,r)){o=b;break}}if(i===Jr||i===no||i===_o){let n=b+ji+1;if(n<t&&(e.charCodeAt(n)===Ur||e.charCodeAt(n)===Vr)&&Ii(e,n,t)<t&&!Ui(e,b)){o=b;break}}if(i>=No&&i<=Io){let n=b+ji;for(;n<t&&e.charCodeAt(n)>=No&&e.charCodeAt(n)<=Io;)n++;if(n<t&&(e.charCodeAt(n)===Eo||e.charCodeAt(n)===Po)&&n-(b+ji)==1&&49===e.charCodeAt(b+ji)){var y=n+1;if(y<t&&(e.charCodeAt(y)===Ur||e.charCodeAt(y)===Vr)&&Ii(e,y,t)<t){o=b;break}}}if(i===Oo){let n=Ni(e,t);if(n<e.length&&Ei(e,n,Ti(e,n))){o=b;break}}if((i===Jr||i===no||i===ro)&&Ui(e,b)){if(i!==Jr){o=b;break}let n=0,r=b+ji;for(;r<t&&e.charCodeAt(r)===Jr;)n++,r++;for(;r<t&&(e.charCodeAt(r)===Ur||e.charCodeAt(r)===Vr);)r++;if(r<t){o=b;break}}}}o=Ni(e,t)}for(var b=i?a:o;b>t&&(e.charCodeAt(b-1)===Kr||e.charCodeAt(b-1)===Zr||e.charCodeAt(b-1)===Ur||e.charCodeAt(b-1)===Vr);)b--;for(var x=t;x<b&&(e.charCodeAt(x)===Ur||e.charCodeAt(x)===Vr);)x++;if(x>=b)return null;for(var E=!1,C=x;C<b;C++)if(e.charCodeAt(C)===Ro){E=!0;break}var w=E?e.slice(x,b).replace(/\u001E/g,""):e.slice(x,b);if(!w)return null;let k=function(e,t,n,r,o){var i=e.indexOf("\n",0);if(i<0||i>=n)return Sa(e,0,n,r,o);for(var a="",l=0,s=0;s<n;){var c=e.charCodeAt(s);if(c===qr){var u=sa(e,s,n);if(u>s){for(var d=!1,f=s;f<u;f++)if(e.charCodeAt(f)===Kr){d=!0;break}d&&(a+=e.slice(l,s),a+=e.slice(s,u).replace(/\n/g," "),l=u),s=u;continue}}if(c===oo){var p=ca(e,s,n);if(p>s){s=p;continue}}if(c!==Kr)s++;else{var h=!1,m=0;if(s>0&&e.charCodeAt(s-1)===to)h=!0,m=1;else{for(var g=0,v=s-1;v>=0&&e.charCodeAt(v)===Ur;)g++,v--;g>=2&&(h=!0,m=g)}for(h?(a+=e.slice(l,s-m),a+=""):a+=e.slice(l,s+1),s++;s<n&&e.charCodeAt(s)===Ur;)s++;l=s}}return l<n&&(a+=e.slice(l,n)),Sa(a,0,a.length,r,o)}(w,0,w.length,n,r);if(i){let e=(r?.slugify||Jo)(w);return{node:{type:Ho.heading,level:i,children:k,id:e},end:o}}return{node:{type:Ho.paragraph,children:k},end:o}}function la(e,t,n){if(e.charCodeAt(t)!==qr)return null;let r=Li(e,t,n,96),o=t+r;for(;o<n;){let i=e.indexOf("`",o);if(i<0||i>=n)return null;let a=Li(e,i,n,96);if(a===r){let n=e.slice(t+r,i);return n=n.replace(/\n/g," "),n.length>0&&" "===n[0]&&" "===n[n.length-1]&&n.trim().length>0&&(n=n.slice(1,-1)),{node:{type:Ho.codeInline,text:n},end:i+a}}o=i+a}return null}function sa(e,t,n){if(e.charCodeAt(t)!==qr)return t;let r=Li(e,t,n,96),o=t+r;for(;o<n;){let i=e.indexOf("`",o);if(i<0||i>=n)return t;let a=Li(e,i,n,96);if(a===r)return i+a;o=i+a}return t}function ca(e,t,n){if(e.charCodeAt(t)!==oo)return t;if(t+1<n&&e.charCodeAt(t+1)===Co){let r=t+2;for(;r<n&&e.charCodeAt(r)!==Yr;)r++;return r<n?r+1:t}if(t+3<n&&e.charCodeAt(t+1)===lo&&e.charCodeAt(t+2)===Jr&&e.charCodeAt(t+3)===Jr){let n=e.indexOf("--\x3e",t+4);return n>=0?n+3:t}let r=t+1,o=r;for(;r<n;){let t=e.charCodeAt(r);if(!(t>=Do&&t<=Lo||t>=Fo&&t<=jo||t>=No&&t<=Io||t===Jr))break;r++}if(r===o)return t;let i=e.slice(o,r).toLowerCase(),a=!1;for(;r<n;){let o=e.charCodeAt(r);if(o===Yr){r++;break}if(o===Co&&r+1<n&&e.charCodeAt(r+1)===Yr){r+=2,a=!0;break}if(o!==ko&&o!==wo){if(o===Kr)return t;r++}else{var l=o;for(r++;r<n&&e.charCodeAt(r)!==l;)r++;r<n&&r++}}if(a||ni(i))return r;let s=1;for(;r<n&&s>0;)if(e.charCodeAt(r)===oo)if(r+1<n&&e.charCodeAt(r+1)===Co){let t=r+2,o=t;for(;o<n&&(e.charCodeAt(o)>=Do&&e.charCodeAt(o)<=Lo||e.charCodeAt(o)>=Fo&&e.charCodeAt(o)<=jo);)o++;if(e.slice(t,o).toLowerCase()===i){for(;o<n&&e.charCodeAt(o)!==Yr;)o++;if(o<n&&o++,s--,0===s)return o}r=o}else{let t=r+1,o=t;for(;o<n&&(e.charCodeAt(o)>=Do&&e.charCodeAt(o)<=Lo||e.charCodeAt(o)>=Fo&&e.charCodeAt(o)<=jo);)o++;e.slice(t,o).toLowerCase()===i&&s++,r++}else r++;return r}function ua(e,t,n,r,o){if(e.charCodeAt(t)!==Wr||t+1>=n||e.charCodeAt(t+1)!==Wr)return null;let i=t+2;for(;i+1<n;){let a=e.charCodeAt(i);if(a===qr){let t=sa(e,i,n);if(t>i){i=t;continue}}if(a===Wr&&e.charCodeAt(i+1)===Wr){let n=e.slice(t+2,i),a=Sa(n,0,n.length,r,o);return{node:{type:Ho.textFormatted,tag:"del",children:a},end:i+2}}a===to&&i+1<n&&i++,i++}return null}function da(e,t,n,r,o){if(e.charCodeAt(t)!==eo||t+1>=n||e.charCodeAt(t+1)!==eo)return null;let i=t+2;for(;i+1<n;){let a=e.charCodeAt(i);if(a===qr){let t=sa(e,i,n);if(t>i){i=t;continue}}if(a===eo&&e.charCodeAt(i+1)===eo&&i>t+2){let n=e.slice(t+2,i),a=Sa(n,0,n.length,r,o);return{node:{type:Ho.textFormatted,tag:"mark",children:a},end:i+2}}a===to&&i+1<n&&i++,i++}return null}var fa=/[\p{P}\p{S}]/u;function pa(e,t,n){return e<zo?!!(Pi(e)&Oi):fa.test(t[n])}function ha(e,t,n){return e<zo?!!(Pi(e)&_i):/\p{Zs}/u.test(t[n])}function ma(e,t,n){var r=e.charCodeAt(t);if(r!==no&&r!==ro)return null;var o=Li(e,t,n,r);if(0===o)return null;var i,a,l=t>0?e.charCodeAt(t-1):32,s=t+o<n?e.charCodeAt(t+o):32,c=ha(l,e,t-1),u=ha(s,e,t+o),d=t>0&&pa(l,e,t-1),f=t+o<n&&pa(s,e,t+o),p=!u&&(!f||c||d),h=!c&&(!d||u||f);return r===no?(i=p,a=h):(i=p&&(!h||d),a=h&&(!p||f)),{len:o,canOpen:i,canClose:a}}function ga(e,t,n,r,o){let i=e.charCodeAt(t)===lo,a=i?t+1:t;if(e.charCodeAt(a)!==$r)return null;var l=e.indexOf("]",a+1);if(l<0||l>=n)return null;for(var s=a+1,c=1;s<n&&c>0;){var u=e.charCodeAt(s);if(u===to&&s+1<n)s+=2;else{if(u===qr){var d=sa(e,s,n);if(d>s){s=d;continue}}if(u===oo){var f=va(e,s,n);if(f){s=f.end;continue}var p=ca(e,s,n);if(p>s){s=p;continue}}u===$r?c++:u===ao&&c--,s++}}if(0!==c)return null;var h=s-1,m=e.slice(a+1,h),g=s<n?e.charCodeAt(s):0,v=!1;if(g===Mo){var y=!0;for(s++;s<n&&(e.charCodeAt(s)===Ur||e.charCodeAt(s)===Kr);)s++;var b="",x=s;if(s<n&&e.charCodeAt(s)===oo){for(x=++s;x<n&&e.charCodeAt(x)!==Yr;)if(e.charCodeAt(x)===to&&x+1<n)x+=2;else{if(e.charCodeAt(x)===Kr){y=!1;break}x++}y&&(x>=n||e.charCodeAt(x)!==Yr)&&(y=!1),y&&(b=e.slice(s,x),x++)}else if(y){for(var E=0;x<n;){var C=e.charCodeAt(x);if(C===to&&x+1<n)x+=2;else{if(C===Mo)E++;else if(C===Po){if(0===E)break;E--}else if(C===Ur||C===Kr)break;x++}}b=e.slice(s,x)}if(y){for(s=x;s<n&&(e.charCodeAt(s)===Ur||e.charCodeAt(s)===Kr);)s++;var w;if(s<n){var k=e.charCodeAt(s);if(k===ko||k===wo||k===Mo){for(var _=k===Mo?41:k,O=++s;s<n&&e.charCodeAt(s)!==_;)e.charCodeAt(s)===to&&s+1<n&&s++,s++;s>=n?y=!1:(w=e.slice(O,s),s++)}}if(y){for(;s<n&&(e.charCodeAt(s)===Ur||e.charCodeAt(s)===Kr);)s++;(s>=n||e.charCodeAt(s)!==Po)&&(y=!1)}}if(y){s++,b=Ri(b),void 0!==w&&(w=qo(Ri(w)));var S=null===(o?.sanitizer||$o)(b,i?"img":"a",i?"src":"href")?null:b;if(i){var A=Ca(Sa(m,0,m.length,r,o));return{node:{type:Ho.image,target:S,alt:A,title:w},end:s}}var M=r.inAnchor;r.inAnchor=!0;var P=M?[{type:Ho.text,text:m}]:Sa(m,0,m.length,r,o);return r.inAnchor=M,!r.inAnchor&&Ea(P)?null:{node:{type:Ho.link,target:S,title:w,children:P},end:s}}s=h+1,v=!0}var R="",T=s;if(v||g!==$r){if(Ai(m))return null;R=Mi(m)}else{var N=s+1;T=N;for(var I=!1;T<n&&e.charCodeAt(T)!==ao;)if(e.charCodeAt(T)===to&&T+1<n)T+=2;else{if(e.charCodeAt(T)===$r){I=!0;break}T++}if(I||T>=n)return null;var D=e.slice(N,T);if(D.trim())R=Mi(D);else{if(Ai(m))return null;R=Mi(m)}T+=1}var L=r.refs[R];if(!L)return null;if(i)return{node:{type:Ho.image,target:L.target,alt:Ca(Sa(m,0,m.length,r,o)),title:L.title},end:T};var F=r.inAnchor;return r.inAnchor=!0,P=F?[{type:Ho.text,text:m}]:Sa(m,0,m.length,r,o),r.inAnchor=F,!r.inAnchor&&Ea(P)?null:{node:{type:Ho.link,target:L.target,title:L.title,children:P},end:T}}function va(e,t,n){if(e.charCodeAt(t)!==oo)return null;for(var r=t+1;r<n;){var o=e.charCodeAt(r);if(o===Yr)break;if(o===Ur||o===Kr||o===Zr||o===oo)return null;r++}if(r>=n||e.charCodeAt(r)!==Yr)return null;var i=e.slice(t+1,r);return i.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/)?{node:{type:Ho.link,target:i,children:[{type:Ho.text,text:i}]},end:r+1}:-1!==i.indexOf("@")&&/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(i)?{node:{type:Ho.link,target:"mailto:"+i,children:[{type:Ho.text,text:i}]},end:r+1}:null}function ya(e,t,n,r){if(e.charCodeAt(t)!==$r||t+1>=n||e.charCodeAt(t+1)!==Gr)return null;let o=t+2;for(;o<n&&e.charCodeAt(o)!==ao&&e.charCodeAt(o)!==Kr;)o++;if(o>=n||e.charCodeAt(o)!==ao)return null;let i=e.slice(t+2,o);return i?{node:{type:Ho.footnoteReference,target:"#"+Jo(i),text:i},end:o+1}:null}function ba(e,t,n,r){if(r.disableBareUrls)return null;var o="",i=!1,a=e.charCodeAt(t);if(a===fo||72===a?t+8<=n&&e.charCodeAt(t+1)===ho&&e.charCodeAt(t+2)===ho&&e.charCodeAt(t+3)===mo&&(e.charCodeAt(t+4)===go&&e.charCodeAt(t+5)===co&&e.charCodeAt(t+6)===Co&&e.charCodeAt(t+7)===Co?o="https://":e.charCodeAt(t+4)===co&&e.charCodeAt(t+5)===Co&&e.charCodeAt(t+6)===Co&&(o="http://")):a===uo||70===a?t+6<=n&&e.charCodeAt(t+1)===ho&&e.charCodeAt(t+2)===mo&&e.charCodeAt(t+3)===co&&e.charCodeAt(t+4)===Co&&e.charCodeAt(t+5)===Co&&(o="ftp://"):(a===po||87===a)&&t+4<=n&&e.charCodeAt(t+1)===po&&e.charCodeAt(t+2)===po&&e.charCodeAt(t+3)===Eo&&(o="www.",i=!0),!o)return null;let l=t+o.length;for(;l<n;){let t=e.charCodeAt(l);if(t===Ur||t===Kr||t===Vr||t===Zr||t===oo||t===Yr)break;l++}for(var s=0,c=0,u=t;u<l;u++){var d=e.charCodeAt(u);d===Mo?s++:d===Po&&c++}let f=l;for(;f>t+o.length;){let n=e.charCodeAt(f-1);if(n===Eo||n===yo||n===co||n===lo||n===xo||n===Po){if(n===Po){if(s>=c)break;c--}f--}else{if(n!==bo)break;for(var p=f-2;p>t&&(e.charCodeAt(p)>=Do&&e.charCodeAt(p)<=Lo||e.charCodeAt(p)>=Fo&&e.charCodeAt(p)<=jo||e.charCodeAt(p)>=No&&e.charCodeAt(p)<=Io);)p--;p>=t&&e.charCodeAt(p)===so?f=p:f--}}if(f<=t+o.length)return null;var h=t+(i?4:o.length),m=e.indexOf("/",h);if((m<0||m>f)&&(m=f),i&&-1===e.indexOf(".",h))return null;for(var g=-1,v=-1,y=m-1;y>=h;y--)if(e.charCodeAt(y)===Eo){if(!(g<0)){v=y;break}g=y}for(y=v>=0?v+1:h;y<m;y++)if(e.charCodeAt(y)===ro)return null;var b=e.slice(t,f),x=i?"http://"+b:b;return{node:{type:Ho.link,target:x,children:[{type:Ho.text,text:b}]},end:f}}function xa(e,t,n,r){if(r.disableBareUrls)return null;for(var o=t,i=o;o<n&&((c=e.charCodeAt(o))>=Do&&c<=Lo||c>=Fo&&c<=jo||c>=No&&c<=Io||c===Eo||c===lo||c===Xr||36===c||c===Qr||c===so||c===wo||c===no||c===_o||c===Co||c===eo||c===xo||c===Gr||c===ro||c===qr||c===So||c===Oo||c===Ao||c===Wr||c===Jr);)o++;if(o===i||o>=n||e.charCodeAt(o)!==io)return null;for(var a=++o,l=-1,s=o;o<n;){var c;if((c=e.charCodeAt(o))>=Do&&c<=Lo||c>=Fo&&c<=jo||c>=No&&c<=Io)o++;else if((c===Jr||c===ro)&&o>a)o++;else{if(c!==Eo)break;if(o===a)break;var u=e.charCodeAt(o-1);if(u===Jr||u===ro||o-s>63)break;if(!(o+1<n))break;var d=e.charCodeAt(o+1);if(!(d>=Do&&d<=Lo||d>=Fo&&d<=jo||d>=No&&d<=Io))break;l=o,s=o+1,o++}}if(o-s>63||l<0)return null;var f=e.charCodeAt(o-1);if(!(f>=Do&&f<=Lo||f>=Fo&&f<=jo||f>=No&&f<=Io)||o<=l+1)return null;for(var p=-1,h=l-1;h>=a;h--)if(e.charCodeAt(h)===Eo){p=h;break}for(h=p>=0?p+1:a;h<o;h++)if(e.charCodeAt(h)===ro)return null;var m=e.slice(t,o);return{node:{type:Ho.link,target:"mailto:"+m,children:[{type:Ho.text,text:m}]},end:o}}function Ea(e){for(var t=0;t<e.length;t++)if(e[t].type===Ho.link||"children"in e[t]&&Array.isArray(e[t].children)&&Ea(e[t].children))return!0;return!1}function Ca(e){for(var t="",n=0;n<e.length;n++){var r=e[n];r.type===Ho.text?t+=r.text:r.type===Ho.breakLine?t+=" ":r.type===Ho.codeInline?t+=r.text:"children"in r&&Array.isArray(r.children)?t+=Ca(r.children):r.type===Ho.image?t+=r.alt||"":r.type===Ho.link&&(t+=Ca(r.children))}return t}function wa(e){let t=e.includes("&")?qo(e):e;return{type:Ho.text,text:t}}function ka(e,t,n,r,o){if(e.charCodeAt(t)!==oo)return null;var i=t+1;if(i>=n)return null;var a=e.charCodeAt(i);if(a===lo&&i+1<n&&e.charCodeAt(i+1)===Jr&&i+2<n&&e.charCodeAt(i+2)===Jr){var l=i+3;if(l<n&&e.charCodeAt(l)===Yr)return{node:{type:Ho.htmlComment,text:"",endsWithGreaterThan:!0},end:l+1};if(l+1<n&&e.charCodeAt(l)===Jr&&e.charCodeAt(l+1)===Yr)return{node:{type:Ho.htmlComment,text:"-",endsWithGreaterThan:!0},end:l+2};var s=e.indexOf("--\x3e",l);return-1!==s&&s<=n-3?{node:{type:Ho.htmlComment,text:e.slice(t+4,s)},end:s+3}:null}if(a===xo){var c=e.indexOf("?>",i+1);return-1!==c&&c<n?{node:{type:Ho.htmlSelfClosing,tag:"?",attrs:{},a:e.slice(t,c+2)},end:c+2}:null}if(a===lo&&i+1<n){var u=e.charCodeAt(i+1);if(u===$r&&"[CDATA["===e.slice(i+1,i+8)){var d=e.indexOf("]]>",i+8);return-1!==d&&d<n?{node:{type:Ho.htmlSelfClosing,tag:"![CDATA[",attrs:{},a:e.slice(t,d+3)},end:d+3}:null}if(u>=Do&&u<=Lo){var f=e.indexOf(">",i+2);return-1!==f&&f<n?{node:{type:Ho.htmlSelfClosing,tag:"!"+e.slice(i+1,f),attrs:{},a:e.slice(t,f+1)},end:f+1}:null}}if(a===Co){var p=i+1;if(p>=n)return null;var h=e.charCodeAt(p);if(!(h>=Do&&h<=Lo||h>=Fo&&h<=jo))return null;for(p++;p<n;){var m=e.charCodeAt(p);if(!(m>=Do&&m<=Lo||m>=Fo&&m<=jo||m>=No&&m<=Io||m===Jr))break;p++}for(;p<n&&(e.charCodeAt(p)===Ur||e.charCodeAt(p)===Vr||e.charCodeAt(p)===Kr);)p++;if(p<n&&e.charCodeAt(p)===Yr){var g=e.slice(i+1,p).trim();return{node:{type:Ho.htmlSelfClosing,tag:g,attrs:{},a:e.slice(t,p+1),b:!0},end:p+1}}return null}if(!(a>=Do&&a<=Lo||a>=Fo&&a<=jo))return null;var v=Ci(e,t);if(!v)return null;var y=v.tag,b=y.toLowerCase();if(v.selfClosing||ni(y))return{node:{type:Ho.htmlSelfClosing,tag:y,attrs:Qi(v.attrs,y,o),a:e.slice(t,v.end)},end:v.end};var x=gi.has(b),E=ta(e.slice(0,n),v.end,y);if(-1===E)return{node:{type:Ho.htmlSelfClosing,tag:y,attrs:Qi(v.attrs,y,o),a:e.slice(t,v.end)},end:v.end};var C=function(e,t,n){let r=t.length;var o=t.charCodeAt(0);o>=Do&&o<=Lo&&(o+=Bo);for(let a=Math.min(n,e.length-r);a>=0;a--){var i=e.charCodeAt(a);if(i>=Do&&i<=Lo&&(i+=Bo),i!==o)continue;let n=!0;for(let o=1;o<r;o++){let r=e.charCodeAt(a+o),i=t.charCodeAt(o);if(r>=Do&&r<=Lo&&(r+=Bo),i>=Do&&i<=Lo&&(i+=Bo),r!==i){n=!1;break}}if(n)return a}return-1}(e,"</"+b,E),w=e.slice(v.end,C),k=[];if(x)w.trim()&&(k=[{type:Ho.text,text:w}]);else{var _=w.trim();if(_){var{inAnchor:O,inline:S}=r;"a"===b&&(r.inAnchor=!0),-1!==_.indexOf("\n\n")||/^#{1,6}\s/.test(_)?(r.inline=!1,k=Ma(_,r,o)):k=Sa(_,0,_.length,r,o),r.inAnchor=O,r.inline=S}}return{node:{type:Ho.htmlBlock,tag:y,attrs:Qi(v.attrs,y,o),e:v.rawAttrs,children:k,text:w,d:!1},end:E}}var _a=200,Oa=0;function Sa(e,t,n,r,o){if(++Oa>_a)return Oa--,[{type:Ho.text,text:e.slice(t,n)}];let i=r;if(o.streaming||o.optimizeForStreaming){let r=function(e,t){for(var n=1,r=t+1;r<e.length;r++){var o=e.charCodeAt(r);if(o===$r)n++;else if(o===ao&&0==--n)return r}return-1},o=e.slice(t,n),i=o;for(var a=0,l=0,s=0,c=0,u=0,d=-1,f=-1,p=-1,h=-1,m=-1,g=0;g<o.length;g++){var v=o.charCodeAt(g);v===no?g+1<o.length&&o.charCodeAt(g+1)===no?(a++,d=g,g++):(l++,f=g):v===ro?g+1<o.length&&o.charCodeAt(g+1)===ro?(s++,p=g,g++):(c++,h=g):v===Wr&&g+1<o.length&&o.charCodeAt(g+1)===Wr&&(u++,m=g,g++)}var y=[];u%2==1&&m>=0&&y.push([m,2]),s%2==1&&p>=0&&y.push([p,2]),c%2==1&&h>=0&&y.push([h,1]),a%2==1&&d>=0&&y.push([d,2]),l%2==1&&f>=0&&y.push([f,1]),y.sort((function(e,t){return t[0]-e[0]}));for(var b=0;b<y.length;b++){var x=y[b][0],E=y[b][1];o=o.slice(0,x)+o.slice(x+E)}let F=0,j=-1;for(let e=0;e<o.length;e++)o.charCodeAt(e)===qr&&(F++,j=e);if(F%2==1&&-1!==j){let e=!1,t=-1,n=0;for(;n<o.length;)o.charCodeAt(n)===qr&&(e?(e=!1,t=-1):(t=n,e=!0)),n++;e&&-1!==t&&(o=o.slice(0,t))}for(var C=!0;C;){C=!1;for(var w=-1,k=-1,_=-1,O=!1,S=0;S<o.length;S++)if(o.charCodeAt(S)===$r&&(0===S||o.charCodeAt(S-1)!==to)){var A=S>0&&o.charCodeAt(S-1)===lo,M=A?S-1:S,P=r(o,S);if(-1===P)w=M,O=A,k=S+1,_=o.length;else{var R=P+1;if(R>=o.length)w=M,O=A,k=S+1,_=P;else if(o.charCodeAt(R)===Mo){var T=o.indexOf(")",R+1);-1===T?(w=M,O=A,k=S+1,_=P,S=o.length):S=T}else if(o.charCodeAt(R)===$r){var N=o.indexOf("]",R+1);-1===N?(w=M,O=A,k=S+1,_=P,S=o.length):S=N}else S=P}}if(w>=0){var I=O?"":o.slice(k,_);o=o.slice(0,w)+I,C=!0}}let z=o.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(z&&void 0!==z.index){for(var D=0,L=0;L<z.index;L++)o.charCodeAt(L)===qr&&D++;D%2!=1&&-1===Ji(o,"</"+z[1],0)&&(o=o.replace(/<[A-Z][A-Za-z0-9]*(?:\s[^>]*)?>([^<]*)$/,"$1"))}o!==i&&(e=e.slice(0,t)+o,n=t+o.length)}let F=[];var j=[];let z=t;var B=o.disableAutoLink||o.disableBareUrls||i.inAnchor?-1:e.indexOf("@",t);for(B>=n&&(B=-1);t<n;){let r=e.charCodeAt(t),a=null;if(r===qr)a=la(e,t,n),a||(t+=Li(e,t,n,qr)-1);else if(r===no||r===ro){var H=ma(e,t,n);if(H){if(H.canOpen||H.canClose){t>z&&F.push(wa(e.slice(z,t)));var U=wa(e.slice(t,t+H.len));j.push({idx:F.length,ch:r,len:H.len,canOpen:H.canOpen,canClose:H.canClose,active:!0}),F.push(U),z=t+=H.len;continue}t+=H.len-1}}else r===Wr?a=ua(e,t,n,i,o):r===eo?a=da(e,t,n,i,o):r===$r?(t+1<n&&e.charCodeAt(t+1)===Gr&&(a=ya(e,t,n)),a||(a=ga(e,t,n,i,o))):r===lo&&t+1<n&&e.charCodeAt(t+1)===$r?a=ga(e,t,n,i,o):r===oo?(a=va(e,t,n),!a&&!o.disableParsingRawHTML&&!o.ignoreHTMLBlocks&&(a=ka(e,t,n,i,o))):(r===fo||r===po||r===uo)&&!i.inAnchor&&!o.disableAutoLink&&(0===t||e.charCodeAt(t-1)!==oo)&&(a=ba(e,t,n,o));if(!a&&B>=0&&B-t<=64&&!i.inAnchor&&!o.disableAutoLink&&!o.disableBareUrls&&(r>=Do&&r<=Lo||r>=Fo&&r<=jo||r>=No&&r<=Io)&&(a=xa(e,t,n,o),!a&&t>=B&&(B=e.indexOf("@",t+1))>=n&&(B=-1)),r!==To)if(a)t>z&&F.push(wa(e.slice(z,t))),F.push(a.node),z=t=a.end;else{if(r===to&&t+1<n&&Pi(e.charCodeAt(t+1))&Oi){t>z&&F.push(wa(e.slice(z,t))),F.push(wa(e[t+1])),z=t+=2;continue}if(t++,B<0||B-t>64)for(;t<n;){var V=e.charCodeAt(t);if(!(V<zo)||bi[V])break;t++}}else t>z&&F.push(wa(e.slice(z,t))),F.push({type:Ho.breakLine}),z=++t}if(n>z){let t=e.slice(z,n);(o.streaming||o.optimizeForStreaming)&&(t=t.replace(/\*\*([^*]+)$/,"$1"),t.match(/\*[^*]+$/)&&(t=t.replace(/\*([^*]+)$/,"$1")),t=t.replace(/__([^_]+)$/,"$1"),t.match(/_[^_]+$/)&&(t=t.replace(/_([^_]+)$/,"$1")),t=t.replace(/~~([^~]+)$/,"$1"),t=t.replace(/\[([^\]]+)$/,"$1"),t=t.replace(/\[([^\]]+)\]\([^)]*$/,"$1")),t&&F.push(wa(t))}return j.length>0&&function(e,t){if(0!==t.length){for(var n=[],r=0;r<12;r++)n[r]=-1;for(var o=0;o<t.length;){var i=t[o];if(i.active&&i.canClose){for(var a=6*(i.ch===no?0:1)+i.len%3*2+(i.canOpen?1:0),l=void 0!==n[a]?n[a]:-1,s=-1,c=o-1;c>l;c--){var u=t[c];if(u.active&&u.ch===i.ch&&u.canOpen&&(!i.canOpen&&!u.canClose||(u.len+i.len)%3!=0||u.len%3==0)){s=c;break}}if(s<0)n[a]=o-1,!i.canOpen&&(i.active=!1),o++;else{var d=t[s],f=d.len>=2&&i.len>=2,p=f?2:1;d.len-=p,i.len-=p;var h=e[d.idx],m=e[i.idx];h.text=h.text.slice(0,h.text.length-p),m.text=m.text.slice(p);var g=d.idx+1,v=i.idx,y=e.slice(g,v),b={type:Ho.textFormatted,tag:f?"strong":"em",children:y};e.splice(g,v-g,b);for(var x=v-g-1,E=0;E<t.length;E++)t[E].idx>d.idx&&(t[E].idx-=x);for(var C=s+1;C<o;C++)t[C].active=!1;if(0===d.len&&(d.active=!1,""===h.text)){e.splice(d.idx,1);for(var w=0;w<t.length;w++)t[w].idx>d.idx?t[w].idx--:t[w].idx===d.idx&&(t[w].idx=-1)}if(0===i.len){i.active=!1;var k=i.idx;if(""===m.text){e.splice(k,1);for(var _=0;_<t.length;_++)t[_].idx>k?t[_].idx--:t[_].idx===k&&(t[_].idx=-1)}o++}}}else o++}for(var O=0,S=0;S<e.length;S++){var A=e[S];if(A.type===Ho.text){var M=A;if(""===M.text)continue;if(O>0&&e[O-1].type===Ho.text){e[O-1].text+=M.text;continue}}e[O++]=A}e.length=O}}(F,j),Oa--,F}var Aa=500;function Ma(e,t,n){var r=t.g||0;if(r>Aa)return[{type:Ho.text,text:e}];if(t.g=r+1,n.streaming||n.optimizeForStreaming){var o=e.length;o>0&&e.charCodeAt(o-1)===Kr&&o--;for(var i=o;i>0&&e.charCodeAt(i-1)!==Kr;)i--;if(i>0&&e.charCodeAt(i)===Oo){for(var a=!0,l=i;l<o;l++){var s=e.charCodeAt(l);if(s!==Ur&&s!==Vr&&s!==Jr&&s!==co&&s!==Oo){a=!1;break}}if(a){for(var c=i-1;c>0&&e.charCodeAt(c-1)!==Kr;)c--;e.charCodeAt(c)===Oo&&(e=e.slice(0,c).trimEnd())}}var u=e.trim(),d=u.lastIndexOf("\n"),f=-1===d?u:u.slice(d+1);if(f.length>0&&f.charCodeAt(0)===Oo){for(var p=!1,h=!1,m=1;m<f.length;m++){var g=f.charCodeAt(m);g===Oo&&(p=!0),g===Jr&&(h=!0)}p&&h&&(e=-1===d?"":e.slice(0,e.lastIndexOf(f)).trimEnd())}for(var v=-1,y=-1,b=-1,x=e.length-1;x>=0;x--)if(e.charCodeAt(x)===oo){var E=x+1<e.length?e.charCodeAt(x+1):0;if(E>=Do&&E<=Lo||E>=Fo&&E<=jo){for(var C=x+2;C<e.length;){var w=e.charCodeAt(C);if(!(w>=Do&&w<=Lo||w>=Fo&&w<=jo||w>=No&&w<=Io))break;C++}for(var k=C;k<e.length&&e.charCodeAt(k)!==Yr;)k++;if(k<e.length){for(var _=!1,O=k+1;O<e.length;O++)if(e.charCodeAt(O)===oo){_=!0;break}_||(v=x,y=C,b=k+1)}}break}if(v>=0){for(var S=0,A=0;A<v;A++)e.charCodeAt(A)===qr&&S++;if(S%2==0){var M=e.slice(v+1,y);-1===Ji(e,"</"+M,0)&&(e=e.slice(0,v)+e.slice(b))}}var P=e.length;if(P>0){for(var R=e.lastIndexOf("\n"),T=-1===R?0:R+1,N=P,I=T,D=0;I<N&&e.charCodeAt(I)===Ur&&D<3;)I++,D++;if(I<N){var L=e.charCodeAt(I),F=!1;if(L===no||L===Jr||L===_o){var j=I+1;if(j>=N||e.charCodeAt(j)===Ur||e.charCodeAt(j)===Vr){for(var z=j;z<N&&(e.charCodeAt(z)===Ur||e.charCodeAt(z)===Vr);)z++;z>=N&&(F=!0)}}else if(L>=No&&L<=Io){for(var B=I;B<N&&e.charCodeAt(B)>=No&&e.charCodeAt(B)<=Io;)B++;if(B<N&&(e.charCodeAt(B)===Eo||e.charCodeAt(B)===Po)){var H=B+1;if(H>=N||e.charCodeAt(H)===Ur||e.charCodeAt(H)===Vr){for(var U=H;U<N&&(e.charCodeAt(U)===Ur||e.charCodeAt(U)===Vr);)U++;U>=N&&(F=!0)}}}F&&(e=e.slice(0,T).trimEnd())}}}if(t.inline)return Sa(e,0,e.length,t,n);let V=[],Z=0,K=e.length;if(0===Z&&e.startsWith("---")){let t=function(e){if(!ei(e,"---"))return null;let t=3;for(;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;if(t<e.length&&"\r"===e[t]&&t++,t>=e.length||"\n"!==e[t])return null;t++;let n=!1;for(;t<e.length;){let r=t;for(;t<e.length&&"\n"!==e[t]&&"\r"!==e[t];)t++;if(t>=e.length)break;let o=t;if("\r"===e[t]&&t++,t<e.length&&"\n"===e[t]&&t++,ei(e,"---",r))return{endPos:t,hasValidYaml:n};let i=e.indexOf(":",r);-1!==i&&i<o&&(n=!0)}return null}(e);if(t&&t.hasValidYaml){if(!1!==n.preserveFrontmatter){let n=e.slice(0,t.endPos).trimEnd();V.push({type:Ho.frontmatter,text:n})}Z=t.endPos}}for(;Z<K;){for(var q=e.indexOf("\n",Z),W=q<0?K:q;Z<K&&Bi(e,Z,W);)Z=W<K?W+1:W,Z<K&&(W=(q=e.indexOf("\n",Z))<0?K:q);if(Z>=K)break;e.charCodeAt(Z),zi(e,Z,W);let r=null;if(e.charCodeAt(Z)!==Ro&&Fi>=4&&!t.inHTML)r=Zi(e,Z);else if(e.charCodeAt(Z)!==Ro){let o=Z+ji,i=e.charCodeAt(o);i===Xr?r=Hi(e,Z,t,n):i===Yr?r=Ki(e,Z,t,n):i===qr||i===Wr?r=Vi(e,Z):i===Jr||i===no||i===ro?(r=Ui(e,Z),!r&&(r=Yi(e,Z,t,n))):i===_o||i>=No&&i<=Io?r=Yi(e,Z,t,n):i===oo?r=na(e,Z,t,n):i===Oo?r=oa(e,Z,t,n):i===$r&&(r=ia(e,Z,t))}if(!r){for(var $=!1,G=Z;G<W;G++)if(e.charCodeAt(G)===Oo){$=!0;break}$&&(r=oa(e,Z,t,n))}if(r||(r=aa(e,Z,t,n)),r)r.node.type!==Ho.refCollection&&V.push(r.node),Z=r.end;else{var Y=e.indexOf("\n",Z);Z=Y<0?K:Y+1}}return t.g=r,V}function Pa(e,t,n,r){var o=Ci(e,t);return o?{tagName:o.tag,tagLower:o.tag.toLowerCase(),attrs:o.rawAttrs,whitespaceBeforeAttrs:o.whitespaceBeforeAttrs,isSelfClosing:o.selfClosing,hasSpaceBeforeSlash:o.hasSpaceBeforeSlash,isClosing:o.isClosing,hasNewline:o.whitespaceBeforeAttrs.includes("\n")||o.rawAttrs.includes("\n"),endPos:o.end}:null}function Ra(e,t,n){Oa=0,e=function(e){var t=e.indexOf("\r"),n=e.indexOf("\0");if(-1===t&&-1===n)return e;var r=e.length;ai.length=0;var o=0,i=0;for(i=-1===t?n:-1===n||t<n?t:n;i<r;i++){var a=e.charCodeAt(i);a===Zr?(o<i&&ai.push(e.slice(o,i)),i+1<r&&e.charCodeAt(i+1)===Kr&&i++,ai.push("\n"),o=i+1):0===a&&(o<i&&ai.push(e.slice(o,i)),ai.push("�"),o=i+1)}return o<r&&ai.push(e.slice(o)),ai.join("")}(e),!t.refs&&(t.refs={}),wi(e,t.refs);let r=Ma(e,t,n);return t.refs&&Object.keys(t.refs).length>0?[{type:Ho.refCollection,refs:t.refs},...r]:r}var Ta,Na=/^\n+/;try{Ta=r.createElement("div").$$typeof}catch{Ta=Symbol.for("react.transitional.element")}function Ia(e,t,n){return{$$typeof:Ta,type:e,key:null!=n?""+n:null,ref:null,props:t}}var Da=typeof r.createContext<"u"?r.createContext(void 0):void 0;function La(e,t,n,o,i,a,l,s){switch(e.type){case Ho.blockQuote:{let r={key:n.key};return e.alert&&(r.className="markdown-alert-"+a(e.alert.toLowerCase(),Jo),e.children.unshift({attrs:{},children:[{type:Ho.text,text:e.alert}],d:!0,type:Ho.htmlBlock,tag:"header"})),o("blockquote",r,t(e.children,n))}case Ho.breakLine:return o("br",{key:n.key});case Ho.breakThematic:return o("hr",{key:n.key});case Ho.frontmatter:return s.preserveFrontmatter?o("pre",{key:n.key},e.text):null;case Ho.codeBlock:let m=e.lang?qo(e.lang):"";return o("pre",{key:n.key},o("code",{...Zo(e.attrs||{}),className:m?`language-${m} lang-${m}`:""},e.text));case Ho.codeInline:return o("code",{key:n.key},e.text);case Ho.footnoteReference:return o("a",{key:n.key,href:i(e.target,"a","href")||void 0},o("sup",{key:n.key},e.text));case Ho.gfmTask:return o("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"});case Ho.heading:return o(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n));case Ho.htmlBlock:{let m=e;if(s.tagfilter&&di(m.tag)){var c="";if(m.attrs)for(var u in m.attrs)!0===(h=m.attrs[u])?c+=" "+u:null!=h&&!1!==h&&(c+=" "+u+'="'+String(h)+'"');return o("span",{key:n.key},"<"+m.tag+c+">")}if(m.a&&m.d){let c=function(e){if((e.type===Ho.htmlSelfClosing||e.type===Ho.htmlBlock)&&e.b)return[];if(e.type===Ho.paragraph){let t=e.children;return t?t.flatMap(c):[]}return e.type===Ho.text?e.text?.trim()?[e]:[]:e.type===Ho.htmlBlock&&e.children?[{...e,children:e.children?.flatMap(c)}]:[e]},u=function(e){for(var t=0;t<e.length;t++)e[t].type===Ho.htmlBlock&&(e[t].d=!1),"children"in e[t]&&e[t].children&&u(e[t].children)},h=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.type===Ho.paragraph&&r.children)for(var o=r.children,i=0;i<o.length;i++){var a=o[i];if(a.type===Ho.htmlSelfClosing&&a.b&&a.tag.toLowerCase()===t){var l=e.slice(0,n);i>0&&l.push({type:Ho.paragraph,children:o.slice(0,i)});var s=[];if(i+1<o.length){var c=o.slice(i+1);(c=c.filter((function(e){return!(e.type===Ho.htmlSelfClosing&&e.b)}))).length>0&&(s=c)}return{found:!0,beforeClose:l,afterClose:s=s.concat(e.slice(n+1))}}}if((r.type===Ho.htmlSelfClosing||r.type===Ho.htmlBlock)&&r.b&&r.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,n),afterClose:e.slice(n+1)}}return{found:!1,beforeClose:e,afterClose:[]}},g=m.tag.toLowerCase(),v=function(e){return gi.has(e)}(g),y=m.children&&m.children.length>0,b=/<[a-z][^>]{0,100}>/i.test(m.a);if(v){let t=m.a.replace(new RegExp("\\s*</"+g+">\\s*$","i"),"");return s.tagfilter&&(t=fi(t)),b?o(e.tag,{key:n.key,...Zo(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}}):o(e.tag,{key:n.key,...Zo(e.attrs||{})},t)}let x=new RegExp(`^<${m.tag}(\\s|>)`,"i").test(m.a);if(y&&!x&&s.tagfilter&&function(e){return ui.lastIndex=0,ui.test(e)}(m.a))return o(e.tag,{key:n.key,...Zo(e.attrs||{})},t(m.children,n));if(function(e){return vi.test(e)}(m.a)){let t=s.tagfilter?fi(m.a):m.a;return o(e.tag,{key:n.key,...Zo(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}})}let E={slugify:e=>a(e,Jo),sanitizer:i,tagfilter:!0},C=m.a.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${m.tag}(\\s[^>]*)?>(\\s*</${m.tag}>)?$`,"i").test(C))return m.children&&m.children.length>0?o(e.tag,{key:n.key,...Zo(e.attrs||{})},t(m.children,n)):o(e.tag,{key:n.key,...Zo(e.attrs||{})});let w=Ra(C,{inline:!1,refs:l,inHTML:!1},E);u(w);let k=m.tag.toLowerCase(),_="</"+k+">",O=new RegExp(`^<${m.tag}(\\s|>)`,"i").test(C),S=C.toLowerCase().trimEnd().endsWith(_),A=O&&S;if(A&&y)return o(e.tag,{key:n.key,...Zo(e.attrs||{})},t(m.children,n));if(A)return t(w.flatMap(c),n);var d=h(w,k);if(d.found&&d.afterClose.length>0){var f=d.beforeClose.flatMap(c),p=d.afterClose.flatMap(c);return Ia(r.Fragment,{children:[o(e.tag,{key:n.key,...Zo(e.attrs||{})},t(f,n)),t(p,n)]},null)}return o(e.tag,{key:n.key,...Zo(e.attrs||{})},t(w.flatMap(c),n))}return o(e.tag,{key:n.key,...Zo(e.attrs||{})},e.children?t(e.children,n):"")}case Ho.htmlSelfClosing:{let t=e;if(s.tagfilter&&di(t.tag)){if(c="",t.attrs)for(var u in t.attrs){var h;!0===(h=t.attrs[u])?c+=" "+u:null!=h&&!1!==h&&(c+=" "+u+'="'+String(h)+'"')}return o("span",{key:n.key},"<"+t.tag+c+" />")}return o(e.tag,{key:n.key,...Zo(e.attrs||{})})}case Ho.image:{let t=null!=e.target?i(e.target,"img","src"):null;return o("img",{key:n.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:t||void 0})}case Ho.link:{let r={key:n.key};return null!=e.target&&(r.href=function(e){for(var t=!1,n=0;n<e.length;n++)if((o=e.charCodeAt(n))<=Ur||o===ko||o===Qr||o===oo||o===Yr||o===$r||o===to||o===ao||o===Gr||o===qr||o>=123){t=!0;break}if(!t)return e;var r="";for(n=0;n<e.length;n++){var o;if((o=e.charCodeAt(n))===Qr&&n+2<e.length){var i=e.charCodeAt(n+1),a=e.charCodeAt(n+2);if((i>=No&&i<=Io||i>=Do&&i<=70||i>=Fo&&i<=uo)&&(a>=No&&a<=Io||a>=Do&&a<=70||a>=Fo&&a<=uo)){r+=e[n]+e[n+1]+e[n+2],n+=2;continue}}r+=encodeURI(e[n])}return r}(e.target)),e.title&&(r.title=e.title),o("a",r,t(e.children,n))}case Ho.table:{let r=e;return o("table",{key:n.key},o("thead",null,o("tr",null,r.header.map((function(e,i){return o("th",{key:i,style:null==r.align[i]?{}:{textAlign:r.align[i]}},t(e,n))})))),o("tbody",null,r.cells.map((function(e,i){return o("tr",{key:i},e.map((function(e,i){return o("td",{key:i,style:null==r.align[i]?{}:{textAlign:r.align[i]}},t(e,n))})))}))))}case Ho.text:return e.text;case Ho.textFormatted:return o(e.tag,{key:n.key},t(e.children,n));case Ho.orderedList:case Ho.unorderedList:{let r=e.type===Ho.orderedList?"ol":"ul";return o(r,{key:n.key,start:e.type===Ho.orderedList?e.start:void 0},e.items.map((function(e,r){return o("li",{key:r},t(e,n))})))}case Ho.paragraph:return o("p",{key:n.key},t(e.children,n));case Ho.ref:default:return null}}function Fa(e="",t={}){let n={...t||{}};n.overrides=n.overrides||{};let r=n.slugify||Jo,o=n.sanitizer||$o,i={};return function(e){let t=n.forceInline||!n.forceBlock&&!Ko.test(e),a={...n,slugify:e=>r(e,Jo),sanitizer:o,tagfilter:!1!==n.tagfilter};t||wi(e,i);let l=e;if(!t){let e=l.length;for(;e>0&&("\n"===l[e-1]||"\r"===l[e-1]);)e--;l=l.slice(0,e),l=`${l.replace(Na,"")}\n\n`}if(n.optimizeForStreaming){let e=l.lastIndexOf("<");-1!==e&&-1===l.slice(e).indexOf(">")&&(l=l.slice(0,e))}return function(e,t){let n={...t||{}};n.overrides=n.overrides||{};let r=n.slugify||Jo,o=n.sanitizer||$o,i=n.createElement,a=n.overrides&&Object.keys(n.overrides).length>0,l=e=>Fa(e,{...n,wrapper:null});function s(e,t,...r){var o=t||{};for(var s in o){var c=o[s];if("string"==typeof c&&c.length>0&&c.charCodeAt(0)===oo&&(pi.test(c)||hi.test(c)||Pa(c,0))){var u=l(c.trim());o[s]="innerHTML"===s&&Array.isArray(u)?u[0]:u}}var d=e;if(a){var f=li(n.overrides,e+".props",{});d=((e,t)=>{let n=li(t,e,void 0);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:li(t,`${e}.component`,e):e})(e,n.overrides),o={...o,...f,className:si(o.className,f.className)||void 0}}if(!i){var p=o.key;return null!=p&&delete o.key,1===r.length?o.children=r[0]:r.length>1&&(o.children=r),Ia(d,o,p)}return i(d,o,...r)}let c={...n,slugify:e=>r(e,Jo),sanitizer:o,tagfilter:!1!==n.tagfilter},u=e[0]&&e[0].type===Ho.refCollection?e[0].refs:{},d=((e,t,n,r,o,i)=>{var a=(l,s={})=>{var c=(s.renderDepth||0)+1;if(c>2500)return(e=>e.map((function(e){return"text"in e?e.text:""})))(l);s.renderDepth=c;for(var u=s.key,d=[],f=!1,p=0;p<l.length;p++){var h;if(s.key=p,e){var m=La.bind(null,l[p],a,s,t,n,r,o,i);h=e(m,l[p],a,s)}else h=La(l[p],a,s,t,n,r,o,i);var g="string"==typeof h;if(g&&f)d[d.length-1]+=h;else if(null!==h)if(Array.isArray(h))for(var v=0;v<h.length;v++)d.push(h[v]);else d.push(h);f=g}return s.key=u,s.renderDepth=c-1,d};return a})(n.renderRule,s,o,r,u,n),f=d(e,{inline:n.forceInline,refs:u}),p=[];for(let e in u)e.charCodeAt(0)===Gr&&p.push({identifier:e,footnote:u[e].target});if(p.length&&f.push(s("footer",{key:"footer"},p.map((function(e){let t=e.identifier.charCodeAt(0)===Gr?e.identifier.slice(1):e.identifier,n=Ra(e.footnote,{inline:!0,refs:u},c);return s("div",{id:r(t,Jo),key:e.identifier},t+": ",d(n,{inline:!0,refs:u}))})))),null===n.wrapper)return f;let h,m=n.wrapper||(n.forceInline?"span":"div");if(!(f.length>1||n.forceWrapper))return 1===f.length?f[0]:null;h=f;var g=n.wrapperProps?{...n.wrapperProps}:{};return g.children=h,Ia(m,g,"outer")}(Ra(t?e:l,{inline:t,refs:i},a),{...a,forceInline:t})}(e)}var ja=({children:e,options:t,...n})=>{if(!(typeof r.useContext<"u"))return Fa(e??"",{...t,overrides:{...t?.overrides},wrapperProps:{...t?.wrapperProps,...n}});let o=r.useContext(Da),i=r.useMemo((()=>({...o,...t,overrides:{...o?.overrides,...t?.overrides},wrapperProps:{...o?.wrapperProps,...t?.wrapperProps,...n}})),[o,t,n]),a=e??"";return r.useMemo((()=>Fa(a,i)),[a,i])};class za extends o().Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}render(){return this.state.error?this.props.fallback:this.props.children}}const Ba=JSON.parse('{"error":"_error_1ixrx_2","root":"_root_1ixrx_8","tableWrapper":"_tableWrapper_1ixrx_127"}');kr('\n/* Error fallback when markdown fails to parse */\n._error_1ixrx_2 {\n\twhite-space: pre-wrap;\n\tword-break: break-word;\n}\n\n/* ── Root ── */\n._root_1ixrx_8 {\n\tword-wrap: break-word;\n\tline-height: var(--reltio-markdown-line-height, 1.5);\n\tfont-family: var(--reltio-markdown-font-family, "Roboto Flex", sans-serif);\n\tfont-size: var(--reltio-markdown-font-size, 14px);\n\tfont-weight: var(--reltio-markdown-font-weight, 400);\n\tletter-spacing: var(--reltio-markdown-letter-spacing, 0.15px);\n\tcolor: var(--reltio-markdown-color-text, #0e0e25);\n}\n\n/* ── Paragraphs ── */\n._root_1ixrx_8 p {\n\tmargin: 8px 0 7px 0;\n\tline-height: var(--reltio-markdown-line-height, 1.5);\n}\n\n._root_1ixrx_8 p:not(:last-child) {\n\tmargin-bottom: var(--reltio-markdown-paragraph-margin-bottom, 0.5rem);\n}\n\n/* ── Headings ── */\n._root_1ixrx_8 h1,\n._root_1ixrx_8 h2,\n._root_1ixrx_8 h3,\n._root_1ixrx_8 h4,\n._root_1ixrx_8 h5,\n._root_1ixrx_8 h6 {\n\tmargin: var(--reltio-markdown-heading-margin, 1rem 0 0.5rem 0);\n\tfont-weight: 600;\n\tfont-family: "Libre Franklin", sans-serif;\n}\n\n._root_1ixrx_8 h1 {\n\tfont-size: var(--reltio-markdown-heading1-size, 1.5rem);\n}\n\n._root_1ixrx_8 h2 {\n\tfont-size: var(--reltio-markdown-heading2-size, 1.25rem);\n}\n\n._root_1ixrx_8 h3 {\n\tfont-size: var(--reltio-markdown-heading3-size, 1.1rem);\n}\n\n._root_1ixrx_8 h4 {\n\tfont-size: var(--reltio-markdown-heading4-size, 1rem);\n}\n\n._root_1ixrx_8 h5 {\n\tfont-size: var(--reltio-markdown-heading5-size, 0.95rem);\n}\n\n._root_1ixrx_8 h6 {\n\tfont-size: var(--reltio-markdown-heading6-size, 0.9rem);\n}\n\n/* ── Emphasis ── */\n._root_1ixrx_8 strong {\n\tfont-weight: 600;\n}\n\n._root_1ixrx_8 em {\n\tfont-style: italic;\n}\n\n/* ── Lists ── */\n._root_1ixrx_8 ul,\n._root_1ixrx_8 ol {\n\tmargin: var(--reltio-markdown-list-margin, 0.5rem 0);\n\tpadding-left: var(--reltio-markdown-list-padding-left, 1.5rem);\n}\n\n._root_1ixrx_8 li {\n\tmargin: var(--reltio-markdown-list-item-margin, 0.25rem 0);\n}\n\n/* ── Code ── */\n._root_1ixrx_8 pre {\n\toverflow-x: auto;\n\tmargin: 0;\n\tbackground-color: #e3e3f2;\n\tborder-radius: 8px;\n\tpadding: 16px;\n\tborder: 1px solid #e3e3f2;\n}\n\n._root_1ixrx_8 code {\n\tfont-family: var(--reltio-markdown-code-font-family, monospace);\n\tfont-size: var(--reltio-markdown-code-font-size, 0.9em);\n\tbackground-color: var(--reltio-markdown-color-code-background, #f5f5f5);\n\tpadding: var(--reltio-markdown-code-padding, 0.2em 0.4em);\n\tborder-radius: var(--reltio-markdown-code-border-radius, 3px);\n}\n\n._root_1ixrx_8 pre code {\n\tbackground-color: transparent;\n\tpadding: 0;\n}\n\n/* ── Links ── */\n._root_1ixrx_8 a {\n\tcolor: var(--reltio-markdown-color-link, #0000cc);\n\ttext-decoration: underline;\n}\n\n._root_1ixrx_8 a:hover {\n\ttext-decoration: none;\n}\n\n/* ── Blockquote ── */\n._root_1ixrx_8 blockquote {\n\tborder-left: var(--reltio-markdown-blockquote-border-width, 4px) solid\n\t\tvar(--reltio-markdown-color-blockquote-border, #ddd);\n\tmargin: var(--reltio-markdown-blockquote-margin, 1rem 0);\n\tpadding-left: var(--reltio-markdown-blockquote-padding-left, 1rem);\n\tcolor: var(--reltio-markdown-color-blockquote-text, #666);\n}\n\n/* ── Tables ── */\n._tableWrapper_1ixrx_127 {\n\tfont-family: var(--reltio-markdown-base-font, "Roboto Flex", sans-serif);\n\twidth: 100%;\n\tborder-collapse: collapse;\n\tposition: relative;\n\tcolor: var(--color-text, #0e0e25);\n\tbackground-color: #ffffff;\n\tborder: 1px solid #9898b34d;\n\tborder-radius: 16px;\n\toverflow: auto;\n\tbox-sizing: border-box;\n\tfont-size: 14px;\n}\n\n._tableWrapper_1ixrx_127 table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n}\n\n._tableWrapper_1ixrx_127 thead {\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 1;\n\tbox-shadow: 0 1px 0 #9898b34d;\n}\n\n._tableWrapper_1ixrx_127 th {\n\tpadding: 16px;\n\tfont-weight: 600;\n\ttext-align: left;\n\tborder-right: 1px solid #9898b34d;\n\tbackground-color: #e3e3f2;\n}\n\n._tableWrapper_1ixrx_127 th:last-child {\n\tborder-right: none;\n}\n\n._tableWrapper_1ixrx_127 td {\n\tpadding: 8px 16px;\n\tborder-bottom: 1px solid #9898b34d;\n\tborder-right: 1px solid #9898b34d;\n\ttext-align: left;\n\tbackground-color: var(--reltio-markdown-color-table-cell-background, #ffffff);\n}\n\n._tableWrapper_1ixrx_127 td:last-child {\n\tborder-right: none;\n}\n\n._tableWrapper_1ixrx_127 tr:hover td {\n\tbackground-color: var(--color-table-row-hover, #f5f5fa);\n}\n\n._tableWrapper_1ixrx_127 tr:last-child td {\n\tborder-bottom: none;\n}\n\n/* ── Strikethrough ── */\n._root_1ixrx_8 del {\n\ttext-decoration: line-through;\n\tcolor: var(--reltio-markdown-color-del, #595972);\n}\n\n/* ── Checkboxes ── */\n._root_1ixrx_8 input[type="checkbox"] {\n\tmargin-right: var(--reltio-spacing-xs, 8px);\n\tcursor: not-allowed;\n}\n\n/* ── Horizontal rule ── */\n._root_1ixrx_8 hr {\n\tborder: none;\n\tborder-top: 1px solid var(--color-border, #ddd);\n\tmargin: 1.5rem 0;\n}\n\n/* ── Responsive ── */\n@media (max-width: 768px) {\n\t._tableWrapper_1ixrx_127 table {\n\t\tdisplay: block;\n\t\toverflow-x: auto;\n\t\t-webkit-overflow-scrolling: touch;\n\t}\n\n\t._root_1ixrx_8 h1 {\n\t\tfont-size: 1.3rem;\n\t}\n\n\t._root_1ixrx_8 h2 {\n\t\tfont-size: 1.15rem;\n\t}\n\n\t._root_1ixrx_8 h3 {\n\t\tfont-size: 1.05rem;\n\t}\n}\n');const Ha=Ba,Ua=JSON.parse('{"root":"_root_1njq6_1","summary":"_summary_1njq6_14","icon":"_icon_1njq6_43","summaryText":"_summaryText_1njq6_51","chevron":"_chevron_1njq6_57","chevronOpen":"_chevronOpen_1njq6_69","content":"_content_1njq6_73"}');kr('\n/* Override via --reltio-details-* on .root or parent; fallbacks = light values */\n._root_1njq6_1 {\n\tmargin: 1rem 0;\n\tbackground-color: var(--reltio-details-background-color, #fff);\n\tborder: var(--reltio-details-border-width, 0.5px) solid\n\t\tvar(--reltio-details-border-color, #e3e3f2);\n\tborder-radius: var(--reltio-details-border-radius, 12px);\n\toverflow: hidden;\n\tpadding: 0;\n\tfont-family: var(--reltio-details-font-family, "Roboto Flex", sans-serif);\n\tfont-size: var(--reltio-details-font-size, 14px);\n}\n\n._summary_1njq6_14 {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: var(--reltio-details-summary-gap, 8px);\n\tcursor: pointer;\n\tuser-select: none;\n\tlist-style: none;\n\tcolor: var(--reltio-details-summary-text-color, #0e0e25);\n\tline-height: var(--reltio-details-summary-line-height, 1.71);\n\tpadding: var(--reltio-details-summary-padding, 12px);\n\tmargin: 0;\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\toutline: none;\n\tfont-weight: 500;\n}\n\n._summary_1njq6_14:hover {\n\tbackground-color: var(--reltio-details-summary-hover-bg, #b2b2ff4d);\n}\n\n._summary_1njq6_14::-webkit-details-marker {\n\tdisplay: none;\n}\n\n._summary_1njq6_14::marker {\n\tdisplay: none;\n}\n\n._icon_1njq6_43 {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground-color: transparent;\n\tflex-shrink: 0;\n}\n\n._summaryText_1njq6_51 {\n\tflex: 1;\n\tfont-weight: var(--reltio-details-title-font-weight, 500);\n\tletter-spacing: var(--reltio-details-title-letter-spacing, 0.045px);\n}\n\n._chevron_1njq6_57 {\n\tflex-shrink: 0;\n\ttransition: transform var(--reltio-details-transition-duration, 195ms)\n\t\tvar(--reltio-details-transition-ease, cubic-bezier(0.4, 0, 0.2, 1));\n\tcolor: var(--reltio-details-chevron-color, #0e0e25);\n\twidth: var(--reltio-details-chevron-size, 24px);\n\theight: var(--reltio-details-chevron-size, 24px);\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n._chevronOpen_1njq6_69 {\n\ttransform: rotate(180deg);\n}\n\n._content_1njq6_73 {\n\tpadding: 0 var(--reltio-details-content-padding, 12px)\n\t\tvar(--reltio-details-content-padding, 12px)\n\t\tvar(--reltio-details-content-padding, 12px);\n\tcolor: var(--reltio-details-content-text-color, #0e0e25);\n\tline-height: var(--reltio-details-content-line-height, 1.71);\n}\n\n._content_1njq6_73 pre {\n\tmargin: 0;\n\tbackground-color: var(--reltio-details-code-background-color, #f5f5fa);\n\tborder-radius: var(--reltio-details-content-pre-radius, 8px);\n\tpadding: var(--reltio-details-content-pre-padding, 16px);\n}\n\n._content_1njq6_73 code {\n\tcolor: var(--reltio-details-content-code-color, #0e0e25);\n\tbackground-color: #f5f5f5;\n\tpadding: 0.2em 0.4em;\n\tborder-radius: 3px;\n\tfont-family: monospace;\n\tfont-size: 0.9em;\n}\n\n._content_1njq6_73 p {\n\tmargin-top: var(--reltio-details-content-p-margin, 8px);\n\tmargin-bottom: var(--reltio-details-content-p-margin, 8px);\n}\n');const Va=Ua,Za=({open:e=!1,children:t,className:n,style:i,...a})=>{const[l,s]=(0,r.useState)(e);(0,r.useEffect)((()=>{s(e)}),[e]);let c="Details";const u=[];o().Children.forEach(t,(e=>{o().isValidElement(e)&&"string"==typeof e.type&&"summary"===e.type?c=e.props.children:null!=e&&u.push(e)}));const d=_r(Va.root,n);return(0,Pn.jsxs)("details",{className:d,style:i,onToggle:e=>{const t=e.currentTarget;s(t.open)},open:e,...a,children:[(0,Pn.jsxs)("summary",{className:Va.summary,children:[(0,Pn.jsx)("span",{className:Va.icon,"aria-hidden":"true",children:(0,Pn.jsx)(Ir,{size:"small"})}),(0,Pn.jsx)("span",{className:Va.summaryText,children:c}),(0,Pn.jsx)("span",{className:_r(Va.chevron,l&&Va.chevronOpen),children:l?(0,Pn.jsx)(Lr,{size:"small","aria-hidden":"true"}):(0,Pn.jsx)(Fr,{size:"small","aria-hidden":"true"})})]}),(0,Pn.jsx)("div",{className:Va.content,children:u})]})},Ka={a:({node:e,href:t,...n})=>{const r=t&&(t.startsWith("http")||t.startsWith("//"));return(0,Pn.jsx)("a",{...n,href:t,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0})},table:({node:e,...t})=>(0,Pn.jsx)("div",{className:_r(Ha.tableWrapper),children:(0,Pn.jsx)("table",{...t})}),button:({node:e,...t})=>(0,Pn.jsx)(Ar,{...t,className:_r(t.className)}),details:({node:e,...t})=>(0,Pn.jsx)(Za,{...t,children:t.children}),li:({node:e,children:t,...n})=>{const o=r.Children.toArray(t)[0];return(0,r.isValidElement)(o)&&"checkbox"===o.props?.type?(0,Pn.jsx)("li",{...n,children:(0,Pn.jsx)("label",{children:t})}):(0,Pn.jsx)("li",{...n,children:t})}},qa={Button:Ar},Wa=({children:e,className:t,style:n})=>{if(null==e)return null;const r=_r(Ha.root,t);return(0,Pn.jsx)("div",{className:r,style:n,children:(0,Pn.jsx)(za,{fallback:(0,Pn.jsx)("pre",{className:Ha.error,children:e}),children:(0,Pn.jsx)(ja,{options:{overrides:{...Ka,...qa},tagfilter:!0,sanitizer:$o},children:"string"==typeof e?e:String(e)})})})},$a=JSON.parse('{"assistantMessageRoot":"_assistantMessageRoot_qtch8_2","content":"_content_qtch8_17"}');kr("\n/* CSS Custom Properties - All defined on .root with --reltio-assistant-message- prefix */\n._assistantMessageRoot_qtch8_2 {\n\t--reltio-assistant-message-background: transparent;\n\t--reltio-assistant-message-padding: 0;\n\t--reltio-assistant-message-border-radius: 8px;\n\t--reltio-assistant-message-content-color: #0e0e25;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground-color: var(--reltio-assistant-message-background);\n\tpadding: var(--reltio-assistant-message-padding);\n\tborder-radius: var(--reltio-assistant-message-border-radius);\n\tbox-sizing: border-box;\n\twidth: 100%;\n}\n\n._content_qtch8_17 {\n\tflex: 1;\n\tmin-width: 0;\n\tcolor: var(--reltio-assistant-message-content-color);\n}\n");const Ga=$a,Ya=({children:e,errorMessage:t,className:n,style:r,...o})=>{const i=(e=>{if(null==e)return null;if("string"==typeof e){const t=e.trim();return t?(0,Pn.jsx)(Br,{children:t}):null}return e})(t),a=e.trim();return(0,Pn.jsxs)("div",{className:_r(Ga.assistantMessageRoot,n),style:r,...o,children:[i&&i,!i&&a&&(0,Pn.jsx)(Wa,{children:a})]})},Xa=JSON.parse('{"userMessageRoot":"_userMessageRoot_11l9d_1"}');kr("\n._userMessageRoot_11l9d_1 {\n\tdisplay: inline-flex;\n\tbackground-color: var(--reltio-user-message-background, #f5f5fa);\n\tpadding: var(--reltio-user-message-padding, 12px 16px);\n\tborder-radius: var(--reltio-user-message-border-radius, 12px);\n}\n");const Qa=Xa,Ja=({children:e,className:t,style:n,...r})=>{const o=null!=e&&""!==String(e).trim();return(0,Pn.jsx)("div",{className:_r(Qa.userMessageRoot,t),style:n,...r,children:o&&(0,Pn.jsx)(Wa,{children:e})})},el=((0,r.memo)((({message:e})=>"user"===e.role?(0,Pn.jsx)(Ja,{className:Tr.userMessage,children:e.content}):"assistant"===e.role?(0,Pn.jsx)(Ya,{children:e.content}):(0,Pn.jsx)(Pn.Fragment,{children:e.content??null}))),JSON.parse('{"root":"_root_pmwmi_1","inputContainer":"_inputContainer_pmwmi_52","textarea":"_textarea_pmwmi_75","label":"_label_pmwmi_106","supportingText":"_supportingText_pmwmi_135","toolbar":"_toolbar_pmwmi_142"}'));kr('\n._root_pmwmi_1 {\n\t--reltio-textarea-font-family: var(\n\t\t--reltio-font-family-body,\n\t\t"Roboto",\n\t\tsans-serif\n\t);\n\t--reltio-textarea-font-size: var(--reltio-font-size-body, 16px);\n\t--reltio-textarea-line-height: var(--reltio-line-height-body, 1.5);\n\t--reltio-textarea-color-text: var(--reltio-color-text, #1d1b20);\n\t--reltio-textarea-color-border: var(--reltio-color-border, #79747e);\n\t--reltio-textarea-color-border-focus: var(--reltio-color-primary, #6750a4);\n\t--reltio-textarea-color-background: var(--reltio-color-background, #fff);\n\t--reltio-textarea-color-error: var(--reltio-color-error, #b3261e);\n\t--reltio-textarea-color-label: var(--reltio-color-text-secondary, #49454f);\n\t--reltio-textarea-color-supporting-text: var(\n\t\t--reltio-color-text-secondary,\n\t\t#49454f\n\t);\n\t--reltio-textarea-border-radius: var(--reltio-spacing-xs, 4px);\n\t--reltio-textarea-padding: var(--reltio-spacing-md, 16px);\n\t--reltio-textarea-min-height: var(--reltio-spacing-3xl, 56px);\n\t--reltio-textarea-max-height: min(500px, 50cqh);\n\t--reltio-textarea-border-width: 1px;\n\t--reltio-textarea-border-width-focus: 2px;\n\n\tfont-family: var(--reltio-textarea-font-family);\n\tcontainer-type: inline-size;\n}\n\n._root_pmwmi_1:focus-within {\n\t--reltio-textarea-color-border: var(--reltio-textarea-color-border-focus);\n\t--reltio-textarea-border-width: var(--reltio-textarea-border-width-focus);\n\t--reltio-textarea-color-label: var(--reltio-textarea-color-border-focus);\n}\n\n._root_pmwmi_1[data-error="true"] {\n\t--reltio-textarea-color-border: var(--reltio-textarea-color-error);\n\t--reltio-textarea-color-label: var(--reltio-textarea-color-error);\n\t--reltio-textarea-color-supporting-text: var(--reltio-textarea-color-error);\n}\n\n._root_pmwmi_1[data-error="true"]:focus-within {\n\t--reltio-textarea-color-border: var(--reltio-textarea-color-error);\n\t--reltio-textarea-color-label: var(--reltio-textarea-color-error);\n}\n\n._root_pmwmi_1[data-disabled="true"] {\n\topacity: 0.38;\n\tcursor: not-allowed;\n}\n\n._inputContainer_pmwmi_52 {\n\tposition: relative;\n\tdisplay: grid;\n\tgrid-template-columns: 1fr;\n\tgrid-template-rows: 1fr auto;\n\tgrid-template-areas:\n\t\t"textarea"\n\t\t"toolbar";\n\tmargin: 0;\n\tbox-sizing: border-box;\n\tborder-radius: var(--reltio-textarea-border-radius);\n\toutline: var(--reltio-textarea-border-width) solid var(--reltio-textarea-color-border);\n\tcursor: text;\n\ttransition:\n\t\toutline-color 0.1s ease,\n\t\toutline-width 0.1s ease;\n\tbackground: var(--reltio-textarea-color-background);\n}\n\n._root_pmwmi_1[data-disabled="true"] ._inputContainer_pmwmi_52 {\n\tcursor: not-allowed;\n}\n\n._textarea_pmwmi_75 {\n\tgrid-area: textarea;\n\tposition: relative;\n\tdisplay: block;\n\tz-index: 1;\n\tborder: none;\n\toutline: none;\n\tbackground: none;\n\twidth: 100%;\n\tmin-height: var(--reltio-textarea-min-height);\n\tmax-height: var(--reltio-textarea-max-height);\n\tborder-radius: var(--reltio-textarea-border-radius);\n\tbox-sizing: border-box;\n\tfont-size: var(--reltio-textarea-font-size);\n\tfont-family: var(--reltio-textarea-font-family);\n\tline-height: var(--reltio-textarea-line-height);\n\tresize: none;\n\tcolor: var(--reltio-textarea-color-text);\n\tpadding: var(--reltio-textarea-padding);\n\toverflow-y: auto;\n\tfield-sizing: content;\n}\n\n._textarea_pmwmi_75::placeholder {\n\tcolor: var(--reltio-textarea-color-label);\n}\n\n._textarea_pmwmi_75:disabled {\n\tcursor: not-allowed;\n}\n\n._label_pmwmi_106 {\n\tposition: absolute;\n\topacity: 0;\n\ttop: 16px;\n\tleft: 8px;\n\ttransform: translateY(-50%);\n\ttransition: all 0.2s ease;\n\tbackground-color: var(--reltio-textarea-color-background);\n\tpadding: 4px 8px;\n\tborder-radius: var(--reltio-textarea-border-radius);\n\tcolor: var(--reltio-textarea-color-label);\n\tz-index: 2;\n\tfont-size: var(--reltio-textarea-font-size);\n\tfont-family: var(--reltio-textarea-font-family);\n\tpointer-events: none;\n}\n\n._textarea_pmwmi_75:not(:placeholder-shown) + ._label_pmwmi_106 {\n\ttop: -1px;\n\tfont-size: 12px;\n\topacity: 1;\n}\n\n._textarea_pmwmi_75:focus + ._label_pmwmi_106 {\n\ttop: -1px;\n\tfont-size: 12px;\n\topacity: 1;\n}\n\n._supportingText_pmwmi_135 {\n\tfont-size: 12px;\n\tpadding: 4px var(--reltio-textarea-padding);\n\tcolor: var(--reltio-textarea-color-supporting-text);\n\tfont-family: var(--reltio-textarea-font-family);\n}\n\n._toolbar_pmwmi_142 {\n\tgrid-area: toolbar;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tgap: 12px;\n\tpadding: 8px 12px;\n}\n');const tl=el;function nl(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach((function(t){nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(0,r.forwardRef)((({label:e,error:t,supportingText:n,toolbar:r,className:o,...i},a)=>{const l=String(i.value??i.defaultValue??"").length>0;return(0,Pn.jsxs)("div",{"data-error":t||void 0,"data-disabled":i.disabled||void 0,"data-has-value":l||void 0,className:_r(tl.root,o),children:[(0,Pn.jsxs)("label",{className:_r(tl.inputContainer),children:[(0,Pn.jsx)("textarea",{ref:a,className:_r(tl.textarea),placeholder:e||i.placeholder,"aria-invalid":t||void 0,...i}),e&&(0,Pn.jsx)("span",{className:_r(tl.label),children:e}),r&&(0,Pn.jsx)("div",{className:_r(tl.toolbar),children:r})]}),n&&(0,Pn.jsx)("div",{className:_r(tl.supportingText),children:n})]})})).displayName="TextArea";var al=n(8960);function ll(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,al.Z)(e,t)}function sl(e){return sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sl(e)}function cl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cl=function(){return!!e})()}function ul(e,t){if(t&&("object"==D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,B.Z)(e)}function dl(e){var t=cl();return function(){var n,r=sl(e);if(t){var o=sl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ul(this,n)}}var fl={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=fl.F1&&t<=fl.F12)return!1;switch(t){case fl.ALT:case fl.CAPS_LOCK:case fl.CONTEXT_MENU:case fl.CTRL:case fl.DOWN:case fl.END:case fl.ESC:case fl.HOME:case fl.INSERT:case fl.LEFT:case fl.MAC_FF_META:case fl.META:case fl.NUMLOCK:case fl.NUM_CENTER:case fl.PAGE_DOWN:case fl.PAGE_UP:case fl.PAUSE:case fl.PRINT_SCREEN:case fl.RIGHT:case fl.SHIFT:case fl.UP:case fl.WIN_KEY:case fl.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=fl.ZERO&&e<=fl.NINE)return!0;if(e>=fl.NUM_ZERO&&e<=fl.NUM_MULTIPLY)return!0;if(e>=fl.A&&e<=fl.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case fl.SPACE:case fl.QUESTION_MARK:case fl.NUM_PLUS:case fl.NUM_MINUS:case fl.NUM_PERIOD:case fl.NUM_DIVISION:case fl.SEMICOLON:case fl.DASH:case fl.EQUALS:case fl.COMMA:case fl.PERIOD:case fl.SLASH:case fl.APOSTROPHE:case fl.SINGLE_QUOTE:case fl.OPEN_SQUARE_BRACKET:case fl.BACKSLASH:case fl.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const pl=fl;var hl="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function ml(e,t){return 0===e.indexOf(t)}function gl(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:ol({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||ml(n,"aria-"))||t.data&&ml(n,"data-")||t.attr&&hl.includes(n))&&(r[n]=e[n])})),r}var vl={},yl=[];function bl(e,t){}function xl(e,t){}function El(e,t,n){t||vl[n]||(e(!1,n),vl[n]=!0)}function Cl(e,t){El(bl,e,t)}Cl.preMessage=function(e){yl.push(e)},Cl.resetWarned=function(){vl={}},Cl.noteOnce=function(e,t){El(xl,e,t)};const wl=Cl;var kl=r.createContext(null),_l=r.createContext({});function Ol(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function Sl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Pt(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 Al(e,t){if(null==e)return{};var n,r,o=(0,R.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ml(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Pl=Ml()?r.useLayoutEffect:r.useEffect;const Rl=function(e,t){var n=r.useRef(!0);Pl((function(){return e(n.current)}),t),Pl((function(){return n.current=!1,function(){n.current=!0}}),[])};var Tl=Symbol.for("react.element"),Nl=Symbol.for("react.transitional.element"),Il=Symbol.for("react.fragment");function Dl(e){return e&&"object"===D(e)&&(e.$$typeof===Tl||e.$$typeof===Nl)&&e.type===Il}function Ll(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Ll(e)):Dl(e)&&e.props?n=n.concat(Ll(e.props.children,t)):n.push(e))})),n}var Fl=n(7111),jl=n.n(Fl);function zl(e){return e instanceof HTMLElement||e instanceof SVGElement}function Bl(e){var t,n=function(e){return e&&"object"===D(e)&&zl(e.nativeElement)?e.nativeElement:zl(e)?e:null}(e);return n||(e instanceof o().Component?null===(t=jl().findDOMNode)||void 0===t?void 0:t.call(jl(),e):null)}var Hl=n(1818),Ul=Number(r.version.split(".")[0]),Vl=function(e,t){"function"==typeof e?e(t):"object"===D(e)&&e&&"current"in e&&(e.current=t)},Zl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){Vl(t,e)}))}},Kl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o=t,"value"in(i=r.useRef({})).current&&!function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}(i.current.condition,o)||(i.current.value=Zl.apply(void 0,t),i.current.condition=o),i.current.value;var o,i},ql=function(e){var t,n;if(!e)return!1;if(Wl(e)&&Ul>=19)return!0;var r=(0,Hl.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===Hl.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===Hl.ForwardRef)};function Wl(e){return(0,r.isValidElement)(e)&&!Dl(e)}var $l=function(e){if(e&&Wl(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},Gl=r.createContext(null),Yl=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Xl="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ql=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Jl="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ql):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},es=["top","right","bottom","left","width","height","size","weight"],ts="undefined"!=typeof MutationObserver,ns=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Jl(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Xl&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ts?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Xl&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=es.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),rs=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},os=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ql},is=us(0,0,0,0);function as(e){return parseFloat(e)||0}function ls(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+as(e["border-"+n+"-width"])}),0)}var ss="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof os(e).SVGGraphicsElement}:function(e){return e instanceof os(e).SVGElement&&"function"==typeof e.getBBox};function cs(e){return Xl?ss(e)?function(e){var t=e.getBBox();return us(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return is;var r=os(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=as(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=as(r.width),s=as(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=ls(r,"left","right")+i),Math.round(s+a)!==n&&(s-=ls(r,"top","bottom")+a)),!function(e){return e===os(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return us(o.left,o.top,l,s)}(e):is}function us(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ds=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=us(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=cs(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),fs=function(e,t){var n,r,o,i,a,l,s,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),rs(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);rs(this,{target:e,contentRect:c})},ps=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Yl,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof os(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new ds(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof os(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new fs(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),hs="undefined"!=typeof WeakMap?new WeakMap:new Yl,ms=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ns.getInstance(),r=new ps(t,n,this);hs.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ms.prototype[e]=function(){var t;return(t=hs.get(this))[e].apply(t,arguments)}}));const gs=void 0!==Ql.ResizeObserver?Ql.ResizeObserver:ms;var vs=new Map,ys=new gs((function(e){e.forEach((function(e){var t,n=e.target;null===(t=vs.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),bs=function(e){ll(n,e);var t=dl(n);function n(){return il(this,n),t.apply(this,arguments)}return j(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function xs(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(Gl),s="function"==typeof n,c=s?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&r.isValidElement(c)&&ql(c),f=d?$l(c):null,p=Kl(f,i),h=function(){var e;return Bl(i.current)||(i.current&&"object"===D(i.current)?Bl(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Bl(a.current)};r.useImperativeHandle(t,(function(){return h()}));var m=r.useRef(e);m.current=e;var g=r.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,s=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==s||u.current.offsetHeight!==c){var p={width:d,height:f,offsetWidth:s,offsetHeight:c};u.current=p;var h=s===Math.round(i)?i:s,g=c===Math.round(a)?a:c,v=ol(ol({},p),{},{offsetWidth:h,offsetHeight:g});null==l||l(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return r.useEffect((function(){var e,t,n=h();return n&&!o&&(e=n,t=g,vs.has(e)||(vs.set(e,new Set),ys.observe(e)),vs.get(e).add(t)),function(){return function(e,t){vs.has(e)&&(vs.get(e).delete(t),vs.get(e).size||(ys.unobserve(e),vs.delete(e)))}(n,g)}}),[i.current,o]),r.createElement(bs,{ref:a},d?r.cloneElement(c,{ref:p}):c)}const Es=r.forwardRef(xs);function Cs(e,t){var n=e.children;return("function"==typeof n?[n]:Ll(n)).map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Es,(0,T.Z)({},e,{key:i,ref:0===o?t:void 0}),n)}))}var ws=r.forwardRef(Cs);ws.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(Gl),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(Gl.Provider,{value:l},t)};const ks=ws;function _s(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Os(e){var t=r.useRef(!1),n=Sl(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;var Ss=r.forwardRef((function(e,t){var n=e.height,o=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,s=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,p={},h={display:"flex",flexDirection:"column"};return void 0!==o&&(p={height:n,position:"relative",overflow:"hidden"},h=ol(ol({},h),{},nl(nl(nl(nl(nl({transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),r.createElement("div",{style:p},r.createElement(ks,{onResize:function(e){e.offsetHeight&&s&&s()}},r.createElement("div",(0,T.Z)({style:h,className:f()(nl({},"".concat(l,"-holder-inner"),l)),ref:t},c),a,d)))}));Ss.displayName="Filler";const As=Ss;function Ms(e){var t=e.children,n=e.setRef,o=r.useCallback((function(e){n(e)}),[]);return r.cloneElement(t,{ref:o})}var Ps=function(e){return+setTimeout(e,16)},Rs=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ps=function(e){return window.requestAnimationFrame(e)},Rs=function(e){return window.cancelAnimationFrame(e)});var Ts=0,Ns=new Map;function Is(e){Ns.delete(e)}var Ds=function(e){var t=Ts+=1;return function n(r){if(0===r)Is(t),e();else{var o=Ps((function(){n(r-1)}));Ns.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Ds.cancel=function(e){var t=Ns.get(e);return Is(e),Rs(t)};const Ls=Ds,Fs="object"===("undefined"==typeof navigator?"undefined":D(navigator))&&/Firefox/i.test(navigator.userAgent),js=function(e,t,n,o){var i=(0,r.useRef)(!1),a=(0,r.useRef)(null),l=(0,r.useRef)({top:e,bottom:t,left:n,right:o});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&r}};var zs=function(){function e(){il(this,e),nl(this,"maps",void 0),nl(this,"id",0),nl(this,"diffRecords",new Map),this.maps=Object.create(null)}return j(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();const Bs=zs;function Hs(e){var t=parseFloat(e);return isNaN(t)?0:t}var Us=14/15;function Vs(e){return Math.floor(Math.pow(e,.5))}function Zs(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var Ks=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,p=e.containerSize,h=e.style,m=e.thumbStyle,g=e.showScrollBar,v=Sl(r.useState(!1),2),y=v[0],b=v[1],x=Sl(r.useState(null),2),E=x[0],C=x[1],w=Sl(r.useState(null),2),k=w[0],_=w[1],O=!o,S=r.useRef(),A=r.useRef(),M=Sl(r.useState(g),2),P=M[0],R=M[1],T=r.useRef(),N=function(){!0!==g&&!1!==g&&(clearTimeout(T.current),R(!0),T.current=setTimeout((function(){R(!1)}),3e3))},I=a-p||0,D=p-d||0,L=r.useMemo((function(){return 0===i||0===I?0:i/I*D}),[i,I,D]),F=r.useRef({top:L,dragging:y,pageY:E,startTop:k});F.current={top:L,dragging:y,pageY:E,startTop:k};var j=function(e){b(!0),C(Zs(e,u)),_(F.current.top),l(),e.stopPropagation(),e.preventDefault()};r.useEffect((function(){var e=function(e){e.preventDefault()},t=S.current,n=A.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",j,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",j)}}),[]);var z=r.useRef();z.current=I;var B=r.useRef();B.current=D,r.useEffect((function(){if(y){var e,t=function(t){var n=F.current,r=n.dragging,o=n.pageY,i=n.startTop;Ls.cancel(e);var a=S.current.getBoundingClientRect(),l=p/(u?a.width:a.height);if(r){var s=(Zs(t,u)-o)*l,d=i;!O&&u?d-=s:d+=s;var f=z.current,h=B.current,m=h?d/h:0,g=Math.ceil(m*f);g=Math.max(g,0),g=Math.min(g,f),e=Ls((function(){c(g,u)}))}},n=function(){b(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Ls.cancel(e)}}}),[y]),r.useEffect((function(){return N(),function(){clearTimeout(T.current)}}),[i]),r.useImperativeHandle(t,(function(){return{delayHidden:N}}));var H="".concat(n,"-scrollbar"),U={position:"absolute",visibility:P?null:"hidden"},V={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(U,{height:8,left:0,right:0,bottom:0}),Object.assign(V,nl({height:"100%",width:d},O?"left":"right",L))):(Object.assign(U,nl({width:8,top:0,bottom:0},O?"right":"left",0)),Object.assign(V,{width:"100%",height:d,top:L})),r.createElement("div",{ref:S,className:f()(H,nl(nl(nl({},"".concat(H,"-horizontal"),u),"".concat(H,"-vertical"),!u),"".concat(H,"-visible"),P)),style:ol(ol({},U),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:N},r.createElement("div",{ref:A,className:f()("".concat(H,"-thumb"),nl({},"".concat(H,"-thumb-moving"),y)),style:ol(ol({},V),m),onMouseDown:j}))}));const qs=Ks;var Ws=20;function $s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Ws),Math.floor(t)}var Gs=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ys=[],Xs={overflowY:"auto",overflowAnchor:"none"};function Qs(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,i=e.className,a=e.height,l=e.itemHeight,s=e.fullHeight,c=void 0===s||s,u=e.style,d=e.data,p=e.children,h=e.itemKey,m=e.virtual,g=e.direction,v=e.scrollWidth,y=e.component,b=void 0===y?"div":y,x=e.onScroll,E=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,k=e.extraRender,_=e.styles,O=e.showScrollBar,S=void 0===O?"optional":O,A=Al(e,Gs),M=r.useCallback((function(e){return"function"==typeof h?h(e):null==e?void 0:e[h]}),[h]),P=function(e){var t=Sl(r.useState(0),2),n=t[0],o=t[1],i=(0,r.useRef)(new Map),a=(0,r.useRef)(new Bs),l=(0,r.useRef)(0);function s(){l.current+=1}function c(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s();var t=function(){var e=!1;i.current.forEach((function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,l=o.marginBottom,s=r+Hs(i)+Hs(l);a.current.get(n)!==s&&(a.current.set(n,s),e=!0)}})),e&&o((function(e){return e+1}))};if(e)t();else{l.current+=1;var n=l.current;Promise.resolve().then((function(){n===l.current&&t()}))}}return(0,r.useEffect)((function(){return s}),[]),[function(t,n){var r=e(t);i.current.get(r);n?(i.current.set(r,n),c()):i.current.delete(r)},c,a.current,n]}(M),R=Sl(P,4),N=R[0],I=R[1],L=R[2],F=R[3],j=!(!1===m||!a||!l),z=r.useMemo((function(){return Object.values(L.maps).reduce((function(e,t){return e+t}),0)}),[L.id,L.maps]),B=j&&d&&(Math.max(l*d.length,z)>a||!!v),H="rtl"===g,U=f()(o,nl({},"".concat(o,"-rtl"),H),i),V=d||Ys,Z=(0,r.useRef)(),K=(0,r.useRef)(),q=(0,r.useRef)(),W=Sl((0,r.useState)(0),2),$=W[0],G=W[1],Y=Sl((0,r.useState)(0),2),X=Y[0],Q=Y[1],J=Sl((0,r.useState)(!1),2),ee=J[0],te=J[1],ne=function(){te(!0)},re=function(){te(!1)},oe={getKey:M};function ie(e){G((function(t){var n=function(e){var t=e;return Number.isNaN(Ce.current)||(t=Math.min(t,Ce.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return Z.current.scrollTop=n,n}))}var ae=(0,r.useRef)({start:0,end:V.length}),le=(0,r.useRef)(),se=Sl(function(e,t,n){var o=Sl(r.useState(e),2),i=o[0],a=o[1],l=Sl(r.useState(null),2),s=l[0],c=l[1];return r.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=s(r[d]);if(f!==s(o[d])){c=d,u=u||f!==s(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),c(e[r.index])),a(e)}),[e]),[s]}(V,M),1)[0];le.current=se;var ce=r.useMemo((function(){if(!j)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};var e;if(!B)return{scrollHeight:(null===(e=K.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:V.length-1,offset:void 0};for(var t,n,r,o=0,i=V.length,s=0;s<i;s+=1){var c=V[s],u=M(c),d=L.get(u),f=o+(void 0===d?l:d);f>=$&&void 0===t&&(t=s,n=o),f>$+a&&void 0===r&&(r=s),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=V.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,V.length-1),offset:n}}),[B,j,$,V,F,a]),ue=ce.scrollHeight,de=ce.start,fe=ce.end,pe=ce.offset;ae.current.start=de,ae.current.end=fe,r.useLayoutEffect((function(){var e=L.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=V[de];if(r&&void 0===n&&M(r)===t){var o=L.get(t)-l;ie((function(e){return e+o}))}}L.resetRecord()}),[ue]);var he=Sl(r.useState({width:0,height:a}),2),me=he[0],ge=he[1],ve=(0,r.useRef)(),ye=(0,r.useRef)(),be=r.useMemo((function(){return $s(me.width,v)}),[me.width,v]),xe=r.useMemo((function(){return $s(me.height,ue)}),[me.height,ue]),Ee=ue-a,Ce=(0,r.useRef)(Ee);Ce.current=Ee;var we=$<=0,ke=$>=Ee,_e=X<=0,Oe=X>=v,Se=js(we,ke,_e,Oe),Ae=function(){return{x:H?-X:X,y:$}},Me=(0,r.useRef)(Ae()),Pe=_s((function(e){if(E){var t=ol(ol({},Ae()),e);Me.current.x===t.x&&Me.current.y===t.y||(E(t),Me.current=t)}}));function Re(e,t){var n=e;t?((0,Fl.flushSync)((function(){Q(n)})),Pe()):ie(n)}var Te=function(e){var t=e,n=v?v-me.width:0;return t=Math.max(t,0),Math.min(t,n)},Ne=_s((function(e,t){t?((0,Fl.flushSync)((function(){Q((function(t){return Te(t+(H?-e:e))}))})),Pe()):ie((function(t){return t+e}))})),Ie=Sl(function(e,t,n,o,i,a,l){var s=(0,r.useRef)(0),c=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)(!1),f=js(t,n,o,i),p=(0,r.useRef)(null),h=(0,r.useRef)(null);return[function(t){if(e){Ls.cancel(h.current),h.current=Ls((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,m=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,m=0,p.current="sx");var g=Math.abs(i),v=Math.abs(m);null===p.current&&(p.current=a&&g>v?"x":"y"),"y"===p.current?function(e,t){if(Ls.cancel(c.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,u.current=t,Fs||n.preventDefault(),c.current=Ls((function(){var e=d.current?10:1;l(s.current*e,!1),s.current=0})))}}(t,m):function(e,t){l(t,!0),Fs||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}(j,we,ke,_e,Oe,!!v,Ne),2),De=Ie[0],Le=Ie[1];!function(e,t,n){var o,i=(0,r.useRef)(!1),a=(0,r.useRef)(0),l=(0,r.useRef)(0),s=(0,r.useRef)(null),c=(0,r.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=a.current-t,s=l.current-r,u=Math.abs(o)>Math.abs(s);u?a.current=t:l.current=r;var d=n(u,u?o:s,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?o*=Us:s*=Us;var e=Math.floor(u?o:s);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",u,{passive:!1}),s.current.addEventListener("touchend",d,{passive:!0}))};o=function(){s.current&&(s.current.removeEventListener("touchmove",u),s.current.removeEventListener("touchend",d))},Rl((function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(c.current)}}),[e])}(j,Z,(function(e,t,n,r){var o=r;return!(Se(e,t,n)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),De({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),function(e,t){r.useEffect((function(){var n=t.current;if(e&&n){var r,o,i=!1,a=function(){Ls.cancel(r)},l=function e(){a(),r=Ls((function(){var t;t=o,ie((function(e){return e+t})),e()}))},s=function(){i=!1,a()},c=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)}},u=function(e){if(i){var t=Zs(e,!1),r=n.getBoundingClientRect(),s=r.top,c=r.bottom;t<=s?(o=-Vs(s-t),l()):t>=c?(o=Vs(t-c),l()):a()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",s),n.ownerDocument.addEventListener("mousemove",u),n.ownerDocument.addEventListener("dragend",s),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",s),n.ownerDocument.removeEventListener("mousemove",u),n.ownerDocument.removeEventListener("dragend",s),a()}}}),[e])}(B,Z),Rl((function(){function e(e){var t=we&&e.detail<0,n=ke&&e.detail>0;!j||t||n||e.preventDefault()}var t=Z.current;return t.addEventListener("wheel",De,{passive:!1}),t.addEventListener("DOMMouseScroll",Le,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",De),t.removeEventListener("DOMMouseScroll",Le),t.removeEventListener("MozMousePixelScroll",e)}}),[j,we,ke]),Rl((function(){if(v){var e=Te(X);Q(e),Pe({x:e})}}),[me.width,v]);var Fe=function(){var e,t;null===(e=ve.current)||void 0===e||e.delayHidden(),null===(t=ye.current)||void 0===t||t.delayHidden()},je=function(e,t,n,o,i,a,l,s){var c=r.useRef(),u=Sl(r.useState(null),2),d=u[0],f=u[1];return Rl((function(){if(d&&d.times<10){if(!e.current)return void f((function(e){return ol({},e)}));a();var r=d.targetAlign,s=d.originAlign,c=d.index,u=d.offset,p=e.current.clientHeight,h=!1,m=r,g=null;if(p){for(var v=r||s,y=0,b=0,x=0,E=Math.min(t.length-1,c),C=0;C<=E;C+=1){var w=i(t[C]);b=y;var k=n.get(w);y=x=b+(void 0===k?o:k)}for(var _="top"===v?u:p-u,O=E;O>=0;O-=1){var S=i(t[O]),A=n.get(S);if(void 0===A){h=!0;break}if((_-=A)<=0)break}switch(v){case"top":g=b-u;break;case"bottom":g=x-p+u;break;default:var M=e.current.scrollTop;b<M?m="top":x>M+p&&(m="bottom")}null!==g&&l(g),g!==d.lastTop&&(h=!0)}h&&f(ol(ol({},d),{},{times:d.times+1,targetAlign:m,lastTop:g}))}}),[d,e.current]),function(e){if(null!=e){if(Ls.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"===D(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else s()}}(Z,V,L,l,M,(function(){return I(!0)}),ie,Fe);r.useImperativeHandle(t,(function(){return{nativeElement:q.current,getScrollInfo:Ae,scrollTo:function(e){var t;(t=e)&&"object"===D(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Q(Te(e.left)),je(e.top)):je(e)}}})),Rl((function(){if(C){var e=V.slice(de,fe+1);C(e,V)}}),[de,fe,V]);var ze=function(e,t,n,o){var i=Sl(r.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),2),a=i[0],l=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,s=a.get(r),c=a.get(i);if(void 0===s||void 0===c)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],h=t(p);a.set(h,d);var m=null!==(f=n.get(h))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+m,h===r&&(s=d),h===i&&(c=d),void 0!==s&&void 0!==c)break}return{top:l[s-1]||0,bottom:l[c]}}}(V,M,L,l),Be=null==k?void 0:k({start:de,end:fe,virtual:B,offsetX:X,offsetY:pe,rtl:H,getSize:ze}),He=function(e,t,n,o,i,a,l,s){var c=s.getKey;return e.slice(t,n+1).map((function(e,n){var s=l(e,t+n,{style:{width:o},offsetX:i}),u=c(e);return r.createElement(Ms,{key:u,setRef:function(t){return a(e,t)}},s)}))}(V,de,fe,v,X,N,p,oe),Ue=null;a&&(Ue=ol(nl({},c?"height":"maxHeight",a),Xs),j&&(Ue.overflowY="hidden",v&&(Ue.overflowX="hidden"),ee&&(Ue.pointerEvents="none")));var Ve={};return H&&(Ve.dir="rtl"),r.createElement("div",(0,T.Z)({ref:q,style:ol(ol({},u),{},{position:"relative"}),className:U},Ve,A),r.createElement(ks,{onResize:function(e){ge({width:e.offsetWidth,height:e.offsetHeight})}},r.createElement(b,{className:"".concat(o,"-holder"),style:Ue,ref:Z,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==$&&ie(t),null==x||x(e),Pe()},onMouseEnter:Fe},r.createElement(As,{prefixCls:o,height:ue,offsetX:X,offsetY:pe,scrollWidth:v,onInnerResize:I,ref:K,innerProps:w,rtl:H,extra:Be},He))),B&&ue>a&&r.createElement(qs,{ref:ve,prefixCls:o,scrollOffset:$,scrollRange:ue,rtl:H,onScroll:Re,onStartMove:ne,onStopMove:re,spinSize:xe,containerSize:me.height,style:null==_?void 0:_.verticalScrollBar,thumbStyle:null==_?void 0:_.verticalScrollBarThumb,showScrollBar:S}),B&&v>me.width&&r.createElement(qs,{ref:ye,prefixCls:o,scrollOffset:X,scrollRange:v,rtl:H,onScroll:Re,onStartMove:ne,onStopMove:re,spinSize:be,containerSize:me.width,horizontal:!0,style:null==_?void 0:_.horizontalScrollBar,thumbStyle:null==_?void 0:_.horizontalScrollBarThumb,showScrollBar:S}))}var Js=r.forwardRef(Qs);Js.displayName="List";const ec=Js;var tc=r.createContext({}),nc=function(e){ll(n,e);var t=dl(n);function n(){return il(this,n),t.apply(this,arguments)}return j(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const rc=nc;var oc="none",ic="appear",ac="enter",lc="leave",sc="none",cc="prepare",uc="start",dc="active",fc="end",pc="prepared";function hc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var mc,gc,vc,yc=(mc=Ml(),gc="undefined"!=typeof window?window:{},vc={animationend:hc("Animation","AnimationEnd"),transitionend:hc("Transition","TransitionEnd")},mc&&("AnimationEvent"in gc||delete vc.animationend.animation,"TransitionEvent"in gc||delete vc.transitionend.transition),vc),bc={};if(Ml()){var xc=document.createElement("div");bc=xc.style}var Ec={};function Cc(e){if(Ec[e])return Ec[e];var t=yc[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in bc)return Ec[e]=t[i],Ec[e]}return""}var wc=Cc("animationend"),kc=Cc("transitionend"),_c=!(!wc||!kc),Oc=wc||"animationend",Sc=kc||"transitionend";function Ac(e,t){return e?"object"===D(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Mc=Ml()?r.useLayoutEffect:r.useEffect;var Pc=[cc,uc,dc,fc],Rc=[cc,pc],Tc=!1;function Nc(e){return e===dc||e===fc}function Ic(e,t,n,o){var i,a,l,s=o.motionEnter,c=void 0===s||s,u=o.motionAppear,d=void 0===u||u,f=o.motionLeave,p=void 0===f||f,h=o.motionDeadline,m=o.motionLeaveImmediately,g=o.onAppearPrepare,v=o.onEnterPrepare,y=o.onLeavePrepare,b=o.onAppearStart,x=o.onEnterStart,E=o.onLeaveStart,C=o.onAppearActive,w=o.onEnterActive,k=o.onLeaveActive,_=o.onAppearEnd,O=o.onEnterEnd,S=o.onLeaveEnd,A=o.onVisibleChanged,M=Sl(Os(),2),P=M[0],R=M[1],T=(i=oc,a=Sl(r.useReducer((function(e){return e+1}),0),2)[1],l=r.useRef(i),[_s((function(){return l.current})),_s((function(e){l.current="function"==typeof e?e(l.current):e,a()}))]),N=Sl(T,2),I=N[0],D=N[1],L=Sl(Os(null),2),F=L[0],j=L[1],z=I(),B=(0,r.useRef)(!1),H=(0,r.useRef)(null);function U(){return n()}var V=(0,r.useRef)(!1);function Z(){D(oc),j(null,!0)}var K=_s((function(e){var t=I();if(t!==oc){var n=U();if(!e||e.deadline||e.target===n){var r,o=V.current;t===ic&&o?r=null==_?void 0:_(n,e):t===ac&&o?r=null==O?void 0:O(n,e):t===lc&&o&&(r=null==S?void 0:S(n,e)),o&&!1!==r&&Z()}}})),q=Sl(function(e){var t=(0,r.useRef)();function n(t){t&&(t.removeEventListener(Sc,e),t.removeEventListener(Oc,e))}return r.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Sc,e),r.addEventListener(Oc,e),t.current=r)},n]}(K),1)[0],W=function(e){switch(e){case ic:return nl(nl(nl({},cc,g),uc,b),dc,C);case ac:return nl(nl(nl({},cc,v),uc,x),dc,w);case lc:return nl(nl(nl({},cc,y),uc,E),dc,k);default:return{}}},$=r.useMemo((function(){return W(z)}),[z]),G=Sl(function(e,t,n){var o=Sl(Os(sc),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){Ls.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Ls((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=Sl(l,2),c=s[0],u=s[1],d=t?Rc:Pc;return Mc((function(){if(i!==sc&&i!==fc){var e=d.indexOf(i),t=d[e+1],r=n(i);r===Tc?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(cc,!0)},i]}(z,!e,(function(e){if(e===cc){var t=$[cc];return t?t(U()):Tc}var n;return X in $&&j((null===(n=$[X])||void 0===n?void 0:n.call($,U(),null))||null),X===dc&&z!==oc&&(q(U()),h>0&&(clearTimeout(H.current),H.current=setTimeout((function(){K({deadline:!0})}),h))),X===pc&&Z(),true})),2),Y=G[0],X=G[1],Q=Nc(X);V.current=Q;var J=(0,r.useRef)(null);Mc((function(){if(!B.current||J.current!==t){R(t);var n,r=B.current;B.current=!0,!r&&t&&d&&(n=ic),r&&t&&c&&(n=ac),(r&&!t&&p||!r&&m&&!t&&p)&&(n=lc);var o=W(n);n&&(e||o[cc])?(D(n),Y()):D(oc),J.current=t}}),[t]),(0,r.useEffect)((function(){(z===ic&&!d||z===ac&&!c||z===lc&&!p)&&D(oc)}),[d,c,p]),(0,r.useEffect)((function(){return function(){B.current=!1,clearTimeout(H.current)}}),[]);var ee=r.useRef(!1);(0,r.useEffect)((function(){P&&(ee.current=!0),void 0!==P&&z===oc&&((ee.current||P)&&(null==A||A(P)),ee.current=!0)}),[P,z]);var te=F;return $[cc]&&X===uc&&(te=ol({transition:"none"},te)),[z,X,te,null!=P?P:t]}const Dc=function(e){var t=e;"object"===D(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,s=e.forceRender,c=e.children,u=e.motionName,d=e.leavedClassName,p=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(tc).motion),m=(0,r.useRef)(),g=(0,r.useRef)(),v=Sl(Ic(h,i,(function(){try{return m.current instanceof HTMLElement?m.current:Bl(g.current)}catch(e){return null}}),e),4),y=v[0],b=v[1],x=v[2],E=v[3],C=r.useRef(E);E&&(C.current=!0);var w,k=r.useCallback((function(e){m.current=e,Vl(n,e)}),[n]),_=ol(ol({},p),{},{visible:i});if(c)if(y===oc)w=E?c(ol({},_),k):!l&&C.current&&d?c(ol(ol({},_),{},{className:d}),k):s||!l&&!d?c(ol(ol({},_),{},{style:{display:"none"}}),k):null;else{var O;b===cc?O="prepare":Nc(b)?O="active":b===uc&&(O="start");var S=Ac(u,"".concat(y,"-").concat(O));w=c(ol(ol({},_),{},{className:f()(Ac(u,y),nl(nl({},S,S&&O),u,"string"==typeof u)),style:x}),k)}else w=null;return r.isValidElement(w)&&ql(w)&&($l(w)||(w=r.cloneElement(w,{ref:k}))),r.createElement(rc,{ref:g},w)}));return n.displayName="CSSMotion",n}(_c);var Lc="add",Fc="keep",jc="remove",zc="removed";function Bc(e){var t;return ol(ol({},t=e&&"object"===D(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Hc(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Bc)}var Uc=["component","children","onVisibleChanged","onAllRemoved"],Vc=["status"],Zc=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dc,t=function(t){ll(o,t);var n=dl(o);function o(){var e;il(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e=n.call.apply(n,[this].concat(r)),nl((0,B.Z)(e),"state",{keyEntities:[]}),nl((0,B.Z)(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:ol(ol({},e),{},{status:zc})}))}}),(function(){var t=e.state.keyEntities.filter((function(e){return e.status!==zc})).length;0===t&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return j(o,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,s=(o.onAllRemoved,Al(o,Uc)),c=i||r.Fragment,u={};return Zc.forEach((function(e){u[e]=s[e],delete s[e]})),delete s.keys,r.createElement(c,s,n.map((function(n,o){var i=n.status,s=Al(n,Vc),c=i===Lc||i===Fc;return r.createElement(e,(0,T.Z)({},u,{key:s.key,visible:c,eventProps:s,onVisibleChanged:function(e){null==l||l(e,{key:s.key}),e||t.removeKey(s.key)}}),(function(e,t){return a(ol(ol({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Hc(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Hc(e),a=Hc(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return ol(ol({},e),{},{status:Lc})}))),r=i),n.push(ol(ol({},l),{},{status:Fc})),r+=1,t=!0;break}}t||n.push(ol(ol({},e),{},{status:jc}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return ol(ol({},e),{},{status:Lc})}))));var l={};n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1}));var s=Object.keys(l).filter((function(e){return l[e]>1}));return s.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==jc})),n.forEach((function(t){t.key===e&&(t.status=Fc)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==zc||e.status!==jc}))}}}]),o}(r.Component);nl(t,"defaultProps",{component:"div"})}(_c);const Kc=Dc;var qc=function(e){for(var t=e.prefixCls,n=e.level,o=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],s=0;s<n;s+=1)l.push(r.createElement("span",{key:s,className:f()(a,nl(nl({},"".concat(a,"-start"),o[s]),"".concat(a,"-end"),i[s]))}));return r.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)};const Wc=r.memo(qc);function $c(e,t){return e[t]}var Gc=["children"];function Yc(e,t){return"".concat(e,"-").concat(t)}function Xc(e,t){return null!=e?e:t}function Qc(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function Jc(e,t,n){var r=Qc(n),o=r._title,i=r.key,a=r.children,l=new Set(!0===t?[]:t),s=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,u){for(var d,f=Yc(r?r.pos:"0",u),p=Xc(c[i],f),h=0;h<o.length;h+=1){var m=o[h];if(void 0!==c[m]){d=c[m];break}}var g,v,y,b=Object.assign((g=c,v=[].concat(Rt(o),[i,a]),y=Object.assign({},g),Array.isArray(v)&&v.forEach((function(e){delete y[e]})),y),{title:d,key:p,parent:r,pos:f,children:null,data:c,isStart:[].concat(Rt(r?r.isStart:[]),[0===u]),isEnd:[].concat(Rt(r?r.isEnd:[]),[u===n.length-1])});return s.push(b),!0===t||l.has(p)?b.children=e(c[a]||[],b):b.children=[],b}))}(e),s}function eu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=i||(arguments.length>2?arguments[2]:void 0),c={},u={},d={posEntities:c,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var o,i=("object"===D(n)?n:{externalGetKey:n})||{},a=i.childrenPropName,l=i.externalGetKey,s=Qc(i.fieldNames),f=s.key,p=s.children,h=a||p;l?"string"==typeof l?o=function(e){return e[l]}:"function"==typeof l&&(o=function(e){return l(e)}):o=function(e,t){return Xc(e[f],t)},function t(n,i,a,l){var s=n?n[h]:e,f=n?Yc(a.pos,i):"0",p=n?[].concat(Rt(l),[n]):[];if(n){var m=o(n,f);!function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,s={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},f=Xc(i,o);c[o]=s,u[f]=s,s.parent=c[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,d)}({node:n,index:i,pos:f,key:m,parentPos:a.node?a.pos:null,level:a.level+1,nodes:p})}s&&s.forEach((function(e,r){t(e,r,{node:n,pos:f,level:a?a.level+1:-1},p)}))}(null)}(e,0,{externalGetKey:s,childrenPropName:a,fieldNames:l}),o&&o(d),d}function tu(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,c=t.dropPosition,u=$c(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function nu(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,s=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,h=ol(ol({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return wl(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var ru=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ou="open",iu="close",au=function(e){var t,n,r,i=e.eventKey,a=e.className,l=e.style,s=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.isLeaf,p=e.isStart,h=e.isEnd,m=e.expanded,g=e.selected,v=e.checked,y=e.halfChecked,b=e.loading,x=e.domRef,E=e.active,C=e.data,w=e.onMouseMove,k=e.selectable,_=Al(e,ru),O=o().useContext(kl),S=o().useContext(_l),A=o().useRef(null),M=Sl(o().useState(!1),2),P=M[0],R=M[1],N=!!(O.disabled||e.disabled||null!==(t=S.nodeDisabled)&&void 0!==t&&t.call(S,C)),I=o().useMemo((function(){return!(!O.checkable||!1===e.checkable)&&O.checkable}),[O.checkable,e.checkable]),D=function(t){N||I&&!e.disableCheckbox&&O.onNodeCheck(t,nu(e),!v)},L=o().useMemo((function(){return"boolean"==typeof k?k:O.selectable}),[k,O.selectable]),F=function(t){O.onNodeClick(t,nu(e)),L?function(t){N||O.onNodeSelect(t,nu(e))}(t):D(t)},j=function(t){O.onNodeDoubleClick(t,nu(e))},z=function(t){O.onNodeMouseEnter(t,nu(e))},B=function(t){O.onNodeMouseLeave(t,nu(e))},H=function(t){O.onNodeContextMenu(t,nu(e))},U=o().useMemo((function(){return!(!O.draggable||O.draggable.nodeDraggable&&!O.draggable.nodeDraggable(C))}),[O.draggable,C]),V=function(t){b||O.onNodeExpand(t,nu(e))},Z=o().useMemo((function(){var e=($c(O.keyEntities,i)||{}).children;return Boolean((e||[]).length)}),[O.keyEntities,i]),K=o().useMemo((function(){return!1!==d&&(d||!O.loadData&&!Z||O.loadData&&e.loaded&&!Z)}),[d,O.loadData,Z,e.loaded]);o().useEffect((function(){b||"function"!=typeof O.loadData||!m||K||e.loaded||O.onNodeLoad(nu(e))}),[b,O.loadData,O.onNodeLoad,m,K,e]);var q=o().useMemo((function(){var e;return null!==(e=O.draggable)&&void 0!==e&&e.icon?o().createElement("span",{className:"".concat(O.prefixCls,"-draggable-icon")},O.draggable.icon):null}),[O.draggable]),W=function(t){var n=e.switcherIcon||O.switcherIcon;return"function"==typeof n?n(ol(ol({},e),{},{isLeaf:t})):n},$=o().useMemo((function(){if(!I)return null;var t="boolean"!=typeof I?I:null;return o().createElement("span",{className:f()("".concat(O.prefixCls,"-checkbox"),nl(nl(nl({},"".concat(O.prefixCls,"-checkbox-checked"),v),"".concat(O.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(O.prefixCls,"-checkbox-disabled"),N||e.disableCheckbox)),onClick:D,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":N||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[I,v,y,N,e.disableCheckbox,e.title]),G=o().useMemo((function(){return K?null:m?ou:iu}),[K,m]),Y=o().useMemo((function(){return o().createElement("span",{className:f()("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__").concat(G||"docu"),nl({},"".concat(O.prefixCls,"-icon_loading"),b))})}),[O.prefixCls,G,b]),X=o().useMemo((function(){var t=Boolean(O.draggable);return!e.disabled&&t&&O.dragOverNodeKey===i?O.dropIndicatorRender({dropPosition:O.dropPosition,dropLevelOffset:O.dropLevelOffset,indent:O.indent,prefixCls:O.prefixCls,direction:O.direction}):null}),[O.dropPosition,O.dropLevelOffset,O.indent,O.prefixCls,O.direction,O.draggable,O.dragOverNodeKey,O.dropIndicatorRender]),Q=o().useMemo((function(){var t,n,r=e.title,i=void 0===r?"---":r,a="".concat(O.prefixCls,"-node-content-wrapper");if(O.showIcon){var l=e.icon||O.icon;t=l?o().createElement("span",{className:f()("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__customize"))},"function"==typeof l?l(e):l):Y}else O.loadData&&b&&(t=Y);return n="function"==typeof i?i(C):O.titleRender?O.titleRender(C):i,o().createElement("span",{ref:A,title:"string"==typeof i?i:"",className:f()(a,"".concat(a,"-").concat(G||"normal"),nl({},"".concat(O.prefixCls,"-node-selected"),!N&&(g||P))),onMouseEnter:z,onMouseLeave:B,onContextMenu:H,onClick:F,onDoubleClick:j},t,o().createElement("span",{className:"".concat(O.prefixCls,"-title")},n),X)}),[O.prefixCls,O.showIcon,e,O.icon,Y,O.titleRender,C,G,z,B,H,F,j]),J=gl(_,{aria:!0,data:!0}),ee=($c(O.keyEntities,i)||{}).level,te=h[h.length-1],ne=!N&&U,re=O.draggingNodeKey===i,oe=void 0!==k?{"aria-selected":!!k}:void 0;return o().createElement("div",(0,T.Z)({ref:x,role:"treeitem","aria-expanded":d?void 0:m,className:f()(a,"".concat(O.prefixCls,"-treenode"),(r={},nl(nl(nl(nl(nl(nl(nl(nl(nl(nl(r,"".concat(O.prefixCls,"-treenode-disabled"),N),"".concat(O.prefixCls,"-treenode-switcher-").concat(m?"open":"close"),!d),"".concat(O.prefixCls,"-treenode-checkbox-checked"),v),"".concat(O.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(O.prefixCls,"-treenode-selected"),g),"".concat(O.prefixCls,"-treenode-loading"),b),"".concat(O.prefixCls,"-treenode-active"),E),"".concat(O.prefixCls,"-treenode-leaf-last"),te),"".concat(O.prefixCls,"-treenode-draggable"),U),"dragging",re),nl(nl(nl(nl(nl(nl(nl(r,"drop-target",O.dropTargetKey===i),"drop-container",O.dropContainerKey===i),"drag-over",!N&&s),"drag-over-gap-top",!N&&c),"drag-over-gap-bottom",!N&&u),"filter-node",null===(n=O.filterTreeNode)||void 0===n?void 0:n.call(O,nu(e))),"".concat(O.prefixCls,"-treenode-leaf"),K))),style:l,draggable:ne,onDragStart:ne?function(t){t.stopPropagation(),R(!0),O.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:U?function(t){t.preventDefault(),t.stopPropagation(),O.onNodeDragEnter(t,e)}:void 0,onDragOver:U?function(t){t.preventDefault(),t.stopPropagation(),O.onNodeDragOver(t,e)}:void 0,onDragLeave:U?function(t){t.stopPropagation(),O.onNodeDragLeave(t,e)}:void 0,onDrop:U?function(t){t.preventDefault(),t.stopPropagation(),R(!1),O.onNodeDrop(t,e)}:void 0,onDragEnd:U?function(t){t.stopPropagation(),R(!1),O.onNodeDragEnd(t,e)}:void 0,onMouseMove:w},oe,J),o().createElement(Wc,{prefixCls:O.prefixCls,level:ee,isStart:p,isEnd:h}),q,function(){if(K){var e=W(!0);return!1!==e?o().createElement("span",{className:f()("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher-noop"))},e):null}var t=W(!1);return!1!==t?o().createElement("span",{onClick:V,className:f()("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher_").concat(m?ou:iu))},t):null}(),$,Q)};au.isTreeNode=1;const lu=au;var su=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],cu=r.forwardRef((function(e,t){var n=e.className,o=e.style,i=e.motion,a=e.motionNodes,l=e.motionType,s=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,p=Al(e,su),h=Sl(r.useState(!0),2),m=h[0],g=h[1],v=r.useContext(kl).prefixCls,y=a&&"hide"!==l;Rl((function(){a&&y!==m&&g(y)}),[a]);var b=r.useRef(!1),x=function(){a&&!b.current&&(b.current=!0,c())};return function(e,t){var n=Sl(r.useState(!1),2),o=n[0],i=n[1];Rl((function(){if(o)return e(),function(){t()}}),[o]),Rl((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&s()}),x),a?r.createElement(Kc,(0,T.Z)({ref:t,visible:m},i,{motionAppear:"show"===l,onVisibleChanged:function(e){y===e&&x()}}),(function(e,t){var n=e.className,o=e.style;return r.createElement("div",{ref:t,className:f()("".concat(v,"-treenode-motion"),n),style:o},a.map((function(e){var t=Object.assign({},(Ol(e.data),e.data)),n=e.title,o=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=tu(o,d);return r.createElement(lu,(0,T.Z)({},t,l,{title:n,active:u,data:e.data,key:o,isStart:i,isEnd:a}))})))})):r.createElement(lu,(0,T.Z)({domRef:t,className:n,style:o},p,{active:u}))}));const uu=cu;function du(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var fu=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],pu={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},hu=function(){},mu="RC_TREE_MOTION_".concat(Math.random()),gu={key:mu},vu={key:mu,level:0,index:0,pos:"0",node:gu,nodes:[gu]},yu={parent:null,children:[],pos:vu.pos,data:gu,title:null,key:mu,isStart:[],isEnd:[]};function bu(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function xu(e){return Xc(e.key,e.pos)}var Eu=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,y=e.itemHeight,b=e.virtual,x=e.scrollWidth,E=e.focusable,C=e.activeItem,w=e.focused,k=e.tabIndex,_=e.onKeyDown,O=e.onFocus,S=e.onBlur,A=e.onActiveChange,M=e.onListChangeStart,P=e.onListChangeEnd,R=Al(e,fu),N=r.useRef(null),I=r.useRef(null);r.useImperativeHandle(t,(function(){return{scrollTo:function(e){N.current.scrollTo(e)},getIndentWidth:function(){return I.current.offsetWidth}}}));var D=Sl(r.useState(i),2),L=D[0],F=D[1],j=Sl(r.useState(o),2),z=j[0],B=j[1],H=Sl(r.useState(o),2),U=H[0],V=H[1],Z=Sl(r.useState([]),2),K=Z[0],q=Z[1],W=Sl(r.useState(null),2),$=W[0],G=W[1],Y=r.useRef(o);function X(){var e=Y.current;B(e),V(e),q([]),G(null),P()}Y.current=o,Rl((function(){F(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(L,i);if(null!==e.key)if(e.add){var t=z.findIndex((function(t){return t.key===e.key})),n=bu(du(z,o,e.key),b,v,y),r=z.slice();r.splice(t+1,0,yu),V(r),q(n),G("show")}else{var a=o.findIndex((function(t){return t.key===e.key})),l=bu(du(o,z,e.key),b,v,y),s=o.slice();s.splice(a+1,0,yu),V(s),q(l),G("hide")}else z!==o&&(B(o),V(o))}),[i,o]),r.useEffect((function(){p||X()}),[p]);var Q=g?U:o,J={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:m,keyEntities:d};return r.createElement(r.Fragment,null,w&&C&&r.createElement("span",{style:pu,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(C)),r.createElement("div",null,r.createElement("input",{style:pu,disabled:!1===E||f,tabIndex:!1!==E?k:null,onKeyDown:_,onFocus:O,onBlur:S,value:"",onChange:hu,"aria-label":"for screen reader"})),r.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},r.createElement("div",{className:"".concat(n,"-indent")},r.createElement("div",{ref:I,className:"".concat(n,"-indent-unit")}))),r.createElement(ec,(0,T.Z)({},R,{data:Q,itemKey:xu,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:N,role:"tree",onVisibleChange:function(e){e.every((function(e){return xu(e)!==mu}))&&X()}}),(function(e){var t=e.pos,n=Object.assign({},(Ol(e.data),e.data)),o=e.title,i=e.key,a=e.isStart,l=e.isEnd,s=Xc(i,t);delete n.key,delete n.children;var c=tu(s,J);return r.createElement(uu,(0,T.Z)({},n,c,{title:o,active:!!C&&i===C.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:g,motionNodes:i===mu?K:null,motionType:$,onMotionStart:M,onMotionEnd:X,treeNodeRequiredProps:J,onMouseMove:function(){A(null)}}))})))}));const Cu=Eu;function wu(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function ku(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function _u(e){return e.split("-")}function Ou(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}($c(t,e).children),n}function Su(e){if(e.parent){var t=_u(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Au(e,t,n,r,o,i,a,l,s,c){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,m=p.height,g=(("rtl"===c?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,v=s.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),y=$c(l,n.eventKey);if(f<h+m/2){var b=a.findIndex((function(e){return e.key===y.key})),x=a[b<=0?0:b-1].key;y=$c(l,x)}var E=y.key,C=y,w=y.key,k=0,_=0;if(!v.includes(E))for(var O=0;O<g&&Su(y);O+=1)y=y.parent,_+=1;var S,A=t.data,M=y.node,P=!0;return S=_u(y.pos),0===Number(S[S.length-1])&&0===y.level&&f<h+m/2&&i({dragNode:A,dropNode:M,dropPosition:-1})&&y.key===n.eventKey?k=-1:(C.children||[]).length&&v.includes(w)?i({dragNode:A,dropNode:M,dropPosition:0})?k=0:P=!1:0===_?g>-1.5?i({dragNode:A,dropNode:M,dropPosition:1})?k=1:P=!1:i({dragNode:A,dropNode:M,dropPosition:0})?k=0:i({dragNode:A,dropNode:M,dropPosition:1})?k=1:P=!1:i({dragNode:A,dropNode:M,dropPosition:1})?k=1:P=!1,{dropPosition:k,dropLevelOffset:_,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:w,dropContainerKey:0===k?null:(null===(u=y.parent)||void 0===u?void 0:u.key)||null,dropAllowed:P}}function Mu(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function Pu(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==D(e))return wl(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Ru(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=$c(t,e);if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach((function(e){r(e)})),Rt(n)}function Tu(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Nu(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Iu(e,t,n,r){var o,i=[];o=r||Nu;var a,l=new Set(e.filter((function(e){var t=!!$c(n,e);return t||i.push(e),t}))),s=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=s.get(r);o||(o=new Set,s.set(r,o)),o.add(t),c=Math.max(c,r)})),wl(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,s=n;s>=0;s-=1)(t.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),s||!n&&!i.has(t)||(s=!0)})),a&&o.add(t.key),s&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Tu(i,o))}}(l,s,c,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||l.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var s=new Set,c=r;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!s.has(e.parent.key))if(o(e.parent.node))s.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)})),r||i.delete(t.key),l&&a.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Tu(a,i))}}(l,t.halfCheckedKeys,s,c,o),a}var Du=function(e){ll(n,e);var t=dl(n);function n(){var e;il(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),nl((0,B.Z)(e),"destroyed",!1),nl((0,B.Z)(e),"delayedDragEnterLogic",void 0),nl((0,B.Z)(e),"loadingRetryTimes",{}),nl((0,B.Z)(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Qc()}),nl((0,B.Z)(e),"dragStartMousePosition",null),nl((0,B.Z)(e),"dragNodeProps",null),nl((0,B.Z)(e),"currentMouseOverDroppableNodeKey",null),nl((0,B.Z)(e),"listRef",r.createRef()),nl((0,B.Z)(e),"onNodeDragStart",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,l=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var s=wu(o,l);e.setState({draggingNodeKey:l,dragChildrenKeys:Ou(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(s),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:nu(n)})})),nl((0,B.Z)(e),"onNodeDragEnter",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,l=r.flattenNodes,s=r.indent,c=e.props,u=c.onDragEnter,d=c.onExpand,f=c.allowDrop,p=c.direction,h=n.pos,m=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==m&&(e.currentMouseOverDroppableNodeKey=m),e.dragNodeProps){var g=Au(t,e.dragNodeProps,n,s,e.dragStartMousePosition,f,l,i,o,p),v=g.dropPosition,y=g.dropLevelOffset,b=g.dropTargetKey,x=g.dropContainerKey,E=g.dropTargetPos,C=g.dropAllowed,w=g.dragOverNodeKey;!a.includes(b)&&C?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[h]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var r=Rt(o),a=$c(i,n.eventKey);a&&(a.children||[]).length&&(r=ku(o,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(r),null==d||d(r,{node:nu(n),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),e.dragNodeProps.eventKey!==b||0!==y?(e.setState({dragOverNodeKey:w,dropPosition:v,dropLevelOffset:y,dropTargetKey:b,dropContainerKey:x,dropTargetPos:E,dropAllowed:C}),null==u||u({event:t,node:nu(n),expandedKeys:o})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),nl((0,B.Z)(e),"onNodeDragOver",(function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,l=r.expandedKeys,s=r.indent,c=e.props,u=c.onDragOver,d=c.allowDrop,f=c.direction;if(e.dragNodeProps){var p=Au(t,e.dragNodeProps,n,s,e.dragStartMousePosition,d,i,a,l,f),h=p.dropPosition,m=p.dropLevelOffset,g=p.dropTargetKey,v=p.dropContainerKey,y=p.dropTargetPos,b=p.dropAllowed,x=p.dragOverNodeKey;!o.includes(g)&&b&&(e.dragNodeProps.eventKey===g&&0===m?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&m===e.state.dropLevelOffset&&g===e.state.dropTargetKey&&v===e.state.dropContainerKey&&y===e.state.dropTargetPos&&b===e.state.dropAllowed&&x===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:m,dropTargetKey:g,dropContainerKey:v,dropTargetPos:y,dropAllowed:b,dragOverNodeKey:x}),null==u||u({event:t,node:nu(n)}))}})),nl((0,B.Z)(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:t,node:nu(n)})})),nl((0,B.Z)(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),nl((0,B.Z)(e),"onNodeDragEnd",(function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:t,node:nu(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),nl((0,B.Z)(e),"onNodeDrop",(function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,s=i.dropTargetKey,c=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var d=ol(ol({},tu(s,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===s,data:$c(e.state.keyEntities,s).node}),f=a.includes(s);wl(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=_u(c),h={event:t,node:nu(d),dragNode:e.dragNodeProps?nu(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};o||null==u||u(h),e.dragNodeProps=null}}})),nl((0,B.Z)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),nl((0,B.Z)(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=i.filter((function(e){return e.key===l}))[0],c=nu(ol(ol({},tu(l,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(a?wu(o,l):ku(o,l)),e.onNodeExpand(t,c)}})),nl((0,B.Z)(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),nl((0,B.Z)(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),nl((0,B.Z)(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,s=l.onSelect,c=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(r=f?c?ku(r,d):[d]:wu(r,d)).map((function(e){var t=$c(i,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:r}),null==s||s(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),nl((0,B.Z)(e),"onNodeCheck",(function(t,n,r){var o,i=e.state,a=i.keyEntities,l=i.checkedKeys,s=i.halfCheckedKeys,c=e.props,u=c.checkStrictly,d=c.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var h=r?ku(l,f):wu(l,f);o={checked:h,halfChecked:wu(s,f)},p.checkedNodes=h.map((function(e){return $c(a,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var m=Iu([].concat(Rt(l),[f]),!0,a),g=m.checkedKeys,v=m.halfCheckedKeys;if(!r){var y=new Set(g);y.delete(f);var b=Iu(Array.from(y),{checked:!1,halfCheckedKeys:v},a);g=b.checkedKeys,v=b.halfCheckedKeys}o=g,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,g.forEach((function(e){var t=$c(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:v})}null==d||d(o,p)})),nl((0,B.Z)(e),"onNodeLoad",(function(t){var n,r=t.key,o=$c(e.state.keyEntities,r);if(null==o||null===(n=o.children)||void 0===n||!n.length){var i=new Promise((function(n,o){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,s=i.loadingKeys,c=void 0===s?[]:s,u=e.props,d=u.loadData,f=u.onLoad;return!d||l.includes(r)||c.includes(r)?null:(d(t).then((function(){var o=ku(e.state.loadedKeys,r);null==f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:wu(e.loadingKeys,r)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:wu(e.loadingKeys,r)}})),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var i=e.state.loadedKeys;wl(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:ku(i,r)}),n()}o(t)})),{loadingKeys:ku(c,r)})}))}));return i.catch((function(){})),i}})),nl((0,B.Z)(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),nl((0,B.Z)(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),nl((0,B.Z)(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),nl((0,B.Z)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)})),nl((0,B.Z)(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)})),nl((0,B.Z)(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),nl((0,B.Z)(e),"setExpandedKeys",(function(t){var n=e.state,r=Jc(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)})),nl((0,B.Z)(e),"onNodeExpand",(function(t,n){var r=e.state.expandedKeys,o=e.state,i=o.listChanging,a=o.fieldNames,l=e.props,s=l.onExpand,c=l.loadData,u=n.expanded,d=n[a.key];if(!i){var f=r.includes(d),p=!u;if(wl(u&&f||!u&&!f,"Expand state not sync with index check"),r=p?ku(r,d):wu(r,d),e.setExpandedKeys(r),null==s||s(r,{node:n,expanded:p,nativeEvent:t.nativeEvent}),p&&c){var h=e.onNodeLoad(n);h&&h.then((function(){var t=Jc(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=wu(e.state.expandedKeys,d);e.setExpandedKeys(t)}))}}})),nl((0,B.Z)(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),nl((0,B.Z)(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),nl((0,B.Z)(e),"onActiveChange",(function(t){var n=e.state.activeKey,r=e.props,o=r.onActiveChange,i=r.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null==o||o(t))})),nl((0,B.Z)(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null})),nl((0,B.Z)(e),"offsetActiveKey",(function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)})),nl((0,B.Z)(e),"onKeyDown",(function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,s=l.onKeyDown,c=l.checkable,u=l.selectable;switch(t.which){case pl.UP:e.offsetActiveKey(-1),t.preventDefault();break;case pl.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,h=nu(ol(ol({},tu(r,f)),{},{data:d.data,active:!0}));switch(t.which){case pl.LEFT:p&&o.includes(r)?e.onNodeExpand({},h):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case pl.RIGHT:p&&!o.includes(r)?e.onNodeExpand({},h):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case pl.ENTER:case pl.SPACE:!c||h.disabled||!1===h.checkable||h.disableCheckbox?c||!u||h.disabled||!1===h.selectable||e.onNodeSelect({},h):e.onNodeCheck({},h,!i.includes(r))}}null==s||s(t)})),nl((0,B.Z)(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?i=!1:(o=!0,a[n]=t[n])})),!o||n&&!i||e.setState(ol(ol({},a),r))}})),nl((0,B.Z)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return j(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,o=t.flattenNodes,i=t.keyEntities,a=t.draggingNodeKey,l=t.activeKey,s=t.dropLevelOffset,c=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,p=t.dragOverNodeKey,h=t.indent,m=this.props,g=m.prefixCls,v=m.className,y=m.style,b=m.showLine,x=m.focusable,E=m.tabIndex,C=void 0===E?0:E,w=m.selectable,k=m.showIcon,_=m.icon,O=m.switcherIcon,S=m.draggable,A=m.checkable,M=m.checkStrictly,P=m.disabled,R=m.motion,N=m.loadData,I=m.filterTreeNode,L=m.height,F=m.itemHeight,j=m.scrollWidth,z=m.virtual,B=m.titleRender,H=m.dropIndicatorRender,U=m.onContextMenu,V=m.onScroll,Z=m.direction,K=m.rootClassName,q=m.rootStyle,W=gl(this.props,{aria:!0,data:!0});S&&(e="object"===D(S)?S:"function"==typeof S?{nodeDraggable:S}:{});var $={prefixCls:g,selectable:w,showIcon:k,icon:_,switcherIcon:O,draggable:e,draggingNodeKey:a,checkable:A,checkStrictly:M,disabled:P,keyEntities:i,dropLevelOffset:s,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:p,indent:h,direction:Z,dropIndicatorRender:H,loadData:N,filterTreeNode:I,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return r.createElement(kl.Provider,{value:$},r.createElement("div",{className:f()(g,v,K,nl(nl(nl({},"".concat(g,"-show-line"),b),"".concat(g,"-focused"),n),"".concat(g,"-active-focused"),null!==l)),style:q},r.createElement(Cu,(0,T.Z)({ref:this.listRef,prefixCls:g,style:y,data:o,disabled:P,selectable:w,checkable:!!A,motion:R,dragging:null!==a,height:L,itemHeight:F,virtual:z,focusable:x,focused:n,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:V,scrollWidth:j},this.getTreeNodeRequiredProps(),W))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=Qc(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(wl(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=function e(t){return Ll(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return wl(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=ol({key:n},Al(r,Gc)),a=e(o);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e.children)),n){o.treeData=n;var l=eu(n,{fieldNames:a});o.keyEntities=ol(nl({},mu,vu),l.keyEntities)}var s,c=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Ru(e.expandedKeys,c):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=ol({},c);delete u[mu];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),o.expandedKeys=d}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Ru(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=Jc(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=f}if(e.selectable&&(i("selectedKeys")?o.selectedKeys=Mu(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=Mu(e.defaultSelectedKeys,e))),e.checkable&&(i("checkedKeys")?s=Pu(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=Pu(e.defaultCheckedKeys)||{}:n&&(s=Pu(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var p=s,h=p.checkedKeys,m=void 0===h?[]:h,g=p.halfCheckedKeys,v=void 0===g?[]:g;if(!e.checkStrictly){var y=Iu(m,!0,c);m=y.checkedKeys,v=y.halfCheckedKeys}o.checkedKeys=m,o.halfCheckedKeys=v}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(r.Component);nl(Du,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return o().createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),nl(Du,"TreeNode",lu);const Lu=Du,Fu=JSON.parse('{"levelLines":"_levelLines_12unh_1","levelLine":"_levelLine_12unh_1","showLine":"_showLine_12unh_17","lastLevelLine":"_lastLevelLine_12unh_28","horizontalLine":"_horizontalLine_12unh_39"}');kr('\n._levelLines_12unh_1 {\n\tposition: absolute;\n\tdisplay: flex;\n\tpadding-left: 0;\n\tcursor: initial;\n\tbottom: 0;\n\ttop: 0;\n\tz-index: 0;\n}\n\n._levelLine_12unh_1 {\n\tpadding-left: var(--reltio-tree-list-indent-size, 16px);\n\theight: 100%;\n\tposition: relative;\n}\n\n._showLine_12unh_17::after {\n\tcontent: "";\n\tposition: absolute;\n\theight: 100%;\n\twidth: 1px;\n\tleft: calc(var(--reltio-tree-list-indent-size, 16px) - 2px);\n\ttop: 0;\n\tbottom: 0;\n\tbackground-color: var(--reltio-tree-list-line-color, rgba(0, 0, 0, 0.08));\n}\n\n._lastLevelLine_12unh_28::after {\n\theight: 50%;\n}\n\n._lastLevelLine_12unh_28 {\n\tpadding-left: calc(\n\t\tvar(--reltio-tree-list-indent-size, 16px) +\n\t\t(var(--reltio-tree-list-toggle-size, 26px) / 2)\n\t);\n}\n\n._horizontalLine_12unh_39::before {\n\tcontent: "";\n\theight: 1px;\n\twidth: 5px;\n\tposition: absolute;\n\ttop: 50%;\n\tleft: calc(var(--reltio-tree-list-indent-size, 16px) - 2px);\n\tbackground-color: var(--reltio-tree-list-line-color, rgba(0, 0, 0, 0.08));\n}\n');const ju=Fu,zu=(0,r.memo)((({needDrawLine:e=!1,isLastLevelLine:t=!1,drawHorizontalLine:n=!1})=>(0,Pn.jsx)("div",{className:_r(ju.levelLine,e&&ju.showLine,t&&ju.lastLevelLine,n&&ju.horizontalLine)}))),Bu=(0,r.memo)((({levelLines:e,isLast:t=!1})=>{const n=e,r=0===n.length,o=n.length+2;return r?null:(0,Pn.jsxs)("div",{className:_r(ju.levelLines),children:[n.map(((e,t)=>(0,Pn.jsx)(zu,{needDrawLine:e},`${t}-${e}`))),(0,Pn.jsx)(zu,{needDrawLine:!0,drawHorizontalLine:!0,isLastLevelLine:t},o)]})}));zu.displayName="LevelLine",Bu.displayName="TreeLevelLines";const Hu=JSON.parse('{"wrapper":"_wrapper_xk2s6_1","indent":"_indent_xk2s6_11","toggle":"_toggle_xk2s6_17","chevron":"_chevron_xk2s6_29","expanded":"_expanded_xk2s6_33","spinner":"_spinner_xk2s6_37","spin":"_spin_xk2s6_37","actions":"_actions_xk2s6_57"}');kr("\n._wrapper_xk2s6_1 {\n\tdisplay: flex;\n\talign-items: center;\n\tline-height: var(--reltio-tree-list-line-height, 1.5);\n\tpadding: var(--reltio-tree-list-row-padding-block, 2px)\n\t\tvar(--reltio-tree-list-row-padding-inline, 4px);\n\tposition: relative;\n\tz-index: 1;\n}\n\n._indent_xk2s6_11 {\n\tdisplay: inline-block;\n\twidth: calc(var(--depth, 1) * var(--reltio-tree-list-indent-size, 16px));\n\tflex: 0 0 auto;\n}\n\n._toggle_xk2s6_17 {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: var(--reltio-tree-list-toggle-size, 26px);\n\theight: var(--reltio-tree-list-toggle-size, 26px);\n\tborder: none;\n\tbackground: none;\n\tcolor: var(--reltio-tree-list-toggle-color, #5f6368);\n\tcursor: pointer;\n}\n\n._chevron_xk2s6_29 {\n\ttransition: transform 0.2s ease;\n}\n\n._expanded_xk2s6_33 {\n\ttransform: rotate(90deg);\n}\n\n._spinner_xk2s6_37 {\n\tdisplay: inline-block;\n\twidth: var(--reltio-tree-list-spinner-size, 10px);\n\theight: var(--reltio-tree-list-spinner-size, 10px);\n\tborder-radius: 50%;\n\tborder: var(--reltio-tree-list-spinner-width, 2px) solid\n\t\tvar(--reltio-tree-list-spinner-color, currentColor);\n\tborder-top-color: transparent;\n\tanimation: _spin_xk2s6_37 0.8s linear infinite;\n}\n\n@keyframes _spin_xk2s6_37 {\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n}\n\n._actions_xk2s6_57 {\n\tmargin-left: auto;\n\topacity: 0;\n\ttransition: opacity 0.12s ease;\n}\n\n._wrapper_xk2s6_1:hover ._actions_xk2s6_57 {\n\topacity: 1;\n}\n");const Uu=Hu,Vu=(0,r.memo)((({id:e,node:t,depth:n,isLeaf:o,isExpanded:i,levelLines:a,isLast:l,onToggle:s,LabelComponent:c})=>{const u=(0,r.useCallback)((n=>{n.stopPropagation(),s(e,i,t)}),[s,e,i,t]);return(0,Pn.jsxs)("div",{className:_r(Uu.wrapper),"data-depth":n,children:[(0,Pn.jsx)(Bu,{levelLines:a,isLast:l}),(0,Pn.jsx)("span",{className:_r(Uu.indent),style:{"--depth":`${n}`}}),o?(0,Pn.jsx)("span",{className:_r(Uu.toggle),"aria-hidden":"true"}):t.isLoading?(0,Pn.jsx)("span",{className:_r(Uu.toggle),"aria-hidden":"true",children:(0,Pn.jsx)("span",{className:_r(Uu.spinner)})}):(0,Pn.jsx)("button",{type:"button",className:_r(Uu.toggle),"aria-label":i?"Collapse":"Expand",onClick:u,children:(0,Pn.jsx)(Nr,{size:"small",className:_r(Uu.chevron,i&&Uu.expanded)})}),c?(0,Pn.jsx)(c,{data:t}):t.label]})}));Vu.displayName="TreeNode";const Zu=(e,t=1,n)=>e.map((e=>({key:e.id,title:null,isLeaf:!e.children,data:{raw:e,depth:t,parentId:n},children:e.children?Zu(e.children,t+1,e.id):void 0}))),Ku=JSON.parse('{"root":"_root_k7z3s_1","rc-tree-treenode":"_rc-tree-treenode_k7z3s_17"}');kr("\n._root_k7z3s_1 {\n\t--reltio-tree-list-font-family: inherit;\n\t--reltio-tree-list-font-size: inherit;\n\t--reltio-tree-list-text-color: inherit;\n\t--reltio-tree-list-background: inherit;\n\t--reltio-tree-list-line-height: inherit;\n\tdisplay: block;\n\toverflow: auto;\n\tfont-family: var(--reltio-tree-list-font-family, system-ui, sans-serif);\n\tfont-size: var(--reltio-tree-list-font-size, 14px);\n\tcolor: var(--reltio-tree-list-text-color, #1a1a1a);\n\tbackground: var(--reltio-tree-list-background, transparent);\n\tborder: none;\n\tborder-radius: var(--reltio-tree-list-border-radius, 0);\n}\n\n._rc-tree-treenode_k7z3s_17 {\n\tlist-style: none;\n}\n");const qu=Ku,Wu=(0,r.memo)((({data:e,LabelComponent:t,expandedKeys:n,onExpand:o})=>{const i=(0,r.useMemo)((()=>e.map((e=>e.id))),[e]),a=void 0!==n,[l,s]=(0,r.useState)((()=>a?new Set:new Set(i))),c=(0,r.useMemo)((()=>Zu(e)),[e]),u=(0,r.useMemo)((()=>(e=>{const t={},n=(e,r=[],o=0)=>{for(let i=0;i<e.length;i++){const a=e[i],l=i===e.length-1;if(t[a.key]=[r,l],a.children?.length){const e=0===o?[...r,!1]:[...r,!l];n(a.children,e,o+1)}}};return n(e),t})(c)),[c]),d=(0,r.useMemo)((()=>a?new Set(n??[]):l),[n,l,a]),f=(0,r.useMemo)((()=>Array.from(d)),[d]),p=(0,r.useCallback)(((e,t)=>{o?.(e,t),a||s(new Set(e))}),[a,o]),h=(0,r.useCallback)(((e,t,n)=>{const r=new Set(d);t?r.delete(e):r.add(e),p(Array.from(r),n)}),[d,p]),m=(0,r.useCallback)((e=>{const n=e.data.raw,r=!!e.isLeaf,o=d.has(e.key),[i,a]=u[e.key]??[[],!1];return(0,Pn.jsx)(Vu,{id:e.key,node:n,depth:e.data.depth,isLeaf:r,isExpanded:o,levelLines:i,isLast:a,onToggle:h,LabelComponent:t})}),[d,u,t,h]);return(0,Pn.jsx)("div",{className:_r(qu.root),children:(0,Pn.jsx)(Lu,{treeData:c,expandAction:!1,virtual:!1,selectable:!1,expandedKeys:f,showIcon:!1,titleRender:m})})}));Wu.displayName="TreeList";var $u=n(7526),Gu=n.n($u),Yu=n(7517),Xu=n.n(Yu),Qu=n(8759),Ju=n.n(Qu),ed=n(3627),td=n.n(ed),nd=n(5743),rd=n.n(nd);const od=({entity:e,avatarClassName:t,imageClassName:n})=>{const r=O(),i=C((e=>e.absoluteImagePath))||"",a=(0,s.getEntityImage)(r,i,e),l=(0,s.getAbsoluteImageUrl)(i,(0,s.getEntityTypeImage)(r,e.type)),c=e=>{e.target.onError=null,e.target.src=(0,s.svg2Url)('\n<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Group</title>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Group" fill-rule="nonzero">\n <rect id="Rectangle" fill="#DFE5E9" x="0" y="0" width="400" height="400"></rect>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n </g>\n </g>\n</svg>\n')};return o().createElement(rd(),{className:f()(t,n),src:a,imgProps:{onError:c}},o().createElement("img",{className:n,src:l,alt:"fallback entity avatar",onError:c}))};var id=n(4073),ad=n.n(id),ld=n(2436),sd=n.n(ld),cd=function(e,t){return cd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},cd(e,t)};"function"==typeof SuppressedError&&SuppressedError;var ud=function(e){return"function"==typeof e},dd=function(){return"undefined"==typeof window},fd=function(e){return e instanceof Element||e instanceof HTMLDocument},pd=function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!dd()){t&&t.current&&(n.targetRef.current=t.current);var o=n.getElement();o&&(n.observableElement&&n.observableElement===o||(n.observableElement=o,n.resizeObserver.observe(o,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(dd())return null;if(t)return document.querySelector(t);if(r&&fd(r))return r;if(n.targetRef&&fd(n.targetRef.current))return n.targetRef.current;var o=(0,Fl.findDOMNode)(n);if(!o)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,o=void 0===r||r,i=t.handleHeight,a=void 0===i||i,l=t.onResize;(o||a)&&e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!dd()&&function(e){var t=e.width,r=e.height;n.state.width===t&&n.state.height===r||n.state.width===t&&!a||n.state.height===r&&!o||(null==l||l(t,r),n.setState({width:t,height:r}))}({width:r,height:i}),n.skipOnMount=!1}))},n.getRenderType=function(){var e=n.props,t=e.render,o=e.children;return ud(t)?"renderProp":ud(o)?"childFunction":(0,r.isValidElement)(o)?"child":Array.isArray(o)?"childArray":"parent"};var o=t.skipOnMount,i=t.refreshMode,a=t.refreshRate,l=void 0===a?1e3:a,s=t.refreshOptions;return n.state={width:void 0,height:void 0},n.sizeRef={current:n.state},n.skipOnMount=o,n.targetRef=(0,r.createRef)(),n.observableElement=null,dd()||(n.resizeHandler=function(e,t,n,r){switch(t){case"debounce":return ad()(e,n,r);case"throttle":return sd()(e,n,r);default:return e}}(n.createResizeHandler,i,l,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}cd(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver(),this.sizeRef.current=this.state},t.prototype.componentWillUnmount=function(){dd()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e=this.props,t=e.render,n=e.children,i=e.nodeType,a=void 0===i?"div":i,l=this.state,s={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return null==t?void 0:t(s);case"childFunction":return null==n?void 0:n(s);case"child":var c=n;if(c.type&&"string"==typeof c.type){var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(s,["targetRef"]);return(0,r.cloneElement)(c,u)}return(0,r.cloneElement)(c,s);case"childArray":return n.map((function(e){return!!e&&(0,r.cloneElement)(e,s)}));default:return o().createElement(a,null)}},t}(r.PureComponent);const hd=qn((e=>({tooltip:e.tooltip,popper:{zIndex:1e4}})));function md(){return md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},md.apply(null,arguments)}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){vd(e,t,n[t])}))}return e}function vd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yd=e=>{let{children:t,value:n="",className:i,showOnExceededWidth:a=!0,showOnExceededHeight:l}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","value","className","showOnExceededWidth","showOnExceededHeight"]);const c=hd(),u=(0,r.useRef)(),[d,f]=(0,r.useState)(!1),p=()=>f(((e,t,n)=>e&&(t&&e.clientWidth<e.scrollWidth||n&&e.clientHeight<e.scrollHeight))(u.current,a,l));return(0,r.useEffect)(p,[l,a,n]),o().createElement(o().Fragment,null,o().createElement(pd,{handleWidth:a,handleHeight:l,onResize:p,refreshMode:"debounce",refreshRate:100}),o().createElement(td(),md({ref:u,title:d?n:"",classes:gd({},c,{tooltip:i})},s),t))},bd={primary:{main:"#0072CE",light:"#0072CE",dark:"#0072CE"},secondary:{main:"#0072CE"},error:{main:"#FF1744"},success:{main:"#3B873E"},background:{paper:"#FFF",default:"#FAFAFA"},action:{hover:"rgba(0,0,0,0.04)",hoverOpacity:.04},text:{primary:"rgba(0,0,0,0.87)",secondary:"rgba(0,0,0,0.54)",disabled:"rgba(0,0,0,0.26)",hint:"rgba(0,0,0,0.38)"},divider:"rgba(0,0,0,0.38)",SnackbarContent:{color:"#FFF",bg:"#121212"}},xd=(bd.primary,bd.secondary,qn({"entityType-overflow":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",marginRight:"12px",borderRadius:"2px",flexShrink:0},"entityType-medium":{padding:"2px 7px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"16px",marginRight:"16px",flexShrink:0}})),Ed=({entity:e,className:t,size:n="small"})=>{const r=xd(),i=O(),a=(0,s.getEntityType)(i,e.type),l=(a?(0,s.getPropWithInheritance)(i,a,"typeColor"):null)||bd.primary.main,c=(0,s.getEntityTypeLabel)(i,e);return o().createElement(yd,{value:c,placement:"top"},o().createElement(Ju(),{style:{backgroundColor:l,color:s.utils.Colors.getColor(l)?"#FFFFFF":"#212121"},className:f()(r[`entityType-${n}`],r["entityType-overflow"],t),component:"div"},c))};var Cd=n(6062),wd=n.n(Cd),kd=n(1552);wd()(kd.Z,{insert:"head",singleton:!1});const _d=kd.Z.locals||{},Od=({entity:e,children:t,className:n,classes:i,renderLabel:a=p.identity})=>{const l=O(),c=C((e=>e.showEntityId)),d=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,s.getEntityId)(e))}),[e]);if((0,p.isNil)(e))return null;const h=(0,s.getLabel)(e.label),m=e.secondaryLabel,g=(0,s.getBusinessCardAttributesText)(l,e),v=(0,s.isActiveObject)(e),y=e.uri,b=(0,s.getEntityId)(e);return o().createElement("div",{className:f()(_d.profileBandWrapper,n),"data-reltio-id":"reltio-profile-band"},o().createElement("div",{className:f()(_d.profileBand,null==i?void 0:i.profileBand,{[_d.inactive]:!v}),"data-entity-uri":y},o().createElement(od,{key:e.uri,entity:e,avatarClassName:_d.profileIcon,imageClassName:_d.imageProfileIcon}),o().createElement("div",{className:_d.profileInfo},o().createElement("div",null,o().createElement(Ju(),{variant:"h6",className:_d.label},a(h)),m&&o().createElement(Ju(),{variant:"subtitle2",className:_d.secondaryLabel},m),g&&o().createElement(Ju(),{variant:"subtitle1",className:_d.businessCard},g)),o().createElement("div",{className:_d.specialInfo},o().createElement("div",{className:_d.entityType},o().createElement(Ed,{entity:e,size:"medium"}),!(0,s.isTempUri)(y)&&c&&o().createElement(td(),{title:u().text("Copy to clipboard")},o().createElement(Ju(),{display:"inline",variant:"body2",className:_d.entityId,onClick:d},u().text("Entity ID"),": ",b))))),t&&o().createElement("div",null,t)))};var Sd=n(2004),Ad=n.n(Sd),Md=n(4179),Pd=n.n(Md),Rd=n(866),Td=n.n(Rd);const Nd=o().createContext({profileBand:{}});Nd.displayName="LabelsContext";const Id=qn((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}})));function Dd(){return Dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dd.apply(null,arguments)}const Ld=e=>{const t=(0,r.forwardRef)(((t,n)=>{let{tooltipTitle:r,tooltipPlacement:i,showForDisabled:a=!1,tooltipClassName:l}=t,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["tooltipTitle","tooltipPlacement","showForDisabled","tooltipClassName"]);const c=Id();return r?o().createElement(td(),{ref:n,title:r,placement:i||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:f()(c.tooltip,l)},PopperProps:{modifiers:[{name:"preventOverflow",options:{altAxis:!0}}]}},(t=>t?o().createElement("span",{ref:n,className:c.wrapper},o().createElement(e,s)):o().createElement(e,Dd({ref:n},s)))(a)):o().createElement(e,Dd({ref:n},s))}));return t.displayName="WithTooltip",t};var Fd=n(9233),jd=n.n(Fd);const zd={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},Bd=qn({rootAll:{padding:"0"},rootXXS:{height:"16px",width:"16px"},iconXXS:{fontSize:"16px"},rootXS:{height:"20px",width:"20px"},iconXS:{fontSize:"20px"},rootS:{height:"24px",width:"24px"},iconS:{fontSize:"24px"},rootM:{height:"30px",width:"30px"},rootMPlus:{height:"36px",width:"36px"},rootL:{height:"40px",width:"40px"},rootXL:{height:"48px",width:"48px"},disabled:{fillOpacity:.5}});function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hd.apply(null,arguments)}function Ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Vd(e,t,n[t])}))}return e}function Vd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zd=(0,r.forwardRef)(((e,t)=>{const{className:n,onClick:r,icon:i,size:a=zd.XS,iconClassName:l,classes:s={}}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","onClick","icon","size","iconClassName","classes"]),u=Bd();return o().createElement(jd(),Hd({ref:t,classes:Ud({root:`${u[`root${a}`]} ${u.rootAll}`,disabled:u.disabled},s),onClick:r,className:n},c,{size:"large"}),i&&o().createElement(i,{classes:{root:u[`icon${a}`]},className:l}))}));Zd.displayName="SmallIconButton";const Kd=Ld(Zd),qd=qn({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),Wd=Ld(Ad()),$d=({className:e,total:t=0,onPrev:n,onNext:i,onSearchResultsClick:a,isPrevDisabled:l,isNextDisabled:c})=>{var d;const h=qd(),m=(0,r.useContext)(Nd),{OPEN_RESULTS:g,SEARCH_RESULT:v,SEARCH_RESULTS:y,NEXT_PROFILE:b,PREVIOUS_PROFILE:x}=(0,p.mergeRight)({OPEN_RESULTS:u().text("Go to search results"),SEARCH_RESULT:u().text("Search result"),SEARCH_RESULTS:u().text("Search results"),PREVIOUS_PROFILE:u().text("Go to previous profile"),NEXT_PROFILE:u().text("Go to next profile")},null!==(d=null==m?void 0:m.profileBand)&&void 0!==d?d:{});return o().createElement("div",{className:f()(h.container,e)},o().createElement(Wd,{className:h.link,component:"button",variant:"caption",onClick:a,underline:"none",tooltipTitle:g},(0,s.formatNumberAsMetric)(t,1e6)," ",1===t?v:y),o().createElement(Kd,{size:"L",icon:Pd(),"data-reltio-id":"reltio-previous-profile-button",tooltipTitle:x,onClick:n,disabled:l,showForDisabled:!0}),o().createElement(Kd,{size:"L",icon:Td(),"data-reltio-id":"reltio-next-profile-button",tooltipTitle:b,onClick:i,disabled:c,showForDisabled:!0}))},Gd=(0,r.createContext)(null);Gd.displayName="ActionsHookContext";const Yd=o().createContext({isLoading:!1,isEmptyState:!1,updateEntityLoadingState:p.identity,updateEntitiesNavigationLoadingState:p.identity,resetLoadingState:p.identity}),Xd=new Promise((()=>{})),Qd=({cancelPrevious:e=!0,cancelOnUnmount:t=!0}={})=>{const n=(0,r.useRef)(p.identity),o=()=>n.current();return(0,r.useEffect)((()=>()=>{t&&o()}),[]),(0,r.useCallback)((t=>(e&&o(),new Promise(((e,r)=>{n.current=()=>r("canceled"),t.then(e,r)})).catch((function(e){if("canceled"===e)return Xd;throw e})))),[])};function Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){ef(e,t,n[t])}))}return e}function ef(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class tf{constructor({data:{query:e,sortField:t,sortOrder:n},tenant:r,searchTenant:o,apiPath:i,dtssPath:a,globalSearchRequestOptions:l}){this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=(e=[],t={})=>{const n=[this.getQueryFilter(),...e],r=Jd({},this.globalSearchRequestOptions,{sort:this.sortField,order:this.sortOrder,select:"uri,label,type",scoreEnabled:!1},t);return this.isDT()?(0,s.getFilteredEntitiesFromDataTenant)({filters:n,options:r,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,s.getFilteredEntities)({filters:n,options:r})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,s.getTotalFromDataTenant)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,s.getTotals)({filters:e,options:t})).then((e=>e.total))},this.query=e,this.sortField=t,this.sortOrder=n,this.tenant=r,this.searchTenant=o,this.apiPath=i,this.dtssPath=a,this.globalSearchRequestOptions=l}}class nf{constructor({data:e,tenant:t,apiPath:n}){this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=(e=[],t={})=>{const n=[{rawFilter:this.searchBody.filter},...e];return(0,s.getGraphSearchEntities)({apiPath:this.apiPath,tenant:this.tenant,searchBody:Jd({},this.searchBody,{filter:e.length?(0,s.buildFilterQueryString)()(n):this.searchBody.filter}),options:t})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,s.getEntityId)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,s.getGraphSearchCount)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=e,this.tenant=t,this.apiPath=n}}const rf=(e,t)=>(0,p.pipe)((0,p.map)((0,p.prop)("uri")),(0,p.reject)((e=>t.includes(e))))(e),of=()=>{const e=Qd(),t=Qd(),n=Qd(),o=(w="searchNavigationListener",v(E,(e=>e[w]))),i=P("updateSearchNavigationDataFields"),a=P("openEntity"),l=P("openPerspective"),{uri:c,index:u,total:d,tenant:f,cache:p}=M()||{},{type:h,data:m}=C((e=>e.searchProviderData))||{},g=A(),y=C((e=>e.apiPath)),b=C((e=>e.dtssPath)),x=(k=["ovOnly"],C((e=>(0,s.getGlobalSearchRequestOptions)({activityFilter:e.activityFilter,globalFilter:e.globalFilter,searchOptions:e.searchOptions},k))));var w,k;const{updateEntitiesNavigationLoadingState:_}=(0,r.useContext)(Yd),[O,S]=(0,r.useState)(!1),R=(0,r.useMemo)((()=>((e,t)=>{switch(e){case"search":return new tf(t);case"graphsearch":return new nf(t)}})(h,{data:m,tenant:g,searchTenant:f,apiPath:y,dtssPath:b,globalSearchRequestOptions:x})),[h,m,g,f,y,b,x]),T=(0,r.useCallback)((e=>{i(e)}),[i]),N=(0,r.useCallback)((e=>{const t=g!==f?(0,s.getEntityUriForLink)({uri:e,dataTenant:f}):e;a({uri:t,source:"navigation"})}),[a,g,f]),I=(0,r.useCallback)((()=>{l(h)}),[l,h]);(0,r.useEffect)((()=>{0!==d&&u>=d?T({index:d-1}):u<0&&T({index:0})}),[d,u,T]);const D=(()=>{const e=(0,r.useContext)(Gd);if(!e)throw new Error("ActionsHookContext must be provided");return e})();(0,r.useEffect)((()=>{const e=D(o);return()=>e()}),[D,T,o]);const L=(0,r.useCallback)(((e,r,o)=>{S(!0),t(R.requestTotal()).then((e=>T({total:e}))).catch((e=>{console.warn("Failed to load total count of entities",e)}));const i=o+1;return n(R.requestEntities(15,i)).then((t=>{if(t){if(t.length){const n=rf(t,e);if(n.length>0)return T({cache:e.concat(n),uri:n[0],index:i+t.length-n.length}),void N(n[0]);if(o+t.length<r-1)return L(e,r-t.length,o+t.length)}T({index:i})}})).finally((()=>{S(!1)}))}),[R,T,N]),F=(0,r.useCallback)(((e,r)=>{S(!0),t(R.requestTotal()).then((e=>T({total:e}))).catch((e=>{console.warn("Failed to load total count of entities",e)}));const o=r-1,i=Math.max(0,r-15),a=15+Math.min(0,r-15);return n(R.requestEntities(a,i)).then((t=>{if(t){if(t.length){const n=rf(t,e);if(n.length>0)return T({cache:n.concat(e),uri:n[n.length-1],index:o-(t.length-n.length)}),void N(n[n.length-1]);if(r-t.length>0)return F(e,r-t.length)}T({index:0})}})).finally((()=>{S(!1)}))}),[R,T,N]),j=(0,r.useCallback)(((t,n,r,o)=>{if(n<t.length){const i=t[n];return S(!0),e(R.checkEntity(i)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),j(e,n,r-1,o)}T({index:o+1,uri:i,cache:t,total:r}),N(i)})).finally((()=>{S(!1)}))}return o>=r-1?(T({cache:t,total:r,index:r-1}),Promise.resolve()):L(t,r,o)}),[R,T,N,L]),z=(0,r.useCallback)(((t,n,r,o)=>{if(n>-1){const i=t[n];return S(!0),e(R.checkEntity(i)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),z(e,n-1,r-1,o-1)}T({index:o-1,uri:i,cache:t,total:r}),N(i)})).finally((()=>{S(!1)}))}return o<=0?(T({index:0,cache:t,total:r}),Promise.resolve()):F(t,o)}),[R,T,N,F]),B=(0,r.useCallback)((()=>{if(p&&c){const e=p.indexOf(c)-1;z(p,e,d,u).catch((e=>{console.warn("Can't load previous page of search",e)}))}}),[z,p,c,d,u]),H=(0,r.useCallback)((()=>{if(p&&c){const e=p.indexOf(c)+1;j(p,e,d,u).catch((e=>{console.warn("Can't load next page of search",e)}))}}),[j,p,c,d,u]);return(0,r.useEffect)((()=>{_(O)}),[_,O]),(0,r.useEffect)((()=>()=>_(!1)),[]),{total:d,onPrev:B,onNext:H,onSearchResultsClick:I,isPrevDisabled:O||u<=0,isNextDisabled:O||u>=d-1}},af=({className:e})=>{const{total:t,onPrev:n,onNext:r,onSearchResultsClick:i,isPrevDisabled:a,isNextDisabled:l}=of();return(()=>{const{cache:e}=M()||{},t=C((e=>e.mode)),n=k();return(0,s.isViewMode)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?o().createElement($d,{className:e,total:t,onPrev:n,onNext:r,onSearchResultsClick:i,isPrevDisabled:a,isNextDisabled:l}):null},lf=(e,t)=>{const n=(0,r.useRef)(!1);(0,r.useEffect)((()=>{n.current?e():n.current=!0}),t)},sf=o().createContext([]);function cf(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}sf.displayName="RelatedObjectUrisContext";const uf=function(e,t){var n;void 0===t&&(t=cf);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(((e,t)=>(0,s.getAllUsersForTenant)({tenant:e,servicesPath:t}))),df=o().createContext([]);df.displayName="UsersContext";const ff={comments:[],commentsMap:null,currentComment:null,updateCommentState:p.identity,clearCommentState:p.identity,getCommentState:()=>({}),getComment:p.identity,getComments:()=>new Promise(p.identity),getCommentsCount:p.identity,createComment:()=>new Promise(p.identity),editComment:()=>new Promise(p.identity),createReply:()=>new Promise(p.identity),resolveThread:p.identity,reOpenThread:p.identity,clearCurrentComment:p.identity,deleteComment:p.identity,sending:!1,loading:!1,pageToken:null,deleteReply:p.identity,editReply:()=>new Promise(p.identity),totalCommentsCount:null},pf=o().createContext(ff);pf.displayName="CollaborationContext";const hf=({collaboration:e,children:t})=>{const n=(()=>{const[e,t]=(0,r.useState)([]),n=A(),o=C((e=>e.servicesPath)),i=e=>{console.warn("Users error",e),t([])};return(0,r.useEffect)((()=>{uf(n,o).then((e=>t(e))).catch(i)}),[n,o]),e})();return o().createElement(pf.Provider,{value:e},o().createElement(df.Provider,{value:n},t))};function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mf.apply(null,arguments)}const gf=e=>o().createElement("svg",mf({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgCommentBubble"},e),o().createElement("path",{d:"M2.8 1h14.4c.99 0 1.8.81 1.8 1.8v10.8c0 .99-.81 1.8-1.8 1.8H4.6L1 19V2.8C1 1.81 1.81 1 2.8 1z"})),vf=qn((()=>({root:{position:"relative",height:"18px",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"4px",cursor:"pointer"},icon:{"&:hover":{fillOpacity:.7}}})));function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yf.apply(null,arguments)}const bf=o().forwardRef(((e,t)=>{let{children:n,tooltipTitle:r,icon:i,onClick:a,className:l}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","tooltipTitle","icon","onClick","className"]);const c=vf();return o().createElement(td(),{title:r},o().createElement("div",yf({ref:t,className:f()(c.root,l),onClick:a},s),o().createElement(i,{className:c.icon}),n))}));bf.displayName="BasicCommentButton";const xf=qn({childrenWrapper:{position:"absolute",width:"100%",height:"100%",lineHeight:"15px",display:"flex",alignItems:"center",justifyContent:"center",top:"-2px",left:0,right:0,bottom:0,color:"white",fontSize:"10px",pointerEvents:"none"}}),Ef=o().forwardRef((({children:e,onClick:t},n)=>{const r=xf();return o().createElement(bf,{ref:n,tooltipTitle:u().text("Show comment"),icon:gf,onClick:t,"data-reltio-id":"reltio-comment-button"},o().createElement("div",{className:r.childrenWrapper},e))}));function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cf.apply(null,arguments)}Ef.displayName="CommentButton";const wf=e=>o().createElement("svg",Cf({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgAddComment"},e),o().createElement("path",{d:"M2.8 14.653L3.853 13.6H17.2V2.8H2.8v11.853zM17.2 1c.99 0 1.8.81 1.8 1.8v10.8c0 .99-.81 1.8-1.8 1.8H4.6L1 19V2.8C1 1.81 1.81 1 2.8 1h14.4zm-6.3 3.6H9.1v2.699L6.4 7.3v1.8l2.7-.001V11.8h1.8V9.099l2.7.001V7.3l-2.7-.001V4.6z"})),kf=({className:e,onClick:t})=>o().createElement(bf,{className:e,onClick:t,tooltipTitle:u().text("Add comment"),icon:wf});var _f=n(1574),Of=n.n(_f),Sf=n(9272),Af=n.n(Sf),Mf=n(4436),Pf=n.n(Mf),Rf=n(4511),Tf=n.n(Rf),Nf=n(5788),If=n.n(Nf);const Df=({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:o,rafIdRef:i,lastResizeTimestamp:a=0})=>{if(e){if(Date.now()-a>100&&r.current&&t.current&&n.current&&o.current){const i=e.getBoundingClientRect();r.current.style.top="0",r.current.style.left="0",r.current.style.right="0",r.current.style.height=i.top+"px",t.current.style.top="0",t.current.style.left="0",t.current.style.width=i.left+"px",t.current.style.bottom="0",n.current.style.top="0",n.current.style.left=i.right+"px",n.current.style.right="0",n.current.style.bottom="0",o.current.style.top=i.bottom+"px",o.current.style.left="0",o.current.style.right="0",o.current.style.bottom="0",a=Date.now()}i.current=requestAnimationFrame((()=>Df({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:o,rafIdRef:i,lastResizeTimestamp:a})))}},Lf=qn({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}});function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ff.apply(null,arguments)}const jf=(0,r.forwardRef)(((e,t)=>{var n;let{open:i,anchorEl:a,className:l,modal:s=!0,excludeAnchorFromBackdrop:c=!0,onClose:u=p.identity}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["open","anchorEl","className","modal","excludeAnchorFromBackdrop","onClose"]);const h=Lf(),g=(0,r.useRef)(),v=(0,r.useRef)(),y=(0,r.useRef)(),b=(0,r.useRef)(),x=(0,r.useRef)(),E=tt();return(0,r.useEffect)((()=>{if(i&&s)return Df({anchorEl:a,leftBackdropRef:g,rightBackdropRef:v,topBackdropRef:y,bottomBackdropRef:b,rafIdRef:x}),()=>cancelAnimationFrame(x.current)}),[a,i,s]),o().createElement(o().Fragment,null,s&&i&&o().createElement(m(),{container:document.body},c?o().createElement(o().Fragment,null,o().createElement("div",{ref:y,className:h.backdrop,onClick:u}),o().createElement("div",{ref:v,className:h.backdrop,onClick:u}),o().createElement("div",{ref:b,className:h.backdrop,onClick:u}),o().createElement("div",{ref:g,className:h.backdrop,onClick:u})):o().createElement("div",{className:h.backdrop,onClick:u})),o().createElement(If(),Ff({"data-mui-color-scheme":null==E||null===(n=E.palette)||void 0===n?void 0:n.mode,open:i,anchorEl:a},d,{className:f()(l,h.popper),ref:t})))}));jf.displayName="Popper";const zf=qn((e=>{const t=e.palette.background.paper;return{paper:{backgroundColor:t,maxWidth:1e3},popper:{'&[data-popper-placement*="bottom"] $arrow':{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},'&[data-popper-placement*="top"] $arrow':{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},'&[data-popper-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},'&[data-popper-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t,"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",boxShadow:e.shadows[1],backgroundColor:"currentColor",transform:"rotate(45deg)"}}}}));function Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bf.apply(null,arguments)}const Hf=e=>{let{children:t,className:n,classes:i,transition:a}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className","classes","transition"]);const s=zf(),c=a?Tf():o().Fragment,[u,d]=(0,r.useState)(null);return o().createElement(jf,Bf({className:f()(s.popper,n),modifiers:[{name:"preventOverflow",enabled:!0,options:{rootBoundary:"viewport",padding:14,altAxis:!0}},{name:"arrow",enabled:!0,options:{element:u,padding:4}}],transition:a,excludeAnchorFromBackdrop:!1},l),(({TransitionProps:e})=>o().createElement(c,e,o().createElement(Pf(),{className:f()(s.paper,null==i?void 0:i.root)},o().createElement("span",{className:f()(s.arrow,null==i?void 0:i.arrow),ref:d}),t))))};var Uf=n(8515),Vf=n.n(Uf),Zf=n(3526),Kf=n.n(Zf),qf=n(2811),Wf=n.n(qf),$f=n(3222),Gf=n.n($f);const Yf=qn((e=>({menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),Xf=Ld(Gf()),Qf=(0,r.forwardRef)((({item:e,onMenuClose:t=p.identity},n)=>{const r=Yf(),{disabled:i,text:a,tooltip:l,onClick:s,id:c="",selectable:u,selected:d}=e;return o().createElement(Xf,{tooltipTitle:l,showForDisabled:!0,classes:{root:r.menuItem},onClick:e=>{t(e),s(e)},disabled:i,ref:n,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${c}`},u&&o().createElement(Wf(),{checked:d,color:"primary"}),o().createElement(Ju(),{classes:{root:r.menuText}},a))}));Qf.displayName="DefaultMenuItemRenderer";const Jf=qn((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,vr.alpha)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,vr.alpha)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"}})));function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ep.apply(null,arguments)}function tp({className:e,menuId:t,buttonComponent:n=or(),buttonContent:i,menuItems:a=[],buttonProps:l={},popoverProps:s={},onMenuOpen:c=p.identity,onMenuClose:u=p.identity,MenuItemRenderer:d=Qf}){const h=n,m=Jf(),g=(0,r.useRef)(),[v,y]=(0,r.useState)(!1);lf((()=>{v?c():u()}),[v]);const b=(0,r.useCallback)((e=>{null==e||e.stopPropagation(),y((e=>!e))}),[]);return o().createElement(o().Fragment,null,o().createElement(h,ep({"data-reltio-id":"drop-down-menu-button",ref:g,className:f()(m.buttonRoot,{[m.selected]:v},e),onClick:b,"aria-pressed":v,"aria-controls":v?t:void 0,"aria-haspopup":"true"},l),i),o().createElement(Kf(),ep({id:t,variant:"menu",open:v,autoFocus:!1,classes:{paper:m.paper},anchorEl:g.current,onClose:b,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,MenuListProps:{autoFocusItem:v}},s),a.map(((e,t)=>o().createElement(d,{item:e,key:t,onMenuClose:b})))))}const np=(e,t)=>{(0,r.useEffect)((()=>{if(t){var n,r,o,i;const t=null===(n=e.current)||void 0===n||null===(r=n.value)||void 0===r?void 0:r.length;null===(o=e.current)||void 0===o||o.focus(),null===(i=e.current)||void 0===i||i.setSelectionRange(t,t)}}),[e,t])},rp=(e,t)=>{const n=e.relatedObjectUris.indexOf(t);if(n>=0)return e.relatedObjectUris[1-n]},op=e=>`${u().date(e,"LT")} ${u().date(e,"LL")}`,ip=e=>`comment/${e.commentId}`,ap=(e,t)=>`comment/${e.commentId}/reply/${t.replyId}`,lp=(e,t)=>{let n=e;for(const e of t)n=n.split(`+${e}`).join(`@[${e}](${e})`);return n},sp=o().createContext({});sp.displayName="EntitiesMapContext";const cp=o().createContext({generateEntityUrl:s.generateEntityUrlForOldMode,generatePivotingUrl:s.generatePivotingUrlForOldMode,generateTagUrl:s.generateTagUrlForOldMode,generateSegmentUrl:s.generateSegmentUrl});cp.displayName="UrlGeneratorsContext";const up=e=>e.ctrlKey||e.metaKey;function dp(){return dp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dp.apply(null,arguments)}const fp=(0,r.forwardRef)(((e,t)=>{let{value:n,children:i,screen:a,className:l,shouldOpenInNewTab:s=!1}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","children","screen","className","shouldOpenInNewTab"]);const{generateEntityUrl:u}=(0,r.useContext)(cp),d=w(),f=P("openEntity"),p=(0,r.useCallback)((e=>{up(e)||(f({uri:n,screen:a}),e.preventDefault()),e.stopPropagation()}),[f,a,n]);return n?o().createElement("a",dp({ref:t,href:u({uiPath:d,uri:n,screen:a}),onClick:s?void 0:p,target:s?"_blank":"_self",rel:"noreferrer",className:l},c),i):o().createElement("span",dp({className:l},c),i)}));fp.displayName="EntityUriLink";const pp=qn((e=>({title:{marginBottom:"10px",color:e.palette.divider,fontSize:"12px",lineHeight:"14px"},label:{paddingLeft:"9px",borderLeft:"1px solid #D8D8D8",fontSize:"13px",color:e.palette.text.primary,lineHeight:"15px"},link:{color:e.palette.primary.main,textDecoration:"none",whiteSpace:"break-spaces"}})));function hp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mp=({comment:e,className:t})=>{const n=pp(),i=(0,r.useContext)(sp),a=O(),l=k();return o().createElement(Of(),{className:t},(()=>{switch(e.objectType){case s.CollaborationObjectTypes.ENTITY_ATTRIBUTE:{const t=(0,s.getAttributeTypeUriByValueUri)(e.objectId,l.type),r=(0,s.findAttributeTypeByUri)(a,t);return o().createElement(o().Fragment,null,o().createElement(Ju(),{className:n.title},u().text("Selected attribute:")),o().createElement(Ju(),{className:n.label},null==r?void 0:r.label))}case s.CollaborationObjectTypes.RELATION_ATTRIBUTE:{const t=e.relatedObjectUris.find((0,p.startsWith)("configuration/relationTypes")),r=t&&(0,s.getAttributeTypeUriByValueUri)(e.objectId,t),i=r&&(0,s.findAttributeTypeByUri)(a,r);return o().createElement(o().Fragment,null,o().createElement(Ju(),{className:n.title},u().text("Selected attribute:")),o().createElement(Ju(),{className:n.label},null==i?void 0:i.label))}case s.CollaborationObjectTypes.ENTITY:return o().createElement(o().Fragment,null,o().createElement(Ju(),{className:n.title},u().text("Selected profile:")),o().createElement(fp,{className:f()(n.label,n.link),value:(0,s.getEntityUriForLink)(l)},(0,s.getLabel)(l.label)));case s.CollaborationObjectTypes.RELATION:{const t=rp(e,l.uri),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){hp(e,t,n[t])}))}return e}({},i[t]||{},{uri:t});return o().createElement(o().Fragment,null,o().createElement(Ju(),{className:n.title},u().text("Selected relation:")),o().createElement(Ju(),{className:n.label},o().createElement(fp,{className:n.link,value:(0,s.getEntityUriForLink)(l)},(0,s.getLabel)(l.label)),t&&o().createElement(o().Fragment,null,` ${u().text("to")} `,o().createElement(fp,{className:n.link,value:(0,s.getEntityUriForLink)(r)},r.label?(0,s.getLabel)(r.label):(0,s.getEntityId)(r)))))}case s.CollaborationObjectTypes.POTENTIAL_MATCH:{var t;const r=rp(e,l.uri),a={uri:r,label:null===(t=i[r])||void 0===t?void 0:t.label};return o().createElement(o().Fragment,null,o().createElement(Ju(),{className:n.title},u().text("Selected potential match:")),o().createElement(Ju(),{className:n.label},o().createElement(fp,{className:n.link,value:(0,s.getEntityUriForLink)(l)},(0,s.getLabel)(l.label)),r&&o().createElement(o().Fragment,null,` ${u().text("and")} `,o().createElement(fp,{className:n.link,value:(0,s.getEntityUriForLink)(a)},a.label?(0,s.getLabel)(a.label):(0,s.getEntityId)(a)))))}default:return null}})())},gp=qn((e=>({root:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",wordBreak:"break-word"}}))),vp=({comment:e,className:t})=>{const n=gp(),i=(0,r.useContext)(df);return o().createElement(Ju(),{className:f()(n.root,t)},((e,t,n=e=>e,r="+")=>{const o=[];let i="",a=!1;for(let l=0;l<=e.length;l++){const s=e[l],c=e[l+1],u=l===e.length-1;i+=s,s===r&&0===l&&(a=!0),a&&t.includes(i.slice(r.length))&&(a=!1,o.push(n(i)),i=""),c===r&&(a=!0,o.push(i),i=""),u&&o.push(i)}return o})(e.content,e.namedUsers,(e=>{const t=i.find((t=>t.username===e.slice(1)));return t?o().createElement(Ad(),{href:`mailto:${t.email}`,underline:"hover"},e):e})).map(((e,t)=>o().createElement(r.Fragment,{key:t},e))))},yp=qn((e=>({root:{width:"32px",height:"32px",fontSize:"12px",color:e.palette.text.secondary,backgroundColor:"rgba(144, 164, 174, 0.2)"}})));function bp(){return bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bp.apply(null,arguments)}const xp=e=>{let{className:t,children:n}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","children"]);const i=yp();return o().createElement(rd(),bp({},r,{className:f()(i.root,t)}),n.split(".").map((e=>e[0].toUpperCase())).join(""))};var Ep=n(7677),Cp=n.n(Ep),wp=function(e){return e===Object(e)?Object.keys(e):[]},kp=function(e){return e===Object(e)?Object.values(e):[]};function _p(e,t){var n=Object.assign({},e);return Ap(e)&&Ap(t)&&wp(t).forEach((function(r){Ap(t[r])&&r in e?n[r]=_p(e[r],t[r]):Object.assign(n,nl({},r,t[r]))})),n}var Op=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return _p(e,t)}),e)},Sp=function(e,t){var n=Object.assign({},e);if(t)for(var r=0;r<t.length;r++)delete n[t[r]];return n},Ap=function(e){return!(e!==Object(e)||e instanceof Date||Array.isArray(e))},Mp=function(e){return"&"===e[0]},Pp=function(e){return!Mp(e)},Rp=function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},Tp=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=wp(e),r={},o=0,i=n.length;o<i;o+=1){var a=n[o];("[object Object]"!==Object.prototype.toString.call(e[a])||":"===a[0]||"@"===a[0]||t.indexOf(a)>=0)&&(r[a]=e[a])}return r},Np=function(e,t){for(var n=t.map(Rp),r=wp(e),o={},i=0,a=r.length;i<a;i+=1){var l=r[i];(t.indexOf(l)>=0||n.indexOf(Rp(l))>=0)&&(o[l]=e[l])}return o},Ip=function e(t,n){for(var r=Op.apply(void 0,[{},Sp(t,n)].concat(Rt(kp(Np(t,n))))),o=wp(r).filter(Mp),i=0,a=o.length;i<a;i+=1){var l=o[i],s=e(r[l],n);n.indexOf(l)>=0?(delete r[l],r=Op({},r,s)):r[l]=s}return r};function Dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dp(Object(n),!0).forEach((function(t){nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fp=["animationName"];const jp=function(e){var t=e.style,n=e.className;return Lp(Lp({},t?{style:Tp(t,Fp)}:{}),n?{className:n}:{})};var zp=(0,r.createContext)(jp);zp.Provider;const Bp=function(e){if(!e)return[];if("string"==typeof e)return[e];if(!Array.isArray(e)){var t=e;return wp(e).reduce((function(e,n){return e.concat(t[n]?[n]:[])}),[])}return e};var Hp={};function Up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Up(Object(n),!0).forEach((function(t){nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Zp=function e(t){var n=t.style,r=t.className,o=t.classNames,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jp,a=r||function(e){var t=e&&wp(e)[0];return t&&t.split("__")[0].split("--")[0]}(o)||(null==n?void 0:n.className),l="function"==typeof n?n:function(e){return function(t,n){var r,o=n||Hp;e.memoize=e.memoize||new WeakMap,e.memoize.has(o)?r=e.memoize.get(o):(r={},e.memoize.set(o,r));var i=Bp(t).join(" ");return i in r?r[i]:r[i]=e(t||[],n)}}((function(t,r){var l=Bp(t);Cp()(Array.isArray(l),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),Cp()(!r||Ap(r),"Optional second parameter must be a plain object.");var s=l.filter(Mp),c=l.filter(Pp),u=c.length>0?function(e){return kp(Np(e,c))}:function(e){return[e]},d=function(){return u(Ip(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s))},f=function(e,t,n){if(e){var r=e.split(" ")[0],o=[].concat(Rt(0===t.length?n.map((function(e){return"".concat(r,"--").concat(e.substring(1))})):[]),Rt(t.map((function(e){return"".concat(r,"__").concat(e)}))));return 0===t.length?[e].concat(Rt(o)):o}}(a,c,s);return e(Vp(Vp(Vp({},(n||r)&&{style:Op.apply(void 0,[{}].concat(Rt(d(r)),Rt(d(n))))}),f&&{className:f.join(" ")}),o&&{classNames:o}),i)})),s=Vp({},"function"==typeof n?n:{style:n}),c=Rt(new Set([].concat(Rt(s.className?s.className.split(" "):[]),Rt(a?a.split(" "):[])))),u=o?(c.map((function(e){return o[e]}))||[]).filter(Boolean):c,d=i(Vp(Vp({},s),u.length>0?{className:u.join(" ")}:{}));return Object.assign(l,d),l},Kp=function(e,t,n){var o=t.style,i=t.className,a=t.classNames,l=(0,r.useContext)(zp);return(0,r.useMemo)((function(){return Zp({style:o,className:i,classNames:a},l)}),[o,i,a,l])(n,e)};function qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qp(Object(n),!0).forEach((function(t){nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $p=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},Gp="__id__",Yp="__display__",Xp=function(e,t){Cp()("id"===t||"display"===t,'Second arg must be either "id" or "display", got: "'.concat(t,'"'));var n=e.indexOf(Yp),r=e.indexOf(Gp);return n<0&&(n=null),r<0&&(r=null),Cp()(null!==n||null!==r,"The markup '".concat(e,"' does not contain either of the placeholders '__id__' or '__display__'")),null!==n&&null!==r?"id"===t&&r<=n||"display"===t&&n<=r?0:1:0},Qp=function(e){var t=0;return e.indexOf("__id__")>=0&&t++,e.indexOf("__display__")>=0&&t++,t},Jp=function(){},eh=function(e,t,n){for(var r,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Jp,l=(r=t.map((function(e){return e.regex})),o=/^\/(.+)\/(\w+)?$/,new RegExp(r.map((function(e){var t=Sl(o.exec(e.toString()),3),n=t[1],r=t[2];return Cp()(!r,"RegExp flags are not supported. Change /".concat(n,"/").concat(r," into /").concat(n,"/")),"(".concat(n,")")})).join("|"),"g")),s=2,c=t.map((function(e){var t=e.markup,n=s;return s+=Qp(t)+1,n})),u=0,d=0;null!==(i=l.exec(e));){var f=c.find((function(e){return!!i[e]})),p=c.indexOf(f),h=t[p],m=h.markup,g=h.displayTransform,v=f+Xp(m,"id"),y=f+Xp(m,"display"),b=i[v],x=g(b,i[y]),E=e.substring(u,i.index);a(E,u,d),d+=E.length,n(i[0],i.index,d,b,x,p,u),d+=x.length,u=l.lastIndex}u<e.length&&a(e.substring(u),u,d)},th=function(e,t){var n="";return eh(e,t,(function(e,t,r,o,i){n+=i}),(function(e){n+=e})),n},nh=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";return"number"!=typeof n?n:(eh(e,t,(function(e,t,i,a,l,s,c){void 0===r&&i+l.length>n&&(r="NULL"===o?null:t+("END"===o?e.length:0))}),(function(e,t,o){void 0===r&&o+e.length>=n&&(r=t+n-o)})),void 0===r?e.length:r)},rh=function(e,t,n,r){return e.substring(0,t)+r+e.substring(n)},oh=function(e,t){var n=[];return eh(e,t,(function(e,t,r,o,i,a,l){n.push({id:o,display:i,childIndex:a,index:t,plainTextIndex:r})})),n},ih=function(e,t){return"".concat(e,"-").concat(t)},ah=function(e){return Object.values(e).reduce((function(e,t){return e+t.results.length}),0)},lh=function(e){var t=$p(e),n=e[e.indexOf(Yp)+11],r=e[e.indexOf(Gp)+6];return new RegExp(t.replace(Yp,"([^".concat($p(n||""),"]+?)")).replace(Gp,"([^".concat($p(r||""),"]+?)")))},sh=function(e){return r.Children.toArray(e).map((function(e){var t=e.props,n=t.markup,r=t.regex,o=t.displayTransform;return{markup:n,regex:r?ch(r,n):lh(n),displayTransform:o||function(e,t){return t||e}}}))},ch=function(e,t){var n=new RegExp(e.toString()+"|").exec("").length-1,r=Qp(t);return Cp()(n===r,"Number of capturing groups in RegExp ".concat(e.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(t,"' (").concat(r,")")),e},uh=[{base:"A",letters:/(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(&#42802;|[\uA732])/g},{base:"AE",letters:/(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(&#42804;|[\uA734])/g},{base:"AU",letters:/(&#42806;|[\uA736])/g},{base:"AV",letters:/(&#42808;|&#42810;|[\uA738\uA73A])/g},{base:"AY",letters:/(&#42812;|[\uA73C])/g},{base:"B",letters:/(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(&#497;|&#452;|[\u01F1\u01C4])/g},{base:"Dz",letters:/(&#498;|&#453;|[\u01F2\u01C5])/g},{base:"E",letters:/(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(&#455;|[\u01C7])/g},{base:"Lj",letters:/(&#456;|[\u01C8])/g},{base:"M",letters:/(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(&#458;|[\u01CA])/g},{base:"Nj",letters:/(&#459;|[\u01CB])/g},{base:"O",letters:/(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(&#338;|[\u0152])/g},{base:"OI",letters:/(&#418;|[\u01A2])/g},{base:"OO",letters:/(&#42830;|[\uA74E])/g},{base:"OU",letters:/(&#546;|[\u0222])/g},{base:"P",letters:/(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(&#222;|[\u00DE])/g},{base:"TZ",letters:/(&#42792;|[\uA728])/g},{base:"U",letters:/(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(&#42848;|[\uA760])/g},{base:"W",letters:/(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(&#42803;|[\uA733])/g},{base:"ae",letters:/(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(&#42805;|[\uA735])/g},{base:"au",letters:/(&#42807;|[\uA737])/g},{base:"av",letters:/(&#42809;|&#42811;|[\uA739\uA73B])/g},{base:"ay",letters:/(&#42813;|[\uA73D])/g},{base:"b",letters:/(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(&#499;|&#454;|[\u01F3\u01C6])/g},{base:"e",letters:/(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(&#405;|[\u0195])/g},{base:"i",letters:/(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(&#307;|[\u0133])/g},{base:"j",letters:/(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(&#457;|[\u01C9])/g},{base:"m",letters:/(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(&#460;|[\u01CC])/g},{base:"o",letters:/(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(&#339;|[\u0153])/g},{base:"oi",letters:/(&#419;|[\u01A3])/g},{base:"ou",letters:/(&#547;|[\u0223])/g},{base:"oo",letters:/(&#42831;|[\uA74F])/g},{base:"p",letters:/(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(&#223;|[\u00DF])/g},{base:"t",letters:/(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(&#254;|[\u00FE])/g},{base:"tz",letters:/(&#42793;|[\uA729])/g},{base:"u",letters:/(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(&#42849;|[\uA761])/g},{base:"w",letters:/(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],dh=function(e){return function(e){var t=e;return uh.forEach((function(e){t=t.replace(e.letters,e.base)})),t}(e).toLowerCase()},fh=function(e,t,n){return n?dh(e).indexOf(dh(t)):e.toLowerCase().indexOf(t.toLowerCase())},ph=function(e){return"number"==typeof e},hh=function(e){return e===Object(e)?Object.keys(e):[]},mh=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=(t=[]).concat.apply(t,r);return Object.keys(e).reduce((function(t,n){return e.hasOwnProperty(n)&&!i.includes(n)&&void 0!==e[n]&&(t[n]=e[n]),t}),{})};function gh(e,t){return function(n){var r=function(r){var i=r.style,a=r.className,l=r.classNames,s=Al(r,["style","className","classNames"]),c=t?t(s):void 0,u=Kp(e,{style:i,className:a,classNames:l},c);return o().createElement(n,(0,T.Z)({},s,{style:u}))},i=n.displayName||n.name||"Component";return r.displayName="defaultStyle(".concat(i,")"),r}}var vh=function(e){function t(){var e;return il(this,t),e=ul(this,sl(t).apply(this,arguments)),nl((0,B.Z)(e),"setCaretElement",(function(t){e.caretElement=t})),e.state={left:void 0,top:void 0},e}return ll(t,e),j(t,[{key:"componentDidMount",value:function(){this.notifyCaretPosition()}},{key:"componentDidUpdate",value:function(){this.notifyCaretPosition()}},{key:"notifyCaretPosition",value:function(){if(this.caretElement){var e=this.caretElement,t=e.offsetLeft,n=e.offsetTop;if(this.state.left!==t||this.state.top!==n){var r={left:t,top:n};this.setState(r),this.props.onCaretPositionChange(r)}}}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.selectionStart,i=n.selectionEnd,a=n.value,l=n.style,s=n.children,c=n.containerRef,u=sh(s);r===i&&(e=nh(a,u,r,"START"));var d=[],f={},p=d,h=0;return eh(a,u,(function(e,n,r,o,i,a,l){var s=function(e,t){return e.hasOwnProperty(t)?e[t]++:e[t]=0,t+"_"+e[t]}(f,o);p.push(t.getMentionComponentForMatch(o,i,a,s))}),(function(n,r,o){if(ph(e)&&e>=r&&e<=r+n.length){var i=e-r;p.push(t.renderSubstring(n.substring(0,i),h)),p=[t.renderSubstring(n.substring(i),h)]}else p.push(t.renderSubstring(n,h));h++})),p.push(" "),p!==d&&d.push(this.renderHighlighterCaret(p)),o().createElement("div",(0,T.Z)({},l,{ref:c}),d)}},{key:"renderSubstring",value:function(e,t){return o().createElement("span",(0,T.Z)({},this.props.style("substring"),{key:t}),e)}},{key:"getMentionComponentForMatch",value:function(e,t,n,i){var a={id:e,display:t,key:i},l=r.Children.toArray(this.props.children)[n];return o().cloneElement(l,a)}},{key:"renderHighlighterCaret",value:function(e){return o().createElement("span",(0,T.Z)({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),e)}}]),t}(r.Component);nl(vh,"propTypes",{selectionStart:rt().number,selectionEnd:rt().number,value:rt().string.isRequired,onCaretPositionChange:rt().func.isRequired,containerRef:rt().oneOfType([rt().func,rt().shape({current:"undefined"==typeof Element?rt().any:rt().instanceOf(Element)})]),children:rt().oneOfType([rt().element,rt().arrayOf(rt().element)]).isRequired}),nl(vh,"defaultProps",{value:""});var yh=gh({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},(function(e){return{"&singleLine":e.singleLine}}))(vh),bh=function(e){function t(){return il(this,t),ul(this,sl(t).apply(this,arguments))}return ll(t,e),j(t,[{key:"render",value:function(){var e=mh(this.props,["style","classNames","className"],hh(t.propTypes));return o().createElement("li",(0,T.Z)({id:this.props.id,role:"option","aria-selected":this.props.focused},e,this.props.style),this.renderContent())}},{key:"renderContent",value:function(){var e=this.props,t=e.query,n=e.renderSuggestion,r=e.suggestion,o=e.index,i=e.focused,a=this.getDisplay(),l=this.renderHighlightedDisplay(a,t);return n?n(r,t,l,o,i):l}},{key:"getDisplay",value:function(){var e=this.props.suggestion;if("string"==typeof e)return e;var t=e.id,n=e.display;return void 0!==t&&n?n:t}},{key:"renderHighlightedDisplay",value:function(e){var t=this.props,n=t.ignoreAccents,r=t.query,i=t.style,a=fh(e,r,n);return-1===a?o().createElement("span",i("display"),e):o().createElement("span",i("display"),e.substring(0,a),o().createElement("b",i("highlight"),e.substring(a,a+r.length)),e.substring(a+r.length))}}]),t}(r.Component);nl(bh,"propTypes",{id:rt().string.isRequired,query:rt().string.isRequired,index:rt().number.isRequired,ignoreAccents:rt().bool,suggestion:rt().oneOfType([rt().string,rt().shape({id:rt().oneOfType([rt().string,rt().number]).isRequired,display:rt().string})]).isRequired,renderSuggestion:rt().func,focused:rt().bool});var xh=gh({cursor:"pointer"},(function(e){return{"&focused":e.focused}}))(bh);function Eh(){var e=Kp(),t=e("spinner");return o().createElement("div",e,o().createElement("div",t,o().createElement("div",t(["element","element1"])),o().createElement("div",t(["element","element2"])),o().createElement("div",t(["element","element3"])),o().createElement("div",t(["element","element4"])),o().createElement("div",t(["element","element5"]))))}var Ch=function(e){function t(){var e,n;il(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=ul(this,(e=sl(t)).call.apply(e,[this].concat(o))),nl((0,B.Z)(n),"handleMouseEnter",(function(e,t){n.props.onMouseEnter&&n.props.onMouseEnter(e)})),nl((0,B.Z)(n),"select",(function(e,t){n.props.onSelect(e,t)})),nl((0,B.Z)(n),"setUlElement",(function(e){n.ulElement=e})),n}return ll(t,e),j(t,[{key:"componentDidUpdate",value:function(){if(this.ulElement&&!(this.ulElement.offsetHeight>=this.ulElement.scrollHeight)&&this.props.scrollFocusedIntoView){var e=this.ulElement.scrollTop,t=this.ulElement.children[this.props.focusIndex].getBoundingClientRect(),n=t.top,r=t.bottom,o=this.ulElement.getBoundingClientRect().top;r=r-o+e,(n=n-o+e)<e?this.ulElement.scrollTop=n:r>this.ulElement.offsetHeight&&(this.ulElement.scrollTop=r-this.ulElement.offsetHeight)}}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.a11ySuggestionsListLabel,r=e.isOpened,i=e.style,a=e.onMouseDown,l=e.containerRef,s=e.position,c=e.left,u=e.top;return r?o().createElement("div",(0,T.Z)({},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return Wp(Wp(Wp({},e),"function"==typeof t?t:{}),{},{style:Wp(Wp({},e.style),"function"==typeof t?t.style:t)})}),{})}({position:s||"absolute",left:c,top:u},i),{onMouseDown:a,ref:l}),o().createElement("ul",(0,T.Z)({ref:this.setUlElement,id:t,role:"listbox","aria-label":n},i("list")),this.renderSuggestions()),this.renderLoadingIndicator()):null}},{key:"renderSuggestions",value:function(){var e=this;return Object.values(this.props.suggestions).reduce((function(t,n){var r=n.results,o=n.queryInfo;return[].concat(Rt(t),Rt(r.map((function(n,r){return e.renderSuggestion(n,o,t.length+r)}))))}),[])}},{key:"renderSuggestion",value:function(e,t,n){var i=this,a=n===this.props.focusIndex,l=t.childIndex,s=t.query,c=r.Children.toArray(this.props.children)[l].props.renderSuggestion,u=this.props.ignoreAccents;return o().createElement(xh,{style:this.props.style("item"),key:"".concat(l,"-").concat(wh(e)),id:ih(this.props.id,n),query:s,index:n,ignoreAccents:u,renderSuggestion:c,suggestion:e,focused:a,onClick:function(){return i.select(e,t)},onMouseEnter:function(){return i.handleMouseEnter(n)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return o().createElement(Eh,{style:this.props.style("loadingIndicator")})}}]),t}(r.Component);nl(Ch,"propTypes",{id:rt().string.isRequired,suggestions:rt().object.isRequired,a11ySuggestionsListLabel:rt().string,focusIndex:rt().number,position:rt().string,left:rt().number,top:rt().number,scrollFocusedIntoView:rt().bool,isLoading:rt().bool,isOpened:rt().bool.isRequired,onSelect:rt().func,ignoreAccents:rt().bool,containerRef:rt().oneOfType([rt().func,rt().shape({current:"undefined"==typeof Element?rt().any:rt().instanceOf(Element)})]),children:rt().oneOfType([rt().element,rt().arrayOf(rt().element)]).isRequired}),nl(Ch,"defaultProps",{suggestions:{},onSelect:function(){return null}});var wh=function(e){return"string"==typeof e?e:e.id},kh=gh({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(Ch);function _h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_h(n,!0).forEach((function(t){nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sh={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},Ah=!1,Mh={singleLine:rt().bool,allowSpaceInQuery:rt().bool,allowSuggestionsAboveCursor:rt().bool,forceSuggestionsAboveCursor:rt().bool,ignoreAccents:rt().bool,a11ySuggestionsListLabel:rt().string,value:rt().string,onKeyDown:rt().func,onSelect:rt().func,onBlur:rt().func,onChange:rt().func,suggestionsPortalHost:"undefined"==typeof Element?rt().any:rt().PropTypes.instanceOf(Element),inputRef:rt().oneOfType([rt().func,rt().shape({current:"undefined"==typeof Element?rt().any:rt().instanceOf(Element)})]),children:rt().oneOfType([rt().element,rt().arrayOf(rt().element)]).isRequired},Ph=function(e){function t(e){var n;return il(this,t),n=ul(this,sl(t).call(this,e)),nl((0,B.Z)(n),"setContainerElement",(function(e){n.containerElement=e})),nl((0,B.Z)(n),"getInputProps",(function(){var e=n.props,t=e.readOnly,r=e.disabled,o=e.style;return Oh({},mh(n.props,["style","classNames","className"],hh(Mh)),{},o("input"),{value:n.getPlainText()},!t&&!r&&{onChange:n.handleChange,onSelect:n.handleSelect,onKeyDown:n.handleKeyDown,onBlur:n.handleBlur,onCompositionStart:n.handleCompositionStart,onCompositionEnd:n.handleCompositionEnd,onScroll:n.updateHighlighterScroll},{},n.isOpened()&&{role:"combobox","aria-controls":n.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":ih(n.uuidSuggestionsOverlay,n.state.focusIndex)})})),nl((0,B.Z)(n),"renderControl",(function(){var e=n.props,t=e.singleLine,r=e.style,i=n.getInputProps();return o().createElement("div",r("control"),n.renderHighlighter(),t?n.renderInput(i):n.renderTextarea(i))})),nl((0,B.Z)(n),"renderInput",(function(e){return o().createElement("input",(0,T.Z)({type:"text",ref:n.setInputRef},e))})),nl((0,B.Z)(n),"renderTextarea",(function(e){return o().createElement("textarea",(0,T.Z)({ref:n.setInputRef},e))})),nl((0,B.Z)(n),"setInputRef",(function(e){n.inputElement=e;var t=n.props.inputRef;"function"==typeof t?t(e):t&&(t.current=e)})),nl((0,B.Z)(n),"setSuggestionsElement",(function(e){n.suggestionsElement=e})),nl((0,B.Z)(n),"renderSuggestionsOverlay",(function(){if(!ph(n.state.selectionStart))return null;var e=n.state.suggestionsPosition,t=e.position,r=e.left,i=e.top,a=o().createElement(kh,{id:n.uuidSuggestionsOverlay,style:n.props.style("suggestions"),position:t,left:r,top:i,focusIndex:n.state.focusIndex,scrollFocusedIntoView:n.state.scrollFocusedIntoView,containerRef:n.setSuggestionsElement,suggestions:n.state.suggestions,onSelect:n.addMention,onMouseDown:n.handleSuggestionsMouseDown,onMouseEnter:n.handleSuggestionsMouseEnter,isLoading:n.isLoading(),isOpened:n.isOpened(),ignoreAccents:n.props.ignoreAccents,a11ySuggestionsListLabel:n.props.a11ySuggestionsListLabel},n.props.children);return n.props.suggestionsPortalHost?jl().createPortal(a,n.props.suggestionsPortalHost):a})),nl((0,B.Z)(n),"renderHighlighter",(function(){var e=n.state,t=e.selectionStart,r=e.selectionEnd,i=n.props,a=i.singleLine,l=i.children,s=i.value,c=i.style;return o().createElement(yh,{containerRef:n.setHighlighterElement,style:c("highlighter"),value:s,singleLine:a,selectionStart:t,selectionEnd:r,onCaretPositionChange:n.handleCaretPositionChange},l)})),nl((0,B.Z)(n),"setHighlighterElement",(function(e){n.highlighterElement=e})),nl((0,B.Z)(n),"handleCaretPositionChange",(function(e){n.setState({caretPosition:e})})),nl((0,B.Z)(n),"getPlainText",(function(){return th(n.props.value||"",sh(n.props.children))})),nl((0,B.Z)(n),"executeOnChange",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i,a;return n.props.onChange?(i=n.props).onChange.apply(i,[e].concat(r)):n.props.valueLink?(a=n.props.valueLink).requestChange.apply(a,[e.target.value].concat(r)):void 0})),nl((0,B.Z)(n),"handleChange",(function(e){if(Ah=!1,(document.activeElement&&document.activeElement.contentDocument||document).activeElement===e.target){var t=n.props.value||"",r=sh(n.props.children),o=e.target.value,i=function(e,t,n,r){var o=n.selectionStartBefore,i=n.selectionEndBefore,a=n.selectionEndAfter,l=th(e,r),s=l.length-t.length;"undefined"===o&&(o=a+s),"undefined"===i&&(i=o),o===i&&i===a&&l.length===t.length&&(o-=1);var c=t.slice(o,a),u=Math.min(o,a),d=i;o===a&&(d=Math.max(i,o+s));var f=nh(e,r,u,"START"),p=nh(e,r,d,"END"),h=nh(e,r,u,"NULL"),m=nh(e,r,d,"NULL"),g=null===h||null===m,v=rh(e,f,p,c);if(!g){var y=th(v,r);if(y!==t){for(u=0;t[u]===y[u];)u++;c=t.slice(u,a),d=l.lastIndexOf(t.substring(a)),f=nh(e,r,u,"START"),p=nh(e,r,d,"END"),v=rh(e,f,p,c)}}return v}(t,o,{selectionStartBefore:n.state.selectionStart,selectionEndBefore:n.state.selectionEnd,selectionEndAfter:e.target.selectionEnd},r);o=th(i,r);var a=e.target.selectionStart,l=e.target.selectionEnd,s=!1,c=function(e,t,n){var r=n,o=!1;if(eh(e,t,(function(e,t,i,a,l,s,c){i<=n&&i+l.length>n&&(r=i,o=!0)})),o)return r}(t,r,a);void 0!==c&&n.state.selectionEnd>c&&(l=a=c,s=!0),n.setState({selectionStart:a,selectionEnd:l,setSelectionAfterMentionChange:s});var u=oh(i,r),d={target:{value:i}};n.executeOnChange(d,i,o,u)}})),nl((0,B.Z)(n),"handleSelect",(function(e){if(n.setState({selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd}),!Ah){var t=n.inputElement;e.target.selectionStart===e.target.selectionEnd?n.updateMentionsQueries(t.value,e.target.selectionStart):n.clearSuggestions(),n.updateHighlighterScroll(),n.props.onSelect(e)}})),nl((0,B.Z)(n),"handleKeyDown",(function(e){if(0!==ah(n.state.suggestions)&&n.suggestionsElement)switch(Object.values(Sh).indexOf(e.keyCode)>=0&&(e.preventDefault(),e.stopPropagation()),e.keyCode){case Sh.ESC:return void n.clearSuggestions();case Sh.DOWN:return void n.shiftFocus(1);case Sh.UP:return void n.shiftFocus(-1);case Sh.RETURN:case Sh.TAB:return void n.selectFocused();default:return}else n.props.onKeyDown(e)})),nl((0,B.Z)(n),"shiftFocus",(function(e){var t=ah(n.state.suggestions);n.setState({focusIndex:(t+n.state.focusIndex+e)%t,scrollFocusedIntoView:!0})})),nl((0,B.Z)(n),"selectFocused",(function(){var e=n.state,t=e.suggestions,r=e.focusIndex,o=Object.values(t).reduce((function(e,t){var n=t.results,r=t.queryInfo;return[].concat(Rt(e),Rt(n.map((function(e){return{result:e,queryInfo:r}}))))}),[])[r],i=o.result,a=o.queryInfo;n.addMention(i,a),n.setState({focusIndex:0})})),nl((0,B.Z)(n),"handleBlur",(function(e){var t=n._suggestionsMouseDown;n._suggestionsMouseDown=!1,t||n.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){n.updateHighlighterScroll()}),1),n.props.onBlur(e,t)})),nl((0,B.Z)(n),"handleSuggestionsMouseDown",(function(e){n._suggestionsMouseDown=!0})),nl((0,B.Z)(n),"handleSuggestionsMouseEnter",(function(e){n.setState({focusIndex:e,scrollFocusedIntoView:!1})})),nl((0,B.Z)(n),"updateSuggestionsPosition",(function(){var e=n.state.caretPosition,t=n.props,r=t.suggestionsPortalHost,o=t.allowSuggestionsAboveCursor,i=t.forceSuggestionsAboveCursor;if(e&&n.suggestionsElement){var a=n.suggestionsElement,l=n.highlighterElement,s=l.getBoundingClientRect(),c=Rh(l,"font-size"),u={left:s.left+e.left,top:s.top+e.top+c},d=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(a){var f={};if(r){f.position="fixed";var p=u.left,h=u.top;p-=Rh(a,"margin-left"),h-=Rh(a,"margin-top"),p-=l.scrollLeft,h-=l.scrollTop;var m=Math.max(document.documentElement.clientWidth,window.innerWidth||0);p+a.offsetWidth>m?f.left=Math.max(0,m-a.offsetWidth):f.left=p,o&&h+a.offsetHeight>d&&a.offsetHeight<h-c||i?f.top=Math.max(0,h-a.offsetHeight-c):f.top=h}else{var g=e.left-l.scrollLeft,v=e.top-l.scrollTop;g+a.offsetWidth>n.containerElement.offsetWidth?f.right=0:f.left=g,o&&u.top-l.scrollTop+a.offsetHeight>d&&a.offsetHeight<s.top-c-l.scrollTop?f.top=v-a.offsetHeight-c:f.top=v}f.left===n.state.suggestionsPosition.left&&f.top===n.state.suggestionsPosition.top&&f.position===n.state.suggestionsPosition.position||n.setState({suggestionsPosition:f})}}})),nl((0,B.Z)(n),"updateHighlighterScroll",(function(){var e=n.inputElement,t=n.highlighterElement;e&&t&&(t.scrollLeft=e.scrollLeft,t.scrollTop=e.scrollTop,t.height=e.height)})),nl((0,B.Z)(n),"handleCompositionStart",(function(){Ah=!0})),nl((0,B.Z)(n),"handleCompositionEnd",(function(){Ah=!1})),nl((0,B.Z)(n),"setSelection",(function(e,t){if(null!==e&&null!==t){var r=n.inputElement;if(r.setSelectionRange)r.setSelectionRange(e,t);else if(r.createTextRange){var o=r.createTextRange();o.collapse(!0),o.moveEnd("character",t),o.moveStart("character",e),o.select()}}})),nl((0,B.Z)(n),"updateMentionsQueries",(function(e,t){n._queryId++,n.suggestions={},n.setState({suggestions:{}});var r=n.props.value||"",i=n.props.children,a=sh(i),l=nh(r,a,t,"NULL");if(null!==l){var s=function(e,t){var n=oh(e,t),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0}(r.substring(0,l),a),c=e.substring(s,t);o().Children.forEach(i,(function(t,r){if(t){var o=function(e){if(e instanceof RegExp)return e;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowSpaceInQuery,n=$p(e);return new RegExp("(?:^|\\s)(".concat(n,"([^").concat(t?"":"\\s").concat(n,"]*))$"))}(t.props.trigger,n.props),i=c.match(o);if(i){var a=s+c.indexOf(i[1],i.index);n.queryData(i[2],r,a,a+i[1].length,e)}}}))}})),nl((0,B.Z)(n),"clearSuggestions",(function(){n._queryId++,n.suggestions={},n.setState({suggestions:{},focusIndex:0})})),nl((0,B.Z)(n),"queryData",(function(e,t,o,i,a){var l=n.props,s=l.children,c=l.ignoreAccents,u=function(e,t){return e instanceof Array?function(n,r){for(var o=[],i=0,a=e.length;i<a;++i){var l=e[i].display||e[i].id;fh(l,n,t)>=0&&o.push(e[i])}return o}:e}(r.Children.toArray(s)[t].props.data,c),d=u(e,n.updateSuggestions.bind(null,n._queryId,t,e,o,i,a));d instanceof Array&&n.updateSuggestions(n._queryId,t,e,o,i,a,d)})),nl((0,B.Z)(n),"updateSuggestions",(function(e,t,r,o,i,a,l){if(e===n._queryId){n.suggestions=Oh({},n.suggestions,nl({},t,{queryInfo:{childIndex:t,query:r,querySequenceStart:o,querySequenceEnd:i,plainTextValue:a},results:l}));var s=n.state.focusIndex,c=ah(n.suggestions);n.setState({suggestions:n.suggestions,focusIndex:s>=c?Math.max(c-1,0):s})}})),nl((0,B.Z)(n),"addMention",(function(e,t){var o=e.id,i=e.display,a=t.childIndex,l=t.querySequenceStart,s=t.querySequenceEnd,c=t.plainTextValue,u=n.props.value||"",d=sh(n.props.children),f=r.Children.toArray(n.props.children)[a].props,p=f.markup,h=f.displayTransform,m=f.appendSpaceOnAdd,g=f.onAdd,v=nh(u,d,l,"START"),y=v+s-l,b=function(e,t,n){return e.replace(Gp,t).replace(Yp,n)}(p,o,i);m&&(b+=" ");var x=rh(u,v,y,b);n.inputElement.focus();var E=h(o,i);m&&(E+=" ");var C=l+E.length;n.setState({selectionStart:C,selectionEnd:C,setSelectionAfterMentionChange:!0});var w={target:{value:x}},k=oh(x,d),_=rh(c,l,s,E);n.executeOnChange(w,x,_,k),g&&g(o,i,v,y),n.clearSuggestions()})),nl((0,B.Z)(n),"isLoading",(function(){var e=!1;return o().Children.forEach(n.props.children,(function(t){e=e||t&&t.props.isLoading})),e})),nl((0,B.Z)(n),"isOpened",(function(){return ph(n.state.selectionStart)&&(0!==ah(n.state.suggestions)||n.isLoading())})),nl((0,B.Z)(n),"_queryId",0),n.suggestions={},n.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),n.handleCopy=n.handleCopy.bind((0,B.Z)(n)),n.handleCut=n.handleCut.bind((0,B.Z)(n)),n.handlePaste=n.handlePaste.bind((0,B.Z)(n)),n.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},n}return ll(t,e),j(t,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(e,t){t.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return o().createElement("div",(0,T.Z)({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault();var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.value,a=o.children,l=sh(a),s=nh(i,l,n,"START"),c=nh(i,l,r,"END"),u=e.clipboardData.getData("text/react-mentions"),d=e.clipboardData.getData("text/plain"),f=rh(i,s,c,u||d).replace(/\r/g,""),p=th(f,l),h={target:Oh({},e.target,{value:f})};this.executeOnChange(h,f,p,oh(f,l))}}},{key:"saveSelectionToClipboard",value:function(e){var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,l=sh(i),s=nh(a,l,n,"START"),c=nh(a,l,r,"END");e.clipboardData.setData("text/plain",e.target.value.slice(n,r)),e.clipboardData.setData("text/react-mentions",a.slice(s,c))}},{key:"supportsClipboardActions",value:function(e){return!!e.clipboardData}},{key:"handleCopy",value:function(e){e.target===this.inputElement&&this.supportsClipboardActions(e)&&(e.preventDefault(),this.saveSelectionToClipboard(e))}},{key:"handleCut",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault(),this.saveSelectionToClipboard(e);var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,l=sh(i),s=nh(a,l,n,"START"),c=nh(a,l,r,"END"),u=[a.slice(0,s),a.slice(c)].join(""),d=th(u,l),f={target:Oh({},e.target,{value:d})};this.executeOnChange(f,u,d,oh(a,l))}}}]),t}(o().Component);nl(Ph,"propTypes",Mh),nl(Ph,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var Rh=function(e,t){var n=parseFloat(window.getComputedStyle(e,null).getPropertyValue(t));return isFinite(n)?n:0},Th=gh({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:Oh({height:"100%",bottom:0,overflow:"hidden",resize:"none"},"undefined"!=typeof navigator&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?{marginTop:1,marginLeft:-3}:null)}},(function(e){var t=e.singleLine;return{"&singleLine":t,"&multiLine":!t}}))(Ph),Nh={fontWeight:"inherit"},Ih=function(e){var t=e.display,n=e.style,r=e.className,i=e.classNames,a=Kp(Nh,{style:n,className:r,classNames:i});return o().createElement("strong",a,t)};Ih.propTypes={onAdd:rt().func,onRemove:rt().func,renderSuggestion:rt().func,trigger:rt().oneOfType([rt().string,rt().instanceOf(RegExp)]),markup:rt().string,displayTransform:rt().func,allowSpaceInQuery:rt().bool,isLoading:rt().bool},Ih.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(e,t){return t||e},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};const Dh=qn((e=>({root:{backgroundColor:"#fff",fontFamily:"Roboto"},mentionsControl:{fontSize:"13px"},mentionsHighlighter:{padding:"10px 22px",border:"1px solid transparent !important","&::before":{content:({placeholder:e})=>e&&`"${e}"`}},mentionsInput:{borderRadius:"2px",border:"1px solid rgba(0,0,0,0.12)",padding:"10px 22px",outline:0,overflow:"auto !important"},mentionsSuggestions:{padding:"8px 0",zIndex:"1301!important",borderRadius:"4px",backgroundColor:"#fafafa !important",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)"},mentionsSuggestionsList:{maxHeight:"200px",overflowY:"scroll"},mentionsSuggestionsItem:{padding:"6px 12px",color:e.palette.text.primary,fontSize:"13px",transition:e.transitions.create(["background-color"]),"&:hover":{backgroundColor:"rgba(0,0,0,0.04)"}},mentionsSuggestionsItemFocused:{backgroundColor:"rgba(0,0,0,0.04)"},mention:{position:"relative",zIndex:1,color:e.palette.primary.main,textShadow:"1px 1px 1px white, 1px -1px 1px white, -1px 1px 1px white, -1px -1px 1px white",pointerEvents:"none"}})));function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(null,arguments)}const Fh="mentionsTextArea",jh=e=>{let{onChange:t,className:n,value:i,placeholder:a}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["onChange","className","value","placeholder"]);const s=Dh({placeholder:i?"":a}),c=(0,r.useContext)(df);return o().createElement("div",{className:f()(s.root,n)},o().createElement(Th,Lh({},l,{value:i,placeholder:a,onChange:(e,n,r,o)=>{t(n,r,(0,p.uniq)(o.map((({display:e})=>e.slice(1)))))},className:Fh,suggestionsPortalHost:document.body,allowSuggestionsAboveCursor:!0,classNames:{[`${Fh}__input`]:s.mentionsInput,[`${Fh}__highlighter`]:s.mentionsHighlighter,[`${Fh}__control`]:s.mentionsControl,[`${Fh}__suggestions`]:s.mentionsSuggestions,[`${Fh}__suggestions__list`]:s.mentionsSuggestionsList,[`${Fh}__suggestions__item`]:s.mentionsSuggestionsItem,[`${Fh}__suggestions__item--focused`]:s.mentionsSuggestionsItemFocused}}),o().createElement(Ih,{trigger:"+",data:c.map((({username:e})=>({id:e,display:e}))),displayTransform:(e,t)=>`+${t}`,appendSpaceOnAdd:!0,className:s.mention})))},zh=qn({root:({isEditing:e})=>({padding:e?"6px 6px 6px 0":" 6px 6px 6px 8px",borderRadius:"4px",backgroundColor:e?"transparent":"rgba(0,114,206,0.06)"}),textField:({isEditing:e})=>({width:e?"100%":"calc(100% - 40px)"}),form:{marginBottom:0},main:{display:"flex",alignItems:"center"},avatar:{marginRight:"8px"},buttons:({isEditing:e})=>({marginLeft:e?"0":"40px",marginTop:"8px"}),button:{"& + $button":{marginLeft:"8px"}}}),Bh=e=>{switch(e){case"open":return u().text("Reply...");case"resolved":return u().text("Adding a comment will re-open this");default:return""}},Hh=({inputRef:e,className:t,uri:n,relatedObjectUris:i,objectType:a,popperRef:l,comment:s,reply:c,isEditingComment:d,isEditingReply:h,onCancel:m})=>{const g=d||h,v=zh({isEditing:g}),[y,b]=(0,r.useState)(!1),{createReply:x,createComment:E,sending:C,editComment:w,editReply:k,getCommentState:_,updateCommentState:O,clearCommentState:A}=(0,r.useContext)(pf),M=S(),P=(({comment:e,reply:t,isEditingComment:n,isEditingReply:r})=>(0,p.isNil)(e)?"comment/new":n?ip(e):r?ap(e,t):(e=>`comment/${e.commentId}/reply/new`)(e))({comment:s,reply:c,isEditingComment:d,isEditingReply:h}),R=(({comment:e,reply:t,isEditingComment:n,isEditingReply:r})=>{const o=n?e:r?t:null,{content:i="",namedUsers:a=[]}=o||{};return{value:lp(i,a),plainTextValue:i,mentions:a}})({comment:s,reply:c,isEditingComment:d,isEditingReply:h}),{value:T=R.value,plainTextValue:N=R.plainTextValue,mentions:I=R.mentions}=_(n,P),D=""!==R.value.trim(),L=""!==T.trim(),F=y||L||D,j=null==s?void 0:s.status,z=()=>{null==m||m(),A(n,P)};(0,r.useEffect)((()=>{l&&l.current.forceUpdate()}),[l,F]);const B=g?"small":"medium";return o().createElement(Of(),{className:f()(v.root,t)},o().createElement("form",{onSubmit:e=>(e.preventDefault(),(0,p.cond)([[(0,p.always)(!s),()=>E({content:N,namedUsers:I,objectType:a,uri:n,relatedObjectUris:i})],[(0,p.always)(d),()=>w({content:N,namedUsers:I,commentId:s.commentId,objectType:a,replies:s.replies,relatedObjectUris:i,uri:n})],[(0,p.always)(h),()=>k({content:N,namedUsers:I,commentId:s.commentId,replyId:c.replyId})],[p.T,()=>x({content:N,namedUsers:I,commentId:s.commentId,action:"open"===s.status?"none":"reopen",uri:n})]])().then(z).catch(console.log)),className:v.form},o().createElement(Of(),{className:v.main},!g&&o().createElement(xp,{classes:{root:v.avatar}},M),o().createElement(jh,{className:v.textField,disabled:C,onChange:(e,t,r)=>O(n,P,{value:e,plainTextValue:t,mentions:r}),inputRef:e,value:T,onFocus:()=>b(!0),onBlur:()=>b(!1),placeholder:Bh(j)})),F&&o().createElement(Of(),{className:v.buttons},o().createElement(or(),{className:v.button,variant:"contained",color:"primary",disabled:!L||C,type:"submit",size:B},((e,t,n)=>t||n?u().text("Edit"):"open"===e||"resolved"===e?u().text("Reply"):u().text("Comment"))(j,d,h)),o().createElement(or(),{disabled:C,onClick:()=>z(),className:v.button,variant:"outlined",color:"primary",size:B},u().text("Cancel")))))},Uh=qn((e=>({header:{display:"flex"},avatar:{marginRight:"8px"},username:{marginBottom:"1px",color:e.palette.text.primary,fontSize:"13px",fontWeight:500,lineHeight:"15px"},createdAt:{marginTop:"3px",marginRight:"4px",color:e.palette.text.secondary,fontSize:"11px",lineHeight:"13px",whiteSpace:"nowrap"},body:{marginLeft:"40px"},commentTarget:{marginTop:"-15px",overflowWrap:"break-word"},message:{marginTop:"12px"},dropdownMenu:{zIndex:"3000 !important"},buttons:{marginTop:"15px",marginBottom:"12px",display:"flex","& $button + $button":{marginLeft:"10px"}},button:{fontSize:"13px",lineHeight:"15px"}}))),Vh=({onReply:e,className:t,uri:n,comment:i,relatedObjectUris:a,objectType:l})=>{const s=Uh(),c=(0,r.useRef)(),d=S(),{commentId:f,createdBy:p,createdTime:h,status:m}=i,g="resolved"===m,v=p===d,{resolveThread:y,reOpenThread:b,sending:x,deleteComment:E,updateCommentState:C,getCommentState:w}=(0,r.useContext)(pf),k=ip(i),{isEditing:_}=w(n,k),O=(0,r.useCallback)((e=>C(n,k,{isEditing:e})),[k,C,n]);np(c,_);const A=(0,r.useMemo)((()=>g?[{text:u().text("Delete"),onClick:()=>E({uri:n,commentId:f})}]:[{text:u().text("Edit"),onClick:()=>O(!0)},{text:u().text("Delete"),onClick:()=>E({uri:n,commentId:f})}]),[f,E,g,O,n]),M=o().createElement(Hh,{inputRef:c,uri:n,relatedObjectUris:a,objectType:l,onCancel:()=>O(!1),isEditingComment:_,comment:i});return o().createElement(Of(),{className:t},o().createElement(Of(),{className:s.header},o().createElement(xp,{classes:{root:s.avatar}},p),o().createElement(Of(),{width:"100%"},o().createElement(Ju(),{className:s.username},p)),o().createElement(Ju(),{className:s.createdAt},op(h)),v&&o().createElement(tp,{buttonComponent:Kd,buttonProps:{icon:Vf(),tooltipTitle:u().text("Open menu")},popoverProps:{PopoverClasses:{root:s.dropdownMenu}},menuItems:A,menuId:"collaboration-comment-menu"})),o().createElement(Of(),{className:s.body},o().createElement(mp,{comment:i,className:s.commentTarget}),_?M:o().createElement(vp,{comment:i,className:s.message}),o().createElement(Of(),{className:s.buttons},o().createElement(Ad(),{className:s.button,onClick:e,component:"button",underline:"hover"},u().text("Reply")),!g&&o().createElement(Ad(),{disabled:x,className:s.button,onClick:()=>{y({commentId:f,uri:n})},component:"button",underline:"hover"},u().text("Resolve")),g&&o().createElement(Ad(),{disabled:x,className:s.button,onClick:()=>{b({commentId:f,uri:n})},component:"button",underline:"hover"},u().text("Re-open")))))},Zh=qn((e=>({root:{display:"flex",padding:"8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},avatar:{marginRight:"8px"},replyArea:{width:"calc(100% - 60px)"},header:{display:"flex",marginBottom:"8px"},username:{color:e.palette.text.primary,fontSize:"13px",fontWeight:500,lineHeight:"15px"},message:{marginBottom:"8px",color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},createdAt:{color:e.palette.text.secondary,fontSize:"11px",lineHeight:"13px",whiteSpace:"nowrap"},marked:{marginLeft:"8px",color:e.palette.text.secondary,fontSize:"13px",fontStyle:"italic",lineHeight:"15px"}}))),Kh=({className:e,reply:t,uri:n,comment:i,popperRef:a})=>{const l=(0,r.useRef)(),s=S(),{createdBy:c,action:d,createdTime:p}=t,h=c===s&&"resolved"!==i.status,{deleteReply:m,updateCommentState:g,getCommentState:v}=(0,r.useContext)(pf),y=ap(i,t),{isEditing:b}=v(n,y),x=(0,r.useCallback)((e=>g(n,y,{isEditing:e})),[y,g,n]);np(l,b);const E=Zh(),C=(0,r.useMemo)((()=>[{text:u().text("Edit"),onClick:()=>x(!0)},{text:u().text("Delete"),onClick:()=>m({uri:n,commentId:i.commentId,reply:t})}]),[m,n,i.commentId,t,x]),w=o().createElement(Hh,{inputRef:l,popperRef:a,uri:n,onCancel:()=>x(!1),isEditingReply:b,reply:t,comment:i});return o().createElement(Of(),{className:f()(E.root,e)},o().createElement(xp,{classes:{root:E.avatar}},c),o().createElement(Of(),{className:E.replyArea},o().createElement(Of(),{className:E.header},o().createElement(Ju(),{className:E.username},c),"resolve"===d&&o().createElement(Ju(),{className:E.marked},u().text("Marked as resolved")),"reopen"===d&&o().createElement(Ju(),{className:E.marked},u().text("Re-opened"))),"resolve"!==d&&(b?w:o().createElement(vp,{className:E.message,comment:t})),o().createElement(Ju(),{className:E.createdAt},op(p))),h&&o().createElement(tp,{buttonComponent:Kd,buttonProps:{icon:Vf(),tooltipTitle:u().text("Open menu")},menuItems:C,menuId:"collaboration-comment-menu"}))},qh=qn((()=>({root:{maxWidth:"100%",padding:"8px 4px 10px 16px"},messages:{},repliedComment:{marginBottom:"2px"},replies:{marginLeft:"40px"},sendMessageArea:{marginLeft:"40px"},comment:{}}))),Wh=({uri:e,relatedObjectUris:t,objectType:n,classes:i,popperRef:a,messagesRef:l,comment:s})=>{const c=(0,r.useRef)(),u=qh({classes:i}),d=o().createElement(Hh,{className:u.sendMessageArea,inputRef:c,popperRef:a,uri:e,relatedObjectUris:t,objectType:n,comment:s});return o().createElement(Of(),{className:u.root},s&&o().createElement(o().Fragment,null,o().createElement("div",{className:u.messages,ref:l},o().createElement(Vh,{comment:s,uri:e,onReply:()=>{c.current.focus()},className:u.comment,relatedObjectUris:t,objectType:n}),o().createElement(Of(),{className:u.replies},s.replies.map((t=>o().createElement(Kh,{key:t.replyId,className:u.repliedComment,reply:t,uri:e,comment:s}))))),d),!s&&d)},$h=(0,r.memo)(Wh),Gh=qn((e=>({root:{},header:{display:"flex",alignItems:"center",height:"48px",paddingLeft:"16px",paddingRight:"8px"},headerInfo:{marginRight:"auto",display:"flex",alignItems:"center"},title:{marginRight:"15px",color:e.palette.text.primary,fontSize:"16px"},counter:{paddingLeft:"15px",borderLeft:"1px solid rgba(0,0,0,0.12)",color:e.palette.text.secondary,fontSize:"14px",lineHeight:"24px"},resolveButton:{zIndex:3e3,"&:hover":{backgroundColor:"transparent"}},popper:{width:"424px",borderRadius:"0 0 4px 4px"},collaborationItem:{padding:"0 0 10px 0"},comment:({hasScroll:e})=>({marginLeft:"16px",marginRight:e?"2px":"8px"}),replies:({hasScroll:e})=>({marginLeft:"8px",marginRight:e?"2px":"8px"}),sendMessageArea:({hasScroll:e,scrollWidth:t})=>({marginLeft:"8px",marginRight:e?t+2:"8px"}),messages:{maxHeight:"400px",overflowY:"auto"}}))),Yh=({uri:e,relatedObjectUris:t,objectType:n,anchorEl:i,onClose:a,open:l,comment:s})=>{const[c,d]=(0,r.useState)(0),f=Gh({scrollWidth:c,hasScroll:0!==c}),p=(0,r.useRef)(null),{resolveThread:h,loading:m,sending:g}=(0,r.useContext)(pf),v=1+(null==s?void 0:s.replies.length);return o().createElement(Hf,{popperRef:p,anchorEl:i,open:l,placement:"right-start",onClose:a,className:f.popper},o().createElement(Of(),{className:f.header},o().createElement(Of(),{className:f.headerInfo},o().createElement(Ju(),{className:f.title},u().text("Comments")),s&&!m&&o().createElement(Ju(),{className:f.counter},u().number(v)," ",1===v?u().text("item"):u().text("items"))),s&&!m&&o().createElement(Kd,{className:f.resolveButton,size:"S",onClick:()=>{h({commentId:s.commentId,uri:e})},disabled:g,showForDisabled:!0,tooltipTitle:u().text("Resolve"),icon:Af(),color:"primary"})),!m&&o().createElement($h,{popperRef:p,messagesRef:e=>{e&&d(e.offsetWidth-e.clientWidth)},classes:{root:f.collaborationItem,replies:f.replies,sendMessageArea:f.sendMessageArea,messages:f.messages,comment:f.comment},uri:e,relatedObjectUris:t,objectType:n,comment:s}))},Xh="commentsContainerVisibilityArea",Qh=qn((()=>({root:{display:"flex",alignItems:"start"},addButton:{visibility:"hidden","&$showAlways":{visibility:"visible"},[`.${Xh}:hover &`]:{visibility:"visible"}},showAlways:{}}))),Jh=({className:e,uri:t,objectType:n,relatedObjectUris:i,onChangePopupVisibility:a,allowOnlyOneComment:l=!1,showAlways:s=!1})=>{const c=Qh(),[u,d]=(0,r.useState)(null),[p,h]=(0,r.useState)(!1),m=p&&Boolean(u),{currentComment:g,commentsMap:v,getComment:y,clearCurrentComment:b,objectTypes:x}=(0,r.useContext)(pf),E=!!v&&(!x||x.includes(n)),C=((null==v?void 0:v[t])||[]).filter((({status:e})=>"resolved"!==e)).reverse(),w=!l||l&&0===C.length,k=null===g&&m;lf((()=>{a&&a(m)}),[m]);const _=(0,r.useContext)(sf),O=(0,r.useMemo)((()=>_?[...i,..._]:i),[_,i]);return E&&o().createElement("div",{"data-reltio-id":"comments-container",className:f()(c.root,e)},w&&o().createElement(kf,{className:f()(c.addButton,{[c.showAlways]:s||k}),onClick:e=>{d(e.currentTarget),h(!0)}}),C.map((({replies:e,commentId:t})=>o().createElement(Ef,{ref:t===(null==g?void 0:g.commentId)?d:null,key:t,onClick:()=>(e=>{y(e),h(!0)})(t)},1+e))),o().createElement(Yh,{anchorEl:u,open:m,onClose:()=>{d(null),b(),h(!1)},uri:t,relatedObjectUris:O,objectType:n,comment:g}))};function em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){tm(e,t,n[t])}))}return e}function tm(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nm=(e,t)=>t.filter((t=>t.replyId!==e)),rm=(e,t)=>{const n=e.replies.findIndex((({replyId:e})=>e===t.replyId)),r=[...e.replies];return r[n]=t,r},om=[],im=e=>console.warn("Collaboration error",e),am=qn({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),lm=()=>{const e=am(),t=P("clearHistoryEvent"),n=_();return n?o().createElement("div",{className:e.root},o().createElement(Ju(),{component:"div"},u().text("You are viewing a historic slice:")," ",o().createElement("span",{className:e.slice},u().date(n.aStamp,"llll"))),o().createElement(or(),{className:e.cancelButton,variant:"contained",color:"primary",onClick:t},u().text("Cancel"))):null};var sm=n(3628);wd()(sm.Z,{insert:"head",singleton:!1});const cm=sm.Z.locals||{},um=(0,r.memo)((({entity:e,className:t,historySlice:n,children:i})=>{const a=(({objectIds:e=om,objectTypes:t,enabled:n=!0,needsTotalCount:o=!1})=>{const i=k(),a=A(),l=C((e=>e.collaborationPath)),c=C((e=>e.isCollaborationEnabled))&&n,[u,d]=(0,r.useState)(null),[f,h]=(0,r.useState)([]),[m,g]=(0,r.useState)(null),[v,y]=(0,r.useState)(null),[b,x]=(0,r.useState)(null),[E,w]=(0,r.useState)(!1),[_,O]=(0,r.useState)(!1),[S,M]=(0,r.useState)({}),P=(0,r.useCallback)((e=>{g((t=>em({},t,e)))}),[]),R=null==i?void 0:i.uri,T=c&&R&&!(0,s.isTempUri)(R),N=(0,r.useCallback)(((e,t=!1)=>{T?(0,p.pipe)(s.getCommentsCount,(0,p.andThen)((0,p.map)((0,p.props)(["objectId","comments"]))),(0,p.andThen)(p.fromPairs),(0,p.andThen)(t?g:P),(0,p.otherwise)((e=>{console.warn("Collaboration error",e),g(null)})))({uris:e,tenant:a,collaborationPath:l}):g(null)}),[P,l,T,a]),I=(0,r.useCallback)((()=>{if(T){const e=e=>{console.warn("Collaboration error",e),y(null)};(0,p.pipe)(s.getTotalCommentsCount,(0,p.andThen)((0,p.prop)("total")),(0,p.andThen)(y),(0,p.otherwise)(e))({relatedObjectUri:R,collaborationPath:l,tenant:a})}else y(null)}),[T,l,R,a]);(0,r.useEffect)((()=>{o&&I()}),[I,o]),(0,r.useEffect)((()=>{N(e,!0)}),[e,N]);const D=(0,r.useCallback)(((e,t)=>{(0,s.getComments)({collaborationPath:l,tenant:a,relatedObjectUri:e,pageToken:t}).then((({items:e,nextPageToken:n})=>{h((n=>t?(0,p.uniqBy)((0,p.prop)("commentId"),[...n,...e]):e)),d(n)})).catch(im)}),[l,a]),L=(0,r.useCallback)((e=>{O(!0),(0,s.getComment)({collaborationPath:l,tenant:a,commentId:e}).then(x).catch(im).finally((()=>O(!1)))}),[l,a]),F=(0,r.useCallback)((({content:e,namedUsers:t,objectType:n,uri:r,relatedObjectUris:o})=>{w(!0);const i={objectId:r,content:e,relatedObjectUris:o,objectType:n,visibility:"public",namedUsers:t,permanentLink:`${window.location.href}&commentId=${encodeURIComponent("{commentId}")}`};return(0,s.createComment)({collaborationPath:l,tenant:a,data:i}).then((([e])=>((e,t)=>{x(e),g((n=>em({},n,{[t]:[...n[t]||[],{commentId:e.commentId,replies:0,status:"open"}]}))),h((t=>[e,...t])),y((e=>(e||0)+1))})(e,r))).catch(im).finally((()=>w(!1)))}),[l,a]),j=(0,r.useCallback)((({content:e,namedUsers:t,objectType:n,uri:r,relatedObjectUris:o,commentId:i,replies:c})=>{w(!0);const u={objectId:r,content:e,relatedObjectUris:o,objectType:n,visibility:"public",namedUsers:t,commentId:i,replies:c};return(0,s.updateComment)({collaborationPath:l,tenant:a,data:u}).then((e=>(e=>{x(e),h((0,p.map)((0,p.when)((0,p.propEq)("commentId",e.commentId),(0,p.always)(e))))})(em({},e,{replies:c})))).catch(im).finally((()=>w(!1)))}),[l,a]),z=(0,r.useCallback)((({uri:e,commentId:t})=>{w(!0),(0,s.deleteComment)({collaborationPath:l,tenant:a,commentId:t}).then((()=>((e,t)=>{let n,r;x(null),g((n=>{var o,i;r=null==n||null===(o=n[t])||void 0===o||null===(i=o.find((t=>t.commentId===e)))||void 0===i?void 0:i.replies;const a=n[t]||[];return em({},n,{[t]:a.filter((t=>t.commentId!==e))})})),h((t=>{var r;return n=null===(r=t.find((t=>t.commentId===e)))||void 0===r?void 0:r.replies.length,t.filter((t=>t.commentId!==e))})),y((e=>{var t,o;return Math.max((e||0)-(1+(null!==(t=null!==(o=n)&&void 0!==o?o:r)&&void 0!==t?t:0)),0)}))})(t,e))).catch(im).finally((()=>w(!1)))}),[l,a]),B=(0,r.useCallback)(((e,t,n,r)=>{const o="resolve"===e.action?"resolved":"open",{replyId:i}=e;x("resolved"===o?e=>{if(e)return null}:t=>{if(t)return em({},t,{replies:r?nm(i,t.replies):[...t.replies,e]})}),g((e=>em({},e,{[t]:(e[t]||[]).map((e=>e.commentId===n?em({},e,{status:o,replies:r?e.replies-1:e.replies+1}):e))}))),h((t=>t.map((t=>t.commentId===n?em({},t,{status:o,replies:r?nm(e.replyId,t.replies):[...t.replies,e]}):t)))),y(r?e=>Math.max((e||0)-1,0):e=>(e||0)+1)}),[]),H=(0,r.useCallback)((({uri:e,commentId:t,reply:n})=>{w(!0),(0,s.deleteReply)({collaborationPath:l,tenant:a,commentId:t,replyId:n.replyId}).then((()=>B(n,e,t,!0))).catch(im).finally((()=>w(!1)))}),[l,B,a]),U=(0,r.useCallback)(((e,t)=>{x((t=>{if(t)return em({},t,{replies:rm(t,e)})})),h((n=>n.map((n=>n.commentId===t?em({},n,{replies:rm(n,e)}):n))))}),[]),V=(0,r.useCallback)((({content:e,namedUsers:t,commentId:n,replyId:r})=>{w(!0);const o={content:e,namedUsers:t};return(0,s.updateReply)({collaborationPath:l,tenant:a,commentId:n,replyId:r,data:o}).then((e=>U(e,n))).catch(im).finally((()=>w(!1)))}),[l,a,U]),Z=(0,r.useCallback)((({content:e,namedUsers:t,commentId:n,action:r,uri:o})=>{w(!0);const i={content:e,action:r,namedUsers:t};return(0,s.createReply)({collaborationPath:l,tenant:a,commentId:n,data:i}).then((([e])=>B(e,o,n))).catch(im).finally((()=>w(!1)))}),[l,a,B]),K=(0,r.useCallback)((({commentId:e,uri:t})=>{Z({content:"",namedUsers:[],commentId:e,action:"resolve",uri:t})}),[Z]),q=(0,r.useCallback)((({commentId:e,uri:t})=>{Z({content:"",namedUsers:[],commentId:e,action:"reopen",uri:t})}),[Z]),W=(0,r.useCallback)((()=>{x(null)}),[]),$=(0,r.useCallback)(((e,t)=>(0,p.pathOr)({},[e,t],S)),[S]),G=(0,r.useCallback)(((e,t)=>M((0,p.dissocPath)([e,t]))),[]),Y=(0,r.useCallback)(((e,t,n)=>{M((r=>{const o=[e,t],i=(0,p.path)(o,r);return(0,p.assocPath)(o,(0,p.mergeRight)(i,n),r)}))}),[]);return(0,r.useMemo)((()=>({clearCurrentComment:W,comments:f,commentsMap:m,getCommentState:$,updateCommentState:Y,clearCommentState:G,createComment:F,createReply:Z,currentComment:b,deleteComment:z,editComment:j,getComment:L,getComments:D,getCommentsCount:N,loading:_,objectTypes:t,pageToken:u,reOpenThread:q,resolveThread:K,sending:E,deleteReply:H,editReply:V,totalCommentsCount:v})),[W,f,m,$,Y,G,F,Z,b,z,j,L,D,N,_,t,u,q,K,E,H,V,v])})({objectIds:(0,r.useMemo)((()=>(0,s.getProfileBandObjectIdsForCollaboration)(e)),[e])}),l=(0,s.getEntityUriForLink)(e);return o().createElement(hf,{collaboration:a},o().createElement(Od,{className:f()(t,Xh),entity:(null==n?void 0:n.aEntity)||e},n?o().createElement(lm,null):o().createElement(o().Fragment,null,i?o().createElement("div",{className:f()(cm.profileBandNavigation,cm.navigationRow)},o().createElement(af,null),i):o().createElement(af,{className:cm.profileBandNavigation}),o().createElement(Jh,{className:cm.comments,uri:l,relatedObjectUris:(0,s.createRelatedObjectUris)(s.CollaborationObjectTypes.ENTITY,{entityUri:l}),objectType:s.CollaborationObjectTypes.ENTITY}))))}));um.displayName="ScreenProfileBand";const dm=(0,r.memo)((({entity:e,onOpenDataImport:t,isImportLoading:n})=>o().createElement(um,{entity:e},o().createElement(or(),{variant:"text",color:"primary",onClick:t,startIcon:n?o().createElement(Gu(),{size:18}):o().createElement(Xu(),null),title:u().text("Import data"),disabled:n},u().text("Import")))));dm.displayName="HierarchyProfileBand";var fm=n(9681),pm=n.n(fm);const hm=qn({loadingOverlay:{position:"absolute",width:"100%",height:"100%",top:0,left:0,zIndex:10,backgroundColor:"rgba(255, 255, 255, 0.37)"},transparent:{backgroundColor:"transparent"},relativePosition:{position:"relative"}}),mm=({transparent:e=!1,relativePosition:t=!1,className:n})=>{const r=hm();return o().createElement("div",{"data-reltio-id":"reltio-linear-load-indicator",className:f()(r.loadingOverlay,n,{[r.transparent]:e,[r.relativePosition]:t})},o().createElement(pm(),{color:"primary"}))};function gm(){return gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gm.apply(null,arguments)}function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vm.apply(null,arguments)}function ym(){return ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ym.apply(null,arguments)}function bm(){return bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bm.apply(null,arguments)}function xm(){return xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xm.apply(null,arguments)}function Em(){return Em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Em.apply(null,arguments)}const Cm=qn((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","&$root_small":{minHeight:"160px"},"& $text":{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},root_small:{},small:{width:"88px",height:"88px"},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));function wm(){return wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wm.apply(null,arguments)}let km=function(e){return e.full="full",e.embedded="embedded",e.small="small",e}({});const _m={SEARCH_RESULTS:e=>o().createElement("svg",gm({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgEmptySearchResults"},e),o().createElement("defs",null,o().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},o().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),o().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),o().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},o().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),o().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),o().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},o().createElement("stop",{stopColor:"#FFF",offset:"0%"}),o().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),o().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),o().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},o().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),o().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),o().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},o().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),o().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),o().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},o().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),o().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),o().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},o().createElement("g",{transform:"translate(56 34)"},o().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},o().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),o().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),o().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),o().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),o().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),o().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),o().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),o().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),o().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),o().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},o().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),o().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),o().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),o().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),o().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),o().createElement("g",null,o().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),o().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),o().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),o().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),o().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),o().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),o().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),o().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>o().createElement("svg",vm({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgSelectAttributes"},e),o().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),o().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},o().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),o().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),o().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),o().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),o().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),o().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),o().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),o().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),o().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),o().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),o().createElement("defs",null,o().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),o().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})))),NO_DATA:e=>o().createElement("svg",ym({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgNoData"},e),o().createElement("defs",null,o().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),o().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),o().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},o().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),o().createElement("stop",{stopColor:"#000",offset:"100%"})),o().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},o().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),o().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),o().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},o().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),o().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),o().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),o().createElement("feMerge",null,o().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),o().createElement("feMergeNode",{in:"SourceGraphic"}))),o().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),o().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},o().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},o().createElement("use",{xlinkHref:"#NoData_svg__a"})),o().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),o().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),o().createElement("g",{mask:"url(#NoData_svg__c)"},o().createElement("g",{transform:"translate(29 37)"},o().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},o().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),o().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),o().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),o().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),o().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),o().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),o().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),o().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),o().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),o().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),o().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),o().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),o().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),o().createElement("g",{mask:"url(#NoData_svg__c)"},o().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),o().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),o().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},o().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),o().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),o().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),o().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),o().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>o().createElement("svg",bm({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgError"},e),o().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},o().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),o().createElement("g",{mask:"url(#Error_svg__a)"},o().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),o().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),o().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),o().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),o().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),o().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),o().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),o().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),o().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),o().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),o().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),o().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),o().createElement("g",{filter:"url(#Error_svg__filter0_d)"},o().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),o().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),o().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),o().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),o().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),o().createElement("g",{filter:"url(#Error_svg__filter1_d)"},o().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),o().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),o().createElement("g",{filter:"url(#Error_svg__filter2_d)"},o().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),o().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),o().createElement("defs",null,o().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o().createElement("feOffset",{dy:2}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),o().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o().createElement("feOffset",{dy:2}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),o().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),o().createElement("feOffset",{dy:2}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),o().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:0}),o().createElement("stop",{offset:1})))),LOADING:e=>o().createElement("svg",wm({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgEmptyLoading"},e),o().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.03}),o().createElement("mask",{id:"EmptyLoading_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},o().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),o().createElement("g",{mask:"url(#EmptyLoading_svg__a)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#EmptyLoading_svg__paint0_linear_2978_41880)"}),o().createElement("g",{fillRule:"evenodd",clipRule:"evenodd"},o().createElement("path",{d:"M40.755 44.17C40.755 38.002 45.76 33 51.92 33h251.675c6.167 0 11.166 5.001 11.166 11.17v160.596H40.755V44.171z",fill:"#5E7282"}),o().createElement("path",{d:"M50.371 43.106h255.685V195.71H50.371V43.106z",fill:"url(#EmptyLoading_svg__paint1_linear_2978_41880)"}),o().createElement("path",{d:"M15.545 208.914c2.321.469 4.723.716 7.183.716H338.75c.22 0 .439-.002.658-.006-7.061 8.445-17.67 13.816-29.524 13.816H45.655c-12.111 0-22.916-5.597-29.968-14.349l-.142-.177z",fill:"#BDCBD8"}),o().createElement("path",{d:"M339.015 204.883v4.966H15v-4.966h324.015z",fill:"#D4DCDF"}),o().createElement("path",{d:"M201.107 213.991h-45.221a11.176 11.176 0 01-11.046-9.449h67.314a11.172 11.172 0 01-11.047 9.449z",fill:"url(#EmptyLoading_svg__paint2_linear_2978_41880)"})),o().createElement("g",{filter:"url(#EmptyLoading_svg__filter0_d_2978_41880)"},o().createElement("rect",{x:81.703,y:99,width:170,height:26,rx:8,fill:"#D1E6FF"}),o().createElement("rect",{x:84.703,y:102,width:164,height:20,rx:5,stroke:"#fff",strokeWidth:6})),o().createElement("g",{filter:"url(#EmptyLoading_svg__filter1_d_2978_41880)"},o().createElement("mask",{id:"EmptyLoading_svg__b",fill:"#fff"},o().createElement("rect",{x:81,y:105,width:108,height:14,rx:2})),o().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,fill:"#61A3F1"}),o().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,stroke:"#4A90E2",strokeWidth:8,mask:"url(#EmptyLoading_svg__b)"})),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M122.703 74a3 3 0 013-3h81.625a3 3 0 010 6h-81.625a3 3 0 01-3-3z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M146.703 86a3 3 0 013-3h34a3 3 0 110 6h-34a3 3 0 01-3-3zM136.703 139a3 3 0 013-3h54a3 3 0 110 6h-54a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M112.703 151a3 3 0 013-3h103a3 3 0 110 6h-103a3 3 0 01-3-3zM124.703 163a3 3 0 013-3h79a3 3 0 110 6h-79a3 3 0 01-3-3z",fill:"#979797"}),o().createElement("g",{filter:"url(#EmptyLoading_svg__filter2_ddd_2978_41880)"},o().createElement("path",{fill:"#A0C1D7",d:"M70.703 64h11v8h-11z"}),o().createElement("rect",{x:62,y:59,width:28,height:8,rx:1,fill:"#BDD4E3"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.23 160.5c20.704 20.703 54.27 20.703 74.973 0 20.703-20.703 20.703-54.27 0-74.973-20.703-20.703-54.27-20.703-74.973 0-20.703 20.703-20.703 54.27 0 74.973z",fill:"#BDD4E3"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M113.427 85.988c20.463 20.652 20.404 53.981-.175 74.561-20.432 20.431-53.432 20.635-74.115.613l-.446-.439 74.736-74.735z",fill:"#A0C1D7"}),o().createElement("path",{opacity:.144,fillRule:"evenodd",clipRule:"evenodd",d:"M75.037 175.385c29.402 0 53.236-23.834 53.236-53.236a54.67 54.67 0 00-.106-3.399L100.45 91.037l-55.142 58.396 25.814 25.811c1.293.094 2.598.141 3.915.141z",fill:"url(#EmptyLoading_svg__paint3_linear_2978_41880)"}),o().createElement("circle",{cx:75.94,cy:123.237,r:44.723,fill:"#91B0C2"}),o().createElement("g",{filter:"url(#EmptyLoading_svg__filter3_d_2978_41880)"},o().createElement("circle",{r:42.793,transform:"matrix(-1 0 0 1 75.94 123.237)",fill:"#F7F4FF"})),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M105.043 175.309l-10.298.861-20.313-20.152.863-2.292-9.973-9.982 18.679-6.882h-4.308l-8.943-8.951 4.545-10.532L94.35 90.74l37.888 37.162c-.343 20.088-11.146 37.627-27.195 47.407z",fill:"url(#EmptyLoading_svg__paint4_linear_2978_41880)"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.703 123a8 8 0 0112.362-6.707l14.477-25.145A36.828 36.828 0 0075.703 86c-20.434 0-37 16.565-37 37h29z",fill:"url(#EmptyLoading_svg__paint5_angular_2978_41880)"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.297 90.6l.24.138s-12.45 35.125-12.811 35.752a6.92 6.92 0 01-11.985-6.92c.361-.626 24.556-28.97 24.556-28.97z",fill:"#323232"}),o().createElement("circle",{cx:75.94,cy:123.237,r:2.896,fill:"#EEEBF6"}),o().createElement("circle",{cx:96.211,cy:148.655,r:2.574,fill:"#A0C3D7"}),o().createElement("circle",{cx:107.15,cy:131.924,r:2.574,fill:"#A0C3D7"}),o().createElement("rect",{x:62.427,y:135.592,width:27.027,height:10.039,rx:3,fill:"#A0C3D7"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M85.914 170.534H75.112l-21.605-21.472 2.126-2.775v-1.01L42.8 132.523l2.853-2.529 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint6_linear_2978_41880)"}),o().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M96.362 136.555h-4.988l-38.126-38.01 2.853-2.53 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint7_linear_2978_41880)"}),o().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M116.746 129.006h-4.988L73.632 90.995l2.853-2.53 40.261 40.541z",fill:"url(#EmptyLoading_svg__paint8_linear_2978_41880)"}),o().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M85.793 152.41h-4.988l-38.126-38.011 2.852-2.53 40.262 40.541z",fill:"url(#EmptyLoading_svg__paint9_linear_2978_41880)"}),o().createElement("circle",{cx:75.618,cy:155.734,r:2.574,fill:"#A0C3D7"}),o().createElement("circle",{cx:55.026,cy:148.655,r:2.574,fill:"#A0C3D7"}),o().createElement("circle",{cx:44.73,cy:131.924,r:2.574,fill:"#A0C3D7"}),o().createElement("g",{fill:"#A0C3D7"},o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 96.21 97.363)"}),o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 107.149 114.094)"}),o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 75.618 90.284)"}),o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 55.026 97.363)"}),o().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 44.73 114.094)"})))),o().createElement("defs",null,o().createElement("linearGradient",{id:"EmptyLoading_svg__paint0_linear_2978_41880",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),o().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint1_linear_2978_41880",x1:178.214,y1:43.106,x2:178.214,y2:195.709,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#F2F9FB"}),o().createElement("stop",{offset:1,stopColor:"#fff"})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint2_linear_2978_41880",x1:178.497,y1:204.542,x2:178.497,y2:213.991,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#90AABF"}),o().createElement("stop",{offset:1,stopColor:"#869DAE"})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint3_linear_2978_41880",x1:154.275,y1:146.574,x2:96.683,y2:91.352,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint4_linear_2978_41880",x1:60.762,y1:143.327,x2:114.747,y2:176.019,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.87}),o().createElement("stop",{offset:1,stopOpacity:.01})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint6_linear_2978_41880",x1:90.287,y1:154.267,x2:68.53,y2:131.301,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint7_linear_2978_41880",x1:100.735,y1:120.288,x2:78.978,y2:97.322,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint8_linear_2978_41880",x1:121.119,y1:112.739,x2:99.362,y2:89.773,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"EmptyLoading_svg__paint9_linear_2978_41880",x1:90.166,y1:136.143,x2:68.409,y2:113.177,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("filter",{id:"EmptyLoading_svg__filter0_d_2978_41880",x:77.703,y:96,width:178,height:34,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:1}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),o().createElement("filter",{id:"EmptyLoading_svg__filter1_d_2978_41880",x:77,y:102,width:116,height:22,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:1}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),o().createElement("filter",{id:"EmptyLoading_svg__filter2_ddd_2978_41880",x:-13.297,y:28,width:181.534,height:189.17,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feMorphology",{radius:4,operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_2978_41880"}),o().createElement("feOffset",{dy:7}),o().createElement("feGaussianBlur",{stdDeviation:4}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.600156 0 0 0 0 0.745337 0 0 0 0 0.8625 0 0 0 0.1 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feMorphology",{radius:4,operator:"dilate",in:"SourceAlpha",result:"effect2_dropShadow_2978_41880"}),o().createElement("feOffset",{dy:5}),o().createElement("feGaussianBlur",{stdDeviation:16}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),o().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_2978_41880",result:"effect2_dropShadow_2978_41880"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feMorphology",{radius:2,operator:"dilate",in:"SourceAlpha",result:"effect3_dropShadow_2978_41880"}),o().createElement("feOffset",{dy:12}),o().createElement("feGaussianBlur",{stdDeviation:8.5}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),o().createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_2978_41880",result:"effect3_dropShadow_2978_41880"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_2978_41880",result:"shape"})),o().createElement("filter",{id:"EmptyLoading_svg__filter3_d_2978_41880",x:29.148,y:78.444,width:93.585,height:93.585,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:2}),o().createElement("feGaussianBlur",{stdDeviation:2}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),o().createElement("radialGradient",{id:"EmptyLoading_svg__paint5_angular_2978_41880",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(-56.035 152.55 -12.515) scale(43.4058 65.5062)"},o().createElement("stop",{stopColor:"#CFE8FF"}),o().createElement("stop",{offset:.599,stopColor:"#D1F2F9",stopOpacity:0})))),NO_LOGS:e=>o().createElement("svg",xm({width:80,height:81,viewBox:"0 0 80 81",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgNoLogs"},e),o().createElement("circle",{cx:40,cy:40.5,r:40,fill:"#0072CE",fillOpacity:.1}),o().createElement("mask",{id:"NoLogs_svg__a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:81},o().createElement("circle",{cx:40,cy:40.5,r:40,fill:"#fff"})),o().createElement("g",{mask:"url(#NoLogs_svg__a)",fillRule:"evenodd",clipRule:"evenodd"},o().createElement("path",{d:"M-5 3.313h80V80.5H-5V3.312z",fill:"url(#NoLogs_svg__paint0_linear_8548_48660)"}),o().createElement("path",{opacity:.05,d:"M58.675 18.27L77 36.596v46.522H29.182L16.25 70.84V18.27h42.425z",fill:"url(#NoLogs_svg__paint1_linear_8548_48660)"}),o().createElement("path",{opacity:.06,d:"M14.688 18.625h63.124c1.209 0 2.188.98 2.188 2.188v49.062c0 1.208-.98 2.188-2.188 2.188H14.688a2.188 2.188 0 01-2.188-2.188V20.812c0-1.208.98-2.187 2.188-2.187z",fill:"#000"}),o().createElement("path",{d:"M15.625 18h62.813C79.3 18 80 18.7 80 19.563v49.062c0 .863-.7 1.563-1.563 1.563H15.626c-.863 0-1.563-.7-1.563-1.563V19.562c0-.862.7-1.562 1.563-1.562z",fill:"#fff"}),o().createElement("path",{opacity:.8,d:"M18.526 25.017c0-.518.42-.938.938-.938h13.008a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.937z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 25.017c0-.518.419-.938.937-.938H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.937z",fill:"#979797"}),o().createElement("path",{opacity:.8,d:"M18.526 47.753c0-.517.42-.937.938-.937h13.008a.938.938 0 010 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 47.753c0-.517.419-.937.937-.937H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.938z",fill:"#979797"}),o().createElement("path",{opacity:.8,d:"M18.526 56.174c0-.517.42-.937.938-.937h25.508a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.938zM18.526 63.753c0-.517.42-.937.938-.937h19.611a.938.938 0 010 1.875H19.464a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 56.174c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938zM55.58 63.753c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938z",fill:"#979797"}),o().createElement("path",{opacity:.8,d:"M18.526 32.174c0-.517.42-.937.938-.937h25.508a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 32.174c0-.517.419-.937.937-.937H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.938z",fill:"#979797"}),o().createElement("path",{opacity:.8,d:"M18.526 39.753c0-.517.42-.937.938-.937h25.508a.938.938 0 010 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,d:"M55.58 39.753c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938z",fill:"#979797"}),o().createElement("path",{opacity:.6,d:"M15.625 7.375H73.75c1.035 0 1.875.84 1.875 1.875v5.625c0 1.036-.84 1.875-1.875 1.875H15.625a1.875 1.875 0 01-1.875-1.875V9.25c0-1.036.84-1.875 1.875-1.875z",fill:"#fff"}),o().createElement("path",{opacity:.2,d:"M18.125 12.063c0-1.036.84-1.876 1.875-1.876h21.875a1.875 1.875 0 010 3.75H20a1.875 1.875 0 01-1.875-1.874zM55.158 12.079c0-1.047.848-1.895 1.895-1.895H72.21a1.895 1.895 0 110 3.79H57.052a1.895 1.895 0 01-1.894-1.895z",fill:"#979797"})),o().createElement("defs",null,o().createElement("linearGradient",{id:"NoLogs_svg__paint0_linear_8548_48660",x1:-5,y1:3.313,x2:-5,y2:80.5,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),o().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"NoLogs_svg__paint1_linear_8548_48660",x1:83.162,y1:57.097,x2:48.401,y2:24.776,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})))),NO_ACTIVATIONS:e=>o().createElement("svg",Em({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgNoActivations"},e),o().createElement("circle",{cx:100,cy:100,r:100,fill:"#0072CE",fillOpacity:.1}),o().createElement("mask",{id:"NoActivation_svg__a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:200,height:200},o().createElement("circle",{cx:100,cy:100,r:100,fill:"#fff"})),o().createElement("g",{mask:"url(#NoActivation_svg__a)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-12.5 7.031h200V200h-200V7.031z",fill:"url(#NoActivation_svg__paint0_linear_8548_48982)"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M146.688 44.426L192.5 90.237v116.306H72.956l-32.331-30.697V44.426h106.063z",fill:"url(#NoActivation_svg__paint1_linear_8548_48982)"}),o().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M36.719 45.313H194.53A5.468 5.468 0 01200 50.78v122.657a5.468 5.468 0 01-5.469 5.468H36.719a5.468 5.468 0 01-5.469-5.468V50.781a5.469 5.469 0 015.469-5.468z",fill:"#000"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.063 43.75h157.031A3.906 3.906 0 01200 47.656v122.656a3.907 3.907 0 01-3.906 3.907H39.063a3.907 3.907 0 01-3.907-3.907V47.656a3.906 3.906 0 013.907-3.906z",fill:"#fff"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 56.746a2.344 2.344 0 012.343-2.344h32.52a2.343 2.343 0 010 4.688h-32.52a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 66.121a2.344 2.344 0 012.344-2.344h50.16a2.344 2.344 0 110 4.688h-50.16a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 127.344A2.344 2.344 0 0184.668 125h32.52a2.344 2.344 0 010 4.688h-32.52a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 136.719a2.344 2.344 0 012.344-2.344h50.16a2.343 2.343 0 110 4.687h-50.16a2.343 2.343 0 01-2.344-2.343z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 150.781a2.343 2.343 0 012.343-2.343h63.77a2.343 2.343 0 010 4.687h-63.77a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 160.156a2.344 2.344 0 012.344-2.344h57.973a2.343 2.343 0 010 4.688H84.375a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M108.106 80.469a2.344 2.344 0 012.344-2.344h63.769a2.344 2.344 0 010 4.688H110.45a2.344 2.344 0 01-2.344-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M107.812 89.844a2.344 2.344 0 012.344-2.344h50.16a2.344 2.344 0 110 4.688h-50.16a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),o().createElement("circle",{cx:52.344,cy:61.719,r:7.031,fill:"#B6C7DB"}),o().createElement("circle",{cx:52.344,cy:61.719,r:7.031,fill:"#B6C7DB"}),o().createElement("circle",{cx:93.75,cy:82.813,r:4.688,fill:"#B6C7DB"}),o().createElement("circle",{cx:93.75,cy:106.25,r:4.688,fill:"#B6C7DB"}),o().createElement("circle",{cx:52.344,cy:132.031,r:7.031,fill:"#B6C7DB"}),o().createElement("circle",{cx:52.344,cy:155.469,r:7.031,fill:"#B6C7DB"}),o().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M108.106 103.906a2.344 2.344 0 012.344-2.344h63.769a2.344 2.344 0 010 4.688H110.45a2.343 2.343 0 01-2.344-2.344z",fill:"#B6C7DB"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M107.812 113.281a2.344 2.344 0 012.344-2.343h57.973a2.344 2.344 0 010 4.687h-57.973a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M72.277 84.375v-6.25h-1.563v31.535h8.734v-1.562h-7.171v-22.16h7.17v-1.563h-7.17z",fill:"#2B98F0"}),o().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M74.274 60.156l-2.762 2.762-2.762-2.762h5.524z",fill:"#000"}),o().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M39.063 17.188h145.312a4.687 4.687 0 014.687 4.687v14.063a4.687 4.687 0 01-4.687 4.687H39.062a4.688 4.688 0 01-4.687-4.688V21.876a4.688 4.688 0 014.688-4.688z",fill:"#fff"}),o().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M45.313 28.906A4.687 4.687 0 0150 24.22h54.688a4.688 4.688 0 010 9.375H50a4.688 4.688 0 01-4.688-4.688zM115.625 28.906a4.688 4.688 0 014.688-4.687h7.812a4.687 4.687 0 010 9.375h-7.813a4.688 4.688 0 01-4.687-4.688z",fill:"#979797"})),o().createElement("g",{filter:"url(#NoActivation_svg__filter0_d_8548_48982)"},o().createElement("path",{d:"M130.469 168.75c21.573 0 39.062-17.489 39.062-39.062 0-21.574-17.489-39.063-39.062-39.063-21.574 0-39.063 17.489-39.063 39.063 0 21.573 17.489 39.062 39.063 39.062z",fill:"#000"})),o().createElement("path",{d:"M130.469 168.75c21.573 0 39.062-17.489 39.062-39.062 0-21.574-17.489-39.063-39.062-39.063-21.574 0-39.063 17.489-39.063 39.063 0 21.573 17.489 39.062 39.063 39.062z",fill:"#93D204"}),o().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 78.906c28.045 0 50.781 22.736 50.781 50.781 0 28.046-22.736 50.782-50.781 50.782-28.046 0-50.781-22.736-50.781-50.782 0-28.045 22.735-50.78 50.781-50.78zm-.391 5.469c-24.81 0-44.922 20.112-44.922 44.922s20.112 44.922 44.922 44.922S175 154.107 175 129.297s-20.112-44.922-44.922-44.922z",fill:"#A9F300"}),o().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 88.281c22.868 0 41.406 18.538 41.406 41.406 0 22.869-18.538 41.407-41.406 41.407s-41.406-18.538-41.406-41.407c0-22.868 18.538-41.406 41.406-41.406zm0 4.644c-20.304 0-36.763 16.459-36.763 36.762 0 20.304 16.459 36.763 36.763 36.763 20.303 0 36.762-16.459 36.762-36.763 0-20.303-16.459-36.762-36.762-36.762z",fill:"#A9F300"}),o().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 60.156c38.401 0 69.531 31.13 69.531 69.532 0 38.401-31.13 69.531-69.531 69.531-38.401 0-69.531-31.13-69.531-69.531 0-38.401 31.13-69.532 69.531-69.532zm-.391 7.813c-33.87 0-61.328 27.457-61.328 61.328 0 33.87 27.457 61.328 61.328 61.328s61.328-27.458 61.328-61.328c0-33.87-27.457-61.328-61.328-61.328z",fill:"#A9F300"}),o().createElement("path",{d:"M130.469 163.281c18.553 0 33.593-15.04 33.593-33.593 0-18.554-15.04-33.594-33.593-33.594-18.554 0-33.594 15.04-33.594 33.594 0 18.553 15.04 33.593 33.594 33.593z",fill:"#A5E418"}),o().createElement("path",{opacity:.05,d:"M182.031 146.094l-34.375-34.375-5.344 2.343-11.719-11.718-.905 22.656-13.282-13.281-7.031 10.156v23.437l36.719 36.719 35.937-35.937z",fill:"url(#NoActivation_svg__paint2_linear_8548_48982)"}),o().createElement("g",{filter:"url(#NoActivation_svg__filter1_d_8548_48982)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 102.344a3.907 3.907 0 00-3.907 3.906v17.969a3.907 3.907 0 007.813 0V106.25a3.906 3.906 0 00-3.906-3.906zm17.996 9.347a3.907 3.907 0 00-5.524 5.524 18.186 18.186 0 013.943 19.825 18.187 18.187 0 01-26.912 8.163 18.182 18.182 0 01-7.735-18.674 18.194 18.194 0 014.978-9.314 3.905 3.905 0 10-5.524-5.524 26.008 26.008 0 00-5.637 28.338 26 26 0 0024.024 16.053 25.999 25.999 0 0024.024-16.053 26.007 26.007 0 00-5.637-28.338z",fill:"#fff"})),o().createElement("defs",null,o().createElement("linearGradient",{id:"NoActivation_svg__paint0_linear_8548_48982",x1:-12.5,y1:7.031,x2:-12.5,y2:200,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),o().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),o().createElement("linearGradient",{id:"NoActivation_svg__paint1_linear_8548_48982",x1:207.904,y1:141.493,x2:121.002,y2:60.688,gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:.01}),o().createElement("stop",{offset:1})),o().createElement("linearGradient",{id:"NoActivation_svg__paint2_linear_8548_48982",x1:123.438,y1:112.109,x2:172.656,y2:161.328,gradientUnits:"userSpaceOnUse"},o().createElement("stop",null),o().createElement("stop",{offset:1,stopOpacity:0})),o().createElement("filter",{id:"NoActivation_svg__filter0_d_8548_48982",x:88.281,y:89.063,width:84.375,height:84.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:1.563}),o().createElement("feGaussianBlur",{stdDeviation:1.563}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8548_48982"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8548_48982",result:"shape"})),o().createElement("filter",{id:"NoActivation_svg__filter1_d_8548_48982",x:100.95,y:100.781,width:58.257,height:59.988,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},o().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),o().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o().createElement("feOffset",{dy:1.563}),o().createElement("feGaussianBlur",{stdDeviation:1.563}),o().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),o().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8548_48982"}),o().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8548_48982",result:"shape"}))))},Om=({variant:e=km.full,LogoRenderer:t=_m.SEARCH_RESULTS,text:n,secondaryText:r,buttonTitle:i,onClick:a=p.identity,access:l,children:s})=>{const c=Cm(),u=l&&i;return o().createElement("div",{className:f()(c.root,c[`root_${e}`])},o().createElement(t,{className:c[`${e}`]}),o().createElement("div",{className:c.textBox},o().createElement(Ju(),{variant:"h5",classes:{h5:c.text}},n),r&&o().createElement(Ju(),{variant:"subtitle1",classes:{subtitle1:c.secondaryText}},r)),s,u&&o().createElement(or(),{className:c.button,variant:"contained",color:"primary",onClick:a},i))};function Sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Am(e,t,n[t])}))}return e}function Am(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mm=qn((e=>({basicViewPaper:Sm({display:"flex",flexDirection:"column"},e.basicView)})));function Pm(){return Pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pm.apply(null,arguments)}const Rm=(0,r.forwardRef)(((e,t)=>{let{children:n,className:r}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className"]);const a=Mm();return o().createElement(Pf(),Pm({ref:t,className:r,classes:{root:a.basicViewPaper}},i),n)}));Rm.displayName="BasicView";const Tm=o().createContext(void 0);function Nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Im(e,t,n[t])}))}return e}function Im(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Tm.displayName="PageRequestsAbortingContext";let Dm=1;const Lm=e=>{var t,n;if(null==e||!e.entityId)return null;const r=(null===(t=e.children)||void 0===t?void 0:t.length)>0||e.hasMoreChildren;return Nm({id:Dm++,entityId:e.entityId,label:e.label,entityType:e.entityType,pending:e.hasMoreChildren,hasManyParents:e.hasManyParents,selected:e.selected,connectionId:e.connectionId,isLoading:!1},r?{children:(null!==(n=e.children)&&void 0!==n?n:[]).map(Lm).filter(Boolean)}:{})},Fm=(e=[],t=[])=>(0,p.reduce)(((e,t)=>(0,p.any)((0,p.eqProps)("id",t),e)?e:(0,p.append)(t,e)),[...e],t),jm=(e,t)=>t&&0!==e.length?e.reduce(((e,n)=>{var r;const o=n.entityId===t?[[n]]:[],i=(null!==(r=n.children)&&void 0!==r?r:[]).reduce(((e,r)=>{const o=(0,s.getPathByCondition)((({entityId:e})=>e===t),r);return o.length>0&&e.push([n,...o]),e}),[]);return e.push(...o,...i),e}),[]):[],zm=(e,t,n)=>e.map((e=>(0,s.mapTree)(e,{nodeProcessing:e=>t(e)?n(e):e})));var Bm=n(251),Hm=n.n(Bm),Um=n(4635),Vm=n.n(Um),Zm=n(6177),Km=n.n(Zm),qm=n(480),Wm=n.n(qm),$m=n(5340);wd()($m.Z,{insert:"head",singleton:!1});const Gm=$m.Z.locals||{},Ym=(0,r.memo)((({children:e,onFileDrop:t,isAcceptableFile:n,className:i})=>{const[a,l]=(0,r.useState)(!1),s=(0,r.useCallback)((e=>"Files"===e),[]),c=(0,r.useCallback)((e=>{e.preventDefault();const t=e.dataTransfer.types[0],n=s(t);e.dataTransfer.dropEffect=n?"copy":"none",l(n)}),[s]),d=(0,r.useCallback)((e=>{e.preventDefault();const t=e.dataTransfer.types[0];l(s(t))}),[s]),p=(0,r.useCallback)((e=>{e.preventDefault();const t=e.relatedTarget;(!t||e.currentTarget.contains(t))&&t||l(!1)}),[]),h=(0,r.useCallback)((e=>{var r,o;e.preventDefault(),l(!1);const i=e.dataTransfer.types[0];if(!s(i))return;const a=null!==(r=null===(o=e.dataTransfer.files)||void 0===o?void 0:o[0])&&void 0!==r?r:null;a&&(n&&!n(a)||t(a))}),[s,n,t]);return o().createElement("div",{className:f()(Gm.root,i,{[Gm.active]:a}),role:"button",tabIndex:0,"aria-label":u().text("Drop files here"),onDragOver:c,onDragEnter:d,onDragLeave:p,onDrop:h},e)}));function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xm.apply(null,arguments)}Ym.displayName="FileDropZone";const Qm=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",Xm({width:"160",height:"160",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("circle",{cx:"80",cy:"80",r:"80",fill:"#A792CD",fillOpacity:".3"}),o().createElement("mask",{id:"svg1626345856a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"160",height:"160"},o().createElement("circle",{cx:"80",cy:"80",r:"80",fill:"#fff"})),o().createElement("g",{mask:"url(#svg1626345856a)"},o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-1.875 67.908c0 20.45 16.498 37.022 36.886 37.022h79.91c17.001 0 30.75-13.816 30.75-30.83 0-16.298-12.609-29.637-28.57-30.76-4.259-21.165-22.87-37.09-45.203-37.09-17.773 0-33.198 10.106-40.91 24.874C12.51 33.132-1.876 48.852-1.876 67.908z",fill:"#C5F1FF"}),o().createElement("ellipse",{cx:"35.23",cy:"68.133",rx:"35.31",ry:"35.831",fill:"url(#paint0_linear_1770_144249)"}),o().createElement("ellipse",{cx:"71.686",cy:"52.317",rx:"40.354",ry:"40.949",fill:"url(#paint1_linear_1770_144249)"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.014 76.25a2.5 2.5 0 012.5-2.5h103.361a2.5 2.5 0 012.5 2.5v64.375a2.5 2.5 0 01-2.5 2.5H53.514a2.5 2.5 0 01-2.5-2.5V76.25z",fill:"#fff",fillOpacity:".8"}),o().createElement("path",{opacity:".5",fillRule:"evenodd",clipRule:"evenodd",d:"M61.25 68.75a2.5 2.5 0 012.5-2.5h103.361a2.5 2.5 0 012.5 2.5v64.375a2.5 2.5 0 01-2.5 2.5H63.75a2.5 2.5 0 01-2.5-2.5V68.75z",fill:"#fff",fillOpacity:".8"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M127.659 87.033a2.658 2.658 0 012.658-2.658h17.227a2.658 2.658 0 110 5.316h-17.227a2.658 2.658 0 01-2.658-2.658zM59.334 87.033a2.658 2.658 0 012.658-2.658h21.492a2.658 2.658 0 110 5.316H61.992a2.658 2.658 0 01-2.658-2.658zM93.209 87.033a2.658 2.658 0 012.658-2.658h6.26a2.658 2.658 0 110 5.316h-6.26a2.658 2.658 0 01-2.658-2.658zM110.435 87.033a2.657 2.657 0 012.657-2.658h6.261a2.658 2.658 0 110 5.316h-6.261a2.657 2.657 0 01-2.657-2.658zM127.659 97.658A2.658 2.658 0 01130.317 95h17.227a2.658 2.658 0 110 5.316h-17.227a2.658 2.658 0 01-2.658-2.658zM59.334 97.658A2.658 2.658 0 0161.992 95h21.492a2.658 2.658 0 110 5.316H61.992a2.658 2.658 0 01-2.658-2.658zM93.209 97.658A2.658 2.658 0 0195.867 95h6.26a2.658 2.658 0 110 5.316h-6.26a2.658 2.658 0 01-2.658-2.658z",fill:"#979797"}),o().createElement("path",{opacity:".743",fillRule:"evenodd",clipRule:"evenodd",d:"M110.435 97.658A2.657 2.657 0 01113.092 95h6.261a2.658 2.658 0 110 5.316h-6.261a2.657 2.657 0 01-2.657-2.658z",fill:"#F9578C"}),o().createElement("path",{opacity:".6",fillRule:"evenodd",clipRule:"evenodd",d:"M127.659 108.283a2.658 2.658 0 012.658-2.658h17.227a2.658 2.658 0 110 5.316h-17.227a2.658 2.658 0 01-2.658-2.658z",fill:"#F9BF51"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M59.334 108.283a2.658 2.658 0 012.658-2.658h21.492a2.658 2.658 0 010 5.316H61.992a2.658 2.658 0 01-2.658-2.658zM93.209 108.283a2.658 2.658 0 012.658-2.658h6.26a2.658 2.658 0 110 5.316h-6.26a2.658 2.658 0 01-2.658-2.658z",fill:"#979797"}),o().createElement("path",{opacity:".743",fillRule:"evenodd",clipRule:"evenodd",d:"M110.435 108.283a2.657 2.657 0 012.657-2.658h6.261a2.658 2.658 0 110 5.316h-6.261a2.657 2.657 0 01-2.657-2.658z",fill:"#80B8E4"}),o().createElement("path",{opacity:".2",fillRule:"evenodd",clipRule:"evenodd",d:"M127.659 118.908a2.658 2.658 0 012.658-2.658h17.227a2.658 2.658 0 110 5.316h-17.227a2.658 2.658 0 01-2.658-2.658zM59.334 118.908a2.658 2.658 0 012.658-2.658h21.492a2.658 2.658 0 010 5.316H61.992a2.658 2.658 0 01-2.658-2.658zM93.209 118.908a2.658 2.658 0 012.658-2.658h6.26a2.658 2.658 0 110 5.316h-6.26a2.658 2.658 0 01-2.658-2.658zM110.435 118.908a2.657 2.657 0 012.657-2.658h6.261a2.658 2.658 0 110 5.316h-6.261a2.657 2.657 0 01-2.657-2.658zM127.659 129.533a2.658 2.658 0 012.658-2.658h17.227a2.658 2.658 0 110 5.316h-17.227a2.658 2.658 0 01-2.658-2.658zM59.334 129.533a2.658 2.658 0 012.658-2.658h21.492a2.658 2.658 0 010 5.316H61.992a2.658 2.658 0 01-2.658-2.658zM93.209 129.533a2.658 2.658 0 012.658-2.658h6.26a2.658 2.658 0 110 5.316h-6.26a2.658 2.658 0 01-2.658-2.658z",fill:"#979797"}),o().createElement("path",{opacity:".743",fillRule:"evenodd",clipRule:"evenodd",d:"M110.435 129.533a2.657 2.657 0 012.657-2.658h6.261a2.658 2.658 0 110 5.316h-6.261a2.657 2.657 0 01-2.657-2.658z",fill:"#F9BF51"}),o().createElement("path",{opacity:".1",fillRule:"evenodd",clipRule:"evenodd",d:"M45.188 73.873l22.115 22.115-6.147 11.044 41.907 41.907 36.642-33.517v-3.56l-40.981-40.98H53.905l-8.718 2.99z",fill:"url(#paint2_linear_1770_144249)"}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M84.975 74.162v33.264H61.292V74.162H44.374l28.708-28.537 28.709 28.537H84.975z",fill:"url(#paint3_linear_1770_144249)"})),o().createElement("defs",null,o().createElement("linearGradient",{id:"paint0_linear_1770_144249",x1:"-.08",y1:"32.302",x2:"-.08",y2:"103.963",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#fff"}),o().createElement("stop",{offset:"1",stopColor:"#fff",stopOpacity:".01"})),o().createElement("linearGradient",{id:"paint1_linear_1770_144249",x1:"31.332",y1:"11.368",x2:"31.332",y2:"93.267",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#fff"}),o().createElement("stop",{offset:"1",stopColor:"#fff",stopOpacity:".01"})),o().createElement("linearGradient",{id:"paint2_linear_1770_144249",x1:"149.291",y1:"117.618",x2:"108.037",y2:"68.037",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopOpacity:".01"}),o().createElement("stop",{offset:"1"})),o().createElement("linearGradient",{id:"paint3_linear_1770_144249",x1:"44.375",y1:"45.625",x2:"44.375",y2:"107.426",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#45C0EB"}),o().createElement("stop",{offset:"1",stopColor:"#2193D3"}))))},Jm="hierarchy-import-template.csv",eg=[".csv",".json"],tg=e=>{if(!e)return!1;const t=e.name.toLowerCase();return eg.some((e=>t.endsWith(e)))},ng=e=>{const{visibleNames:t,remainingCount:n}=(e=>{const t=e.slice(0,3),n=Math.max(e.length-3,0);return{visibleNames:t.map((e=>`"${e}"`)).join(", "),remainingCount:n}})(e);return n>0?`${t} +${n}`:t};var rg=n(1631);wd()(rg.Z,{insert:"head",singleton:!1});const og=rg.Z.locals||{},ig=({isOpen:e,onClose:t,onSuccess:n,onLoadingChange:i,onErrorChange:a,templateUrl:l})=>{const c=(0,r.useRef)(null),{selectedFile:d,isUploading:p,setFile:h,downloadTemplate:m,uploadHierarchyFile:g}=(({isOpen:e,onClose:t,onSuccess:n,onLoadingChange:o,onErrorChange:i,templateUrl:a})=>{const[l,c]=(0,r.useState)(null),[d,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(null),[m,g]=(0,r.useState)(void 0),v=(0,r.useContext)(nr);(0,r.useEffect)((()=>{e||(c(null),g(void 0))}),[e]),(0,r.useEffect)((()=>{if(!e)return;const t=null==a?void 0:a.trim();g({url:t||"https://reltio-ui-files.s3.amazonaws.com/hierarchy/hierarchy-import.csv",fileName:Jm})}),[a,e]),(0,r.useEffect)((()=>{o(d)}),[d,o]),(0,r.useEffect)((()=>{i(p)}),[p,i]);const y=(0,r.useCallback)((e=>{c(e),h(null)}),[]),b=(0,r.useCallback)((()=>{var e;if(!m)return;const t=document.createElement("a");t.href=m.url,t.download=null!==(e=m.fileName)&&void 0!==e?e:Jm,document.body.appendChild(t),t.click(),document.body.removeChild(t)}),[m]),x=(0,r.useCallback)((async()=>{if(l&&!d){f(!0),h(null),t();try{var e,r;const t=await(0,s.importHierarchy)({file:l}),o=Object.keys(null!==(e=t.createdInstances)&&void 0!==e?e:{}),i=null!==(r=t.failedHierarchies)&&void 0!==r?r:[],{successMessage:a,errorMessage:c}=((e,t)=>{const n=e.length>0,r=t.length>0;let o,i;if(n){const t=ng(e);o=u().text("The hierarchy ${names} has been successfully imported!",{names:t})}if(r){const e=ng(t);i=u().text("The import of ${names} has encountered an error. Please try again.",{names:e})}return{successMessage:o,errorMessage:i}})(o,i);a&&v(a),h(c||null),await n(t)}catch(e){h((0,s.getRequestErrorMessage)(e,u().text("Failed to upload file"),"message"))}finally{f(!1)}}}),[d,t,l,v,n]);return{selectedFile:l,isUploading:d,setFile:y,downloadTemplate:b,uploadHierarchyFile:x}})({isOpen:e,onClose:t,onSuccess:n,templateUrl:l,onLoadingChange:i,onErrorChange:a}),v=(0,r.useCallback)((()=>{c.current&&(c.current.value="",c.current.click())}),[c]),y=(0,r.useCallback)((e=>{var t,n;h(null!==(t=null===(n=e.target.files)||void 0===n?void 0:n[0])&&void 0!==t?t:null)}),[h]);return o().createElement(Hm(),{open:e,onClose:t,fullWidth:!0,classes:{paper:og.dialog}},o().createElement(Vm(),{classes:{root:og.dialogTitle}},u().text("Import hierarchy")),o().createElement(Wm(),{classes:{root:og.dialogContent}},o().createElement("div",{className:og.templateSection},o().createElement("div",{className:og.templateInfo},o().createElement(Ju(),{variant:"subtitle2"},u().text("Download template")),o().createElement(Ju(),{className:og.templateDescription},u().text("Download the template, enter your hierarchy data, and upload the completed file."))),o().createElement(or(),{variant:"contained",color:"primary",onClick:m},u().text("Download template"))),o().createElement(Ju(),{variant:"subtitle2"},u().text("Select file")),o().createElement(Ym,{className:og.dropZone,onFileDrop:h,isAcceptableFile:tg},o().createElement("div",{className:f()(og.root,og.root_embedded)},o().createElement(Qm,{className:og.embedded}),o().createElement("div",{className:og.textBox},o().createElement(Ju(),{variant:"h5",classes:{h5:og.text}},u().text("Drop files here"))))),o().createElement("div",{className:og.orDivider},o().createElement("span",{className:og.dividerLine}),o().createElement(Ju(),{className:og.orText},u().text("OR")),o().createElement("span",{className:og.dividerLine})),o().createElement("div",{className:og.fileRow},o().createElement(Ju(),{className:f()(og.fileName,d&&og.fileNameSelected)},d?d.name:u().text("No file selected")),o().createElement(or(),{variant:"contained",color:"primary",onClick:v},u().text("Browse"))),o().createElement("input",{ref:c,type:"file",accept:".csv,.json","aria-label":u().text("Select hierarchy file"),className:og.fileInput,onChange:y})),o().createElement(Km(),{classes:{root:og.dialogActions}},o().createElement(or(),{onClick:t},u().text("Cancel")),o().createElement(or(),{onClick:g,color:"primary",disabled:!d||p},u().text("Import hierarchy"))))};var ag=n(8290),lg=n.n(ag),sg=n(4294),cg=n.n(sg);const ug=({message:e,onClose:t})=>o().createElement("div",{className:og.errorBanner,role:"alert"},o().createElement(jd(),{className:og.errorCloseButton,onClick:t,size:"small","aria-label":"close"},o().createElement(cg(),{fontSize:"small"})),o().createElement(lg(),{className:og.errorIcon}),o().createElement(Ju(),{className:og.errorMessage},e));var dg=n(6038),fg=n.n(dg);const pg=qn({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"20px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function hg(){return hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hg.apply(null,arguments)}const mg=e=>{let{title:t="",children:n=null,classes:r={}}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","children","classes"]);const a=pg();return o().createElement(fg(),hg({className:r.root,classes:{root:a.toolbar}},i),t&&o().createElement(Ju(),{className:r.title,classes:{root:a.title},variant:"h6"},u().text(t)),n)};var gg=n(8282),vg=n.n(gg);const yg=qn((e=>({expanded:{transform:"rotate(180deg)"},disabled:{color:`${e.palette.text.disabled} !important`}})));function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bg.apply(null,arguments)}const xg=e=>{const{selectProps:{classes:t,menuIsOpen:n,isDisabled:r},innerProps:i}=e,a=yg();return o().createElement(vg(),bg({"data-reltio-id":"select-dropdown-indicator"},i,{className:f()(t.dropdownIndicator,{[a.expanded]:n},{[a.disabled]:r})}))};xg.propTypes={innerProps:rt().object.isRequired,selectProps:rt().shape({classes:rt().shape({dropdownIndicator:rt().string}).isRequired,menuIsOpen:rt().bool.isRequired,isDisabled:rt().bool}).isRequired};var Eg=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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 n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Cg=Math.abs,wg=String.fromCharCode,kg=Object.assign;function _g(e){return e.trim()}function Og(e,t,n){return e.replace(t,n)}function Sg(e,t){return e.indexOf(t)}function Ag(e,t){return 0|e.charCodeAt(t)}function Mg(e,t,n){return e.slice(t,n)}function Pg(e){return e.length}function Rg(e){return e.length}function Tg(e,t){return t.push(e),e}var Ng=1,Ig=1,Dg=0,Lg=0,Fg=0,jg="";function zg(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ng,column:Ig,length:a,return:""}}function Bg(e,t){return kg(zg("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hg(){return Fg=Lg>0?Ag(jg,--Lg):0,Ig--,10===Fg&&(Ig=1,Ng--),Fg}function Ug(){return Fg=Lg<Dg?Ag(jg,Lg++):0,Ig++,10===Fg&&(Ig=1,Ng++),Fg}function Vg(){return Ag(jg,Lg)}function Zg(){return Lg}function Kg(e,t){return Mg(jg,e,t)}function qg(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wg(e){return Ng=Ig=1,Dg=Pg(jg=e),Lg=0,[]}function $g(e){return jg="",e}function Gg(e){return _g(Kg(Lg-1,Qg(91===e?e+2:40===e?e+1:e)))}function Yg(e){for(;(Fg=Vg())&&Fg<33;)Ug();return qg(e)>2||qg(Fg)>3?"":" "}function Xg(e,t){for(;--t&&Ug()&&!(Fg<48||Fg>102||Fg>57&&Fg<65||Fg>70&&Fg<97););return Kg(e,Zg()+(t<6&&32==Vg()&&32==Ug()))}function Qg(e){for(;Ug();)switch(Fg){case e:return Lg;case 34:case 39:34!==e&&39!==e&&Qg(Fg);break;case 40:41===e&&Qg(e);break;case 92:Ug()}return Lg}function Jg(e,t){for(;Ug()&&e+Fg!==57&&(e+Fg!==84||47!==Vg()););return"/*"+Kg(t,Lg-1)+"*"+wg(47===e?e:Ug())}function ev(e){for(;!qg(Vg());)Ug();return Kg(e,Lg)}var tv="-ms-",nv="-moz-",rv="-webkit-",ov="comm",iv="rule",av="decl",lv="@keyframes";function sv(e,t){for(var n="",r=Rg(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function cv(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case av:return e.return=e.return||e.value;case ov:return"";case lv:return e.return=e.value+"{"+sv(e.children,r)+"}";case iv:e.value=e.props.join(",")}return Pg(n=sv(e.children,r))?e.return=e.value+"{"+n+"}":""}function uv(e){return $g(dv("",null,null,null,[""],e=Wg(e),0,[0],e))}function dv(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,E=i,C=r,w=b;g;)switch(h=y,y=Ug()){case 40:if(108!=h&&58==Ag(w,d-1)){-1!=Sg(w+=Og(Gg(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:w+=Gg(y);break;case 9:case 10:case 13:case 32:w+=Yg(h);break;case 92:w+=Xg(Zg()-1,7);continue;case 47:switch(Vg()){case 42:case 47:Tg(pv(Jg(Ug(),Zg()),t,n),s);break;default:w+="/"}break;case 123*m:l[c++]=Pg(w)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(w=Og(w,/\f/g,"")),p>0&&Pg(w)-d&&Tg(p>32?hv(w+";",r,n,d-1):hv(Og(w," ","")+";",r,n,d-2),s);break;case 59:w+=";";default:if(Tg(C=fv(w,t,n,c,u,o,l,b,x=[],E=[],d),i),123===y)if(0===u)dv(w,t,C,C,x,i,d,l,E);else switch(99===f&&110===Ag(w,3)?100:f){case 100:case 108:case 109:case 115:dv(e,C,C,r&&Tg(fv(e,C,C,0,0,o,l,b,o,x=[],d),E),o,E,d,l,r?x:E);break;default:dv(w,C,C,C,[""],E,0,l,E)}}c=u=p=0,m=v=1,b=w="",d=a;break;case 58:d=1+Pg(w),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Hg())continue;switch(w+=wg(y),y*m){case 38:v=u>0?1:(w+="\f",-1);break;case 44:l[c++]=(Pg(w)-1)*v,v=1;break;case 64:45===Vg()&&(w+=Gg(Ug())),f=Vg(),u=d=Pg(b=w+=ev(Zg())),y++;break;case 45:45===h&&2==Pg(w)&&(m=0)}}return i}function fv(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,f=0===o?i:[""],p=Rg(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Mg(e,d+1,d=Cg(m=a[h])),b=e;v<p;++v)(b=_g(m>0?f[v]+" "+y:Og(y,/&\f/g,f[v])))&&(s[g++]=b);return zg(e,t,n,0===o?iv:l,s,c,u)}function pv(e,t,n){return zg(e,t,n,ov,wg(Fg),Mg(e,2,-2),0)}function hv(e,t,n,r){return zg(e,t,n,av,Mg(e,0,r),Mg(e,r+1,-1),r)}var mv=function(e,t,n){for(var r=0,o=0;r=o,o=Vg(),38===r&&12===o&&(t[n]=1),!qg(o);)Ug();return Kg(e,Lg)},gv=new WeakMap,vv=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||gv.get(n))&&!r){gv.set(e,!0);for(var o=[],i=function(e,t){return $g(function(e,t){var n=-1,r=44;do{switch(qg(r)){case 0:38===r&&12===Vg()&&(t[n]=1),e[n]+=mv(Lg-1,t,n);break;case 2:e[n]+=Gg(r);break;case 4:if(44===r){e[++n]=58===Vg()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=wg(r)}}while(r=Ug());return e}(Wg(e),t))}(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},yv=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function bv(e,t){switch(function(e,t){return 45^Ag(e,0)?(((t<<2^Ag(e,0))<<2^Ag(e,1))<<2^Ag(e,2))<<2^Ag(e,3):0}(e,t)){case 5103:return rv+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return rv+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rv+e+nv+e+tv+e+e;case 6828:case 4268:return rv+e+tv+e+e;case 6165:return rv+e+tv+"flex-"+e+e;case 5187:return rv+e+Og(e,/(\w+).+(:[^]+)/,rv+"box-$1$2"+tv+"flex-$1$2")+e;case 5443:return rv+e+tv+"flex-item-"+Og(e,/flex-|-self/,"")+e;case 4675:return rv+e+tv+"flex-line-pack"+Og(e,/align-content|flex-|-self/,"")+e;case 5548:return rv+e+tv+Og(e,"shrink","negative")+e;case 5292:return rv+e+tv+Og(e,"basis","preferred-size")+e;case 6060:return rv+"box-"+Og(e,"-grow","")+rv+e+tv+Og(e,"grow","positive")+e;case 4554:return rv+Og(e,/([^-])(transform)/g,"$1"+rv+"$2")+e;case 6187:return Og(Og(Og(e,/(zoom-|grab)/,rv+"$1"),/(image-set)/,rv+"$1"),e,"")+e;case 5495:case 3959:return Og(e,/(image-set\([^]*)/,rv+"$1$`$1");case 4968:return Og(Og(e,/(.+:)(flex-)?(.*)/,rv+"box-pack:$3"+tv+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+rv+e+e;case 4095:case 3583:case 4068:case 2532:return Og(e,/(.+)-inline(.+)/,rv+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Pg(e)-1-t>6)switch(Ag(e,t+1)){case 109:if(45!==Ag(e,t+4))break;case 102:return Og(e,/(.+:)(.+)-([^]+)/,"$1"+rv+"$2-$3$1"+nv+(108==Ag(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Sg(e,"stretch")?bv(Og(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ag(e,t+1))break;case 6444:switch(Ag(e,Pg(e)-3-(~Sg(e,"!important")&&10))){case 107:return Og(e,":",":"+rv)+e;case 101:return Og(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rv+(45===Ag(e,14)?"inline-":"")+"box$3$1"+rv+"$2$3$1"+tv+"$2box$3")+e}break;case 5936:switch(Ag(e,t+11)){case 114:return rv+e+tv+Og(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rv+e+tv+Og(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rv+e+tv+Og(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rv+e+tv+e+e}return e}var xv=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case av:e.return=bv(e.value,e.length);break;case lv:return sv([Bg(e,{value:Og(e.value,"@","@"+rv)})],r);case iv:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return sv([Bg(e,{props:[Og(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return sv([Bg(e,{props:[Og(t,/:(plac\w+)/,":"+rv+"input-$1")]}),Bg(e,{props:[Og(t,/:(plac\w+)/,":-moz-$1")]}),Bg(e,{props:[Og(t,/:(plac\w+)/,tv+"input-$1")]})],r)}return""}))}}],Ev=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||xv,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var s,c,u,d,f=[cv,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[vv,yv].concat(i,f),u=Rg(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,sv(uv(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Eg({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(l),h},Cv=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},wv={animationIterationCount:1,aspectRatio: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 kv(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var _v=/[A-Z]|^ms/g,Ov=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sv=function(e){return 45===e.charCodeAt(1)},Av=function(e){return null!=e&&"boolean"!=typeof e},Mv=kv((function(e){return Sv(e)?e:e.replace(_v,"-$&").toLowerCase()})),Pv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ov,(function(e,t,n){return Tv={name:t,styles:n,next:Tv},t}))}return 1===wv[e]||Sv(e)||"number"!=typeof t||0===t?t:t+"px"};function Rv(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Tv={name:n.name,styles:n.styles,next:Tv},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Tv={name:r.name,styles:r.styles,next:Tv},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Rv(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Av(a)&&(r+=Mv(i)+":"+Pv(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Rv(e,t,a);switch(i){case"animation":case"animationName":r+=Mv(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Av(a[s])&&(r+=Mv(i)+":"+Pv(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Tv,i=n(e);return Tv=o,Rv(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Tv,Nv=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Iv=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Tv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Rv(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Rv(n,t,e[a]),r&&(o+=i[a]);Nv.lastIndex=0;for(var l,s="";null!==(l=Nv.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:Tv}},Dv=!!r.useInsertionEffect&&r.useInsertionEffect,Lv=Dv||function(e){return e()},Fv=(Dv||r.useLayoutEffect,{}.hasOwnProperty),jv=r.createContext("undefined"!=typeof HTMLElement?Ev({key:"css"}):null);jv.Provider;var zv=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(jv);return e(t,o,n)}))},Bv=r.createContext({}),Hv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Uv=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Cv(t,n,r),Lv((function(){return function(e,t,n){Cv(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Vv=zv((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Hv],a=[o],l="";"string"==typeof e.className?l=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(l=e.className+" ");var s=Iv(a,void 0,r.useContext(Bv));l+=t.key+"-"+s.name;var c={};for(var u in e)Fv.call(e,u)&&"css"!==u&&u!==Hv&&(c[u]=e[u]);return c.ref=n,c.className=l,r.createElement(r.Fragment,null,r.createElement(Uv,{cache:t,serialized:s,isStringTag:"string"==typeof i}),r.createElement(i,c))})),Zv=Vv,Kv=(n(3463),function(e,t){var n=arguments;if(null==t||!Fv.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Zv,i[1]=function(e,t){var n={};for(var r in t)Fv.call(t,r)&&(n[r]=t[r]);return n[Hv]=e,n}(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)});function qv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Iv(t)}const Wv=Math.min,$v=Math.max,Gv=Math.round,Yv=Math.floor,Xv=e=>({x:e,y:e});function Qv(e){return ty(e)?(e.nodeName||"").toLowerCase():"#document"}function Jv(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ey(e){var t;return null==(t=(ty(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ty(e){return e instanceof Node||e instanceof Jv(e).Node}function ny(e){return e instanceof Element||e instanceof Jv(e).Element}function ry(e){return e instanceof HTMLElement||e instanceof Jv(e).HTMLElement}function oy(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Jv(e).ShadowRoot)}function iy(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ay(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ay(e){return Jv(e).getComputedStyle(e)}function ly(e){const t=function(e){if("html"===Qv(e))return e;const t=e.assignedSlot||e.parentNode||oy(e)&&e.host||ey(e);return oy(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Qv(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ry(t)&&iy(t)?t:ly(t)}function sy(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ly(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Jv(o);if(i){const e=cy(a);return t.concat(a,a.visualViewport||[],iy(o)?o:[],e&&n?sy(e):[])}return t.concat(o,sy(o,[],n))}function cy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uy(e){return ny(e)?e:e.contextElement}function dy(e){const t=uy(e);if(!ry(t))return Xv(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=ay(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ry(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Gv(n)!==i||Gv(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}(t);let a=(i?Gv(n.width):n.width)/r,l=(i?Gv(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const fy=Xv(0);function py(e){const t=Jv(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:fy}function hy(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=uy(e);let a=Xv(1);t&&(r?ny(r)&&(a=dy(r)):a=dy(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Jv(e))&&t}(i,n,r)?py(i):Xv(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Jv(i),t=r&&ny(r)?Jv(r):r;let n=e,o=cy(n);for(;o&&r&&t!==n;){const e=dy(o),t=o.getBoundingClientRect(),r=ay(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=Jv(o),o=cy(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:s,y:c})}const my=r.useLayoutEffect;var gy=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],vy=function(){};function yy(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function by(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(yy(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var xy=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===D(e)&&null!==e?[e]:[];var t},Ey=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ol({},Al(e,gy))},Cy=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function wy(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ky(e){return wy(e)?window.pageYOffset:e.scrollTop}function _y(e,t){wy(e)?window.scrollTo(0,t):e.scrollTop=t}function Oy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:vy,o=ky(e),i=t-o,a=0;!function t(){var l=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);_y(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function Sy(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?_y(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&_y(e,Math.max(t.offsetTop-o,0))}function Ay(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var My=!1,Py={get passive(){return My=!0}},Ry="undefined"!=typeof window?window:{};Ry.addEventListener&&Ry.removeEventListener&&(Ry.addEventListener("p",vy,Py),Ry.removeEventListener("p",vy,!1));var Ty=My;function Ny(e){return null!=e}function Iy(e,t,n){return e?t:n}var Dy=["children","innerProps"],Ly=["children","innerProps"];var Fy,jy=function(e){return"auto"===e?"bottom":e},zy=(0,r.createContext)(null),By=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,s=e.theme,c=((0,r.useContext)(zy)||{}).setPortalPlacement,u=(0,r.useRef)(null),d=Sl((0,r.useState)(o),2),f=d[0],p=d[1],h=Sl((0,r.useState)(null),2),m=h[0],g=h[1],v=s.spacing.controlHeight;return my((function(){var e=u.current;if(e){var t="fixed"===a,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:function(e){return wy(e)?window.innerHeight:e.clientHeight}(s),v=ky(s),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),x=m-b,E=g-h,C=x+v,w=u-v-h,k=f-g+v+y,_=v+h-b,O=160;switch(o){case"auto":case"bottom":if(E>=p)return{placement:"bottom",maxHeight:t};if(w>=p&&!a)return i&&Oy(s,k,O),{placement:"bottom",maxHeight:t};if(!a&&w>=r||a&&E>=r)return i&&Oy(s,k,O),{placement:"bottom",maxHeight:a?E-y:w-y};if("auto"===o||a){var S=t,A=a?x:C;return A>=r&&(S=Math.min(A-y-l,t)),{placement:"top",maxHeight:S}}if("bottom"===o)return i&&_y(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(x>=p)return{placement:"top",maxHeight:t};if(C>=p&&!a)return i&&Oy(s,_,O),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&x>=r){var M=t;return(!a&&C>=r||a&&x>=r)&&(M=a?x-b:C-b),i&&Oy(s,_,O),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:v});p(r.maxHeight),g(r.placement),null==c||c(r.placement)}}),[o,i,a,l,n,c,v]),t({ref:u,placerProps:ol(ol({},e),{},{placement:m||jy(i),maxHeight:f})})},Hy=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return ol({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Uy=Hy,Vy=Hy,Zy=["size"],Ky=["innerProps","isRtl","size"],qy={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Wy=function(e){var t=e.size,n=Al(e,Zy);return Kv("svg",(0,T.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qy},n))},$y=function(e){return Kv(Wy,(0,T.Z)({size:20},e),Kv("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Gy=function(e){return Kv(Wy,(0,T.Z)({size:20},e),Kv("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Yy=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ol({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Xy=Yy,Qy=Yy,Jy=function(){var e=qv.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Fy||(Fy=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),eb=function(e){var t=e.delay,n=e.offset;return Kv("span",{css:qv({animation:"".concat(Jy," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},tb=["data"],nb=["innerRef","isDisabled","isHidden","inputClassName"],rb={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ob={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ol({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},rb)},ib=function(e){return ol({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},rb)},ab=function(e){var t=e.children,n=e.innerProps;return Kv("div",n,t)},lb={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Kv("div",(0,T.Z)({},Cy(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Kv($y,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Kv("div",(0,T.Z)({ref:o},Cy(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Kv("div",(0,T.Z)({},Cy(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Kv(Gy,null))},DownChevron:Gy,CrossIcon:$y,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return Kv("div",(0,T.Z)({},Cy(e,"group",{group:!0}),l),Kv(i,(0,T.Z)({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),s),Kv("div",null,t))},GroupHeading:function(e){var t=Ey(e);t.data;var n=Al(t,tb);return Kv("div",(0,T.Z)({},Cy(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Kv("div",(0,T.Z)({},Cy(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Kv("span",(0,T.Z)({},t,Cy(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Ey(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,s=Al(r,nb);return Kv("div",(0,T.Z)({},Cy(e,"input",{"input-container":!0}),{"data-value":n||""}),Kv("input",(0,T.Z)({className:t({input:!0},l),ref:o,style:ib(a),disabled:i},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Al(e,Ky);return Kv("div",(0,T.Z)({},Cy(ol(ol({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Kv(eb,{delay:0,offset:n}),Kv(eb,{delay:160,offset:!0}),Kv(eb,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Kv("div",(0,T.Z)({},Cy(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Kv("div",(0,T.Z)({},Cy(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,a=e.menuPlacement,l=e.menuPosition,s=(0,r.useRef)(null),c=(0,r.useRef)(null),u=Sl((0,r.useState)(jy(a)),2),d=u[0],f=u[1],p=(0,r.useMemo)((function(){return{setPortalPlacement:f}}),[]),h=Sl((0,r.useState)(null),2),m=h[0],g=h[1],v=(0,r.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===l?0:window.pageYOffset,n=e[d]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}}),[o,l,d,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);my((function(){v()}),[v]);var y=(0,r.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),o&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=uy(e),u=o||i?[...c?sy(c):[],...sy(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=ey(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-Yv(u)+"px "+-Yv(o.clientWidth-(c+d))+"px "+-Yv(o.clientHeight-(u+f))+"px "+-Yv(c)+"px",threshold:$v(0,Wv(1,s))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!s&&h.observe(c),h.observe(t));let m=s?hy(e):null;return s&&function t(){const r=hy(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}(o,s.current,v,{elementResize:"ResizeObserver"in window}))}),[o,v]);my((function(){y()}),[y]);var b=(0,r.useCallback)((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==l||!m)return null;var x=Kv("div",(0,T.Z)({ref:b},Cy(ol(ol({},e),{},{offset:m.offset,position:l,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),n);return Kv(zy.Provider,{value:p},t?(0,Fl.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Al(e,Ly);return Kv("div",(0,T.Z)({},Cy(ol(ol({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Al(e,Dy);return Kv("div",(0,T.Z)({},Cy(ol(ol({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return Kv(s,{data:r,innerProps:ol(ol({},Cy(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:l},Kv(c,{data:r,innerProps:ol({},Cy(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),Kv(u,{data:r,innerProps:ol(ol({},Cy(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},MultiValueContainer:ab,MultiValueLabel:ab,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Kv("div",(0,T.Z)({role:"button"},n),t||Kv($y,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Kv("div",(0,T.Z)({},Cy(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Kv("div",(0,T.Z)({},Cy(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Kv("div",(0,T.Z)({},Cy(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Kv("div",(0,T.Z)({},Cy(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Kv("div",(0,T.Z)({},Cy(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},sb=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function cb(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||sb(r)&&sb(o)))return!1;var r,o;return!0}for(var ub={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},db=function(e){return Kv("span",(0,T.Z)({css:ub},e))},fb={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=l?" disabled":"",f="".concat(s?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},pb=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,l=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,p=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,y=s.options,b=s.screenReaderStatus,x=s.tabSelectsValue,E=s.isLoading,C=s["aria-label"],w=s["aria-live"],k=(0,r.useMemo)((function(){return ol(ol({},fb),d||{})}),[d]),_=(0,r.useMemo)((function(){var e,n="";if(t&&k.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,s=t.value,c=i||r||(e=s,Array.isArray(e)?null:e),u=c?f(c):"",d=o||a||void 0,p=d?d.map(f):[],h=ol({isDisabled:c&&m(c,l),label:u,labels:p},t);n=k.onChange(h)}return n}),[t,k,m,l,f]),O=(0,r.useMemo)((function(){var e="",t=n||o,r=!!(n&&l&&l.includes(n));if(t&&k.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,l),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:l,isAppleDevice:u};e=k.onFocus(a)}return e}),[n,o,f,m,k,i,l,u]),S=(0,r.useMemo)((function(){var e="";if(v&&y.length&&!E&&k.onFilter){var t=b({count:i.length});e=k.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,v,k,y,b,E]),A="initial-input-focus"===(null==t?void 0:t.action),M=(0,r.useMemo)((function(){var e="";if(k.guidance){var t=o?"value":v?"menu":"input";e=k.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,l),isMulti:h,isSearchable:g,tabSelectsValue:x,isInitialFocus:A})}return e}),[C,n,o,h,m,g,v,k,l,x,A]),P=Kv(r.Fragment,null,Kv("span",{id:"aria-selection"},_),Kv("span",{id:"aria-focused"},O),Kv("span",{id:"aria-results"},S),Kv("span",{id:"aria-guidance"},M));return Kv(r.Fragment,null,Kv(db,{id:c},A&&P),Kv(db,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&P))},hb=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],mb=new RegExp("["+hb.map((function(e){return e.letters})).join("")+"]","g"),gb={},vb=0;vb<hb.length;vb++)for(var yb=hb[vb],bb=0;bb<yb.letters.length;bb++)gb[yb.letters[bb]]=yb.base;var xb=function(e){return e.replace(mb,(function(e){return gb[e]}))},Eb=function(e,t){void 0===t&&(t=cb);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(xb),Cb=function(e){return e.replace(/^\s+|\s+$/g,"")},wb=function(e){return"".concat(e.label," ").concat(e.value)},kb=["innerRef"];function _b(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Sl(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Sl(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Al(e,kb),"onExited","in","enter","exit","appear");return Kv("input",(0,T.Z)({ref:t},n,{css:qv({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ob=["boxSizing","height","overflow","paddingRight","position"],Sb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ab(e){e.preventDefault()}function Mb(e){e.stopPropagation()}function Pb(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Rb(){return"ontouchstart"in window||navigator.maxTouchPoints}var Tb=!("undefined"==typeof window||!window.document||!window.document.createElement),Nb=0,Ib={capture:!1,passive:!1},Db=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Lb={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Fb(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,l=(0,r.useRef)(!1),s=(0,r.useRef)(!1),c=(0,r.useRef)(0),u=(0,r.useRef)(null),d=(0,r.useCallback)((function(e,t){if(null!==u.current){var r=u.current,c=r.scrollTop,d=r.scrollHeight,f=r.clientHeight,p=u.current,h=t>0,m=d-f-c,g=!1;m>t&&l.current&&(o&&o(e),l.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!l.current&&n(e),p.scrollTop=d,g=!0,l.current=!0):!h&&-t>c&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,i,a]),f=(0,r.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,r.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,r.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,r.useCallback)((function(e){if(e){var t=!!Ty&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),g=(0,r.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return(0,r.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=(0,r.useRef)({}),a=(0,r.useRef)(null),l=(0,r.useCallback)((function(e){if(Tb){var t=document.body,n=t&&t.style;if(o&&Ob.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Nb<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+r||0;Object.keys(Sb).forEach((function(e){var t=Sb[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Rb()&&(t.addEventListener("touchmove",Ab,Ib),e&&(e.addEventListener("touchstart",Pb,Ib),e.addEventListener("touchmove",Mb,Ib))),Nb+=1}}),[o]),s=(0,r.useCallback)((function(e){if(Tb){var t=document.body,n=t&&t.style;Nb=Math.max(Nb-1,0),o&&Nb<1&&Ob.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Rb()&&(t.removeEventListener("touchmove",Ab,Ib),e&&(e.removeEventListener("touchstart",Pb,Ib),e.removeEventListener("touchmove",Mb,Ib)))}}),[o]);return(0,r.useEffect)((function(){if(t){var e=a.current;return l(e),function(){s(e)}}}),[t,l,s]),function(e){a.current=e}}({isEnabled:n});return Kv(r.Fragment,null,n&&Kv("div",{onClick:Db,css:Lb}),t((function(e){i(e),a(e)})))}var jb={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},zb=function(e){var t=e.name,n=e.onFocus;return Kv("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:jb,value:"",onChange:function(){}})};function Bb(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Hb(){return Bb(/^Mac/i)}var Ub={clearIndicator:Qy,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return ol({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Xy,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return ol({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return ol({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return ol(ol({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ob),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return ol({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Vy,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,l=o.colors;return ol((nl(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),nl(n,"position","absolute"),nl(n,"width","100%"),nl(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ol({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return ol({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return ol({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return ol({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Uy,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,l=i.colors;return ol({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return ol({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return ol({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ol({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Vb={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Zb={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ay(),captureMenuScroll:!Ay(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ol({ignoreCase:!0,ignoreAccents:!0,stringify:wb,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,l=n.matchFrom,s=a?Cb(t):t,c=a?Cb(i(e)):i(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),o&&(s=Eb(s),c=xb(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Kb(e,t,n,r){return{type:"option",data:t,isDisabled:Jb(e,t,n),isSelected:ex(e,t,n),label:Xb(e,t),value:Qb(e,t),index:r}}function qb(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Kb(e,n,t,r)})).filter((function(t){return Gb(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Kb(e,n,t,r);return Gb(e,i)?i:void 0})).filter(Ny)}function Wb(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Rt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function $b(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Rt(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Gb(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!nx(e)||!i)&&tx(e,{label:a,value:l,data:o},r)}var Yb=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Xb=function(e,t){return e.getOptionLabel(t)},Qb=function(e,t){return e.getOptionValue(t)};function Jb(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ex(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Qb(e,t);return n.some((function(t){return Qb(e,t)===r}))}function tx(e,t,n){return!e.filterOption||e.filterOption(t,n)}var nx=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},rx=1,ox=function(e){ll(n,e);var t=dl(n);function n(e){var r;if(il(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Hb()||Bb(/^iPhone/i)||Bb(/^iPad/i)||Hb()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,l=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:l}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,l=o&&r.isOptionSelected(e,a),s=r.isOptionDisabled(e,a);if(l){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(Rt(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=Iy(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Iy(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Iy(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Yb(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return $b(qb(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return by.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Xb(r.props,e)},r.getOptionValue=function(e){return Qb(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Ub[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,ol(ol({},lb),e.components);var e},r.buildCategorizedOptions=function(){return qb(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Wb(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:ol({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&wy(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return nx(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,l=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):l&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++rx),r.state.selectValue=xy(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=Yb(o,i[a])}return r}return j(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Sy(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Sy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Vb):ol(ol({},Vb),this.props.theme):Vb}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,u=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:i,selectProps:l,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Jb(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ex(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tx(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,l=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),g=ol(ol(ol({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(u,(0,T.Z)({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:i},g)):r.createElement(_b,(0,T.Z)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:vy,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:l,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,l=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!d)return h?null:r.createElement(s,(0,T.Z)({},c,{key:"placeholder",isDisabled:f,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return v.map((function(t,l){var s=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,(0,T.Z)({},c,{components:{Container:o,Label:i,Remove:a},isFocused:s,isDisabled:f,key:u,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var x=v[0];return r.createElement(l,(0,T.Z)({},c,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,(0,T.Z)({},t,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?r.createElement(e,(0,T.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return r.createElement(n,(0,T.Z)({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,(0,T.Z)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,l=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,v=p.loadingMessage,y=p.minMenuHeight,b=p.maxMenuHeight,x=p.menuIsOpen,E=p.menuPlacement,C=p.menuPosition,w=p.menuPortalTarget,k=p.menuShouldBlockScroll,_=p.menuShouldScrollIntoView,O=p.noOptionsMessage,S=p.onMenuScrollToTop,A=p.onMenuScrollToBottom;if(!x)return null;var M,P=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,l=t.isSelected,s=t.label,c=t.value,p=f===i,h=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:l};return r.createElement(u,(0,T.Z)({},d,{innerProps:v,data:i,isDisabled:a,isSelected:l,key:g,label:s,type:o,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())M=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,l=t.index,s="".concat(e.getElementId("group"),"-").concat(l),c="".concat(s,"-heading");return r.createElement(n,(0,T.Z)({},d,{key:s,data:i,options:a,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(g){var R=v({inputValue:m});if(null===R)return null;M=r.createElement(s,d,R)}else{var N=O({inputValue:m});if(null===N)return null;M=r.createElement(c,d,N)}var I={minMenuHeight:y,maxMenuHeight:b,menuPlacement:E,menuPosition:C,menuShouldScrollIntoView:_},D=r.createElement(By,(0,T.Z)({},d,I),(function(t){var n=t.ref,o=t.placerProps,l=o.placement,s=o.maxHeight;return r.createElement(i,(0,T.Z)({},d,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:l}),r.createElement(Fb,{captureEnabled:h,onTopArrive:S,onBottomArrive:A,lockEnabled:k},(function(t){return r.createElement(a,(0,T.Z)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:f}),M)})))}));return w||"fixed"===C?r.createElement(l,(0,T.Z)({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:E,menuPosition:C}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,l=t.required,s=this.state.selectValue;if(l&&!this.hasValue()&&!o)return r.createElement(zb,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:a,type:"hidden",value:""});return r.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return r.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,l=t.selectValue,s=this.getFocusableOptions();return r.createElement(pb,(0,T.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:l,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,l=a.className,s=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return r.createElement(o,(0,T.Z)({},f,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,(0,T.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),r.createElement(i,(0,T.Z)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,(0,T.Z)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=xy(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Wb(qb(e,t))}(e,h):[],v=d?$b(qb(e,h),"".concat(s,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:Yb(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},E=i,C=a&&l;return a&&!C&&(E={value:Iy(p,h,h[0]||null),options:h,action:"initial-input-focus"},C=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(E=null),ol(ol(ol({},m),x),{},{prevProps:e,ariaSelection:E,prevWasFocused:C})}}]),n}(r.Component);ox.defaultProps=Zb;var ix=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ax(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,a=e.defaultValue,l=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=Al(e,ix),g=Sl((0,r.useState)(void 0!==s?s:n),2),v=g[0],y=g[1],b=Sl((0,r.useState)(void 0!==c?c:i),2),x=b[0],E=b[1],C=Sl((0,r.useState)(void 0!==h?h:l),2),w=C[0],k=C[1],_=(0,r.useCallback)((function(e,t){"function"==typeof u&&u(e,t),k(e)}),[u]),O=(0,r.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),S=(0,r.useCallback)((function(){"function"==typeof p&&p(),E(!0)}),[p]),A=(0,r.useCallback)((function(){"function"==typeof f&&f(),E(!1)}),[f]),M=void 0!==s?s:v,P=void 0!==c?c:x,R=void 0!==h?h:w;return ol(ol({},m),{},{inputValue:M,menuIsOpen:P,onChange:_,onInputChange:O,onMenuClose:A,onMenuOpen:S,value:R})}var lx=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],sx=(0,r.forwardRef)((function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,o=e.cacheOptions,i=void 0!==o&&o,a=e.loadOptions;e.options;var l=e.isLoading,s=void 0!==l&&l,c=e.onInputChange,u=e.filterOption,d=void 0===u?null:u,f=Al(e,lx),p=f.inputValue,h=(0,r.useRef)(void 0),m=(0,r.useRef)(!1),g=Sl((0,r.useState)(Array.isArray(n)?n:void 0),2),v=g[0],y=g[1],b=Sl((0,r.useState)(void 0!==p?p:""),2),x=b[0],E=b[1],C=Sl((0,r.useState)(!0===n),2),w=C[0],k=C[1],_=Sl((0,r.useState)(void 0),2),O=_[0],S=_[1],A=Sl((0,r.useState)([]),2),M=A[0],P=A[1],R=Sl((0,r.useState)(!1),2),T=R[0],N=R[1],I=Sl((0,r.useState)({}),2),D=I[0],L=I[1],F=Sl((0,r.useState)(void 0),2),j=F[0],z=F[1],B=Sl((0,r.useState)(void 0),2),H=B[0],U=B[1];i!==H&&(L({}),U(i)),n!==j&&(y(Array.isArray(n)?n:void 0),z(n)),(0,r.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var V=(0,r.useCallback)((function(e,t){if(!a)return t();var n=a(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[a]);(0,r.useEffect)((function(){!0===n&&V(x,(function(e){m.current&&(y(e||[]),k(!!h.current))}))}),[]);var Z=(0,r.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,c);if(!n)return h.current=void 0,E(""),S(""),P([]),k(!1),void N(!1);if(i&&D[n])E(n),S(n),P(D[n]),k(!1),N(!1);else{var r=h.current={};E(n),k(!0),N(!O),V(n,(function(e){m&&r===h.current&&(h.current=void 0,k(!1),S(n),P(e||[]),N(!1),L(e?ol(ol({},D),{},nl({},n,e)):D))}))}}),[i,V,O,D,c]),K=T?[]:x&&O?M:v||[];return ol(ol({},f),{},{options:K,isLoading:w||s,onInputChange:Z,filterOption:d})}(e),o=ax(n);return r.createElement(ox,(0,T.Z)({ref:t},o))})),cx=sx,ux=n(518),dx=n.n(ux);function fx(){return fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fx.apply(null,arguments)}var px=n(7290),hx=n.n(px);function mx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){gx(e,t,n[t])}))}return e}function gx(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vx.apply(null,arguments)}const yx=o().forwardRef(((e,t)=>o().createElement("div",vx({ref:t},e))));function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bx.apply(null,arguments)}function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xx.apply(null,arguments)}yx.displayName="InputComponent";var Ex=n(6091),Cx=n.n(Ex),wx=n(5635),kx=n.n(wx);function _x(){return _x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_x.apply(null,arguments)}const Ox=e=>{const{children:t,selectProps:n,removeProps:r}=e;return o().createElement(Cx(),{tabIndex:-1,label:t,className:n.classes.multiValue,classes:{label:n.classes.multiValue__label},onDelete:r.onClick,deleteIcon:o().createElement(kx(),_x({},e.removeProps,{style:{height:"18px",width:"18px",color:"rgba(0,0,0,0.38)",marginRight:"8px"}}))})};function Sx(){return Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sx.apply(null,arguments)}Ox.propTypes={children:rt().node,isFocused:rt().bool.isRequired,removeProps:rt().shape({onClick:rt().func.isRequired,onMouseDown:rt().func.isRequired,onTouchEnd:rt().func.isRequired}).isRequired,selectProps:rt().object.isRequired};const Ax=e=>{const{innerProps:t,innerRef:n,children:r,isFocused:i,isSelected:a,label:l,selectProps:{classes:s}}=e;return o().createElement(Gf(),Sx({className:f()(s.option,{[s["option--selected"]]:a}),ref:n,selected:i,component:"div"},t),o().createElement(yd,{value:l},o().createElement("div",{className:s["option--item"]},r)))};function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mx.apply(null,arguments)}Ax.propTypes={children:rt().node,innerProps:rt().shape({id:rt().string.isRequired,key:rt().string,onClick:rt().func.isRequired,onMouseMove:rt().func.isRequired,onMouseOver:rt().func.isRequired,tabIndex:rt().number.isRequired}).isRequired,innerRef:rt().oneOfType([rt().oneOf([null]),rt().func,rt().shape({current:rt().any.isRequired})]),isFocused:rt().bool.isRequired,isSelected:rt().bool.isRequired,label:rt().string,selectProps:rt().shape({classes:rt().shape({option:rt().string,"option--selected":rt().string})})};const Px={ClearIndicator:e=>{const{innerProps:t,selectProps:{classes:n}}=e;return o().createElement(jd(),fx({},t,{className:n.clearIndicator,size:"large"}),o().createElement(dx(),null))},Control:e=>{const{children:t,innerProps:n,innerRef:r,selectProps:{classes:i,TextFieldProps:a={}}}=e;return o().createElement(hx(),vx({variant:"standard",fullWidth:!0},a,{InputProps:mx({inputComponent:yx},a.InputProps,{inputProps:mx({className:i.control,ref:r,children:t},n,a.inputProps)})}))},DropdownIndicator:e=>{const{innerProps:t,selectProps:{classes:n}}=e;return o().createElement(jd(),bx({},t,{className:n.dropdownIndicator,size:"large"}),o().createElement(vg(),null))},GroupHeading:e=>{const{children:t,selectProps:{classes:n}}=e;return o().createElement(Ju(),{variant:"subtitle2",className:f()(n.groupHeading)},t)},Menu:e=>{const{selectProps:{classes:t},innerProps:n,innerRef:r,getStyles:i,children:a}=e;return o().createElement(Pf(),xx({ref:r,style:i("menu",e),className:t.menu},n),a)},MultiValue:Ox,NoOptionsMessage:e=>{const{selectProps:{classes:t},children:n}=e;return o().createElement(Ju(),{color:"textSecondary",className:t.noOptionsMessage},n)},Option:Ax,Placeholder:e=>{const{selectProps:{classes:t},children:n}=e;return o().createElement(Ju(),{color:"textSecondary",className:t.placeholder},n)},SingleValue:e=>{const{selectProps:{classes:t},innerProps:n,children:r}=e;return o().createElement(Ju(),Mx({className:t.singleValue},n),r)},ValueContainer:e=>{const{selectProps:{classes:t},children:n,isMulti:r}=e;return o().createElement("div",{className:f()(t.valueContainer,{[t["valueContainer--multi"]]:r})},n)}};function Rx(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tx=qn((e=>({control:{display:"flex","&&":{padding:0},height:"auto"},valueContainer:{display:"flex",flexWrap:"nowrap",flex:1,alignItems:"center",overflow:"hidden",marginLeft:e.spacing(1)},"valueContainer--multi":{flexWrap:"wrap"},multiValue:{margin:e.spacing(.5,.5),maxWidth:"calc(100% - 8px)"},multiValue__label:{paddingRight:0,marginRight:12,maxWidth:"100%",overflow:"hidden"},noOptionsMessage:{padding:e.spacing(1,2)},singleValue:{fontSize:16,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},placeholder:{position:"absolute",left:6,bottom:10,fontSize:16},menu:{zIndex:40,marginTop:e.spacing(1)},clearIndicator:{},dropdownIndicator:{},groupHeading:{paddingLeft:"28px"},option:{fontWeight:400},"option--selected":{fontWeight:400},"option--item":{display:"block",width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"}})));function Nx(){return Nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nx.apply(null,arguments)}function Ix(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Dx(e,t,n[t])}))}return e}function Dx(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lx=e=>{function t(t){const{components:n,classes:r,error:i,TextFieldProps:a,innerRef:l}=t,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["components","classes","error","TextFieldProps","innerRef"]),c=Tx(),u=Ix({},Px,n),d=((e,t)=>(0,p.union)(Object.keys(e),Object.keys(t)).reduce(((n,r)=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Rx(e,t,n[t])}))}return e}({},n,{[r]:f()(e[r],t[r])})),{}))(c,r);return o().createElement(e,Nx({ref:l,components:u,classes:d,TextFieldProps:Ix({},a,{error:i})},s))}return t.displayName=`withMuiSkin(${e.displayName||e.name})`,t.defaultProps={components:{},classes:{}},t},Fx=Lx(cx),jx=Lx((0,r.forwardRef)((function(e,t){var n=ax(e);return r.createElement(ox,(0,T.Z)({ref:t},n))}))),zx=()=>null;var Bx=n(1884),Hx=n.n(Bx);const Ux=o().createContext(null);Ux.displayName="PopupBoundariesContext";const Vx=qn({popper:{borderRadius:"4px",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",backgroundColor:"#FFFFFF",margin:0,zIndex:1e4}});function Zx(){return Zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zx.apply(null,arguments)}const Kx=e=>{const{selectProps:{inputRef:t,menuIsOpen:n,inputValue:i},innerRef:a,children:l,innerProps:s}=e,[c,u]=(0,r.useState)("id");(0,r.useEffect)((()=>{u(((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))())}),[i]);const d=Vx(),f=(0,r.useContext)(Ux),h=Boolean(null==f?void 0:f.element),m=h?f.element.clientWidth:window.innerWidth;return o().createElement(jf,{anchorEl:t.current,open:n,className:d.popper,key:c,modifiers:[{name:"preventOverflow",enabled:!0,options:{altAxis:!0,altBoundary:!0,tether:!1,boundary:h?f.element:document.body,padding:5}}],placement:"bottom-start"},o().createElement(Pf(),Zx({ref:a,style:{minWidth:Math.min((0,p.prop)("clientWidth",t.current),m),maxWidth:Math.min(521,m)}},s),l))};Kx.propTypes={children:rt().oneOfType([rt().element,rt().array]).isRequired,selectProps:rt().shape({inputRef:rt().object.isRequired,menuIsOpen:rt().bool.isRequired,inputValue:rt().string}).isRequired,innerRef:rt().oneOfType([rt().oneOf([null]),rt().func,rt().shape({current:rt().any})]).isRequired,innerProps:rt().object.isRequired};const qx=qn((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),Wx=e=>{const{selectProps:{onCreate:t,createLabel:n,inputValue:r,components:i,canCreateOption:a},children:l}=e,s=qx();return o().createElement(Kx,e,l,n&&!(0,p.prop)("Group",i)&&a()&&o().createElement("span",{className:s.addLabel,onClick:()=>t(r)},o().createElement(Hx(),{className:s.addIcon}),n))},$x=qn({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"17px"}});function Gx(){return Gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gx.apply(null,arguments)}const Yx=e=>{const{selectProps:{menuIsOpen:t},innerProps:n,children:r}=e,i=$x();return!t&&o().createElement(Ju(),Gx({className:i.singleValue},n),r)};function Xx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Qx(e,t,n[t])}))}return e}function Qx(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Yx.propTypes={children:rt().node,innerProps:rt().object};const Jx=qn({control:{height:"auto"},dropdownIndicator:{boxSizing:"content-box",transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),eE={menu:e=>Xx({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",margin:0}),menuList:e=>Xx({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>Xx({},e,{padding:"0 0 8px 0"}),input:e=>Xx({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>Xx({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},tE={menuList:e=>Xx({},e,{padding:0})},nE={input:e=>Xx({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function rE(){return rE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rE.apply(null,arguments)}function oE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){iE(e,t,n[t])}))}return e}function iE(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aE=e=>{let{value:t,label:n,options:i,getOptions:a,createLabel:l,height:c=46,onChange:u=p.identity,onCreate:d,canCreateOption:h=()=>Boolean(d),onClear:m=p.identity,components:g={},textFieldInputRef:v,TextFieldProps:y,classes:b={}}=e,x=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","label","options","getOptions","createLabel","height","onChange","onCreate","canCreateOption","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const E=Jx({height:c}),[C,w]=(0,r.useState)(!1),k=(0,r.useRef)(null),_=a?Fx:jx,O=(0,p.prop)("ClearIndicator",g)?{}:{IndicatorSeparator:zx,ClearIndicator:zx},S=d?(e,t)=>{d(e,t),w(!1)}:void 0,A=(0,p.prop)("Group",g)?tE:{},M=(0,p.isEmpty)(n)?nE:{},P=oE({},eE,A,M),R=oE({},E,b);return o().createElement(_,rE({placeholder:"",defaultOptions:!0},x,{value:(0,p.defaultTo)(null,t),loadOptions:a,options:i,cacheOptions:!0,onChange:u,onCreate:S,onClear:m,createLabel:l,canCreateOption:h,classes:R,styles:P,components:oE({DropdownIndicator:xg,LoadingIndicator:zx,SingleValue:Yx,Menu:Wx},O,g),menuPlacement:"auto",TextFieldProps:oE({},y,{label:n,variant:"filled",size:"small",classes:oE({},(0,p.prop)("classes",y),{root:f()(E.formControl,(0,p.path)(["classes","root"],y))}),inputProps:oE({},(0,p.prop)("inputProps",y)),InputProps:oE({},(0,p.prop)("InputProps",y),{classes:oE({},(0,p.path)(["InputProps","classes"],y),{root:f()(E.filledInputRoot,(0,p.path)(["InputProps","classes","root"],y)),underline:f()({[E.filledInputUnderline]:(0,s.isEmptyValue)(t)},(0,p.path)(["InputProps","classes","underline"],y)),focused:f()("focused",(0,p.path)(["InputProps","classes","focused"],y))})}),InputLabelProps:oE({},(0,p.prop)("InputLabelProps",y),{classes:oE({},(0,p.path)(["InputLabelProps","classes"],y),{root:f()(E.inputLabel,(0,p.path)(["InputLabelProps","classes","root"],y)),shrink:f()("shrink",(0,p.path)(["InputLabelProps","classes","shrink"],y))}),shrink:!(0,s.isEmptyValue)(t)||void 0}),ref:v||k}),inputRef:v||k,menuIsOpen:C,onMenuOpen:()=>w(!0),onMenuClose:()=>w(!1)}))};var lE=n(2614);wd()(lE.Z,{insert:"head",singleton:!1});const sE=lE.Z.locals||{},cE=({hierarchyOptions:e,instanceId:t,onChange:n})=>{const i=(0,r.useMemo)((()=>e.map((({value:e,label:t})=>({value:e,label:t})))),[e]),a=(0,r.useMemo)((()=>i.find((e=>e.value===t))||i[0]),[i,t]),l=(0,r.useCallback)((e=>n(e.value)),[n]);return o().createElement(aE,{classes:{valueContainer:sE.valueContainer},className:sE.hierarchyTypeSelector,height:42,label:u().text("Hierarchy type"),value:a,options:i,onChange:l,TextFieldProps:{InputProps:{disableUnderline:!1,classes:{root:sE.filledInputRoot}}}})};var uE=n(3110);wd()(uE.Z,{insert:"head",singleton:!1});const dE=uE.Z.locals||{},fE=({title:e,instanceId:t,onInstanceIdChange:n,hierarchyOptions:r,hasHierarchy:i})=>o().createElement("div",{className:dE.headerContainer},o().createElement(mg,{className:dE.header},o().createElement(cE,{instanceId:t,onChange:n,hierarchyOptions:r})),i&&o().createElement(mg,{title:e,className:dE.header})),pE=(0,r.memo)(fE);var hE=n(9367),mE=n.n(hE);const gE=qn({link:{textDecoration:"inherit",color:"inherit","&:visited":{textDecoration:"inherit",color:"inherit"}}}),vE=({to:e,children:t,onClick:n})=>{const r=gE();return o().createElement("a",{href:e,onClick:t=>{up(t)&&e||!n||(n(),t.stopPropagation(),t.preventDefault())},className:r.link},t)},yE=qn((e=>({image:{width:"40px",height:"40px"},info:{marginLeft:"12px",overflow:"hidden",display:"flex",flexDirection:"column"},label:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre",fontWeight:400,fontSize:"13px",lineHeight:"15px",color:e.palette.primary.main},secondaryLabel:{marginTop:"4px",fontWeight:400,fontSize:"10px",lineHeight:"12px",color:e.palette.text.secondary,whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis"},link:{textDecoration:"none"},thirdRow:{display:"flex",overflow:"hidden",alignItems:"center",marginTop:"auto",paddingTop:"4px"},entityId:{display:"flex",overflow:"hidden",alignItems:"baseline",whiteSpace:"nowrap",fontWeight:400,fontSize:"12px",lineHeight:"16px"},entityIdLabel:{color:e.palette.text.secondary},entityIdValue:{marginLeft:"8px",color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis","&[aria-describedby]":{cursor:"pointer","&:hover":{textDecoration:"underline"}}}}))),bE=({entity:e,classes:t={}})=>{const n=yE(),{secondaryLabel:i,label:a}=t,l=(0,s.getLabel)(e.label),{secondaryLabel:c}=e,d=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,s.getEntityId)(e))}),[e]);return o().createElement(o().Fragment,null,o().createElement(od,{entity:e,imageClassName:n.image}),o().createElement("div",{className:n.info},o().createElement(fp,{value:(0,s.getEntityUriForLink)(e),className:n.link},o().createElement(yd,{value:l,placement:"top",showOnExceededHeight:!0},o().createElement("div",{className:f()(n.label,a)},l))),c&&o().createElement(yd,{value:c,placement:"top",showOnExceededHeight:!0},o().createElement("div",{className:f()(n.secondaryLabel,i)},c)),o().createElement("div",{className:n.thirdRow},o().createElement(Ed,{entity:e,size:"medium"}),o().createElement("div",{className:n.entityId,onClick:d},o().createElement("div",{className:n.entityIdLabel},u().text("ID:")),o().createElement(yd,{value:`Copy to clipboard ${(0,s.getEntityId)(e)}`,placement:"top"},o().createElement("div",{className:n.entityIdValue},(0,s.getEntityId)(e)))))))},xE=qn({"@keyframes keyframes-wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},wave:{overflow:"hidden",position:"relative","&:after":{top:"0",left:"0",right:"0",bottom:"0",content:'""',position:"absolute",animation:"$keyframes-wave 1.6s linear 0.5s infinite",transform:"translateX(-100%)",background:"linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);"}},avatar:{flex:"none",width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.11)"},info:{marginLeft:"12px",flex:"auto"},label:{width:"40%",height:"15px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.11)"},secondaryLabel:{marginTop:"4px",width:"100%",height:"12px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.11)"},thirdRow:{marginTop:"4px",width:"60%",height:"24px",borderRadius:"2px",backgroundColor:"rgba(0, 0, 0, 0.11)"}}),EE=()=>{const e=xE();return o().createElement(o().Fragment,null,o().createElement("div",{"data-reltio-id":"profile-card-placeholder-avatar",className:f()(e.avatar,e.wave)}),o().createElement("div",{"data-reltio-id":"profile-card-placeholder-info",className:e.info},o().createElement("div",{className:f()(e.label,e.wave)}),o().createElement("div",{className:f()(e.secondaryLabel,e.wave)}),o().createElement("div",{className:f()(e.thirdRow,e.wave)})))},CE=qn({container:{display:"flex",padding:"16px",overflow:"hidden"}});function wE(){return wE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wE.apply(null,arguments)}const kE=e=>{let{entity:t,classes:n={},variant:r="normal"}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["entity","classes","variant"]);const a=CE(),{container:l}=n;return o().createElement("div",wE({className:f()(a.container,l)},i),"normal"===r?o().createElement(bE,{entity:t,classes:n}):o().createElement(EE,null))},_E=(0,r.memo)(kE),OE=qn((e=>({link:{cursor:"pointer",color:e.palette.primary.main,lineHeight:"15px",wordBreak:"break-word",whiteSpace:"break-spaces"},selected:{fontWeight:"bold"},popper:{maxWidth:"345px",minWidth:"200px",boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",backgroundColor:"white",borderRadius:"2px"}}))),SE=({title:e,isSelected:t,entityUri:n,anchorEl:i,withEntityDetails:a=!0,classNames:l})=>{const c=OE(),{generateEntityUrl:u}=(0,r.useContext)(cp),d=P("openEntity"),p=w(),{isLoading:h,entityDetails:m,showEntityDetails:g,hideEntityDetails:v}=(e=>{const[t,n]=(0,r.useState)(null),[o,i]=(0,r.useState)(!1),a=Qd(),l=(0,r.useCallback)((()=>a(Promise.resolve())),[a]),c=O(),u=C((e=>e.showMasking)),d=(0,r.useMemo)((()=>(0,s.addGetEntityMaskingOptions)(c,{showMasking:u,showAccess:!1})),[c,u]),f=(0,r.useCallback)((0,s.debounce)((()=>{i(!0),a((0,s.getEntity)(e,d)).then(n).catch((e=>{console.warn("Failed to load entity",e)})).finally((()=>i(!1)))}),1e3),[e,a,d]),p=(0,r.useCallback)((()=>{l(),f.cancel(),i(!1),n(null)}),[f,l]);return(0,r.useEffect)((()=>()=>f.cancel()),[]),{isLoading:o,entityDetails:t,showEntityDetails:f,hideEntityDetails:p}})(n),y=u({uiPath:p,uri:n}),b=Boolean(i)&&(Boolean(m)||h),x=(0,r.useCallback)((()=>{d({uri:n})}),[d,n]);return o().createElement(o().Fragment,null,o().createElement("span",{"data-reltio-id":"reltio-hierarchy-node-title",className:f()(c.link,{[c.selected]:t},l),onMouseEnter:a?g:void 0,onMouseLeave:a?v:void 0},o().createElement(vE,{to:y,onClick:x},e)),o().createElement(jf,{anchorEl:i,className:c.popper,open:b,modal:!1,placement:"top-start"},o().createElement(_E,{entity:m,variant:h?"loading":"normal"})))};var AE=n(4055);function ME(){return ME=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ME.apply(null,arguments)}const PE=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return o().createElement("svg",ME({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),o().createElement("circle",{cx:"8",cy:"8",r:"7.2",fill:"#0072CE",fillOpacity:".25"}),o().createElement("path",{d:"M7.021 8.746l-.693.693c-.324-.33-.64-.76-.838-1.359l.837-.213c.142.402.358.692.694 1.016zM7.556 6L5.777 4.222 4 6h1.343c.009.36.035.684.084.963l.837-.214c-.031-.22-.055-.48-.058-.749h1.35zM12 6l-1.778-1.778L8.444 6H9.78c-.052 1.636-.576 2.08-1.137 2.571-.337.294-.68.608-.945.977a3.518 3.518 0 00-.56-.617l-.689.69c.435.397.728.724.728 1.468v2.022h.863V11.09c0-.858.306-1.124.836-1.602.646-.569 1.459-1.29 1.51-3.487h1.615z",fill:"#0072CE"}))};var RE=n(3872);wd()(RE.Z,{insert:"head",singleton:!1});const TE=RE.Z.locals||{},NE=({data:e,entityId:t})=>{var n;const{label:i,hasManyParents:a,entityId:l}=e,c=t===l,u=(0,r.useRef)(null),d=(0,Er.useSelector)(wr().selectors.getAbsoluteImagePath),p=(0,Er.useSelector)(wr().selectors.getMetadata),h=(0,s.createEntityUriFromEntityId)(l),m=(0,r.useMemo)((()=>(({entityType:e,metadata:t,absoluteImagePath:n})=>{if(!e||!t||!n)return;const r=(0,s.getEntityType)(t,e),o=r?(0,s.getPropWithInheritance)(t,r,"typeGraphIcon"):null;if("string"!=typeof o||!o)return;const i=(0,s.getAbsoluteImageUrl)(n,o);return null!=i?i:void 0})({entityType:e.entityType,metadata:p,absoluteImagePath:d})),[d,e.entityType,p]);return o().createElement("div",{className:TE.container,"data-reltio-id":"hierarchy-tree-list-item",ref:u},o().createElement(rd(),{className:TE.icon,src:null!=m?m:AE}),o().createElement(SE,{classNames:f()(TE.label,{[TE.currentEntity]:c}),title:(0,s.getLabel)(i),entityUri:h,isSelected:c,anchorEl:null!==(n=u.current)&&void 0!==n?n:void 0}),c&&o().createElement(mE(),{className:TE.icon,color:"primary"}),a&&o().createElement(PE,{className:TE.icon}))},IE=(0,r.memo)(NE);var DE=n(734);wd()(DE.Z,{insert:"head",singleton:!1});const LE=DE.Z.locals||{},FE=({onImportHierarchy:e,isImportLoading:t})=>o().createElement(Om,{LogoRenderer:_m.SELECT_ATTRIBUTES,text:u().text("Create your first hierarchy"),secondaryText:u().text("Create a hierarchy to define how this profile relates to other entities and visualise its structure."),variant:km.embedded},o().createElement("div",{className:LE.creationButtons},o().createElement(or(),{variant:"contained",color:"primary",onClick:e,disabled:t},u().text("Import Hierarchy"))));var jE=n(5670);wd()(jE.Z,{insert:"head",singleton:!1});const zE=jE.Z.locals||{},BE=({config:e,instanceId:t,onInstanceIdChange:n})=>{const i=(0,Er.useSelector)(wr().selectors.getEntity),a=(0,s.getEntityId)(i),[l,c]=(0,r.useState)([]),{importTemplateUrl:d}=e,{hierarchyOptions:f,selectedInstanceId:h,hierarchyTitle:m,hierarchies:g,isLoading:v,errorMessage:y,reloadHierarchyList:b}=(({instanceId:e,onInstanceIdChange:t})=>{var n;const o=(0,Er.useSelector)(wr().selectors.getEntity),i=(0,Er.useSelector)(wr().selectors.getMetadata),a=(0,r.useContext)(Tm),l=Qd(),[c,d]=(0,r.useState)(null),[f,h]=(0,r.useState)(!1),[m,g]=(0,r.useState)(null),v=(0,s.getEntityId)(o),y=null==o?void 0:o.type,b=(0,r.useMemo)((()=>{var e;const t=y?(0,s.getHierarchyTypesForEntityType)(i,y):null!==(e=null==i?void 0:i.hierarchyTypes)&&void 0!==e?e:[];return(({hierarchies:e=[],allowedHierarchyTypes:t})=>{const n=(0,p.fromPairs)(t.map((({uri:e,label:t})=>[e,null!=t?t:e]))),r=(0,p.map)((({uri:e})=>e),t),o=e.filter((({type:e})=>(0,p.includes)(e,r))),i=o.reduce(((e,{type:t})=>{var n;return e[t]=(null!==(n=e[t])&&void 0!==n?n:0)+1,e}),{});return o.map((({type:e,name:t,hierarchyId:r,singleInstanceId:o})=>{var a;const l=null!==(a=n[e])&&void 0!==a?a:e;return{value:o,label:i[e]>1?`${l} (${t||r||o})`:l,typeUri:e}}))})({hierarchies:null!=c?c:[],allowedHierarchyTypes:t})}),[y,c,i]),x=(0,r.useMemo)((()=>{var t,n,r,o;return null!==(t=null!==(n=null===(r=b.find((({value:t})=>t===e)))||void 0===r?void 0:r.value)&&void 0!==n?n:null===(o=b[0])||void 0===o?void 0:o.value)&&void 0!==t?t:null}),[b,e]),E=(0,r.useMemo)((()=>null==c?void 0:c.find((({singleInstanceId:e})=>e===x))),[c,x]),C=null!==(n=null==E?void 0:E.name)&&void 0!==n?n:u().text("Hierarchy"),w=(0,r.useCallback)((async()=>{if(!v)return null;h(!0),g(null);try{const e=await l((0,s.getHierarchyList)({entityId:v,signal:a}));return d(null!=e?e:[]),null!=e?e:[]}catch(t){var e;if((0,s.isAbortError)(t))return;return console.warn("Failed to load hierarchy list",t),g(null!==(e=null==t?void 0:t.message)&&void 0!==e?e:u().text("Failed to load hierarchy list")),null}finally{h(!1)}}),[v,l,a]);return(0,r.useEffect)((()=>{w()}),[w]),(0,r.useEffect)((()=>{x&&x!==e&&t(x)}),[x,e,t]),{hierarchyOptions:b,selectedInstanceId:x,hierarchyTitle:C,hierarchies:c,reloadHierarchyList:w,isLoading:f,errorMessage:m}})({instanceId:t,onInstanceIdChange:n}),{treeData:x,isLoading:E,errorMessage:C,loadNodeChildren:w}=(({entityId:e,selectedInstanceId:t,setExpandedKeys:n,activenessDate:o})=>{const i=(0,r.useContext)(Tm),a=Qd(),l=Qd({cancelPrevious:!1}),[c,d]=(0,r.useState)([]),[f,h]=(0,r.useState)(!1),[m,g]=(0,r.useState)(null),v=(0,Er.useSelector)(wr().selectors.getMetadata),y=(0,Er.useSelector)(wr().selectors.getShowMasking)&&(0,s.hasAttributeMasking)(v),b=(0,r.useMemo)((()=>(0,p.isNil)(o)?void 0:new Date(o).toISOString()),[o]),x=(0,r.useMemo)((()=>jm(c,e)),[e,c]),E=(0,r.useCallback)((async()=>{if(e&&t){h(!0),g(null);try{var r;const o=await a((0,s.getHierarchy)({instanceId:t,entityId:e,date:b,sendMasked:y,signal:i})),l=Lm(o),c=l?[l]:[];d(c);const u=jm(c,e),f=u.length>0?u.flatMap((e=>e.map((({id:e})=>e)))):null!==(r=c[0])&&void 0!==r&&r.id?[c[0].id]:[];n(f)}catch(e){var o;if((0,s.isAbortError)(e))return;console.warn("Failed to load hierarchy tree",e),g(null!==(o=null==e?void 0:e.message)&&void 0!==o?o:u().text("Failed to load hierarchy"))}finally{h(!1)}}}),[b,e,t,a,y,n,i]),C=(0,r.useCallback)(((e,t)=>{d((n=>((e,t,n)=>zm(e,(e=>e.id===t),(e=>e.isLoading===n?e:Nm({},e,{isLoading:n}))))(n,e,t)))}),[d]),w=(0,r.useCallback)(((e,t)=>{d((n=>((e,t,n)=>zm(e,(e=>e.id===t),(e=>Nm({},e,{children:Fm(e.children,n),pending:!1,isLoading:!1}))))(n,e,t)))}),[d]),k=(0,r.useCallback)((async e=>{const{entityId:n,id:r,label:o}=e;if(!t||!n)return!0;C(r,!0);try{var a;const e=await l((0,s.getHierarchyChildren)({instanceId:t,entityId:n,date:b,sendMasked:y,signal:i})),o=null!==(a=null==e?void 0:e.map(Lm).filter(Boolean))&&void 0!==a?a:[];return o.length>0?w(r,o):C(r,!1),!0}catch(e){if(C(r,!1),(0,s.isAbortError)(e))return;return console.warn("Failed to load hierarchy children view",e),Xn(e,{message:u().text("Failed to load children for node ${label}",{label:o})}),!1}}),[b,t,l,y,C,i,w]),_=(0,r.useCallback)((async e=>{await k(e)||n((t=>t.filter((t=>t!==e.id))))}),[k,n]);return(0,r.useEffect)((()=>{d([]),g(null),E()}),[E,t]),(0,r.useEffect)((()=>{if(!x.length)return;const e=x.map((e=>e[e.length-1])).filter((e=>Boolean(e))).filter((e=>e.pending&&!e.isLoading));e.forEach(_)}),[x,_]),{treeData:c,isLoading:f,errorMessage:m,pathToCurrentEntity:x,reload:E,updateChildren:w,setNodeLoading:C,loadNodeChildren:_}})({entityId:a,selectedInstanceId:h,setExpandedKeys:c}),{isOpen:k,isUploading:_,errorMessage:O,open:S,close:A,closeError:M,setIsUploading:P,setErrorMessage:R}=(()=>{const[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1),[i,a]=(0,r.useState)(null);return{isOpen:e,isUploading:n,errorMessage:i,open:(0,r.useCallback)((()=>{t(!0)}),[]),close:(0,r.useCallback)((()=>{t(!1)}),[]),closeError:(0,r.useCallback)((()=>{a(null)}),[]),setIsUploading:o,setErrorMessage:a}})(),T=(0,r.useCallback)((async(e,t)=>{c(e),t.pending&&!t.isLoading&&await w(t)}),[w]),N=(0,r.useCallback)((async e=>{const t=await b();if(null==t||!t.length)return;const r=e.createdInstances;if(!r||0===Object.keys(r).length)return;const o=Object.values(r).reduce(((e,t)=>e.concat(t)),[]),i=t.find((({singleInstanceId:e})=>o.includes(e)));i&&n(i.singleInstanceId)}),[n,b]),I=(0,r.useCallback)((({data:e})=>o().createElement(IE,{data:e,entityId:a})),[a]),D=v||E,L=null!=y?y:C,F=!D&&0===(null==g?void 0:g.length)&&0===(null==x?void 0:x.length)&&!L,j=(0,r.useMemo)((()=>D?o().createElement(o().Fragment,null,o().createElement(mm,null),o().createElement(Om,{LogoRenderer:_m.LOADING,text:u().text("Loading ..."),variant:km.embedded})):L?o().createElement(Om,{LogoRenderer:_m.ERROR,text:L,variant:km.embedded}):F?o().createElement(FE,{onImportHierarchy:S,isImportLoading:_}):o().createElement("div",{className:zE.hierarchyTreeContainer},o().createElement(Wu,{data:x,LabelComponent:I,expandedKeys:l,onExpand:T}))),[D,_,L,F,x,l,T,I,S]);return o().createElement(Rm,{className:zE.hierarchyView},o().createElement(dm,{entity:i,onOpenDataImport:S,isImportLoading:_}),O&&o().createElement(ug,{message:O,onClose:M}),o().createElement("div",{className:zE.hierarchyContainer},o().createElement(pE,{title:m,instanceId:h,onInstanceIdChange:n,hierarchyOptions:f,hasHierarchy:!F&&!D}),j),o().createElement(ig,{isOpen:k,onClose:A,onSuccess:N,templateUrl:d,onLoadingChange:P,onErrorChange:R}))},HE=sr()({productionPrefix:"hierarchy",disableGlobal:!0,seed:"hier"}),UE=({config:e,instanceId:t,onInstanceIdChange:n})=>{const{SnackbarRenderer:i,showSnackbarMessage:a}=(({anchorOrigin:e={vertical:"bottom",horizontal:"center"},showDismiss:t,dismissTitle:n=u().text("Dismiss"),autoHideDuration:i=3e5,onDismissClick:a=p.identity}={})=>{const[l,s]=(0,r.useState)(!1),[c,d]=(0,r.useState)(""),[f,h]=(0,r.useState)(null),g=(0,r.useCallback)((()=>{s(!1),d(""),h(null)}),[]),v=(0,r.useCallback)(((e,t)=>{"clickaway"!==t&&g()}),[g]),y=(0,r.useCallback)((e=>{"object"==typeof e&&"message"in e&&"action"in e?(d(e.message),h(e.action)):(d(e),h(null)),s(!0)}),[]),b=(0,r.useCallback)((()=>{g(),a()}),[g,a]),x=(0,r.useCallback)((()=>{g(),null==f||f.onClick()}),[g,f]);return{SnackbarRenderer:(0,r.useCallback)((()=>o().createElement(m(),{container:document.body},o().createElement(ar(),{open:l,anchorOrigin:e,autoHideDuration:i,onClose:v,message:c,style:{maxWidth:500},action:t||f?o().createElement(o().Fragment,null,t&&o().createElement(or(),{color:"primary",onClick:b},n),f&&o().createElement(or(),{color:"primary",onClick:x},f.label)):void 0}))),[l,g,c,f]),showSnackbarMessage:y}})({autoHideDuration:15e3});return o().createElement(ur(),{generateClassName:HE},o().createElement(xr,{dateAdapter:gr},o().createElement(tr,null,o().createElement(nr.Provider,{value:a},o().createElement(BE,{instanceId:t,onInstanceIdChange:n,config:e}),o().createElement(i,null)))))}},5340:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".FileDropZone-root--MRBNT{cursor:pointer}.FileDropZone-active--CRRp6{background-color:rgba(0,114,206,.12)}",""]),a.locals={root:"FileDropZone-root--MRBNT",active:"FileDropZone-active--CRRp6"};const l=a},1552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,'.ProfileBand-profileBandWrapper--SO4U7{box-shadow:0 1px 0 rgba(0,0,0,.12);flex-shrink:0;margin-bottom:1px}.ProfileBand-profileBand--arzRh{align-items:flex-start;background-color:#fff;display:flex;padding:16px 12px 16px 16px}.ProfileBand-profileBand--arzRh:after{content:"";font-size:0;min-height:inherit}.ProfileBand-inactive--DCQSZ{background:var(--mui-inactiveBackground)}.ProfileBand-profileIcon--sQyrJ{margin-right:12px}.ProfileBand-imageProfileIcon--ARcZw{height:48px;width:48px}.ProfileBand-profileInfo--kSnV3{display:flex;flex:1 1 50%;flex-direction:column}.ProfileBand-label--Sigpt{color:var(--mui-palette-text-primary);letter-spacing:.25px;line-height:1.2;white-space:break-spaces;word-break:break-word}.ProfileBand-label--Sigpt+.ProfileBand-specialInfo--bjxGx{margin-top:4px}.ProfileBand-secondaryLabel--tYf1j{color:var(--mui-palette-text-primary);display:inline-flex;font-size:14px;font-weight:400;line-height:16px;margin-top:2px;white-space:break-spaces}.ProfileBand-secondaryLabel--tYf1j+.ProfileBand-businessCard--sjn5N{margin-left:12px}.ProfileBand-businessCard--sjn5N{color:var(--mui-palette-text-secondary);display:inline-flex;font-size:14px;line-height:1.2;margin-top:4px;white-space:break-spaces}.ProfileBand-specialInfo--bjxGx{justify-content:space-between;margin-top:8px;width:100%}.ProfileBand-entityType--ndiVA,.ProfileBand-specialInfo--bjxGx{display:flex;flex-wrap:wrap}.ProfileBand-entityId--piIyT{color:var(--mui-palette-text-secondary);cursor:pointer;font-size:13px;white-space:nowrap}.ProfileBand-entityId--piIyT:hover{text-decoration:underline}',""]),a.locals={profileBandWrapper:"ProfileBand-profileBandWrapper--SO4U7",profileBand:"ProfileBand-profileBand--arzRh",inactive:"ProfileBand-inactive--DCQSZ",profileIcon:"ProfileBand-profileIcon--sQyrJ",imageProfileIcon:"ProfileBand-imageProfileIcon--ARcZw",profileInfo:"ProfileBand-profileInfo--kSnV3",label:"ProfileBand-label--Sigpt",specialInfo:"ProfileBand-specialInfo--bjxGx",secondaryLabel:"ProfileBand-secondaryLabel--tYf1j",businessCard:"ProfileBand-businessCard--sjn5N",entityType:"ProfileBand-entityType--ndiVA",entityId:"ProfileBand-entityId--piIyT"};const l=a},3628:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".ScreenProfileBand-profileBandNavigation--MVoc2{margin-bottom:10px}.ScreenProfileBand-navigationRow--0_3OP{align-items:center;display:flex;gap:8px}.ScreenProfileBand-comments--F3Q0N{display:flex;justify-content:flex-end}",""]),a.locals={profileBandNavigation:"ScreenProfileBand-profileBandNavigation--MVoc2",navigationRow:"ScreenProfileBand-navigationRow--0_3OP",comments:"ScreenProfileBand-comments--F3Q0N"};const l=a},734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".HierarchyCreationScreen-creationButtons--BrOQz{align-items:center;display:flex;flex-direction:column;gap:16px;margin:24px 0}",""]),a.locals={creationButtons:"HierarchyCreationScreen-creationButtons--BrOQz"};const l=a},3110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".HierarchyHeader-headerContainer--i8NFh{display:flex;flex-direction:column;margin-bottom:6px}.HierarchyHeader-header--qNYQr{align-items:center;box-shadow:0 1px 0 rgba(0,0,0,.12);display:flex;font-size:16px;justify-content:space-between}",""]),a.locals={headerContainer:"HierarchyHeader-headerContainer--i8NFh",header:"HierarchyHeader-header--qNYQr"};const l=a},3872:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".HierarchyTreeListItem-container--rAVHe{align-items:center;display:inline-flex;gap:8px;line-height:20px}.HierarchyTreeListItem-icon--G7Zhm{height:16px;width:16px}.HierarchyTreeListItem-label--IsA3m{align-items:center;color:var(--mui-palette-text-primary);display:inline-flex}.HierarchyTreeListItem-label--IsA3m:hover{color:var(--mui-palette-primary-main)}.HierarchyTreeListItem-currentEntity--qozy7{font-weight:600}",""]),a.locals={container:"HierarchyTreeListItem-container--rAVHe",icon:"HierarchyTreeListItem-icon--G7Zhm",label:"HierarchyTreeListItem-label--IsA3m",currentEntity:"HierarchyTreeListItem-currentEntity--qozy7"};const l=a},2614:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".HierarchyTypeSelector-hierarchyTypeSelector--EFdYu{min-width:200px;opacity:1}.HierarchyTypeSelector-filledInputRoot--tjx3E{border-radius:4px}.HierarchyTypeSelector-valueContainer--x4SaZ{margin-left:16px;width:auto}",""]),a.locals={hierarchyTypeSelector:"HierarchyTypeSelector-hierarchyTypeSelector--EFdYu",filledInputRoot:"HierarchyTypeSelector-filledInputRoot--tjx3E",valueContainer:"HierarchyTypeSelector-valueContainer--x4SaZ"};const l=a},1631:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".ImportHierarchyDialog-dialog--KNElF{width:600px}.ImportHierarchyDialog-dialogTitle--nRzF9{padding:16px 13px}.ImportHierarchyDialog-dialogContent--_RCJB{padding:20px 16px}.ImportHierarchyDialog-dialogActions--Dp5tZ{padding:8px}.ImportHierarchyDialog-templateSection--RY8sL{align-items:center;background:var(--mui-palette-background-default);border-radius:6px;display:flex;justify-content:space-between;margin-bottom:16px;padding:16px}.ImportHierarchyDialog-templateInfo--YsnOJ{display:flex;flex-direction:column;gap:6px;max-width:334px}.ImportHierarchyDialog-templateDescription--r_Vor{color:var(--mui-palette-text-secondary);font-size:13px}.ImportHierarchyDialog-dropZone--xjrJo{flex-direction:column;gap:8px;padding-top:15px}.ImportHierarchyDialog-dropZone--xjrJo,.ImportHierarchyDialog-root--lCoU8{align-items:center;display:flex;justify-content:center}.ImportHierarchyDialog-root--lCoU8{box-sizing:border-box;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;height:100%;overflow:auto;padding:10px}.ImportHierarchyDialog-root--lCoU8,.ImportHierarchyDialog-root_embedded--gFubi{min-height:190px}.ImportHierarchyDialog-embedded--zWomL{flex-shrink:0;height:160px;width:160px}.ImportHierarchyDialog-textBox--fwubx{align-items:center;display:flex;flex-direction:column;margin-top:16px;max-width:500px}.ImportHierarchyDialog-text--wLm6G{color:var(--mui-palette-text-secondary);font-size:20px;font-weight:400;letter-spacing:.25px}.ImportHierarchyDialog-orDivider--_v4ci{align-items:center;display:flex;gap:12px;margin:24px 0}.ImportHierarchyDialog-dividerLine--xYGql{background:var(--mui-palette-divider);flex:1;height:1px}.ImportHierarchyDialog-orText--G1wqU{color:var(--mui-palette-text-secondary);font-size:12px;letter-spacing:1px}.ImportHierarchyDialog-fileRow--CaeI6{align-items:center;display:flex;gap:12px}.ImportHierarchyDialog-fileInput--xlMyv{display:none}.ImportHierarchyDialog-fileName--aRNwg{background:rgba(0,0,0,.03);border-radius:4px;color:var(--mui-palette-text-secondary);flex:1;font-size:14px;padding:10px 12px}.ImportHierarchyDialog-fileNameSelected--J74TU{color:var(--mui-palette-text-primary)}.ImportHierarchyDialog-errorBanner--d04Kp{align-items:center;background-color:#ffebee;border:1px solid #fd8b83;color:var(--mui-palette-error-main);display:flex;gap:8px;padding:10px 12px}.ImportHierarchyDialog-errorIcon--Tbxem{fill:var(--mui-palette-error-main)}.ImportHierarchyDialog-errorMessage--ikRXG{flex:1;font-size:13px;line-height:18px}.ImportHierarchyDialog-errorCloseButton--PKhTl{padding:0}",""]),a.locals={dialog:"ImportHierarchyDialog-dialog--KNElF",dialogTitle:"ImportHierarchyDialog-dialogTitle--nRzF9",dialogContent:"ImportHierarchyDialog-dialogContent--_RCJB",dialogActions:"ImportHierarchyDialog-dialogActions--Dp5tZ",templateSection:"ImportHierarchyDialog-templateSection--RY8sL",templateInfo:"ImportHierarchyDialog-templateInfo--YsnOJ",templateDescription:"ImportHierarchyDialog-templateDescription--r_Vor",dropZone:"ImportHierarchyDialog-dropZone--xjrJo",root:"ImportHierarchyDialog-root--lCoU8",root_embedded:"ImportHierarchyDialog-root_embedded--gFubi",embedded:"ImportHierarchyDialog-embedded--zWomL",textBox:"ImportHierarchyDialog-textBox--fwubx",text:"ImportHierarchyDialog-text--wLm6G",orDivider:"ImportHierarchyDialog-orDivider--_v4ci",dividerLine:"ImportHierarchyDialog-dividerLine--xYGql",orText:"ImportHierarchyDialog-orText--G1wqU",fileRow:"ImportHierarchyDialog-fileRow--CaeI6",fileInput:"ImportHierarchyDialog-fileInput--xlMyv",fileName:"ImportHierarchyDialog-fileName--aRNwg",fileNameSelected:"ImportHierarchyDialog-fileNameSelected--J74TU",errorBanner:"ImportHierarchyDialog-errorBanner--d04Kp",errorIcon:"ImportHierarchyDialog-errorIcon--Tbxem",errorMessage:"ImportHierarchyDialog-errorMessage--ikRXG",errorCloseButton:"ImportHierarchyDialog-errorCloseButton--PKhTl"};const l=a},5670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".InternalHierarchyScreen-hierarchyView--iHF8w{background-color:var(--mui-palette-background-default);bottom:0;left:0;position:absolute;right:0;top:0}.InternalHierarchyScreen-hierarchyContainer--l1Wff,.InternalHierarchyScreen-hierarchyView--iHF8w{display:flex;flex-direction:column;overflow:hidden}.InternalHierarchyScreen-hierarchyContainer--l1Wff{background-color:var(--mui-palette-background-paper);border-radius:4px;box-shadow:1px 4px 4px 1px rgba(0,0,0,.25);flex:1 1 auto;margin:20px 16px 10px;min-height:0}.InternalHierarchyScreen-hierarchyTreeContainer--I28Q7{flex:1 1 auto;overflow:auto;padding:16px 0;width:100%}",""]),a.locals={hierarchyView:"InternalHierarchyScreen-hierarchyView--iHF8w",hierarchyContainer:"InternalHierarchyScreen-hierarchyContainer--l1Wff",hierarchyTreeContainer:"InternalHierarchyScreen-hierarchyTreeContainer--I28Q7"};const l=a},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},3463:(e,t,n)=>{"use strict";var r=n(8570),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 r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||l&&l[v])){var y=f(n,v);try{c(t,v,y)}catch(e){}}}}return t}},7677:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},3366:(e,t,n)=>{var r=n(857),o=n(2107),i=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},1704:(e,t,n)=>{var r=n(2153),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2107:(e,t,n)=>{var r=n(857),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7772:(e,t,n)=>{var r=n(1242),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4073:(e,t,n)=>{var r=n(9259),o=n(1100),i=n(7642),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function x(){var e=o();if(b(e))return E(e);f=setTimeout(x,function(e){var n=t-(e-p);return g?l(n,u-(e-h)):n}(e))}function E(e){return f=void 0,v&&s?y(e):(s=c=void 0,d)}function C(){var e=o(),n=b(e);if(s=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(x,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(x,t),y(p)}return void 0===f&&(f=setTimeout(x,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==f&&clearTimeout(f),h=0,s=p=c=f=void 0},C.flush=function(){return void 0===f?d:E(o())},C}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var r=n(3366),o=n(5125);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},1100:(e,t,n)=>{var r=n(7772);e.exports=function(){return r.Date.now()}},2436:(e,t,n)=>{var r=n(4073),o=n(9259);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},7642:(e,t,n)=>{var r=n(1704),o=n(9259),i=n(4795),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,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<arguments.length;s++){for(var c in i=Object(arguments[s]))n.call(i,c)&&(l[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l}},7467:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case u:case h:case p:case l:return e;default:return t}}case r:return t}}}(e)===p}},1818:(e,t,n)=>{"use strict";e.exports=n(7467)},4660:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(8156)),i=r(n(5099)),a=r(n(3627)),l=r(n(9233)),s=r(n(4294)),c=r(n(5751)),u=r(n(8310));function d(e){var t=e.classes,n=e.title,r=e.message;return o.default.createElement("div",null,o.default.createElement("span",{className:t.errorTitle},n),o.default.createElement("span",{className:t.errorMessage},r))}d.defaultProps={title:c.default.text("Error:"),message:c.default.text("Something was wrong"),classes:{}},d.propTypes={title:i.default.string,message:i.default.string,classes:i.default.object};var f=function(e){var t,n=e.error,r=e.onClose,i=e.style,f=e.classes,p=e.className,h=c.default.text("Close");if(o.default.isValidElement(n))t=n;else{var m=n||{},g=m.title,v=m.message;t=o.default.createElement(d,{classes:f,title:g,message:v})}return o.default.createElement("div",{className:(0,u.default)(f.errorBlock,p),style:i,"data-reltio-id":"error-message"},o.default.createElement("div",{className:f.descriptionBlock},t),o.default.createElement("div",{className:f.closeIconContainer},o.default.createElement(a.default,{title:h,placement:"bottom"},o.default.createElement(l.default,{onClick:r,"aria-label":h,size:"large"},o.default.createElement(s.default,null)))))};f.propTypes={id:i.default.oneOfType([i.default.string,i.default.number]),error:i.default.oneOfType([i.default.node,i.default.shape({title:i.default.string,message:i.default.string})]),style:i.default.object,onClose:i.default.func,className:i.default.oneOfType([i.default.string,i.default.object]),classes:i.default.object},f.defaultProps={classes:{}};var p=f;t.default=p},4176:(e,t,n)=>{"use strict";var r=n(1600),o=n(7425);t.ZP=void 0;var i=r(n(3100)),a=r(n(8870)),l=r(n(5297)),s=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),p=r(n(5099)),h=n(7420),m=r(n(4660)),g=r(n(1230)),v=r(n(1444));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}var b=function(e){(0,s.default)(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.default)(t);if(n){var o=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function o(e){var t;return(0,i.default)(this,o),t=r.call(this,e),(0,d.default)((0,l.default)(t),"processAutoCloseInterval",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t.autoCloseInterval&&(t.timer&&(clearTimeout(t.timer),t.timer=null),e&&(t.timer=setTimeout((function(){t.handleCloseErrorMessage()}),t.autoCloseInterval)))})),o.$$instance=(0,l.default)(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind((0,l.default)(t)),t.state={errors:[]},t}return(0,a.default)(o,[{key:"handleCloseErrorMessage",value:function(){var e=this.state.errors,t=e.length;this.setState({errors:e.slice(0,t-1)}),this.processAutoCloseInterval(t>1)}},{key:"autoCloseInterval",get:function(){return 1e3*(this.props.autoCloseInterval||0)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.classes,r=this.state.errors,o=r.length,i=r[o-1];return f.default.createElement(h.TransitionGroup,null,Boolean(o)&&f.default.createElement(h.CSSTransition,{key:"errorMessage".concat(o),classNames:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,exit:n.errorContainerExit,exitActive:n.errorContainerExitActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},timeout:{enter:600,exit:300}},f.default.createElement(m.default,{classes:n,onClose:this.handleCloseErrorMessage,error:i,className:t})))}}],[{key:"addError",value:function(e){o.$$instance&&(o.$$instance.setState({errors:o.$$instance.state.errors.concat(e)}),o.$$instance.processAutoCloseInterval())}}]),o}(f.PureComponent);b.propTypes={className:p.default.oneOfType([p.default.string,p.default.object]),classes:p.default.object,autoCloseInterval:p.default.number},b.defaultProps={classes:{}};var x=(0,g.default)(v.default)(b);t.ZP=x},1444:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6290)),i="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerExit:{opacity:1},errorContainerExitActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:i,position:"absolute",display:"flex",left:346,top:64,right:90,background:"linear-gradient(180deg, ".concat("#E54C4C"," 0%, ").concat("#F16262"," 100%)"),minHeight:48,justifyContent:"space-between",alignItems:"baseline",boxShadow:"0 0 24px 0 rgba(0,0,0,0.22)"},(0,o.default)(t,e.breakpoints.down("md"),{left:0,right:0}),(0,o.default)(t,e.breakpoints.down("lg"),{left:288,right:32}),(0,o.default)(t,e.breakpoints.down("xl"),{left:336,right:80}),(0,o.default)(t,e.breakpoints.up("xl"),{left:456,right:200}),t),descriptionBlock:{fontSize:13,padding:"20px 32px",alignSelf:"center",overflow:"hidden",textOverflow:"ellipsis"},errorTitle:{fontWeight:"bold",marginRight:7},errorMessage:{},closeIconContainer:{position:"relative","& button":{color:i,marginTop:5}}}}},6866:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||E(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=E},8570:(e,t,n)=>{"use strict";e.exports=n(6866)},7420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CSSTransition:()=>k,ReplaceTransition:()=>N,SwitchTransition:()=>U,Transition:()=>E,TransitionGroup:()=>R,config:()=>d});var r=n(7896),o=n(1461),i=n(1665);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n(5099);var l=n(8156),s=n.n(l),c=n(7111),u=n.n(c);const d={disabled:!1},f=s().createContext(null);var p=function(e){return e.scrollTop},h="unmounted",m="exited",g="entering",v="entered",y="exiting",b=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=m,r.appearStatus=g):o=v:o=t.unmountOnExit||t.mountOnEnter?h:m,r.state={status:o},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===h?{status:m}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==g&&n!==v&&(t=g):n!==g&&n!==v||(t=y)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===g){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this);n&&p(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===m&&this.setState({status:h})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[u().findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||d.disabled?this.safeSetState({status:v},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:g},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:v},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u().findDOMNode(this);t&&!d.disabled?(this.props.onExit(r),this.safeSetState({status:y},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:m},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:m},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===h)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s().createElement(f.Provider,{value:null},"function"==typeof n?n(e,r):s().cloneElement(s().Children.only(n),r))},t}(s().Component);function x(){}b.contextType=f,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},b.UNMOUNTED=h,b.EXITED=m,b.ENTERING=g,b.ENTERED=v,b.EXITING=y;const E=b;var C=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&p(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&C(e,r),o&&C(e,o),i&&C(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.Z)(e,["classNames"]));return s().createElement(E,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s().Component);w.defaultProps={classNames:""},w.propTypes={};const k=w;var _=n(753);function O(e,t){var n=Object.create(null);return e&&l.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,l.isValidElement)(e)?t(e):e}(e)})),n}function S(e,t,n){return null!=n[t]?n[t]:e.props[t]}function A(e,t,n){var r=O(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if((0,l.isValidElement)(a)){var s=i in t,c=i in r,u=t[i],d=(0,l.isValidElement)(u)&&!u.props.in;!c||s&&!d?c||!s||d?c&&s&&(0,l.isValidElement)(u)&&(o[i]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:S(a,"exit",e),enter:S(a,"enter",e)})):o[i]=(0,l.cloneElement)(a,{in:!1}):o[i]=(0,l.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:S(a,"exit",e),enter:S(a,"enter",e)})}})),o}var M=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},P=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,_.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,i.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,O(n.children,(function(e){return(0,l.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:S(e,"appear",n),enter:S(e,"enter",n),exit:S(e,"exit",n)})}))):A(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=O(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,o.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=M(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?s().createElement(f.Provider,{value:i},a):s().createElement(f.Provider,{value:i},s().createElement(t,r,a))},t}(s().Component);P.propTypes={},P.defaultProps={component:"div",childFactory:function(e){return e}};const R=P;var T=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,i.Z)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=s().Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:u().findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,o.Z)(e,["children","in"]),i=s().Children.toArray(t),a=i[0],l=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,s().createElement(R,r,n?s().cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):s().cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(s().Component);T.propTypes={};const N=T;var I,D,L="out-in",F="in-out",j=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},z=((I={})[L]=function(e){var t=e.current,n=e.changeState;return s().cloneElement(t,{in:!1,onExited:j(t,"onExited",(function(){n(g,null)}))})},I[F]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,s().cloneElement(r,{in:!0,onEntered:j(r,"onEntered",(function(){n(g)}))})]},I),B=((D={})[L]=function(e){var t=e.children,n=e.changeState;return s().cloneElement(t,{in:!0,onEntered:j(t,"onEntered",(function(){n(v,s().cloneElement(t,{in:!0}))}))})},D[F]=function(e){var t=e.current,n=e.children,r=e.changeState;return[s().cloneElement(t,{in:!1,onExited:j(t,"onExited",(function(){r(v,s().cloneElement(n,{in:!0}))}))}),s().cloneElement(n,{in:!0})]},D),H=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:v,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,i.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===g&&e.mode===F?{status:g}:!t.current||((n=t.current)===(r=e.children)||s().isValidElement(n)&&s().isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:s().cloneElement(e.children,{in:!0})}:{status:y};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,l={children:n,current:a,changeState:this.changeState,status:i};switch(i){case g:e=B[r](l);break;case y:e=z[r](l);break;case v:e=a}return s().createElement(f.Provider,{value:{isMounting:!this.appeared}},e)},t}(s().Component);H.propTypes={},H.defaultProps={mode:L};const U=H},1837:(e,t,n)=>{"use strict";n(7320);var r=n(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__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,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},6475:(e,t)=>{"use strict";var n,r,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,s=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(c,0))},r=function(e,t){s=setTimeout(e,t)},o=function(){clearTimeout(s)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=f.now();t.unstable_now=function(){return f.now()-g}}var v=!1,y=null,b=-1,x=5,E=0;i=function(){return t.unstable_now()>=E},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,w=C.port2;C.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+x;try{y(!0,e)?w.postMessage(null):(v=!1,y=null)}catch(e){throw w.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,w.postMessage(null))},r=function(e,n){b=p((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<S(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,s=e[l];if(void 0!==a&&0>S(a,n))void 0!==s&&0>S(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>S(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],M=[],P=1,R=null,T=3,N=!1,I=!1,D=!1;function L(e){for(var t=_(M);null!==t;){if(null===t.callback)O(M);else{if(!(t.startTime<=e))break;O(M),t.sortIndex=t.expirationTime,k(A,t)}t=_(M)}}function F(e){if(D=!1,L(e),!I)if(null!==_(A))I=!0,n(j);else{var t=_(M);null!==t&&r(F,t.startTime-e)}}function j(e,n){I=!1,D&&(D=!1,o()),N=!0;var a=T;try{for(L(n),R=_(A);null!==R&&(!(R.expirationTime>n)||e&&!i());){var l=R.callback;if(null!==l){R.callback=null,T=R.priorityLevel;var s=l(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?R.callback=s:R===_(A)&&O(A),L(n)}else O(A);R=_(A)}if(null!==R)var c=!0;else{var u=_(M);null!==u&&r(F,u.startTime-n),c=!1}return c}finally{R=null,T=a,N=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||N||(I=!0,n(j))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return _(A)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();if("object"==typeof a&&null!==a){var s=a.delay;s="number"==typeof s&&0<s?l+s:l,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),s=l;return e={id:P++,callback:i,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>l?(e.sortIndex=s,k(M,e),null===_(A)&&e===_(M)&&(D?o():D=!0,r(F,s-l))):(e.sortIndex=a,k(A,e),I||N||(I=!0,n(j))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=_(A);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},6062:(e,t,n)=>{"use strict";var r,o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function a(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var l=e[o],s=t.base?l[0]+t.base:l[0],c=n[s]||0,u="".concat(s," ").concat(c);n[s]=c+1;var d=a(u),f={css:l[1],media:l[2],sourceMap:l[3]};-1!==d?(i[d].references++,i[d].updater(f)):i.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,h=0;function m(e,t){var n,r,o;if(t.singleton){var i=h++;n=p||(p=s(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=s(t),r=f.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=a(n[r]);i[o].references--}for(var s=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=s}}}},4055:(e,t,n)=>{"use strict";e.exports=n.p+"5271a9e7b6651c852e93.png"},1884:t=>{"use strict";t.exports=e},8282:e=>{"use strict";e.exports=t},5635:e=>{"use strict";e.exports=n},9367:e=>{"use strict";e.exports=r},4294:e=>{"use strict";e.exports=o},7517:e=>{"use strict";e.exports=i},9272:e=>{"use strict";e.exports=a},518:e=>{"use strict";e.exports=l},4179:e=>{"use strict";e.exports=s},866:e=>{"use strict";e.exports=c},8515:e=>{"use strict";e.exports=u},8290:e=>{"use strict";e.exports=d},5743:e=>{"use strict";e.exports=f},1574:e=>{"use strict";e.exports=p},5206:e=>{"use strict";e.exports=h},2811:e=>{"use strict";e.exports=m},6091:e=>{"use strict";e.exports=g},7526:e=>{"use strict";e.exports=v},251:e=>{"use strict";e.exports=y},6177:e=>{"use strict";e.exports=b},480:e=>{"use strict";e.exports=x},4635:e=>{"use strict";e.exports=E},4511:e=>{"use strict";e.exports=C},9233:e=>{"use strict";e.exports=w},9681:e=>{"use strict";e.exports=k},2004:e=>{"use strict";e.exports=_},3526:e=>{"use strict";e.exports=O},3222:e=>{"use strict";e.exports=S},4436:e=>{"use strict";e.exports=A},5788:e=>{"use strict";e.exports=M},1733:e=>{"use strict";e.exports=P},4596:e=>{"use strict";e.exports=R},7290:e=>{"use strict";e.exports=T},6038:e=>{"use strict";e.exports=N},3627:e=>{"use strict";e.exports=I},8759:e=>{"use strict";e.exports=D},7655:e=>{"use strict";e.exports=L},3962:e=>{"use strict";e.exports=F},9881:e=>{"use strict";e.exports=j},1230:e=>{"use strict";e.exports=z},8310:e=>{"use strict";e.exports=B},2308:e=>{"use strict";e.exports=H},2396:e=>{"use strict";e.exports=U},3192:e=>{"use strict";e.exports=V},5099:e=>{"use strict";e.exports=Z},3288:e=>{"use strict";e.exports=K},8156:e=>{"use strict";e.exports=q},7111:e=>{"use strict";e.exports=W},4756:e=>{"use strict";e.exports=$},5751:e=>{"use strict";e.exports=G},5297:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},3100:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},8870:(e,t,n)=>{var r=n(7739);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6290:(e,t,n)=>{var r=n(7739);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1147:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8230:(e,t,n)=>{var r=n(8560);e.exports=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&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},1600:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},421:(e,t,n)=>{var r=n(7425).default,o=n(5297);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8560:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8064:(e,t,n)=>{var r=n(7425).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7739:(e,t,n)=>{var r=n(7425).default,o=n(8064);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},753:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},7896:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{Z:()=>r})},1665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8960);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},1461:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:()=>r})},8960:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},X={};function Q(e){var t=X[e];if(void 0!==t)return t.exports;var n=X[e]={id:e,exports:{}};return Y[e](n,n.exports,Q),n.exports}return Q.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Q.d(t,{a:t}),t},Q.d=(e,t)=>{for(var n in t)Q.o(t,n)&&!Q.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Q.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),Q.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Q.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;Q.g.importScripts&&(e=Q.g.location+"");var t=Q.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),Q.p=e})(),Q(621)})()}));