@reltio/graph 1.4.1005 → 1.4.1008
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.js +1 -1
- package/package.json +3 -3
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("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(["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("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.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,s,u,c){return(()=>{var l={1232:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},1260:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8527:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},4859:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},1557:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},1359:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},5182:(e,t,n)=>{var r=n(1232),o=n(1557),i=n(1359);e.exports=function(e){return r(e)||o(e)||i()}},7685:(e,t,n)=>{"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=i},7291:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.Z=i},2726:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=i},3054:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=i},175:(e,t,n)=>{"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=i.default.memo(i.default.forwardRef((function(t,n){return i.default.createElement(a.default,(0,o.default)({ref:n},t),e)})));return n.muiName=a.default.muiName,n};var o=r(n(8527)),i=r(n(8156)),a=r(n(2298))},8884:e=>{e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var o=0;o<n;o++)e[r+o]=t[o]}}},8994:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},2196:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(7218));e.exports=t.default},7218:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},4812:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},4596:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,i,a,s,u,c,l,d,f,h,p,g=r(n(6892)),m="transform";if(t.transform=m,t.animationEnd=a,t.transitionEnd=i,t.transitionDelay=l,t.transitionTiming=c,t.transitionDuration=u,t.transitionProperty=s,t.animationDelay=p,t.animationTiming=h,t.animationDuration=f,t.animationName=d,g.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",a=0;a<o.length;a++){var s=o[a];if(s+"TransitionProperty"in n){i="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();o=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=m=o+"-"+m,t.transitionProperty=s=o+"-transition-property",t.transitionDuration=u=o+"-transition-duration",t.transitionDelay=l=o+"-transition-delay",t.transitionTiming=c=o+"-transition-timing-function",t.animationName=d=o+"-animation-name",t.animationDuration=f=o+"-animation-duration",t.animationTiming=h=o+"-animation-delay",t.animationDelay=p=o+"-animation-timing-function"}var y={transform:m,end:i,property:s,timing:c,delay:l,duration:u};t.default=y},6892:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},6463:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=void 0;var o,i=r(n(6892)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),r=setTimeout(e,n);return c=t,r},u=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some((function(e){var t=u(e,"request");if(t in window)return a=u(e,"cancel"),s=function(e){return window[t](e)}}));var c=(new Date).getTime();(o=function(e){return s(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var l=o;t.default=l,e.exports=t.default},2699:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,a,c;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=p(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},9869:e=>{e.exports={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}},6061:(e,t)=>{t.assign=function(e){e=e||{};var t,n,r,o=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=o.length;t<r;t++)if(o[t])for(n in o[t])e[n]=o[t][n];return e},t.validateSettings=function(e){return"linLogMode"in e&&"boolean"!=typeof e.linLogMode?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in e&&"boolean"!=typeof e.outboundAttractionDistribution?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in e&&"boolean"!=typeof e.adjustSizes?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in e&&"number"!=typeof e.edgeWeightInfluence?{message:"the `edgeWeightInfluence` setting should be a number."}:!("scalingRatio"in e)||"number"==typeof e.scalingRatio&&e.scalingRatio>=0?"strongGravityMode"in e&&"boolean"!=typeof e.strongGravityMode?{message:"the `strongGravityMode` setting should be a boolean."}:!("gravity"in e)||"number"==typeof e.gravity&&e.gravity>=0?"slowDown"in e&&!("number"==typeof e.slowDown||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&"boolean"!=typeof e.barnesHutOptimize?{message:"the `barnesHutOptimize` setting should be a boolean."}:!("barnesHutTheta"in e)||"number"==typeof e.barnesHutTheta&&e.barnesHutTheta>=0?null:{message:"the `barnesHutTheta` setting should be a number >= 0."}:{message:"the `gravity` setting should be a number >= 0."}:{message:"the `scalingRatio` setting should be a number >= 0."}},t.graphToByteArrays=function(e,t){var n,r=e.order,o=e.size,i={},a=new Float32Array(10*r),s=new Float32Array(3*o);return n=0,e.forEachNode((function(t,r){i[t]=n,a[n]=r.x,a[n+1]=r.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1+e.degree(t),a[n+7]=1,a[n+8]=r.size||1,a[n+9]=r.fixed?1:0,n+=10})),n=0,e.forEachEdge((function(e,r,o,a){s[n]=i[o],s[n+1]=i[a],s[n+2]=function(e){if(!t)return 1;var n=e[t];return("number"!=typeof n||isNaN(n))&&(n=1),n}(r),n+=3})),{nodes:a,edges:s}},t.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes((function(e,o){return o.x=t[r],o.y=t[r+1],r+=10,n?n(e,o):o}))},t.readGraphPositions=function(e,t){var n=0;e.forEachNode((function(e,r){t[n]=r.x,t[n+1]=r.y,n+=10}))},t.collectLayoutChanges=function(e,t,n){for(var r=e.nodes(),o={},i=0,a=0,s=t.length;i<s;i+=10){if(n){var u=Object.assign({},e.getNodeAttributes(r[a]));u.x=t[i],u.y=t[i+1],u=n(r[a],u),o[r[a]]={x:u.x,y:u.y}}else o[r[a]]={x:t[i],y:t[i+1]};a++}return o},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),o=new Worker(r);return t.revokeObjectURL(r),o}},3660:(e,t,n)=>{var r=n(1880),o=n(8725),i=n(6061),a=n(9869);function s(e,t,n){if(!r(t))throw new Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");"number"==typeof n&&(n={iterations:n});var s=n.iterations;if("number"!=typeof s)throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(s<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var u=n.attributes||{},c=n.weighted?u.weight||"weight":null,l="function"==typeof n.outputReducer?n.outputReducer:null,d=i.assign({},a,n.settings),f=i.validateSettings(d);if(f)throw new Error("graphology-layout-forceatlas2: "+f.message);var h,p=i.graphToByteArrays(t,c);for(h=0;h<s;h++)o(d,p.nodes,p.edges);if(!e)return i.collectLayoutChanges(t,p.nodes);i.assignLayoutChanges(t,p.nodes,l)}var u=s.bind(null,!1);u.assign=s.bind(null,!0),u.inferSettings=function(e){var t="number"==typeof e?e:e.order;return{barnesHutOptimize:t>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(t)}},e.exports=u},8725:e=>{var t=10;e.exports=function(e,n,r){var o,i,a,s,u,c,l,d,f,h,p,g,m,v,y,b,w,E,x,_,C,S,A,k=n.length,O=r.length,D=e.adjustSizes,L=e.barnesHutTheta*e.barnesHutTheta,T=[];for(a=0;a<k;a+=t)n[a+4]=n[a+2],n[a+5]=n[a+3],n[a+2]=0,n[a+3]=0;if(e.outboundAttractionDistribution){for(p=0,a=0;a<k;a+=t)p+=n[a+6];p/=k/t}if(e.barnesHutOptimize){var M,P,F,N=1/0,j=-1/0,R=1/0,I=-1/0;for(a=0;a<k;a+=t)N=Math.min(N,n[a+0]),j=Math.max(j,n[a+0]),R=Math.min(R,n[a+1]),I=Math.max(I,n[a+1]);var B=j-N,G=I-R;for(B>G?I=(R-=(B-G)/2)+B:j=(N-=(G-B)/2)+G,T[0]=-1,T[1]=(N+j)/2,T[2]=(R+I)/2,T[3]=Math.max(j-N,I-R),T[4]=-1,T[5]=-1,T[6]=0,T[7]=0,T[8]=0,o=1,a=0;a<k;a+=t)for(i=0,F=3;;){if(!(T[i+5]>=0)){if(T[i+0]<0){T[i+0]=a;break}if(T[i+5]=9*o,d=T[i+3]/2,T[(f=T[i+5])+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=T[i+4],T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,o+=4,M=n[T[i+0]+0]<T[i+1]?n[T[i+0]+1]<T[i+2]?T[i+5]:T[i+5]+9:n[T[i+0]+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+6]=n[T[i+0]+6],T[i+7]=n[T[i+0]+0],T[i+8]=n[T[i+0]+1],T[M+0]=T[i+0],T[i+0]=-1,M===(P=n[a+0]<T[i+1]?n[a+1]<T[i+2]?T[i+5]:T[i+5]+9:n[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27)){if(F--){i=M;continue}F=3;break}T[P+0]=a;break}M=n[a+0]<T[i+1]?n[a+1]<T[i+2]?T[i+5]:T[i+5]+9:n[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+7]=(T[i+7]*T[i+6]+n[a+0]*n[a+6])/(T[i+6]+n[a+6]),T[i+8]=(T[i+8]*T[i+6]+n[a+1]*n[a+6])/(T[i+6]+n[a+6]),T[i+6]+=n[a+6],i=M}}if(e.barnesHutOptimize){for(g=e.scalingRatio,a=0;a<k;a+=t)for(i=0;;)if(T[i+5]>=0){if(b=Math.pow(n[a+0]-T[i+7],2)+Math.pow(n[a+1]-T[i+8],2),4*(h=T[i+3])*h/b<L){if(m=n[a+0]-T[i+7],v=n[a+1]-T[i+8],!0===D?b>0?(w=g*n[a+6]*T[i+6]/b,n[a+2]+=m*w,n[a+3]+=v*w):b<0&&(w=-g*n[a+6]*T[i+6]/Math.sqrt(b),n[a+2]+=m*w,n[a+3]+=v*w):b>0&&(w=g*n[a+6]*T[i+6]/b,n[a+2]+=m*w,n[a+3]+=v*w),(i=T[i+4])<0)break;continue}i=T[i+5]}else if((c=T[i+0])>=0&&c!==a&&(b=(m=n[a+0]-n[c+0])*m+(v=n[a+1]-n[c+1])*v,!0===D?b>0?(w=g*n[a+6]*n[c+6]/b,n[a+2]+=m*w,n[a+3]+=v*w):b<0&&(w=-g*n[a+6]*n[c+6]/Math.sqrt(b),n[a+2]+=m*w,n[a+3]+=v*w):b>0&&(w=g*n[a+6]*n[c+6]/b,n[a+2]+=m*w,n[a+3]+=v*w)),(i=T[i+4])<0)break}else for(g=e.scalingRatio,s=0;s<k;s+=t)for(u=0;u<s;u+=t)m=n[s+0]-n[u+0],v=n[s+1]-n[u+1],!0===D?(b=Math.sqrt(m*m+v*v)-n[s+8]-n[u+8])>0?(w=g*n[s+6]*n[u+6]/b/b,n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]+=m*w,n[u+3]+=v*w):b<0&&(w=100*g*n[s+6]*n[u+6],n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]-=m*w,n[u+3]-=v*w):(b=Math.sqrt(m*m+v*v))>0&&(w=g*n[s+6]*n[u+6]/b/b,n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]-=m*w,n[u+3]-=v*w);for(f=e.gravity/e.scalingRatio,g=e.scalingRatio,a=0;a<k;a+=t)w=0,m=n[a+0],v=n[a+1],b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=g*n[a+6]*f):b>0&&(w=g*n[a+6]*f/b),n[a+2]-=m*w,n[a+3]-=v*w;for(g=1*(e.outboundAttractionDistribution?p:1),l=0;l<O;l+=3)s=r[l+0],u=r[l+1],d=r[l+2],y=Math.pow(d,e.edgeWeightInfluence),m=n[s+0]-n[u+0],v=n[s+1]-n[u+1],!0===D?(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)-n[s+8]-n[u+8]),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-g*y/n[s+6]):b>0&&(w=-g*y)):(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-g*y/n[s+6]):(b=1,w=-g*y)),b>0&&(n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]-=m*w,n[u+3]-=v*w);if(!0===D)for(a=0;a<k;a+=t)1!==n[a+9]&&((E=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/E,n[a+3]=10*n[a+3]/E),x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,C=.1*Math.log(1+_)/(1+Math.sqrt(x)),S=n[a+0]+n[a+2]*(C/e.slowDown),n[a+0]=S,A=n[a+1]+n[a+3]*(C/e.slowDown),n[a+1]=A);else for(a=0;a<k;a+=t)1!==n[a+9]&&(x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,C=n[a+7]*Math.log(1+_)/(1+Math.sqrt(x)),n[a+7]=Math.min(1,Math.sqrt(C*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(x)))),S=n[a+0]+n[a+2]*(C/e.slowDown),n[a+0]=S,A=n[a+1]+n[a+3]*(C/e.slowDown),n[a+1]=A);return{}}},1026:e=>{e.exports=function(){var e,t,n,r={};n=10,r.exports=function(e,t,r){var o,i,a,s,u,c,l,d,f,h,p,g,m,v,y,b,w,E,x,_,C,S,A,k=t.length,O=r.length,D=e.adjustSizes,L=e.barnesHutTheta*e.barnesHutTheta,T=[];for(a=0;a<k;a+=n)t[a+4]=t[a+2],t[a+5]=t[a+3],t[a+2]=0,t[a+3]=0;if(e.outboundAttractionDistribution){for(p=0,a=0;a<k;a+=n)p+=t[a+6];p/=k/n}if(e.barnesHutOptimize){var M,P,F,N=1/0,j=-1/0,R=1/0,I=-1/0;for(a=0;a<k;a+=n)N=Math.min(N,t[a+0]),j=Math.max(j,t[a+0]),R=Math.min(R,t[a+1]),I=Math.max(I,t[a+1]);var B=j-N,G=I-R;for(B>G?I=(R-=(B-G)/2)+B:j=(N-=(G-B)/2)+G,T[0]=-1,T[1]=(N+j)/2,T[2]=(R+I)/2,T[3]=Math.max(j-N,I-R),T[4]=-1,T[5]=-1,T[6]=0,T[7]=0,T[8]=0,o=1,a=0;a<k;a+=n)for(i=0,F=3;;){if(!(T[i+5]>=0)){if(T[i+0]<0){T[i+0]=a;break}if(T[i+5]=9*o,d=T[i+3]/2,T[(f=T[i+5])+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=T[i+4],T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,o+=4,M=t[T[i+0]+0]<T[i+1]?t[T[i+0]+1]<T[i+2]?T[i+5]:T[i+5]+9:t[T[i+0]+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+6]=t[T[i+0]+6],T[i+7]=t[T[i+0]+0],T[i+8]=t[T[i+0]+1],T[M+0]=T[i+0],T[i+0]=-1,M===(P=t[a+0]<T[i+1]?t[a+1]<T[i+2]?T[i+5]:T[i+5]+9:t[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27)){if(F--){i=M;continue}F=3;break}T[P+0]=a;break}M=t[a+0]<T[i+1]?t[a+1]<T[i+2]?T[i+5]:T[i+5]+9:t[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+7]=(T[i+7]*T[i+6]+t[a+0]*t[a+6])/(T[i+6]+t[a+6]),T[i+8]=(T[i+8]*T[i+6]+t[a+1]*t[a+6])/(T[i+6]+t[a+6]),T[i+6]+=t[a+6],i=M}}if(e.barnesHutOptimize){for(g=e.scalingRatio,a=0;a<k;a+=n)for(i=0;;)if(T[i+5]>=0){if(b=Math.pow(t[a+0]-T[i+7],2)+Math.pow(t[a+1]-T[i+8],2),4*(h=T[i+3])*h/b<L){if(m=t[a+0]-T[i+7],v=t[a+1]-T[i+8],!0===D?b>0?(w=g*t[a+6]*T[i+6]/b,t[a+2]+=m*w,t[a+3]+=v*w):b<0&&(w=-g*t[a+6]*T[i+6]/Math.sqrt(b),t[a+2]+=m*w,t[a+3]+=v*w):b>0&&(w=g*t[a+6]*T[i+6]/b,t[a+2]+=m*w,t[a+3]+=v*w),(i=T[i+4])<0)break;continue}i=T[i+5]}else if((c=T[i+0])>=0&&c!==a&&(b=(m=t[a+0]-t[c+0])*m+(v=t[a+1]-t[c+1])*v,!0===D?b>0?(w=g*t[a+6]*t[c+6]/b,t[a+2]+=m*w,t[a+3]+=v*w):b<0&&(w=-g*t[a+6]*t[c+6]/Math.sqrt(b),t[a+2]+=m*w,t[a+3]+=v*w):b>0&&(w=g*t[a+6]*t[c+6]/b,t[a+2]+=m*w,t[a+3]+=v*w)),(i=T[i+4])<0)break}else for(g=e.scalingRatio,s=0;s<k;s+=n)for(u=0;u<s;u+=n)m=t[s+0]-t[u+0],v=t[s+1]-t[u+1],!0===D?(b=Math.sqrt(m*m+v*v)-t[s+8]-t[u+8])>0?(w=g*t[s+6]*t[u+6]/b/b,t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]+=m*w,t[u+3]+=v*w):b<0&&(w=100*g*t[s+6]*t[u+6],t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]-=m*w,t[u+3]-=v*w):(b=Math.sqrt(m*m+v*v))>0&&(w=g*t[s+6]*t[u+6]/b/b,t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]-=m*w,t[u+3]-=v*w);for(f=e.gravity/e.scalingRatio,g=e.scalingRatio,a=0;a<k;a+=n)w=0,m=t[a+0],v=t[a+1],b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=g*t[a+6]*f):b>0&&(w=g*t[a+6]*f/b),t[a+2]-=m*w,t[a+3]-=v*w;for(g=1*(e.outboundAttractionDistribution?p:1),l=0;l<O;l+=3)s=r[l+0],u=r[l+1],d=r[l+2],y=Math.pow(d,e.edgeWeightInfluence),m=t[s+0]-t[u+0],v=t[s+1]-t[u+1],!0===D?(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)-t[s+8]-t[u+8]),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-g*y/t[s+6]):b>0&&(w=-g*y)):(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-g*y/t[s+6]):(b=1,w=-g*y)),b>0&&(t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]-=m*w,t[u+3]-=v*w);if(!0===D)for(a=0;a<k;a+=n)1!==t[a+9]&&((E=Math.sqrt(Math.pow(t[a+2],2)+Math.pow(t[a+3],2)))>10&&(t[a+2]=10*t[a+2]/E,t[a+3]=10*t[a+3]/E),x=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,C=.1*Math.log(1+_)/(1+Math.sqrt(x)),S=t[a+0]+t[a+2]*(C/e.slowDown),t[a+0]=S,A=t[a+1]+t[a+3]*(C/e.slowDown),t[a+1]=A);else for(a=0;a<k;a+=n)1!==t[a+9]&&(x=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,C=t[a+7]*Math.log(1+_)/(1+Math.sqrt(x)),t[a+7]=Math.min(1,Math.sqrt(C*(Math.pow(t[a+2],2)+Math.pow(t[a+3],2))/(1+Math.sqrt(x)))),S=t[a+0]+t[a+2]*(C/e.slowDown),t[a+0]=S,A=t[a+1]+t[a+3]*(C/e.slowDown),t[a+1]=A);return{}};var o=r.exports;self.addEventListener("message",(function(n){var r=n.data;e=new Float32Array(r.nodes),r.edges&&(t=new Float32Array(r.edges)),o(r.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},8301:(e,t,n)=>{var r=n(1026),o=n(1880),i=n(6061),a=n(9869);function s(e,t){if(t=t||{},!o(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=t.attributes||{},r=t.weighted?n.weight||"weight":null,s=i.assign({},a,t.settings),u=i.validateSettings(s);if(u)throw new Error("graphology-layout-forceatlas2/worker: "+u.message);this.worker=null,this.graph=e,this.settings=s,this.weightAttribute=r,this.matrices=null,this.running=!1,this.killed=!1,this.outputReducer="function"==typeof t.outputReducer?t.outputReducer:null,this.handleMessage=this.handleMessage.bind(this);var c=void 0,l=this;this.handleGraphUpdate=function(){l.worker&&l.worker.terminate(),c&&clearTimeout(c),c=setTimeout((function(){c=void 0,l.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}s.prototype.isRunning=function(){return this.running},s.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=i.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},s.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);i.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&i.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},s.prototype.askForIterations=function(e){var t=this.matrices,n={settings:this.settings,nodes:t.nodes.buffer},r=[t.nodes.buffer];return e&&(n.edges=t.edges.buffer,r.push(t.edges.buffer)),this.worker.postMessage(n,r),this},s.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=i.graphToByteArrays(this.graph,this.weightAttribute),this.running=!0,this.askForIterations(!0)),this},s.prototype.stop=function(){return this.running=!1,this},s.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},e.exports=s},8833:(e,t,n)=>{var r=n(6586),o=n(1880),i={dimensions:["x","y"],center:.5,scale:1};function a(e,t,n){if(!o(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");var a=(n=r(n,i)).dimensions;if(!Array.isArray(a)||2!==a.length)throw new Error("graphology-layout/random: given dimensions are invalid.");var s=n.center,u=n.scale,c=2*Math.PI,l=(s-.5)*u,d=t.order,f=a[0],h=a[1];function p(e,t){return t[f]=u*Math.cos(e*c/d)+l,t[h]=u*Math.sin(e*c/d)+l,t}var g=0;if(!e){var m={};return t.forEachNode((function(e){m[e]=p(g++,{})})),m}t.updateEachNodeAttributes((function(e,t){return p(g++,t),t}),{attributes:a})}var s=a.bind(null,!1);s.assign=a.bind(null,!0),e.exports=s},6586:e=>{e.exports=function e(t,n){t=t||{};var r,o={};for(var i in n){var a=t[i],s=n[i];!(r=s)||"object"!=typeof r||"function"==typeof r||Array.isArray(r)||r instanceof Set||r instanceof Map||r instanceof RegExp||r instanceof Date?o[i]=void 0===a?s:a:o[i]=e(a,s)}return o}},1880:e=>{e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.addUndirectedEdgeWithKey&&"function"==typeof e.dropNode&&"boolean"==typeof e.multi}},8996:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(){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 i(e,t,n){return i=o()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return i(e,arguments,n(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r(a,e)},a(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)if(arguments[t])for(var r in arguments[t])e[r]=arguments[t][r];return e};function c(e,t,n,r){var o=e._nodes.get(t),i=null;return o?i="mixed"===r?o.out&&o.out[n]||o.undirected&&o.undirected[n]:"directed"===r?o.out&&o.out[n]:o.undirected&&o.undirected[n]:i}function l(t){return null!==t&&"object"===e(t)&&"function"==typeof t.addUndirectedEdgeWithKey&&"function"==typeof t.dropNode}function d(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function f(e){var t;for(t in e)return!1;return!0}function h(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function p(e,t,n){var r={enumerable:!0,configurable:!0};"function"==typeof n?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function g(e){return!(!d(e)||e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(u=Object.assign);var m,v={exports:{}},y="object"==typeof Reflect?Reflect:null,b=y&&"function"==typeof y.apply?y.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};m=y&&"function"==typeof y.ownKeys?y.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var w=Number.isNaN||function(e){return e!=e};function E(){E.init.call(this)}v.exports=E,v.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}T(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&T(e,"error",t,{once:!0})}(e,o)}))},E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var x=10;function _(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function C(e){return void 0===e._maxListeners?E.defaultMaxListeners:e._maxListeners}function S(e,t,n,r){var o,i,a,s;if(_(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=C(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function A(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function k(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=A.bind(r);return o.listener=n,r.wrapFn=o,o}function O(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):L(o,o.length)}function D(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function L(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function T(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}function M(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");x=e}}),E.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},E.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},E.prototype.getMaxListeners=function(){return C(this)},E.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)b(s,this,t);else{var u=s.length,c=L(s,u);for(n=0;n<u;++n)b(c[n],this,t)}return!0},E.prototype.addListener=function(e,t){return S(this,e,t,!1)},E.prototype.on=E.prototype.addListener,E.prototype.prependListener=function(e,t){return S(this,e,t,!0)},E.prototype.once=function(e,t){return _(t),this.on(e,k(this,e,t)),this},E.prototype.prependOnceListener=function(e,t){return _(t),this.prependListener(e,k(this,e,t)),this},E.prototype.removeListener=function(e,t){var n,r,o,i,a;if(_(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},E.prototype.listeners=function(e){return O(this,e,!0)},E.prototype.rawListeners=function(e){return O(this,e,!1)},E.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):D.call(e,t)},E.prototype.listenerCount=D,E.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]},"undefined"!=typeof Symbol&&(M.prototype[Symbol.iterator]=function(){return this}),M.of=function(){var e=arguments,t=e.length,n=0;return new M((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},M.empty=function(){return new M((function(){return{done:!0}}))},M.fromSequence=function(e){var t=0,n=e.length;return new M((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},M.is=function(e){return e instanceof M||"object"==typeof e&&null!==e&&"function"==typeof e.next};var P=M,F={};F.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,F.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var N=P,j=F,R=j.ARRAY_BUFFER_SUPPORT,I=j.SYMBOL_SUPPORT,B=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||R&&ArrayBuffer.isView(e)?N.fromSequence(e):"object"!=typeof e||null===e?null:I&&"function"==typeof e[Symbol.iterator]?e[Symbol.iterator]():"function"==typeof e.next?e:null}(e);if(!t)throw new Error("obliterator: target is not iterable nor a valid iterator.");return t},G=B,z=function(e,t){for(var n,r=arguments.length>1?t:1/0,o=r!==1/0?new Array(r):[],i=0,a=G(e);;){if(i===r)return o;if((n=a.next()).done)return i!==t&&(o.length=i),o;o[i++]=n.value}},U=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(a(Error)),W=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(U),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(U),q=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(U);function V(e,t){this.key=e,this.attributes=t,this.clear()}function Y(e,t){this.key=e,this.attributes=t,this.clear()}function K(e,t){this.key=e,this.attributes=t,this.clear()}function $(e,t,n,r,o){this.key=t,this.attributes=o,this.undirected=e,this.source=n,this.target=r}function Z(e,t,n,r,o,i,a){var s,u,c,l;if(r=""+r,0===n){if(!(s=e._nodes.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));c=o,l=i}else if(3===n){if(o=""+o,!(u=e._edges.get(o)))throw new H("Graph.".concat(t,': could not find the "').concat(o,'" edge in the graph.'));var d=u.source.key,f=u.target.key;if(r===d)s=u.target;else{if(r!==f)throw new H("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(o,'" edge (').concat(d,", ").concat(f,")."));s=u.source}c=i,l=a}else{if(!(u=e._edges.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));s=1===n?u.source:u.target,c=o,l=i}return[s,c,l]}V.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.in={},this.out={},this.undirected={}},Y.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.in={},this.out={}},K.prototype.clear=function(){this.undirectedDegree=0,this.undirected={}},$.prototype.attach=function(){var e="out",t="in";this.undirected&&(e=t="undirected");var n=this.source.key,r=this.target.key;this.source[e][r]=this,this.undirected&&n===r||(this.target[t][n]=this)},$.prototype.attachMulti=function(){var e="out",t="in",n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");var o=this.source[e],i=o[r];if(void 0===i)return o[r]=this,void(this.undirected&&n===r||(this.target[t][n]=this));i.previous=this,this.next=i,o[r]=this,this.target[t][n]=this},$.prototype.detach=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]},$.prototype.detachMulti=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),void 0===this.previous?void 0===this.next?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,void 0!==this.next&&(this.next.previous=this.previous))};var X=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return a.attributes[s]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){return Z(this,t,n,e,r)[0].attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return a.attributes.hasOwnProperty(s)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=Z(this,t,n,e,r,o,i),s=a[0],u=a[1],c=a[2];return s.attributes[u]=c,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:u}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=Z(this,t,n,e,r,o,i),s=a[0],u=a[1],c=a[2];if("function"!=typeof c)throw new W("Graph.".concat(t,": updater should be a function."));var l=s.attributes,d=c(l[u]);return l[u]=d,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:u}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return delete a.attributes[s],this.emit("nodeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:s}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if(!d(s))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return a.attributes=s,this.emit("nodeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if(!d(s))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return u(a.attributes,s),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:s}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if("function"!=typeof s)throw new W("Graph.".concat(t,": provided updater is not a function."));return a.attributes=s(a.attributes),this.emit("nodeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}}],Q=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes[r]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e){var r;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,i=""+arguments[1];if(!(r=c(this,o,i,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(i,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(r=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return r.attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],o=arguments[3],!(i=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes[r]=o,this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],o=arguments[3],!(i=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof o)throw new W("Graph.".concat(t,": updater should be a function."));return i.attributes[r]=o(i.attributes[r]),this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return delete o.attributes[r],this.emit("edgeAttributesUpdated",{key:o.key,type:"remove",attributes:o.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!d(r))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return o.attributes=r,this.emit("edgeAttributesUpdated",{key:o.key,type:"replace",attributes:o.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!d(r))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return u(o.attributes,r),this.emit("edgeAttributesUpdated",{key:o.key,type:"merge",attributes:o.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof r)throw new W("Graph.".concat(t,": provided updater is not a function."));return o.attributes=r(o.attributes),this.emit("edgeAttributesUpdated",{key:o.key,type:"update",attributes:o.attributes}),this}}}],J=P,ee=B,te=function(){var e=arguments,t=null,n=-1;return new J((function(){for(var r=null;;){if(null===t){if(++n>=e.length)return{done:!0};t=ee(e[n])}if(!0!==(r=t.next()).done)break;t=null}return r}))},ne=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function re(e,t,n,r){var o=!1;for(var i in t)if(i!==r){var a=t[i];if(o=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&o)return a.key}}function oe(e,t,n,r){var o,i,a,s=!1;for(var u in t)if(u!==r){o=t[u];do{if(i=o.source,a=o.target,s=n(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected),e&&s)return o.key;o=o.next}while(void 0!==o)}}function ie(e,t){var n,r=Object.keys(e),o=r.length,i=0;return new P((function(){do{if(n)n=n.next;else{if(i>=o)return{done:!0};var a=r[i++];if(a===t){n=void 0;continue}n=e[a]}}while(!n);return{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}}}))}function ae(e,t,n,r){var o=t[n];if(o){var i=o.source,a=o.target;return r(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected)&&e?o.key:void 0}}function se(e,t,n,r){var o=t[n];if(o){var i=!1;do{if(i=r(o.key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected),e&&i)return o.key;o=o.next}while(void 0!==o)}}function ue(e,t){var n=e[t];return void 0!==n.next?new P((function(){if(!n)return{done:!0};var e={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:e}})):P.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function ce(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):z(e._edges.keys(),e._edges.size);for(var n,r,o="undirected"===t?e.undirectedSize:e.directedSize,i=new Array(o),a="undirected"===t,s=e._edges.values(),u=0;!0!==(n=s.next()).done;)(r=n.value).undirected===a&&(i[u++]=r.key);return i}function le(e,t,n,r){if(0!==t.size)for(var o,i,a="mixed"!==n&&n!==t.type,s="undirected"===n,u=!1,c=t._edges.values();!0!==(o=c.next()).done;)if(i=o.value,!a||i.undirected===s){var l=i,d=l.key,f=l.attributes,h=l.source,p=l.target;if(u=r(d,f,h.key,p.key,h.attributes,p.attributes,i.undirected),e&&u)return d}}function de(e,t){if(0===e.size)return P.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,o=e._edges.values();return new P((function(){for(var e,t;;){if((e=o.next()).done)return e;if(t=e.value,!n||t.undirected===r)break}return{value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected},done:!1}}))}function fe(e,t,n,r,o,i){var a,s=t?oe:re;if("undirected"!==n){if("out"!==r&&(a=s(e,o.in,i),e&&a))return a;if("in"!==r&&(a=s(e,o.out,i,r?void 0:o.key),e&&a))return a}if("directed"!==n&&(a=s(e,o.undirected,i),e&&a))return a}function he(e,t,n,r){var o=[];return fe(!1,e,t,n,r,(function(e){o.push(e)})),o}function pe(e,t,n){var r=P.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=te(r,ie(n.in))),"in"!==t&&void 0!==n.out&&(r=te(r,ie(n.out,t?void 0:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=te(r,ie(n.undirected))),r}function ge(e,t,n,r,o,i,a){var s,u=n?se:ae;if("undirected"!==t){if(void 0!==o.in&&"out"!==r&&(s=u(e,o.in,i,a),e&&s))return s;if(void 0!==o.out&&"in"!==r&&(r||o.key!==i)&&(s=u(e,o.out,i,a),e&&s))return s}if("directed"!==t&&void 0!==o.undirected&&(s=u(e,o.undirected,i,a),e&&s))return s}function me(e,t,n,r,o){var i=[];return ge(!1,e,t,n,r,o,(function(e){i.push(e)})),i}function ve(e,t,n,r){var o=P.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(o=te(o,ue(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(t||n.key!==r)&&(o=te(o,ue(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(o=te(o,ue(n.undirected,r))),o}var ye=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function be(){this.A=null,this.B=null}function we(e,t,n,r,o){for(var i in r){var a=r[i],s=a.source,u=a.target,c=s===n?u:s;if(!t||!t.has(c.key)){var l=o(c.key,c.attributes);if(e&&l)return c.key}}}function Ee(e,t,n,r,o){if("mixed"!==t){if("undirected"===t)return we(e,null,r,r.undirected,o);if("string"==typeof n)return we(e,null,r,r[n],o)}var i,a=new be;if("undirected"!==t){if("out"!==n){if(i=we(e,null,r,r.in,o),e&&i)return i;a.wrap(r.in)}if("in"!==n){if(i=we(e,a,r,r.out,o),e&&i)return i;a.wrap(r.out)}}if("directed"!==t&&(i=we(e,a,r,r.undirected,o),e&&i))return i}function xe(e,t,n){var r=Object.keys(n),o=r.length,i=0;return new P((function(){var a=null;do{if(i>=o)return e&&e.wrap(n),{done:!0};var s=n[r[i++]],u=s.source,c=s.target;a=u===t?c:u,e&&e.has(a.key)&&(a=null)}while(null===a);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}}))}function _e(e,t,n,r,o){for(var i,a,s,u,c,l,d,f=r._nodes.values(),h=r.type;!0!==(i=f.next()).done;){var p=!1;if(a=i.value,"undirected"!==h)for(s in u=a.out){c=u[s];do{if(l=c.target,p=!0,d=o(a.key,l.key,a.attributes,l.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if("directed"!==h)for(s in u=a.undirected)if(!(t&&a.key>s)){c=u[s];do{if((l=c.target).key!==s&&(l=c.source),p=!0,d=o(a.key,l.key,a.attributes,l.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if(n&&!p&&(d=o(a.key,null,a.attributes,null,null,null,null),e&&d))return null}}function Ce(e){if(!d(e))throw new W('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new W("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!d(e.attributes)||null===e.attributes))throw new W("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Se(e){if(!d(e))throw new W('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new W("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new W("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!d(e.attributes)||null===e.attributes))throw new W("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&"boolean"!=typeof e.undirected)throw new W("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}be.prototype.wrap=function(e){null===this.A?this.A=e:null===this.B&&(this.B=e)},be.prototype.has=function(e){return null!==this.A&&e in this.A||null!==this.B&&e in this.B};var Ae,ke=(Ae=255&Math.floor(256*Math.random()),function(){return Ae++}),Oe=new Set(["directed","undirected","mixed"]),De=new Set(["domain","_events","_eventsCount","_maxListeners"]),Le={allowSelfLoops:!0,multi:!1,type:"mixed"};function Te(e,t,n){var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function Me(e,t,n,r,o,i,a,s){if(!r&&"undirected"===e.type)throw new q("Graph.".concat(t,": you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new q("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(s&&!d(s))throw new W("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));if(i=""+i,a=""+a,s=s||{},!e.allowSelfLoops&&i===a)throw new q("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var u=e._nodes.get(i),c=e._nodes.get(a);if(!u)throw new H("Graph.".concat(t,': source node "').concat(i,'" not found.'));if(!c)throw new H("Graph.".concat(t,': target node "').concat(a,'" not found.'));var l={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new q("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==u.undirected[a]:void 0!==u.out[a]))throw new q("Graph.".concat(t,': an edge linking "').concat(i,'" to "').concat(a,"\" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option."));var f=new $(r,o,u,c,s);e._edges.set(o,f);var h=i===a;return r?(u.undirectedDegree++,c.undirectedDegree++,h&&e._undirectedSelfLoopCount++):(u.outDegree++,c.inDegree++,h&&e._directedSelfLoopCount++),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,l.key=o,e.emit("edgeAdded",l),o}function Pe(e,t,n,r,o,i,a,s,c){if(!r&&"undirected"===e.type)throw new q("Graph.".concat(t,": you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new q("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(s)if(c){if("function"!=typeof s)throw new W("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(s,'"'))}else if(!d(s))throw new W("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));var l;if(i=""+i,a=""+a,c&&(l=s,s=void 0),!e.allowSelfLoops&&i===a)throw new q("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var f,h,p=e._nodes.get(i),g=e._nodes.get(a);if(!n&&(f=e._edges.get(o))){if(!(f.source.key===i&&f.target.key===a||r&&f.source.key===a&&f.target.key===i))throw new q("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(o,'" edge with "').concat(i,'" source & "').concat(a,'" target vs. ("').concat(f.source.key,'", "').concat(f.target.key,'").'));h=f}if(h||e.multi||!p||(h=r?p.undirected[a]:p.out[a]),h){var m=[h.key,!1,!1,!1];if(c?!l:!s)return m;if(c){var v=h.attributes;h.attributes=l(v),e.emit("edgeAttributesUpdated",{type:"replace",key:h.key,attributes:h.attributes})}else u(h.attributes,s),e.emit("edgeAttributesUpdated",{type:"merge",key:h.key,attributes:h.attributes,data:s});return m}s=s||{},c&&l&&(s=l(s));var y={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new q("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));var b=!1,w=!1;p||(p=Te(e,i,{}),b=!0,i===a&&(g=p,w=!0)),g||(g=Te(e,a,{}),w=!0),f=new $(r,o,p,g,s),e._edges.set(o,f);var E=i===a;return r?(p.undirectedDegree++,g.undirectedDegree++,E&&e._undirectedSelfLoopCount++):(p.outDegree++,g.inDegree++,E&&e._directedSelfLoopCount++),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,y.key=o,e.emit("edgeAdded",y),[o,!0,b,w]}function Fe(e,t){e._edges.delete(t.key);var n=t.source,r=t.target,o=t.attributes,i=t.undirected,a=n===r;i?(n.undirectedDegree--,r.undirectedDegree--,a&&e._undirectedSelfLoopCount--):(n.outDegree--,r.inDegree--,a&&e._directedSelfLoopCount--),e.multi?t.detachMulti():t.detach(),i?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:o,source:n.key,target:r.key,undirected:i})}var Ne=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=u({},Le,e)).multi)throw new W("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!Oe.has(e.type))throw new W('Graph.constructor: invalid \'type\' option. Should be one of "mixed", "directed" or "undirected" but got "'.concat(e.type,'".'));if("boolean"!=typeof e.allowSelfLoops)throw new W("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?V:"directed"===e.type?Y:K;h(s(t),"NodeDataClass",r);var o="geid_"+ke()+"_",i=0;return h(s(t),"_attributes",{}),h(s(t),"_nodes",new Map),h(s(t),"_edges",new Map),h(s(t),"_directedSize",0),h(s(t),"_undirectedSize",0),h(s(t),"_directedSelfLoopCount",0),h(s(t),"_undirectedSelfLoopCount",0),h(s(t),"_edgeKeyGenerator",(function(){var e;do{e=o+i++}while(t._edges.has(e));return e})),h(s(t),"_options",e),De.forEach((function(e){return h(s(t),e,t[e])})),p(s(t),"order",(function(){return t._nodes.size})),p(s(t),"size",(function(){return t._edges.size})),p(s(t),"directedSize",(function(){return t._directedSize})),p(s(t),"undirectedSize",(function(){return t._undirectedSize})),p(s(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),p(s(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),p(s(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),p(s(t),"multi",t._options.multi),p(s(t),"type",t._options.type),p(s(t),"allowSelfLoops",t._options.allowSelfLoops),p(s(t),"implementation",(function(){return"graphology"})),t}t(r,n);var o=r.prototype;return o._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},o.hasNode=function(e){return this._nodes.has(""+e)},o.hasDirectedEdge=function(e,t){if("undirected"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&!r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);if(!o)return!1;var i=o.out[t];return!(!i||this.multi&&!i.size)}throw new W("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasUndirectedEdge=function(e,t){if("directed"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);if(!o)return!1;var i=o.undirected[t];return!(!i||this.multi&&!i.size)}throw new W("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasEdge=function(e,t){if(1===arguments.length){var n=""+e;return this._edges.has(n)}if(2===arguments.length){e=""+e,t=""+t;var r=this._nodes.get(e);if(!r)return!1;var o=void 0!==r.out&&r.out[t];return o||(o=void 0!==r.undirected&&r.undirected[t]),!(!o||this.multi&&!o.size)}throw new W("Graph.hasEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new q("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.directedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||void 0;return r?r.key:void 0}},o.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new q("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.undirectedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.undirected&&n.undirected[t]||void 0;return r?r.key:void 0}},o.edge=function(e,t){if(this.multi)throw new q("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.edge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||n.undirected&&n.undirected[t]||void 0;if(r)return r.key},o.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},o.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},o.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},o.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},o.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)||"directed"!==this.type&&t in n.undirected},o.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in||"directed"!==this.type&&t in n.undirected},o.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out||"directed"!==this.type&&t in n.undirected},o.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},o.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},o.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},o.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},o.inboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree),n},o.outboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.outDegree),n},o.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.degree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree),n},o.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.in[e],r=n?this.multi?n.size:1:0;return t.inDegree-r},o.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.out[e],r=n?this.multi?n.size:1:0;return t.outDegree-r},o.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.out[e],r=n?this.multi?n.size:1:0;return t.inDegree+t.outDegree-2*r},o.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("directed"===this.type)return 0;var n=t.undirected[e],r=n?this.multi?n.size:1:0;return t.undirectedDegree-2*r},o.inboundDegreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.inDegree,o+=(t=n.out[e])?this.multi?t.size:1:0),r-o},o.outboundDegreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.outDegree,o+=(t=n.in[e])?this.multi?t.size:1:0),r-o},o.degreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.inDegree+n.outDegree,o+=2*((t=n.out[e])?this.multi?t.size:1:0)),r-o},o.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},o.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},o.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},o.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new H('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,o=n.target.key;if(e===r)return o;if(e===o)return r;throw new H('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(o,")."))},o.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new H('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},o.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},o.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},o.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},o.addNode=function(e,t){var n=function(e,t,n){if(n&&!d(n))throw new W('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new q('Graph.addNode: the "'.concat(t,'" node already exist in the graph.'));var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}(this,e,t);return n.key},o.mergeNode=function(e,t){if(t&&!d(t))throw new W('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(u(n.attributes,t),this.emit("nodeAttributesUpdated",{type:"merge",key:e,attributes:n.attributes,data:t})),[e,!1]):(n=new this.NodeDataClass(e,t),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:t}),[e,!0])},o.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new W('Graph.updateNode: invalid updater function. Expecting a function but got "'.concat(t,'"'));e=""+e;var n=this._nodes.get(e);if(n){if(t){var r=n.attributes;n.attributes=t(r),this.emit("nodeAttributesUpdated",{type:"replace",key:e,attributes:n.attributes})}return[e,!1]}var o=t?t({}):{};return n=new this.NodeDataClass(e,o),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:o}),[e,!0]},o.dropNode=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.dropNode: could not find the "'.concat(e,'" node in the graph.'));if("undirected"!==this.type){for(var r in n.out){t=n.out[r];do{Fe(this,t),t=t.next}while(t)}for(var o in n.in){t=n.in[o];do{Fe(this,t),t=t.next}while(t)}}if("directed"!==this.type)for(var i in n.undirected){t=n.undirected[i];do{Fe(this,t),t=t.next}while(t)}this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},o.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=c(this,n,r,this.type)))throw new H('Graph.dropEdge: could not find the "'.concat(n,'" -> "').concat(r,'" edge in the graph.'))}else if(e=""+e,!(t=this._edges.get(e)))throw new H('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));return Fe(this,t),this},o.dropDirectedEdge=function(e,t){if(arguments.length<2)throw new q("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new q("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e=""+e,t=""+t,"directed");if(!n)throw new H('Graph.dropDirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Fe(this,n),this},o.dropUndirectedEdge=function(e,t){if(arguments.length<2)throw new q("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new q("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e,t,"undirected");if(!n)throw new H('Graph.dropUndirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Fe(this,n),this},o.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},o.clearEdges=function(){for(var e,t=this._nodes.values();!0!==(e=t.next()).done;)e.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")},o.getAttribute=function(e){return this._attributes[e]},o.getAttributes=function(){return this._attributes},o.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},o.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.updateAttribute=function(e,t){if("function"!=typeof t)throw new W("Graph.updateAttribute: updater should be a function.");var n=this._attributes[e];return this._attributes[e]=t(n),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},o.replaceAttributes=function(e){if(!d(e))throw new W("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},o.mergeAttributes=function(e){if(!d(e))throw new W("Graph.mergeAttributes: provided attributes are not a plain object.");return u(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},o.updateAttributes=function(e){if("function"!=typeof e)throw new W("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},o.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new W("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!g(t))throw new W("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o=this._nodes.values();!0!==(n=o.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},o.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new W("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!g(t))throw new W("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o,i,a=this._edges.values();!0!==(n=a.next()).done;)o=(r=n.value).source,i=r.target,r.attributes=e(r.key,r.attributes,o.key,i.key,o.attributes,i.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},o.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new W("Graph.forEachAdjacencyEntry: expecting a callback.");_e(!1,!1,!1,this,e)},o.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new W("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");_e(!1,!1,!0,this,e)},o.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new W("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");_e(!1,!0,!1,this,e)},o.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new W("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");_e(!1,!0,!0,this,e)},o.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):z(this._nodes.keys(),this._nodes.size)},o.forEachNode=function(e){if("function"!=typeof e)throw new W("Graph.forEachNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)},o.findNode=function(e){if("function"!=typeof e)throw new W("Graph.findNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return n.key},o.mapNodes=function(e){if("function"!=typeof e)throw new W("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),o=new Array(this.order),i=0;!0!==(t=r.next()).done;)n=t.value,o[i++]=e(n.key,n.attributes);return o},o.someNode=function(e){if("function"!=typeof e)throw new W("Graph.someNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return!0;return!1},o.everyNode=function(e){if("function"!=typeof e)throw new W("Graph.everyNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(!e((n=t.value).key,n.attributes))return!1;return!0},o.filterNodes=function(e){if("function"!=typeof e)throw new W("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),o=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&o.push(n.key);return o},o.reduceNodes=function(e,t){if("function"!=typeof e)throw new W("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new W("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");for(var n,r,o=t,i=this._nodes.values();!0!==(n=i.next()).done;)o=e(o,(r=n.value).key,r.attributes);return o},o.nodeEntries=function(){var e=this._nodes.values();return new P((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},o.export=function(){var e=new Array(this._nodes.size),t=0;this._nodes.forEach((function(n,r){e[t++]=function(e,t){var n={key:e};return f(t.attributes)||(n.attributes=u({},t.attributes)),n}(r,n)}));var n=new Array(this._edges.size);return t=0,this._edges.forEach((function(e,r){n[t++]=function(e,t){var n={key:e,source:t.source.key,target:t.target.key};return f(t.attributes)||(n.attributes=u({},t.attributes)),t.undirected&&(n.undirected=!0),n}(r,e)})),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:e,edges:n}},o.import=function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(l(e))return e.forEachNode((function(e,t){s?a.mergeNode(e,t):a.addNode(e,t)})),e.forEachEdge((function(e,t,n,r,o,i,u){s?u?a.mergeUndirectedEdgeWithKey(e,n,r,t):a.mergeDirectedEdgeWithKey(e,n,r,t):u?a.addUndirectedEdgeWithKey(e,n,r,t):a.addDirectedEdgeWithKey(e,n,r,t)})),this;if(!d(e))throw new W("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!d(e.attributes))throw new W("Graph.import: invalid attributes. Expecting a plain object.");s?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(r=e.nodes,!Array.isArray(r))throw new W("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=r.length;t<n;t++){Ce(o=r[t]);var u=o,c=u.key,f=u.attributes;s?this.mergeNode(c,f):this.addNode(c,f)}}if(e.edges){if(r=e.edges,!Array.isArray(r))throw new W("Graph.import: invalid edges. Expecting an array.");for(t=0,n=r.length;t<n;t++){Se(i=r[t]);var h=i,p=h.source,g=h.target,m=h.attributes,v=h.undirected,y=void 0!==v&&v;"key"in i?(s?y?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:y?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,i.key,p,g,m):(s?y?this.mergeUndirectedEdge:this.mergeDirectedEdge:y?this.addUndirectedEdge:this.addDirectedEdge).call(this,p,g,m)}}return this},o.nullCopy=function(e){var t=new r(u({},this._options,e));return t.replaceAttributes(u({},this.getAttributes())),t},o.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=u({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},o.copy=function(e){if("string"==typeof(e=e||{}).type&&e.type!==this.type&&"mixed"!==e.type)throw new q('Graph.copy: cannot create an incompatible copy from "'.concat(this.type,'" type to "').concat(e.type,'" because this would mean losing information about the current graph.'));if("boolean"==typeof e.multi&&e.multi!==this.multi&&!0!==e.multi)throw new q("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if("boolean"==typeof e.allowSelfLoops&&e.allowSelfLoops!==this.allowSelfLoops&&!0!==e.allowSelfLoops)throw new q("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");for(var t,n,r=this.emptyCopy(e),o=this._edges.values();!0!==(t=o.next()).done;)Me(r,"copy",!1,(n=t.value).undirected,n.key,n.source.key,n.target.key,u({},n.attributes));return r},o.toJSON=function(){return this.export()},o.toString=function(){return"[object Graph]"},o.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},o={};this._edges.forEach((function(e,n){var i,a=e.undirected?"--":"->",s="",u=e.source.key,c=e.target.key;e.undirected&&u>c&&(i=u,u=c,c=i);var l="(".concat(u,")").concat(a,"(").concat(c,")");n.startsWith("geid_")?t.multi&&(void 0===o[l]?o[l]=0:o[l]++,s+="".concat(o[l],". ")):s+="[".concat(n,"]: "),r[s+=l]=e.attributes}));var i={};for(var a in this)this.hasOwnProperty(a)&&!De.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(i[a]=this[a]);return i.attributes=this._attributes,i.nodes=n,i.edges=r,h(i,"constructor",this.constructor),i},r}(v.exports.EventEmitter);"undefined"!=typeof Symbol&&(Ne.prototype[Symbol.for("nodejs.util.inspect.custom")]=Ne.prototype.inspect),[{name:function(e){return"".concat(e,"Edge")},generateKey:!0},{name:function(e){return"".concat(e,"DirectedEdge")},generateKey:!0,type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdge")},generateKey:!0,type:"undirected"},{name:function(e){return"".concat(e,"EdgeWithKey")}},{name:function(e){return"".concat(e,"DirectedEdgeWithKey")},type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdgeWithKey")},type:"undirected"}].forEach((function(e){["add","merge","update"].forEach((function(t){var n=e.name(t),r="add"===t?Me:Pe;e.generateKey?Ne.prototype[n]=function(o,i,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,o,i,a,"update"===t)}:Ne.prototype[n]=function(o,i,a,s){return r(this,n,!1,"undirected"===(e.type||this.type),o,i,a,s,"update"===t)}}))})),function(e){X.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Node"),0),r(e,n("Source"),1),r(e,n("Target"),2),r(e,n("Opposite"),3)}))}(Ne),function(e){Q.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Edge"),"mixed"),r(e,n("DirectedEdge"),"directed"),r(e,n("UndirectedEdge"),"undirected")}))}(Ne),function(e){ne.forEach((function(t){!function(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return ce(this,r);if(1===arguments.length){e=""+e;var i=this._nodes.get(e);if(void 0===i)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return he(this.multi,"mixed"===r?this.type:r,o,i)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(n,': could not find the "').concat(t,'" target node in the graph.'));return me(r,this.multi,o,a,t)}throw new W("Graph.".concat(n,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return le(!1,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return fe(!1,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ge(!1,r,this.multi,o,s,t,n)}throw new W("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){var e,t=Array.prototype.slice.call(arguments),n=t.pop();if(0===t.length){var o=0;"directed"!==r&&(o+=this.undirectedSize),"undirected"!==r&&(o+=this.directedSize),e=new Array(o);var a=0;t.push((function(t,r,o,i,s,u,c){e[a++]=n(t,r,o,i,s,u,c)}))}else e=[],t.push((function(t,r,o,i,a,s,u){e.push(n(t,r,o,i,a,s,u))}));return this[i].apply(this,t),e};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=[];return e.push((function(e,r,o,i,a,s,u){t(e,r,o,i,a,s,u)&&n.push(e)})),this[i].apply(this,e),n};var u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new W("Graph.".concat(u,": invalid number of arguments (expecting 2, 3 or 4 and got ").concat(n.length,")."));if("function"==typeof n[n.length-1]&&"function"!=typeof n[n.length-2])throw new W("Graph.".concat(u,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));2===n.length?(e=n[0],t=n[1],n=[]):3===n.length?(e=n[1],t=n[2],n=[n[0]]):4===n.length&&(e=n[2],t=n[3],n=[n[0],n[1]]);var r=t;return n.push((function(t,n,o,i,a,s,u){r=e(r,t,n,o,i,a,s,u)})),this[i].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return le(!0,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return fe(!0,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ge(!0,r,this.multi,o,s,t,n)}throw new W("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))};var a="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,s){return t(e,n,r,o,i,a,s)})),!!this[i].apply(this,e)};var s="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,s){return!t(e,n,r,o,i,a,s)})),!this[i].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return P.empty();if(!arguments.length)return de(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return pe(r,o,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ve(r,o,a,t)}throw new W("Graph.".concat(i,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(Ne),function(e){ye.forEach((function(t){(function(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return Object.keys(n.undirected);if("string"==typeof t)return Object.keys(n[t])}var r=[];return Ee(!1,e,t,n,(function(e){r.push(e)})),r}("mixed"===r?this.type:r,o,t)}})(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));Ee(!1,"mixed"===r?this.type:r,o,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[i](e,(function(e,r){n.push(t(e,r))})),n};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(e,t){var n=[];return this[i](e,(function(e,r){t(e,r)&&n.push(e)})),n};var u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(e,t,n){if(arguments.length<3)throw new W("Graph.".concat(u,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));var r=n;return this[i](e,(function(e,n){r=t(r,e,n)})),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n[0].toUpperCase()+n.slice(1,-1),a="find"+i;e.prototype[a]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return Ee(!0,"mixed"===r?this.type:r,o,n,t)}};var s="some"+i;e.prototype[s]=function(e,t){return!!this[a](e,t)};var u="every"+i;e.prototype[u]=function(e,t){return!this[a](e,(function(e,n){return!t(e,n)}))}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return P.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return xe(null,n,n.undirected);if("string"==typeof t)return xe(null,n,n[t])}var r=P.empty(),o=new be;return"undirected"!==e&&("out"!==t&&(r=te(r,xe(o,n,n.in))),"in"!==t&&(r=te(r,xe(o,n,n.out)))),"directed"!==e&&(r=te(r,xe(o,n,n.undirected))),r}("mixed"===r?this.type:r,o,t)}}(e,t)}))}(Ne);var je=function(e){function n(t){var n=u({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new W("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new W('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne),Re=function(e){function n(t){var n=u({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new W("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new W('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne),Ie=function(e){function n(t){var n=u({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new W("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(Ne),Be=function(e){function n(t){var n=u({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new W("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new W('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne),Ge=function(e){function n(t){var n=u({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new W("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new W('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne);function ze(e){e.from=function(t,n){var r=u({},t.options,n),o=new e(r);return o.import(t),o}}return ze(Ne),ze(je),ze(Re),ze(Ie),ze(Be),ze(Ge),Ne.Graph=Ne,Ne.DirectedGraph=je,Ne.UndirectedGraph=Re,Ne.MultiGraph=Ie,Ne.MultiDirectedGraph=Be,Ne.MultiUndirectedGraph=Ge,Ne.InvalidArgumentsGraphError=W,Ne.NotFoundGraphError=H,Ne.UsageGraphError=q,Ne}()},7677:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},4660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(8156)),o=l(n(5099)),i=l(n(6929)),a=l(n(683)),s=l(n(7685)),u=l(n(5751)),c=l(n(8310));function l(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=e.classes,n=e.title,o=e.message;return r.default.createElement("div",null,r.default.createElement("span",{className:t.errorTitle},n),r.default.createElement("span",{className:t.errorMessage},o))}d.defaultProps={title:u.default.text("Error:"),message:u.default.text("Something was wrong"),classes:{}},d.propTypes={title:o.default.string,message:o.default.string,classes:o.default.object};var f=function(e){var t,n=e.error,o=e.onClose,l=e.style,f=e.classes,h=e.className,p=u.default.text("Close");if(r.default.isValidElement(n))t=n;else{var g=n||{},m=g.title,v=g.message;t=r.default.createElement(d,{classes:f,title:m,message:v})}return r.default.createElement("div",{className:(0,c.default)(f.errorBlock,h),style:l},r.default.createElement("div",{className:f.descriptionBlock},t),r.default.createElement("div",{className:f.closeIconContainer},r.default.createElement(i.default,{title:p,placement:"bottom"},r.default.createElement(a.default,{onClick:o,"aria-label":p},r.default.createElement(s.default,null)))))};f.propTypes={id:o.default.oneOfType([o.default.string,o.default.number]),error:o.default.oneOfType([o.default.node,o.default.shape({title:o.default.string,message:o.default.string})]),style:o.default.object,onClose:o.default.func,className:o.default.oneOfType([o.default.string,o.default.object]),classes:o.default.object},f.defaultProps={classes:{}};var h=f;t.default=h},4176:(e,t,n)=>{"use strict";t.ZP=void 0;var r=l(n(8096)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(8156)),i=l(n(5099)),a=n(72),s=l(n(4660)),u=l(n(1444));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}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 f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,r,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=m(e);if(t()){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}(u);function u(e){var t,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o=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)))},(r="processAutoCloseInterval")in(n=g(t=i.call(this,e)))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,u.$$instance=g(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind(g(t)),t.state={errors:[]},t}return t=u,r=[{key:"addError",value:function(e){u.$$instance&&(u.$$instance.setState({errors:u.$$instance.state.errors.concat(e)}),u.$$instance.processAutoCloseInterval())}}],(n=[{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,i=r.length,u=r[i-1];return o.default.createElement(a.CSSTransitionGroup,{transitionName:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,leave:n.errorContainerLeave,leaveActive:n.errorContainerLeaveActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},transitionAppearTimeout:600,transitionEnterTimeout:600,transitionLeaveTimeout:300,transitionAppear:!0},Boolean(i)&&o.default.createElement(s.default,{classes:n,key:"errorMessage".concat(i),onClose:this.handleCloseErrorMessage,error:u,className:t}))}}])&&f(t.prototype,n),r&&f(t,r),u}(o.PureComponent);v.propTypes={className:i.default.oneOfType([i.default.string,i.default.object]),classes:i.default.object,autoCloseInterval:i.default.number},v.defaultProps={classes:{}};var y=(0,r.default)(u.default)(v);t.ZP=y},1444:(e,t)=>{"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerLeave:{opacity:1},errorContainerLeaveActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:r,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)"},n(t,e.breakpoints.down("sm"),{left:0,right:0}),n(t,e.breakpoints.down("md"),{left:288,right:32}),n(t,e.breakpoints.down("lg"),{left:336,right:80}),n(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:r,marginTop:5}}}}},4129:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(8156)),i=c(n(5099)),a=c(n(2205)),s=c(n(9490)),u=n(9685);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}u.nameShape.isRequired,i.default.bool,i.default.bool,i.default.bool,(0,u.transitionTimeout)("Appear"),(0,u.transitionTimeout)("Enter"),(0,u.transitionTimeout)("Leave");var f=function(e){function t(){var n,r;l(this,t);for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=r=d(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return o.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return o.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(o.default.Component);f.displayName="CSSTransitionGroup",f.propTypes={},f.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=f,e.exports=t.default},9490:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=f(n(2196)),i=f(n(4812)),a=f(n(6463)),s=n(4596),u=f(n(8156)),c=f(n(5099)),l=n(7111),d=n(9685);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=[];s.transitionEnd&&g.push(s.transitionEnd),s.animationEnd&&g.push(s.animationEnd),c.default.node,d.nameShape.isRequired,c.default.bool,c.default.bool,c.default.bool,c.default.number,c.default.number,c.default.number;var m=function(e){function t(){var n,r;h(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=p(this,e.call.apply(e,[this].concat(i))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,l.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,u=this.props.name[e+"Active"]||a+"-active",c=null,d=void 0;(0,o.default)(r,a),this.queueClassAndNode(u,r);var f=function(e){e&&e.target!==r||(clearTimeout(c),d&&d(),(0,i.default)(r,a),(0,i.default)(r,u),d&&d(),t&&t())};n?(c=setTimeout(f,n),this.transitionTimeouts.push(c)):s.transitionEnd&&(d=function(e,t){return g.length?g.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){g.length&&g.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,f))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)((function(){return n.flushClassNameAndNodeQueue()})))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,o.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,u.default.cloneElement(u.default.Children.only(this.props.children),e)},t}(u.default.Component);m.displayName="CSSTransitionGroupChild",m.propTypes={},t.default=m,e.exports=t.default},2205:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(8994)),i=u(n(8156)),a=u(n(5099)),s=(u(n(2564)),n(276));function u(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var c=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,o));return i.performAppear=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(i._handleDoneAppearing.bind(i,e,t)):i._handleDoneAppearing(e,t)},i._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e,t)},i.performEnter=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(i._handleDoneEntering.bind(i,e,t)):i._handleDoneEntering(e,t)},i._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e,t)},i.performLeave=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(i._handleDoneLeaving.bind(i,e,t)):i._handleDoneLeaving(e,t)},i._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)?i.keysToEnter.push(e):i.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}}))},i.childRefs=Object.create(null),i.state={children:(0,s.getChildMapping)(n.children)},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var o=n&&n.hasOwnProperty(r);!t[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var i in n){var a=t&&t.hasOwnProperty(i);!n[i]||a||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach((function(t){return e.performEnter(t,e.childRefs[t])}));var n=this.keysToLeave;this.keysToLeave=[],n.forEach((function(t){return e.performLeave(t,e.childRefs[t])}))},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!=typeof r.ref,s=e.props.childFactory(r),u=function(t){e.childRefs[n]=t};s===r&&a&&(u=(0,o.default)(r.ref,u)),t.push(i.default.cloneElement(s,{key:n,ref:u}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,i.default.createElement(this.props.component,s,t)},t}(i.default.Component);c.displayName="TransitionGroup",c.propTypes={},c.defaultProps={component:"span",childFactory:function(e){return e}},t.default=c,e.exports=t.default},72:(e,t,n)=>{"use strict";var r=i(n(4129)),o=i(n(2205));function i(e){return e&&e.__esModule?e:{default:e}}e.exports={TransitionGroup:o.default,CSSTransitionGroup:r.default}},276:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,(function(e){return e})).forEach((function(e){t[e.key]=e})),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a=void 0,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s};var r=n(8156)},9685:(e,t,n)=>{"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},o(n(8156));var r=o(n(5099));function o(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},8765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigmaContainer=void 0;const r=n(8303),o=r.__importStar(n(8156)),i=n(9358),a=r.__importDefault(n(8996)),s=n(222),u=n(4222);t.SigmaContainer=({graphOptions:e,id:t,className:n,style:r,initialSettings:c,children:l})=>{const d=o.useRef(null),f=o.useRef(null),h={className:`react-sigma-v2 ${n||""}`,id:t,style:r},[p,g]=o.useState(null),m=o.useRef();u.isEqual(m.current,c)||(m.current=c);const v=o.useRef();u.isEqual(v.current,e)||(v.current=e),o.useEffect((()=>{let e=null;return null!==f.current&&(e=new i.Sigma(new a.default(v.current),f.current,m.current),g(e)),()=>{g((()=>(e&&e.kill(),null)))}}),[f,v,m]);const y=o.useMemo((()=>p&&d.current?{sigma:p,container:d.current}:null),[p,d.current]),b=null!==y?o.default.createElement(s.SigmaProvider,{value:y},l):null;return o.default.createElement("div",Object.assign({},h,{ref:d}),o.default.createElement("div",{className:"sigma-container",ref:f}),b)}},222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigmaContext=t.SigmaProvider=t.SigmaContext=void 0;const r=n(8156);t.SigmaContext=r.createContext(null),t.SigmaProvider=t.SigmaContext.Provider,t.useSigmaContext=function(){const e=r.useContext(t.SigmaContext);if(null==e)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return e}},178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlsContainer=void 0;const r=n(8303).__importDefault(n(8156));t.ControlsContainer=({id:e,className:t,style:n,children:o,position:i="bottom-left"})=>{const a={className:`react-sigma-controls ${t||""} ${i}`,id:e,style:n};return r.default.createElement("div",Object.assign({},a),o)}},8460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForceAtlasControl=void 0;const r=n(8303),o=r.__importStar(n(8156)),i=r.__importDefault(n(8301)),a=n(4222),s=n(4739);t.ForceAtlasControl=({id:e,className:t,style:n,settings:r,autoRunFor:u=-1,customStopLayout:c,customStartLayout:l})=>{const d=s.useSigma(),f=o.useRef(null);r&&!a.isEqual(f.current,r)&&(f.current=r);const[h,p]=o.useState(null),[g,m]=o.useState(!1);o.useEffect((()=>{if(!d)return;const e=new i.default(d.getGraph(),f.current||{});p(e);let t=null;return u>-1&&d.getGraph().order>0&&(m(!0),t=u>0?window.setTimeout((()=>{m(!1)}),u):null),()=>{e&&e.kill(),t&&clearTimeout(t)}}),[u,f,d]),o.useEffect((()=>{try{h&&(!0===g?h.start():h.stop())}catch(e){}}),[h,g]);const v=!0===g&&!c||!1===g&&!l?"default":"",y={className:`react-sigma-control-forceatlas2 ${g?"running":"stopped"} ${t||""}`,id:e,style:n};return o.default.createElement("div",Object.assign({},y),o.default.createElement("button",{className:v,onClick:()=>m((e=>!e)),title:g?"Stop the layout animation":"Start the layout animation"},!0===g?c:l))}},484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenControl=void 0;const r=n(8303).__importStar(n(8156)),o=n(222);t.FullScreenControl=({id:e,className:t,style:n,customEnterFullScreen:i,customExitFullScreen:a})=>{const{container:s}=o.useSigmaContext(),[u,c]=r.useState(!1),l=()=>c((e=>!e));r.useEffect((()=>(document.addEventListener("fullscreenchange",l),()=>document.removeEventListener("fullscreenchange",l))),[l]);const d=u&&!a||!u&&!i?"default":"",f={className:`react-sigma-control-${u?"normalscreen":"fullscreen"} ${t||""}`,id:e,style:n};return document.fullscreenEnabled?r.default.createElement("div",Object.assign({},f),r.default.createElement("button",{className:d,onClick:()=>{return e=s,void(document.fullscreenElement!==e?e.requestFullscreen():document.exitFullscreen&&document.exitFullscreen());var e},title:"Toggle Fullscreen"},u?a:i)):null}},948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchControl=void 0;const r=n(8303).__importStar(n(8156)),o=n(4739);t.SearchControl=({id:e,className:t,style:n})=>{const i=o.useSigma(),[a,s]=r.useState(""),[u,c]=r.useState([]),[l,d]=r.useState(null);r.useEffect((()=>{const e=[];!l&&a.length>1&&i.getGraph().forEachNode(((t,n)=>{n.label&&n.label.toLowerCase().includes(a.toLowerCase())&&e.push({id:t,label:n.label})})),c(e)}),[a]),r.useEffect((()=>{if(!l)return;i.getGraph().setNodeAttribute(l,"highlighted",!0);const e=i.getNodeDisplayData(l);return e&&i.getCamera().animate(e,{easing:"linear",duration:500}),()=>{i.getGraph().setNodeAttribute(l,"highlighted",!1)}}),[l]);const f={className:`react-sigma-search ${t||""}`,id:e,style:n};return r.default.createElement("div",Object.assign({},f),r.default.createElement("input",{type:"text",placeholder:"Search...",list:"nodes",value:a,onChange:e=>{const t=e.target.value,n=u.find((e=>e.label===t));n?(s(n.label),c([]),d(n.id)):(d(null),s(t))}}),r.default.createElement("datalist",{id:"nodes"},u.map((e=>r.default.createElement("option",{key:e.id,value:e.label},e.label)))))}},3855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomControl=void 0;const r=n(8303).__importDefault(n(8156)),o=n(4739);t.ZoomControl=({className:e,style:t,animationDuration:n=200,customZoomIn:i,customZoomOut:a,customZoomCenter:s})=>{const u=o.useSigma();function c(e){u&&(e?e>0?u.getCamera().animatedZoom({duration:n,factor:1.5}):e<0&&u.getCamera().animatedUnzoom({duration:n,factor:1.5}):u.getCamera().animatedReset({duration:n}))}const l={className:e,style:t};return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",Object.assign({},l,{className:`react-sigma-control-zoom-in ${e||""}`}),r.default.createElement("button",{className:i?"":"default",onClick:()=>c(1),title:"Zoom In"},i)),r.default.createElement("div",Object.assign({},l,{className:`react-sigma-control-zoom-out ${e||""}`}),r.default.createElement("button",{className:a?"":"default",onClick:()=>c(-1),title:"Zoom Out"},a)),r.default.createElement("div",Object.assign({},l,{className:`react-sigma-control-zoom-center ${e||""}`}),r.default.createElement("button",{className:s?"":"default",onClick:()=>c(),title:"See whole graph"},s)))}},6370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoadGraph=void 0;const r=n(8156),o=n(4739);t.useLoadGraph=function(){const e=o.useSigma();return r.useCallback(((t,n=!0)=>{e&&t&&(n&&e.getGraph().order>0&&e.getGraph().clear(),e.getGraph().import(t),e.refresh())}),[e])}},4282:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRegisterEvents=void 0;const r=n(8156),o=n(4739),i=n(5945),a=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","kill"],s=["click","rightClick","mouseup","mousedown","mousemove","doubleClick","wheel"],u=["mouseup","mousedown","mousemove"],c=["cameraUpdated"];t.useRegisterEvents=function(){const e=o.useSigma(),t=i.useSetSettings(),[n,l]=r.useState({});return r.useEffect((()=>{if(!e||!n)return;const r=Object.keys(n),o={},i={},l=e.getSettings();return r.some((e=>["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)))&&!1===l.enableEdgeClickEvents&&(o.enableEdgeClickEvents=!0,i.enableEdgeClickEvents=!1),r.some((e=>["enterEdge","leaveEdge"].includes(e)))&&!1===l.enableEdgeHoverEvents&&(o.enableEdgeHoverEvents=!0,i.enableEdgeHoverEvents=!1),r.some((e=>["wheelEdge"].includes(e)))&&!1===l.enableEdgeWheelEvents&&(o.enableEdgeWheelEvents=!0,i.enableEdgeWheelEvents=!1),Object.keys(o).length>0&&t(o),r.forEach((t=>{const r=n[t];a.includes(t)&&e.on(t,r),s.includes(t)&&e.getMouseCaptor().on(t,r),u.includes(t)&&e.getTouchCaptor().on(t,r),c.includes(t)&&e.getCamera().on("updated",r)})),()=>{let r;for(r in Object.keys(i).length>0&&t(i),n){const t=n[r];a.includes(r)&&e.removeListener(r,t),s.includes(r)&&e.getMouseCaptor().removeListener(r,t),u.includes(r)&&e.getTouchCaptor().removeListener(r,t),c.includes(r)&&e.getCamera().removeListener("updated",t)}}}),[e,n,t]),l}},5945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSetSettings=void 0;const r=n(8156),o=n(4739);t.useSetSettings=function(){const e=o.useSigma(),[t,n]=r.useState({});return r.useEffect((()=>{if(!e||!t)return;const n={};return Object.keys(t).forEach((r=>{n[r]=t[r],e.setSetting(r,t[r])})),()=>{Object.keys(n).forEach((t=>{e.setSetting(t,n[t])}))}}),[e,t]),n}},4739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigma=void 0;const r=n(222);t.useSigma=function(){return r.useSigmaContext().sigma}},4986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8303);r.__exportStar(n(8765),t),r.__exportStar(n(4739),t),r.__exportStar(n(4282),t),r.__exportStar(n(6370),t),r.__exportStar(n(5945),t),r.__exportStar(n(178),t),r.__exportStar(n(8460),t),r.__exportStar(n(3855),t),r.__exportStar(n(484),t),r.__exportStar(n(948),t),r.__exportStar(n(6799),t)},6799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4222:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,d=9007199254740991,f=NaN,h=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",E="[object GeneratorFunction]",x="[object Map]",_="[object Number]",C="[object Object]",S="[object Promise]",A="[object RegExp]",k="[object Set]",O="[object String]",D="[object Symbol]",L="[object WeakMap]",T="[object ArrayBuffer]",M="[object DataView]",P="[object Float32Array]",F="[object Float64Array]",N="[object Int8Array]",j="[object Int16Array]",R="[object Int32Array]",I="[object Uint8Array]",B="[object Uint8ClampedArray]",G="[object Uint16Array]",z="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,Y=RegExp(q.source),K=RegExp(V.source),$=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="["+Ce+"]",Ae="["+Ee+"]",ke="\\d+",Oe="["+xe+"]",De="[^\\ud800-\\udfff"+Ce+ke+"\\u2700-\\u27bf"+xe+_e+"]",Le="\\ud83c[\\udffb-\\udfff]",Te="[^\\ud800-\\udfff]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+_e+"]",Ne="(?:"+Oe+"|"+De+")",je="(?:"+Fe+"|"+De+")",Re="(?:['’](?:d|ll|m|re|s|t|ve))?",Ie="(?:['’](?:D|LL|M|RE|S|T|VE))?",Be="(?:"+Ae+"|"+Le+")?",Ge="[\\ufe0e\\ufe0f]?",ze=Ge+Be+"(?:\\u200d(?:"+[Te,Me,Pe].join("|")+")"+Ge+Be+")*",Ue="(?:"+["[\\u2700-\\u27bf]",Me,Pe].join("|")+")"+ze,We="(?:"+[Te+Ae+"?",Ae,Me,Pe,"[\\ud800-\\udfff]"].join("|")+")",He=RegExp("['’]","g"),qe=RegExp(Ae,"g"),Ve=RegExp(Le+"(?="+Le+")|"+We+ze,"g"),Ye=RegExp([Fe+"?"+Oe+"+"+Re+"(?="+[Se,Fe,"$"].join("|")+")",je+"+"+Ie+"(?="+[Se,Fe+Ne,"$"].join("|")+")",Fe+"?"+Ne+"+"+Re,Fe+"+"+Ie,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Ue].join("|"),"g"),Ke=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),$e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xe=-1,Qe={};Qe[P]=Qe[F]=Qe[N]=Qe[j]=Qe[R]=Qe[I]=Qe[B]=Qe[G]=Qe[z]=!0,Qe[g]=Qe[m]=Qe[T]=Qe[v]=Qe[M]=Qe[y]=Qe[b]=Qe[w]=Qe[x]=Qe[_]=Qe[C]=Qe[A]=Qe[k]=Qe[O]=Qe[L]=!1;var Je={};Je[g]=Je[m]=Je[T]=Je[M]=Je[v]=Je[y]=Je[P]=Je[F]=Je[N]=Je[j]=Je[R]=Je[x]=Je[_]=Je[C]=Je[A]=Je[k]=Je[O]=Je[D]=Je[I]=Je[B]=Je[G]=Je[z]=!0,Je[b]=Je[w]=Je[L]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ut=st&&st.exports===at,ct=ut&&rt.process,lt=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),dt=lt&<.isArrayBuffer,ft=lt&<.isDate,ht=lt&<.isMap,pt=lt&<.isRegExp,gt=lt&<.isSet,mt=lt&<.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function _t(e,t){return!(null==e||!e.length)&&Pt(e,t,0)>-1}function Ct(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function At(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function kt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ot(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Rt("length");function Tt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Mt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Pt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Mt(e,Nt,n)}function Ft(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Nt(e){return e!=e}function jt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Rt(e){return function(t){return null==t?o:t[e]}}function It(e){return function(t){return null==e?o:e[t]}}function Bt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ut(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function Ht(e,t){return St(t,(function(t){return e[t]}))}function qt(e,t){return e.has(t)}function Vt(e,t){for(var n=-1,r=e.length;++n<r&&Pt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Pt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var $t=It({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Zt=It({"&":"&","<":"<",">":">",'"':""","'":"'"});function Xt(e){return"\\"+et[e]}function Qt(e){return Ke.test(e)}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Qt(e)?function(e){for(var t=Ve.lastIndex=0;Ve.test(e);)++t;return t}(e):Lt(e)}function an(e){return Qt(e)?function(e){return e.match(Ve)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var un=It({"&":"&","<":"<",">":">",""":'"',"'":"'"}),cn=function e(t){var n,r=(t=null==t?it:cn.defaults(it.Object(),t,cn.pick(it,Ze))).Array,oe=t.Date,Ee=t.Error,xe=t.Function,_e=t.Math,Ce=t.Object,Se=t.RegExp,Ae=t.String,ke=t.TypeError,Oe=r.prototype,De=xe.prototype,Le=Ce.prototype,Te=t["__core-js_shared__"],Me=De.toString,Pe=Le.hasOwnProperty,Fe=0,Ne=(n=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=Le.toString,Re=Me.call(Ce),Ie=it._,Be=Se("^"+Me.call(Pe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=ut?t.Buffer:o,ze=t.Symbol,Ue=t.Uint8Array,We=Ge?Ge.allocUnsafe:o,Ve=en(Ce.getPrototypeOf,Ce),Ke=Ce.create,et=Le.propertyIsEnumerable,rt=Oe.splice,ot=ze?ze.isConcatSpreadable:o,at=ze?ze.iterator:o,st=ze?ze.toStringTag:o,ct=function(){try{var e=li(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Lt=oe&&oe.now!==it.Date.now&&oe.now,It=t.setTimeout!==it.setTimeout&&t.setTimeout,ln=_e.ceil,dn=_e.floor,fn=Ce.getOwnPropertySymbols,hn=Ge?Ge.isBuffer:o,pn=t.isFinite,gn=Oe.join,mn=en(Ce.keys,Ce),vn=_e.max,yn=_e.min,bn=oe.now,wn=t.parseInt,En=_e.random,xn=Oe.reverse,_n=li(t,"DataView"),Cn=li(t,"Map"),Sn=li(t,"Promise"),An=li(t,"Set"),kn=li(t,"WeakMap"),On=li(Ce,"create"),Dn=kn&&new kn,Ln={},Tn=Bi(_n),Mn=Bi(Cn),Pn=Bi(Sn),Fn=Bi(An),Nn=Bi(kn),jn=ze?ze.prototype:o,Rn=jn?jn.valueOf:o,In=jn?jn.toString:o;function Bn(e){if(ns(e)&&!qa(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Pe.call(e,"__wrapped__"))return Gi(e)}return new Un(e)}var Gn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function zn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new qn(e);this.size=t.size}function $n(e,t){var n=qa(e),r=!n&&Ha(e),o=!n&&!r&&$a(e),i=!n&&!r&&!o&&ls(e),a=n||r||o||i,s=a?zt(e.length,Ae):[],u=s.length;for(var c in e)!t&&!Pe.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,u))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Vr(0,t-1)]:o}function Xn(e,t){return Fi(Oo(e),ar(t,0,e.length))}function Qn(e){return Fi(Oo(e))}function Jn(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Pe.call(e,t)&&za(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Do(t,Ms(t),e)}function or(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:ks(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Oo(e,s)}else{var f=hi(e),h=f==w||f==E;if($a(e))return xo(e,u);if(f==C||f==g||h&&!i){if(s=c||h?{}:gi(e),!u)return c?function(e,t){return Do(e,fi(e),t)}(e,function(e,t){return e&&Do(t,Ps(t),e)}(s,e)):function(e,t){return Do(e,di(e),t)}(e,rr(s,e))}else{if(!Je[f])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case T:return _o(e);case v:case y:return new o(+e);case M:return function(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case P:case F:case N:case j:case R:case I:case B:case G:case z:return Co(e,n);case x:return new o;case _:case O:return new o(e);case A:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case D:return r=e,Rn?Ce(Rn.call(r)):{}}}(e,f,u)}}a||(a=new Kn);var p=a.get(e);if(p)return p;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,sr(r,t,n,o,e,a))}));var m=d?o:(l?c?ri:ni:c?Ps:Ms)(e);return bt(m||e,(function(r,o){m&&(r=e[o=r]),er(s,o,sr(r,t,n,o,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new ke(i);return Li((function(){e.apply(o,n)}),t)}function lr(e,t,n,r){var o=-1,i=_t,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=St(t,Wt(n))),r?(i=Ct,a=!1):t.length>=200&&(i=qt,a=!1,t=new Yn(t));e:for(;++o<s;){var l=e[o],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,r)||u.push(l)}return u}Bn.templateSettings={escape:$,evaluate:Z,interpolate:X,variable:"",imports:{_:Bn}},Bn.prototype=zn.prototype,Bn.prototype.constructor=Bn,Un.prototype=Gn(zn.prototype),Un.prototype.constructor=Un,Wn.prototype=Gn(zn.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?o:n}return Pe.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==o:Pe.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return tr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Cn||qn),string:new Hn}},Vn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return ui(this,e).get(e)},Vn.prototype.has=function(e){return ui(this,e).has(e)},Vn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new qn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var dr=Mo(br),fr=Mo(wr,!0);function hr(e,t){var n=!0;return dr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!cs(s):n(s,u)))var u=s,c=a}return c}function gr(e,t){var n=[];return dr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):At(o,s):r||(o[o.length]=s)}return o}var vr=Po(),yr=Po(!0);function br(e,t){return e&&vr(e,t,Ms)}function wr(e,t){return e&&yr(e,t,Ms)}function Er(e,t){return xt(t,(function(t){return Qa(e[t])}))}function xr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&n<r;)e=e[Ii(t[n++])];return n&&n==r?e:o}function _r(e,t,n){var r=t(e);return qa(e)?r:At(r,n(e))}function Cr(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in Ce(e)?function(e){var t=Pe.call(e,st),n=e[st];try{e[st]=o;var r=!0}catch(e){}var i=je.call(e);return r&&(t?e[st]=n:delete e[st]),i}(e):function(e){return je.call(e)}(e)}function Sr(e,t){return e>t}function Ar(e,t){return null!=e&&Pe.call(e,t)}function kr(e,t){return null!=e&&t in Ce(e)}function Or(e,t,n){for(var i=n?Ct:_t,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,d=[];u--;){var f=e[u];u&&t&&(f=St(f,Wt(t))),l=yn(f.length,l),c[u]=!n&&(t||a>=120&&f.length>=120)?new Yn(u&&f):o}f=e[0];var h=-1,p=c[0];e:for(;++h<a&&d.length<l;){var g=f[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?qt(p,m):i(d,m,n))){for(u=s;--u;){var v=c[u];if(!(v?qt(v,m):i(e[u],m,n)))continue e}p&&p.push(m),d.push(g)}}return d}function Dr(e,t,n){var r=null==(e=Ai(e,t=yo(t,e)))?e:e[Ii(Xi(t))];return null==r?o:vt(r,e,n)}function Lr(e){return ns(e)&&Cr(e)==g}function Tr(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=qa(e),u=qa(t),c=s?m:hi(e),l=u?m:hi(t),d=(c=c==g?C:c)==C,f=(l=l==g?C:l)==C,h=c==l;if(h&&$a(e)){if(!$a(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Kn),s||ls(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case v:case y:case _:return za(+e,+t);case b:return e.name==t.name&&e.message==t.message;case A:case O:return e==t+"";case x:var s=Jt;case k:var u=1&r;if(s||(s=nn),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=ei(s(e),s(t),r,o,i,a);return a.delete(e),l;case D:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var p=d&&Pe.call(e,"__wrapped__"),w=f&&Pe.call(t,"__wrapped__");if(p||w){var E=p?e.value():e,S=w?t.value():t;return a||(a=new Kn),i(E,S,n,r,a)}}return!!h&&(a||(a=new Kn),function(e,t,n,r,i,a){var s=1&n,u=ni(e),c=u.length;if(c!=ni(t).length&&!s)return!1;for(var l=c;l--;){var d=u[l];if(!(s?d in t:Pe.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++l<c;){var m=e[d=u[l]],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(y===o?m===v||i(m,v,n,r,a):y)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,i,a))}(e,t,n,r,Tr,i))}function Mr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ce(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],d=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var f=new Kn;if(r)var h=r(l,d,c,e,t,f);if(!(h===o?Tr(d,l,3,r,f):h))return!1}}return!0}function Pr(e){return!(!ts(e)||(t=e,Ne&&Ne in t))&&(Qa(e)?Be:ge).test(Bi(e));var t}function Fr(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?qa(e)?Br(e[0],e[1]):Ir(e):hu(e)}function Nr(e){if(!xi(e))return mn(e);var t=[];for(var n in Ce(e))Pe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e,t){return e<t}function Rr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return dr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Ir(e){var t=ci(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Br(e,t){return bi(e)&&_i(t)?Ci(Ii(e),t):function(n){var r=ks(n,e);return r===o&&r===t?Os(n,e):Tr(t,r,3)}}function Gr(e,t,n,r,i){e!==t&&vr(t,(function(a,s){if(i||(i=new Kn),ts(a))!function(e,t,n,r,i,a,s){var u=Oi(e,n),c=Oi(t,n),l=s.get(c);if(l)Jn(e,n,l);else{var d=a?a(u,c,n+"",e,t,s):o,f=d===o;if(f){var h=qa(c),p=!h&&$a(c),g=!h&&!p&&ls(c);d=c,h||p||g?qa(u)?d=u:Ka(u)?d=Oo(u):p?(f=!1,d=xo(c,!0)):g?(f=!1,d=Co(c,!0)):d=[]:is(c)||Ha(c)?(d=u,Ha(u)?d=ys(u):ts(u)&&!Qa(u)||(d=gi(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),Jn(e,n,d)}}(e,t,s,n,Gr,r,i);else{var u=r?r(Oi(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Jn(e,s,u)}}),Ps)}function zr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?St(t,(function(e){return qa(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;t=St(t,Wt(si()));var o=Rr(e,(function(e,n,o){var i=St(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=So(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=xr(e,a);n(s,a)&&Xr(i,yo(a,e),s)}return i}function Hr(e,t,n,r){var o=r?Ft:Pt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=St(e,Wt(n)));++i<a;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(s,l,u,r))>-1;)s!==e&&rt.call(s,u,1),rt.call(e,u,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?rt.call(e,o,1):co(e,o)}}return e}function Vr(e,t){return e+dn(En()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=dn(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ti(Si(e,t,ou),e+"")}function $r(e){return Zn(zs(e))}function Zr(e,t){var n=zs(e);return Fi(n,ar(t,0,n.length))}function Xr(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=Ii(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=u[c];(l=r?r(d,c,u):o)===o&&(l=ts(d)?d:vi(t[i+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Qr=Dn?function(e,t){return Dn.set(e,t),e}:ou,Jr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:ou;function eo(e){return Fi(zs(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return dr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ou,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=cs(t),l=t===o;i<a;){var d=dn((i+a)/2),f=n(e[d]),h=f!==o,p=null===f,g=f==f,m=cs(f);if(s)var v=r||g;else v=l?g&&(r||h):u?g&&h&&(r||!p):c?g&&h&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?i=d+1:a=d}return yn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:cs(e)?f:+e}function so(e){if("string"==typeof e)return e;if(qa(e))return St(e,so)+"";if(cs(e))return In?In.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=_t,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Ct;else if(i>=200){var c=t?null:Ko(e);if(c)return nn(c);a=!1,o=qt,u=new Yn}else u=t?[]:s;e:for(;++r<i;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,a&&d==d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(l)}else o(u,d,n)||(u!==s&&u.push(d),s.push(l))}return s}function co(e,t){return null==(e=Ai(e,t=yo(t,e)))||delete e[Ii(Xi(t))]}function lo(e,t,n,r){return Xr(e,t,n(xr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function ho(e,t){var n=e;return n instanceof Wn&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,At([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=lr(a[i]||s,e[u],t,n));return uo(mr(a,1),t,n)}function go(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function mo(e){return Ka(e)?e:[]}function vo(e){return"function"==typeof e?e:ou}function yo(e,t){return qa(e)?e:bi(e,t)?[e]:Ri(bs(e))}var bo=Kr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var Eo=lt||function(e){return it.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function _o(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Co(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function So(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=cs(e),s=t!==o,u=null===t,c=t==t,l=cs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function Ao(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=vn(a-s,0),d=r(c+l),f=!o;++u<c;)d[u]=t[u];for(;++i<s;)(f||i<a)&&(d[n[i]]=e[i]);for(;l--;)d[u++]=e[i++];return d}function ko(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,d=vn(a-u,0),f=r(d+l),h=!o;++i<d;)f[i]=e[i];for(var p=i;++c<l;)f[p+c]=t[c];for(;++s<u;)(h||i<a)&&(f[p+n[s]]=e[i++]);return f}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Do(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?or(n,u,c):er(n,u,c)}return n}function Lo(e,t){return function(n,r){var o=qa(n)?yt:nr,i=t?t():{};return o(n,e,si(r,2),i)}}function To(e){return Kr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&yi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ce(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Mo(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Po(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function Fo(e){return function(t){var n=Qt(t=bs(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function No(e){return function(t){return kt(Qs(Hs(t).replace(He,"")),e,"")}}function jo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Gn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ro(e){return function(t,n,r){var i=Ce(t);if(!Ya(t)){var a=si(n,3);t=Ms(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Io(e){return ti((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(i);if(a&&!u&&"wrapper"==ii(s))var u=new Un([],!0)}for(r=u?r:n;++r<n;){var c=ii(s=t[r]),l="wrapper"==c?oi(s):o;u=l&&wi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ii(l[0])].apply(u,l[3]):1==s.length&&wi(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qa(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Bo(e,t,n,i,a,s,u,l,d,f){var h=t&c,p=1&t,g=2&t,m=24&t,v=512&t,y=g?o:jo(e);return function o(){for(var c=arguments.length,b=r(c),w=c;w--;)b[w]=arguments[w];if(m)var E=ai(o),x=Kt(b,E);if(i&&(b=Ao(b,i,a,m)),s&&(b=ko(b,s,u,m)),c-=x,m&&c<f){var _=tn(b,E);return Vo(e,t,Bo,o.placeholder,n,b,_,l,d,f-c)}var C=p?n:this,S=g?C[e]:e;return c=b.length,l?b=ki(b,l):v&&c>1&&b.reverse(),h&&d<c&&(b.length=d),this&&this!==it&&this instanceof o&&(S=y||jo(S)),S.apply(C,b)}}function Go(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function zo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Uo(e){return ti((function(t){return t=St(t,Wt(si())),Kr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,ln(e/on(t)));return Qt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,i){return i&&"number"!=typeof i&&yi(t,n,i)&&(n=i=o),t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n,o){for(var i=-1,a=vn(ln((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ps(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Vo(e,t,n,r,i,a,s,c,l,d){var f=8&t;t|=f?u:64,4&(t&=~(f?64:u))||(t&=-4);var h=[e,t,i,f?a:o,f?s:o,f?o:a,f?o:s,c,l,d],p=n.apply(o,h);return wi(e)&&Di(p,h),p.placeholder=r,Mi(p,e,t)}function Yo(e){var t=_e[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(gs(n),292))&&pn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ko=An&&1/nn(new An([,-0]))[1]==l?function(e){return new An(e)}:cu;function $o(e){return function(t){var n=hi(t);return n==x?Jt(t):n==k?rn(t):function(e,t){return St(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zo(e,t,n,a,l,d,f,h){var p=2&t;if(!p&&"function"!=typeof e)throw new ke(i);var g=a?a.length:0;if(g||(t&=-97,a=l=o),f=f===o?f:vn(gs(f),0),h=h===o?h:gs(h),g-=l?l.length:0,64&t){var m=a,v=l;a=l=o}var y=p?o:oi(e),b=[e,t,n,a,l,m,v,d,f,h];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ao(l,u,t[4]):u,e[4]=l?tn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?ko(l,u,t[6]):u,e[6]=l?tn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(h=b[9]=b[9]===o?p?0:e.length:vn(b[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=jo(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=ai(a);c--;)u[c]=arguments[c];var d=s<3&&u[0]!==l&&u[s-1]!==l?[]:tn(u,l);return(s-=d.length)<n?Vo(e,t,Bo,a.placeholder,o,u,d,o,o,n-s):vt(this&&this!==it&&this instanceof a?i:e,this,u)}}(e,t,h):t!=u&&33!=t||l.length?Bo.apply(o,b):function(e,t,n,o){var i=1&t,a=jo(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=o.length,d=r(l+u),f=this&&this!==it&&this instanceof t?a:e;++c<l;)d[c]=o[c];for(;u--;)d[c++]=arguments[++s];return vt(f,i?n:this,d)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=jo(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Mi((y?Qr:Di)(w,b),e,t)}function Xo(e,t,n,r){return e===o||za(e,Le[n])&&!Pe.call(r,n)?t:e}function Qo(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Gr(e,t,o,Qo,a),a.delete(t)),e}function Jo(e){return is(e)?o:e}function ei(e,t,n,r,i,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,h=!0,p=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++f<u;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(p){if(!Dt(t,(function(e,t){if(!qt(p,t)&&(g===e||i(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==m&&!i(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ti(e){return Ti(Si(e,o,Vi),e+"")}function ni(e){return _r(e,Ms,di)}function ri(e){return _r(e,Ps,fi)}var oi=Dn?function(e){return Dn.get(e)}:cu;function ii(e){for(var t=e.name+"",n=Ln[t],r=Pe.call(Ln,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Pe.call(Bn,"placeholder")?Bn:e).placeholder}function si(){var e=Bn.iteratee||iu;return e=e===iu?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ci(e){for(var t=Ms(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,_i(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Pr(n)?n:o}var di=fn?function(e){return null==e?[]:(e=Ce(e),xt(fn(e),(function(t){return et.call(e,t)})))}:mu,fi=fn?function(e){for(var t=[];e;)At(t,di(e)),e=Ve(e);return t}:mu,hi=Cr;function pi(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=Ii(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&vi(a,o)&&(qa(e)||Ha(e))}function gi(e){return"function"!=typeof e.constructor||xi(e)?{}:Gn(Ve(e))}function mi(e){return qa(e)||Ha(e)||!!(ot&&e&&e[ot])}function vi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&vi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function bi(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||J.test(e)||!Q.test(e)||null!=t&&e in Ce(t)}function wi(e){var t=ii(e),n=Bn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(_n&&hi(new _n(new ArrayBuffer(1)))!=M||Cn&&hi(new Cn)!=x||Sn&&hi(Sn.resolve())!=S||An&&hi(new An)!=k||kn&&hi(new kn)!=L)&&(hi=function(e){var t=Cr(e),n=t==C?e.constructor:o,r=n?Bi(n):"";if(r)switch(r){case Tn:return M;case Mn:return x;case Pn:return S;case Fn:return k;case Nn:return L}return t});var Ei=Te?Qa:vu;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function _i(e){return e==e&&!ts(e)}function Ci(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ce(n))}}function Si(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),vt(e,this,u)}}function Ai(e,t){return t.length<2?e:xr(e,to(t,0,-1))}function ki(e,t){for(var n=e.length,r=yn(t.length,n),i=Oo(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Di=Pi(Qr),Li=It||function(e,t){return it.setTimeout(e,t)},Ti=Pi(Jr);function Mi(e,t,n){var r=t+"";return Ti(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(p,(function(n){var r="_."+n[0];t&n[1]&&!_t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Pi(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Fi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Vr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ni,ji,Ri=(Ni=Na((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===ji.size&&ji.clear(),e})),ji=Ni.cache,Ni);function Ii(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bi(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Gi(e){if(e instanceof Wn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Kr((function(e,t){return Ka(e)?lr(e,mr(t,1,Ka,!0)):[]})),Ui=Kr((function(e,t){var n=Xi(t);return Ka(n)&&(n=o),Ka(e)?lr(e,mr(t,1,Ka,!0),si(n,2)):[]})),Wi=Kr((function(e,t){var n=Xi(t);return Ka(n)&&(n=o),Ka(e)?lr(e,mr(t,1,Ka,!0),o,n):[]}));function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(r+o,0)),Mt(e,si(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=gs(n),i=n<0?vn(r+i,0):yn(i,r-1)),Mt(e,si(t,3),i,!0)}function Vi(e){return null!=e&&e.length?mr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Ki=Kr((function(e){var t=St(e,mo);return t.length&&t[0]===e[0]?Or(t):[]})),$i=Kr((function(e){var t=Xi(e),n=St(e,mo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Or(n,si(t,2)):[]})),Zi=Kr((function(e){var t=Xi(e),n=St(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Or(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Qi=Kr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,St(t,(function(e){return vi(e,n)?+e:e})).sort(So)),r}));function ta(e){return null==e?e:xn.call(e)}var na=Kr((function(e){return uo(mr(e,1,Ka,!0))})),ra=Kr((function(e){var t=Xi(e);return Ka(t)&&(t=o),uo(mr(e,1,Ka,!0),si(t,2))})),oa=Kr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,uo(mr(e,1,Ka,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Ka(e))return t=vn(e.length,t),!0})),zt(t,(function(t){return St(e,Rt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:St(n,(function(e){return vt(t,o,e)}))}var sa=Kr((function(e,t){return Ka(e)?lr(e,t):[]})),ua=Kr((function(e){return po(xt(e,Ka))})),ca=Kr((function(e){var t=Xi(e);return Ka(t)&&(t=o),po(xt(e,Ka),si(t,2))})),la=Kr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,po(xt(e,Ka),o,t)})),da=Kr(ia),fa=Kr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function ha(e){var t=Bn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ga=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ma=Lo((function(e,t,n){Pe.call(e,n)?++e[n]:or(e,n,1)})),va=Ro(Hi),ya=Ro(qi);function ba(e,t){return(qa(e)?bt:dr)(e,si(t,3))}function wa(e,t){return(qa(e)?wt:fr)(e,si(t,3))}var Ea=Lo((function(e,t,n){Pe.call(e,n)?e[n].push(t):or(e,n,[t])})),xa=Kr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return dr(e,(function(e){a[++o]=i?vt(t,e,n):Dr(e,t,n)})),a})),_a=Lo((function(e,t,n){or(e,n,t)}));function Ca(e,t){return(qa(e)?St:Rr)(e,si(t,3))}var Sa=Lo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Aa=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,mr(t,1),[])})),ka=Lt||function(){return it.Date.now()};function Oa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Zo(e,c,o,o,o,o,t)}function Da(e,t){var n;if("function"!=typeof t)throw new ke(i);return e=gs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var La=Kr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(La));r|=u}return Zo(e,r,t,n,o)})),Ta=Kr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Ta));r|=u}return Zo(t,r,e,n,o)}));function Ma(e,t,n){var r,a,s,u,c,l,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new ke(i);function g(t){var n=r,i=a;return r=a=o,d=t,u=e.apply(i,n)}function m(e){return d=e,c=Li(y,t),f?g(e):u}function v(e){var n=e-l;return l===o||n>=t||n<0||h&&e-d>=s}function y(){var e=ka();if(v(e))return b(e);c=Li(y,function(e){var n=t-(e-l);return h?yn(n,s-(e-d)):n}(e))}function b(e){return c=o,p&&r?g(e):(r=a=o,u)}function w(){var e=ka(),n=v(e);if(r=arguments,a=this,l=e,n){if(c===o)return m(l);if(h)return Eo(c),c=Li(y,t),g(l)}return c===o&&(c=Li(y,t)),u}return t=vs(t)||0,ts(n)&&(f=!!n.leading,s=(h="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),w.cancel=function(){c!==o&&Eo(c),d=0,r=l=a=c=o},w.flush=function(){return c===o?u:b(ka())},w}var Pa=Kr((function(e,t){return cr(e,1,t)})),Fa=Kr((function(e,t,n){return cr(e,vs(t)||0,n)}));function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Na.Cache||Vn),n}function ja(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Vn;var Ra=bo((function(e,t){var n=(t=1==t.length&&qa(t[0])?St(t[0],Wt(si())):St(mr(t,1),Wt(si()))).length;return Kr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return vt(e,this,r)}))})),Ia=Kr((function(e,t){var n=tn(t,ai(Ia));return Zo(e,u,o,t,n)})),Ba=Kr((function(e,t){var n=tn(t,ai(Ba));return Zo(e,64,o,t,n)})),Ga=ti((function(e,t){return Zo(e,256,o,o,o,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Ua=qo(Sr),Wa=qo((function(e,t){return e>=t})),Ha=Lr(function(){return arguments}())?Lr:function(e){return ns(e)&&Pe.call(e,"callee")&&!et.call(e,"callee")},qa=r.isArray,Va=dt?Wt(dt):function(e){return ns(e)&&Cr(e)==T};function Ya(e){return null!=e&&es(e.length)&&!Qa(e)}function Ka(e){return ns(e)&&Ya(e)}var $a=hn||vu,Za=ft?Wt(ft):function(e){return ns(e)&&Cr(e)==y};function Xa(e){if(!ns(e))return!1;var t=Cr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Qa(e){if(!ts(e))return!1;var t=Cr(e);return t==w||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==gs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ht?Wt(ht):function(e){return ns(e)&&hi(e)==x};function os(e){return"number"==typeof e||ns(e)&&Cr(e)==_}function is(e){if(!ns(e)||Cr(e)!=C)return!1;var t=Ve(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==Re}var as=pt?Wt(pt):function(e){return ns(e)&&Cr(e)==A},ss=gt?Wt(gt):function(e){return ns(e)&&hi(e)==k};function us(e){return"string"==typeof e||!qa(e)&&ns(e)&&Cr(e)==O}function cs(e){return"symbol"==typeof e||ns(e)&&Cr(e)==D}var ls=mt?Wt(mt):function(e){return ns(e)&&es(e.length)&&!!Qe[Cr(e)]},ds=qo(jr),fs=qo((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ya(e))return us(e)?an(e):Oo(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=hi(e);return(t==x?Jt:t==k?nn:zs)(e)}function ps(e){return e?(e=vs(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?ar(gs(e),0,h):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return f;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ut(e);var n=pe.test(e);return n||me.test(e)?nt(e.slice(2),n?2:8):he.test(e)?f:+e}function ys(e){return Do(e,Ps(e))}function bs(e){return null==e?"":so(e)}var ws=To((function(e,t){if(xi(t)||Ya(t))Do(t,Ms(t),e);else for(var n in t)Pe.call(t,n)&&er(e,n,t[n])})),Es=To((function(e,t){Do(t,Ps(t),e)})),xs=To((function(e,t,n,r){Do(t,Ps(t),e,r)})),_s=To((function(e,t,n,r){Do(t,Ms(t),e,r)})),Cs=ti(ir),Ss=Kr((function(e,t){e=Ce(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),u=-1,c=s.length;++u<c;){var l=s[u],d=e[l];(d===o||za(d,Le[l])&&!Pe.call(e,l))&&(e[l]=a[l])}return e})),As=Kr((function(e){return e.push(o,Qo),vt(Ns,o,e)}));function ks(e,t,n){var r=null==e?o:xr(e,t);return r===o?n:r}function Os(e,t){return null!=e&&pi(e,t,kr)}var Ds=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),tu(ou)),Ls=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),si),Ts=Kr(Dr);function Ms(e){return Ya(e)?$n(e):Nr(e)}function Ps(e){return Ya(e)?$n(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=xi(e),n=[];for(var r in e)("constructor"!=r||!t&&Pe.call(e,r))&&n.push(r);return n}(e)}var Fs=To((function(e,t,n){Gr(e,t,n)})),Ns=To((function(e,t,n,r){Gr(e,t,n,r)})),js=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=St(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),Do(e,ri(e),n),r&&(n=sr(n,7,Jo));for(var o=t.length;o--;)co(n,t[o]);return n})),Rs=ti((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function Is(e,t){if(null==e)return{};var n=St(ri(e),(function(e){return[e]}));return t=si(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Bs=$o(Ms),Gs=$o(Ps);function zs(e){return null==e?[]:Ht(e,Ms(e))}var Us=No((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Xs(bs(e).toLowerCase())}function Hs(e){return(e=bs(e))&&e.replace(ye,$t).replace(qe,"")}var qs=No((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=No((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Fo("toLowerCase"),Ks=No((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),$s=No((function(e,t,n){return e+(n?" ":"")+Xs(t)})),Zs=No((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Fo("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?o:t)===o?function(e){return $e.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Js=Kr((function(e,t){try{return vt(e,o,t)}catch(e){return Xa(e)?e:new Ee(e)}})),eu=ti((function(e,t){return bt(t,(function(t){t=Ii(t),or(e,t,La(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Io(),ru=Io(!0);function ou(e){return e}function iu(e){return Fr("function"==typeof e?e:sr(e,1))}var au=Kr((function(e,t){return function(n){return Dr(n,e,t)}})),su=Kr((function(e,t){return function(n){return Dr(e,n,t)}}));function uu(e,t,n){var r=Ms(t),o=Er(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Er(t,Ms(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Qa(e);return bt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Oo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function cu(){}var lu=Uo(St),du=Uo(Et),fu=Uo(Dt);function hu(e){return bi(e)?Rt(Ii(e)):function(e){return function(t){return xr(t,e)}}(e)}var pu=Ho(),gu=Ho(!0);function mu(){return[]}function vu(){return!1}var yu,bu=zo((function(e,t){return e+t}),0),wu=Yo("ceil"),Eu=zo((function(e,t){return e/t}),1),xu=Yo("floor"),_u=zo((function(e,t){return e*t}),1),Cu=Yo("round"),Su=zo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Oa,Bn.assign=ws,Bn.assignIn=Es,Bn.assignInWith=xs,Bn.assignWith=_s,Bn.at=Cs,Bn.before=Da,Bn.bind=La,Bn.bindAll=eu,Bn.bindKey=Ta,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Bn.chain=ha,Bn.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:vn(gs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(ln(i/t));a<i;)u[s++]=to(e,a,a+=t);return u},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return At(qa(n)?Oo(n):[n],mr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var o=e[r];if(vt(o[0],this,n))return vt(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Ms(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Bn.constant=tu,Bn.countBy=ma,Bn.create=function(e,t){var n=Gn(e);return null==t?n:rr(n,t)},Bn.curry=function e(t,n,r){var i=Zo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Zo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Ma,Bn.defaults=Ss,Bn.defaultsDeep=As,Bn.defer=Pa,Bn.delay=Fa,Bn.difference=zi,Bn.differenceBy=Ui,Bn.differenceWith=Wi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:gs(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:gs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&yi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=gs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:gs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(qa(e)?xt:gr)(e,si(t,3))},Bn.flatMap=function(e,t){return mr(Ca(e,t),1)},Bn.flatMapDeep=function(e,t){return mr(Ca(e,t),l)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:gs(n),mr(Ca(e,t),n)},Bn.flatten=Vi,Bn.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Bn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:gs(t)):[]},Bn.flip=function(e){return Zo(e,512)},Bn.flow=nu,Bn.flowRight=ru,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Er(e,Ms(e))},Bn.functionsIn=function(e){return null==e?[]:Er(e,Ps(e))},Bn.groupBy=Ea,Bn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Bn.intersection=Ki,Bn.intersectionBy=$i,Bn.intersectionWith=Zi,Bn.invert=Ds,Bn.invertBy=Ls,Bn.invokeMap=xa,Bn.iteratee=iu,Bn.keyBy=_a,Bn.keys=Ms,Bn.keysIn=Ps,Bn.map=Ca,Bn.mapKeys=function(e,t){var n={};return t=si(t,3),br(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=si(t,3),br(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Ir(sr(e,1))},Bn.matchesProperty=function(e,t){return Br(e,sr(t,1))},Bn.memoize=Na,Bn.merge=Fs,Bn.mergeWith=Ns,Bn.method=au,Bn.methodOf=su,Bn.mixin=uu,Bn.negate=ja,Bn.nthArg=function(e){return e=gs(e),Kr((function(t){return zr(t,e)}))},Bn.omit=js,Bn.omitBy=function(e,t){return Is(e,ja(si(t)))},Bn.once=function(e){return Da(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Bn.over=lu,Bn.overArgs=Ra,Bn.overEvery=du,Bn.overSome=fu,Bn.partial=Ia,Bn.partialRight=Ba,Bn.partition=Sa,Bn.pick=Rs,Bn.pickBy=Is,Bn.property=hu,Bn.propertyOf=function(e){return function(t){return null==e?o:xr(e,t)}},Bn.pull=Qi,Bn.pullAll=Ji,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,si(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Bn.pullAt=ea,Bn.range=pu,Bn.rangeRight=gu,Bn.rearg=Ga,Bn.reject=function(e,t){return(qa(e)?xt:gr)(e,ja(si(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return qr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Kr(e,t=t===o?t:gs(t))},Bn.reverse=ta,Bn.sampleSize=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:gs(t),(qa(e)?Xn:Zr)(e,t)},Bn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Xr(e,t,n,r)},Bn.shuffle=function(e){return(qa(e)?Qn:eo)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yi(e,t,n)?(t=0,n=r):(t=null==t?0:gs(t),n=n===o?r:gs(n)),to(e,t,n)):[]},Bn.sortBy=Aa,Bn.sortedUniq=function(e){return e&&e.length?io(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&yi(e,t,n)&&(t=n=o),(n=n===o?h:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Qt(e)?wo(an(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vn(gs(t),0),Kr((function(n){var r=n[t],o=wo(n,0,t);return r&&At(o,r),vt(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:gs(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:gs(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?fo(e,si(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ke(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ma(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=pa,Bn.toArray=hs,Bn.toPairs=Bs,Bn.toPairsIn=Gs,Bn.toPath=function(e){return qa(e)?St(e,Ii):cs(e)?[e]:Oo(Ri(bs(e)))},Bn.toPlainObject=ys,Bn.transform=function(e,t,n){var r=qa(e),o=r||$a(e)||ls(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Qa(i)?Gn(Ve(e)):{}}return(o?bt:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Oa(e,1)},Bn.union=na,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?uo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?uo(e,si(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Bn.unset=function(e,t){return null==e||co(e,t)},Bn.unzip=ia,Bn.unzipWith=aa,Bn.update=function(e,t,n){return null==e?e:lo(e,t,vo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,vo(n),r)},Bn.values=zs,Bn.valuesIn=function(e){return null==e?[]:Ht(e,Ps(e))},Bn.without=sa,Bn.words=Qs,Bn.wrap=function(e,t){return Ia(vo(t),e)},Bn.xor=ua,Bn.xorBy=ca,Bn.xorWith=la,Bn.zip=da,Bn.zipObject=function(e,t){return go(e||[],t||[],er)},Bn.zipObjectDeep=function(e,t){return go(e||[],t||[],Xr)},Bn.zipWith=fa,Bn.entries=Bs,Bn.entriesIn=Gs,Bn.extend=Es,Bn.extendWith=xs,uu(Bn,Bn),Bn.add=bu,Bn.attempt=Js,Bn.camelCase=Us,Bn.capitalize=Ws,Bn.ceil=wu,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},Bn.clone=function(e){return sr(e,4)},Bn.cloneDeep=function(e){return sr(e,5)},Bn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,Ms(t))},Bn.deburr=Hs,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=Eu,Bn.endsWith=function(e,t,n){e=bs(e),t=so(t);var r=e.length,i=n=n===o?r:ar(gs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=za,Bn.escape=function(e){return(e=bs(e))&&K.test(e)?e.replace(V,Zt):e},Bn.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Bn.every=function(e,t,n){var r=qa(e)?Et:hr;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Bn.find=va,Bn.findIndex=Hi,Bn.findKey=function(e,t){return Tt(e,si(t,3),br)},Bn.findLast=ya,Bn.findLastIndex=qi,Bn.findLastKey=function(e,t){return Tt(e,si(t,3),wr)},Bn.floor=xu,Bn.forEach=ba,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:vr(e,si(t,3),Ps)},Bn.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),Ps)},Bn.forOwn=function(e,t){return e&&br(e,si(t,3))},Bn.forOwnRight=function(e,t){return e&&wr(e,si(t,3))},Bn.get=ks,Bn.gt=Ua,Bn.gte=Wa,Bn.has=function(e,t){return null!=e&&pi(e,t,Ar)},Bn.hasIn=Os,Bn.head=Yi,Bn.identity=ou,Bn.includes=function(e,t,n,r){e=Ya(e)?e:zs(e),n=n&&!r?gs(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),us(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Pt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(r+o,0)),Pt(e,t,o)},Bn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},Bn.invoke=Ts,Bn.isArguments=Ha,Bn.isArray=qa,Bn.isArrayBuffer=Va,Bn.isArrayLike=Ya,Bn.isArrayLikeObject=Ka,Bn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Cr(e)==v},Bn.isBuffer=$a,Bn.isDate=Za,Bn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||ls(e)||Ha(e)))return!e.length;var t=hi(e);if(t==x||t==k)return!e.size;if(xi(e))return!Nr(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Tr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Tr(e,t,o,n):!!r},Bn.isError=Xa,Bn.isFinite=function(e){return"number"==typeof e&&pn(e)},Bn.isFunction=Qa,Bn.isInteger=Ja,Bn.isLength=es,Bn.isMap=rs,Bn.isMatch=function(e,t){return e===t||Mr(e,t,ci(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,ci(t),n)},Bn.isNaN=function(e){return os(e)&&e!=+e},Bn.isNative=function(e){if(Ei(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=os,Bn.isObject=ts,Bn.isObjectLike=ns,Bn.isPlainObject=is,Bn.isRegExp=as,Bn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=d},Bn.isSet=ss,Bn.isString=us,Bn.isSymbol=cs,Bn.isTypedArray=ls,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return ns(e)&&hi(e)==L},Bn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Cr(e)},Bn.join=function(e,t){return null==e?"":gn.call(e,t)},Bn.kebabCase=qs,Bn.last=Xi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=gs(n))<0?vn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Mt(e,Nt,i,!0)},Bn.lowerCase=Vs,Bn.lowerFirst=Ys,Bn.lt=ds,Bn.lte=fs,Bn.max=function(e){return e&&e.length?pr(e,ou,Sr):o},Bn.maxBy=function(e,t){return e&&e.length?pr(e,si(t,2),Sr):o},Bn.mean=function(e){return jt(e,ou)},Bn.meanBy=function(e,t){return jt(e,si(t,2))},Bn.min=function(e){return e&&e.length?pr(e,ou,jr):o},Bn.minBy=function(e,t){return e&&e.length?pr(e,si(t,2),jr):o},Bn.stubArray=mu,Bn.stubFalse=vu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=_u,Bn.nth=function(e,t){return e&&e.length?zr(e,gs(t)):o},Bn.noConflict=function(){return it._===this&&(it._=Ie),this},Bn.noop=cu,Bn.now=ka,Bn.pad=function(e,t,n){e=bs(e);var r=(t=gs(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(dn(o),n)+e+Wo(ln(o),n)},Bn.padEnd=function(e,t,n){e=bs(e);var r=(t=gs(t))?on(e):0;return t&&r<t?e+Wo(t-r,n):e},Bn.padStart=function(e,t,n){e=bs(e);var r=(t=gs(t))?on(e):0;return t&&r<t?Wo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bs(e).replace(re,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=En();return yn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Vr(e,t)},Bn.reduce=function(e,t,n){var r=qa(e)?kt:Bt,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},Bn.reduceRight=function(e,t,n){var r=qa(e)?Ot:Bt,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Bn.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:gs(t),Yr(bs(e),t)},Bn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ii(t[r])];a===o&&(r=i,a=n),e=Qa(a)?a.call(e):a}return e},Bn.round=Cu,Bn.runInContext=e,Bn.sample=function(e){return(qa(e)?Zn:$r)(e)},Bn.size=function(e){if(null==e)return 0;if(Ya(e))return us(e)?on(e):e.length;var t=hi(e);return t==x||t==k?e.size:Nr(e).length},Bn.snakeCase=Ks,Bn.some=function(e,t,n){var r=qa(e)?Dt:no;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Bn.sortedIndex=function(e,t){return ro(e,t)},Bn.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&za(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(za(e[n],t))return n}return-1},Bn.startCase=$s,Bn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ar(gs(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Bn.subtract=Su,Bn.sum=function(e){return e&&e.length?Gt(e,ou):0},Bn.sumBy=function(e,t){return e&&e.length?Gt(e,si(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&yi(e,t,n)&&(t=o),e=bs(e),t=xs({},t,r,Xo);var i,a,s=xs({},t.imports,r.imports,Xo),u=Ms(s),c=Ht(s,u),l=0,d=t.interpolate||be,f="__p += '",h=Se((t.escape||be).source+"|"+d.source+"|"+(d===X?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";e.replace(h,(function(t,n,r,o,s,u){return r||(r=o),f+=e.slice(l,u).replace(we,Xt),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),f+="';\n";var g=Pe.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new Ee("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(U,""):f).replace(W,"$1").replace(H,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Js((function(){return xe(u,p+"return "+f).apply(o,c)}));if(m.source=f,Xa(m))throw m;return m},Bn.times=function(e,t){if((e=gs(e))<1||e>d)return[];var n=h,r=yn(e,h);t=si(t),e-=h;for(var o=zt(r,t);++n<e;)t(n);return o},Bn.toFinite=ps,Bn.toInteger=gs,Bn.toLength=ms,Bn.toLower=function(e){return bs(e).toLowerCase()},Bn.toNumber=vs,Bn.toSafeInteger=function(e){return e?ar(gs(e),-9007199254740991,d):0===e?e:0},Bn.toString=bs,Bn.toUpper=function(e){return bs(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=bs(e))&&(n||t===o))return Ut(e);if(!e||!(t=so(t)))return e;var r=an(e),i=an(t);return wo(r,Vt(r,i),Yt(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.slice(0,sn(e)+1);if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,0,Yt(r,an(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,Vt(r,an(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?gs(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=bs(e)).length;if(Qt(e)){var s=an(e);a=s.length}if(n>=a)return e;var u=n-on(r);if(u<1)return r;var c=s?wo(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),as(i)){if(e.slice(u).search(i)){var l,d=c;for(i.global||(i=Se(i.source,bs(fe.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var f=l.index;c=c.slice(0,f===o?u:f)}}else if(e.indexOf(so(i),u)!=u){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Bn.unescape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(q,un):e},Bn.uniqueId=function(e){var t=++Fe;return bs(e)+t},Bn.upperCase=Zs,Bn.upperFirst=Xs,Bn.each=ba,Bn.eachRight=wa,Bn.first=Yi,uu(Bn,(yu={},br(Bn,(function(e,t){Pe.call(Bn.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Bn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),bt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:vn(gs(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ou)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Dr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(ja(si(e)))},Wn.prototype.slice=function(e,t){e=gs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=gs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(h)},br(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Wn,c=s[0],l=u||qa(t),d=function(e){var t=i.apply(Bn,At([e],s));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=u&&!h;if(!a&&l){t=g?t:new Wn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[d],thisArg:o}),new Un(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),br(Wn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Pe.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Bo(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,d=l.length,f=0,h=yn(u,this.__takeCount__);if(!n||!r&&o==u&&h==u)return ho(e,this.__actions__);var p=[];e:for(;u--&&f<h;){for(var g=-1,m=e[c+=t];++g<d;){var v=l[g],y=v.iteratee,b=v.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}p[f++]=m}return p},Bn.prototype.at=ga,Bn.prototype.chain=function(){return ha(this)},Bn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Gi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ta],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,at&&(Bn.prototype[at]=function(){return this}),Bn}();it._=cn,(r=function(){return cn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},8303:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__extends:()=>o,__assign:()=>i,__rest:()=>a,__decorate:()=>s,__param:()=>u,__metadata:()=>c,__awaiter:()=>l,__generator:()=>d,__createBinding:()=>f,__exportStar:()=>h,__values:()=>p,__read:()=>g,__spread:()=>m,__spreadArrays:()=>v,__spreadArray:()=>y,__await:()=>b,__asyncGenerator:()=>w,__asyncDelegator:()=>E,__asyncValues:()=>x,__makeTemplateObject:()=>_,__importStar:()=>S,__importDefault:()=>A,__classPrivateFieldGet:()=>k,__classPrivateFieldSet:()=>O});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(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}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var f=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return C(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function O(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}},1250:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1181),s=i(n(2383)),u=n(8586),c=n(432),l=1.5,d=function(e){function t(){var t=e.call(this)||this;return t.x=.5,t.y=.5,t.angle=0,t.ratio=1,t.minRatio=null,t.maxRatio=null,t.nextFrame=null,t.previousState=null,t.enabled=!0,t.previousState=t.getState(),t}return o(t,e),t.from=function(e){return(new t).setState(e)},t.prototype.enable=function(){return this.enabled=!0,this},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.getState=function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}},t.prototype.hasState=function(e){return this.x===e.x&&this.y===e.y&&this.ratio===e.ratio&&this.angle===e.angle},t.prototype.getPreviousState=function(){var e=this.previousState;return e?{x:e.x,y:e.y,angle:e.angle,ratio:e.ratio}:null},t.prototype.getBoundedRatio=function(e){var t=e;return"number"==typeof this.minRatio&&(t=Math.max(t,this.minRatio)),"number"==typeof this.maxRatio&&(t=Math.min(t,this.maxRatio)),t},t.prototype.validateState=function(e){var t={};return"number"==typeof e.x&&(t.x=e.x),"number"==typeof e.y&&(t.y=e.y),"number"==typeof e.angle&&(t.angle=e.angle),"number"==typeof e.ratio&&(t.ratio=this.getBoundedRatio(e.ratio)),t},t.prototype.isAnimated=function(){return!!this.nextFrame},t.prototype.setState=function(e){if(!this.enabled)return this;this.previousState=this.getState();var t=this.validateState(e);return"number"==typeof t.x&&(this.x=t.x),"number"==typeof t.y&&(this.y=t.y),"number"==typeof t.angle&&(this.angle=t.angle),"number"==typeof t.ratio&&(this.ratio=t.ratio),this.hasState(this.previousState)||this.emit("updated",this.getState()),this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var o=Object.assign({},a.ANIMATE_DEFAULTS,t),i=this.validateState(e),c="function"==typeof o.easing?o.easing:s.default[o.easing],l=Date.now(),d=this.getState(),f=function(){var e=(Date.now()-l)/o.duration;if(e>=1)return r.nextFrame=null,r.setState(i),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var t=c(e),n={};"number"==typeof i.x&&(n.x=d.x+(i.x-d.x)*t),"number"==typeof i.y&&(n.y=d.y+(i.y-d.y)*t),"number"==typeof i.angle&&(n.angle=d.angle+(i.angle-d.angle)*t),"number"==typeof i.ratio&&(n.ratio=d.ratio+(i.ratio-d.ratio)*t),r.setState(n),r.nextFrame=(0,u.requestFrame)(f)};this.nextFrame?((0,u.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,u.requestFrame)(f)):f(),this.animationCallback=n}},t.prototype.animatedZoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio/e});this.animate({ratio:this.ratio/(e.factor||l)},e)}else this.animate({ratio:this.ratio/l})},t.prototype.animatedUnzoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio*e});this.animate({ratio:this.ratio*(e.factor||l)},e)}else this.animate({ratio:this.ratio*l})},t.prototype.animatedReset=function(e){this.animate({x:.5,y:.5,ratio:1,angle:0},e)},t.prototype.copy=function(){return t.from(this.getState())},t}(c.TypedEventEmitter);t.default=d},8231:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getWheelDelta=t.getTouchCoords=t.getTouchesArray=t.getWheelCoords=t.getMouseCoords=t.getPosition=void 0;var a=n(432);function s(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function u(e,t){return i(i({},s(e,t)),{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){this.sigmaDefaultPrevented=!0},original:e})}function c(e){for(var t=[],n=0,r=Math.min(e.length,2);n<r;n++)t.push(e[n]);return t}function l(e){if(void 0!==e.deltaY)return-3*e.deltaY/360;if(void 0!==e.detail)return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}t.getPosition=s,t.getMouseCoords=u,t.getWheelCoords=function(e,t){return i(i({},u(e,t)),{delta:l(e)})},t.getTouchesArray=c,t.getTouchCoords=function(e,t){return{touches:c(e.touches).map((function(e){return s(e,t)})),original:e}},t.getWheelDelta=l;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return o(t,e),t}(a.TypedEventEmitter);t.default=d},3834:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(8231)),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.draggedEvents=0,r.downStartTime=null,r.lastMouseX=null,r.lastMouseY=null,r.isMouseDown=!1,r.isMoving=!1,r.movingTimeout=null,r.startCameraState=null,r.clicks=0,r.doubleClickTimeout=null,r.currentWheelDirection=0,r.handleClick=r.handleClick.bind(r),r.handleRightClick=r.handleRightClick.bind(r),r.handleDown=r.handleDown.bind(r),r.handleUp=r.handleUp.bind(r),r.handleMove=r.handleMove.bind(r),r.handleWheel=r.handleWheel.bind(r),r.handleOut=r.handleOut.bind(r),t.addEventListener("click",r.handleClick,!1),t.addEventListener("contextmenu",r.handleRightClick,!1),t.addEventListener("mousedown",r.handleDown,!1),t.addEventListener("wheel",r.handleWheel,!1),t.addEventListener("mouseout",r.handleOut,!1),document.addEventListener("mousemove",r.handleMove,!1),document.addEventListener("mouseup",r.handleUp,!1),r}return o(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("click",this.handleClick),e.removeEventListener("contextmenu",this.handleRightClick),e.removeEventListener("mousedown",this.handleDown),e.removeEventListener("wheel",this.handleWheel),e.removeEventListener("mouseout",this.handleOut),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)},t.prototype.handleClick=function(e){var t=this;if(this.enabled){if(this.clicks++,2===this.clicks)return this.clicks=0,"number"==typeof this.doubleClickTimeout&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(e);setTimeout((function(){t.clicks=0,t.doubleClickTimeout=null}),300),this.draggedEvents<3&&this.emit("click",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,u.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=(0,u.getMouseCoords)(e,this.container);if(this.emit("doubleClick",t),!t.sigmaDefaultPrevented){var n=this.renderer.getCamera(),r=n.getBoundedRatio(n.getState().ratio/2.2);n.animate(this.renderer.getViewportZoomedState((0,u.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200})}}},t.prototype.handleDown=function(e){if(this.enabled){this.startCameraState=this.renderer.getCamera().getState();var t=(0,u.getPosition)(e,this.container),n=t.x,r=t.y;this.lastMouseX=n,this.lastMouseY=r,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0,this.emit("mousedown",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleUp=function(e){var t=this;if(this.enabled&&this.isMouseDown){var n=this.renderer.getCamera();this.isMouseDown=!1,"number"==typeof this.movingTimeout&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var r=(0,u.getPosition)(e,this.container),o=r.x,i=r.y,a=n.getState(),s=n.getPreviousState()||{x:0,y:0};this.isMoving?n.animate({x:a.x+3*(a.x-s.x),y:a.y+3*(a.y-s.y)},{duration:200,easing:"quadraticOut"}):this.lastMouseX===o&&this.lastMouseY===i||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,u.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&this.emit("mousemove",n),this.isMouseDown){this.isMoving=!0,this.draggedEvents++,"number"==typeof this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){t.movingTimeout=null,t.isMoving=!1}),100);var r=this.renderer.getCamera(),o=(0,u.getPosition)(e,this.container),i=o.x,a=o.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),c=this.renderer.viewportToFramedGraph({x:i,y:a}),l=s.x-c.x,d=s.y-c.y,f=r.getState(),h=f.x+l,p=f.y+d;r.setState({x:h,y:p}),this.lastMouseX=i,this.lastMouseY=a,e.preventDefault(),e.stopPropagation()}}},t.prototype.handleWheel=function(e){var t=this;if(this.enabled){e.preventDefault(),e.stopPropagation();var n=(0,u.getWheelDelta)(e);if(n){var r=(0,u.getWheelCoords)(e,this.container);if(this.emit("wheel",r),!r.sigmaDefaultPrevented){var o=n>0?1/1.7:1.7,i=this.renderer.getCamera(),a=i.getBoundedRatio(i.getState().ratio*o),s=n>0?1:-1,c=Date.now();this.currentWheelDirection===s&&this.lastWheelTriggerTime&&c-this.lastWheelTriggerTime<50||(i.animate(this.renderer.getViewportZoomedState((0,u.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=s,this.lastWheelTriggerTime=c)}}}},t.prototype.handleOut=function(){},t}(u.default);t.default=c},916:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},u=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var c=s(n(8231)),l=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.touchMode=0,r.handleStart=r.handleStart.bind(r),r.handleLeave=r.handleLeave.bind(r),r.handleMove=r.handleMove.bind(r),t.addEventListener("touchstart",r.handleStart,!1),t.addEventListener("touchend",r.handleLeave,!1),t.addEventListener("touchcancel",r.handleLeave,!1),t.addEventListener("touchmove",r.handleMove,!1),r}return o(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("touchstart",this.handleStart),e.removeEventListener("touchend",this.handleLeave),e.removeEventListener("touchcancel",this.handleLeave),e.removeEventListener("touchmove",this.handleMove)},t.prototype.getDimensions=function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}},t.prototype.dispatchRelatedMouseEvent=function(e,t,n,r){var o=n||(0,c.getPosition)(t.touches[0],this.container),i=new MouseEvent(e,{clientX:o.x,clientY:o.y,altKey:t.altKey,ctrlKey:t.ctrlKey});(r||this.container).dispatchEvent(i)},t.prototype.handleStart=function(e){var t=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousedown",e);var n=(0,c.getTouchesArray)(e.touches);if(this.isMoving=!0,this.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,c.getPosition)(e,t.container)})),this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=u(this.startTouchesPositions,2),o=r[0],i=o.x,a=o.y,s=r[1],l=s.x,d=s.y;this.startTouchesAngle=Math.atan2(d-a,l-i),this.startTouchesDistance=Math.sqrt(Math.pow(l-i,2)+Math.pow(d-a,2))}this.emit("touchdown",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleLeave=function(e){if(this.enabled){switch(e.preventDefault(),0===e.touches.length&&this.lastTouchesPositions&&this.lastTouchesPositions.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouchesPositions[0],document),this.dispatchRelatedMouseEvent("click",e,this.lastTouchesPositions[0])),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(1===e.touches.length){this.handleStart(e),e.preventDefault();break}case 1:if(this.isMoving){var t=this.renderer.getCamera(),n=t.getState(),r=t.getPreviousState()||{x:0,y:0};t.animate({x:n.x+3*(n.x-r.x),y:n.y+3*(n.y-r.y)},{duration:200,easing:"quadraticOut"})}this.isMoving=!1,this.touchMode=0}this.emit("touchup",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t,n=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousemove",e);var r=this.renderer.getCamera(),o=this.startCameraState,i=(0,c.getTouchesArray)(e.touches).map((function(e){return(0,c.getPosition)(e,n.container)}));switch(this.lastTouchesPositions=i,this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200),this.touchMode){case 1:var a=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),s=a.x,l=a.y,d=this.renderer.viewportToFramedGraph(i[0]),f=d.x,h=d.y;r.setState({x:o.x+s-f,y:o.y+l-h});break;case 2:var p={},g=i[0],m=g.x,v=g.y,y=i[1],b=y.x,w=y.y,E=Math.atan2(w-v,b-m)-this.startTouchesAngle,x=Math.hypot(w-v,b-m)/this.startTouchesDistance,_=r.getBoundedRatio(o.ratio/x);p.ratio=_,p.angle=o.angle+E;var C=this.getDimensions(),S=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:o}),A=Math.min(C.width,C.height),k=A/C.width,O=_/A;h=v-A/2/(A/C.height),f=(t=u([(f=m-A/2/k)*Math.cos(-p.angle)-h*Math.sin(-p.angle),h*Math.cos(-p.angle)+f*Math.sin(-p.angle)],2))[0],h=t[1],p.x=S.x-f*O,p.y=S.y+h*O,r.setState(p)}this.emit("touchmove",(0,c.getTouchCoords)(e,this.container))}},t}(c.default);t.default=l},2306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeLabelsToDisplayFromNodes=t.LabelGrid=void 0;var n=function(){function e(e,t){this.key=e,this.size=t}return e.compare=function(e,t){return e.size>t.size?-1:e.size<t.size||e.key>t.key?1:-1},e}(),r=function(){function e(){this.width=0,this.height=0,this.cellSize=0,this.columns=0,this.rows=0,this.cells={}}return e.prototype.resizeAndClear=function(e,t){this.width=e.width,this.height=e.height,this.cellSize=t,this.columns=Math.ceil(e.width/t),this.rows=Math.ceil(e.height/t),this.cells={}},e.prototype.getIndex=function(e){var t=Math.floor(e.x/this.cellSize);return Math.floor(e.y/this.cellSize)*this.columns+t},e.prototype.add=function(e,t,r){var o=new n(e,t),i=this.getIndex(r),a=this.cells[i];a||(a=[],this.cells[i]=a),a.push(o)},e.prototype.organize=function(){for(var e in this.cells)this.cells[e].sort(n.compare)},e.prototype.getLabelsToDisplay=function(e,t){var n=this.cellSize*this.cellSize,r=n/e/e*t/n,o=Math.ceil(r),i=[];for(var a in this.cells)for(var s=this.cells[a],u=0;u<Math.min(o,s.length);u++)i.push(s[u].key);return i},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,o=e.displayedNodeLabels,i=[];return t.forEachEdge((function(e,t,a,s){(a===n||s===n||r.has(a)||r.has(s)||o.has(a)&&o.has(s))&&i.push(e)})),i}},9316:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var a=i(n(8884)),s=!1;function u(e){return e.x1===e.x2||e.y1===e.y2}function c(e){var t=Math.sqrt(Math.pow(e.x2-e.x1,2)+Math.pow(e.y2-e.y1,2)),n=(e.y1-e.y2)*e.height/t,r=(e.x2-e.x1)*e.height/t,o={x:e.x1,y:e.y1},i={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},s={x:e.x2+n,y:e.y2+r},u=Math.min(o.x,i.x,a.x,s.x),c=Math.max(o.x,i.x,a.x,s.x),l=Math.min(o.y,i.y,a.y,s.y);return{x1:u,y1:l,x2:c,y2:l,height:Math.max(o.y,i.y,a.y,s.y)-l}}function l(e,t,n,r,o,i,a){return e<r+i&&e+n>r&&t<o+a&&t+n>o}function d(e,t,n,r,o,i,a,s){return e<o+a&&e+n>o&&t<i+s&&t+r>i}function f(e,t,n,r,o,i){var a=e<n+o/2;return t<r+i/2?a?1:2:a?3:4}t.isRectangleAligned=u,t.getCircumscribedAlignedRectangle=c,t.squareCollidesWithQuad=l,t.rectangleCollidesWithQuad=d;var h=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={}).outside=[],t),this.cache=null,this.lastRectangle=null;var n=Math.pow(4,5);this.data=new Float32Array((4*n-1)/3*4),e.boundaries?this.resize(e.boundaries):this.resize({x:0,y:0,width:1,height:1})}return e.prototype.add=function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var u=o-a,c=i-a,d=2*a,f=0,h=0;;){if(f>=5)return n[h]=n[h]||[],void n[h].push(r);var p=4*h+4,g=4*h+8,m=4*h+12,v=4*h+16,y=l(u,c,d,t[p+0],t[p+1],t[p+2],t[p+3]),b=l(u,c,d,t[g+0],t[g+1],t[g+2],t[g+3]),w=l(u,c,d,t[m+0],t[m+1],t[m+2],t[m+3]),E=l(u,c,d,t[v+0],t[v+1],t[v+2],t[v+3]),x=[y,b,w,E].reduce((function(e,t){return t?e+1:e}),0);if(0===x&&0===f)return n.outside.push(r),void(!s&&n.outside.length>=5&&(s=!0,console.warn("sigma/quadtree.insertNode: At least 5 nodes are outside the global quadtree zone. You might have a problem with the normalization function or the custom bounding box.")));if(0===x)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(f,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(3===x)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(f,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(x>1)return n[h]=n[h]||[],void n[h].push(r);f++,y&&(h=p),b&&(h=g),w&&(h=m),E&&(h=v)}}(0,this.data,this.containers,e,t,n,r),this},e.prototype.resize=function(e){this.clear(),this.data[0]=e.x,this.data[1]=e.y,this.data[2]=e.width,this.data[3]=e.height,function(e,t){for(var n=[0,0];n.length;){var r=n.pop(),o=n.pop(),i=4*o+4,a=4*o+8,s=4*o+12,u=4*o+16,c=t[o+0],l=t[o+1],d=t[o+2]/2,f=t[o+3]/2;t[i+0]=c,t[i+1]=l,t[i+2]=d,t[i+3]=f,t[a+0]=c+d,t[a+1]=l,t[a+2]=d,t[a+3]=f,t[s+0]=c,t[s+1]=l+f,t[s+2]=d,t[s+3]=f,t[u+0]=c+d,t[u+1]=l+f,t[u+2]=d,t[u+3]=f,r<4&&(n.push(u,r+1),n.push(s,r+1),n.push(a,r+1),n.push(i,r+1))}}(0,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={}).outside=[],e),this},e.prototype.point=function(e,t){var n=this.containers.outside,i=0,a=0;do{this.containers[i]&&n.push.apply(n,o([],r(this.containers[i]),!1)),i=4*i+4*f(e,t,this.data[i+0],this.data[i+1],this.data[i+2],this.data[i+3]),a++}while(a<=5);return n},e.prototype.rectangle=function(e,t,n,i,s){var l,f=this.lastRectangle;return f&&e===f.x1&&n===f.x2&&t===f.y1&&i===f.y2&&s===f.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:i,height:s},u(this.lastRectangle)||(this.lastRectangle=c(this.lastRectangle)),this.cache=function(e,t,n,r,o,i,s){for(var u,c=[0,0],l=[];c.length;){var f=c.pop(),h=c.pop();if((u=n[h])&&(0,a.default)(l,u),!(f>=5)){var p=4*h+4,g=4*h+8,m=4*h+12,v=4*h+16,y=d(r,o,i,s,t[p+0],t[p+1],t[p+2],t[p+3]),b=d(r,o,i,s,t[g+0],t[g+1],t[g+2],t[g+3]),w=d(r,o,i,s,t[m+0],t[m+1],t[m+2],t[m+3]),E=d(r,o,i,s,t[v+0],t[v+1],t[v+2],t[v+3]);y&&c.push(p,f+1),b&&c.push(g,f+1),w&&c.push(m,f+1),E&&c.push(v,f+1)}}return l}(0,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-i),s),(l=this.cache).push.apply(l,o([],r(this.containers.outside),!1))),this.cache},e}();t.default=h},9358:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sigma=t.MouseCaptor=t.QuadTree=t.Camera=void 0;var o=r(n(8953));t.Sigma=o.default;var i=r(n(1250));t.Camera=i.default;var a=r(n(9316));t.QuadTree=a.default;var s=r(n(3834));t.MouseCaptor=s.default,t.default=o.default},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var i=o.edgeLabelSize,a=o.edgeLabelFont,s=o.edgeLabelWeight,u=o.edgeLabelColor.attribute?t[o.edgeLabelColor.attribute]||o.edgeLabelColor.color||"#000":o.edgeLabelColor.color,c=t.label;if(c){e.fillStyle=u,e.font="".concat(s," ").concat(i,"px ").concat(a);var l,d,f=n.size,h=r.size,p=n.x,g=n.y,m=r.x,v=r.y,y=m-p,b=v-g,w=Math.sqrt(y*y+b*b);if(!(w<f+h)){l=((p+=y*f/w)+(m-=y*h/w))/2,d=((g+=b*f/w)+(v-=b*h/w))/2,y=m-p,b=v-g,w=Math.sqrt(y*y+b*b);var E,x=e.measureText(c).width;if(x>w){for(c+="…",x=e.measureText(c).width;x>w&&c.length>1;)c=c.slice(0,-2)+"…",x=e.measureText(c).width;if(c.length<4)return}E=y>0?b>0?Math.acos(y/w):Math.asin(b/w):b>0?Math.acos(y/w)+Math.PI:Math.asin(y/w)+Math.PI/2,e.save(),e.translate(l,d),e.rotate(E),e.fillText(c,-x/2,t.size/2+i),e.restore()}}}},4362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2193));t.default=function(e,t,n){var r=n.labelSize,i=n.labelFont,a=n.labelWeight;if(e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000","string"==typeof t.label){var s=e.measureText(t.label).width,u=Math.round(s+5),c=Math.round(r+4),l=Math.max(t.size,r/2)+2,d=Math.asin(c/2/l),f=Math.sqrt(Math.abs(Math.pow(l,2)-Math.pow(c/2,2)));e.beginPath(),e.moveTo(t.x+f,t.y+c/2),e.lineTo(t.x+l+u,t.y+c/2),e.lineTo(t.x+l+u,t.y-c/2),e.lineTo(t.x+f,t.y-c/2),e.arc(t.x,t.y,l,d,-d),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,(0,o.default)(e,t,n)}},2193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(t.label){var r=n.labelSize,o=n.labelFont,i=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font="".concat(i," ").concat(r,"px ").concat(o),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},4488:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createEdgeCompoundProgram=t.AbstractEdgeProgram=void 0;var i=function(e){function t(t,n,r,o,i){return e.call(this,t,n,r,o,i)||this}return o(t,e),t}(n(1549).AbstractProgram);t.AbstractEdgeProgram=i,t.createEdgeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.computeIndices=function(){this.programs.forEach((function(e){return e.computeIndices()}))},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n,r,o){this.programs.forEach((function(i){return i.process(e,t,n,r,o)}))},t}()}},1624:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createNodeCompoundProgram=t.AbstractNodeProgram=void 0;var i=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r,o,i)||this;a.positionLocation=t.getAttribLocation(a.program,"a_position"),a.sizeLocation=t.getAttribLocation(a.program,"a_size"),a.colorLocation=t.getAttribLocation(a.program,"a_color");var s=t.getUniformLocation(a.program,"u_matrix");if(null===s)throw new Error("AbstractNodeProgram: error while getting matrixLocation");a.matrixLocation=s;var u=t.getUniformLocation(a.program,"u_ratio");if(null===u)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=u;var c=t.getUniformLocation(a.program,"u_scale");if(null===c)throw new Error("AbstractNodeProgram: error while getting scaleLocation");return a.scaleLocation=c,a}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.sizeLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.sizeLocation,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,this.attributes*Float32Array.BYTES_PER_ELEMENT,12)},t}(n(1549).AbstractProgram);t.AbstractNodeProgram=i,t.createNodeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.render=function(e){this.programs.forEach((function(t){return t.render(e)}))},t.prototype.process=function(e,t,n){this.programs.forEach((function(r){return r.process(e,t,n)}))},t}()}},1549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProgram=void 0;var r=n(3451),o=function(){function e(e,t,n,o,i){this.array=new Float32Array,this.points=o,this.attributes=i,this.gl=e,this.vertexShaderSource=t,this.fragmentShaderSource=n;var a=e.createBuffer();if(null===a)throw new Error("AbstractProgram: error while creating the buffer");this.buffer=a,e.bindBuffer(e.ARRAY_BUFFER,this.buffer),this.vertexShader=(0,r.loadVertexShader)(e,this.vertexShaderSource),this.fragmentShader=(0,r.loadFragmentShader)(e,this.fragmentShaderSource),this.program=(0,r.loadProgram)(e,[this.vertexShader,this.fragmentShader])}return e.prototype.bufferData=function(){var e=this.gl;e.bufferData(e.ARRAY_BUFFER,this.array,e.DYNAMIC_DRAW)},e.prototype.allocate=function(e){this.array=new Float32Array(this.points*this.attributes*e)},e.prototype.hasNothingToRender=function(){return 0===this.array.length},e}();t.AbstractProgram=o},5696:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(4488),i=r(n(3193)),a=r(n(3653)),s=(0,o.createEdgeCompoundProgram)([a.default,i.default]);t.default=s},3193:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(577)),u=i(n(1604)),c=function(e){function t(t){var n=e.call(this,t,s.default,u.default,3,9)||this;n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius"),n.barycentricLocation=t.getAttribLocation(n.program,"a_barycentric");var r=t.getUniformLocation(n.program,"u_matrix");if(null===r)throw new Error("EdgeArrowHeadProgram: error while getting matrixLocation");n.matrixLocation=r;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=o;var i=t.getUniformLocation(n.program,"u_correctionRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=i,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.barycentricLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,9*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.barycentricLocation,3,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,24)},t.prototype.computeIndices=function(){},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=27*o,s=i+27;i<s;i++)this.array[i]=0;else{var u=n.size||1,c=t.size||1,l=e.x,d=e.y,f=t.x,h=t.y,p=(0,a.floatColor)(n.color),g=f-l,m=h-d,v=g*g+m*m,y=0,b=0;v&&(y=-m*(v=1/Math.sqrt(v))*u,b=g*v*u);var w=27*o,E=this.array;E[w++]=f,E[w++]=h,E[w++]=-y,E[w++]=-b,E[w++]=c,E[w++]=p,E[w++]=1,E[w++]=0,E[w++]=0,E[w++]=f,E[w++]=h,E[w++]=-y,E[w++]=-b,E[w++]=c,E[w++]=p,E[w++]=0,E[w++]=1,E[w++]=0,E[w++]=f,E[w++]=h,E[w++]=-y,E[w++]=-b,E[w++]=c,E[w++]=p,E[w++]=0,E[w++]=0,E[w]=1}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawArrays(t.TRIANGLES,0,this.array.length/9)}},t}(n(4488).AbstractEdgeProgram);t.default=c},3653:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(4488),s=n(8586),u=i(n(3574)),c=i(n(3343)),l=function(e){function t(t){var n=e.call(this,t,u.default,c.default,4,6)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=o;var i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=i;var a=t.getUniformLocation(n.program,"u_correctionRatio");if(null===a)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");return n.correctionRatioLocation=a,n.canUse32BitsIndices=(0,s.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,20)},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=24*o,a=i+24;i<a;i++)this.array[i]=0;else{var u=n.size||1,c=e.x,l=e.y,d=t.x,f=t.y,h=t.size||1,p=(0,s.floatColor)(n.color),g=d-c,m=f-l,v=g*g+m*m,y=0,b=0;v&&(y=-m*(v=1/Math.sqrt(v))*u,b=g*v*u);var w=24*o,E=this.array;E[w++]=c,E[w++]=l,E[w++]=y,E[w++]=b,E[w++]=p,E[w++]=0,E[w++]=c,E[w++]=l,E[w++]=-y,E[w++]=-b,E[w++]=p,E[w++]=0,E[w++]=d,E[w++]=f,E[w++]=y,E[w++]=b,E[w++]=p,E[w++]=h,E[w++]=d,E[w++]=f,E[w++]=-y,E[w++]=-b,E[w++]=p,E[w]=-h}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(a.AbstractEdgeProgram);t.default=l},5372:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(9843)),u=i(n(3343)),c=function(e){function t(t){var n=e.call(this,t,s.default,u.default,4,5)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeProgram: error while creating indicesBuffer");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=o;var i=t.getUniformLocation(n.program,"u_correctionRatio");if(null===i)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=i;var c=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===c)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");return n.sqrtZoomRatioLocation=c,n.canUse32BitsIndices=(0,a.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,5*Float32Array.BYTES_PER_ELEMENT,16)},t.prototype.computeIndices=function(){for(var e=this.array.length/5,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=20*o,s=i+20;i<s;i++)this.array[i]=0;else{var u=n.size||1,c=e.x,l=e.y,d=t.x,f=t.y,h=(0,a.floatColor)(n.color),p=d-c,g=f-l,m=p*p+g*g,v=0,y=0;m&&(v=-g*(m=1/Math.sqrt(m))*u,y=p*m*u);var b=20*o,w=this.array;w[b++]=c,w[b++]=l,w[b++]=v,w[b++]=y,w[b++]=h,w[b++]=c,w[b++]=l,w[b++]=-v,w[b++]=-y,w[b++]=h,w[b++]=d,w[b++]=f,w[b++]=v,w[b++]=y,w[b++]=h,w[b++]=d,w[b++]=f,w[b++]=-v,w[b++]=-y,w[b]=h}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(n(4488).AbstractEdgeProgram);t.default=c},732:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(1432)),u=i(n(6846)),c=function(e){function t(t){var n=e.call(this,t,s.default,u.default,1,4)||this;return n.bind(),n}return o(t,e),t.prototype.process=function(e,t,n){var r=this.array,o=1*n*4;if(t)return r[o++]=0,r[o++]=0,r[o++]=0,void(r[o++]=0);var i=(0,a.floatColor)(e.color);r[o++]=e.x,r[o++]=e.y,r[o++]=e.size,r[o]=i},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/4)}},t}(n(1624).AbstractNodeProgram);t.default=c},1604:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\n\nvoid main(void) {\n gl_FragColor = v_color;\n}\n";e.exports=n})()},577:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute vec2 a_normal;\nattribute float a_radius;\nattribute vec4 a_color;\nattribute vec3 a_barycentric;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadWidthLengthRatio = 0.66;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl and\n // edge.clamped.vert.glsl. Please read it to get better comments on what's\n // happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n float adaptedWebGLNodeRadius = a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n float adaptedWebGLArrowHeadHalfWidth = adaptedWebGLArrowHeadLength * arrowHeadWidthLengthRatio / 2.0;\n\n float da = a_barycentric.x;\n float db = a_barycentric.y;\n float dc = a_barycentric.z;\n\n vec2 delta = vec2(\n da * (adaptedWebGLNodeRadius * unitNormal.y)\n + db * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y + adaptedWebGLArrowHeadHalfWidth * unitNormal.x)\n + dc * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y - adaptedWebGLArrowHeadHalfWidth * unitNormal.x),\n\n da * (-adaptedWebGLNodeRadius * unitNormal.x)\n + db * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x + adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n + dc * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x - adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n );\n\n vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;\n\n gl_Position = vec4(position, 0, 1);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3574:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl. Please read it to\n // get better comments on what's happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here, we move the point to leave space for the arrow head:\n float direction = sign(a_radius);\n float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n\n vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3343:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\n\nvoid main(void) {\n float dist = length(v_normal) * v_thickness;\n\n float t = smoothstep(\n v_thickness - feather,\n v_thickness,\n dist\n );\n\n gl_FragColor = mix(v_color, transparent, t);\n}";e.exports=n})()},9843:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r='attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // We require edges to be at least `minThickness` pixels thick *on screen*\n // (so we need to compensate the SQRT zoom ratio):\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction\n // ratio:\n float webGLThickness = pixelsThickness * u_correctionRatio;\n\n // Finally, we adapt the edge thickness to the "SQRT rule" in sigma (so that\n // items are not too big when zoomed in, and not too small when zoomed out).\n // The exact computation should be `adapted = value * zoom / sqrt(zoom)`, but\n // it\'s simpler like this:\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n // For the fragment shader though, we need a thickness that takes the "magic"\n // correction ratio into account (as in webGLThickness), but so that the\n // antialiasint effect does not depend on the zoom level. So here\'s yet\n // another thickness version:\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n';e.exports=n})()},6846:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float radius = 0.5;\n\nvoid main(void) {\n vec4 color0 = vec4(0.0, 0.0, 0.0, 0.0);\n vec2 m = gl_PointCoord - vec2(0.5, 0.5);\n float dist = radius - length(m);\n\n float t = 0.0;\n if (dist > v_border)\n t = 1.0;\n else if (dist > 0.0)\n t = dist / v_border;\n\n gl_FragColor = mix(color0, v_color, t);\n}\n";e.exports=n})()},1432:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4(\n (u_matrix * vec3(a_position, 1)).xy,\n 0,\n 1\n );\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3451:(e,t)=>{"use strict";function n(e,t,n){var r="VERTEX"===e?t.VERTEX_SHADER:t.FRAGMENT_SHADER,o=t.createShader(r);if(null===o)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(o,n),t.compileShader(o),!t.getShaderParameter(o,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(o);throw t.deleteShader(o),new Error("loadShader: error while compiling the shader:\n".concat(i,"\n").concat(n))}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.loadProgram=t.loadFragmentShader=t.loadVertexShader=void 0,t.loadVertexShader=function(e,t){return n("VERTEX",e,t)},t.loadFragmentShader=function(e,t){return n("FRAGMENT",e,t)},t.loadProgram=function(e,t){var n,r,o=e.createProgram();if(null===o)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(o,t[n]);if(e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw e.deleteProgram(o),new Error("loadProgram: error while linking the program.");return o}},9061:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SETTINGS=t.validateSettings=void 0;var o=r(n(2193)),i=r(n(4362)),a=r(n(284)),s=r(n(732)),u=r(n(5372)),c=r(n(5696));t.validateSettings=function(e){if("number"!=typeof e.labelDensity||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if("number"==typeof t&&"number"==typeof n&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")},t.DEFAULT_SETTINGS={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeClickEvents:!1,enableEdgeWheelEvents:!1,enableEdgeHoverEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,labelRenderer:o.default,hoverRenderer:i.default,edgeLabelRenderer:a.default,nodeProgramClasses:{circle:s.default},edgeProgramClasses:{arrow:c.default,line:u.default}}},8953:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(1250)),c=s(n(3834)),l=s(n(9316)),d=n(432),f=n(8586),h=n(2306),p=n(9061),g=s(n(916)),m=n(2237),v=n(8073),y=(0,f.getPixelRatio)();function b(e,t,n){if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),n.label||""===n.label||(n.label=null),void 0!==n.label&&null!==n.label?n.label=""+n.label:n.label=null,n.size||(n.size=2),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("highlighted")||(n.highlighted=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function w(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var E=function(e){function t(t,n,r){void 0===r&&(r={});var o=e.call(this)||this;if(o.elements={},o.canvasContexts={},o.webGLContexts={},o.activeListeners={},o.quadtree=new l.default,o.labelGrid=new h.LabelGrid,o.nodeDataCache={},o.edgeDataCache={},o.nodesWithForcedLabels=[],o.edgesWithForcedLabels=[],o.nodeKeyToIndex={},o.edgeKeyToIndex={},o.nodeExtent={x:[0,1],y:[0,1]},o.matrix=(0,m.identity)(),o.invMatrix=(0,m.identity)(),o.correctionRatio=1,o.customBBox=null,o.normalizationFunction=(0,f.createNormalizationFunction)({x:[-1/0,1/0],y:[-1/0,1/0]}),o.cameraSizeRatio=1,o.width=0,o.height=0,o.displayedLabels=new Set,o.highlightedNodes=new Set,o.hoveredNode=null,o.hoveredEdge=null,o.renderFrame=null,o.renderHighlightedNodesFrame=null,o.needToProcess=!1,o.needToSoftProcess=!1,o.checkEdgesEventsFrame=null,o.nodePrograms={},o.hoverNodePrograms={},o.edgePrograms={},o.settings=(0,f.assign)({},p.DEFAULT_SETTINGS,r),(0,p.validateSettings)(o.settings),(0,f.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");for(var i in o.graph=t,o.container=n,o.initializeCache(),o.createWebGLContext("edges",{preserveDrawingBuffer:!0}),o.createCanvasContext("edgeLabels"),o.createWebGLContext("nodes"),o.createCanvasContext("labels"),o.createCanvasContext("hovers"),o.createWebGLContext("hoverNodes"),o.createCanvasContext("mouse"),o.webGLContexts){var a=o.webGLContexts[i];a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.enable(a.BLEND)}for(var s in o.settings.nodeProgramClasses){var d=o.settings.nodeProgramClasses[s];o.nodePrograms[s]=new d(o.webGLContexts.nodes,o),o.hoverNodePrograms[s]=new d(o.webGLContexts.hoverNodes,o)}for(var s in o.settings.edgeProgramClasses){var v=o.settings.edgeProgramClasses[s];o.edgePrograms[s]=new v(o.webGLContexts.edges,o)}return o.resize(),o.camera=new u.default,o.bindCameraHandlers(),o.mouseCaptor=new c.default(o.elements.mouse,o),o.touchCaptor=new g.default(o.elements.mouse,o),o.bindEventHandlers(),o.bindGraphHandlers(),o.handleSettingsUpdate(),o.process(),o.render(),o}return o(t,e),t.prototype.createCanvas=function(e){var t=(0,f.createElement)("canvas",{position:"absolute"},{class:"sigma-".concat(e)});return this.elements[e]=t,this.container.appendChild(t),t},t.prototype.createCanvasContext=function(e){var t=this.createCanvas(e);return this.canvasContexts[e]=t.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),this},t.prototype.createWebGLContext=function(e,t){var n,r=this.createCanvas(e),o=i({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",o))||(n=r.getContext("webgl",o)),n||(n=r.getContext("experimental-webgl",o)),this.webGLContexts[e]=n,this},t.prototype.initializeCache=function(){var e=this,t=this.graph,n=0;t.forEachNode((function(t){e.nodeKeyToIndex[t]=n++})),n=0,t.forEachEdge((function(t){e.edgeKeyToIndex[t]=n++}))},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize);var t=function(e,t,n,r,o){return e>n-o&&e<n+o&&t>r-o&&t<r+o&&Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))<o};this.activeListeners.handleMove=function(n){for(var r,o,a,s=(r=n.x,o=n.y,a=e.viewportToFramedGraph({x:r,y:o}),e.quadtree.point(a.x,1-a.y)),u={event:n,preventSigmaDefault:function(){this.event.preventSigmaDefault()}},c=1/0,l=null,d=0,h=s.length;d<h;d++){var p=s[d],g=e.nodeDataCache[p],m=e.framedGraphToViewport(g),v=e.scaleSize(g.size);if(!g.hidden&&t(n.x,n.y,m.x,m.y,v)){var y=Math.sqrt(Math.pow(n.x-m.x,2)+Math.pow(n.y-m.y,2));y<c&&(c=y,l=p)}}return l&&e.hoveredNode!==l&&!e.nodeDataCache[l].hidden?(e.hoveredNode&&e.emit("leaveNode",i(i({},u),{node:e.hoveredNode})),e.hoveredNode=l,e.emit("enterNode",i(i({},u),{node:l})),void e.scheduleHighlightedNodesRender()):e.hoveredNode&&(g=e.nodeDataCache[e.hoveredNode],m=e.framedGraphToViewport(g),v=e.scaleSize(g.size),!t(n.x,n.y,m.x,m.y,v))?(p=e.hoveredNode,e.hoveredNode=null,e.emit("leaveNode",i(i({},u),{node:p})),e.scheduleHighlightedNodesRender()):void(!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(u):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,f.requestFrame)((function(){e.checkEdgeHoverEvents(u),e.checkEdgesEventsFrame=null})))))};var n=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){this.event.preventSigmaDefault()}};if(e.hoveredNode)return e.emit("".concat(t,"Node"),i(i({},r),{node:e.hoveredNode}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var o=e.getEdgeAtPoint(n.x,n.y);if(o)return e.emit("".concat(t,"Edge"),i(i({},r),{edge:o}))}return e.emit("".concat(t,"Stage"),r)}};return this.activeListeners.handleClick=n("click"),this.activeListeners.handleRightClick=n("rightClick"),this.activeListeners.handleDoubleClick=n("doubleClick"),this.activeListeners.handleWheel=n("wheel"),this.activeListeners.handleDown=n("down"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this},t.prototype.bindGraphHandlers=function(){var e=this,t=this.graph;return this.activeListeners.graphUpdate=function(){e.needToProcess=!0,e._scheduleRefresh()},this.activeListeners.softGraphUpdate=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},this.activeListeners.addNodeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},this.activeListeners.addEdgeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},t.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),t.on("nodeDropped",this.activeListeners.graphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),t.on("edgeDropped",this.activeListeners.graphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.graphUpdate),t.on("cleared",this.activeListeners.graphUpdate),this},t.prototype.checkEdgeHoverEvents=function(e){var t=this.hoveredNode?null:this.getEdgeAtPoint(e.event.x,e.event.y);return t!==this.hoveredEdge&&(this.hoveredEdge&&this.emit("leaveEdge",i(i({},e),{edge:this.hoveredEdge})),t&&this.emit("enterEdge",i(i({},e),{edge:t})),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n,r,o=this,i=this.edgeDataCache,s=this.nodeDataCache;if(!(0,v.isPixelColored)(this.webGLContexts.edges,e*y,t*y))return null;var u=this.viewportToGraph({x:e,y:t}),c=u.x,l=u.y,d=0;if(this.graph.someEdge((function(e,t,n,r,a,u){var c=a.x,l=a.y,f=u.x,h=u.y;if(i[e].hidden||s[n].hidden||s[r].hidden)return!1;if(c!==f||l!==h){var p=Math.sqrt(Math.pow(f-c,2)+Math.pow(h-l,2)),g=o.graphToViewport({x:c,y:l}),m=g.x,v=g.y,y=o.graphToViewport({x:f,y:h}),b=y.x,w=y.y,E=Math.sqrt(Math.pow(b-m,2)+Math.pow(w-v,2));return d=p/E,!0}})),!d)return null;var f=this.graph.filterEdges((function(e,t,n,r,a,u){return!(i[e].hidden||s[n].hidden||s[r].hidden)&&(!!(0,v.doEdgeCollideWithPoint)(c,l,a.x,a.y,u.x,u.y,i[e].size*d/o.cameraSizeRatio)||void 0)}));if(0===f.length)return null;var h=f[f.length-1],p=-1/0;try{for(var g=a(f),m=g.next();!m.done;m=g.next()){var b=m.value,w=this.graph.getEdgeAttribute(b,"zIndex");w>=p&&(h=b,p=w)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}return h},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,o=this.getDimensions(),i=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(o,r.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,f.graphExtent)(n),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var s=new u.default,c=(0,f.matrixFromCamera)(s.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,f.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var l={},d=n.nodes(),h=0,p=d.length;h<p;h++){var g=d[h],m=Object.assign({},n.getNodeAttributes(g));r.nodeReducer&&(m=r.nodeReducer(g,m)),l[(y=b(this.settings,g,m)).type]=(l[y.type]||0)+1,this.nodeDataCache[g]=y,this.normalizationFunction.applyTo(y),y.forceLabel&&this.nodesWithForcedLabels.push(g),this.settings.zIndex&&(y.zIndex<i[0]&&(i[0]=y.zIndex),y.zIndex>i[1]&&(i[1]=y.zIndex))}for(var v in this.nodePrograms){if(!this.nodePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for node type "'.concat(v,'"!'));e||this.nodePrograms[v].allocate(l[v]||0),l[v]=0}for(this.settings.zIndex&&i[0]!==i[1]&&(d=(0,f.zIndexOrdering)(i,(function(e){return t.nodeDataCache[e].zIndex}),d)),h=0,p=d.length;h<p;h++){g=d[h];var y=this.nodeDataCache[g];this.quadtree.add(g,y.x,1-y.y,y.size/this.width),"string"!=typeof y.label||y.hidden||this.labelGrid.add(g,y.size,this.framedGraphToViewport(y,{matrix:c})),this.nodePrograms[y.type].process(y,y.hidden,l[y.type]++),y.highlighted&&!y.hidden&&this.highlightedNodes.add(g),this.nodeKeyToIndex[g]=h}this.labelGrid.organize();var E={},x=n.edges();for(h=0,p=x.length;h<p;h++){var _=x[h];m=Object.assign({},n.getEdgeAttributes(_)),r.edgeReducer&&(m=r.edgeReducer(_,m)),E[(y=w(this.settings,0,m)).type]=(E[y.type]||0)+1,this.edgeDataCache[_]=y,y.forceLabel&&!y.hidden&&this.edgesWithForcedLabels.push(_),this.settings.zIndex&&(y.zIndex<a[0]&&(a[0]=y.zIndex),y.zIndex>a[1]&&(a[1]=y.zIndex))}for(var v in this.edgePrograms){if(!this.edgePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(v,'"!'));e||this.edgePrograms[v].allocate(E[v]||0),E[v]=0}for(this.settings.zIndex&&a[0]!==a[1]&&(x=(0,f.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),x)),h=0,p=x.length;h<p;h++){_=x[h],y=this.edgeDataCache[_];var C=n.extremities(_),S=this.nodeDataCache[C[0]],A=this.nodeDataCache[C[1]],k=y.hidden||S.hidden||A.hidden;this.edgePrograms[y.type].process(S,A,y,k,E[y.type]++),this.nodeKeyToIndex[_]=h}for(var v in this.edgePrograms){var O=this.edgePrograms[v];e||"function"!=typeof O.computeIndices||O.computeIndices()}return this},t.prototype.handleSettingsUpdate=function(){return this.camera.minRatio=this.settings.minCameraRatio,this.camera.maxRatio=this.settings.maxCameraRatio,this.camera.setState(this.camera.validateState(this.camera.getState())),this},t.prototype._refresh=function(){return this.needToProcess?this.process():this.needToSoftProcess&&this.process(!0),this.needToProcess=!1,this.needToSoftProcess=!1,this.render(),this},t.prototype._scheduleRefresh=function(){var e=this;return this.renderFrame||(this.renderFrame=(0,f.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e,t=this.camera.getState();if(t.ratio>=1)e=new Set(this.graph.nodes());else{var n=this.viewRectangle();e=new Set(this.quadtree.rectangle(n.x1,1-n.y1,n.x2,1-n.y2,n.height))}var r=this.labelGrid.getLabelsToDisplay(t.ratio,this.settings.labelDensity).concat(this.nodesWithForcedLabels);this.displayedLabels=new Set;for(var o=this.canvasContexts.labels,a=0,s=r.length;a<s;a++){var u=r[a],c=this.nodeDataCache[u];if(!this.displayedLabels.has(u)&&!c.hidden){var l=this.framedGraphToViewport(c),d=l.x,f=l.y,h=this.scaleSize(c.size);!c.forceLabel&&h<this.settings.labelRenderedSizeThreshold||e.has(u)&&(this.displayedLabels.add(u),this.settings.labelRenderer(o,i(i({key:u},c),{size:h,x:d,y:f}),this.settings))}}return this},t.prototype.renderEdgeLabels=function(){if(!this.settings.renderEdgeLabels)return this;var e=this.canvasContexts.edgeLabels;e.clearRect(0,0,this.width,this.height);for(var t=(0,h.edgeLabelsToDisplayFromNodes)({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedLabels,highlightedNodes:this.highlightedNodes}).concat(this.edgesWithForcedLabels),n=new Set,r=0,o=t.length;r<o;r++){var a=t[r],s=this.graph.extremities(a),u=this.nodeDataCache[s[0]],c=this.nodeDataCache[s[1]],l=this.edgeDataCache[a];n.has(a)||l.hidden||u.hidden||c.hidden||(this.settings.edgeLabelRenderer(e,i(i({key:a},l),{size:this.scaleSize(l.size)}),i(i(i({key:s[0]},u),this.framedGraphToViewport(u)),{size:this.scaleSize(u.size)}),i(i(i({key:s[1]},c),this.framedGraphToViewport(c)),{size:this.scaleSize(c.size)}),this.settings),n.add(a))}return this},t.prototype.renderHighlightedNodes=function(){var e=this,t=this.canvasContexts.hovers;t.clearRect(0,0,this.width,this.height);var n=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&n.push(this.hoveredNode),this.highlightedNodes.forEach((function(t){t!==e.hoveredNode&&n.push(t)})),n.forEach((function(n){return function(n){var r=e.nodeDataCache[n],o=e.framedGraphToViewport(r),a=o.x,s=o.y,u=e.scaleSize(r.size);e.settings.hoverRenderer(t,i(i({key:n},r),{size:u,x:a,y:s}),e.settings)}(n)}));var r={};for(var o in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.hoverNodePrograms)this.hoverNodePrograms[o].allocate(r[o]||0),r[o]=0;for(var o in n.forEach((function(t){var n=e.nodeDataCache[t];e.hoverNodePrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.hoverNodePrograms){var a=this.hoverNodePrograms[o];a.bind(),a.bufferData(),a.render({matrix:this.matrix,width:this.width,height:this.height,ratio:this.camera.ratio,correctionRatio:this.correctionRatio/this.camera.ratio,scalingRatio:y})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,f.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){if(this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return this;var e=this.mouseCaptor,t=this.camera.isAnimated()||e.isMoving||e.draggedEvents||e.currentWheelDirection,n=this.camera.getState(),r=this.getDimensions(),o=this.getGraphDimensions(),i=this.getSetting("stagePadding")||0;for(var a in this.matrix=(0,f.matrixFromCamera)(n,r,o,i),this.invMatrix=(0,f.matrixFromCamera)(n,r,o,i,!0),this.correctionRatio=(0,f.getMatrixImpact)(this.matrix,n,r),this.nodePrograms)(s=this.nodePrograms[a]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:y});if(!this.settings.hideEdgesOnMove||!t)for(var a in this.edgePrograms){var s;(s=this.edgePrograms[a]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:y})}return this.settings.hideLabelsOnMove&&t||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes(),this.emit("afterRender")),this},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getGraph=function(){return this.graph},t.prototype.getMouseCaptor=function(){return this.mouseCaptor},t.prototype.getTouchCaptor=function(){return this.touchCaptor},t.prototype.getDimensions=function(){return{width:this.width,height:this.height}},t.prototype.getGraphDimensions=function(){var e=this.customBBox||this.nodeExtent;return{width:e.x[1]-e.x[0]||1,height:e.y[1]-e.y[0]||1}},t.prototype.getNodeDisplayData=function(e){var t=this.nodeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getEdgeDisplayData=function(e){var t=this.edgeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getSettings=function(){return i({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,p.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.updateSetting=function(e,t){return this.settings[e]=t(this.settings[e]),(0,p.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.resize=function(){var e=this.width,t=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,0===this.width)throw new Error("Sigma: container has no width.");if(0===this.height)throw new Error("Sigma: container has no height.");if(e===this.width&&t===this.height)return this;for(var n in this.elements){var r=this.elements[n];r.style.width=this.width+"px",r.style.height=this.height+"px"}for(var n in this.canvasContexts)this.elements[n].setAttribute("width",this.width*y+"px"),this.elements[n].setAttribute("height",this.height*y+"px"),1!==y&&this.canvasContexts[n].scale(y,y);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*y+"px"),this.elements[n].setAttribute("height",this.height*y+"px"),this.webGLContexts[n].viewport(0,0,this.width*y,this.height*y);return this},t.prototype.clear=function(){return this.webGLContexts.nodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.webGLContexts.edges.clear(this.webGLContexts.edges.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this},t.prototype.refresh=function(){return this.needToProcess=!0,this._refresh(),this},t.prototype.scheduleRefresh=function(){return this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.getViewportZoomedState=function(e,t){var n=this.camera.getState(),r=n.ratio,o=n.angle,i=n.x,a=n.y,s=t/r,u={x:this.width/2,y:this.height/2},c=this.viewportToFramedGraph(e),l=this.viewportToFramedGraph(u);return{angle:o,x:(c.x-l.x)*(1-s)+i,y:(c.y-l.y)*(1-s)+a,ratio:t}},t.prototype.viewRectangle=function(){var e=0*this.width/8,t=0*this.height/8,n=this.viewportToFramedGraph({x:0-e,y:0-t}),r=this.viewportToFramedGraph({x:this.width+e,y:0-t}),o=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-o.y}},t.prototype.framedGraphToViewport=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,o=[e.x,e.y,1],i=(0,m.multiplyVec)(r,o);return{x:(1+i[0])*this.width/2,y:(1-i[1])*this.height/2}},t.prototype.viewportToFramedGraph=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,o=[e.x/this.width*2-1,1-e.y/this.height*2,1],i=(0,m.multiplyVec)(r,o);return{x:i[0],y:i[1]}},t.prototype.viewportToGraph=function(e,t){return void 0===t&&(t={}),this.normalizationFunction.inverse(this.viewportToFramedGraph(e,t))},t.prototype.graphToViewport=function(e,t){return void 0===t&&(t={}),this.framedGraphToViewport(this.normalizationFunction(e),t)},t.prototype.getBBox=function(){return(0,f.graphExtent)(this.graph)},t.prototype.getCustomBBox=function(){return this.customBBox},t.prototype.setCustomBBox=function(e){return this.customBBox=e,this._scheduleRefresh(),this},t.prototype.kill=function(){var e=this.graph;this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),e.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),e.removeListener("nodeDropped",this.activeListeners.graphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),e.removeListener("edgeDropped",this.activeListeners.graphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.graphUpdate),e.removeListener("cleared",this.activeListeners.graphUpdate),this.quadtree=new l.default,this.nodeDataCache={},this.edgeDataCache={},this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[],this.highlightedNodes.clear(),this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,f.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var t=this.container;t.firstChild;)t.removeChild(t.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return i({},this.elements)},t}(d.TypedEventEmitter);t.default=E},432:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var i=function(e){function t(){var t=e.call(this)||this;return t.rawEmitter=t,t}return o(t,e),t}(n(2699).EventEmitter);t.TypedEventEmitter=i},1181:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.animateNodes=t.ANIMATE_DEFAULTS=void 0;var o=n(8586),i=r(n(2383));t.ANIMATE_DEFAULTS={easing:"quadraticInOut",duration:150},t.animateNodes=function(e,n,r,a){var s=Object.assign({},t.ANIMATE_DEFAULTS,r),u="function"==typeof s.easing?s.easing:i.default[s.easing],c=Date.now(),l={};for(var d in n){var f=n[d];for(var h in l[d]={},f)l[d][h]=e.getNodeAttribute(d,h)}var p=null,g=function(){var t=(Date.now()-c)/s.duration;if(t>=1){for(var r in n){var i=n[r];for(var d in i)e.setNodeAttribute(r,d,i[d])}"function"==typeof a&&a()}else{for(var r in t=u(t),n){i=n[r];var f=l[r];for(var d in i)e.setNodeAttribute(r,d,i[d]*t+f[d]*(1-t))}p=(0,o.requestFrame)(g)}};return g(),function(){p&&(0,o.cancelFrame)(p)}}},1078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML_COLORS=void 0,t.HTML_COLORS={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"}},2383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cubicInOut=t.cubicOut=t.cubicIn=t.quadraticInOut=t.quadraticOut=t.quadraticIn=t.linear=void 0,t.linear=function(e){return e},t.quadraticIn=function(e){return e*e},t.quadraticOut=function(e){return e*(2-e)},t.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},t.cubicIn=function(e){return e*e*e},t.cubicOut=function(e){return--e*e*e+1},t.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)};var n={linear:t.linear,quadraticIn:t.quadraticIn,quadraticOut:t.quadraticOut,quadraticInOut:t.quadraticInOut,cubicIn:t.cubicIn,cubicOut:t.cubicOut,cubicInOut:t.cubicInOut};t.default=n},8073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doEdgeCollideWithPoint=t.isPixelColored=void 0,t.isPixelColored=function(e,t,n){var r=new Uint8Array(4);return e.readPixels(t,e.drawingBufferHeight-n,1,1,e.RGBA,e.UNSIGNED_BYTE,r),r[3]>0},t.doEdgeCollideWithPoint=function(e,t,n,r,o,i,a){return!(e<n-a&&e<o-a||t<r-a&&t<i-a||e>n+a&&e>o+a||t>r+a&&t>i+a||!(Math.abs((o-n)*(r-t)-(n-e)*(i-r))/Math.sqrt(Math.pow(o-n,2)+Math.pow(i-r,2))<a/2))}},8586:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateGraph=t.canUse32BitsIndices=t.extractPixel=t.getMatrixImpact=t.matrixFromCamera=t.getCorrectionRatio=t.floatColor=t.zIndexOrdering=t.createNormalizationFunction=t.graphExtent=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var i=o(n(1880)),a=n(2237),s=n(1078);function u(e){return"object"==typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=u,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,o=t.length;r<o;r++){var i=t[r];i&&Object.assign(e,i)}return e},t.assignDeep=function e(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=t||{};for(var o=0,i=n.length;o<i;o++){var a=n[o];if(a)for(var s in a)u(a[s])?t[s]=e(t[s],a[s]):t[s]=a[s]}return t},t.requestFrame="undefined"!=typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,0)},t.cancelFrame="undefined"!=typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:function(e){return clearTimeout(e)},t.createElement=function(e,t,n){var r=document.createElement(e);if(t)for(var o in t)r.style[o]=t[o];if(n)for(var o in n)r.setAttribute(o,n[o]);return r},t.getPixelRatio=function(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:1},t.graphExtent=function(e){var t=1/0,n=-1/0,r=1/0,o=-1/0;return e.forEachNode((function(e,i){var a=i.x,s=i.y;a<t&&(t=a),a>n&&(n=a),s<r&&(r=s),s>o&&(o=s)})),{x:[t,n],y:[r,o]}},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],o=t[1],i=r(e.y,2),a=i[0],s=i[1],u=Math.max(o-n,s-a);0===u&&(u=1);var c=(o+n)/2,l=(s+a)/2,d=function(e){return{x:.5+(e.x-c)/u,y:.5+(e.y-l)/u}};return d.applyTo=function(e){e.x=.5+(e.x-c)/u,e.y=.5+(e.y-l)/u},d.inverse=function(e){return{x:c+u*(e.x-.5),y:l+u*(e.y-.5)}},d.ratio=u,d},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,o=t(n)||0;return r<o?-1:r>o?1:0}))};var c=new Int8Array(4),l=new Int32Array(c.buffer,0,1),d=new Float32Array(c.buffer,0,1),f=/^\s*rgba?\s*\(/,h=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/,p={};for(var g in s.HTML_COLORS)p[g]=m(s.HTML_COLORS[g]);function m(e){if(void 0!==p[e])return p[e];var t=0,n=0,r=0,o=1;if("#"===e[0])4===e.length?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16));else if(f.test(e)){var i=e.match(h);i&&(t=+i[1],n=+i[2],r=+i[3],i[4]&&(o=+i[4]))}o=255*o|0,l[0]=4278190079&(o<<24|r<<16|n<<8|t);var a=d[0];return p[e]=a,a}function v(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}t.floatColor=m,t.getCorrectionRatio=v,t.matrixFromCamera=function(e,t,n,r,o){var i=e.angle,s=e.ratio,u=e.x,c=e.y,l=t.width,d=t.height,f=(0,a.identity)(),h=Math.min(l,d)-2*r,p=v(t,n);return o?((0,a.multiply)(f,(0,a.translate)((0,a.identity)(),u,c)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),s)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),i)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),l/h/2/p,d/h/2/p))):((0,a.multiply)(f,(0,a.scale)((0,a.identity)(),h/l*2*p,h/d*2*p)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),-i)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),1/s)),(0,a.multiply)(f,(0,a.translate)((0,a.identity)(),-u,-c))),f},t.getMatrixImpact=function(e,t,n){var o=r((0,a.multiplyVec)(e,[Math.cos(t.angle),Math.sin(t.angle),0]),2),i=o[0],s=o[1];return 1/Math.sqrt(Math.pow(i,2)+Math.pow(s,2))/n.width},t.extractPixel=function(e,t,n,r){var o=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,o),o},t.canUse32BitsIndices=function(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,i.default)(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode((function(e,t){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))throw new Error("Sigma: Coordinates of node ".concat(e," are invalid. A node must have a numeric 'x' and 'y' attribute."))}))}},2237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiplyVec=t.multiply=t.translate=t.rotate=t.scale=t.identity=void 0,t.identity=function(){return Float32Array.of(1,0,0,0,1,0,0,0,1)},t.scale=function(e,t,n){return e[0]=t,e[4]="number"==typeof n?n:t,e},t.rotate=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e},t.translate=function(e,t,n){return e[6]=t,e[7]=n,e},t.multiply=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],d=t[0],f=t[1],h=t[2],p=t[3],g=t[4],m=t[5],v=t[6],y=t[7],b=t[8];return e[0]=d*n+f*i+h*u,e[1]=d*r+f*a+h*c,e[2]=d*o+f*s+h*l,e[3]=p*n+g*i+m*u,e[4]=p*r+g*a+m*c,e[5]=p*o+g*s+m*l,e[6]=v*n+y*i+b*u,e[7]=v*r+y*a+b*c,e[8]=v*o+y*s+b*l,e},t.multiplyVec=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],d=t[0],f=t[1],h=t[2],p=Array.isArray(t)?[0,0,0]:Float32Array.of(0,0,0);return p[0]=d*n+f*i+h*u,p[1]=d*r+f*a+h*c,p[2]=d*o+f*s+h*l,p}},2564:e=>{"use strict";e.exports=function(){}},8096:e=>{"use strict";e.exports=window["material-ui-coreStyles"].withStyles},683:e=>{"use strict";e.exports=window["material-ui"].IconButton},2298:e=>{"use strict";e.exports=window["material-ui"].SvgIcon},6929:e=>{"use strict";e.exports=window["material-ui"].Tooltip},8310:t=>{"use strict";t.exports=e},2308:e=>{"use strict";e.exports=t},2396:e=>{"use strict";e.exports=n},3192:e=>{"use strict";e.exports=r},5099:e=>{"use strict";e.exports=o},3288:e=>{"use strict";e.exports=i},8156:e=>{"use strict";e.exports=a},7111:e=>{"use strict";e.exports=s},4756:e=>{"use strict";e.exports=u},5751:e=>{"use strict";e.exports=c}},d={};function f(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}};return l[e].call(n.exports,n,n.exports,f),n.loaded=!0,n.exports}f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var h={};return(()=>{"use strict";f.r(h),f.d(h,{GraphView:()=>Qu});var e=f(8156),t=f.n(e),n=f(4756);const r=window["material-ui-coreStyles"];var o=f(5099),i=f.n(o),a=f(8310),s=f.n(a),u=f(3288),c=f(5751),l=f.n(c);const d=window["material-ui"].Portal;var p=f.n(d),g=f(4176),m=f(2308),v=f.n(m);const y=(0,r.makeStyles)((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",zIndex:1e4}})));function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}const w=r=>{const o=y(),i=(0,n.useSelector)(v().selectors.getAutoCloseInterval),a=(0,n.useSelector)(v().selectors.getUiError),c=(0,n.useDispatch)();return(0,e.useEffect)((()=>{a&&r.showErrorFromStore&&(w.addError({title:l().text("Error"),message:a}),c(m.ui.actions.errorSet(null)))}),[c,a,r.showErrorFromStore]),t().createElement(p(),{container:document.body},t().createElement(g.ZP,b({classes:{errorBlock:s()(o.errorBlock,(0,u.path)(["classes","errorBlock"],r))},autoCloseInterval:i},r)))};w.propTypes={showErrorFromStore:i().bool},w.addError=g.ZP.addError;const E=w;var x=function(e,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},x(e,t)};function _(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};function S(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&&(n[r[o]]=e[r[o]])}return n}function A(e){var t,n,r="";if(e)if("object"==typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=A(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(n=A(t))&&(r&&(r+=" "),r+=n);else"boolean"==typeof e||e.call||(r&&(r+=" "),r+=e);return r}function k(){for(var e,t=0,n="";t<arguments.length;)(e=A(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}const O=window["material-ui"].Typography;var D=f.n(O);const L=window["material-ui"].Button;var T=f.n(L);const M=window["material-ui"].Toolbar;var P=f.n(M),F=f(683),N=f.n(F);function j(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function R(){return R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}function I(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const G=t().createContext(null);function z(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function U(e,t,n){return null!=n[t]?n[t]:e.props[t]}function W(t,n,r){var o=z(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,e.isValidElement)(s)){var u=a in n,c=a in o,l=n[a],d=(0,e.isValidElement)(l)&&!l.props.in;!c||u&&!d?c||!u||d?c&&u&&(0,e.isValidElement)(l)&&(i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:l.props.in,exit:U(s,"exit",t),enter:U(s,"enter",t)})):i[a]=(0,e.cloneElement)(s,{in:!1}):i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:U(s,"exit",t),enter:U(s,"enter",t)})}})),i}var H=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},q=function(n){function r(e,t){var r,o=(r=n.call(this,e,t)||this).handleExited.bind(B(B(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}I(r,n);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,z(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:U(t,"appear",r),enter:U(t,"enter",r),exit:U(t,"exit",r)})}))):W(t,i,a),firstRender:!1}},o.handleExited=function(e,t){var n=z(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=R({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=j(e,["component","childFactory"]),i=this.state.contextValue,a=H(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t().createElement(G.Provider,{value:i},a):t().createElement(G.Provider,{value:i},t().createElement(n,o,a))},r}(t().Component);q.propTypes={},q.defaultProps={component:"div",childFactory:function(e){return e}};const V=q;var Y=f(2196),K=f.n(Y),$=f(4812),Z=f.n($),X=f(7111),Q=f.n(X);var J="unmounted",ee="exited",te="entering",ne="entered",re="exiting",oe=function(e){function n(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=ee,r.appearStatus=te):o=ne:o=t.unmountOnExit||t.mountOnEnter?J:ee,r.state={status:o},r.nextCallback=null,r}I(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===J?{status:ee}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==te&&n!==ne&&(t=te):n!==te&&n!==ne||(t=re)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=Q().findDOMNode(this);t===te?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===ee&&this.setState({status:J})},r.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:te},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:ne},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:ne},(function(){n.props.onEntered(e)}))},r.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:re},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:ee},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:ee},(function(){t.props.onExited(e)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===J)return null;var n=this.props,r=n.children,o=j(n,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof r)return t().createElement(G.Provider,{value:null},r(e,o));var i=t().Children.only(r);return t().createElement(G.Provider,{value:null},t().cloneElement(i,o))},n}(t().Component);function ie(){}oe.contextType=G,oe.propTypes={},oe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ie,onEntering:ie,onEntered:ie,onExit:ie,onExiting:ie,onExited:ie},oe.UNMOUNTED=0,oe.EXITED=1,oe.ENTERING=2,oe.ENTERED=3,oe.EXITING=4;const ae=oe;var se=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return Z()(e,t)}))},ue=function(e){function n(){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){t.removeClasses(e,"exit"),t.addClass(e,n?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=n?"appear":"enter";t.addClass(e,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=n?"appear":"enter";t.removeClasses(e,r),t.addClass(e,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),t.addClass(e,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){t.addClass(e,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){t.removeClasses(e,"exit"),t.addClass(e,"exit","done"),t.props.onExited&&t.props.onExited(e)},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}I(n,e);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"];"appear"===t&&"done"===n&&(r+=" "+this.getClassNames("enter").doneClassName),"active"===n&&e&&e.scrollTop,this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return K()(e,t)}))}(e,r)},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&se(e,r),o&&se(e,o),i&&se(e,i)},r.render=function(){var e=this.props,n=(e.classNames,j(e,["classNames"]));return t().createElement(ae,R({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t().Component);ue.defaultProps={classNames:""},ue.propTypes={};const ce=ue;var le=f(2298),de=f.n(le);const fe=window["material-ui"].CircularProgress;var he=f.n(fe);function pe(){return pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(this,arguments)}const ge=window["material-ui-styles"];function me(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ve(e){return ve="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},ve(e)}function ye(e){return ye="function"==typeof Symbol&&"symbol"===ve(Symbol.iterator)?function(e){return ve(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ve(e)},ye(e)}function be(e){return e&&"object"===ye(e)&&e.constructor===Object}function we(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?pe({},e):e;return be(e)&&be(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(be(t[o])&&o in e?r[o]=we(e[o],t[o],n):r[o]=t[o])})),r}var Ee=["xs","sm","md","lg","xl"];function xe(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=me(e,["values","unit","step"]);function u(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=Ee.indexOf(t);return r===Ee.length-1?u(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Ee[r+1]]?n[Ee[r+1]]:t)-a/100).concat(o,")")}return pe({keys:Ee,values:n,up:u,down:function(e){var t=Ee.indexOf(e)+1,r=n[Ee[t]];return t===Ee.length?u("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t,n){var r;return pe({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return pe({paddingLeft:t(2),paddingRight:t(2)},n,_e({},e.up("sm"),pe({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},_e(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),_e(r,e.up("sm"),{minHeight:64}),r)},n)}function Se(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}const Ae={black:"#000",white:"#fff"},ke={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Oe="#7986cb",De="#3f51b5",Le="#303f9f",Te="#ff4081",Me="#f50057",Pe="#c51162",Fe="#e57373",Ne="#f44336",je="#d32f2f",Re="#ffb74d",Ie="#ff9800",Be="#f57c00",Ge="#64b5f6",ze="#2196f3",Ue="#1976d2",We="#81c784",He="#4caf50",qe="#388e3c";function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Ye(e){if(e.type)return e;if("#"===e.charAt(0))return Ye(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Se(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Ke(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function $e(e){var t="hsl"===(e=Ye(e)).type?Ye(function(e){var t=(e=Ye(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),Ke({type:s,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ze(e,t){return e=Ye(e),t=Ve(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Ke(e)}var Xe={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ae.white,default:ke[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Qe={text:{primary:Ae.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:ke[800],default:"#303030"},action:{active:Ae.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Je(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Ye(e),t=Ve(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Ke(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Ye(e),t=Ve(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Ke(e)}(e.main,i)))}function et(e){var t=e.primary,n=void 0===t?{light:Oe,main:De,dark:Le}:t,r=e.secondary,o=void 0===r?{light:Te,main:Me,dark:Pe}:r,i=e.error,a=void 0===i?{light:Fe,main:Ne,dark:je}:i,s=e.warning,u=void 0===s?{light:Re,main:Ie,dark:Be}:s,c=e.info,l=void 0===c?{light:Ge,main:ze,dark:Ue}:c,d=e.success,f=void 0===d?{light:We,main:He,dark:qe}:d,h=e.type,p=void 0===h?"light":h,g=e.contrastThreshold,m=void 0===g?3:g,v=e.tonalOffset,y=void 0===v?.2:v,b=me(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function w(e){var t=function(e,t){var n=$e(e),r=$e(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Qe.text.primary)>=m?Qe.text.primary:Xe.text.primary;return t}var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=pe({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Se(4,t));if("string"!=typeof e.main)throw new Error(Se(5,JSON.stringify(e.main)));return Je(e,"light",n,y),Je(e,"dark",r,y),e.contrastText||(e.contrastText=w(e.main)),e},x={dark:Qe,light:Xe};return we(pe({common:Ae,type:p,primary:E(n),secondary:E(o,"A400","A200","A700"),error:E(a),warning:E(u),info:E(l),success:E(f),grey:ke,contrastThreshold:m,getContrastText:w,augmentColor:E,tonalOffset:y},x[p]),b)}function tt(e){return Math.round(1e5*e)/1e5}var nt={textTransform:"uppercase"},rt='"Roboto", "Helvetica", "Arial", sans-serif';function ot(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?rt:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,u=void 0===s?300:s,c=n.fontWeightRegular,l=void 0===c?400:c,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,g=n.htmlFontSize,m=void 0===g?16:g,v=n.allVariants,y=n.pxToRem,b=me(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),w=a/14,E=y||function(e){return"".concat(e/m*w,"rem")},x=function(e,t,n,r,i){return pe({fontFamily:o,fontWeight:e,fontSize:E(t),lineHeight:n},o===rt?{letterSpacing:"".concat(tt(r/t),"em")}:{},i,v)},_={h1:x(u,96,1.167,-1.5),h2:x(u,60,1.2,-.5),h3:x(l,48,1.167,0),h4:x(l,34,1.235,.25),h5:x(l,24,1.334,0),h6:x(f,20,1.6,.15),subtitle1:x(l,16,1.75,.15),subtitle2:x(f,14,1.57,.1),body1:x(l,16,1.5,.15),body2:x(l,14,1.43,.15),button:x(f,14,1.75,.4,nt),caption:x(l,12,1.66,.4),overline:x(l,12,2.66,1,nt)};return we(pe({htmlFontSize:m,pxToRem:E,round:tt,fontFamily:o,fontSize:a,fontWeightLight:u,fontWeightRegular:l,fontWeightMedium:f,fontWeightBold:p},_),b,{clone:!1})}function it(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const at=["none",it(0,2,1,-1,0,1,1,0,0,1,3,0),it(0,3,1,-2,0,2,2,0,0,1,5,0),it(0,3,3,-2,0,3,4,0,0,1,8,0),it(0,2,4,-1,0,4,5,0,0,1,10,0),it(0,3,5,-1,0,5,8,0,0,1,14,0),it(0,3,5,-1,0,6,10,0,0,1,18,0),it(0,4,5,-2,0,7,10,1,0,2,16,1),it(0,5,5,-3,0,8,10,1,0,3,14,2),it(0,5,6,-3,0,9,12,1,0,3,16,2),it(0,6,6,-3,0,10,14,1,0,4,18,3),it(0,6,7,-4,0,11,15,1,0,4,20,3),it(0,7,8,-4,0,12,17,2,0,5,22,4),it(0,7,8,-4,0,13,19,2,0,5,24,4),it(0,7,9,-4,0,14,21,2,0,5,26,4),it(0,8,9,-5,0,15,22,2,0,6,28,5),it(0,8,10,-5,0,16,24,2,0,6,30,5),it(0,8,11,-5,0,17,26,2,0,6,32,5),it(0,9,11,-5,0,18,28,2,0,7,34,6),it(0,9,12,-6,0,19,29,2,0,7,36,6),it(0,10,13,-6,0,20,31,3,0,8,38,7),it(0,10,13,-6,0,21,33,3,0,8,40,7),it(0,10,14,-6,0,22,35,3,0,8,42,7),it(0,11,14,-7,0,23,36,3,0,9,44,8),it(0,11,15,-7,0,24,38,3,0,9,46,8)],st={borderRadius:4};var ut={xs:0,sm:600,md:960,lg:1280,xl:1920},ct={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(ut[e],"px)")}};function lt(e){return e&&"object"===ye(e)&&e.constructor===Object}function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?pe({},e):e;return lt(e)&<(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(lt(t[o])&&o in e?r[o]=dt(e[o],t[o],n):r[o]=t[o])})),r}const ft=function(e,t){return t?dt(e,t,{clone:!1}):e};var ht,pt,gt={m:"margin",p:"padding"},mt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yt=(ht=function(e){if(e.length>2){if(!vt[e])return[e];e=vt[e]}var t,n,r=(t=e.split(""),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),o=r[0],i=r[1],a=gt[o],s=mt[i]||"";return Array.isArray(s)?s.map((function(e){return a+e})):[a+s]},pt={},function(e){return void 0===pt[e]&&(pt[e]=ht(e)),pt[e]}),bt=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function wt(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Et(e){var t=wt(e.theme);return Object.keys(e).map((function(n){if(-1===bt.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}(yt(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||ct;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===ye(t)){var o=e.theme.breakpoints||ct;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(ft,{})}function xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=wt({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}Et.propTypes={},Et.filterProps=bt;var _t={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ct={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function St(e){return"".concat(Math.round(e),"ms")}const At={easing:_t,duration:Ct,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Ct.standard:n,o=t.easing,i=void 0===o?_t.easeInOut:o,a=t.delay,s=void 0===a?0:a;return me(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:St(r)," ").concat(i," ").concat("string"==typeof s?s:St(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},kt={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ot=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,u=e.typography,c=void 0===u?{}:u,l=me(e,["breakpoints","mixins","palette","spacing","typography"]),d=et(a),f=xe(n),h=xt(s),p=we({breakpoints:f,direction:"ltr",mixins:Ce(f,h,o),overrides:{},palette:d,props:{},shadows:at,typography:ot(d,c),spacing:h,shape:st,transitions:At,zIndex:kt},l),g=arguments.length,m=new Array(g>1?g-1:0),v=1;v<g;v++)m[v-1]=arguments[v];return m.reduce((function(e,t){return we(e,t)}),p)}(),Dt=function(e,t){return(0,ge.withStyles)(e,pe({defaultTheme:Ot},t))};function Lt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Tt(t,n){return e.useMemo((function(){return null==t&&null==n?null:function(e){Lt(t,e),Lt(n,e)}}),[t,n])}var Mt="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function Pt(t){var n=e.useRef(t);return Mt((function(){n.current=t})),e.useCallback((function(){return n.current.apply(void 0,arguments)}),[])}var Ft=!0,Nt=!1,jt=null,Rt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function It(e){e.metaKey||e.altKey||e.ctrlKey||(Ft=!0)}function Bt(){Ft=!1}function Gt(){"hidden"===this.visibilityState&&Nt&&(Ft=!0)}function zt(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return Ft||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!Rt[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function Ut(){Nt=!0,window.clearTimeout(jt),jt=window.setTimeout((function(){Nt=!1}),100)}function Wt(){return{isFocusVisible:zt,onBlurVisible:Ut,ref:e.useCallback((function(e){var t,n=X.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",It,!0),t.addEventListener("mousedown",Bt,!0),t.addEventListener("pointerdown",Bt,!0),t.addEventListener("touchstart",Bt,!0),t.addEventListener("visibilitychange",Gt,!0))}),[])}}function Ht(){return Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ht.apply(this,arguments)}function qt(e,t){return qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qt(e,t)}const Vt=t().createContext(null);function Yt(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Kt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function $t(t,n,r){var o=Yt(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,e.isValidElement)(s)){var u=a in n,c=a in o,l=n[a],d=(0,e.isValidElement)(l)&&!l.props.in;!c||u&&!d?c||!u||d?c&&u&&(0,e.isValidElement)(l)&&(i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:l.props.in,exit:Kt(s,"exit",t),enter:Kt(s,"enter",t)})):i[a]=(0,e.cloneElement)(s,{in:!1}):i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Kt(s,"exit",t),enter:Kt(s,"enter",t)})}})),i}var Zt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Xt=function(n){var r,o;function i(e,t){var r,o=(r=n.call(this,e,t)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}o=n,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,qt(r,o);var a=i.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},i.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,Yt(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:Kt(t,"appear",r),enter:Kt(t,"enter",r),exit:Kt(t,"exit",r)})}))):$t(t,i,a),firstRender:!1}},a.handleExited=function(e,t){var n=Yt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ht({},t.children);return delete n[e.key],{children:n}})))},a.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=this.state.contextValue,a=Zt(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t().createElement(Vt.Provider,{value:i},a):t().createElement(Vt.Provider,{value:i},t().createElement(n,o,a))},i}(t().Component);Xt.propTypes={},Xt.defaultProps={component:"div",childFactory:function(e){return e}};const Qt=Xt;var Jt="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const en=function(t){var n=t.classes,r=t.pulsate,o=void 0!==r&&r,i=t.rippleX,a=t.rippleY,s=t.rippleSize,u=t.in,c=t.onExited,l=void 0===c?function(){}:c,d=t.timeout,f=e.useState(!1),h=f[0],p=f[1],g=k(n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+i},v=k(n.child,h&&n.childLeaving,o&&n.childPulsate),y=Pt(l);return Jt((function(){if(!u){p(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,u,d]),e.createElement("span",{className:g,style:m},e.createElement("span",{className:v}))};var tn=e.forwardRef((function(t,n){var r=t.center,o=void 0!==r&&r,i=t.classes,a=t.className,s=me(t,["center","classes","className"]),u=e.useState([]),c=u[0],l=u[1],d=e.useRef(0),f=e.useRef(null);e.useEffect((function(){f.current&&(f.current(),f.current=null)}),[c]);var h=e.useRef(!1),p=e.useRef(null),g=e.useRef(null),m=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var v=e.useCallback((function(t){var n=t.pulsate,r=t.rippleX,o=t.rippleY,a=t.rippleSize,s=t.cb;l((function(t){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(s=t)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}(),[e.createElement(en,{key:d.current,classes:i,timeout:550,pulsate:n,rippleX:r,rippleY:o,rippleSize:a})]);var s})),d.current+=1,f.current=s}),[i]),y=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,s=void 0===a?o||t.pulsate:a,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var l,d,f,y=c?null:m.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(b.width/2),d=Math.round(b.height/2);else{var w=e.touches?e.touches[0]:e,E=w.clientX,x=w.clientY;l=Math.round(E-b.left),d=Math.round(x-b.top)}if(s)(f=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(f+=1);else{var _=2*Math.max(Math.abs((y?y.clientWidth:0)-l),l)+2,C=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(_,2)+Math.pow(C,2))}e.touches?null===g.current&&(g.current=function(){v({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})},p.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):v({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})}}),[o,v]),b=e.useCallback((function(){y({},{pulsate:!0})}),[y]),w=e.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(p.current=setTimeout((function(){w(e,t)})));g.current=null,l((function(e){return e.length>0?e.slice(1):e})),f.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:b,start:y,stop:w}}),[b,y,w]),e.createElement("span",pe({className:k(i.root,a),ref:m},s),e.createElement(Qt,{component:null,exit:!0},c))}));const nn=Dt((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(e.memo(tn));var rn=e.forwardRef((function(t,n){var r=t.action,o=t.buttonRef,i=t.centerRipple,a=void 0!==i&&i,s=t.children,u=t.classes,c=t.className,l=t.component,d=void 0===l?"button":l,f=t.disabled,h=void 0!==f&&f,p=t.disableRipple,g=void 0!==p&&p,m=t.disableTouchRipple,v=void 0!==m&&m,y=t.focusRipple,b=void 0!==y&&y,w=t.focusVisibleClassName,E=t.onBlur,x=t.onClick,_=t.onFocus,C=t.onFocusVisible,S=t.onKeyDown,A=t.onKeyUp,O=t.onMouseDown,D=t.onMouseLeave,L=t.onMouseUp,T=t.onTouchEnd,M=t.onTouchMove,P=t.onTouchStart,F=t.onDragLeave,N=t.tabIndex,j=void 0===N?0:N,R=t.TouchRippleProps,I=t.type,B=void 0===I?"button":I,G=me(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),z=e.useRef(null),U=e.useRef(null),W=e.useState(!1),H=W[0],q=W[1];h&&H&&q(!1);var V=Wt(),Y=V.isFocusVisible,K=V.onBlurVisible,$=V.ref;function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;return Pt((function(r){return t&&t(r),!n&&U.current&&U.current[e](r),!0}))}e.useImperativeHandle(r,(function(){return{focusVisible:function(){q(!0),z.current.focus()}}}),[]),e.useEffect((function(){H&&b&&!g&&U.current.pulsate()}),[g,b,H]);var Q=Z("start",O),J=Z("stop",F),ee=Z("stop",L),te=Z("stop",(function(e){H&&e.preventDefault(),D&&D(e)})),ne=Z("start",P),re=Z("stop",T),oe=Z("stop",M),ie=Z("stop",(function(e){H&&(K(e),q(!1)),E&&E(e)}),!1),ae=Pt((function(e){z.current||(z.current=e.currentTarget),Y(e)&&(q(!0),C&&C(e)),_&&_(e)})),se=function(){var e=X.findDOMNode(z.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ue=e.useRef(!1),ce=Pt((function(e){b&&!ue.current&&H&&U.current&&" "===e.key&&(ue.current=!0,e.persist(),U.current.stop(e,(function(){U.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!h&&(e.preventDefault(),x&&x(e))})),le=Pt((function(e){b&&" "===e.key&&U.current&&H&&!e.defaultPrevented&&(ue.current=!1,e.persist(),U.current.stop(e,(function(){U.current.pulsate(e)}))),A&&A(e),x&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&x(e)})),de=d;"button"===de&&G.href&&(de="a");var fe={};"button"===de?(fe.type=B,fe.disabled=h):("a"===de&&G.href||(fe.role="button"),fe["aria-disabled"]=h);var he=Tt(o,n),ge=Tt($,z),ve=Tt(he,ge),ye=e.useState(!1),be=ye[0],we=ye[1];e.useEffect((function(){we(!0)}),[]);var Ee=be&&!g&&!h;return e.createElement(de,pe({className:k(u.root,c,H&&[u.focusVisible,w],h&&u.disabled),onBlur:ie,onClick:x,onFocus:ae,onKeyDown:ce,onKeyUp:le,onMouseDown:Q,onMouseLeave:te,onMouseUp:ee,onDragLeave:J,onTouchEnd:re,onTouchMove:oe,onTouchStart:ne,ref:ve,tabIndex:h?-1:j},fe,G),s,Ee?e.createElement(nn,pe({ref:U,center:a},R)):null)}));const on=Dt({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(rn);function an(e){if("string"!=typeof e)throw new Error(Se(7));return e.charAt(0).toUpperCase()+e.slice(1)}var sn=e.forwardRef((function(t,n){var r=t.edge,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.className,u=t.color,c=void 0===u?"default":u,l=t.disabled,d=void 0!==l&&l,f=t.disableFocusRipple,h=void 0!==f&&f,p=t.size,g=void 0===p?"medium":p,m=me(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return e.createElement(on,pe({className:k(a.root,s,"default"!==c&&a["color".concat(an(c))],d&&a.disabled,"small"===g&&a["size".concat(an(g))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!h,disabled:d,ref:n},m),e.createElement("span",{className:a.label},i))}));const un=Dt((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Ze(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Ze(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Ze(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(sn);var cn=[0,1,2,3,4,5,6,7,8,9,10],ln=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var fn=e.forwardRef((function(t,n){var r=t.alignContent,o=void 0===r?"stretch":r,i=t.alignItems,a=void 0===i?"stretch":i,s=t.classes,u=t.className,c=t.component,l=void 0===c?"div":c,d=t.container,f=void 0!==d&&d,h=t.direction,p=void 0===h?"row":h,g=t.item,m=void 0!==g&&g,v=t.justify,y=void 0===v?"flex-start":v,b=t.lg,w=void 0!==b&&b,E=t.md,x=void 0!==E&&E,_=t.sm,C=void 0!==_&&_,S=t.spacing,A=void 0===S?0:S,O=t.wrap,D=void 0===O?"wrap":O,L=t.xl,T=void 0!==L&&L,M=t.xs,P=void 0!==M&&M,F=t.zeroMinWidth,N=void 0!==F&&F,j=me(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),R=k(s.root,u,f&&[s.container,0!==A&&s["spacing-xs-".concat(String(A))]],m&&s.item,N&&s.zeroMinWidth,"row"!==p&&s["direction-xs-".concat(String(p))],"wrap"!==D&&s["wrap-xs-".concat(String(D))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==o&&s["align-content-xs-".concat(String(o))],"flex-start"!==y&&s["justify-xs-".concat(String(y))],!1!==P&&s["grid-xs-".concat(String(P))],!1!==C&&s["grid-sm-".concat(String(C))],!1!==x&&s["grid-md-".concat(String(x))],!1!==w&&s["grid-lg-".concat(String(w))],!1!==T&&s["grid-xl-".concat(String(T))]);return e.createElement(l,pe({className:R,ref:n},j))})),hn=Dt((function(e){return pe({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return cn.forEach((function(t){var r=e.spacing(t);0!==r&&(n["spacing-".concat("xs","-").concat(t)]={margin:"-".concat(dn(r,2)),width:"calc(100% + ".concat(dn(r),")"),"& > $item":{padding:dn(r,2)}})})),n}(e),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};ln.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?pe(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(fn);const pn=hn,gn=window["material-ui"].DialogActions;var mn=f.n(gn);const vn=window["material-ui"].DialogContent;var yn=f.n(vn);const bn=window["material-ui"].Dialog;var wn=f.n(bn);const En=window["material-ui"].Popover;var xn=f.n(En);const _n=window["material-ui"].TextField;var Cn=f.n(_n);const Sn=window["material-ui"].InputAdornment;var An=f.n(Sn),kn=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this)._state=null,n._del=!1,n._handleChange=function(e){var t=n.state.value,r=e.target.value,o=e.target,i=r.length>t.length,a=n._del,s=t===n.props.format(r);n.setState({value:r,local:!0},(function(){var e=o.selectionStart,u=n.props.refuse||/[^\d]+/g,c=r.substr(0,e).replace(u,"");if(n._state={input:o,before:c,op:i,di:a&&s,del:a},n.props.replace&&n.props.replace(t)&&i&&!s){for(var l=-1,d=0;d!==c.length;++d)l=Math.max(l,r.toLowerCase().indexOf(c[d].toLowerCase(),l+1));var f=r.substr(l+1).replace(u,"")[0];l=r.indexOf(f,l+1),r=""+r.substr(0,l)+r.substr(l+1)}var h=n.props.format(r);t===h?n.setState({value:r}):n.props.onChange(h)}))},n._hKD=function(e){"Delete"===e.code&&(n._del=!0)},n._hKU=function(e){"Delete"===e.code&&(n._del=!1)},n.state={value:t.value,local:!0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.getDerivedStateFromProps=function(e,t){return{value:t.local?t.value:e.value,local:!1}};var o=r.prototype;return o.render=function(){var e=this._handleChange,t=this.state.value;return(0,this.props.children)({value:t,onChange:e})},o.componentWillUnmount=function(){document.removeEventListener("keydown",this._hKD),document.removeEventListener("keyup",this._hKU)},o.componentDidMount=function(){document.addEventListener("keydown",this._hKD),document.addEventListener("keyup",this._hKU)},o.componentDidUpdate=function(){var e=this._state;if(e){for(var t=this.state.value,n=-1,r=0;r!==e.before.length;++r)n=Math.max(n,t.toLowerCase().indexOf(e.before[r].toLowerCase(),n+1));if(this.props.replace&&(e.op||e.del&&!e.di))for(;t[n+1]&&(this.props.refuse||/[^\d]+/).test(t[n+1]);)n+=1;e.input.selectionStart=e.input.selectionEnd=n+1+(e.di?1:0)}this._state=null},r}(e.Component);const On=window["material-ui"].Tab;var Dn=f.n(On);const Ln=window["material-ui"].Tabs;var Tn=f.n(Ln);const Mn=window["material-ui"].Paper;var Pn=f.n(Mn),Fn=(0,e.createContext)(null),Nn=function(t){var n=t.utils,r=t.children,o=t.locale,i=t.libInstance,a=(0,e.useMemo)((function(){return new n({locale:o,moment:i})}),[n,i,o]);return(0,e.createElement)(Fn.Provider,{value:a,children:r})};function jn(){var t=(0,e.useContext)(Fn);return function(e){if(!e)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.")}(t),t}var Rn=(0,r.makeStyles)((function(e){var t="light"===e.palette.type?e.palette.primary.contrastText:e.palette.getContrastText(e.palette.background.default);return{toolbarTxt:{color:(0,r.fade)(t,.54)},toolbarBtnSelected:{color:t}}}),{name:"MuiPickersToolbarText"}),In=function(t){var n,r=t.selected,o=t.label,i=t.className,a=void 0===i?null:i,s=S(t,["selected","label","className"]),u=Rn();return(0,e.createElement)(D(),C({children:o,className:k(u.toolbarTxt,a,(n={},n[u.toolbarBtnSelected]=r,n))},s))},Bn=function(t){var n=t.classes,r=t.className,o=void 0===r?null:r,i=t.label,a=t.selected,s=t.variant,u=t.align,c=t.typographyClassName,l=S(t,["classes","className","label","selected","variant","align","typographyClassName"]);return(0,e.createElement)(T(),C({variant:"text",className:k(n.toolbarBtn,o)},l),(0,e.createElement)(In,{align:u,className:c,variant:s,label:i,selected:a}))};Bn.defaultProps={className:""};var Gn=(0,r.createStyles)({toolbarBtn:{padding:0,minWidth:"16px",textTransform:"none"}}),zn=(0,r.withStyles)(Gn,{name:"MuiPickersToolbarButton"})(Bn),Un=(0,r.makeStyles)((function(e){return{toolbar:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:100,backgroundColor:"light"===e.palette.type?e.palette.primary.main:e.palette.background.default},toolbarLandscape:{height:"auto",maxWidth:150,padding:8,justifyContent:"flex-start"}}}),{name:"MuiPickersToolbar"}),Wn=function(t){var n,r=t.children,o=t.isLandscape,i=t.className,a=void 0===i?null:i,s=S(t,["children","isLandscape","className"]),u=Un();return(0,e.createElement)(P(),C({className:k(u.toolbar,(n={},n[u.toolbarLandscape]=o,n),a)},s),r)};function Hn(e,t){return Array.isArray(t)?t.every((function(t){return-1!==e.indexOf(t)})):-1!==e.indexOf(t)}var qn=function(e){return 1===e.length&&"year"===e[0]},Vn=function(e){return 2===e.length&&Hn(e,"month")&&Hn(e,"year")},Yn=(0,r.makeStyles)({toolbar:{flexDirection:"column",alignItems:"flex-start"},toolbarLandscape:{padding:16},dateLandscape:{marginRight:16}},{name:"MuiPickersDatePickerRoot"}),Kn=function(t){var n,r,o=t.date,i=t.views,a=t.setOpenView,s=t.isLandscape,u=t.openView,c=jn(),l=Yn(),d=(0,e.useMemo)((function(){return qn(i)}),[i]),f=(0,e.useMemo)((function(){return Vn(i)}),[i]);return(0,e.createElement)(Wn,{isLandscape:s,className:k((n={},n[l.toolbar]=!d,n[l.toolbarLandscape]=s,n))},(0,e.createElement)(zn,{variant:d?"h3":"subtitle1",onClick:function(){return a("year")},selected:"year"===u,label:c.getYearText(o)}),!d&&!f&&(0,e.createElement)(zn,{variant:"h4",selected:"date"===u,onClick:function(){return a("date")},align:s?"left":"center",label:c.getDatePickerHeaderText(o),className:k((r={},r[l.dateLandscape]=s,r))}),f&&(0,e.createElement)(zn,{variant:"h4",onClick:function(){return a("month")},selected:"month"===u,label:c.getMonthText(o)}))},$n=((0,o.oneOfType)([o.object,o.string,o.number,(0,o.instanceOf)(Date)]),(0,o.oneOf)(["year","month","day"]),{ampm:!0,invalidDateMessage:"Invalid Time Format"}),Zn={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),invalidDateMessage:"Invalid Date Format",minDateMessage:"Date should not be before minimal date",maxDateMessage:"Date should not be after maximal date",allowKeyboardControl:!0},Xn=C({},$n,Zn,{showTabs:!0}),Qn=(0,r.makeStyles)((function(e){return{day:{width:36,height:36,fontSize:e.typography.caption.fontSize,margin:"0 2px",color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium,padding:0},hidden:{opacity:0,pointerEvents:"none"},current:{color:e.palette.primary.main,fontWeight:600},daySelected:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{backgroundColor:e.palette.primary.main}},dayDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersDay"}),Jn=function(t){var n,r=t.children,o=t.disabled,i=t.hidden,a=t.current,s=t.selected,u=S(t,["children","disabled","hidden","current","selected"]),c=Qn(),l=k(c.day,((n={})[c.hidden]=i,n[c.current]=a,n[c.daySelected]=s,n[c.dayDisabled]=o,n));return(0,e.createElement)(N(),C({className:l,tabIndex:i||o?-1:0},u),(0,e.createElement)(D(),{variant:"body2",color:"inherit"},r))};Jn.displayName="Day",Jn.defaultProps={disabled:!1,hidden:!1,current:!1,selected:!1};var er=function(t){var n=t.children,r=t.value,o=t.disabled,i=t.onSelect,a=t.dayInCurrentMonth,s=S(t,["children","value","disabled","onSelect","dayInCurrentMonth"]),u=(0,e.useCallback)((function(){return i(r)}),[i,r]);return(0,e.createElement)("div",C({role:"presentation",onClick:a&&!o?u:void 0,onKeyPress:a&&!o?u:void 0},s),n)},tr=(0,r.makeStyles)((function(e){var t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{transitionContainer:{display:"block",position:"relative","& > *":{position:"absolute",top:0,right:0,left:0}},"slideEnter-left":{willChange:"transform",transform:"translate(100%)"},"slideEnter-right":{willChange:"transform",transform:"translate(-100%)"},slideEnterActive:{transform:"translate(0%)",transition:t},slideExit:{transform:"translate(0%)"},"slideExitActiveLeft-left":{willChange:"transform",transform:"translate(-200%)",transition:t},"slideExitActiveLeft-right":{willChange:"transform",transform:"translate(200%)",transition:t}}}),{name:"MuiPickersSlideTransition"}),nr=function(t){var n=t.children,r=t.transKey,o=t.slideDirection,i=t.className,a=void 0===i?null:i,s=tr(),u={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+o],exitActive:s["slideExitActiveLeft-"+o]};return(0,e.createElement)(V,{className:k(s.transitionContainer,a),childFactory:function(t){return(0,e.cloneElement)(t,{classNames:u})}},(0,e.createElement)(ce,{mountOnEnter:!0,unmountOnExit:!0,key:r+o,timeout:350,classNames:u,children:n}))},rr=(0,r.makeStyles)((function(e){return{switchHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:e.spacing(.5),marginBottom:e.spacing(1)},transitionContainer:{width:"100%",overflow:"hidden",height:23},iconButton:{zIndex:1,backgroundColor:e.palette.background.paper},daysHeader:{display:"flex",justifyContent:"center",alignItems:"center",maxHeight:16},dayLabel:{width:36,margin:"0 2px",textAlign:"center",color:e.palette.text.hint}}}),{name:"MuiPickersCalendarHeader"}),or=function(t){var n=t.currentMonth,o=t.onMonthChange,i=t.leftArrowIcon,a=t.rightArrowIcon,s=t.leftArrowButtonProps,u=t.rightArrowButtonProps,c=t.disablePrevMonth,l=t.disableNextMonth,d=t.slideDirection,f=jn(),h=rr(),p="rtl"===(0,r.useTheme)().direction;return(0,e.createElement)("div",null,(0,e.createElement)("div",{className:h.switchHeader},(0,e.createElement)(N(),C({},s,{disabled:c,onClick:function(){return o(f.getPreviousMonth(n),"right")},className:h.iconButton}),p?a:i),(0,e.createElement)(nr,{slideDirection:d,transKey:n.toString(),className:h.transitionContainer},(0,e.createElement)(D(),{align:"center",variant:"body1"},f.getCalendarHeaderText(n))),(0,e.createElement)(N(),C({},u,{disabled:l,onClick:function(){return o(f.getNextMonth(n),"left")},className:h.iconButton}),p?i:a)),(0,e.createElement)("div",{className:h.daysHeader},f.getWeekdays().map((function(t,n){return(0,e.createElement)(D(),{key:n,variant:"caption",className:h.dayLabel},t)}))))};or.displayName="CalendarHeader",or.defaultProps={leftArrowIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),rightArrowIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),disablePrevMonth:!1,disableNextMonth:!1};var ir="undefined"==typeof window?e.useEffect:e.useLayoutEffect;function ar(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function sr(t,n){var r=(0,e.useRef)(n);ir((function(){r.current=n})),(0,e.useEffect)((function(){if(t){var e=function(e){ar(e,n)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}}),[t,n])}var ur,cr,lr=function(t){var n=t.onKeyDown;return(0,e.useEffect)((function(){return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}}),[n]),null},dr=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={slideDirection:"left",currentMonth:n.props.utils.startOfMonth(n.props.date),loadingQueue:0},n.pushToLoadingQueue=function(){var e=n.state.loadingQueue+1;n.setState({loadingQueue:e})},n.popFromLoadingQueue=function(){var e=n.state.loadingQueue;e=e<=0?0:e-1,n.setState({loadingQueue:e})},n.handleChangeMonth=function(e,t){if(n.setState({currentMonth:e,slideDirection:t}),n.props.onMonthChange){var r=n.props.onMonthChange(e);r&&(n.pushToLoadingQueue(),r.then((function(){n.popFromLoadingQueue()})))}},n.validateMinMaxDate=function(e){var t=n.props,r=t.minDate,o=t.maxDate,i=t.utils,a=t.disableFuture,s=t.disablePast,u=i.date();return Boolean(a&&i.isAfterDay(e,u)||s&&i.isBeforeDay(e,u)||r&&i.isBeforeDay(e,i.date(r))||o&&i.isAfterDay(e,i.date(o)))},n.shouldDisablePrevMonth=function(){var e=n.props,t=e.utils,r=e.disablePast,o=e.minDate,i=t.date(),a=t.startOfMonth(r&&t.isAfter(i,t.date(o))?i:t.date(o));return!t.isBefore(a,n.state.currentMonth)},n.shouldDisableNextMonth=function(){var e=n.props,t=e.utils,r=e.disableFuture,o=e.maxDate,i=t.date(),a=t.startOfMonth(r&&t.isBefore(i,t.date(o))?i:t.date(o));return!t.isAfter(a,n.state.currentMonth)},n.shouldDisableDate=function(e){var t=n.props.shouldDisableDate;return n.validateMinMaxDate(e)||Boolean(t&&t(e))},n.handleDaySelect=function(e,t){void 0===t&&(t=!0);var r=n.props,o=r.date,i=r.utils;n.props.onChange(i.mergeDateAndTime(e,o),t)},n.moveToDay=function(e){var t=n.props.utils;e&&!n.shouldDisableDate(e)&&(t.getMonth(e)!==t.getMonth(n.state.currentMonth)&&n.handleChangeMonth(t.startOfMonth(e),"left"),n.handleDaySelect(e,!1))},n.handleKeyDown=function(e){var t=n.props,r=t.theme,o=t.date,i=t.utils;ar(e,{ArrowUp:function(){return n.moveToDay(i.addDays(o,-7))},ArrowDown:function(){return n.moveToDay(i.addDays(o,7))},ArrowLeft:function(){return n.moveToDay(i.addDays(o,"ltr"===r.direction?-1:1))},ArrowRight:function(){return n.moveToDay(i.addDays(o,"ltr"===r.direction?1:-1))}})},n.renderWeeks=function(){var t=n.props,r=t.utils,o=t.classes;return r.getWeekArray(n.state.currentMonth).map((function(t){return(0,e.createElement)("div",{key:"week-"+t[0].toString(),className:o.week},n.renderDays(t))}))},n.renderDays=function(t){var r=n.props,o=r.date,i=r.renderDay,a=r.utils,s=a.date(),u=a.startOfDay(o),c=a.getMonth(n.state.currentMonth);return t.map((function(t){var r=n.shouldDisableDate(t),o=a.getMonth(t)===c,l=(0,e.createElement)(Jn,{disabled:r,current:a.isSameDay(t,s),hidden:!o,selected:a.isSameDay(u,t)},a.getDayText(t));return i&&(l=i(t,u,o,l)),(0,e.createElement)(er,{value:t,key:t.toString(),disabled:r,dayInCurrentMonth:o,onSelect:n.handleDaySelect},l)}))},n}return _(n,t),n.getDerivedStateFromProps=function(e,t){var n=e.utils,r=e.date;if(!n.isEqual(r,t.lastDate)){var o=n.getMonth(r),i=t.lastDate||r,a=n.getMonth(i);return{lastDate:r,currentMonth:e.utils.startOfMonth(r),slideDirection:o===a?t.slideDirection:n.isAfterDay(r,i)?"left":"right"}}return null},n.prototype.componentDidMount=function(){var e=this.props,t=e.date,n=e.minDate,r=e.maxDate,o=e.utils,i=e.disablePast,a=e.disableFuture;if(this.shouldDisableDate(t)){var s=function(e){var t=e.date,n=e.utils,r=e.minDate,o=e.maxDate,i=e.disableFuture,a=e.disablePast,s=e.shouldDisableDate,u=n.startOfDay(n.date());a&&n.isBefore(r,u)&&(r=u),i&&n.isAfter(o,u)&&(o=u);var c=t,l=t;for(n.isBefore(t,r)&&(c=n.date(r),l=null),n.isAfter(t,o)&&(l&&(l=n.date(o)),c=null);c||l;){if(c&&n.isAfter(c,o)&&(c=null),l&&n.isBefore(l,r)&&(l=null),c){if(!s(c))return c;c=n.addDays(c,1)}if(l){if(!s(l))return l;l=n.addDays(l,-1)}}return null}({date:t,utils:o,minDate:o.date(n),maxDate:o.date(r),disablePast:Boolean(i),disableFuture:Boolean(a),shouldDisableDate:this.shouldDisableDate});this.handleDaySelect(s,!1)}},n.prototype.render=function(){var t=this.state,n=t.currentMonth,r=t.slideDirection,o=this.props,i=o.classes,a=o.allowKeyboardControl,s=o.leftArrowButtonProps,u=o.leftArrowIcon,c=o.rightArrowButtonProps,l=o.rightArrowIcon,d=o.loadingIndicator||(0,e.createElement)(he(),null);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(lr,{onKeyDown:this.handleKeyDown}),(0,e.createElement)(or,{currentMonth:n,slideDirection:r,onMonthChange:this.handleChangeMonth,leftArrowIcon:u,leftArrowButtonProps:s,rightArrowIcon:l,rightArrowButtonProps:c,disablePrevMonth:this.shouldDisablePrevMonth(),disableNextMonth:this.shouldDisableNextMonth()}),(0,e.createElement)(nr,{slideDirection:r,transKey:n.toString(),className:i.transitionContainer},(0,e.createElement)(e.Fragment,null,this.state.loadingQueue>0&&(0,e.createElement)("div",{className:i.progressContainer},d)||(0,e.createElement)("div",null,this.renderWeeks()))))},n.defaultProps={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),disablePast:!1,disableFuture:!1,allowKeyboardControl:!0},n}(e.Component),fr=(0,r.withStyles)((function(e){return{transitionContainer:{minHeight:216,marginTop:e.spacing(1.5)},progressContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},week:{display:"flex",justifyContent:"center"}}}),{name:"MuiPickersCalendar",withTheme:!0})(((cr=function(t){var n=jn();return(0,e.createElement)(ur,C({utils:n},t))}).displayName="WithUtils("+((ur=dr).displayName||ur.name)+")",cr)),hr=(0,r.makeStyles)((function(e){return{root:{height:40,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none","&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},yearSelected:{margin:"10px 0",fontWeight:e.typography.fontWeightMedium},yearDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersYear"}),pr=function(t){var n,r=t.onSelect,o=t.forwardedRef,i=t.value,a=t.selected,s=t.disabled,u=t.children,c=S(t,["onSelect","forwardedRef","value","selected","disabled","children"]),l=hr(),d=(0,e.useCallback)((function(){return r(i)}),[r,i]);return(0,e.createElement)(D(),C({role:"button",component:"div",tabIndex:s?-1:0,onClick:d,onKeyPress:d,color:a?"primary":void 0,variant:a?"h5":"subtitle1",children:u,ref:o,className:k(l.root,(n={},n[l.yearSelected]=a,n[l.yearDisabled]=s,n))},c))};pr.displayName="Year";var gr=(0,e.forwardRef)((function(t,n){return(0,e.createElement)(pr,C({},t,{forwardedRef:n}))})),mr=310,vr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,ge.makeStyles)(e,pe({defaultTheme:Ot},t))}((function(e){return{staticWrapperRoot:{overflow:"hidden",minWidth:mr,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}}}),{name:"MuiPickersStaticWrapper"}),yr=function(t){var n=t.children,r=vr();return(0,e.createElement)("div",{className:r.staticWrapperRoot,children:n})},br=function(t){var n,r,o=t.children,i=t.classes,a=t.onAccept,s=t.onDismiss,u=t.onClear,c=t.onSetToday,l=t.okLabel,d=t.cancelLabel,f=t.clearLabel,h=t.todayLabel,p=t.clearable,g=t.showTodayButton,m=(t.showTabs,t.wider),v=S(t,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return(0,e.createElement)(wn(),C({role:"dialog",onClose:s,classes:{paper:k(i.dialogRoot,(n={},n[i.dialogRootWider]=m,n))}},v),(0,e.createElement)(yn(),{children:o,className:i.dialog}),(0,e.createElement)(mn(),{classes:{root:k((r={},r[i.withAdditionalAction]=p||g,r))}},p&&(0,e.createElement)(T(),{color:"primary",onClick:u},f),!p&&g&&(0,e.createElement)(T(),{color:"primary",onClick:c},h),d&&(0,e.createElement)(T(),{color:"primary",onClick:s},d),l&&(0,e.createElement)(T(),{color:"primary",onClick:a},l)))};br.displayName="ModalDialog";var wr=(0,r.createStyles)({dialogRoot:{minWidth:mr},dialogRootWider:{},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}}),Er=(0,r.withStyles)(wr,{name:"MuiPickersModal"})(br),xr=function(t){var n=t.open,r=t.children,o=t.okLabel,i=t.cancelLabel,a=t.clearLabel,s=t.todayLabel,u=t.showTodayButton,c=t.clearable,l=t.DialogProps,d=t.showTabs,f=t.wider,h=t.InputComponent,p=t.DateInputProps,g=t.onClear,m=t.onAccept,v=t.onDismiss,y=t.onSetToday,b=S(t,["open","children","okLabel","cancelLabel","clearLabel","todayLabel","showTodayButton","clearable","DialogProps","showTabs","wider","InputComponent","DateInputProps","onClear","onAccept","onDismiss","onSetToday"]);return sr(n,{Enter:m}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,C({},b,p)),(0,e.createElement)(Er,C({wider:f,showTabs:d,open:n,onClear:g,onAccept:m,onDismiss:v,onSetToday:y,clearLabel:a,todayLabel:s,okLabel:o,cancelLabel:i,clearable:c,showTodayButton:u,children:r},l)))};xr.defaultProps={okLabel:"OK",cancelLabel:"Cancel",clearLabel:"Clear",todayLabel:"Today",clearable:!1,showTodayButton:!1};var _r,Cr=(0,r.makeStyles)({popoverPaper:{width:mr,paddingBottom:8},popoverPaperWider:{width:325}},{name:"MuiPickersInlineWrapper"}),Sr=function(t){var n,r=t.open,o=t.wider,i=t.children,a=t.PopoverProps,s=(t.onClear,t.onDismiss),u=(t.onSetToday,t.onAccept),c=(t.showTabs,t.DateInputProps),l=t.InputComponent,d=S(t,["open","wider","children","PopoverProps","onClear","onDismiss","onSetToday","onAccept","showTabs","DateInputProps","InputComponent"]),f=(0,e.useRef)(),h=Cr();return sr(r,{Enter:u}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,C({},d,c,{inputRef:f})),(0,e.createElement)(xn(),C({open:r,onClose:s,anchorEl:f.current,classes:{paper:k(h.popoverPaper,(n={},n[h.popoverPaperWider]=o,n))},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:i},a)))},Ar=(0,e.createContext)(null),kr=function(t){var n=t.variant,r=S(t,["variant"]),o=function(e){switch(e){case"inline":return Sr;case"static":return yr;default:return xr}}(n);return(0,e.createElement)(Ar.Provider,{value:n||"dialog"},(0,e.createElement)(o,C({},r)))},Or=(0,r.makeStyles)({container:{height:300,overflowY:"auto"}},{name:"MuiPickersYearSelection"}),Dr=function(t){var n=t.date,r=t.onChange,o=t.onYearChange,i=t.minDate,a=t.maxDate,s=t.disablePast,u=t.disableFuture,c=t.animateYearScrolling,l=jn(),d=Or(),f=(0,e.useContext)(Ar),h=(0,e.useRef)(null);(0,e.useEffect)((function(){h.current&&h.current.scrollIntoView&&h.current.scrollIntoView({block:"static"===f?"nearest":"center",behavior:c?"smooth":"auto"})}),[]);var p=l.getYear(n),g=(0,e.useCallback)((function(e){var t=l.setYear(n,e);o&&o(t),r(t,!0)}),[n,r,o,l]);return(0,e.createElement)("div",{className:d.container},l.getYearRange(i,a).map((function(t){var n=l.getYear(t),r=n===p;return(0,e.createElement)(gr,{key:l.getYearText(t),selected:r,value:n,onSelect:g,ref:r?h:void 0,disabled:Boolean(s&&l.isBeforeYear(t,l.date())||u&&l.isAfterYear(t,l.date()))},l.getYearText(t))})))};!function(e){e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds"}(_r||(_r={}));var Lr=_r,Tr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={toAnimateTransform:!1,previousType:void 0},e.getAngleStyle=function(){var t=e.props,n=t.value,r=t.isInner,o=t.type,i=360/(o===Lr.HOURS?12:60)*n;return o===Lr.HOURS&&n>12&&(i-=360),{height:r?"26%":"40%",transform:"rotateZ("+i+"deg)"}},e}return _(n,t),n.prototype.render=function(){var t,n,r=this.props,o=r.classes,i=r.hasSelected;return(0,e.createElement)("div",{style:this.getAngleStyle(),className:k(o.pointer,(t={},t[o.animateTransform]=this.state.toAnimateTransform,t))},(0,e.createElement)("div",{className:k(o.thumb,(n={},n[o.noPoint]=i,n))}))},n.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}},n}(e.Component),Mr=(0,r.withStyles)((function(e){return(0,r.createStyles)({pointer:{width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},animateTransform:{transition:e.transitions.create(["transform","height"])},thumb:{width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"100%",position:"absolute",top:-21,left:-15,border:"14px solid "+e.palette.primary.main,boxSizing:"content-box"},noPoint:{backgroundColor:e.palette.primary.main}})}),{name:"MuiPickersClockPointer"})(Tr),Pr=130,Fr=130,Nr=Pr-Pr,jr=0-Fr,Rr=function(e,t,n){var r=t-Pr,o=n-Fr,i=57.29577951308232*(Math.atan2(Nr,jr)-Math.atan2(r,o));i=Math.round(i/e)*e,i%=360;var a=Math.floor(i/e)||0,s=Math.pow(r,2)+Math.pow(o,2);return{value:a,distance:Math.sqrt(s)}},Ir=function(e,t){return t.getHours(e)>=12?"pm":"am"},Br=function(e,t,n,r){if(n&&(r.getHours(e)>=12?"pm":"am")!==t){var o="am"===t?r.getHours(e)-12:r.getHours(e)+12;return r.setHours(e,o)}return e},Gr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMoving=!1,e.handleTouchMove=function(t){e.isMoving=!0,e.setTime(t)},e.handleTouchEnd=function(t){e.isMoving&&(e.setTime(t,!0),e.isMoving=!1)},e.handleMove=function(t){t.preventDefault(),t.stopPropagation(),(void 0===t.buttons?1===t.nativeEvent.which:1===t.buttons)&&e.setTime(t.nativeEvent,!1)},e.handleMouseUp=function(t){e.isMoving&&(e.isMoving=!1),e.setTime(t.nativeEvent,!0)},e.hasSelected=function(){var t=e.props,n=t.type,r=t.value;return n===Lr.HOURS||r%5==0},e}return _(n,t),n.prototype.setTime=function(e,t){void 0===t&&(t=!1);var n=e.offsetX,r=e.offsetY;if(void 0===n){var o=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-o.left,r=e.changedTouches[0].clientY-o.top}var i=this.props.type===Lr.SECONDS||this.props.type===Lr.MINUTES?function(e,t,n){return void 0===n&&(n=1),Rr(6*n,e,t).value*n%60}(n,r,this.props.minutesStep):function(e,t,n){var r=Rr(30,e,t),o=r.value,i=r.distance;return o=o||12,n?o%=12:i<90&&(o+=12,o%=24),o}(n,r,Boolean(this.props.ampm));this.props.onChange(i,t)},n.prototype.render=function(){var t=this.props,n=t.classes,r=t.value,o=t.children,i=t.type,a=!t.ampm&&i===Lr.HOURS&&(r<1||r>12);return(0,e.createElement)("div",{className:n.container},(0,e.createElement)("div",{className:n.clock},(0,e.createElement)("div",{role:"menu",tabIndex:-1,className:n.squareMask,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMove}),(0,e.createElement)("div",{className:n.pin}),(0,e.createElement)(Mr,{type:i,value:r,isInner:a,hasSelected:this.hasSelected()}),o))},n.defaultProps={ampm:!1,minutesStep:1},n}(e.Component),zr=(0,r.withStyles)((function(e){return(0,r.createStyles)({container:{display:"flex",justifyContent:"center",alignItems:"flex-end",margin:e.spacing(2)+"px 0 "+e.spacing(1)+"px"},clock:{backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:260,width:260,position:"relative",pointerEvents:"none",zIndex:1},squareMask:{width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:"none",touchActions:"none",userSelect:"none","&:active":{cursor:"move"}},pin:{width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),{name:"MuiPickersClock"})(Gr),Ur={0:[0,40],1:[55,19.6],2:[94.4,59.5],3:[109,114],4:[94.4,168.5],5:[54.5,208.4],6:[0,223],7:[-54.5,208.4],8:[-94.4,168.5],9:[-109,114],10:[-94.4,59.5],11:[-54.5,19.6],12:[0,5],13:[36.9,49.9],14:[64,77],15:[74,114],16:[64,151],17:[37,178],18:[0,188],19:[-37,178],20:[-64,151],21:[-74,114],22:[-64,77],23:[-37,50]},Wr=(0,r.makeStyles)((function(e){var t=e.spacing(4);return{clockNumber:{width:t,height:32,userSelect:"none",position:"absolute",left:"calc(50% - "+t/2+"px)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:"light"===e.palette.type?e.palette.text.primary:e.palette.text.hint},clockNumberSelected:{color:e.palette.primary.contrastText}}}),{name:"MuiPickersClockNumber"}),Hr=function(t){var n,r=t.selected,o=t.label,i=t.index,a=t.isInner,s=Wr(),u=k(s.clockNumber,((n={})[s.clockNumberSelected]=r,n)),c=(0,e.useMemo)((function(){var e=Ur[i];return{transform:"translate("+e[0]+"px, "+e[1]+"px"}}),[i]);return(0,e.createElement)(D(),{component:"span",className:u,variant:a?"body2":"body1",style:c,children:o})},qr=function(t){for(var n=t.ampm,r=t.utils,o=t.date,i=r.getHours(o),a=[],s=n?12:23,u=function(e){return n?12===e?12===i||0===i:i===e||i-12===e:i===e},c=n?1:0;c<=s;c+=1){var l=c.toString();0===c&&(l="00");var d={index:c,label:r.formatNumber(l),selected:u(c),isInner:!n&&(0===c||c>12)};a.push((0,e.createElement)(Hr,C({key:c},d)))}return a},Vr=function(t){var n=t.value,r=t.utils.formatNumber;return[(0,e.createElement)(Hr,{label:r("00"),selected:0===n,index:12,key:12}),(0,e.createElement)(Hr,{label:r("05"),selected:5===n,index:1,key:1}),(0,e.createElement)(Hr,{label:r("10"),selected:10===n,index:2,key:2}),(0,e.createElement)(Hr,{label:r("15"),selected:15===n,index:3,key:3}),(0,e.createElement)(Hr,{label:r("20"),selected:20===n,index:4,key:4}),(0,e.createElement)(Hr,{label:r("25"),selected:25===n,index:5,key:5}),(0,e.createElement)(Hr,{label:r("30"),selected:30===n,index:6,key:6}),(0,e.createElement)(Hr,{label:r("35"),selected:35===n,index:7,key:7}),(0,e.createElement)(Hr,{label:r("40"),selected:40===n,index:8,key:8}),(0,e.createElement)(Hr,{label:r("45"),selected:45===n,index:9,key:9}),(0,e.createElement)(Hr,{label:r("50"),selected:50===n,index:10,key:10}),(0,e.createElement)(Hr,{label:r("55"),selected:55===n,index:11,key:11})]},Yr=function(t){var n=t.type,r=t.onHourChange,o=t.onMinutesChange,i=t.onSecondsChange,a=t.ampm,s=t.date,u=t.minutesStep,c=jn(),l=(0,e.useMemo)((function(){switch(n){case Lr.HOURS:return{value:c.getHours(s),children:qr({date:s,utils:c,ampm:Boolean(a)}),onChange:function(e,t){var n=Ir(s,c),o=Br(c.setHours(s,e),n,Boolean(a),c);r(o,t)}};case Lr.MINUTES:var e=c.getMinutes(s);return{value:e,children:Vr({value:e,utils:c}),onChange:function(e,t){var n=c.setMinutes(s,e);o(n,t)}};case Lr.SECONDS:var t=c.getSeconds(s);return{value:t,children:Vr({value:t,utils:c}),onChange:function(e,t){var n=c.setSeconds(s,e);i(n,t)}};default:throw new Error("You must provide the type for TimePickerView")}}),[a,s,r,o,i,n,c]);return(0,e.createElement)(zr,C({type:n,ampm:a,minutesStep:u},l))};Yr.displayName="TimePickerView",Yr.defaultProps={ampm:!0,minutesStep:1},(0,e.memo)(Yr);var Kr=(0,r.makeStyles)((function(e){return{root:{flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none",height:75,transition:e.transitions.create("font-size",{duration:"100ms"}),"&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},monthSelected:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium},monthDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersMonth"}),$r=function(t){var n,r=t.selected,o=t.onSelect,i=t.disabled,a=t.value,s=t.children,u=S(t,["selected","onSelect","disabled","value","children"]),c=Kr(),l=(0,e.useCallback)((function(){o(a)}),[o,a]);return(0,e.createElement)(D(),C({role:"button",component:"div",className:k(c.root,(n={},n[c.monthSelected]=r,n[c.monthDisabled]=i,n)),tabIndex:i?-1:0,onClick:l,onKeyPress:l,color:r?"primary":void 0,variant:r?"h5":"subtitle1",children:s},u))};$r.displayName="Month";var Zr=(0,r.makeStyles)({container:{width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch"}},{name:"MuiPickersMonthSelection"}),Xr=function(t){var n=t.disablePast,r=t.disableFuture,o=t.minDate,i=t.maxDate,a=t.date,s=t.onMonthChange,u=t.onChange,c=jn(),l=Zr(),d=c.getMonth(a),f=function(e){var t=c.date(),a=c.date(o),s=c.date(i),u=c.startOfMonth(n&&c.isAfter(t,a)?t:a),l=c.startOfMonth(r&&c.isBefore(t,s)?t:s),d=c.isBefore(e,u),f=c.isAfter(e,l);return d||f},h=(0,e.useCallback)((function(e){var t=c.setMonth(a,e);u(t,!0),s&&s(t)}),[a,u,s,c]);return(0,e.createElement)("div",{className:l.container},c.getMonthArray(a).map((function(t){var n=c.getMonth(t),r=c.format(t,"MMM");return(0,e.createElement)($r,{key:r,value:n,selected:n===d,onSelect:h,disabled:f(t)},r)})))},Qr=function(){return"undefined"!=typeof window&&window.screen&&window.orientation&&90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait"},Jr={year:Dr,month:Xr,date:fr,hours:Yr,minutes:Yr,seconds:Yr},eo=(0,r.makeStyles)({container:{display:"flex",flexDirection:"column"},containerLandscape:{flexDirection:"row"},pickerView:{overflowX:"hidden",minHeight:305,minWidth:mr,maxWidth:325,display:"flex",flexDirection:"column",justifyContent:"center"},pickerViewLandscape:{padding:"0 8px"}},{name:"MuiPickersBasePicker"}),to=function(t){var n,r,o=t.date,i=t.ampm,a=t.views,s=t.disableToolbar,u=t.disablePast,c=t.disableFuture,l=t.hideTabs,d=t.onChange,f=t.openTo,h=t.minutesStep,p=t.dateRangeIcon,g=t.timeIcon,m=t.minDate,v=t.maxDate,y=t.animateYearScrolling,b=t.leftArrowIcon,w=t.rightArrowIcon,E=t.renderDay,x=t.shouldDisableDate,_=t.allowKeyboardControl,S=t.onMonthChange,A=t.onYearChange,O=t.leftArrowButtonProps,D=t.rightArrowButtonProps,L=t.ToolbarComponent,T=t.loadingIndicator,M=t.orientation,P=jn(),F=eo(),N=function(t){var n=(0,e.useState)(Qr()),r=n[0],o=n[1],i=(0,e.useCallback)((function(){return o(Qr())}),[]);return ir((function(){return window.addEventListener("orientationchange",i),function(){return window.removeEventListener("orientationchange",i)}}),[i]),"landscape"===(t||r)}(M),j=function(t,n,r){var o=(0,e.useState)(n&&Hn(t,n)?n:t[0]),i=o[0],a=o[1],s=(0,e.useCallback)((function(e,n){var o=t[t.indexOf(i)+1];if(n&&o)return r(e,!1),void a(o);r(e,Boolean(n))}),[r,i,t]);return{handleChangeAndOpenNext:s,openView:i,setOpenView:a}}(a,f,d),R=j.openView,I=j.setOpenView,B=j.handleChangeAndOpenNext,G=(0,e.useMemo)((function(){return P.date(m)}),[m,P]),z=(0,e.useMemo)((function(){return P.date(v)}),[v,P]);return(0,e.createElement)("div",{className:k(F.container,(n={},n[F.containerLandscape]=N,n))},!s&&(0,e.createElement)(L,C({date:o,onChange:d,setOpenView:I,openView:R,hideTabs:l,dateRangeIcon:p,timeIcon:g,isLandscape:N},t)),(0,e.createElement)("div",{className:k(F.pickerView,(r={},r[F.pickerViewLandscape]=N,r))},"year"===R&&(0,e.createElement)(Dr,{date:o,onChange:B,minDate:G,maxDate:z,disablePast:u,disableFuture:c,onYearChange:A,animateYearScrolling:y}),"month"===R&&(0,e.createElement)(Xr,{date:o,onChange:B,minDate:G,maxDate:z,disablePast:u,disableFuture:c,onMonthChange:S}),"date"===R&&(0,e.createElement)(fr,{date:o,onChange:B,onMonthChange:S,disablePast:u,disableFuture:c,minDate:G,maxDate:z,leftArrowIcon:b,leftArrowButtonProps:O,rightArrowIcon:w,rightArrowButtonProps:D,renderDay:E,shouldDisableDate:x,allowKeyboardControl:_,loadingIndicator:T}),("hours"===R||"minutes"===R||"seconds"===R)&&(0,e.createElement)(Yr,{date:o,ampm:i,type:R,minutesStep:h,onHourChange:B,onMinutesChange:B,onSecondsChange:B})))};to.defaultProps=C({},Zn,{views:Object.keys(Jr)});var no=function(e,t,n,r,o){var i=o.invalidLabel,a=o.emptyLabel,s=o.labelFunc,u=n.date(e);return s?s(r?null:u,i):r?a||"":n.isValid(u)?n.format(u,t):i},ro=function(e,t,n){return t?n:e.endOfDay(n)},oo=function(e,t,n){return t?n:e.startOfDay(n)};function io(e,t,n){return void 0===t&&(t=!0),e||(t?n["12h"]:n["24h"])}function ao(t,n){var r=t.autoOk,o=t.disabled,i=t.onAccept,a=t.onChange,s=t.onError,u=t.value,c=t.variant,l=jn(),d=function(t){var n,r=t.open,o=t.onOpen,i=t.onClose,a=null;return null==r&&(r=(n=(0,e.useState)(!1))[0],a=n[1]),{isOpen:r,setIsOpen:(0,e.useCallback)((function(e){return a&&a(e),e?o&&o():i&&i()}),[o,i,a])}}(t),f=d.isOpen,h=d.setIsOpen,p=function(t,n){return{date:function(t,n){var r=n.value,o=n.initialFocusedDate,i=(0,e.useRef)(t.date()),a=t.date(r||o||i.current);return a&&t.isValid(a)?a:i.current}(jn(),t),format:t.format||n.getDefaultFormat()}}(t,n),g=p.date,m=p.format,v=(0,e.useState)(g),y=v[0],b=v[1];(0,e.useEffect)((function(){f||l.isEqual(y,g)||b(g)}),[g,f,y,l]);var w=(0,e.useCallback)((function(e){h(!1),a(e),i&&i(e)}),[i,a,h]),E=(0,e.useMemo)((function(){return{format:m,open:f,onClear:function(){return w(null)},onAccept:function(){return w(y)},onSetToday:function(){return b(l.date())},onDismiss:function(){h(!1)}}}),[w,m,f,y,h,l]),x=(0,e.useMemo)((function(){return{date:y,onChange:function(e,t){void 0===t&&(t=!0),b(e),"inline"!==c&&"static"!==c||a(e),t&&r&&w(e)}}}),[w,r,a,y,c]),_=function(e,t,n){var r=n.maxDate,o=n.minDate,i=n.disablePast,a=n.disableFuture,s=n.maxDateMessage,u=n.minDateMessage,c=n.invalidDateMessage,l=n.strictCompareDates,d=t.date(e);return null===e?"":t.isValid(e)?r&&t.isAfter(d,ro(t,!!l,t.date(r)))||a&&t.isAfter(d,ro(t,!!l,t.date()))?s:o&&t.isBefore(d,oo(t,!!l,t.date(o)))||i&&t.isBefore(d,oo(t,!!l,t.date()))?u:"":c}(u,l,t);(0,e.useEffect)((function(){_&&s&&s(_,u)}),[s,_,u]);var C=no(g,m,l,null===u,t),S={pickerProps:x,inputProps:(0,e.useMemo)((function(){return{inputValue:C,validationError:_,onClick:function(){return!o&&h(!0)}}}),[o,C,h,_]),wrapperProps:E};return(0,e.useDebugValue)(S),S}var so=function(t){var n=t.inputValue,r=t.inputVariant,o=t.validationError,i=t.InputProps,a=t.TextFieldComponent,s=void 0===a?Cn():a,u=S(t,["inputValue","inputVariant","validationError","InputProps","TextFieldComponent"]),c=(0,e.useMemo)((function(){return C({},i,{readOnly:!0})}),[i]);return(0,e.createElement)(s,C({error:Boolean(o),helperText:o},u,{value:n,variant:r,InputProps:c}))};function uo(t){var n=t.useOptions,r=t.getCustomProps,o=t.DefaultToolbarComponent;return function(t){var i=t.allowKeyboardControl,a=t.ampm,s=t.hideTabs,u=t.animateYearScrolling,c=(t.autoOk,t.disableFuture),l=t.disablePast,d=(t.format,t.forwardedRef,t.initialFocusedDate,t.invalidDateMessage,t.labelFunc,t.leftArrowIcon),f=t.leftArrowButtonProps,h=t.maxDate,p=(t.maxDateMessage,t.minDate),g=(t.onOpen,t.onClose,t.minDateMessage,t.strictCompareDates),m=t.minutesStep,v=(t.onAccept,t.onChange,t.onMonthChange),y=t.onYearChange,b=t.renderDay,w=t.views,E=t.openTo,x=t.rightArrowIcon,_=t.rightArrowButtonProps,A=t.shouldDisableDate,k=t.dateRangeIcon,O=(t.emptyLabel,t.invalidLabel,t.timeIcon),D=(t.value,t.variant),L=t.orientation,T=t.disableToolbar,M=t.loadingIndicator,P=t.ToolbarComponent,F=void 0===P?o:P,N=S(t,["allowKeyboardControl","ampm","hideTabs","animateYearScrolling","autoOk","disableFuture","disablePast","format","forwardedRef","initialFocusedDate","invalidDateMessage","labelFunc","leftArrowIcon","leftArrowButtonProps","maxDate","maxDateMessage","minDate","onOpen","onClose","minDateMessage","strictCompareDates","minutesStep","onAccept","onChange","onMonthChange","onYearChange","renderDay","views","openTo","rightArrowIcon","rightArrowButtonProps","shouldDisableDate","dateRangeIcon","emptyLabel","invalidLabel","timeIcon","value","variant","orientation","disableToolbar","loadingIndicator","ToolbarComponent"]),j=r?r(t):{},R=ao(t,n(t)),I=R.pickerProps,B=R.inputProps,G=R.wrapperProps;return(0,e.createElement)(kr,C({variant:D,InputComponent:so,DateInputProps:B},G,j,N),(0,e.createElement)(to,C({},I,{orientation:L,disableToolbar:T,ToolbarComponent:F,hideTabs:s,ampm:a,views:w,openTo:E,allowKeyboardControl:i,minutesStep:m,animateYearScrolling:u,disableFuture:c,disablePast:l,leftArrowIcon:d,leftArrowButtonProps:f,maxDate:h,minDate:p,strictCompareDates:g,onMonthChange:v,onYearChange:y,renderDay:b,dateRangeIcon:k,timeIcon:O,rightArrowIcon:x,rightArrowButtonProps:_,shouldDisableDate:A,loadingIndicator:M})))}}so.displayName="PureDateInput";var co=function(t){var n=t.inputValue,r=t.inputVariant,o=t.validationError,i=t.KeyboardButtonProps,a=t.InputAdornmentProps,s=t.onClick,u=t.onChange,c=t.InputProps,l=t.mask,d=t.maskChar,f=void 0===d?"_":d,h=t.refuse,p=void 0===h?/[^\d]+/gi:h,g=t.format,m=t.keyboardIcon,v=t.disabled,y=t.rifmFormatter,b=t.TextFieldComponent,w=void 0===b?Cn():b,E=S(t,["inputValue","inputVariant","validationError","KeyboardButtonProps","InputAdornmentProps","onClick","onChange","InputProps","mask","maskChar","refuse","format","keyboardIcon","disabled","rifmFormatter","TextFieldComponent"]),x=l||function(e,t){return e.replace(/[a-z]/gi,t)}(g,f),_=(0,e.useCallback)(function(e,t,n){return function(r){if(""===r)return r;for(var o="",i=r.replace(n,""),a=0,s=0;a<e.length;){var u=e[a];u===t&&s<i.length?(o+=i[s],s+=1):o+=u,a+=1}return o}}(x,f,p),[l,f]),A=a&&a.position?a.position:"end";return(0,e.createElement)(kn,{value:n,onChange:function(e){u(""===e||e===x?null:e)},refuse:p,format:y||_},(function(t){var n,u=t.onChange,l=t.value;return(0,e.createElement)(w,C({disabled:v,error:Boolean(o),helperText:o},E,{value:l,onChange:u,variant:r,InputProps:C({},c,(n={},n[A+"Adornment"]=(0,e.createElement)(An(),C({position:A},a),(0,e.createElement)(un,C({disabled:v},i,{onClick:s}),m)),n))}))}))};function lo(t){var n=t.useOptions,r=t.getCustomProps,o=t.DefaultToolbarComponent;return function(t){var i=t.allowKeyboardControl,a=t.ampm,s=t.hideTabs,u=t.animateYearScrolling,c=(t.autoOk,t.disableFuture),l=t.disablePast,d=(t.format,t.forwardedRef,t.initialFocusedDate,t.invalidDateMessage,t.labelFunc,t.leftArrowIcon),f=t.leftArrowButtonProps,h=t.maxDate,p=(t.maxDateMessage,t.minDate),g=(t.onOpen,t.onClose,t.minDateMessage,t.strictCompareDates),m=t.minutesStep,v=(t.onAccept,t.onChange,t.onMonthChange),y=t.onYearChange,b=t.renderDay,w=t.views,E=t.openTo,x=t.rightArrowIcon,_=t.rightArrowButtonProps,A=t.shouldDisableDate,k=(t.value,t.dateRangeIcon),O=(t.emptyLabel,t.invalidLabel,t.timeIcon),D=t.orientation,L=t.variant,T=t.disableToolbar,M=t.loadingIndicator,P=t.ToolbarComponent,F=void 0===P?o:P,N=S(t,["allowKeyboardControl","ampm","hideTabs","animateYearScrolling","autoOk","disableFuture","disablePast","format","forwardedRef","initialFocusedDate","invalidDateMessage","labelFunc","leftArrowIcon","leftArrowButtonProps","maxDate","maxDateMessage","minDate","onOpen","onClose","minDateMessage","strictCompareDates","minutesStep","onAccept","onChange","onMonthChange","onYearChange","renderDay","views","openTo","rightArrowIcon","rightArrowButtonProps","shouldDisableDate","value","dateRangeIcon","emptyLabel","invalidLabel","timeIcon","orientation","variant","disableToolbar","loadingIndicator","ToolbarComponent"]),j=r?r(t):{},R=function(t,n){var r=t.format,o=void 0===r?n.getDefaultFormat():r,i=t.inputValue,a=t.onChange,s=t.value,u=jn(),c=no(s,o,u,null===s,t),l=(0,e.useState)(c),d=l[0],f=l[1],h=i?function(e,t,n){try{return t.parse(e,n)}catch(e){return null}}(i,u,o):s;(0,e.useEffect)((function(){(null===s||u.isValid(s))&&f(c)}),[c,f,u,s]);var p=(0,e.useCallback)((function(e){a(e,null===e?null:u.format(e,o))}),[o,a,u]),g=ao(C({},t,{value:h,onChange:p}),n),m=g.inputProps,v=g.wrapperProps,y=g.pickerProps,b=(0,e.useMemo)((function(){return C({},m,{format:v.format,inputValue:i||d,onChange:function(e){f(e||"");var t=null===e?null:u.parse(e,v.format);a(t,e)}})}),[m,d,i,a,u,v.format]);return{inputProps:b,wrapperProps:v,pickerProps:y}}(t,n(t)),I=R.pickerProps,B=R.inputProps,G=R.wrapperProps;return(0,e.createElement)(kr,C({variant:L,InputComponent:co,DateInputProps:B},j,G,N),(0,e.createElement)(to,C({},I,{ToolbarComponent:F,disableToolbar:T,hideTabs:s,orientation:D,ampm:a,views:w,openTo:E,allowKeyboardControl:i,minutesStep:m,animateYearScrolling:u,disableFuture:c,disablePast:l,leftArrowIcon:d,leftArrowButtonProps:f,maxDate:h,minDate:p,strictCompareDates:g,onMonthChange:v,onYearChange:y,renderDay:b,dateRangeIcon:k,timeIcon:O,rightArrowIcon:x,rightArrowButtonProps:_,shouldDisableDate:A,loadingIndicator:M})))}}co.defaultProps={keyboardIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null)};var fo=C({},Zn,{openTo:"date",views:["year","date"]});function ho(e){var t=jn();return{getDefaultFormat:function(){return function(e,t){return qn(e)?t.yearFormat:Vn(e)?t.yearMonthFormat:t.dateFormat}(e.views,t)}}}var po=uo({useOptions:ho,DefaultToolbarComponent:Kn}),go=lo({useOptions:ho,DefaultToolbarComponent:Kn});po.defaultProps=fo,go.defaultProps=fo;var mo=(0,r.makeStyles)({toolbarLandscape:{flexWrap:"wrap"},toolbarAmpmLeftPadding:{paddingLeft:50},separator:{margin:"0 4px 0 2px",cursor:"default"},hourMinuteLabel:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},hourMinuteLabelLandscape:{marginTop:"auto"},hourMinuteLabelReverse:{flexDirection:"row-reverse"},ampmSelection:{marginLeft:20,marginRight:-20,display:"flex",flexDirection:"column"},ampmLandscape:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},ampmSelectionWithSeconds:{marginLeft:15,marginRight:10},ampmLabel:{fontSize:18}},{name:"MuiPickersTimePickerToolbar"});function vo(t,n,r){var o=jn();return{meridiemMode:Ir(t,o),handleMeridiemChange:(0,e.useCallback)((function(e){var i=Br(t,e,Boolean(n),o);r(i,!1)}),[n,t,r,o])}}var yo=function(t){var n,o,i,a=t.date,s=t.views,u=t.ampm,c=t.openView,l=t.onChange,d=t.isLandscape,f=t.setOpenView,h=jn(),p=(0,r.useTheme)(),g=mo(),m=vo(a,u,l),v=m.meridiemMode,y=m.handleMeridiemChange,b=d?"h3":"h2";return(0,e.createElement)(Wn,{isLandscape:d,className:k((n={},n[g.toolbarLandscape]=d,n[g.toolbarAmpmLeftPadding]=u&&!d,n))},(0,e.createElement)("div",{className:k(g.hourMinuteLabel,(o={},o[g.hourMinuteLabelLandscape]=d,o[g.hourMinuteLabelReverse]="rtl"===p.direction,o))},Hn(s,"hours")&&(0,e.createElement)(zn,{variant:b,onClick:function(){return f(Lr.HOURS)},selected:c===Lr.HOURS,label:h.getHourText(a,Boolean(u))}),Hn(s,["hours","minutes"])&&(0,e.createElement)(In,{label:":",variant:b,selected:!1,className:g.separator}),Hn(s,"minutes")&&(0,e.createElement)(zn,{variant:b,onClick:function(){return f(Lr.MINUTES)},selected:c===Lr.MINUTES,label:h.getMinuteText(a)}),Hn(s,["minutes","seconds"])&&(0,e.createElement)(In,{variant:"h2",label:":",selected:!1,className:g.separator}),Hn(s,"seconds")&&(0,e.createElement)(zn,{variant:"h2",onClick:function(){return f(Lr.SECONDS)},selected:c===Lr.SECONDS,label:h.getSecondText(a)})),u&&(0,e.createElement)("div",{className:k(g.ampmSelection,(i={},i[g.ampmLandscape]=d,i[g.ampmSelectionWithSeconds]=Hn(s,"seconds"),i))},(0,e.createElement)(zn,{disableRipple:!0,variant:"subtitle1",selected:"am"===v,typographyClassName:g.ampmLabel,label:h.getMeridiemText("am"),onClick:function(){return y("am")}}),(0,e.createElement)(zn,{disableRipple:!0,variant:"subtitle1",selected:"pm"===v,typographyClassName:g.ampmLabel,label:h.getMeridiemText("pm"),onClick:function(){return y("pm")}})))},bo=C({},$n,{openTo:"hours",views:["hours","minutes"]});function wo(e){var t=jn();return{getDefaultFormat:function(){return io(e.format,e.ampm,{"12h":t.time12hFormat,"24h":t.time24hFormat})}}}var Eo=uo({useOptions:wo,DefaultToolbarComponent:yo}),xo=lo({useOptions:wo,DefaultToolbarComponent:yo,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Eo.defaultProps=bo,xo.defaultProps=bo;var _o=function(e){return"date"===e||"year"===e?"date":"time"},Co=(0,r.makeStyles)((function(e){var t="light"===e.palette.type?e.palette.primary.main:e.palette.background.default;return{tabs:{color:e.palette.getContrastText(t),backgroundColor:t}}}),{name:"MuiPickerDTTabs"}),So=function(t){var n=t.view,o=t.onChange,i=t.dateRangeIcon,a=t.timeIcon,s=Co(),u="light"===(0,r.useTheme)().palette.type?"secondary":"primary";return(0,e.createElement)(Pn(),null,(0,e.createElement)(Tn(),{variant:"fullWidth",value:_o(n),onChange:function(e,t){t!==_o(n)&&o("date"===t?"date":"hours")},className:s.tabs,indicatorColor:u},(0,e.createElement)(Dn(),{value:"date",icon:(0,e.createElement)(e.Fragment,null,i)}),(0,e.createElement)(Dn(),{value:"time",icon:(0,e.createElement)(e.Fragment,null,a)})))};So.defaultProps={dateRangeIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null),timeIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),t().createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}))}),null)};var Ao=(0,r.makeStyles)((function(e){return{toolbar:{paddingLeft:16,paddingRight:16,justifyContent:"space-around"},separator:{margin:"0 4px 0 2px",cursor:"default"}}}),{name:"MuiPickerDTToolbar"}),ko=function(t){var n=t.date,o=t.openView,i=t.setOpenView,a=t.ampm,s=t.hideTabs,u=t.dateRangeIcon,c=t.timeIcon,l=t.onChange,d=jn(),f=Ao(),h=!s&&"undefined"!=typeof window&&window.innerHeight>667,p=vo(n,a,l),g=p.meridiemMode,m=p.handleMeridiemChange,v="rtl"===(0,r.useTheme)().direction;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Wn,{isLandscape:!1,className:f.toolbar},(0,e.createElement)(pn,{container:!0,justify:"center",wrap:"nowrap"},(0,e.createElement)(pn,{item:!0,container:!0,xs:5,justify:"flex-start",direction:"column"},(0,e.createElement)("div",null,(0,e.createElement)(zn,{variant:"subtitle1",onClick:function(){return i("year")},selected:"year"===o,label:d.getYearText(n)})),(0,e.createElement)("div",null,(0,e.createElement)(zn,{variant:"h4",onClick:function(){return i("date")},selected:"date"===o,label:d.getDateTimePickerHeaderText(n)}))),(0,e.createElement)(pn,{item:!0,container:!0,xs:6,justify:"center",alignItems:"flex-end",direction:v?"row-reverse":"row"},(0,e.createElement)(zn,{variant:"h3",onClick:function(){return i("hours")},selected:"hours"===o,label:d.getHourText(n,a)}),(0,e.createElement)(In,{variant:"h3",label:":",className:f.separator}),(0,e.createElement)(zn,{variant:"h3",onClick:function(){return i("minutes")},selected:"minutes"===o,label:d.getMinuteText(n)})),a&&(0,e.createElement)(pn,{item:!0,container:!0,xs:1,direction:"column",justify:"flex-end"},(0,e.createElement)(zn,{variant:"subtitle1",selected:"am"===g,label:d.getMeridiemText("am"),onClick:function(){return m("am")}}),(0,e.createElement)(zn,{variant:"subtitle1",selected:"pm"===g,label:d.getMeridiemText("pm"),onClick:function(){return m("pm")}})))),h&&(0,e.createElement)(So,{dateRangeIcon:u,timeIcon:c,view:o,onChange:i}))},Oo=C({},Xn,{wider:!0,orientation:"portrait",openTo:"date",views:["year","date","hours","minutes"]});function Do(e){var t=jn();if("portrait"!==e.orientation)throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return{getDefaultFormat:function(){return io(e.format,e.ampm,{"12h":t.dateTime12hFormat,"24h":t.dateTime24hFormat})}}}var Lo=uo({useOptions:Do,DefaultToolbarComponent:ko}),To=lo({useOptions:Do,DefaultToolbarComponent:ko,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Lo.defaultProps=Oo,To.defaultProps=Oo;var Mo=f(3192),Po=f.n(Mo);const Fo=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,r=t.instance,o=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=r||o||Po(),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),r=0,o=t,i=[];o.isBefore(n);){var a=Math.floor(r/7);i[a]=i[a]||[],i[a].push(o),o=o.clone().add(1,"day"),r+=1}return i},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[],i=n;i.isBefore(r);)o.push(i),i=i.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}(),No=window["material-ui"].LinearProgress;var jo=f.n(No);const Ro=(0,r.makeStyles)({loadingOverlay:{position:"absolute",width:"100%",height:"100%",top:0,left:0,opacity:.37,zIndex:10,backgroundColor:"#fff"},transparent:{backgroundColor:"transparent"},relativePosition:{"&$loadingOverlay":{position:"relative"}}}),Io=e=>{let{transparent:n=!1,relativePosition:r=!1,className:o}=e;const i=Ro();return t().createElement(t().Fragment,null,t().createElement("div",{className:s()(i.loadingOverlay,o,{[i.transparent]:n,[i.relativePosition]:r})},t().createElement(jo(),{color:"secondary"})))},Bo=(0,r.makeStyles)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},graphWrapper:{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1},graphContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}})));var Go=f(2396);const zo=()=>{},Uo=new Promise((()=>{})),Wo=function(){let{cancelPrevious:t=!0,cancelOnUnmount:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,e.useRef)(zo),o=()=>r.current();return(0,e.useEffect)((()=>()=>{n&&o()}),[]),(0,e.useCallback)((e=>(t&&o(),new Promise(((t,n)=>{r.current=()=>n("canceled"),e.then(t,n)})).catch((function(e){if("canceled"===e)return Uo;throw e})))),[])};function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qo=(e,t)=>{const n=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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ho(e,t,n[t])}))}return e}({},e,{[null==t?void 0:t.uri]:t}),r=Object.keys(n);return r.length>50&&delete n[r[0]],n},Vo=t().createContext({graphLoading:!1,data:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{}});Vo.displayName="GraphStateContext";var Yo=f(6929),Ko=f.n(Yo);const $o=window["material-ui"].Avatar;var Zo=f.n($o);const Xo=e=>{let{entity:r,avatarClassName:o,imageClassName:i}=e;const a=(0,n.useSelector)(v().selectors.getMetadata),u=(0,n.useSelector)(v().selectors.getAbsoluteImagePath)||"",c=(0,Go.getEntityImage)(a,u,r),l=(0,Go.getAbsoluteImageUrl)(u,(0,Go.getEntityTypeImage)(a,r.type)),d=e=>{e.target.onError=null,e.target.src=(0,Go.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 t().createElement(Zo(),{className:s()(o,i),src:c,imgProps:{onError:d}},t().createElement("img",{className:i,src:l,alt:"fallback entity avatar",onError:d}))},Qo=(0,r.makeStyles)({container:{display:"flex",flexShrink:0,marginLeft:"10px",alignItems:"center"},value:{marginLeft:"4px",minWidth:"20px",textAlign:"center"}}),Jo=(0,r.makeStyles)({dqiq:{width:"14px",height:"14px",lineHeight:"14px",background:"#e6605e",color:"#fff",fontSize:"10px",fontWeight:100,marginLeft:"2px",marginRight:"1px",borderRadius:"2px",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,textIndent:0}}),ei=()=>{const e=Jo();return t().createElement(t().Fragment,null,t().createElement("span",null,"DQ"),t().createElement("span",{className:e.dqiq},"IQ"))},ti=["analyticsAttributes/DQ/analyticsAttributes/score","analyticsAttributes/DQ"],ni=["analyticsAttributes/IQ/analyticsAttributes/score","analyticsAttributes/IQ"],ri=e=>{let{label:n="",attrTypeUri:r=""}=e;const o=r.indexOf("analyticsAttributes/"),i=r.substr(o),a=(0,u.includes)(i,ti),s=(0,u.includes)(i,ni);return(0,u.cond)([[(0,u.always)(a),(0,u.always)(t().createElement(ei,null))],[(0,u.always)(s),(0,u.always)(l().text("Rank"))],[u.T,(0,u.always)(n)]])()};ri.propTypes={label:i().string,attrTypeUri:i().string};const oi=ri,ii=e=>{let{label:n,value:r,uri:o,rangeColorsConfig:i,className:a}=e;const u=Qo();return t().createElement("div",{className:s()(u.container,a),key:o},t().createElement(oi,{attrTypeUri:o,label:n}),t().createElement("span",{className:u.value,style:{color:(0,Go.getScoreColor)(o,r,i)}},r))};ii.propTypes={label:i().string,value:i().oneOfType([i().string,i().number]),uri:i().string,rangeColorsConfig:i().object,className:i().string};const ai=ii,si=(0,r.makeStyles)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),ui=e=>{let{entity:r,className:o,size:i="small"}=e;const a=si(),u=(0,n.useSelector)(v().selectors.getMetadata),c=r.type,l=(0,Go.getEntityType)(u,c)||{},d=(0,Go.getPropWithInheritance)(u,l,"typeColor")||Go.theme.palette.primary.main;return t().createElement(D(),{style:{backgroundColor:d,color:Go.utils.Colors.getColor(d)?"#FFFFFF":"#212121"},className:s()(a[`entityType-${i}`],o),component:"div"},(0,Go.getEntityTypeLabel)(u,r))},ci=(0,r.makeStyles)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}},scores:{display:"flex",flexGrow:1,justifyContent:"flex-end",paddingRight:"20px"}})));function li(){return li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},li.apply(this,arguments)}const di=r=>{let{className:o,entity:i,scoresToShow:a,rangeColorsConfig:c,children:d,classes:f}=r;const h=ci({classes:f}),p=(0,n.useSelector)(v().selectors.getMetadata),g=(0,e.useCallback)((()=>{navigator.clipboard.writeText((0,Go.getEntityId)(i))}),[i]);if((0,u.isNil)(i))return null;const m=(0,Go.getLabel)(i.label),y=i.secondaryLabel,b=(0,Go.getBusinessCardAttributesText)(p,i),w=(0,Go.isActiveObject)(i),E=(0,Go.getScores)(p,i,a),x=i.uri,_=(0,Go.getEntityId)(i);return t().createElement("div",{className:s()(h.profileBandWrapper,o)},t().createElement("div",{className:s()(h.profileBand,{[h.inactive]:!w}),"data-entity-uri":x},t().createElement(Xo,{key:i.uri,entity:i,avatarClassName:h.profileIcon,imageClassName:h.imageProfileIcon}),t().createElement("div",{className:h.profileInfo},t().createElement("div",null,t().createElement(D(),{variant:"h6",className:h.label},m),y&&t().createElement(D(),{variant:"subtitle2",className:h.secondaryLabel},y),b&&t().createElement(D(),{variant:"subtitle1",className:h.businessCard},b)),t().createElement("div",{className:h.specialInfo},t().createElement("div",{className:h.entityType},t().createElement(ui,{entity:i,size:"medium",className:h.badge}),E.length>0&&t().createElement("div",{className:h.scores},E.map((e=>t().createElement(ai,li({key:e.uri},e,{rangeColorsConfig:c}))))),!(0,Go.isTempUri)(x)&&t().createElement(Ko(),{title:l().text("Copy to clipboard")},t().createElement(D(),{display:"inline",variant:"body2",className:h.entityId,onClick:g},l().text("Entity ID"),": ",_))))),d&&t().createElement("div",null,d)))};di.propTypes={className:i().string,entity:i().object,scoresToShow:i().arrayOf(i().string),rangeColorsConfig:i().object,children:i().node,classes:i().object};const fi=di,hi=(0,r.makeStyles)((()=>({root:{display:"flex",alignItems:"start"},addButton:{visibility:"hidden","&$showAlways":{visibility:"visible"},".commentsContainerVisibilityArea:hover &":{visibility:"visible"}},showAlways:{}}))),pi=(t,n)=>{const r=(0,e.useRef)(!1);(0,e.useEffect)((()=>{r.current?t():r.current=!0}),n)},gi=()=>{},mi=t().createContext({comments:[],commentsMap:null,currentComment:null,getComment:gi,getComments:()=>new Promise(gi),getCommentsCount:gi,createComment:()=>new Promise(gi),editComment:()=>new Promise(gi),createReply:()=>new Promise(gi),resolveThread:gi,reOpenThread:gi,clearCurrentComment:gi,deleteComment:gi,sending:!1,loading:!1,pageToken:null});mi.displayName="CollaborationContext";const vi=t().createContext([]);function yi(){return yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yi.apply(this,arguments)}vi.displayName="RelatedObjectUrisContext";const bi=e=>t().createElement("svg",yi({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),t().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"})),wi=(0,r.makeStyles)((()=>({root:{position:"relative",height:"18px",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"4px",cursor:"pointer"},icon:{"&:hover":{fillOpacity:.7}},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"}}))),Ei=t().forwardRef(((e,n)=>{let{children:r,onClick:o}=e;const i=wi();return t().createElement(Ko(),{title:l().text("Show comment")},t().createElement("div",{ref:n,className:i.root,onClick:o},t().createElement(bi,{className:i.icon}),t().createElement("div",{className:i.childrenWrapper},r)))}));Ei.displayName="CommentButton";const xi=Ei;function _i(){return _i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_i.apply(this,arguments)}const Ci=e=>t().createElement("svg",_i({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),t().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"})),Si=e=>{let{className:n,onClick:r}=e;const o=wi();return t().createElement(Ko(),{title:l().text("Add comment")},t().createElement("div",{className:s()(o.root,n),onClick:r},t().createElement(Ci,{className:o.icon})))},Ai=window["material-ui"].Box;var ki=f.n(Ai),Oi=f(7291);const Di=window["material-ui"].Link;var Li=f.n(Di),Ti=f(3054);const Mi=window["material-ui"].Menu;var Pi=f.n(Mi);const Fi=window["material-ui"].MenuItem;var Ni=f.n(Fi);const ji={tooltipTitle:i().node,tooltipPlacement:i().string,showForDisabled:i().bool};const Ri=(0,r.makeStyles)((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}}))),Ii=n=>{const r=(0,e.forwardRef)(((e,r)=>{let{tooltipTitle:o,tooltipPlacement:i,showForDisabled:a=!1}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["tooltipTitle","tooltipPlacement","showForDisabled"]);const u=Ri();return o?t().createElement(Ko(),{ref:r,title:o,placement:i||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:u.tooltip}},(e=>e?t().createElement("span",{className:u.wrapper},t().createElement(n,s)):t().createElement(n,s))(a)):t().createElement(n,s)}));return r.displayName="WithTooltip",r.propTypes=ji,r},Bi=(0,r.makeStyles)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,r.fade)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,r.fade)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),Gi=Ii(Ni()),zi=(0,e.forwardRef)(((e,n)=>{let{item:r,onMenuClose:o=u.identity}=e;const i=Bi(),{disabled:a,text:s,tooltip:c,onClick:l,id:d=""}=r;return t().createElement(Gi,{tooltipTitle:c,showForDisabled:!0,classes:{root:i.menuItem},onClick:e=>{o(e),l(e)},disabled:a,ref:n,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},t().createElement(D(),{classes:{root:i.menuText}},s))}));zi.displayName="MenuItemRenderer";const Ui=zi;function Wi(){return Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wi.apply(this,arguments)}function Hi(n){let{className:r,menuId:o,buttonComponent:i=T(),buttonContent:a,menuItems:c=[],buttonProps:l={},popoverProps:d={},onMenuOpen:f=u.identity,onMenuClose:h=u.identity,MenuItemRenderer:p=Ui}=n;const g=i,m=Bi(),v=(0,e.useRef)(),[y,b]=(0,e.useState)(!1);pi((()=>{y?f():h()}),[y]);const w=(0,e.useCallback)((e=>{null==e||e.stopPropagation(),b((e=>!e))}),[]);return t().createElement(t().Fragment,null,t().createElement(g,Wi({ref:v,className:s()(m.buttonRoot,{[m.selected]:y},r),onClick:w,"aria-pressed":y,"aria-controls":y?o:void 0,"aria-haspopup":"true"},l),a),t().createElement(Pi(),Wi({id:o,variant:"menu",open:y,autoFocus:!1,classes:{paper:m.paper},anchorEl:v.current,onClose:w,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:y}},d),c.map(((e,n)=>t().createElement(p,{item:e,key:n,onMenuClose:w})))))}Hi.displayName="DropDownMenuButton";const qi=Hi;function Vi(){return Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vi.apply(this,arguments)}const Yi={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},Ki=(0,e.forwardRef)(((e,n)=>{const{classes:r,className:o,onClick:i,icon:a,size:s=Yi.XS,iconClassName:u}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["classes","className","onClick","icon","size","iconClassName"]);return t().createElement(N(),Vi({ref:n,classes:{root:`${r[`root${s}`]} ${r.rootAll}`,disabled:r.disabled},onClick:i,className:o},c),a&&t().createElement(a,{classes:{root:r[`icon${s}`]},className:u}))}));Ki.displayName="SmallIconButton";const $i=Ii((0,r.withStyles)((()=>({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}})))(Ki)),Zi=t().createContext({});Zi.displayName="EntitiesMapContext";const Xi=t().createContext(null);Xi.displayName="ViewIdContext";const Qi=(0,e.forwardRef)(((r,o)=>{let{value:i,children:a,className:s}=r;const u=(0,n.useDispatch)(),c=(0,e.useContext)(Xi),l=(0,n.useSelector)(v().selectors.getUIPath),d=(0,e.useCallback)((()=>{u(m.ui.actions.openEntity({uri:i,viewId:c}))}),[c,i,u]);return t().createElement("a",{ref:o,href:(f=i,(0,Go.getEntityLink)({uiPath:l,uri:f})),onClick:e=>{d(),e.stopPropagation(),e.preventDefault()},className:s},a);var f}));Qi.displayName="EntityUriLink";const Ji=Qi,ea=(e,t)=>{const n=e.relatedObjectUris.indexOf(t);if(n>=0)return e.relatedObjectUris[1-n]},ta=e=>`${l().date(e,"LT")} ${l().date(e,"LL")}`,na=(0,r.makeStyles)((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"}}))),ra=r=>{let{comment:o,className:i}=r;const a=na(),u=(0,n.useSelector)(v().selectors.getEntity),c=(0,n.useSelector)(v().selectors.getMetadata),d=(0,e.useContext)(Zi);return t().createElement(ki(),{className:i},(()=>{switch(o.objectType){case Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE:{const e=(0,Go.getAttributeTypeUriByValueUri)(o.objectId,u.type),n=(0,Go.findAttributeTypeByUri)(c,e);return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected attribute:")),t().createElement(D(),{className:a.label},null==n?void 0:n.label))}case Go.CollaborationObjectTypes.ENTITY:return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected profile:")),t().createElement(Ji,{className:s()(a.label,a.link),value:(0,Go.getEntityUriForLink)(u)},(0,Go.getLabel)(u.label)));case Go.CollaborationObjectTypes.RELATION:{var e;const n=ea(o,u.uri),r={uri:n,label:null===(e=d[n])||void 0===e?void 0:e.label};return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected relation:")),t().createElement(D(),{className:a.label},t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(u)},(0,Go.getLabel)(u.label)),n&&t().createElement(t().Fragment,null,` ${l().text("to")} `,t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(r)},r.label?(0,Go.getLabel)(r.label):(0,Go.getEntityId)(r)))))}case Go.CollaborationObjectTypes.POTENTIAL_MATCH:{var n;const e=ea(o,u.uri),r={uri:e,label:null===(n=d[e])||void 0===n?void 0:n.label};return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected potential match:")),t().createElement(D(),{className:a.label},t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(u)},(0,Go.getLabel)(u.label)),e&&t().createElement(t().Fragment,null,` ${l().text("and")} `,t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(r)},r.label?(0,Go.getLabel)(r.label):(0,Go.getEntityId)(r)))))}default:return null}})())},oa=t().createContext([]);oa.displayName="UsersContext";const ia=(0,r.makeStyles)((e=>({root:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",wordBreak:"break-word"}}))),aa=n=>{let{comment:r,className:o}=n;const i=ia(),a=(0,e.useContext)(oa);return t().createElement(D(),{className:s()(i.root,o)},function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"+";const o=[];let i="",a=!1;for(let s=0;s<=e.length;s++){const u=e[s],c=e[s+1],l=s===e.length-1;i+=u,u===r&&0===s&&(a=!0),a&&t.includes(i.slice(r.length))&&(a=!1,o.push(n(i)),i=""),c===r&&(a=!0,o.push(i),i=""),l&&o.push(i)}return o}(r.content,r.namedUsers,(e=>{const n=a.find((t=>t.username===e.slice(1)));return n?t().createElement(Li(),{href:`mailto:${n.email}`},e):e})).map(((n,r)=>t().createElement(e.Fragment,{key:r},n))))},sa=(0,r.makeStyles)((e=>({root:{width:"32px",height:"32px",fontSize:"12px",color:e.palette.text.secondary,backgroundColor:"rgba(144, 164, 174, 0.2)"}})));function ua(){return ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(this,arguments)}const ca=e=>{let{className:n,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","children"]);const i=sa();return t().createElement(Zo(),ua({},o,{className:s()(i.root,n)}),r.split(".").map((e=>e[0].toUpperCase())).join(""))},la=(0,r.makeStyles)((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"},message:{marginTop:"12px"},dropdownMenu:{zIndex:"3000 !important"},buttons:{marginTop:"15px",marginBottom:"12px",display:"flex","& $button + $button":{marginLeft:"10px"}},button:{fontSize:"13px",lineHeight:"15px"}}))),da=r=>{let{onReply:o,className:i,uri:a,comment:s,onStartEditing:u}=r;const c=la(),d=(0,n.useSelector)(v().selectors.getUserName),f=s.createdBy===d,{resolveThread:h,reOpenThread:p,sending:g,deleteComment:m}=(0,e.useContext)(mi),y=(0,e.useMemo)((()=>[{text:l().text("Edit"),onClick:u},{text:l().text("Delete"),onClick:()=>m({uri:a,commentId:s.commentId})}]),[u,m,a,s]);return t().createElement(ki(),{className:i},t().createElement(ki(),{className:c.header},t().createElement(ca,{classes:{root:c.avatar}},s.createdBy),t().createElement(ki(),{width:"100%"},t().createElement(D(),{className:c.username},s.createdBy)),t().createElement(D(),{className:c.createdAt},ta(s.createdTime)),f&&t().createElement(qi,{buttonComponent:$i,buttonProps:{icon:Ti.Z,tooltipTitle:l().text("Open menu")},popoverProps:{PopoverClasses:{root:c.dropdownMenu}},menuItems:y,menuId:"collaboration-comment-menu"})),t().createElement(ki(),{className:c.body},t().createElement(ra,{comment:s,className:c.commentTarget}),t().createElement(aa,{comment:s,className:c.message}),t().createElement(ki(),{className:c.buttons},t().createElement(Li(),{className:c.button,onClick:o,component:"button"},l().text("Reply")),"open"===s.status&&t().createElement(Li(),{disabled:g,className:c.button,onClick:()=>{h({commentId:s.commentId,uri:a})},component:"button"},l().text("Resolve")),"resolved"===s.status&&t().createElement(Li(),{disabled:g,className:c.button,onClick:()=>{p({commentId:s.commentId,uri:a})},component:"button"},l().text("Re-open")))))},fa=(0,r.makeStyles)((e=>({root:{display:"flex",padding:"8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},avatar:{marginRight:"8px"},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"}}))),ha=e=>{let{className:n,reply:r}=e;const{createdBy:o,action:i,createdTime:a}=r,u=fa();return t().createElement(ki(),{className:s()(u.root,n)},t().createElement(ca,{classes:{root:u.avatar}},o),t().createElement(ki(),null,t().createElement(ki(),{className:u.header},t().createElement(D(),{className:u.username},o),"resolve"===i&&t().createElement(D(),{className:u.marked},l().text("Marked as resolved")),"reopen"===i&&t().createElement(D(),{className:u.marked},l().text("Re-opened"))),"resolve"!==i&&t().createElement(aa,{className:u.message,comment:r}),t().createElement(D(),{className:u.createdAt},ta(a))))};function pa(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ga(){return ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ga.apply(this,arguments)}function ma(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ya(e,t,n){return t&&va(e.prototype,t),n&&va(e,n),e}function ba(e){return ba="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},ba(e)}function wa(e){return wa="function"==typeof Symbol&&"symbol"===ba(Symbol.iterator)?function(e){return ba(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ba(e)},wa(e)}function Ea(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xa(e,t){return!t||"object"!==wa(t)&&"function"!=typeof t?Ea(e):t}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_a(e)}function Ca(e,t){return Ca=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ca(e,t)}function Sa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ca(e,t)}function Aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ka=f(7677),Oa=f.n(ka);var Da=f(1260),La=f.n(Da),Ta=f(5182),Ma=f.n(Ta),Pa=function(e){return e===Object(e)?Object.keys(e):[]},Fa=function(e){return e===Object(e)?Object.values(e):[]};function Na(e,t){var n=Object.assign({},e);return Ia(e)&&Ia(t)&&Pa(t).forEach((function(r){Ia(t[r])&&r in e?n[r]=Na(e[r],t[r]):Object.assign(n,La()({},r,t[r]))})),n}var ja=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 Na(e,t)}),e)},Ra=function(e,t){var n=Object.assign({},e);if(t)for(var r=0;r<t.length;r++)delete n[t[r]];return n},Ia=function(e){return!(e!==Object(e)||e instanceof Date||Array.isArray(e))},Ba=function(e){return(e||[]).filter(Boolean)},Ga=function(e){return"&"===e[0]},za=function(e){return!Ga(e)},Ua=function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},Wa=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Pa(e),r={},o=0,i=n.length;o<i;o+=1){var a=n[o],s="[object Object]"!==Object.prototype.toString.call(e[a])||":"===a[0]||"@"===a[0]||t.indexOf(a)>=0;s&&(r[a]=e[a])}return r},Ha=function(e,t){for(var n=t.map(Ua),r=Pa(e),o={},i=0,a=r.length;i<a;i+=1){var s=r[i];(t.indexOf(s)>=0||n.indexOf(Ua(s))>=0)&&(o[s]=e[s])}return o},qa=function e(t,n){for(var r=ja.apply(void 0,[{},Ra(t,n)].concat(Ma()(Fa(Ha(t,n))))),o=Pa(r).filter(Ga),i=0,a=o.length;i<a;i+=1){var s=o[i],u=e(r[s],n);n.indexOf(s)>=0?(delete r[s],r=ja({},r,u)):r[s]=u}return r};function Va(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 Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach((function(t){La()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ka=["animationName"];const $a=function(e){var t=e.style,n=e.className;return Ya(Ya({},t?{style:Wa(t,Ka)}:{}),n?{className:n}:{})};var Za=(0,e.createContext)($a);Za.Provider;const Xa=function(e){if(!e)return[];if("string"==typeof e)return[e];if(!Array.isArray(e)){var t=e;return Pa(e).reduce((function(e,n){return e.concat(t[n]?[n]:[])}),[])}return e};var Qa={};const Ja=function(e){return function(t,n){var r,o=n||Qa;e.memoize=e.memoize||new WeakMap,e.memoize.has(o)?r=e.memoize.get(o):(r={},e.memoize.set(o,r));var i=Xa(t).join(" ");return i in r?r[i]:r[i]=e(t||[],n)}};function es(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 ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach((function(t){La()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ns=function(e){var t=e&&Pa(e)[0];return t&&t.split("__")[0].split("--")[0]},rs=function(e,t,n){if(e){var r=e.split(" ")[0],o=[].concat(Ma()(0===t.length?n.map((function(e){return"".concat(r,"--").concat(e.substring(1))})):[]),Ma()(t.map((function(e){return"".concat(r,"__").concat(e)}))));return 0===t.length?[e].concat(Ma()(o)):o}};const os=function e(t){var n=t.style,r=t.className,o=t.classNames,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$a,a=r||ns(o)||(null==n?void 0:n.className),s="function"==typeof n?n:Ja((function(t,r){var s=Xa(t);Oa()(Array.isArray(s),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),Oa()(!r||Ia(r),"Optional second parameter must be a plain object.");var u=s.filter(Ga),c=s.filter(za),l=c.length>0?function(e){return Fa(Ha(e,c))}:function(e){return[e]},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(qa(e,u))},f=rs(a,c,u);return e(ts(ts(ts({},(n||r)&&{style:ja.apply(void 0,[{}].concat(Ma()(d(r)),Ma()(d(n))))}),f&&{className:f.join(" ")}),o&&{classNames:o}),i)})),u=ts({},"function"==typeof n?n:{style:n}),c=Ma()(new Set([].concat(Ma()(u.className?u.className.split(" "):[]),Ma()(a?a.split(" "):[])))),l=o?Ba(c.map((function(e){return o[e]}))):c,d=i(ts(ts({},u),l.length>0?{className:l.join(" ")}:{}));return Object.assign(s,d),s},is=function(t,n,r){var o=n.style,i=n.className,a=n.classNames,s=(0,e.useContext)(Za);return(0,e.useMemo)((function(){return os({style:o,className:i,classNames:a},s)}),[o,i,a,s])(r,t)};function as(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 ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?as(Object(n),!0).forEach((function(t){La()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var us=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},cs="__id__",ls="__display__",ds=function(e,t){Oa()("id"===t||"display"===t,'Second arg must be either "id" or "display", got: "'.concat(t,'"'));var n=e.indexOf(ls),r=e.indexOf(cs);return n<0&&(n=null),r<0&&(r=null),Oa()(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},fs=function(e){var t=/^\/(.+)\/(\w+)?$/;return new RegExp(e.map((function(e){var n,r,o=(n=t.exec(e.toString()),r=3,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[1],a=o[2];return Oa()(!a,"RegExp flags are not supported. Change /".concat(i,"/").concat(a," into /").concat(i,"/")),"(".concat(i,")")})).join("|"),"g")},hs=function(e){var t=0;return e.indexOf("__id__")>=0&&t++,e.indexOf("__display__")>=0&&t++,t},ps=function(){},gs=function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ps,i=fs(t.map((function(e){return e.regex}))),a=2,s=t.map((function(e){var t=e.markup,n=a;return a+=hs(t)+1,n})),u=0,c=0;null!==(r=i.exec(e));){var l=s.find((function(e){return!!r[e]})),d=s.indexOf(l),f=t[d],h=f.markup,p=f.displayTransform,g=l+ds(h,"id"),m=l+ds(h,"display"),v=r[g],y=p(v,r[m]),b=e.substring(u,r.index);o(b,u,c),c+=b.length,n(r[0],r.index,c,v,y,d,u),c+=y.length,u=i.lastIndex}u<e.length&&o(e.substring(u),u,c)},ms=function(e,t){var n="";return gs(e,t,(function(e,t,r,o,i){n+=i}),(function(e){n+=e})),n},vs=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";if("number"!=typeof n)return n;var i=function(e,t,o){void 0===r&&o+e.length>=n&&(r=t+n-o)},a=function(e,t,i,a,s,u,c){void 0===r&&i+s.length>n&&(r="NULL"===o?null:t+("END"===o?e.length:0))};return gs(e,t,a,i),void 0===r?e.length:r},ys=function(e,t,n,r){return e.substring(0,t)+r+e.substring(n)},bs=function(e,t){var n=[];return gs(e,t,(function(e,t,r,o,i,a,s){n.push({id:o,display:i,childIndex:a,index:t,plainTextIndex:r})})),n},ws=function(e,t){return"".concat(e,"-").concat(t)},Es=function(e){return Object.values(e).reduce((function(e,t){return e+t.results.length}),0)},xs=function(e){var t=us(e),n=e[e.indexOf(ls)+ls.length],r=e[e.indexOf(cs)+cs.length];return new RegExp(t.replace(ls,"([^".concat(us(n||""),"]+?)")).replace(cs,"([^".concat(us(r||""),"]+?)")))},_s=function(t){return e.Children.toArray(t).map((function(e){var t=e.props,n=t.markup,r=t.regex,o=t.displayTransform;return{markup:n,regex:r?Cs(r,n):xs(n),displayTransform:o||function(e,t){return t||e}}}))},Cs=function(e,t){var n=new RegExp(e.toString()+"|").exec("").length-1,r=hs(t);return Oa()(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},Ss=[{base:"A",letters:/(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\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:/(Ꜳ|[\uA732])/g},{base:"AE",letters:/(Æ|Ǽ|Ǣ|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(Ꜵ|[\uA734])/g},{base:"AU",letters:/(Ꜷ|[\uA736])/g},{base:"AV",letters:/(Ꜹ|Ꜻ|[\uA738\uA73A])/g},{base:"AY",letters:/(Ꜽ|[\uA73C])/g},{base:"B",letters:/(B|Ⓑ|B|Ḃ|Ḅ|Ḇ|Ƀ|Ƃ|Ɓ|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(C|Ⓒ|C|Ć|Ĉ|Ċ|Č|Ç|Ḉ|Ƈ|Ȼ|Ꜿ|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(D|Ⓓ|D|Ḋ|Ď|Ḍ|Ḑ|Ḓ|Ḏ|Đ|Ƌ|Ɗ|Ɖ|Ꝺ|Ð|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(DZ|DŽ|[\u01F1\u01C4])/g},{base:"Dz",letters:/(Dz|Dž|[\u01F2\u01C5])/g},{base:"E",letters:/(E|Ⓔ|E|È|É|Ê|Ề|Ế|Ễ|Ể|Ẽ|Ē|Ḕ|Ḗ|Ĕ|Ė|Ë|Ẻ|Ě|Ȅ|Ȇ|Ẹ|Ệ|Ȩ|Ḝ|Ę|Ḙ|Ḛ|Ɛ|Ǝ|[\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:/(F|Ⓕ|F|Ḟ|Ƒ|Ꝼ|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(G|Ⓖ|G|Ǵ|Ĝ|Ḡ|Ğ|Ġ|Ǧ|Ģ|Ǥ|Ɠ|Ꞡ|Ᵹ|Ꝿ|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(H|Ⓗ|H|Ĥ|Ḣ|Ḧ|Ȟ|Ḥ|Ḩ|Ḫ|Ħ|Ⱨ|Ⱶ|Ɥ|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(I|Ⓘ|I|Ì|Í|Î|Ĩ|Ī|Ĭ|İ|Ï|Ḯ|Ỉ|Ǐ|Ȉ|Ȋ|Ị|Į|Ḭ|Ɨ|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(J|Ⓙ|J|Ĵ|Ɉ|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(K|Ⓚ|K|Ḱ|Ǩ|Ḳ|Ķ|Ḵ|Ƙ|Ⱪ|Ꝁ|Ꝃ|Ꝅ|Ꞣ|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(L|Ⓛ|L|Ŀ|Ĺ|Ľ|Ḷ|Ḹ|Ļ|Ḽ|Ḻ|Ł|Ƚ|Ɫ|Ⱡ|Ꝉ|Ꝇ|Ꞁ|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(LJ|[\u01C7])/g},{base:"Lj",letters:/(Lj|[\u01C8])/g},{base:"M",letters:/(M|Ⓜ|M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(N|Ⓝ|N|Ǹ|Ń|Ñ|Ṅ|Ň|Ṇ|Ņ|Ṋ|Ṉ|Ƞ|Ɲ|Ꞑ|Ꞥ|Ŋ|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(NJ|[\u01CA])/g},{base:"Nj",letters:/(Nj|[\u01CB])/g},{base:"O",letters:/(O|Ⓞ|O|Ò|Ó|Ô|Ồ|Ố|Ỗ|Ổ|Õ|Ṍ|Ȭ|Ṏ|Ō|Ṑ|Ṓ|Ŏ|Ȯ|Ȱ|Ö|Ȫ|Ỏ|Ő|Ǒ|Ȍ|Ȏ|Ơ|Ờ|Ớ|Ỡ|Ở|Ợ|Ọ|Ộ|Ǫ|Ǭ|Ø|Ǿ|Ɔ|Ɵ|Ꝋ|Ꝍ|[\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:/(Œ|[\u0152])/g},{base:"OI",letters:/(Ƣ|[\u01A2])/g},{base:"OO",letters:/(Ꝏ|[\uA74E])/g},{base:"OU",letters:/(Ȣ|[\u0222])/g},{base:"P",letters:/(P|Ⓟ|P|Ṕ|Ṗ|Ƥ|Ᵽ|Ꝑ|Ꝓ|Ꝕ|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(Q|Ⓠ|Q|Ꝗ|Ꝙ|Ɋ|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(R|Ⓡ|R|Ŕ|Ṙ|Ř|Ȑ|Ȓ|Ṛ|Ṝ|Ŗ|Ṟ|Ɍ|Ɽ|Ꝛ|Ꞧ|Ꞃ|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(S|Ⓢ|S|ẞ|Ś|Ṥ|Ŝ|Ṡ|Š|Ṧ|Ṣ|Ṩ|Ș|Ş|Ȿ|Ꞩ|Ꞅ|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(T|Ⓣ|T|Ṫ|Ť|Ṭ|Ț|Ţ|Ṱ|Ṯ|Ŧ|Ƭ|Ʈ|Ⱦ|Ꞇ|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(Þ|[\u00DE])/g},{base:"TZ",letters:/(Ꜩ|[\uA728])/g},{base:"U",letters:/(U|Ⓤ|U|Ù|Ú|Û|Ũ|Ṹ|Ū|Ṻ|Ŭ|Ü|Ǜ|Ǘ|Ǖ|Ǚ|Ủ|Ů|Ű|Ǔ|Ȕ|Ȗ|Ư|Ừ|Ứ|Ữ|Ử|Ự|Ụ|Ṳ|Ų|Ṷ|Ṵ|Ʉ|[\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:/(V|Ⓥ|V|Ṽ|Ṿ|Ʋ|Ꝟ|Ʌ|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(Ꝡ|[\uA760])/g},{base:"W",letters:/(W|Ⓦ|W|Ẁ|Ẃ|Ŵ|Ẇ|Ẅ|Ẉ|Ⱳ|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(X|Ⓧ|X|Ẋ|Ẍ|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(Y|Ⓨ|Y|Ỳ|Ý|Ŷ|Ỹ|Ȳ|Ẏ|Ÿ|Ỷ|Ỵ|Ƴ|Ɏ|Ỿ|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(Z|Ⓩ|Z|Ź|Ẑ|Ż|Ž|Ẓ|Ẕ|Ƶ|Ȥ|Ɀ|Ⱬ|Ꝣ|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(a|ⓐ|a|ẚ|à|á|â|ầ|ấ|ẫ|ẩ|ã|ā|ă|ằ|ắ|ẵ|ẳ|ȧ|ǡ|ä|ǟ|ả|å|ǻ|ǎ|ȁ|ȃ|ạ|ậ|ặ|ḁ|ą|ⱥ|ɐ|[\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:/(ꜳ|[\uA733])/g},{base:"ae",letters:/(æ|ǽ|ǣ|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(ꜵ|[\uA735])/g},{base:"au",letters:/(ꜷ|[\uA737])/g},{base:"av",letters:/(ꜹ|ꜻ|[\uA739\uA73B])/g},{base:"ay",letters:/(ꜽ|[\uA73D])/g},{base:"b",letters:/(b|ⓑ|b|ḃ|ḅ|ḇ|ƀ|ƃ|ɓ|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(c|ⓒ|c|ć|ĉ|ċ|č|ç|ḉ|ƈ|ȼ|ꜿ|ↄ|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(d|ⓓ|d|ḋ|ď|ḍ|ḑ|ḓ|ḏ|đ|ƌ|ɖ|ɗ|ꝺ|ð|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(dz|dž|[\u01F3\u01C6])/g},{base:"e",letters:/(e|ⓔ|e|è|é|ê|ề|ế|ễ|ể|ẽ|ē|ḕ|ḗ|ĕ|ė|ë|ẻ|ě|ȅ|ȇ|ẹ|ệ|ȩ|ḝ|ę|ḙ|ḛ|ɇ|ɛ|ǝ|[\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:/(f|ⓕ|f|ḟ|ƒ|ꝼ|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(g|ⓖ|g|ǵ|ĝ|ḡ|ğ|ġ|ǧ|ģ|ǥ|ɠ|ꞡ|ᵹ|ꝿ|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(h|ⓗ|h|ĥ|ḣ|ḧ|ȟ|ḥ|ḩ|ḫ|ẖ|ħ|ⱨ|ⱶ|ɥ|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(ƕ|[\u0195])/g},{base:"i",letters:/(i|ⓘ|i|ì|í|î|ĩ|ī|ĭ|ï|ḯ|ỉ|ǐ|ȉ|ȋ|ị|į|ḭ|ɨ|ı|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(ij|[\u0133])/g},{base:"j",letters:/(j|ⓙ|j|ĵ|ǰ|ɉ|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(k|ⓚ|k|ḱ|ǩ|ḳ|ķ|ḵ|ƙ|ⱪ|ꝁ|ꝃ|ꝅ|ꞣ|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(l|ⓛ|l|ŀ|ĺ|ľ|ḷ|ḹ|ļ|ḽ|ḻ|ł|ƚ|ɫ|ⱡ|ꝉ|ꞁ|ꝇ|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(lj|[\u01C9])/g},{base:"m",letters:/(m|ⓜ|m|ḿ|ṁ|ṃ|ɱ|ɯ|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(n|ⓝ|n|ǹ|ń|ñ|ṅ|ň|ṇ|ņ|ṋ|ṉ|ƞ|ɲ|ʼn|ꞑ|ꞥ|ŋ|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(nj|[\u01CC])/g},{base:"o",letters:/(o|ⓞ|o|ò|ó|ô|ồ|ố|ỗ|ổ|õ|ṍ|ȭ|ṏ|ō|ṑ|ṓ|ŏ|ȯ|ȱ|ö|ȫ|ỏ|ő|ǒ|ȍ|ȏ|ơ|ờ|ớ|ỡ|ở|ợ|ọ|ộ|ǫ|ǭ|ø|ǿ|ɔ|ꝋ|ꝍ|ɵ|[\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:/(œ|[\u0153])/g},{base:"oi",letters:/(ƣ|[\u01A3])/g},{base:"ou",letters:/(ȣ|[\u0223])/g},{base:"oo",letters:/(ꝏ|[\uA74F])/g},{base:"p",letters:/(p|ⓟ|p|ṕ|ṗ|ƥ|ᵽ|ꝑ|ꝓ|ꝕ|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(q|ⓠ|q|ɋ|ꝗ|ꝙ|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(r|ⓡ|r|ŕ|ṙ|ř|ȑ|ȓ|ṛ|ṝ|ŗ|ṟ|ɍ|ɽ|ꝛ|ꞧ|ꞃ|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(s|ⓢ|s|ś|ṥ|ŝ|ṡ|š|ṧ|ṣ|ṩ|ș|ş|ȿ|ꞩ|ꞅ|ẛ|ſ|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(ß|[\u00DF])/g},{base:"t",letters:/(t|ⓣ|t|ṫ|ẗ|ť|ṭ|ț|ţ|ṱ|ṯ|ŧ|ƭ|ʈ|ⱦ|ꞇ|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(þ|[\u00FE])/g},{base:"tz",letters:/(ꜩ|[\uA729])/g},{base:"u",letters:/(u|ⓤ|u|ù|ú|û|ũ|ṹ|ū|ṻ|ŭ|ü|ǜ|ǘ|ǖ|ǚ|ủ|ů|ű|ǔ|ȕ|ȗ|ư|ừ|ứ|ữ|ử|ự|ụ|ṳ|ų|ṷ|ṵ|ʉ|[\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:/(v|ⓥ|v|ṽ|ṿ|ʋ|ꝟ|ʌ|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(ꝡ|[\uA761])/g},{base:"w",letters:/(w|ⓦ|w|ẁ|ẃ|ŵ|ẇ|ẅ|ẘ|ẉ|ⱳ|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(x|ⓧ|x|ẋ|ẍ|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(y|ⓨ|y|ỳ|ý|ŷ|ỹ|ȳ|ẏ|ÿ|ỷ|ẙ|ỵ|ƴ|ɏ|ỿ|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],As=function(e){return function(e){var t=e;return Ss.forEach((function(e){t=t.replace(e.letters,e.base)})),t}(e).toLowerCase()},ks=function(e,t,n){return n?As(e).indexOf(As(t)):e.toLowerCase().indexOf(t.toLowerCase())},Os=function(e){return"number"==typeof e},Ds=function(e){return e===Object(e)?Object.keys(e):[]},Ls=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 Ts(e,n){return function(r){var o=function(o){var i=o.style,a=o.className,s=o.classNames,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o,["style","className","classNames"]),c=n?n(u):void 0,l=is(e,{style:i,className:a,classNames:s},c);return t().createElement(r,ga({},u,{style:l}))},i=r.displayName||r.name||"Component";return o.displayName="defaultStyle(".concat(i,")"),o}}var Ms=function(n){function r(){var e;return ma(this,r),Aa(Ea(e=xa(this,_a(r).apply(this,arguments))),"setCaretElement",(function(t){e.caretElement=t})),e.state={left:void 0,top:void 0},e}return Sa(r,n),ya(r,[{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,n=this,r=this.props,o=r.selectionStart,i=r.selectionEnd,a=r.value,s=r.style,u=r.children,c=r.containerRef,l=_s(u);o===i&&(e=vs(a,l,o,"START"));var d=[],f={},h=d,p=0;return gs(a,l,(function(e,t,r,o,i,a,s){var u=function(e,t){return e.hasOwnProperty(t)?e[t]++:e[t]=0,t+"_"+e[t]}(f,o);h.push(n.getMentionComponentForMatch(o,i,a,u))}),(function(t,r,o){if(Os(e)&&e>=r&&e<=r+t.length){var i=e-r;h.push(n.renderSubstring(t.substring(0,i),p)),h=[n.renderSubstring(t.substring(i),p)]}else h.push(n.renderSubstring(t,p));p++})),h.push(" "),h!==d&&d.push(this.renderHighlighterCaret(h)),t().createElement("div",ga({},s,{ref:c}),d)}},{key:"renderSubstring",value:function(e,n){return t().createElement("span",ga({},this.props.style("substring"),{key:n}),e)}},{key:"getMentionComponentForMatch",value:function(n,r,o,i){var a={id:n,display:r,key:i},s=e.Children.toArray(this.props.children)[o];return t().cloneElement(s,a)}},{key:"renderHighlighterCaret",value:function(e){return t().createElement("span",ga({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),e)}}]),r}(e.Component);Aa(Ms,"propTypes",{selectionStart:i().number,selectionEnd:i().number,value:i().string.isRequired,onCaretPositionChange:i().func.isRequired,containerRef:i().oneOfType([i().func,i().shape({current:"undefined"==typeof Element?i().any:i().instanceOf(Element)})]),children:i().oneOfType([i().element,i().arrayOf(i().element)]).isRequired}),Aa(Ms,"defaultProps",{value:""});var Ps=Ts({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}}))(Ms),Fs=function(e){function n(){return ma(this,n),xa(this,_a(n).apply(this,arguments))}return Sa(n,e),ya(n,[{key:"render",value:function(){var e=Ls(this.props,["style","classNames","className"],Ds(n.propTypes));return t().createElement("li",ga({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(),s=this.renderHighlightedDisplay(a,t);return n?n(r,t,s,o,i):s}},{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 n=this.props,r=n.ignoreAccents,o=n.query,i=n.style,a=ks(e,o,r);return-1===a?t().createElement("span",i("display"),e):t().createElement("span",i("display"),e.substring(0,a),t().createElement("b",i("highlight"),e.substring(a,a+o.length)),e.substring(a+o.length))}}]),n}(e.Component);Aa(Fs,"propTypes",{id:i().string.isRequired,query:i().string.isRequired,index:i().number.isRequired,ignoreAccents:i().bool,suggestion:i().oneOfType([i().string,i().shape({id:i().oneOfType([i().string,i().number]).isRequired,display:i().string})]).isRequired,renderSuggestion:i().func,focused:i().bool});var Ns=Ts({cursor:"pointer"},(function(e){return{"&focused":e.focused}}))(Fs);function js(){var e=is(),n=e("spinner");return t().createElement("div",e,t().createElement("div",n,t().createElement("div",n(["element","element1"])),t().createElement("div",n(["element","element2"])),t().createElement("div",n(["element","element3"])),t().createElement("div",n(["element","element4"])),t().createElement("div",n(["element","element5"]))))}var Rs=function(n){function r(){var e,t;ma(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Aa(Ea(t=xa(this,(e=_a(r)).call.apply(e,[this].concat(o)))),"handleMouseEnter",(function(e,n){t.props.onMouseEnter&&t.props.onMouseEnter(e)})),Aa(Ea(t),"select",(function(e,n){t.props.onSelect(e,n)})),Aa(Ea(t),"setUlElement",(function(e){t.ulElement=e})),t}return Sa(r,n),ya(r,[{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,n=e.id,r=e.a11ySuggestionsListLabel,o=e.isOpened,i=e.style,a=e.onMouseDown,s=e.containerRef,u=e.position,c=e.left,l=e.top;return o?t().createElement("div",ga({},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 ss(ss(ss({},e),"function"==typeof t?t:{}),{},{style:ss(ss({},e.style),"function"==typeof t?t.style:t)})}),{})}({position:u||"absolute",left:c,top:l},i),{onMouseDown:a,ref:s}),t().createElement("ul",ga({ref:this.setUlElement,id:n,role:"listbox","aria-label":r},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(pa(t),pa(r.map((function(n,r){return e.renderSuggestion(n,o,t.length+r)}))))}),[])}},{key:"renderSuggestion",value:function(n,r,o){var i=this,a=o===this.props.focusIndex,s=r.childIndex,u=r.query,c=e.Children.toArray(this.props.children)[s].props.renderSuggestion,l=this.props.ignoreAccents;return t().createElement(Ns,{style:this.props.style("item"),key:"".concat(s,"-").concat(Is(n)),id:ws(this.props.id,o),query:u,index:o,ignoreAccents:l,renderSuggestion:c,suggestion:n,focused:a,onClick:function(){return i.select(n,r)},onMouseEnter:function(){return i.handleMouseEnter(o)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return t().createElement(js,{style:this.props.style("loadingIndicator")})}}]),r}(e.Component);Aa(Rs,"propTypes",{id:i().string.isRequired,suggestions:i().object.isRequired,a11ySuggestionsListLabel:i().string,focusIndex:i().number,position:i().string,left:i().number,top:i().number,scrollFocusedIntoView:i().bool,isLoading:i().bool,isOpened:i().bool.isRequired,onSelect:i().func,ignoreAccents:i().bool,containerRef:i().oneOfType([i().func,i().shape({current:"undefined"==typeof Element?i().any:i().instanceOf(Element)})]),children:i().oneOfType([i().element,i().arrayOf(i().element)]).isRequired}),Aa(Rs,"defaultProps",{suggestions:{},onSelect:function(){return null}});var Is=function(e){return"string"==typeof e?e:e.id},Bs=Ts({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(Rs);function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(n,!0).forEach((function(t){Aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Us={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},Ws=!1,Hs={singleLine:i().bool,allowSpaceInQuery:i().bool,allowSuggestionsAboveCursor:i().bool,forceSuggestionsAboveCursor:i().bool,ignoreAccents:i().bool,a11ySuggestionsListLabel:i().string,value:i().string,onKeyDown:i().func,onSelect:i().func,onBlur:i().func,onChange:i().func,suggestionsPortalHost:"undefined"==typeof Element?i().any:i().PropTypes.instanceOf(Element),inputRef:i().oneOfType([i().func,i().shape({current:"undefined"==typeof Element?i().any:i().instanceOf(Element)})]),children:i().oneOfType([i().element,i().arrayOf(i().element)]).isRequired},qs=function(n){function r(n){var o;return ma(this,r),Aa(Ea(o=xa(this,_a(r).call(this,n))),"setContainerElement",(function(e){o.containerElement=e})),Aa(Ea(o),"getInputProps",(function(){var e=o.props,t=e.readOnly,n=e.disabled,r=e.style;return zs({},Ls(o.props,["style","classNames","className"],Ds(Hs)),{},r("input"),{value:o.getPlainText()},!t&&!n&&{onChange:o.handleChange,onSelect:o.handleSelect,onKeyDown:o.handleKeyDown,onBlur:o.handleBlur,onCompositionStart:o.handleCompositionStart,onCompositionEnd:o.handleCompositionEnd,onScroll:o.updateHighlighterScroll},{},o.isOpened()&&{role:"combobox","aria-controls":o.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":ws(o.uuidSuggestionsOverlay,o.state.focusIndex)})})),Aa(Ea(o),"renderControl",(function(){var e=o.props,n=e.singleLine,r=e.style,i=o.getInputProps();return t().createElement("div",r("control"),o.renderHighlighter(),n?o.renderInput(i):o.renderTextarea(i))})),Aa(Ea(o),"renderInput",(function(e){return t().createElement("input",ga({type:"text",ref:o.setInputRef},e))})),Aa(Ea(o),"renderTextarea",(function(e){return t().createElement("textarea",ga({ref:o.setInputRef},e))})),Aa(Ea(o),"setInputRef",(function(e){o.inputElement=e;var t=o.props.inputRef;"function"==typeof t?t(e):t&&(t.current=e)})),Aa(Ea(o),"setSuggestionsElement",(function(e){o.suggestionsElement=e})),Aa(Ea(o),"renderSuggestionsOverlay",(function(){if(!Os(o.state.selectionStart))return null;var e=o.state.suggestionsPosition,n=e.position,r=e.left,i=e.top,a=t().createElement(Bs,{id:o.uuidSuggestionsOverlay,style:o.props.style("suggestions"),position:n,left:r,top:i,focusIndex:o.state.focusIndex,scrollFocusedIntoView:o.state.scrollFocusedIntoView,containerRef:o.setSuggestionsElement,suggestions:o.state.suggestions,onSelect:o.addMention,onMouseDown:o.handleSuggestionsMouseDown,onMouseEnter:o.handleSuggestionsMouseEnter,isLoading:o.isLoading(),isOpened:o.isOpened(),ignoreAccents:o.props.ignoreAccents,a11ySuggestionsListLabel:o.props.a11ySuggestionsListLabel},o.props.children);return o.props.suggestionsPortalHost?Q().createPortal(a,o.props.suggestionsPortalHost):a})),Aa(Ea(o),"renderHighlighter",(function(){var e=o.state,n=e.selectionStart,r=e.selectionEnd,i=o.props,a=i.singleLine,s=i.children,u=i.value,c=i.style;return t().createElement(Ps,{containerRef:o.setHighlighterElement,style:c("highlighter"),value:u,singleLine:a,selectionStart:n,selectionEnd:r,onCaretPositionChange:o.handleCaretPositionChange},s)})),Aa(Ea(o),"setHighlighterElement",(function(e){o.highlighterElement=e})),Aa(Ea(o),"handleCaretPositionChange",(function(e){o.setState({caretPosition:e})})),Aa(Ea(o),"getPlainText",(function(){return ms(o.props.value||"",_s(o.props.children))})),Aa(Ea(o),"executeOnChange",(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 i,a;return o.props.onChange?(i=o.props).onChange.apply(i,[e].concat(n)):o.props.valueLink?(a=o.props.valueLink).requestChange.apply(a,[e.target.value].concat(n)):void 0})),Aa(Ea(o),"handleChange",(function(e){if(Ws=!1,!document.documentMode||(document.activeElement&&document.activeElement.contentDocument||document).activeElement===e.target){var t=o.props.value||"",n=_s(o.props.children),r=e.target.value,i=function(e,t,n,r){var o=n.selectionStartBefore,i=n.selectionEndBefore,a=n.selectionEndAfter,s=ms(e,r),u=s.length-t.length;"undefined"===o&&(o=a+u),"undefined"===i&&(i=o),o===i&&i===a&&s.length===t.length&&(o-=1);var c=t.slice(o,a),l=Math.min(o,a),d=i;o===a&&(d=Math.max(i,o+u));var f=vs(e,r,l,"START"),h=vs(e,r,d,"END"),p=vs(e,r,l,"NULL"),g=vs(e,r,d,"NULL"),m=null===p||null===g,v=ys(e,f,h,c);if(!m){var y=ms(v,r);if(y!==t){for(l=0;t[l]===y[l];)l++;c=t.slice(l,a),d=s.lastIndexOf(t.substring(a)),f=vs(e,r,l,"START"),h=vs(e,r,d,"END"),v=ys(e,f,h,c)}}return v}(t,r,{selectionStartBefore:o.state.selectionStart,selectionEndBefore:o.state.selectionEnd,selectionEndAfter:e.target.selectionEnd},n);r=ms(i,n);var a=e.target.selectionStart,s=e.target.selectionEnd,u=!1,c=function(e,t,n){var r=n,o=!1;if(gs(e,t,(function(e,t,i,a,s,u,c){i<=n&&i+s.length>n&&(r=i,o=!0)})),o)return r}(t,n,a);void 0!==c&&o.state.selectionEnd>c&&(s=a=c,u=!0),o.setState({selectionStart:a,selectionEnd:s,setSelectionAfterMentionChange:u});var l=bs(i,n),d={target:{value:i}};o.executeOnChange(d,i,r,l)}})),Aa(Ea(o),"handleSelect",(function(e){if(o.setState({selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd}),!Ws){var t=o.inputElement;e.target.selectionStart===e.target.selectionEnd?o.updateMentionsQueries(t.value,e.target.selectionStart):o.clearSuggestions(),o.updateHighlighterScroll(),o.props.onSelect(e)}})),Aa(Ea(o),"handleKeyDown",(function(e){if(0!==Es(o.state.suggestions)&&o.suggestionsElement)switch(Object.values(Us).indexOf(e.keyCode)>=0&&(e.preventDefault(),e.stopPropagation()),e.keyCode){case Us.ESC:return void o.clearSuggestions();case Us.DOWN:return void o.shiftFocus(1);case Us.UP:return void o.shiftFocus(-1);case Us.RETURN:case Us.TAB:return void o.selectFocused();default:return}else o.props.onKeyDown(e)})),Aa(Ea(o),"shiftFocus",(function(e){var t=Es(o.state.suggestions);o.setState({focusIndex:(t+o.state.focusIndex+e)%t,scrollFocusedIntoView:!0})})),Aa(Ea(o),"selectFocused",(function(){var e=o.state,t=e.suggestions,n=e.focusIndex,r=Object.values(t).reduce((function(e,t){var n=t.results,r=t.queryInfo;return[].concat(pa(e),pa(n.map((function(e){return{result:e,queryInfo:r}}))))}),[])[n],i=r.result,a=r.queryInfo;o.addMention(i,a),o.setState({focusIndex:0})})),Aa(Ea(o),"handleBlur",(function(e){var t=o._suggestionsMouseDown;o._suggestionsMouseDown=!1,t||o.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){o.updateHighlighterScroll()}),1),o.props.onBlur(e,t)})),Aa(Ea(o),"handleSuggestionsMouseDown",(function(e){o._suggestionsMouseDown=!0})),Aa(Ea(o),"handleSuggestionsMouseEnter",(function(e){o.setState({focusIndex:e,scrollFocusedIntoView:!1})})),Aa(Ea(o),"updateSuggestionsPosition",(function(){var e=o.state.caretPosition,t=o.props,n=t.suggestionsPortalHost,r=t.allowSuggestionsAboveCursor,i=t.forceSuggestionsAboveCursor;if(e&&o.suggestionsElement){var a=o.suggestionsElement,s=o.highlighterElement,u=s.getBoundingClientRect(),c=Vs(s,"font-size"),l={left:u.left+e.left,top:u.top+e.top+c},d=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(a){var f={};if(n){f.position="fixed";var h=l.left,p=l.top;h-=Vs(a,"margin-left"),p-=Vs(a,"margin-top"),h-=s.scrollLeft,p-=s.scrollTop;var g=Math.max(document.documentElement.clientWidth,window.innerWidth||0);h+a.offsetWidth>g?f.left=Math.max(0,g-a.offsetWidth):f.left=h,r&&p+a.offsetHeight>d&&a.offsetHeight<p-c||i?f.top=Math.max(0,p-a.offsetHeight-c):f.top=p}else{var m=e.left-s.scrollLeft,v=e.top-s.scrollTop;m+a.offsetWidth>o.containerElement.offsetWidth?f.right=0:f.left=m,r&&l.top-s.scrollTop+a.offsetHeight>d&&a.offsetHeight<u.top-c-s.scrollTop?f.top=v-a.offsetHeight-c:f.top=v}f.left===o.state.suggestionsPosition.left&&f.top===o.state.suggestionsPosition.top&&f.position===o.state.suggestionsPosition.position||o.setState({suggestionsPosition:f})}}})),Aa(Ea(o),"updateHighlighterScroll",(function(){var e=o.inputElement,t=o.highlighterElement;e&&t&&(t.scrollLeft=e.scrollLeft,t.scrollTop=e.scrollTop,t.height=e.height)})),Aa(Ea(o),"handleCompositionStart",(function(){Ws=!0})),Aa(Ea(o),"handleCompositionEnd",(function(){Ws=!1})),Aa(Ea(o),"setSelection",(function(e,t){if(null!==e&&null!==t){var n=o.inputElement;if(n.setSelectionRange)n.setSelectionRange(e,t);else if(n.createTextRange){var r=n.createTextRange();r.collapse(!0),r.moveEnd("character",t),r.moveStart("character",e),r.select()}}})),Aa(Ea(o),"updateMentionsQueries",(function(e,n){o._queryId++,o.suggestions={},o.setState({suggestions:{}});var r=o.props.value||"",i=o.props.children,a=_s(i),s=vs(r,a,n,"NULL");if(null!==s){var u=function(e,t){var n=bs(e,t),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0}(r.substring(0,s),a),c=e.substring(u,n);t().Children.forEach(i,(function(t,n){if(t){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof RegExp)return e;var n=t.allowSpaceInQuery,r=us(e);return new RegExp("(?:^|\\s)(".concat(r,"([^").concat(n?"":"\\s").concat(r,"]*))$"))}(t.props.trigger,o.props),i=c.match(r);if(i){var a=u+c.indexOf(i[1],i.index);o.queryData(i[2],n,a,a+i[1].length,e)}}}))}})),Aa(Ea(o),"clearSuggestions",(function(){o._queryId++,o.suggestions={},o.setState({suggestions:{},focusIndex:0})})),Aa(Ea(o),"queryData",(function(t,n,r,i,a){var s=o.props,u=s.children,c=s.ignoreAccents,l=function(e,t){return e instanceof Array?function(n,r){for(var o=[],i=0,a=e.length;i<a;++i){var s=e[i].display||e[i].id;ks(s,n,t)>=0&&o.push(e[i])}return o}:e}(e.Children.toArray(u)[n].props.data,c),d=l(t,o.updateSuggestions.bind(null,o._queryId,n,t,r,i,a));d instanceof Array&&o.updateSuggestions(o._queryId,n,t,r,i,a,d)})),Aa(Ea(o),"updateSuggestions",(function(e,t,n,r,i,a,s){if(e===o._queryId){o.suggestions=zs({},o.suggestions,Aa({},t,{queryInfo:{childIndex:t,query:n,querySequenceStart:r,querySequenceEnd:i,plainTextValue:a},results:s}));var u=o.state.focusIndex,c=Es(o.suggestions);o.setState({suggestions:o.suggestions,focusIndex:u>=c?Math.max(c-1,0):u})}})),Aa(Ea(o),"addMention",(function(t,n){var r=t.id,i=t.display,a=n.childIndex,s=n.querySequenceStart,u=n.querySequenceEnd,c=n.plainTextValue,l=o.props.value||"",d=_s(o.props.children),f=e.Children.toArray(o.props.children)[a].props,h=f.markup,p=f.displayTransform,g=f.appendSpaceOnAdd,m=f.onAdd,v=vs(l,d,s,"START"),y=v+u-s,b=function(e,t,n){return e.replace(cs,t).replace(ls,n)}(h,r,i);g&&(b+=" ");var w=ys(l,v,y,b);o.inputElement.focus();var E=p(r,i);g&&(E+=" ");var x=s+E.length;o.setState({selectionStart:x,selectionEnd:x,setSelectionAfterMentionChange:!0});var _={target:{value:w}},C=bs(w,d),S=ys(c,s,u,E);o.executeOnChange(_,w,S,C),m&&m(r,i,v,y),o.clearSuggestions()})),Aa(Ea(o),"isLoading",(function(){var e=!1;return t().Children.forEach(o.props.children,(function(t){e=e||t&&t.props.isLoading})),e})),Aa(Ea(o),"isOpened",(function(){return Os(o.state.selectionStart)&&(0!==Es(o.state.suggestions)||o.isLoading())})),Aa(Ea(o),"_queryId",0),o.suggestions={},o.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),o.handleCopy=o.handleCopy.bind(Ea(o)),o.handleCut=o.handleCut.bind(Ea(o)),o.handlePaste=o.handlePaste.bind(Ea(o)),o.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},o}return Sa(r,n),ya(r,[{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 t().createElement("div",ga({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,s=_s(a),u=vs(i,s,n,"START"),c=vs(i,s,r,"END"),l=e.clipboardData.getData("text/react-mentions"),d=e.clipboardData.getData("text/plain"),f=ys(i,u,c,l||d).replace(/\r/g,""),h=ms(f,s),p={target:zs({},e.target,{value:f})};this.executeOnChange(p,f,h,bs(f,s))}}},{key:"saveSelectionToClipboard",value:function(e){var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,s=_s(i),u=vs(a,s,n,"START"),c=vs(a,s,r,"END");e.clipboardData.setData("text/plain",e.target.value.slice(n,r)),e.clipboardData.setData("text/react-mentions",a.slice(u,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,s=_s(i),u=vs(a,s,n,"START"),c=vs(a,s,r,"END"),l=[a.slice(0,u),a.slice(c)].join(""),d=ms(l,s),f={target:zs({},e.target,{value:d})};this.executeOnChange(f,l,d,bs(a,s))}}}]),r}(t().Component);Aa(qs,"propTypes",Hs),Aa(qs,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var Vs=function(e,t){var n=parseFloat(window.getComputedStyle(e,null).getPropertyValue(t));return isFinite(n)?n:0},Ys=Ts({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:zs({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}}))(qs),Ks={fontWeight:"inherit"},$s=function(e){var n=e.display,r=e.style,o=e.className,i=e.classNames,a=is(Ks,{style:r,className:o,classNames:i});return t().createElement("strong",a,n)};$s.propTypes={onAdd:i().func,onRemove:i().func,renderSuggestion:i().func,trigger:i().oneOfType([i().string,i().instanceOf(RegExp)]),markup:i().string,displayTransform:i().func,allowSpaceInQuery:i().bool,isLoading:i().bool},$s.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 Zs=(0,r.makeStyles)((e=>({root:{width:"100%",backgroundColor:"#fff",fontFamily:"Roboto","&__control":{fontSize:"13px"},"&__highlighter":{padding:"10px 22px",border:"1px solid transparent !important",maxHeight:"70px"},"&__input":{borderRadius:"2px",border:"1px solid rgba(0,0,0,0.12)",padding:"10px 22px",outline:0,maxHeight:"70px",overflow:"auto !important"},"&__suggestions":{padding:"8px 0",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)",transform:"translateY(-100%)"},"&__suggestions__list":{maxHeight:"200px",overflowY:"scroll"},"&__suggestions__item":{padding:"6px 12px",color:e.palette.text.primary,fontSize:"13px",transition:e.transitions.create(["background-color"]),"&:hover, &--focused":{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 Xs(){return Xs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xs.apply(this,arguments)}const Qs=n=>{let{onChange:r,className:o}=n,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["onChange","className"]);const a=Zs(),c=(0,e.useContext)(oa);return t().createElement(Ys,Xs({},i,{onChange:(e,t,n,o)=>{r(t,n,(0,u.uniq)(o.map((e=>{let{display:t}=e;return t.slice(1)}))))},className:s()(a.root,o)}),t().createElement($s,{trigger:"+",data:c.map((e=>{let{username:t}=e;return{id:t,display:t}})),displayTransform:(e,t)=>`+${t}`,appendSpaceOnAdd:!0,className:a.mention}))},Js=(0,r.makeStyles)({root:{padding:"6px 6px 6px 8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},textField:{maxWidth:"calc(100% - 40px)"},form:{marginBottom:0},main:{display:"flex",alignItems:"center"},avatar:{marginRight:"8px"},buttons:{marginLeft:"40px",marginTop:"8px"},button:{"& + $button":{marginLeft:"8px"}}}),eu=e=>{switch(e){case"open":return l().text("Reply...");case"resolved":return l().text("Adding a comment will re-open this");default:return""}},tu=r=>{let{inputRef:o,className:i,uri:a,relatedObjectUris:c,objectType:d,popperRef:f,comment:h,isEditingComment:p,onCancel:g}=r;const m=Js(),y=(0,n.useSelector)(v().selectors.getUserName),{createReply:b,createComment:w,sending:E,editComment:x}=(0,e.useContext)(mi),[_,C]=(0,e.useState)(""),[S,A]=(0,e.useState)(""),[k,O]=(0,e.useState)([]),[D,L]=(0,e.useState)(!1),M=Wo(),P=""!==_.trim(),F=D||P,N=null==h?void 0:h.status,j=(e,t,n)=>{O(n),C(e),A(t)},R=()=>{null==g||g(),j("","",[])};return(0,e.useEffect)((()=>{f&&f.current.update()}),[f,F]),(0,e.useEffect)((()=>{p?C(h.content):R()}),[p]),t().createElement(ki(),{className:s()(m.root,i)},t().createElement("form",{onSubmit:e=>{e.preventDefault();const t=(0,u.cond)([[(0,u.always)(!h),()=>w({content:S,namedUsers:k,objectType:d,uri:a,relatedObjectUris:c})],[(0,u.always)(p),()=>x({content:S,namedUsers:k,commentId:h.commentId,objectType:d,replies:h.replies,relatedObjectUris:c,uri:a})],[u.T,()=>b({content:S,namedUsers:k,commentId:h.commentId,action:"open"===h.status?"none":"reopen",uri:a})]]);return M(t()).then(R).catch(console.log)},className:m.form},t().createElement(ki(),{className:m.main},t().createElement(ca,{classes:{root:m.avatar}},y),t().createElement(Qs,{className:m.textField,disabled:E,onChange:(e,t,n)=>{j(e,t,n)},inputRef:o,value:_,onFocus:()=>L(!0),onBlur:()=>L(!1),placeholder:eu(N)})),F&&t().createElement(ki(),{className:m.buttons},t().createElement(T(),{className:m.button,variant:"contained",color:"primary",disabled:!P||E,type:"submit"},((e,t)=>t?l().text("Edit"):"open"===e||"resolved"===e?l().text("Reply"):l().text("Comment"))(N,p)),t().createElement(T(),{disabled:E,onClick:()=>R(),className:m.button,variant:"outlined",color:"primary"},l().text("Cancel")))))},nu=(0,r.makeStyles)((()=>({root:{maxWidth:"100%",padding:"8px 4px 10px 16px"},messages:{},repliedComment:{marginBottom:"2px"},replies:{marginLeft:"40px"},sendMessageArea:{marginLeft:"40px"},comment:{}}))),ru=(0,e.memo)((n=>{let{uri:r,relatedObjectUris:o,objectType:i,classes:a,popperRef:s,messagesRef:u,comment:c}=n;const l=(0,e.useRef)(),d=nu({classes:a}),[f,h]=(0,e.useState)(!1),p=t().createElement(tu,{className:d.sendMessageArea,inputRef:l,popperRef:s,uri:r,relatedObjectUris:o,objectType:i,comment:c,onCancel:()=>h(!1),isEditingComment:f});return t().createElement(ki(),{className:d.root},c&&t().createElement(t().Fragment,null,t().createElement("div",{className:d.messages,ref:u},t().createElement(da,{comment:c,uri:r,onReply:()=>{f&&h(!1),l.current.focus()},onStartEditing:()=>{h(!0)},className:d.comment}),t().createElement(ki(),{className:d.replies},c.replies.map((e=>t().createElement(ha,{key:e.replyId,className:d.repliedComment,reply:e}))))),p),!c&&p)})),ou=window["material-ui"].ClickAwayListener;var iu=f.n(ou);const au=window["material-ui"].Popper;var su=f.n(au);const uu=(0,r.makeStyles)({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}}),cu=e=>{let{anchorEl:t,leftBackdropRef:n,rightBackdropRef:r,topBackdropRef:o,bottomBackdropRef:i,rafIdRef:a,lastResizeTimestamp:s=0}=e;if(t){if(Date.now()-s>100&&o.current&&n.current&&r.current&&i.current){const e=t.getBoundingClientRect();o.current.style.top="0",o.current.style.left="0",o.current.style.right="0",o.current.style.height=e.top+"px",n.current.style.top="0",n.current.style.left="0",n.current.style.width=e.left+"px",n.current.style.bottom="0",r.current.style.top="0",r.current.style.left=e.right+"px",r.current.style.right="0",r.current.style.bottom="0",i.current.style.top=e.bottom+"px",i.current.style.left="0",i.current.style.right="0",i.current.style.bottom="0",s=Date.now()}a.current=requestAnimationFrame((()=>cu({anchorEl:t,leftBackdropRef:n,rightBackdropRef:r,topBackdropRef:o,bottomBackdropRef:i,rafIdRef:a,lastResizeTimestamp:s})))}};function lu(){return lu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lu.apply(this,arguments)}function du(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fu=(0,e.forwardRef)(((n,r)=>{let{modifiers:o,modal:i=!0,onClose:a,anchorEl:c,open:l,className:d}=n,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["modifiers","modal","onClose","anchorEl","open","className"]);const h=uu(),g=(0,e.useRef)(),m=(0,e.useRef)(),v=(0,e.useRef)(),y=(0,e.useRef)(),b=(0,e.useRef)();(0,e.useEffect)((()=>{if(l&&i)return cu({anchorEl:c,leftBackdropRef:g,rightBackdropRef:m,topBackdropRef:v,bottomBackdropRef:y,rafIdRef:b}),()=>cancelAnimationFrame(b.current)}),[c,l,i]);const w=(0,e.useMemo)((()=>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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){du(e,t,n[t])}))}return e}({},o,(0,u.compose)((0,u.either)((0,u.includes)("MSIE "),(0,u.includes)("Trident/")),(0,u.path)(["navigator","userAgent"]))(window)?{computeStyle:{gpuAcceleration:!1}}:{})),[o]);return t().createElement(t().Fragment,null,i&&l&&t().createElement(p(),{container:document.body},t().createElement("div",{ref:v,className:h.backdrop,onClick:a}),t().createElement("div",{ref:m,className:h.backdrop,onClick:a}),t().createElement("div",{ref:y,className:h.backdrop,onClick:a}),t().createElement("div",{ref:g,className:h.backdrop,onClick:a})),t().createElement(su(),lu({open:l,anchorEl:c},f,{modifiers:w,className:s()(d,h.popper),ref:r})))}));fu.displayName="Popper",fu.defaultProps={modifiers:{}};const hu=fu,pu=(0,r.makeStyles)((e=>{const t=e.palette.background.paper;return{popoverRoot:{backgroundColor:t,maxWidth:1e3},popper:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},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)"}}}})),gu=e=>{let{anchorEl:n,placement:r="top",arrow:o=!0,open:i,onClose:a=(()=>{}),children:u,className:c,popperRef:l}=e;const d=pu(),[f,h]=t().useState(null);return t().createElement(hu,{anchorEl:n,placement:r,className:s()(d.popper,c),modifiers:{preventOverflow:{enabled:!0,boundariesElement:"window"},arrow:{enabled:o,element:f}},open:i,modal:!1,popperRef:l},t().createElement(ki(),null,t().createElement(iu(),{onClickAway:e=>{var t;t=e.target,Array.from(document.querySelectorAll("[data-modal]")).some((e=>e.contains(t)))||a()}},t().createElement(Pn(),{className:d.popoverRoot},o?t().createElement("span",{className:d.arrow,ref:h}):null,t().createElement(ki(),null,u)))))},mu=(0,r.makeStyles)((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:e=>{let{hasScroll:t}=e;return{marginLeft:"16px",marginRight:t?"2px":"8px"}},replies:e=>{let{hasScroll:t}=e;return{marginLeft:"8px",marginRight:t?"2px":"8px"}},sendMessageArea:e=>{let{hasScroll:t,scrollWidth:n}=e;return{marginLeft:"8px",marginRight:t?n+2:"8px"}},messages:{maxHeight:"400px",overflowY:"auto"}}))),vu=n=>{let{uri:r,relatedObjectUris:o,objectType:i,anchorEl:a,onClose:s,open:u,comment:c}=n;const[d,f]=(0,e.useState)(0),h=mu({scrollWidth:d,hasScroll:0!==d}),p=(0,e.useRef)(null),{resolveThread:g,loading:m,sending:v}=(0,e.useContext)(mi),y=1+(null==c?void 0:c.replies.length);return t().createElement(gu,{popperRef:p,anchorEl:a,open:u,placement:"right-start",onClose:s,className:h.popper},t().createElement(ki(),{className:h.header},t().createElement(ki(),{className:h.headerInfo},t().createElement(D(),{className:h.title},l().text("Comments")),c&&!m&&t().createElement(D(),{className:h.counter},l().number(y)," ",1===y?l().text("item"):l().text("items"))),c&&!m&&t().createElement($i,{className:h.resolveButton,size:"S",onClick:()=>{g({commentId:c.commentId,uri:r})},disabled:v,showForDisabled:!0,tooltipTitle:l().text("Resolve"),icon:Oi.Z,color:"primary"})),!m&&t().createElement(ru,{popperRef:p,messagesRef:e=>{e&&f(e.offsetWidth-e.clientWidth)},classes:{root:h.collaborationItem,replies:h.replies,sendMessageArea:h.sendMessageArea,messages:h.messages,comment:h.comment},uri:r,relatedObjectUris:o,objectType:i,comment:c}))},yu=n=>{let{className:r,uri:o,objectType:i,relatedObjectUris:a,onChangePopupVisibility:u,allowOnlyOneComment:c=!1,showAlways:l=!1}=n;const d=hi(),[f,h]=(0,e.useState)(null),[p,g]=(0,e.useState)(!1),m=p&&Boolean(f),{currentComment:v,commentsMap:y,getComment:b,clearCurrentComment:w,objectTypes:E}=(0,e.useContext)(mi),x=!!y&&(!E||E.includes(i)),_=((null==y?void 0:y[o])||[]).filter((e=>{let{status:t}=e;return"resolved"!==t})).reverse(),C=!c||c&&0===_.length,S=null===v&&m;pi((()=>{u&&u(m)}),[m]);const A=(0,e.useContext)(vi),k=(0,e.useMemo)((()=>A?[...a,...A]:a),[A,a]);return x&&t().createElement("div",{className:s()(d.root,r)},C&&t().createElement(Si,{className:s()(d.addButton,{[d.showAlways]:l||S}),onClick:e=>{h(e.currentTarget),g(!0)}}),_.map((e=>{let{replies:n,commentId:r}=e;return t().createElement(xi,{ref:r===(null==v?void 0:v.commentId)?h:null,key:r,onClick:()=>(e=>{b(e),g(!0)})(r)},1+n)})),t().createElement(vu,{anchorEl:f,open:m,onClose:()=>{h(null),w(),g(!1)},uri:o,relatedObjectUris:k,objectType:i,comment:v}))},bu=(0,r.makeStyles)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),wu=(0,e.memo)((e=>{let{className:r}=e;const o=bu(),i=(0,n.useSelector)(v().selectors.getEntity),a=(0,n.useSelector)(v().selectors.getRangeColors);return t().createElement(fi,{className:s()(r,"commentsContainerVisibilityArea"),entity:i,rangeColorsConfig:a},t().createElement(ki(),{className:o.comments},t().createElement(yu,{uri:i.uri,relatedObjectUris:(0,Go.createRelatedObjectUris)(Go.CollaborationObjectTypes.ENTITY,{entityUri:i.uri}),objectType:Go.CollaborationObjectTypes.ENTITY})))}));wu.displayName="GraphProfileBand";const Eu=wu,xu=(0,r.makeStyles)((e=>({contentWrapper:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,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)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),_u=e=>{let{width:n,open:r,children:o}=e;const i=xu();return t().createElement("div",{className:i.contentWrapper,style:{width:`${r?n:0}px`}},r&&t().createElement(t().Fragment,null,o))},Cu=(0,r.makeStyles)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,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)"},active:{backgroundColor:(0,r.fade)(e.palette.primary.main,.12),"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary,"&$active":{color:e.palette.primary.main}}})));function Su(){return Su=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Su.apply(this,arguments)}const Au=e=>{let{buttonsProps:n,activeIndexId:r,className:o,onButtonClick:i}=e;const a=Cu();return t().createElement("div",{className:s()(a.container,o)},n.map((e=>{let{id:n}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["id"]);return t().createElement($i,Su({},o,{size:"S",key:n,className:s()({[a.active]:r===n},a.buttonWrapper),onClick:()=>i(n),"data-reltio-id":`reltio-profile-right-side-button-${n}`}))})))};var ku=f(2726);const Ou=(0,r.makeStyles)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function Du(){return Du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Du.apply(this,arguments)}const Lu=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return t().createElement("svg",Du({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};function Tu(){return Tu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}const Mu=(n,r,o)=>{if(n&&r){const i=(0,e.memo)(o);return e=>t().createElement(n.Consumer,null,(n=>t().createElement(i,Tu({},e,r(n,e)))))}return o},Pu=Mu(Vo,(0,u.pick)(["selectedEntity"]),(e=>{let{selectedEntity:n}=e;return t().createElement(fi,{entity:n})}));let Fu;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(Fu||(Fu={}));const Nu=(0,e.memo)((()=>{var n;const r=Ou(),[o,i]=(0,e.useState)(null),a=(0,e.useCallback)((e=>{i((t=>t===e?null:e))}),[]),s=null!==o,c=(0,e.useMemo)((()=>[{buttonProps:{id:Fu.Relationship,icon:Lu,tooltipTitle:l().text("Relationship")},content:"Relationship"},{buttonProps:{id:Fu.EntityDetails,icon:ku.Z,tooltipTitle:l().text("Entity Details")},content:"Entity Details"}]),[]);return t().createElement("div",{className:r.wrapper},t().createElement(_u,{open:s,width:480},t().createElement(Pu,null),null===(n=c[o])||void 0===n?void 0:n.content),t().createElement(Au,{buttonsProps:(0,u.pluck)("buttonProps",c),onButtonClick:a,activeIndexId:o}))}));Nu.displayName="GraphRightSidePanel";const ju=Nu;var Ru=f(4986);const Iu=e=>{let{children:n}=e;return t().createElement("div",{style:{height:"calc(100% - 5px)"}},t().createElement(Ru.SigmaContainer,{style:{background:"transparent"}},n))};var Bu=f(8996),Gu=f.n(Bu),zu=f(8833),Uu=f.n(zu),Wu=f(3660),Hu=f.n(Wu);function qu(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vu(e,t,n[t])}))}return e}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yu=t=>{let{data:n,selectedNode:r,onNodeClick:o}=t;const i=(0,Ru.useSigma)(),a=(0,Ru.useRegisterEvents)(),s=(0,Ru.useLoadGraph)(),u=(0,Ru.useSetSettings)(),[c,l]=(0,e.useState)({hoverNode:void 0,hoverNeighbours:void 0});return(0,e.useEffect)((()=>{const e=new(Gu());n.nodes.forEach((t=>{e.addNode(t.id,{label:t.name,size:21,color:"#0072CE"})})),n.edges.forEach((t=>{e.addEdge(t.from,t.to,{size:5})})),Uu().assign(e);const t=Hu().inferSettings(e);Hu().assign(e,{settings:t,iterations:600}),s(e)}),[s,n]),(0,e.useEffect)((()=>{a({enterNode:e=>{let{node:t}=e;l({hoverNode:t,hoverNeighbours:n.edges.filter((e=>e.from===t||e.to===t)).map((e=>{var r,o;const i=e.from===t?e.to:e.from;return null!==(r=null===(o=n.nodes.find((e=>e.id===i)))||void 0===o?void 0:o.id)&&void 0!==r?r:""}))})},leaveNode:()=>{l({hoverNode:void 0,hoverNeighbours:void 0})},clickNode:e=>{let{node:t}=e;o(t)}})}),[i,a,n,o]),(0,e.useEffect)((()=>{u({nodeReducer:(e,t)=>{const n=qu({},t);return c.hoverNeighbours&&!c.hoverNeighbours.includes(e)&&c.hoverNode!==e&&(n.label="",n.color="#f6f6f6"),e===r&&(n.color="red"),n},edgeReducer:(e,t)=>{const n=i.getGraph(),r=qu({},t,{hidden:!1});return c.hoverNode&&!n.hasExtremity(e,c.hoverNode)&&(r.hidden=!0),r}})}),[i,u,c,r]),null},Ku=Mu(Vo,(e=>{let{data:t,selectedEntity:n,onEntitySelect:r}=e;return{data:t,selectedNode:null==n?void 0:n.uri,onNodeSelect:r}}),(n=>{let{data:r,selectedNode:o,onNodeSelect:i}=n;const a=(0,e.useMemo)((()=>r&&(e=>{const t=new Set,n=new Set;e.entities.forEach((e=>t.add(e.uri))),e.relations.filter((e=>t.has(e.startObject.objectURI)&&t.has(e.endObject.objectURI))).forEach((e=>{n.has(`${e.endObject.objectURI}--${e.startObject.objectURI}`)||n.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.direction}`)}));const r=e.entities.map((e=>({id:e.uri,name:e.label}))),o=[];return n.forEach((e=>{const t=e.split("--");o.push({from:t[0],to:t[1]})})),{nodes:r,edges:o}})(r)),[r]);return a&&t().createElement(Iu,null,t().createElement(Yu,{data:a,selectedNode:o,onNodeClick:i}))})),$u=(0,e.memo)((()=>{const r=(0,n.useDispatch)();(0,e.useEffect)((()=>{r(m.profile.entity.actions.entityLoaded({uri:"entities/1IPdCSY1",type:"configuration/entityTypes/HCP"}))}),[r]);const o=Bo(),i=(0,n.useSelector)(v().selectors.getEntity),a=(t=>{const{graphLoading:r,data:o}=(t=>{const r=(0,n.useDispatch)(),[o,i]=(0,e.useState)(null),[a,s]=(0,e.useState)(!1),u=null==t?void 0:t.uri,c=(0,Go.isDataTenantEntity)(t);return(0,e.useEffect)((()=>(!u||(0,Go.isTempUri)(u)||c||(s(!0),(0,Go.getHops)({uri:u,deep:2,limitCreditsConsumption:!0,graphTypes:null,activenessDate:null}).then(i).catch((e=>{i(null),r(m.ui.actions.errorSet((0,Go.getRequestErrorMessage)(e,l().text("Something went wrong"))))})).finally((()=>{s(!1)}))),()=>{i(null),s(!1)})),[u,c,r]),{graphLoading:a,data:o}})(t),{selectedEntity:i,onEntitySelect:a,selectedEntityLoading:s}=((t,r)=>{const o=Wo(),i=(0,n.useDispatch)(),[a,s]=(0,e.useState)(null),c=(0,e.useRef)({}),[d,f]=(0,e.useState)(!1),h=(0,e.useCallback)((e=>{var t;if(c.current[e])return void s(c.current[e]);const n=null==r||null===(t=r.entities)||void 0===t?void 0:t.find((0,u.propEq)("uri",e));n&&s(n),f(!0),o((0,Go.getEntity)(e)).then((e=>{c.current=qo(c.current,e),s(e)})).catch((e=>{i(m.ui.actions.errorSet((0,Go.getRequestErrorMessage)(e,l().text("Something went wrong"))))})).finally((()=>{f(!1)}))}),[i,r,o]);return(0,e.useEffect)((()=>{null!=t&&t.uri&&(c.current=qo({},t),h(t.uri))}),[null==t?void 0:t.uri]),{selectedEntityLoading:d,selectedEntity:a,onEntitySelect:h}})(t,o);return{graphLoading:r,data:o,selectedEntity:i,onEntitySelect:a,selectedEntityLoading:s}})(i),{graphLoading:s}=a;return t().createElement(Vo.Provider,{value:a},t().createElement("div",{className:o.perspectiveView},s&&t().createElement(Io,null),(null==i?void 0:i.uri)&&t().createElement("div",{className:o.graphContainer},t().createElement("div",{className:o.graphWrapper},t().createElement(Eu,null),t().createElement(Ku,null)),t().createElement(ju,null))))}));$u.displayName="GraphPerspectiveView";const Zu=$u,Xu=(0,r.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),Qu=e=>{let{store:o}=e;return t().createElement(n.Provider,{store:o},t().createElement(r.StylesProvider,{generateClassName:Xu},t().createElement(Nn,{utils:Fo},t().createElement(Zu,null),t().createElement(E,{showErrorFromStore:!0}))))}})(),h})()}));
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dnd"),require("react-dom"),require("react-redux"),require("ui-i18n"));else if("function"==typeof define&&define.amd)define(["classnames","mdm-module","mdm-sdk","moment","prop-types","ramda","react","react-dnd","react-dom","react-redux","ui-i18n"],t);else{var n="object"==typeof exports?t(require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dnd"),require("react-dom"),require("react-redux"),require("ui-i18n")):t(e.classnames,e["mdm-module"],e["mdm-sdk"],e.moment,e["prop-types"],e.ramda,e.react,e["react-dnd"],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,s,l,u,c){return(()=>{var p={4180:e=>{e.exports=function(e){if(Array.isArray(e))return e}},1232:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},8111:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},1260:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8527:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},4859:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},1557:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},981:e=>{e.exports=function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},7365:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},1359:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},2220:(e,t,n)=>{var r=n(8834);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},8834:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},1068:(e,t,n)=>{var r=n(4180),o=n(981),i=n(7365);e.exports=function(e,t){return r(e)||o(e,t)||i()}},9976:e=>{e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},5182:(e,t,n)=>{var r=n(1232),o=n(1557),i=n(1359);e.exports=function(e){return r(e)||o(e)||i()}},8921:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(r){return"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?e.exports=n=function(e){return t(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},n(r)}e.exports=n},9998:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"}},5549:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},3543:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");t.Z=i},8989:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{d:"M10 17l5-5-5-5v10z"}),o.default.createElement("path",{fill:"none",d:"M0 24V0h24v24H0z"})),"ArrowRight");t.Z=i},79:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm21 19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2"}),o.default.createElement("path",{d:"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 4-3.99z"})),"BrokenImage");t.Z=i},7224:(e,t,n)=>{"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"}),"Business");t.default=i},9166:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.Z=i},8281:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.Z=i},1556:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");t.Z=i},3375:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");t.Z=i},7685:(e,t,n)=>{"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=i},4438:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"}),"CloudUpload");t.Z=i},2771:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");t.Z=i},2983:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.Z=i},7291:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.Z=i},1039:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff");t.Z=i},2726:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=i},4426:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");t.Z=i},6971:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");t.Z=i},5292:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");t.Z=i},404:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"}),"LocalOffer");t.Z=i},3054:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=i},5203:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");t.Z=i},5762:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");t.Z=i},2669:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked");t.Z=i},1853:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.Z=i},3115:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-4h-4v4zm0-14v4h4V5h-4z"}),"ViewComfy");t.Z=i},175:(e,t,n)=>{"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=i.default.memo(i.default.forwardRef((function(t,n){return i.default.createElement(a.default,(0,o.default)({ref:n},t),e)})));return n.muiName=a.default.muiName,n};var o=r(n(8527)),i=r(n(8156)),a=r(n(2298))},6898:(e,t)=>{"use strict";t.sb=function(e,t){return e.replace(/[a-z]/gi,t)},t.Pk=function(e,t,n){return function(r){if(""===r)return r;for(var o="",i=r.replace(n,""),a=0,s=0;a<e.length;){var l=e[a];l===t&&s<i.length?(o+=i[s],s+=1):o+=l,a+=1}return o}}},8884:e=>{e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var o=0;o<n;o++)e[r+o]=t[o]}}},8994:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},2196:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(7218));e.exports=t.default},7218:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},4812:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},4596:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,i,a,s,l,u,c,p,d,f,h,m=r(n(6892)),g="transform";if(t.transform=g,t.animationEnd=a,t.transitionEnd=i,t.transitionDelay=c,t.transitionTiming=u,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=h,t.animationTiming=f,t.animationDuration=d,t.animationName=p,m.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",a=0;a<o.length;a++){var s=o[a];if(s+"TransitionProperty"in n){i="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();o=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=g=o+"-"+g,t.transitionProperty=s=o+"-transition-property",t.transitionDuration=l=o+"-transition-duration",t.transitionDelay=c=o+"-transition-delay",t.transitionTiming=u=o+"-transition-timing-function",t.animationName=p=o+"-animation-name",t.animationDuration=d=o+"-animation-duration",t.animationTiming=f=o+"-animation-delay",t.animationDelay=h=o+"-animation-timing-function"}var y={transform:g,end:i,property:s,timing:u,delay:c,duration:l};t.default=y},6892:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},6463:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=void 0;var o,i=r(n(6892)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-u)),r=setTimeout(e,n);return u=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some((function(e){var t=l(e,"request");if(t in window)return a=l(e,"cancel"),s=function(e){return window[t](e)}}));var u=(new Date).getTime();(o=function(e){return s(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var c=o;t.default=c,e.exports=t.default},2699:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,a,u;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=h(l,u);for(n=0;n<u;++n)r(c[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},9869:e=>{e.exports={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}},6061:(e,t)=>{t.assign=function(e){e=e||{};var t,n,r,o=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=o.length;t<r;t++)if(o[t])for(n in o[t])e[n]=o[t][n];return e},t.validateSettings=function(e){return"linLogMode"in e&&"boolean"!=typeof e.linLogMode?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in e&&"boolean"!=typeof e.outboundAttractionDistribution?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in e&&"boolean"!=typeof e.adjustSizes?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in e&&"number"!=typeof e.edgeWeightInfluence?{message:"the `edgeWeightInfluence` setting should be a number."}:!("scalingRatio"in e)||"number"==typeof e.scalingRatio&&e.scalingRatio>=0?"strongGravityMode"in e&&"boolean"!=typeof e.strongGravityMode?{message:"the `strongGravityMode` setting should be a boolean."}:!("gravity"in e)||"number"==typeof e.gravity&&e.gravity>=0?"slowDown"in e&&!("number"==typeof e.slowDown||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&"boolean"!=typeof e.barnesHutOptimize?{message:"the `barnesHutOptimize` setting should be a boolean."}:!("barnesHutTheta"in e)||"number"==typeof e.barnesHutTheta&&e.barnesHutTheta>=0?null:{message:"the `barnesHutTheta` setting should be a number >= 0."}:{message:"the `gravity` setting should be a number >= 0."}:{message:"the `scalingRatio` setting should be a number >= 0."}},t.graphToByteArrays=function(e,t){var n,r=e.order,o=e.size,i={},a=new Float32Array(10*r),s=new Float32Array(3*o);return n=0,e.forEachNode((function(t,r){i[t]=n,a[n]=r.x,a[n+1]=r.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1+e.degree(t),a[n+7]=1,a[n+8]=r.size||1,a[n+9]=r.fixed?1:0,n+=10})),n=0,e.forEachEdge((function(e,r,o,a){s[n]=i[o],s[n+1]=i[a],s[n+2]=function(e){if(!t)return 1;var n=e[t];return("number"!=typeof n||isNaN(n))&&(n=1),n}(r),n+=3})),{nodes:a,edges:s}},t.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes((function(e,o){return o.x=t[r],o.y=t[r+1],r+=10,n?n(e,o):o}))},t.readGraphPositions=function(e,t){var n=0;e.forEachNode((function(e,r){t[n]=r.x,t[n+1]=r.y,n+=10}))},t.collectLayoutChanges=function(e,t,n){for(var r=e.nodes(),o={},i=0,a=0,s=t.length;i<s;i+=10){if(n){var l=Object.assign({},e.getNodeAttributes(r[a]));l.x=t[i],l.y=t[i+1],l=n(r[a],l),o[r[a]]={x:l.x,y:l.y}}else o[r[a]]={x:t[i],y:t[i+1]};a++}return o},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),o=new Worker(r);return t.revokeObjectURL(r),o}},3660:(e,t,n)=>{var r=n(1880),o=n(8725),i=n(6061),a=n(9869);function s(e,t,n){if(!r(t))throw new Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");"number"==typeof n&&(n={iterations:n});var s=n.iterations;if("number"!=typeof s)throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(s<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var l=n.attributes||{},u=n.weighted?l.weight||"weight":null,c="function"==typeof n.outputReducer?n.outputReducer:null,p=i.assign({},a,n.settings),d=i.validateSettings(p);if(d)throw new Error("graphology-layout-forceatlas2: "+d.message);var f,h=i.graphToByteArrays(t,u);for(f=0;f<s;f++)o(p,h.nodes,h.edges);if(!e)return i.collectLayoutChanges(t,h.nodes);i.assignLayoutChanges(t,h.nodes,c)}var l=s.bind(null,!1);l.assign=s.bind(null,!0),l.inferSettings=function(e){var t="number"==typeof e?e:e.order;return{barnesHutOptimize:t>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(t)}},e.exports=l},8725:e=>{var t=10;e.exports=function(e,n,r){var o,i,a,s,l,u,c,p,d,f,h,m,g,v,y,b,w,E,x,O,S,C,_,k=n.length,T=r.length,P=e.adjustSizes,A=e.barnesHutTheta*e.barnesHutTheta,D=[];for(a=0;a<k;a+=t)n[a+4]=n[a+2],n[a+5]=n[a+3],n[a+2]=0,n[a+3]=0;if(e.outboundAttractionDistribution){for(h=0,a=0;a<k;a+=t)h+=n[a+6];h/=k/t}if(e.barnesHutOptimize){var j,L,I,M=1/0,N=-1/0,R=1/0,F=-1/0;for(a=0;a<k;a+=t)M=Math.min(M,n[a+0]),N=Math.max(N,n[a+0]),R=Math.min(R,n[a+1]),F=Math.max(F,n[a+1]);var z=N-M,V=F-R;for(z>V?F=(R-=(z-V)/2)+z:N=(M-=(V-z)/2)+V,D[0]=-1,D[1]=(M+N)/2,D[2]=(R+F)/2,D[3]=Math.max(N-M,F-R),D[4]=-1,D[5]=-1,D[6]=0,D[7]=0,D[8]=0,o=1,a=0;a<k;a+=t)for(i=0,I=3;;){if(!(D[i+5]>=0)){if(D[i+0]<0){D[i+0]=a;break}if(D[i+5]=9*o,p=D[i+3]/2,D[(d=D[i+5])+0]=-1,D[d+1]=D[i+1]-p,D[d+2]=D[i+2]-p,D[d+3]=p,D[d+4]=d+9,D[d+5]=-1,D[d+6]=0,D[d+7]=0,D[d+8]=0,D[(d+=9)+0]=-1,D[d+1]=D[i+1]-p,D[d+2]=D[i+2]+p,D[d+3]=p,D[d+4]=d+9,D[d+5]=-1,D[d+6]=0,D[d+7]=0,D[d+8]=0,D[(d+=9)+0]=-1,D[d+1]=D[i+1]+p,D[d+2]=D[i+2]-p,D[d+3]=p,D[d+4]=d+9,D[d+5]=-1,D[d+6]=0,D[d+7]=0,D[d+8]=0,D[(d+=9)+0]=-1,D[d+1]=D[i+1]+p,D[d+2]=D[i+2]+p,D[d+3]=p,D[d+4]=D[i+4],D[d+5]=-1,D[d+6]=0,D[d+7]=0,D[d+8]=0,o+=4,j=n[D[i+0]+0]<D[i+1]?n[D[i+0]+1]<D[i+2]?D[i+5]:D[i+5]+9:n[D[i+0]+1]<D[i+2]?D[i+5]+18:D[i+5]+27,D[i+6]=n[D[i+0]+6],D[i+7]=n[D[i+0]+0],D[i+8]=n[D[i+0]+1],D[j+0]=D[i+0],D[i+0]=-1,j===(L=n[a+0]<D[i+1]?n[a+1]<D[i+2]?D[i+5]:D[i+5]+9:n[a+1]<D[i+2]?D[i+5]+18:D[i+5]+27)){if(I--){i=j;continue}I=3;break}D[L+0]=a;break}j=n[a+0]<D[i+1]?n[a+1]<D[i+2]?D[i+5]:D[i+5]+9:n[a+1]<D[i+2]?D[i+5]+18:D[i+5]+27,D[i+7]=(D[i+7]*D[i+6]+n[a+0]*n[a+6])/(D[i+6]+n[a+6]),D[i+8]=(D[i+8]*D[i+6]+n[a+1]*n[a+6])/(D[i+6]+n[a+6]),D[i+6]+=n[a+6],i=j}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=t)for(i=0;;)if(D[i+5]>=0){if(b=Math.pow(n[a+0]-D[i+7],2)+Math.pow(n[a+1]-D[i+8],2),4*(f=D[i+3])*f/b<A){if(g=n[a+0]-D[i+7],v=n[a+1]-D[i+8],!0===P?b>0?(w=m*n[a+6]*D[i+6]/b,n[a+2]+=g*w,n[a+3]+=v*w):b<0&&(w=-m*n[a+6]*D[i+6]/Math.sqrt(b),n[a+2]+=g*w,n[a+3]+=v*w):b>0&&(w=m*n[a+6]*D[i+6]/b,n[a+2]+=g*w,n[a+3]+=v*w),(i=D[i+4])<0)break;continue}i=D[i+5]}else if((u=D[i+0])>=0&&u!==a&&(b=(g=n[a+0]-n[u+0])*g+(v=n[a+1]-n[u+1])*v,!0===P?b>0?(w=m*n[a+6]*n[u+6]/b,n[a+2]+=g*w,n[a+3]+=v*w):b<0&&(w=-m*n[a+6]*n[u+6]/Math.sqrt(b),n[a+2]+=g*w,n[a+3]+=v*w):b>0&&(w=m*n[a+6]*n[u+6]/b,n[a+2]+=g*w,n[a+3]+=v*w)),(i=D[i+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=t)for(l=0;l<s;l+=t)g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-n[s+8]-n[l+8])>0?(w=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]+=g*w,n[l+3]+=v*w):b<0&&(w=100*m*n[s+6]*n[l+6],n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w):(b=Math.sqrt(g*g+v*v))>0&&(w=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w);for(d=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=t)w=0,g=n[a+0],v=n[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=m*n[a+6]*d):b>0&&(w=m*n[a+6]*d/b),n[a+2]-=g*w,n[a+3]-=v*w;for(m=1*(e.outboundAttractionDistribution?h:1),c=0;c<T;c+=3)s=r[c+0],l=r[c+1],p=r[c+2],y=Math.pow(p,e.edgeWeightInfluence),g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===P?(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)-n[s+8]-n[l+8]),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-m*y/n[s+6]):b>0&&(w=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-m*y/n[s+6]):(b=1,w=-m*y)),b>0&&(n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w);if(!0===P)for(a=0;a<k;a+=t)1!==n[a+9]&&((E=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/E,n[a+3]=10*n[a+3]/E),x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),O=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,S=.1*Math.log(1+O)/(1+Math.sqrt(x)),C=n[a+0]+n[a+2]*(S/e.slowDown),n[a+0]=C,_=n[a+1]+n[a+3]*(S/e.slowDown),n[a+1]=_);else for(a=0;a<k;a+=t)1!==n[a+9]&&(x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),O=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,S=n[a+7]*Math.log(1+O)/(1+Math.sqrt(x)),n[a+7]=Math.min(1,Math.sqrt(S*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(x)))),C=n[a+0]+n[a+2]*(S/e.slowDown),n[a+0]=C,_=n[a+1]+n[a+3]*(S/e.slowDown),n[a+1]=_);return{}}},1026:e=>{e.exports=function(){var e,t,n,r={};n=10,r.exports=function(e,t,r){var o,i,a,s,l,u,c,p,d,f,h,m,g,v,y,b,w,E,x,O,S,C,_,k=t.length,T=r.length,P=e.adjustSizes,A=e.barnesHutTheta*e.barnesHutTheta,D=[];for(a=0;a<k;a+=n)t[a+4]=t[a+2],t[a+5]=t[a+3],t[a+2]=0,t[a+3]=0;if(e.outboundAttractionDistribution){for(h=0,a=0;a<k;a+=n)h+=t[a+6];h/=k/n}if(e.barnesHutOptimize){var j,L,I,M=1/0,N=-1/0,R=1/0,F=-1/0;for(a=0;a<k;a+=n)M=Math.min(M,t[a+0]),N=Math.max(N,t[a+0]),R=Math.min(R,t[a+1]),F=Math.max(F,t[a+1]);var z=N-M,V=F-R;for(z>V?F=(R-=(z-V)/2)+z:N=(M-=(V-z)/2)+V,D[0]=-1,D[1]=(M+N)/2,D[2]=(R+F)/2,D[3]=Math.max(N-M,F-R),D[4]=-1,D[5]=-1,D[6]=0,D[7]=0,D[8]=0,o=1,a=0;a<k;a+=n)for(i=0,I=3;;){if(!(D[i+5]>=0)){if(D[i+0]<0){D[i+0]=a;break}if(D[i+5]=9*o,p=D[i+3]/2,D[(d=D[i+5])+0]=-1,D[d+1]=D[i+1]-p,D[d+2]=D[i+2]-p,D[d+3]=p,D[d+4]=d+9,D[d+5]=-1,D[d+6]=0,D[d+7]=0,D[d+8]=0,D[(d+=9)+0]=-1,D[d+1]=D[i+1]-p,D[d+2]=D[i+2]+p,D[d+3]=p,D[d+4]=d+9,D[d+5]=-1,D[d+6]=0,D[d+7]=0,D[d+8]=0,D[(d+=9)+0]=-1,D[d+1]=D[i+1]+p,D[d+2]=D[i+2]-p,D[d+3]=p,D[d+4]=d+9,D[d+5]=-1,D[d+6]=0,D[d+7]=0,D[d+8]=0,D[(d+=9)+0]=-1,D[d+1]=D[i+1]+p,D[d+2]=D[i+2]+p,D[d+3]=p,D[d+4]=D[i+4],D[d+5]=-1,D[d+6]=0,D[d+7]=0,D[d+8]=0,o+=4,j=t[D[i+0]+0]<D[i+1]?t[D[i+0]+1]<D[i+2]?D[i+5]:D[i+5]+9:t[D[i+0]+1]<D[i+2]?D[i+5]+18:D[i+5]+27,D[i+6]=t[D[i+0]+6],D[i+7]=t[D[i+0]+0],D[i+8]=t[D[i+0]+1],D[j+0]=D[i+0],D[i+0]=-1,j===(L=t[a+0]<D[i+1]?t[a+1]<D[i+2]?D[i+5]:D[i+5]+9:t[a+1]<D[i+2]?D[i+5]+18:D[i+5]+27)){if(I--){i=j;continue}I=3;break}D[L+0]=a;break}j=t[a+0]<D[i+1]?t[a+1]<D[i+2]?D[i+5]:D[i+5]+9:t[a+1]<D[i+2]?D[i+5]+18:D[i+5]+27,D[i+7]=(D[i+7]*D[i+6]+t[a+0]*t[a+6])/(D[i+6]+t[a+6]),D[i+8]=(D[i+8]*D[i+6]+t[a+1]*t[a+6])/(D[i+6]+t[a+6]),D[i+6]+=t[a+6],i=j}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=n)for(i=0;;)if(D[i+5]>=0){if(b=Math.pow(t[a+0]-D[i+7],2)+Math.pow(t[a+1]-D[i+8],2),4*(f=D[i+3])*f/b<A){if(g=t[a+0]-D[i+7],v=t[a+1]-D[i+8],!0===P?b>0?(w=m*t[a+6]*D[i+6]/b,t[a+2]+=g*w,t[a+3]+=v*w):b<0&&(w=-m*t[a+6]*D[i+6]/Math.sqrt(b),t[a+2]+=g*w,t[a+3]+=v*w):b>0&&(w=m*t[a+6]*D[i+6]/b,t[a+2]+=g*w,t[a+3]+=v*w),(i=D[i+4])<0)break;continue}i=D[i+5]}else if((u=D[i+0])>=0&&u!==a&&(b=(g=t[a+0]-t[u+0])*g+(v=t[a+1]-t[u+1])*v,!0===P?b>0?(w=m*t[a+6]*t[u+6]/b,t[a+2]+=g*w,t[a+3]+=v*w):b<0&&(w=-m*t[a+6]*t[u+6]/Math.sqrt(b),t[a+2]+=g*w,t[a+3]+=v*w):b>0&&(w=m*t[a+6]*t[u+6]/b,t[a+2]+=g*w,t[a+3]+=v*w)),(i=D[i+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=n)for(l=0;l<s;l+=n)g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-t[s+8]-t[l+8])>0?(w=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]+=g*w,t[l+3]+=v*w):b<0&&(w=100*m*t[s+6]*t[l+6],t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w):(b=Math.sqrt(g*g+v*v))>0&&(w=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w);for(d=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=n)w=0,g=t[a+0],v=t[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=m*t[a+6]*d):b>0&&(w=m*t[a+6]*d/b),t[a+2]-=g*w,t[a+3]-=v*w;for(m=1*(e.outboundAttractionDistribution?h:1),c=0;c<T;c+=3)s=r[c+0],l=r[c+1],p=r[c+2],y=Math.pow(p,e.edgeWeightInfluence),g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===P?(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)-t[s+8]-t[l+8]),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-m*y/t[s+6]):b>0&&(w=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-m*y/t[s+6]):(b=1,w=-m*y)),b>0&&(t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w);if(!0===P)for(a=0;a<k;a+=n)1!==t[a+9]&&((E=Math.sqrt(Math.pow(t[a+2],2)+Math.pow(t[a+3],2)))>10&&(t[a+2]=10*t[a+2]/E,t[a+3]=10*t[a+3]/E),x=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),O=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,S=.1*Math.log(1+O)/(1+Math.sqrt(x)),C=t[a+0]+t[a+2]*(S/e.slowDown),t[a+0]=C,_=t[a+1]+t[a+3]*(S/e.slowDown),t[a+1]=_);else for(a=0;a<k;a+=n)1!==t[a+9]&&(x=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),O=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,S=t[a+7]*Math.log(1+O)/(1+Math.sqrt(x)),t[a+7]=Math.min(1,Math.sqrt(S*(Math.pow(t[a+2],2)+Math.pow(t[a+3],2))/(1+Math.sqrt(x)))),C=t[a+0]+t[a+2]*(S/e.slowDown),t[a+0]=C,_=t[a+1]+t[a+3]*(S/e.slowDown),t[a+1]=_);return{}};var o=r.exports;self.addEventListener("message",(function(n){var r=n.data;e=new Float32Array(r.nodes),r.edges&&(t=new Float32Array(r.edges)),o(r.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},8301:(e,t,n)=>{var r=n(1026),o=n(1880),i=n(6061),a=n(9869);function s(e,t){if(t=t||{},!o(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=t.attributes||{},r=t.weighted?n.weight||"weight":null,s=i.assign({},a,t.settings),l=i.validateSettings(s);if(l)throw new Error("graphology-layout-forceatlas2/worker: "+l.message);this.worker=null,this.graph=e,this.settings=s,this.weightAttribute=r,this.matrices=null,this.running=!1,this.killed=!1,this.outputReducer="function"==typeof t.outputReducer?t.outputReducer:null,this.handleMessage=this.handleMessage.bind(this);var u=void 0,c=this;this.handleGraphUpdate=function(){c.worker&&c.worker.terminate(),u&&clearTimeout(u),u=setTimeout((function(){u=void 0,c.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}s.prototype.isRunning=function(){return this.running},s.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=i.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},s.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);i.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&i.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},s.prototype.askForIterations=function(e){var t=this.matrices,n={settings:this.settings,nodes:t.nodes.buffer},r=[t.nodes.buffer];return e&&(n.edges=t.edges.buffer,r.push(t.edges.buffer)),this.worker.postMessage(n,r),this},s.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=i.graphToByteArrays(this.graph,this.weightAttribute),this.running=!0,this.askForIterations(!0)),this},s.prototype.stop=function(){return this.running=!1,this},s.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},e.exports=s},8833:(e,t,n)=>{var r=n(6586),o=n(1880),i={dimensions:["x","y"],center:.5,scale:1};function a(e,t,n){if(!o(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");var a=(n=r(n,i)).dimensions;if(!Array.isArray(a)||2!==a.length)throw new Error("graphology-layout/random: given dimensions are invalid.");var s=n.center,l=n.scale,u=2*Math.PI,c=(s-.5)*l,p=t.order,d=a[0],f=a[1];function h(e,t){return t[d]=l*Math.cos(e*u/p)+c,t[f]=l*Math.sin(e*u/p)+c,t}var m=0;if(!e){var g={};return t.forEachNode((function(e){g[e]=h(m++,{})})),g}t.updateEachNodeAttributes((function(e,t){return h(m++,t),t}),{attributes:a})}var s=a.bind(null,!1);s.assign=a.bind(null,!0),e.exports=s},6586:e=>{e.exports=function e(t,n){t=t||{};var r,o={};for(var i in n){var a=t[i],s=n[i];!(r=s)||"object"!=typeof r||"function"==typeof r||Array.isArray(r)||r instanceof Set||r instanceof Map||r instanceof RegExp||r instanceof Date?o[i]=void 0===a?s:a:o[i]=e(a,s)}return o}},1880:e=>{e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.addUndirectedEdgeWithKey&&"function"==typeof e.dropNode&&"boolean"==typeof e.multi}},8996:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(){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 i(e,t,n){return i=o()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return i(e,arguments,n(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r(a,e)},a(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)if(arguments[t])for(var r in arguments[t])e[r]=arguments[t][r];return e};function u(e,t,n,r){var o=e._nodes.get(t),i=null;return o?i="mixed"===r?o.out&&o.out[n]||o.undirected&&o.undirected[n]:"directed"===r?o.out&&o.out[n]:o.undirected&&o.undirected[n]:i}function c(t){return null!==t&&"object"===e(t)&&"function"==typeof t.addUndirectedEdgeWithKey&&"function"==typeof t.dropNode}function p(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function d(e){var t;for(t in e)return!1;return!0}function f(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function h(e,t,n){var r={enumerable:!0,configurable:!0};"function"==typeof n?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function m(e){return!(!p(e)||e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(l=Object.assign);var g,v={exports:{}},y="object"==typeof Reflect?Reflect:null,b=y&&"function"==typeof y.apply?y.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};g=y&&"function"==typeof y.ownKeys?y.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var w=Number.isNaN||function(e){return e!=e};function E(){E.init.call(this)}v.exports=E,v.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}D(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&D(e,"error",t,{once:!0})}(e,o)}))},E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var x=10;function O(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function S(e){return void 0===e._maxListeners?E.defaultMaxListeners:e._maxListeners}function C(e,t,n,r){var o,i,a,s;if(O(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=S(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function _(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function k(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=_.bind(r);return o.listener=n,r.wrapFn=o,o}function T(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):A(o,o.length)}function P(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function A(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function D(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}function j(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");x=e}}),E.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},E.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},E.prototype.getMaxListeners=function(){return S(this)},E.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)b(s,this,t);else{var l=s.length,u=A(s,l);for(n=0;n<l;++n)b(u[n],this,t)}return!0},E.prototype.addListener=function(e,t){return C(this,e,t,!1)},E.prototype.on=E.prototype.addListener,E.prototype.prependListener=function(e,t){return C(this,e,t,!0)},E.prototype.once=function(e,t){return O(t),this.on(e,k(this,e,t)),this},E.prototype.prependOnceListener=function(e,t){return O(t),this.prependListener(e,k(this,e,t)),this},E.prototype.removeListener=function(e,t){var n,r,o,i,a;if(O(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},E.prototype.listeners=function(e){return T(this,e,!0)},E.prototype.rawListeners=function(e){return T(this,e,!1)},E.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):P.call(e,t)},E.prototype.listenerCount=P,E.prototype.eventNames=function(){return this._eventsCount>0?g(this._events):[]},"undefined"!=typeof Symbol&&(j.prototype[Symbol.iterator]=function(){return this}),j.of=function(){var e=arguments,t=e.length,n=0;return new j((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},j.empty=function(){return new j((function(){return{done:!0}}))},j.fromSequence=function(e){var t=0,n=e.length;return new j((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},j.is=function(e){return e instanceof j||"object"==typeof e&&null!==e&&"function"==typeof e.next};var L=j,I={};I.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,I.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var M=L,N=I,R=N.ARRAY_BUFFER_SUPPORT,F=N.SYMBOL_SUPPORT,z=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||R&&ArrayBuffer.isView(e)?M.fromSequence(e):"object"!=typeof e||null===e?null:F&&"function"==typeof e[Symbol.iterator]?e[Symbol.iterator]():"function"==typeof e.next?e:null}(e);if(!t)throw new Error("obliterator: target is not iterable nor a valid iterator.");return t},V=z,U=function(e,t){for(var n,r=arguments.length>1?t:1/0,o=r!==1/0?new Array(r):[],i=0,a=V(e);;){if(i===r)return o;if((n=a.next()).done)return i!==t&&(o.length=i),o;o[i++]=n.value}},B=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(a(Error)),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(B),W=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(B),G=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(B);function q(e,t){this.key=e,this.attributes=t,this.clear()}function Y(e,t){this.key=e,this.attributes=t,this.clear()}function $(e,t){this.key=e,this.attributes=t,this.clear()}function K(e,t,n,r,o){this.key=t,this.attributes=o,this.undirected=e,this.source=n,this.target=r}function Z(e,t,n,r,o,i,a){var s,l,u,c;if(r=""+r,0===n){if(!(s=e._nodes.get(r)))throw new W("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));u=o,c=i}else if(3===n){if(o=""+o,!(l=e._edges.get(o)))throw new W("Graph.".concat(t,': could not find the "').concat(o,'" edge in the graph.'));var p=l.source.key,d=l.target.key;if(r===p)s=l.target;else{if(r!==d)throw new W("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(o,'" edge (').concat(p,", ").concat(d,")."));s=l.source}u=i,c=a}else{if(!(l=e._edges.get(r)))throw new W("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));s=1===n?l.source:l.target,u=o,c=i}return[s,u,c]}q.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.in={},this.out={},this.undirected={}},Y.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.in={},this.out={}},$.prototype.clear=function(){this.undirectedDegree=0,this.undirected={}},K.prototype.attach=function(){var e="out",t="in";this.undirected&&(e=t="undirected");var n=this.source.key,r=this.target.key;this.source[e][r]=this,this.undirected&&n===r||(this.target[t][n]=this)},K.prototype.attachMulti=function(){var e="out",t="in",n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");var o=this.source[e],i=o[r];if(void 0===i)return o[r]=this,void(this.undirected&&n===r||(this.target[t][n]=this));i.previous=this,this.next=i,o[r]=this,this.target[t][n]=this},K.prototype.detach=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]},K.prototype.detachMulti=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),void 0===this.previous?void 0===this.next?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,void 0!==this.next&&(this.next.previous=this.previous))};var X=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return a.attributes[s]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){return Z(this,t,n,e,r)[0].attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return a.attributes.hasOwnProperty(s)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=Z(this,t,n,e,r,o,i),s=a[0],l=a[1],u=a[2];return s.attributes[l]=u,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=Z(this,t,n,e,r,o,i),s=a[0],l=a[1],u=a[2];if("function"!=typeof u)throw new H("Graph.".concat(t,": updater should be a function."));var c=s.attributes,p=u(c[l]);return c[l]=p,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return delete a.attributes[s],this.emit("nodeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:s}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if(!p(s))throw new H("Graph.".concat(t,": provided attributes are not a plain object."));return a.attributes=s,this.emit("nodeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if(!p(s))throw new H("Graph.".concat(t,": provided attributes are not a plain object."));return l(a.attributes,s),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:s}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if("function"!=typeof s)throw new H("Graph.".concat(t,": provided updater is not a function."));return a.attributes=s(a.attributes),this.emit("nodeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}}],Q=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=u(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes[r]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e){var r;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,i=""+arguments[1];if(!(r=u(this,o,i,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(i,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(r=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return r.attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=u(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],o=arguments[3],!(i=u(this,a,s,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes[r]=o,this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],o=arguments[3],!(i=u(this,a,s,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof o)throw new H("Graph.".concat(t,": updater should be a function."));return i.attributes[r]=o(i.attributes[r]),this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=u(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return delete o.attributes[r],this.emit("edgeAttributesUpdated",{key:o.key,type:"remove",attributes:o.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=u(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!p(r))throw new H("Graph.".concat(t,": provided attributes are not a plain object."));return o.attributes=r,this.emit("edgeAttributesUpdated",{key:o.key,type:"replace",attributes:o.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=u(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!p(r))throw new H("Graph.".concat(t,": provided attributes are not a plain object."));return l(o.attributes,r),this.emit("edgeAttributesUpdated",{key:o.key,type:"merge",attributes:o.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=u(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof r)throw new H("Graph.".concat(t,": provided updater is not a function."));return o.attributes=r(o.attributes),this.emit("edgeAttributesUpdated",{key:o.key,type:"update",attributes:o.attributes}),this}}}],J=L,ee=z,te=function(){var e=arguments,t=null,n=-1;return new J((function(){for(var r=null;;){if(null===t){if(++n>=e.length)return{done:!0};t=ee(e[n])}if(!0!==(r=t.next()).done)break;t=null}return r}))},ne=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function re(e,t,n,r){var o=!1;for(var i in t)if(i!==r){var a=t[i];if(o=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&o)return a.key}}function oe(e,t,n,r){var o,i,a,s=!1;for(var l in t)if(l!==r){o=t[l];do{if(i=o.source,a=o.target,s=n(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected),e&&s)return o.key;o=o.next}while(void 0!==o)}}function ie(e,t){var n,r=Object.keys(e),o=r.length,i=0;return new L((function(){do{if(n)n=n.next;else{if(i>=o)return{done:!0};var a=r[i++];if(a===t){n=void 0;continue}n=e[a]}}while(!n);return{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}}}))}function ae(e,t,n,r){var o=t[n];if(o){var i=o.source,a=o.target;return r(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected)&&e?o.key:void 0}}function se(e,t,n,r){var o=t[n];if(o){var i=!1;do{if(i=r(o.key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected),e&&i)return o.key;o=o.next}while(void 0!==o)}}function le(e,t){var n=e[t];return void 0!==n.next?new L((function(){if(!n)return{done:!0};var e={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:e}})):L.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function ue(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):U(e._edges.keys(),e._edges.size);for(var n,r,o="undirected"===t?e.undirectedSize:e.directedSize,i=new Array(o),a="undirected"===t,s=e._edges.values(),l=0;!0!==(n=s.next()).done;)(r=n.value).undirected===a&&(i[l++]=r.key);return i}function ce(e,t,n,r){if(0!==t.size)for(var o,i,a="mixed"!==n&&n!==t.type,s="undirected"===n,l=!1,u=t._edges.values();!0!==(o=u.next()).done;)if(i=o.value,!a||i.undirected===s){var c=i,p=c.key,d=c.attributes,f=c.source,h=c.target;if(l=r(p,d,f.key,h.key,f.attributes,h.attributes,i.undirected),e&&l)return p}}function pe(e,t){if(0===e.size)return L.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,o=e._edges.values();return new L((function(){for(var e,t;;){if((e=o.next()).done)return e;if(t=e.value,!n||t.undirected===r)break}return{value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected},done:!1}}))}function de(e,t,n,r,o,i){var a,s=t?oe:re;if("undirected"!==n){if("out"!==r&&(a=s(e,o.in,i),e&&a))return a;if("in"!==r&&(a=s(e,o.out,i,r?void 0:o.key),e&&a))return a}if("directed"!==n&&(a=s(e,o.undirected,i),e&&a))return a}function fe(e,t,n,r){var o=[];return de(!1,e,t,n,r,(function(e){o.push(e)})),o}function he(e,t,n){var r=L.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=te(r,ie(n.in))),"in"!==t&&void 0!==n.out&&(r=te(r,ie(n.out,t?void 0:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=te(r,ie(n.undirected))),r}function me(e,t,n,r,o,i,a){var s,l=n?se:ae;if("undirected"!==t){if(void 0!==o.in&&"out"!==r&&(s=l(e,o.in,i,a),e&&s))return s;if(void 0!==o.out&&"in"!==r&&(r||o.key!==i)&&(s=l(e,o.out,i,a),e&&s))return s}if("directed"!==t&&void 0!==o.undirected&&(s=l(e,o.undirected,i,a),e&&s))return s}function ge(e,t,n,r,o){var i=[];return me(!1,e,t,n,r,o,(function(e){i.push(e)})),i}function ve(e,t,n,r){var o=L.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(o=te(o,le(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(t||n.key!==r)&&(o=te(o,le(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(o=te(o,le(n.undirected,r))),o}var ye=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function be(){this.A=null,this.B=null}function we(e,t,n,r,o){for(var i in r){var a=r[i],s=a.source,l=a.target,u=s===n?l:s;if(!t||!t.has(u.key)){var c=o(u.key,u.attributes);if(e&&c)return u.key}}}function Ee(e,t,n,r,o){if("mixed"!==t){if("undirected"===t)return we(e,null,r,r.undirected,o);if("string"==typeof n)return we(e,null,r,r[n],o)}var i,a=new be;if("undirected"!==t){if("out"!==n){if(i=we(e,null,r,r.in,o),e&&i)return i;a.wrap(r.in)}if("in"!==n){if(i=we(e,a,r,r.out,o),e&&i)return i;a.wrap(r.out)}}if("directed"!==t&&(i=we(e,a,r,r.undirected,o),e&&i))return i}function xe(e,t,n){var r=Object.keys(n),o=r.length,i=0;return new L((function(){var a=null;do{if(i>=o)return e&&e.wrap(n),{done:!0};var s=n[r[i++]],l=s.source,u=s.target;a=l===t?u:l,e&&e.has(a.key)&&(a=null)}while(null===a);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}}))}function Oe(e,t,n,r,o){for(var i,a,s,l,u,c,p,d=r._nodes.values(),f=r.type;!0!==(i=d.next()).done;){var h=!1;if(a=i.value,"undirected"!==f)for(s in l=a.out){u=l[s];do{if(c=u.target,h=!0,p=o(a.key,c.key,a.attributes,c.attributes,u.key,u.attributes,u.undirected),e&&p)return u;u=u.next}while(u)}if("directed"!==f)for(s in l=a.undirected)if(!(t&&a.key>s)){u=l[s];do{if((c=u.target).key!==s&&(c=u.source),h=!0,p=o(a.key,c.key,a.attributes,c.attributes,u.key,u.attributes,u.undirected),e&&p)return u;u=u.next}while(u)}if(n&&!h&&(p=o(a.key,null,a.attributes,null,null,null,null),e&&p))return null}}function Se(e){if(!p(e))throw new H('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new H("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!p(e.attributes)||null===e.attributes))throw new H("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Ce(e){if(!p(e))throw new H('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new H("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new H("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!p(e.attributes)||null===e.attributes))throw new H("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&"boolean"!=typeof e.undirected)throw new H("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}be.prototype.wrap=function(e){null===this.A?this.A=e:null===this.B&&(this.B=e)},be.prototype.has=function(e){return null!==this.A&&e in this.A||null!==this.B&&e in this.B};var _e,ke=(_e=255&Math.floor(256*Math.random()),function(){return _e++}),Te=new Set(["directed","undirected","mixed"]),Pe=new Set(["domain","_events","_eventsCount","_maxListeners"]),Ae={allowSelfLoops:!0,multi:!1,type:"mixed"};function De(e,t,n){var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function je(e,t,n,r,o,i,a,s){if(!r&&"undirected"===e.type)throw new G("Graph.".concat(t,": you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new G("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(s&&!p(s))throw new H("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));if(i=""+i,a=""+a,s=s||{},!e.allowSelfLoops&&i===a)throw new G("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var l=e._nodes.get(i),u=e._nodes.get(a);if(!l)throw new W("Graph.".concat(t,': source node "').concat(i,'" not found.'));if(!u)throw new W("Graph.".concat(t,': target node "').concat(a,'" not found.'));var c={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new G("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==l.undirected[a]:void 0!==l.out[a]))throw new G("Graph.".concat(t,': an edge linking "').concat(i,'" to "').concat(a,"\" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option."));var d=new K(r,o,l,u,s);e._edges.set(o,d);var f=i===a;return r?(l.undirectedDegree++,u.undirectedDegree++,f&&e._undirectedSelfLoopCount++):(l.outDegree++,u.inDegree++,f&&e._directedSelfLoopCount++),e.multi?d.attachMulti():d.attach(),r?e._undirectedSize++:e._directedSize++,c.key=o,e.emit("edgeAdded",c),o}function Le(e,t,n,r,o,i,a,s,u){if(!r&&"undirected"===e.type)throw new G("Graph.".concat(t,": you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new G("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(s)if(u){if("function"!=typeof s)throw new H("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(s,'"'))}else if(!p(s))throw new H("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));var c;if(i=""+i,a=""+a,u&&(c=s,s=void 0),!e.allowSelfLoops&&i===a)throw new G("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var d,f,h=e._nodes.get(i),m=e._nodes.get(a);if(!n&&(d=e._edges.get(o))){if(!(d.source.key===i&&d.target.key===a||r&&d.source.key===a&&d.target.key===i))throw new G("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(o,'" edge with "').concat(i,'" source & "').concat(a,'" target vs. ("').concat(d.source.key,'", "').concat(d.target.key,'").'));f=d}if(f||e.multi||!h||(f=r?h.undirected[a]:h.out[a]),f){var g=[f.key,!1,!1,!1];if(u?!c:!s)return g;if(u){var v=f.attributes;f.attributes=c(v),e.emit("edgeAttributesUpdated",{type:"replace",key:f.key,attributes:f.attributes})}else l(f.attributes,s),e.emit("edgeAttributesUpdated",{type:"merge",key:f.key,attributes:f.attributes,data:s});return g}s=s||{},u&&c&&(s=c(s));var y={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new G("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));var b=!1,w=!1;h||(h=De(e,i,{}),b=!0,i===a&&(m=h,w=!0)),m||(m=De(e,a,{}),w=!0),d=new K(r,o,h,m,s),e._edges.set(o,d);var E=i===a;return r?(h.undirectedDegree++,m.undirectedDegree++,E&&e._undirectedSelfLoopCount++):(h.outDegree++,m.inDegree++,E&&e._directedSelfLoopCount++),e.multi?d.attachMulti():d.attach(),r?e._undirectedSize++:e._directedSize++,y.key=o,e.emit("edgeAdded",y),[o,!0,b,w]}function Ie(e,t){e._edges.delete(t.key);var n=t.source,r=t.target,o=t.attributes,i=t.undirected,a=n===r;i?(n.undirectedDegree--,r.undirectedDegree--,a&&e._undirectedSelfLoopCount--):(n.outDegree--,r.inDegree--,a&&e._directedSelfLoopCount--),e.multi?t.detachMulti():t.detach(),i?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:o,source:n.key,target:r.key,undirected:i})}var Me=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=l({},Ae,e)).multi)throw new H("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!Te.has(e.type))throw new H('Graph.constructor: invalid \'type\' option. Should be one of "mixed", "directed" or "undirected" but got "'.concat(e.type,'".'));if("boolean"!=typeof e.allowSelfLoops)throw new H("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?q:"directed"===e.type?Y:$;f(s(t),"NodeDataClass",r);var o="geid_"+ke()+"_",i=0;return f(s(t),"_attributes",{}),f(s(t),"_nodes",new Map),f(s(t),"_edges",new Map),f(s(t),"_directedSize",0),f(s(t),"_undirectedSize",0),f(s(t),"_directedSelfLoopCount",0),f(s(t),"_undirectedSelfLoopCount",0),f(s(t),"_edgeKeyGenerator",(function(){var e;do{e=o+i++}while(t._edges.has(e));return e})),f(s(t),"_options",e),Pe.forEach((function(e){return f(s(t),e,t[e])})),h(s(t),"order",(function(){return t._nodes.size})),h(s(t),"size",(function(){return t._edges.size})),h(s(t),"directedSize",(function(){return t._directedSize})),h(s(t),"undirectedSize",(function(){return t._undirectedSize})),h(s(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),h(s(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),h(s(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),h(s(t),"multi",t._options.multi),h(s(t),"type",t._options.type),h(s(t),"allowSelfLoops",t._options.allowSelfLoops),h(s(t),"implementation",(function(){return"graphology"})),t}t(r,n);var o=r.prototype;return o._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},o.hasNode=function(e){return this._nodes.has(""+e)},o.hasDirectedEdge=function(e,t){if("undirected"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&!r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);if(!o)return!1;var i=o.out[t];return!(!i||this.multi&&!i.size)}throw new H("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasUndirectedEdge=function(e,t){if("directed"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);if(!o)return!1;var i=o.undirected[t];return!(!i||this.multi&&!i.size)}throw new H("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasEdge=function(e,t){if(1===arguments.length){var n=""+e;return this._edges.has(n)}if(2===arguments.length){e=""+e,t=""+t;var r=this._nodes.get(e);if(!r)return!1;var o=void 0!==r.out&&r.out[t];return o||(o=void 0!==r.undirected&&r.undirected[t]),!(!o||this.multi&&!o.size)}throw new H("Graph.hasEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new G("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");var n=this._nodes.get(e);if(!n)throw new W('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W('Graph.directedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||void 0;return r?r.key:void 0}},o.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new G("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");var n=this._nodes.get(e);if(!n)throw new W('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W('Graph.undirectedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.undirected&&n.undirected[t]||void 0;return r?r.key:void 0}},o.edge=function(e,t){if(this.multi)throw new G("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W('Graph.edge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||n.undirected&&n.undirected[t]||void 0;if(r)return r.key},o.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},o.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},o.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},o.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},o.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)||"directed"!==this.type&&t in n.undirected},o.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areInboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in||"directed"!==this.type&&t in n.undirected},o.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areOutboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out||"directed"!==this.type&&t in n.undirected},o.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},o.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},o.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},o.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},o.inboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.inboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree),n},o.outboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.outboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.outDegree),n},o.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.degree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree),n},o.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.in[e],r=n?this.multi?n.size:1:0;return t.inDegree-r},o.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.out[e],r=n?this.multi?n.size:1:0;return t.outDegree-r},o.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.out[e],r=n?this.multi?n.size:1:0;return t.inDegree+t.outDegree-2*r},o.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("directed"===this.type)return 0;var n=t.undirected[e],r=n?this.multi?n.size:1:0;return t.undirectedDegree-2*r},o.inboundDegreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new W('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.inDegree,o+=(t=n.out[e])?this.multi?t.size:1:0),r-o},o.outboundDegreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new W('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.outDegree,o+=(t=n.in[e])?this.multi?t.size:1:0),r-o},o.degreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new W('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.inDegree+n.outDegree,o+=2*((t=n.out[e])?this.multi?t.size:1:0)),r-o},o.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},o.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},o.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},o.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new W('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,o=n.target.key;if(e===r)return o;if(e===o)return r;throw new W('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(o,")."))},o.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new W('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},o.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},o.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},o.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},o.addNode=function(e,t){var n=function(e,t,n){if(n&&!p(n))throw new H('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new G('Graph.addNode: the "'.concat(t,'" node already exist in the graph.'));var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}(this,e,t);return n.key},o.mergeNode=function(e,t){if(t&&!p(t))throw new H('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(l(n.attributes,t),this.emit("nodeAttributesUpdated",{type:"merge",key:e,attributes:n.attributes,data:t})),[e,!1]):(n=new this.NodeDataClass(e,t),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:t}),[e,!0])},o.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new H('Graph.updateNode: invalid updater function. Expecting a function but got "'.concat(t,'"'));e=""+e;var n=this._nodes.get(e);if(n){if(t){var r=n.attributes;n.attributes=t(r),this.emit("nodeAttributesUpdated",{type:"replace",key:e,attributes:n.attributes})}return[e,!1]}var o=t?t({}):{};return n=new this.NodeDataClass(e,o),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:o}),[e,!0]},o.dropNode=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new W('Graph.dropNode: could not find the "'.concat(e,'" node in the graph.'));if("undirected"!==this.type){for(var r in n.out){t=n.out[r];do{Ie(this,t),t=t.next}while(t)}for(var o in n.in){t=n.in[o];do{Ie(this,t),t=t.next}while(t)}}if("directed"!==this.type)for(var i in n.undirected){t=n.undirected[i];do{Ie(this,t),t=t.next}while(t)}this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},o.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=u(this,n,r,this.type)))throw new W('Graph.dropEdge: could not find the "'.concat(n,'" -> "').concat(r,'" edge in the graph.'))}else if(e=""+e,!(t=this._edges.get(e)))throw new W('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));return Ie(this,t),this},o.dropDirectedEdge=function(e,t){if(arguments.length<2)throw new G("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new G("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=u(this,e=""+e,t=""+t,"directed");if(!n)throw new W('Graph.dropDirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Ie(this,n),this},o.dropUndirectedEdge=function(e,t){if(arguments.length<2)throw new G("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new G("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=u(this,e,t,"undirected");if(!n)throw new W('Graph.dropUndirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Ie(this,n),this},o.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},o.clearEdges=function(){for(var e,t=this._nodes.values();!0!==(e=t.next()).done;)e.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")},o.getAttribute=function(e){return this._attributes[e]},o.getAttributes=function(){return this._attributes},o.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},o.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.updateAttribute=function(e,t){if("function"!=typeof t)throw new H("Graph.updateAttribute: updater should be a function.");var n=this._attributes[e];return this._attributes[e]=t(n),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},o.replaceAttributes=function(e){if(!p(e))throw new H("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},o.mergeAttributes=function(e){if(!p(e))throw new H("Graph.mergeAttributes: provided attributes are not a plain object.");return l(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},o.updateAttributes=function(e){if("function"!=typeof e)throw new H("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},o.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new H("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!m(t))throw new H("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o=this._nodes.values();!0!==(n=o.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},o.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new H("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!m(t))throw new H("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o,i,a=this._edges.values();!0!==(n=a.next()).done;)o=(r=n.value).source,i=r.target,r.attributes=e(r.key,r.attributes,o.key,i.key,o.attributes,i.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},o.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new H("Graph.forEachAdjacencyEntry: expecting a callback.");Oe(!1,!1,!1,this,e)},o.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new H("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");Oe(!1,!1,!0,this,e)},o.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new H("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");Oe(!1,!0,!1,this,e)},o.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new H("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");Oe(!1,!0,!0,this,e)},o.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):U(this._nodes.keys(),this._nodes.size)},o.forEachNode=function(e){if("function"!=typeof e)throw new H("Graph.forEachNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)},o.findNode=function(e){if("function"!=typeof e)throw new H("Graph.findNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return n.key},o.mapNodes=function(e){if("function"!=typeof e)throw new H("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),o=new Array(this.order),i=0;!0!==(t=r.next()).done;)n=t.value,o[i++]=e(n.key,n.attributes);return o},o.someNode=function(e){if("function"!=typeof e)throw new H("Graph.someNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return!0;return!1},o.everyNode=function(e){if("function"!=typeof e)throw new H("Graph.everyNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(!e((n=t.value).key,n.attributes))return!1;return!0},o.filterNodes=function(e){if("function"!=typeof e)throw new H("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),o=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&o.push(n.key);return o},o.reduceNodes=function(e,t){if("function"!=typeof e)throw new H("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new H("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");for(var n,r,o=t,i=this._nodes.values();!0!==(n=i.next()).done;)o=e(o,(r=n.value).key,r.attributes);return o},o.nodeEntries=function(){var e=this._nodes.values();return new L((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},o.export=function(){var e=new Array(this._nodes.size),t=0;this._nodes.forEach((function(n,r){e[t++]=function(e,t){var n={key:e};return d(t.attributes)||(n.attributes=l({},t.attributes)),n}(r,n)}));var n=new Array(this._edges.size);return t=0,this._edges.forEach((function(e,r){n[t++]=function(e,t){var n={key:e,source:t.source.key,target:t.target.key};return d(t.attributes)||(n.attributes=l({},t.attributes)),t.undirected&&(n.undirected=!0),n}(r,e)})),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:e,edges:n}},o.import=function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(c(e))return e.forEachNode((function(e,t){s?a.mergeNode(e,t):a.addNode(e,t)})),e.forEachEdge((function(e,t,n,r,o,i,l){s?l?a.mergeUndirectedEdgeWithKey(e,n,r,t):a.mergeDirectedEdgeWithKey(e,n,r,t):l?a.addUndirectedEdgeWithKey(e,n,r,t):a.addDirectedEdgeWithKey(e,n,r,t)})),this;if(!p(e))throw new H("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!p(e.attributes))throw new H("Graph.import: invalid attributes. Expecting a plain object.");s?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(r=e.nodes,!Array.isArray(r))throw new H("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=r.length;t<n;t++){Se(o=r[t]);var l=o,u=l.key,d=l.attributes;s?this.mergeNode(u,d):this.addNode(u,d)}}if(e.edges){if(r=e.edges,!Array.isArray(r))throw new H("Graph.import: invalid edges. Expecting an array.");for(t=0,n=r.length;t<n;t++){Ce(i=r[t]);var f=i,h=f.source,m=f.target,g=f.attributes,v=f.undirected,y=void 0!==v&&v;"key"in i?(s?y?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:y?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,i.key,h,m,g):(s?y?this.mergeUndirectedEdge:this.mergeDirectedEdge:y?this.addUndirectedEdge:this.addDirectedEdge).call(this,h,m,g)}}return this},o.nullCopy=function(e){var t=new r(l({},this._options,e));return t.replaceAttributes(l({},this.getAttributes())),t},o.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=l({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},o.copy=function(e){if("string"==typeof(e=e||{}).type&&e.type!==this.type&&"mixed"!==e.type)throw new G('Graph.copy: cannot create an incompatible copy from "'.concat(this.type,'" type to "').concat(e.type,'" because this would mean losing information about the current graph.'));if("boolean"==typeof e.multi&&e.multi!==this.multi&&!0!==e.multi)throw new G("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if("boolean"==typeof e.allowSelfLoops&&e.allowSelfLoops!==this.allowSelfLoops&&!0!==e.allowSelfLoops)throw new G("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");for(var t,n,r=this.emptyCopy(e),o=this._edges.values();!0!==(t=o.next()).done;)je(r,"copy",!1,(n=t.value).undirected,n.key,n.source.key,n.target.key,l({},n.attributes));return r},o.toJSON=function(){return this.export()},o.toString=function(){return"[object Graph]"},o.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},o={};this._edges.forEach((function(e,n){var i,a=e.undirected?"--":"->",s="",l=e.source.key,u=e.target.key;e.undirected&&l>u&&(i=l,l=u,u=i);var c="(".concat(l,")").concat(a,"(").concat(u,")");n.startsWith("geid_")?t.multi&&(void 0===o[c]?o[c]=0:o[c]++,s+="".concat(o[c],". ")):s+="[".concat(n,"]: "),r[s+=c]=e.attributes}));var i={};for(var a in this)this.hasOwnProperty(a)&&!Pe.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(i[a]=this[a]);return i.attributes=this._attributes,i.nodes=n,i.edges=r,f(i,"constructor",this.constructor),i},r}(v.exports.EventEmitter);"undefined"!=typeof Symbol&&(Me.prototype[Symbol.for("nodejs.util.inspect.custom")]=Me.prototype.inspect),[{name:function(e){return"".concat(e,"Edge")},generateKey:!0},{name:function(e){return"".concat(e,"DirectedEdge")},generateKey:!0,type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdge")},generateKey:!0,type:"undirected"},{name:function(e){return"".concat(e,"EdgeWithKey")}},{name:function(e){return"".concat(e,"DirectedEdgeWithKey")},type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdgeWithKey")},type:"undirected"}].forEach((function(e){["add","merge","update"].forEach((function(t){var n=e.name(t),r="add"===t?je:Le;e.generateKey?Me.prototype[n]=function(o,i,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,o,i,a,"update"===t)}:Me.prototype[n]=function(o,i,a,s){return r(this,n,!1,"undirected"===(e.type||this.type),o,i,a,s,"update"===t)}}))})),function(e){X.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Node"),0),r(e,n("Source"),1),r(e,n("Target"),2),r(e,n("Opposite"),3)}))}(Me),function(e){Q.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Edge"),"mixed"),r(e,n("DirectedEdge"),"directed"),r(e,n("UndirectedEdge"),"undirected")}))}(Me),function(e){ne.forEach((function(t){!function(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return ue(this,r);if(1===arguments.length){e=""+e;var i=this._nodes.get(e);if(void 0===i)throw new W("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return fe(this.multi,"mixed"===r?this.type:r,o,i)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new W("Graph.".concat(n,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W("Graph.".concat(n,': could not find the "').concat(t,'" target node in the graph.'));return ge(r,this.multi,o,a,t)}throw new H("Graph.".concat(n,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return ce(!1,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return de(!1,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return me(!1,r,this.multi,o,s,t,n)}throw new H("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){var e,t=Array.prototype.slice.call(arguments),n=t.pop();if(0===t.length){var o=0;"directed"!==r&&(o+=this.undirectedSize),"undirected"!==r&&(o+=this.directedSize),e=new Array(o);var a=0;t.push((function(t,r,o,i,s,l,u){e[a++]=n(t,r,o,i,s,l,u)}))}else e=[],t.push((function(t,r,o,i,a,s,l){e.push(n(t,r,o,i,a,s,l))}));return this[i].apply(this,t),e};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=[];return e.push((function(e,r,o,i,a,s,l){t(e,r,o,i,a,s,l)&&n.push(e)})),this[i].apply(this,e),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new H("Graph.".concat(l,": invalid number of arguments (expecting 2, 3 or 4 and got ").concat(n.length,")."));if("function"==typeof n[n.length-1]&&"function"!=typeof n[n.length-2])throw new H("Graph.".concat(l,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));2===n.length?(e=n[0],t=n[1],n=[]):3===n.length?(e=n[1],t=n[2],n=[n[0]]):4===n.length&&(e=n[2],t=n[3],n=[n[0],n[1]]);var r=t;return n.push((function(t,n,o,i,a,s,l){r=e(r,t,n,o,i,a,s,l)})),this[i].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return ce(!0,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return de(!0,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return me(!0,r,this.multi,o,s,t,n)}throw new H("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))};var a="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,s){return t(e,n,r,o,i,a,s)})),!!this[i].apply(this,e)};var s="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,s){return!t(e,n,r,o,i,a,s)})),!this[i].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return L.empty();if(!arguments.length)return pe(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return he(r,o,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ve(r,o,a,t)}throw new H("Graph.".concat(i,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(Me),function(e){ye.forEach((function(t){(function(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new W("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return Object.keys(n.undirected);if("string"==typeof t)return Object.keys(n[t])}var r=[];return Ee(!1,e,t,n,(function(e){r.push(e)})),r}("mixed"===r?this.type:r,o,t)}})(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));Ee(!1,"mixed"===r?this.type:r,o,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[i](e,(function(e,r){n.push(t(e,r))})),n};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(e,t){var n=[];return this[i](e,(function(e,r){t(e,r)&&n.push(e)})),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(e,t,n){if(arguments.length<3)throw new H("Graph.".concat(l,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));var r=n;return this[i](e,(function(e,n){r=t(r,e,n)})),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n[0].toUpperCase()+n.slice(1,-1),a="find"+i;e.prototype[a]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new W("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return Ee(!0,"mixed"===r?this.type:r,o,n,t)}};var s="some"+i;e.prototype[s]=function(e,t){return!!this[a](e,t)};var l="every"+i;e.prototype[l]=function(e,t){return!this[a](e,(function(e,n){return!t(e,n)}))}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return L.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return xe(null,n,n.undirected);if("string"==typeof t)return xe(null,n,n[t])}var r=L.empty(),o=new be;return"undirected"!==e&&("out"!==t&&(r=te(r,xe(o,n,n.in))),"in"!==t&&(r=te(r,xe(o,n,n.out)))),"directed"!==e&&(r=te(r,xe(o,n,n.undirected))),r}("mixed"===r?this.type:r,o,t)}}(e,t)}))}(Me);var Ne=function(e){function n(t){var n=l({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new H("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new H('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Me),Re=function(e){function n(t){var n=l({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new H("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new H('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Me),Fe=function(e){function n(t){var n=l({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new H("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(Me),ze=function(e){function n(t){var n=l({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new H("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new H('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Me),Ve=function(e){function n(t){var n=l({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new H("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new H('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Me);function Ue(e){e.from=function(t,n){var r=l({},t.options,n),o=new e(r);return o.import(t),o}}return Ue(Me),Ue(Ne),Ue(Re),Ue(Fe),Ue(ze),Ue(Ve),Me.Graph=Me,Me.DirectedGraph=Ne,Me.UndirectedGraph=Re,Me.MultiGraph=Fe,Me.MultiDirectedGraph=ze,Me.MultiUndirectedGraph=Ve,Me.InvalidArgumentsGraphError=H,Me.NotFoundGraphError=W,Me.UsageGraphError=G,Me}()},7677:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},9612:(e,t,n)=>{var r=n(2118),o=n(6909),i=n(8138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},235:(e,t,n)=>{var r=n(3945),o=n(1846),i=n(8028),a=n(2344),s=n(4769);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),o=n(6417),i=n(6928),a=n(9493),s=n(4150);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},343:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3324:(e,t,n)=>{var r=n(7297),o=n(3812);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},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)}},6840:(e,t,n)=>{var r=n(1049),o=n(7394),i=n(9259),a=n(7035),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,d=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},1054:(e,t,n)=>{var r=n(857),o=n(343),i=n(6152),a=n(4795),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7297:(e,t,n)=>{var r=n(6152),o=n(1401),i=n(4452),a=n(6188);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),o=n(8109);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},1401:(e,t,n)=>{var r=n(6152),o=n(4795),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,o=n(4019),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),o=n(235),i=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},7777:(e,t,n)=>{var r=n(733);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},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},4452:(e,t,n)=>{var r=n(7777),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},3812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2579:(e,t,n)=>{var r=n(3324);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},6152:e=>{var t=Array.isArray;e.exports=t},1049:(e,t,n)=>{var r=n(3366),o=n(9259);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},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)}},733:(e,t,n)=>{var r=n(6738);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},6188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},8697:e=>{for(var t=self.crypto||self.msCrypto,n="-_",r=36;r--;)n+=r.toString(36);for(r=36;r---10;)n+=r.toString(36).toUpperCase();e.exports=function(e){var o="",i=t.getRandomValues(new Uint8Array(e||21));for(r=e||21;r--;)o+=n[63&i[r]];return o}},500:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8156),a=p(i),s=p(n(5099)),l=p(n(3666)),u=p(n(2705)),c=n(9680);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(){return!0},f=function(e){function t(e){var n=e.alwaysRenderSuggestions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return h.call(r),r.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},r.justPressedUpDown=!1,r.justMouseEntered=!1,r.pressedSuggestion=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,l.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,l.default)(r,e.suggestions)&&r.length>0&&i)this.highlightFirstSuggestion();else if(o){var a=this.getHighlightedSuggestion();a!=t.highlightedSuggestion&&o({suggestion:a})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(o){var i=o.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,i=n.getSectionSuggestions;return o?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,i=r.onChange;t!==o&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value;return t.length>0&&r(o)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,i=t.onSuggestionsFetchRequested,s=t.renderSuggestion,l=t.inputProps,p=t.multiSection,f=t.renderSectionTitle,h=t.id,m=t.getSectionSuggestions,g=t.theme,v=t.getSuggestionValue,y=t.alwaysRenderSuggestions,b=t.highlightFirstSuggestion,w=this.state,E=w.isFocused,x=w.isCollapsed,O=w.highlightedSectionIndex,S=w.highlightedSuggestionIndex,C=w.valueBeforeUpDown,_=y?d:this.props.shouldRenderSuggestions,k=l.value,T=l.onFocus,P=l.onKeyDown,A=this.willRenderSuggestions(this.props),D=y||E&&!x&&A,j=D?n:[],L=r({},l,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=_(k);e.setState({isFocused:!0,isCollapsed:!n}),T&&T(t),n&&i({value:k,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,o=_(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(r({},b?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!o})),o?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(x)_(k)&&(i({value:k,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var a,s=r.newHighlightedSectionIndex,l=r.newHighlightedItemIndex;a=null===l?null===C?k:C:e.getSuggestionValueByIndex(s,l),e.updateHighlightedSuggestion(s,l,k),e.maybeCallOnChange(t,a,40===o?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(D&&!y&&e.closeSuggestions(),null!=u){var c=v(u);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:c,suggestionIndex:S,sectionIndex:O,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:D&&t.preventDefault();var p=D&&!y;null===C?p||(e.maybeCallOnChange(t,"","escape"),_("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,C,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}P&&P(t)}}),I={query:this.getQuery()};return a.default.createElement(u.default,{multiSection:p,items:j,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:I,renderSectionTitle:f,getSectionItems:m,highlightedSectionIndex:O,highlightedItemIndex:S,inputProps:L,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(g),id:h,ref:this.storeAutowhateverRef})}}]),t}(i.Component);f.propTypes={suggestions:s.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){if("function"!=typeof e[t])throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:s.default.func,onSuggestionHighlighted:s.default.func,renderInputComponent:s.default.func,renderSuggestionsContainer:s.default.func,getSuggestionValue:s.default.func.isRequired,renderSuggestion:s.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:s.default.func,alwaysRenderSuggestions:s.default.bool,multiSection:s.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:s.default.bool,highlightFirstSuggestion:s.default.bool,theme:s.default.object,id:s.default.string},f.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return a.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1"};var h=function(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var r=n.sectionIndex,o=n.itemIndex;e.updateHighlightedSuggestion(r,o),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var r=e.props,o=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,a=r.onSuggestionsFetchRequested;i&&i(t,n),o?a({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,i=e.getSuggestionIndices(e.findSuggestionElement(t.target)),a=i.sectionIndex,s=i.suggestionIndex,l=e.getSuggestion(a,s),u=e.props.getSuggestionValue(l);e.maybeCallOnChange(t,u,"click"),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:u,suggestionIndex:s,sectionIndex:a,method:"click"}),r||e.closeSuggestions(),!0===o?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,r=t.shouldRenderSuggestions,o=n.value,i=n.onBlur,a=e.getHighlightedSuggestion(),s=r(o);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!s}),i&&i(e.blurEvent,{highlightedSuggestion:a})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,r=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:r,query:e.getQuery()})}};t.default=f},359:(e,t,n)=>{"use strict";e.exports=n(500).default},9680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},1756:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8156),a=d(i),s=d(n(5099)),l=d(n(3145)),u=d(n(4735)),c=d(n(4355)),p=d(n(367));function d(e){return e&&e.__esModule?e:{default:e}}var f={},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,r=t.inputProps,o=t.highlightedSectionIndex,i=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var a="ArrowDown"===e.key?"next":"prev",s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n.sectionIterator[a]([o,i]),2),l=s[0],u=s[1];r.onKeyDown(e,{newHighlightedSectionIndex:l,newHighlightedItemIndex:u});break;default:r.onKeyDown(e,{highlightedSectionIndex:o,highlightedItemIndex:i})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,l.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,u.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,o=n.items,i=n.renderItem,s=n.renderItemData,l=n.renderSectionTitle,u=n.highlightedSectionIndex,d=n.highlightedItemIndex,f=n.itemProps;return o.map((function(n,o){var h="react-autowhatever-"+r+"-",m=h+"section-"+o+"-",g=0===o;return a.default.createElement("div",t(m+"container","sectionContainer",g&&"sectionContainerFirst"),a.default.createElement(c.default,{section:n,renderSectionTitle:l,theme:t,sectionKeyPrefix:m}),a.default.createElement(p.default,{items:e.sectionsItems[o],itemProps:f,renderItem:i,renderItemData:s,sectionIndex:o,highlightedItemIndex:u===o?d:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:h,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,o=n.renderItem,i=n.renderItemData,s=n.highlightedSectionIndex,l=n.highlightedItemIndex,u=n.itemProps;return a.default.createElement(p.default,{items:e,itemProps:u,renderItem:o,renderItemData:i,highlightedItemIndex:null===s?l:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+r+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,o=t.multiSection,i=t.renderInputComponent,s=t.renderItemsContainer,l=t.highlightedSectionIndex,u=t.highlightedItemIndex,c=this.state.isInputFocused,p=o?this.renderSections():this.renderItems(),d=null!==p,f=this.getItemId(l,u),h="react-autowhatever-"+n,m=r({role:"combobox","aria-haspopup":"listbox","aria-owns":h,"aria-expanded":d},e("react-autowhatever-"+n+"-container","container",d&&"containerOpen"),this.props.containerProps),g=i(r({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":h,"aria-activedescendant":f},e("react-autowhatever-"+n+"-input","input",d&&"inputOpen",c&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=s({containerProps:r({id:h,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",d&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:p});return a.default.createElement("div",m,g,v)}}]),t}(i.Component);h.propTypes={id:s.default.string,multiSection:s.default.bool,renderInputComponent:s.default.func,renderItemsContainer:s.default.func,items:s.default.array.isRequired,renderItem:s.default.func,renderItemData:s.default.object,renderSectionTitle:s.default.func,getSectionItems:s.default.func,containerProps:s.default.object,inputProps:s.default.object,itemProps:s.default.oneOfType([s.default.object,s.default.func]),highlightedSectionIndex:s.default.number,highlightedItemIndex:s.default.number,theme:s.default.oneOfType([s.default.object,s.default.array])},h.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return a.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return a.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:f,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:f,inputProps:f,itemProps:f,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=h},5567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8156),a=u(i),s=u(n(5099)),l=u(n(9952));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,r;c(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.storeItemReference=function(e){null!==e&&(r.item=e)},r.onMouseEnter=function(e){var t=r.props,n=t.sectionIndex,o=t.itemIndex;r.props.onMouseEnter(e,{sectionIndex:n,itemIndex:o})},r.onMouseLeave=function(e){var t=r.props,n=t.sectionIndex,o=t.itemIndex;r.props.onMouseLeave(e,{sectionIndex:n,itemIndex:o})},r.onMouseDown=function(e){var t=r.props,n=t.sectionIndex,o=t.itemIndex;r.props.onMouseDown(e,{sectionIndex:n,itemIndex:o})},r.onClick=function(e){var t=r.props,n=t.sectionIndex,o=t.itemIndex;r.props.onClick(e,{sectionIndex:n,itemIndex:o})},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,o=e.renderItem,i=e.renderItemData,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete s.sectionIndex,delete s.itemIndex,"function"==typeof s.onMouseEnter&&(s.onMouseEnter=this.onMouseEnter),"function"==typeof s.onMouseLeave&&(s.onMouseLeave=this.onMouseLeave),"function"==typeof s.onMouseDown&&(s.onMouseDown=this.onMouseDown),"function"==typeof s.onClick&&(s.onClick=this.onClick),a.default.createElement("li",r({role:"option"},s,{ref:this.storeItemReference}),o(n,r({isHighlighted:t},i)))}}]),t}(i.Component);d.propTypes={sectionIndex:s.default.number,isHighlighted:s.default.bool.isRequired,itemIndex:s.default.number.isRequired,item:s.default.any.isRequired,renderItem:s.default.func.isRequired,renderItemData:s.default.object.isRequired,onMouseEnter:s.default.func,onMouseLeave:s.default.func,onMouseDown:s.default.func,onClick:s.default.func},t.default=d},367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8156),a=c(i),s=c(n(5099)),l=c(n(5567)),u=c(n(9952));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.storeHighlightedItemReference=function(e){r.props.onHighlightedItemChange(null===e?null:e.item)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return(0,u.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,i=t.renderItem,s=t.renderItemData,u=t.sectionIndex,c=t.highlightedItemIndex,p=t.getItemId,d=t.theme,f=t.keyPrefix,h=null===u?f:f+"section-"+u+"-",m="function"==typeof o;return a.default.createElement("ul",r({role:"listbox"},d(h+"items-list","itemsList")),n.map((function(t,n){var f=0===n,g=n===c,v=h+"item-"+n,y=m?o({sectionIndex:u,itemIndex:n}):o,b=r({id:p(u,n),"aria-selected":g},d(v,"item",f&&"itemFirst",g&&"itemHighlighted"),y);return g&&(b.ref=e.storeHighlightedItemReference),a.default.createElement(l.default,r({},b,{sectionIndex:u,isHighlighted:g,itemIndex:n,item:t,renderItem:i,renderItemData:s}))})))}}]),t}(i.Component);f.propTypes={items:s.default.array.isRequired,itemProps:s.default.oneOfType([s.default.object,s.default.func]),renderItem:s.default.func.isRequired,renderItemData:s.default.object.isRequired,sectionIndex:s.default.number,highlightedItemIndex:s.default.number,onHighlightedItemChange:s.default.func.isRequired,getItemId:s.default.func.isRequired,theme:s.default.func.isRequired,keyPrefix:s.default.string.isRequired},f.defaultProps={sectionIndex:null},t.default=f},4355:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(8156),i=l(o),a=l(n(5099)),s=l(n(9952));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,o=e.sectionKeyPrefix,a=n(t);return a?i.default.createElement("div",r(o+"title","sectionTitle"),a):null}}]),t}(o.Component);p.propTypes={section:a.default.any.isRequired,renderSectionTitle:a.default.func.isRequired,theme:a.default.func.isRequired,sectionKeyPrefix:a.default.string.isRequired},t.default=p},9952:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!0;var a={},s=void 0,l=void 0;for(s=0,l=r.length;s<l;s++)a[r[s]]=!0;for(s=0,l=o.length;s<l;s++){var u=o[s],c=e[u],p=t[u];if(c!==p){if(!a[u]||null===c||null===p||"object"!==(void 0===c?"undefined":n(c))||"object"!==(void 0===p?"undefined":n(p)))return!0;var d=Object.keys(c),f=Object.keys(p);if(d.length!==f.length)return!0;for(var h=0,m=d.length;h<m;h++){var g=d[h];if(c[g]!==p[g])return!0}}}return!1}},2705:(e,t,n)=>{"use strict";e.exports=n(1756).default},8018:(e,t,n)=>{"use strict";t.ZP=void 0;var r=d(n(1531)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(8156)),i=d(n(8096)),a=d(n(7224)),s=d(n(5099)),l=d(n(835)),u=d(n(7339)),c=d(n(8310));function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=d(n(9998)).default[500],x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,n,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=b(e);if(t()){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}(s);function s(){var e;h(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(y(e=i.call.apply(i,[this].concat(n))),"state",{error:!1}),w(y(e),"handleError",(function(){e.setState({error:!0})})),e}return t=s,(n=[{key:"render",value:function(){var e=this.props,t=e.entityType,n=e.storagePath,i=e.classes,s=e.backgroundColor,u=e.color,p=e.className,d=t.typeIcon||t.typeImage;if(d&&!this.state.error)return o.default.createElement(r.default,{className:(0,c.default)(p,i.avatar),style:{border:"2px solid ".concat(t.typeColor||E),backgroundColor:"#FFFFFF"},src:n+d,imgProps:{onError:this.handleError}});var f=(0,l.default)(t);return o.default.createElement(r.default,{className:(0,c.default)(p,i.avatar),style:{border:"2px solid ".concat(t.typeColor||E),backgroundColor:s||t.typeColor||E,color:u}},f&&f.charAt(0)||o.default.createElement(a.default,null))}}])&&m(t.prototype,n),s}(o.PureComponent);w(x,"propTypes",{entityType:s.default.shape({typeColor:s.default.string,typeIcon:s.default.string,typeImage:s.default.string,label:s.default.string,uri:s.default.string}),className:s.default.string,classes:s.default.shape({avatar:s.default.string}),storagePath:s.default.string,backgroundColor:s.default.string,color:s.default.string}),w(x,"defaultProps",{storagePath:"https://reltio-images.s3.amazonaws.com/api/",entityType:{},color:"#FFFFFF"});var O=(0,i.default)(u.default)(x);t.ZP=O},7339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={avatar:{"& img":{display:"flex",flexDirection:"row",alignItems:"center","&::before":{width:"100%"}}}}},4660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(8156)),o=c(n(5099)),i=c(n(6929)),a=c(n(683)),s=c(n(7685)),l=c(n(5751)),u=c(n(8310));function c(e){return e&&e.__esModule?e:{default:e}}function p(e){var t=e.classes,n=e.title,o=e.message;return r.default.createElement("div",null,r.default.createElement("span",{className:t.errorTitle},n),r.default.createElement("span",{className:t.errorMessage},o))}p.defaultProps={title:l.default.text("Error:"),message:l.default.text("Something was wrong"),classes:{}},p.propTypes={title:o.default.string,message:o.default.string,classes:o.default.object};var d=function(e){var t,n=e.error,o=e.onClose,c=e.style,d=e.classes,f=e.className,h=l.default.text("Close");if(r.default.isValidElement(n))t=n;else{var m=n||{},g=m.title,v=m.message;t=r.default.createElement(p,{classes:d,title:g,message:v})}return r.default.createElement("div",{className:(0,u.default)(d.errorBlock,f),style:c},r.default.createElement("div",{className:d.descriptionBlock},t),r.default.createElement("div",{className:d.closeIconContainer},r.default.createElement(i.default,{title:h,placement:"bottom"},r.default.createElement(a.default,{onClick:o,"aria-label":h},r.default.createElement(s.default,null)))))};d.propTypes={id:o.default.oneOfType([o.default.string,o.default.number]),error:o.default.oneOfType([o.default.node,o.default.shape({title:o.default.string,message:o.default.string})]),style:o.default.object,onClose:o.default.func,className:o.default.oneOfType([o.default.string,o.default.object]),classes:o.default.object},d.defaultProps={classes:{}};var f=d;t.default=f},4176:(e,t,n)=>{"use strict";t.ZP=void 0;var r=c(n(8096)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(8156)),i=c(n(5099)),a=n(72),s=c(n(4660)),l=c(n(1444));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(l,e);var t,n,r,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=g(e);if(t()){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}(l);function l(e){var t,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=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)))},(r="processAutoCloseInterval")in(n=m(t=i.call(this,e)))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,l.$$instance=m(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind(m(t)),t.state={errors:[]},t}return t=l,r=[{key:"addError",value:function(e){l.$$instance&&(l.$$instance.setState({errors:l.$$instance.state.errors.concat(e)}),l.$$instance.processAutoCloseInterval())}}],(n=[{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,i=r.length,l=r[i-1];return o.default.createElement(a.CSSTransitionGroup,{transitionName:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,leave:n.errorContainerLeave,leaveActive:n.errorContainerLeaveActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},transitionAppearTimeout:600,transitionEnterTimeout:600,transitionLeaveTimeout:300,transitionAppear:!0},Boolean(i)&&o.default.createElement(s.default,{classes:n,key:"errorMessage".concat(i),onClose:this.handleCloseErrorMessage,error:l,className:t}))}}])&&d(t.prototype,n),r&&d(t,r),l}(o.PureComponent);v.propTypes={className:i.default.oneOfType([i.default.string,i.default.object]),classes:i.default.object,autoCloseInterval:i.default.number},v.defaultProps={classes:{}};var y=(0,r.default)(l.default)(v);t.ZP=y},1444:(e,t)=>{"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerLeave:{opacity:1},errorContainerLeaveActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:r,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)"},n(t,e.breakpoints.down("sm"),{left:0,right:0}),n(t,e.breakpoints.down("md"),{left:288,right:32}),n(t,e.breakpoints.down("lg"),{left:336,right:80}),n(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:r,marginTop:5}}}}},835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?(0,o.default)(e,"label")||(0,o.default)(e,"uri","").slice((0,o.default)(e,"uri","").lastIndexOf("/")+1):null};var r,o=(r=n(2579))&&r.__esModule?r:{default:r}},4129:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(8156)),i=u(n(5099)),a=u(n(2205)),s=u(n(9490)),l=n(9685);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}l.nameShape.isRequired,i.default.bool,i.default.bool,i.default.bool,(0,l.transitionTimeout)("Appear"),(0,l.transitionTimeout)("Enter"),(0,l.transitionTimeout)("Leave");var d=function(e){function t(){var n,r;c(this,t);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=r=p(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return o.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return o.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(o.default.Component);d.displayName="CSSTransitionGroup",d.propTypes={},d.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=d,e.exports=t.default},9490:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=d(n(2196)),i=d(n(4812)),a=d(n(6463)),s=n(4596),l=d(n(8156)),u=d(n(5099)),c=n(7111),p=n(9685);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=[];s.transitionEnd&&m.push(s.transitionEnd),s.animationEnd&&m.push(s.animationEnd),u.default.node,p.nameShape.isRequired,u.default.bool,u.default.bool,u.default.bool,u.default.number,u.default.number,u.default.number;var g=function(e){function t(){var n,r;f(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(i))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,c.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,l=this.props.name[e+"Active"]||a+"-active",u=null,p=void 0;(0,o.default)(r,a),this.queueClassAndNode(l,r);var d=function(e){e&&e.target!==r||(clearTimeout(u),p&&p(),(0,i.default)(r,a),(0,i.default)(r,l),p&&p(),t&&t())};n?(u=setTimeout(d,n),this.transitionTimeouts.push(u)):s.transitionEnd&&(p=function(e,t){return m.length?m.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){m.length&&m.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,d))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)((function(){return n.flushClassNameAndNodeQueue()})))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,o.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,l.default.cloneElement(l.default.Children.only(this.props.children),e)},t}(l.default.Component);g.displayName="CSSTransitionGroupChild",g.propTypes={},t.default=g,e.exports=t.default},2205:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n(8994)),i=l(n(8156)),a=l(n(5099)),s=(l(n(2564)),n(276));function l(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var u=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,o));return i.performAppear=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(i._handleDoneAppearing.bind(i,e,t)):i._handleDoneAppearing(e,t)},i._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e,t)},i.performEnter=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(i._handleDoneEntering.bind(i,e,t)):i._handleDoneEntering(e,t)},i._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e,t)},i.performLeave=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(i._handleDoneLeaving.bind(i,e,t)):i._handleDoneLeaving(e,t)},i._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)?i.keysToEnter.push(e):i.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}}))},i.childRefs=Object.create(null),i.state={children:(0,s.getChildMapping)(n.children)},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var o=n&&n.hasOwnProperty(r);!t[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var i in n){var a=t&&t.hasOwnProperty(i);!n[i]||a||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach((function(t){return e.performEnter(t,e.childRefs[t])}));var n=this.keysToLeave;this.keysToLeave=[],n.forEach((function(t){return e.performLeave(t,e.childRefs[t])}))},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!=typeof r.ref,s=e.props.childFactory(r),l=function(t){e.childRefs[n]=t};s===r&&a&&(l=(0,o.default)(r.ref,l)),t.push(i.default.cloneElement(s,{key:n,ref:l}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,i.default.createElement(this.props.component,s,t)},t}(i.default.Component);u.displayName="TransitionGroup",u.propTypes={},u.defaultProps={component:"span",childFactory:function(e){return e}},t.default=u,e.exports=t.default},72:(e,t,n)=>{"use strict";var r=i(n(4129)),o=i(n(2205));function i(e){return e&&e.__esModule?e:{default:e}}e.exports={TransitionGroup:o.default,CSSTransitionGroup:r.default}},276:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,(function(e){return e})).forEach((function(e){t[e.key]=e})),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a=void 0,s={};for(var l in t){if(r.hasOwnProperty(l))for(a=0;a<r[l].length;a++){var u=r[l][a];s[r[l][a]]=n(u)}s[l]=n(l)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s};var r=n(8156)},9685:(e,t,n)=>{"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},o(n(8156));var r=o(n(5099));function o(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},8726:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8156),a=l(i),s=l(n(5099));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||f()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||f()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.Z=h},1950:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8156),a=l(i),s=l(n(5099));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||f(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||f(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.Z=h},8765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigmaContainer=void 0;const r=n(8303),o=r.__importStar(n(8156)),i=n(9358),a=r.__importDefault(n(8996)),s=n(222),l=n(4222);t.SigmaContainer=({graphOptions:e,id:t,className:n,style:r,initialSettings:u,children:c})=>{const p=o.useRef(null),d=o.useRef(null),f={className:`react-sigma-v2 ${n||""}`,id:t,style:r},[h,m]=o.useState(null),g=o.useRef();l.isEqual(g.current,u)||(g.current=u);const v=o.useRef();l.isEqual(v.current,e)||(v.current=e),o.useEffect((()=>{let e=null;return null!==d.current&&(e=new i.Sigma(new a.default(v.current),d.current,g.current),m(e)),()=>{m((()=>(e&&e.kill(),null)))}}),[d,v,g]);const y=o.useMemo((()=>h&&p.current?{sigma:h,container:p.current}:null),[h,p.current]),b=null!==y?o.default.createElement(s.SigmaProvider,{value:y},c):null;return o.default.createElement("div",Object.assign({},f,{ref:p}),o.default.createElement("div",{className:"sigma-container",ref:d}),b)}},222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigmaContext=t.SigmaProvider=t.SigmaContext=void 0;const r=n(8156);t.SigmaContext=r.createContext(null),t.SigmaProvider=t.SigmaContext.Provider,t.useSigmaContext=function(){const e=r.useContext(t.SigmaContext);if(null==e)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return e}},178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlsContainer=void 0;const r=n(8303).__importDefault(n(8156));t.ControlsContainer=({id:e,className:t,style:n,children:o,position:i="bottom-left"})=>{const a={className:`react-sigma-controls ${t||""} ${i}`,id:e,style:n};return r.default.createElement("div",Object.assign({},a),o)}},8460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForceAtlasControl=void 0;const r=n(8303),o=r.__importStar(n(8156)),i=r.__importDefault(n(8301)),a=n(4222),s=n(4739);t.ForceAtlasControl=({id:e,className:t,style:n,settings:r,autoRunFor:l=-1,customStopLayout:u,customStartLayout:c})=>{const p=s.useSigma(),d=o.useRef(null);r&&!a.isEqual(d.current,r)&&(d.current=r);const[f,h]=o.useState(null),[m,g]=o.useState(!1);o.useEffect((()=>{if(!p)return;const e=new i.default(p.getGraph(),d.current||{});h(e);let t=null;return l>-1&&p.getGraph().order>0&&(g(!0),t=l>0?window.setTimeout((()=>{g(!1)}),l):null),()=>{e&&e.kill(),t&&clearTimeout(t)}}),[l,d,p]),o.useEffect((()=>{try{f&&(!0===m?f.start():f.stop())}catch(e){}}),[f,m]);const v=!0===m&&!u||!1===m&&!c?"default":"",y={className:`react-sigma-control-forceatlas2 ${m?"running":"stopped"} ${t||""}`,id:e,style:n};return o.default.createElement("div",Object.assign({},y),o.default.createElement("button",{className:v,onClick:()=>g((e=>!e)),title:m?"Stop the layout animation":"Start the layout animation"},!0===m?u:c))}},484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenControl=void 0;const r=n(8303).__importStar(n(8156)),o=n(222);t.FullScreenControl=({id:e,className:t,style:n,customEnterFullScreen:i,customExitFullScreen:a})=>{const{container:s}=o.useSigmaContext(),[l,u]=r.useState(!1),c=()=>u((e=>!e));r.useEffect((()=>(document.addEventListener("fullscreenchange",c),()=>document.removeEventListener("fullscreenchange",c))),[c]);const p=l&&!a||!l&&!i?"default":"",d={className:`react-sigma-control-${l?"normalscreen":"fullscreen"} ${t||""}`,id:e,style:n};return document.fullscreenEnabled?r.default.createElement("div",Object.assign({},d),r.default.createElement("button",{className:p,onClick:()=>{return e=s,void(document.fullscreenElement!==e?e.requestFullscreen():document.exitFullscreen&&document.exitFullscreen());var e},title:"Toggle Fullscreen"},l?a:i)):null}},948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchControl=void 0;const r=n(8303).__importStar(n(8156)),o=n(4739);t.SearchControl=({id:e,className:t,style:n})=>{const i=o.useSigma(),[a,s]=r.useState(""),[l,u]=r.useState([]),[c,p]=r.useState(null);r.useEffect((()=>{const e=[];!c&&a.length>1&&i.getGraph().forEachNode(((t,n)=>{n.label&&n.label.toLowerCase().includes(a.toLowerCase())&&e.push({id:t,label:n.label})})),u(e)}),[a]),r.useEffect((()=>{if(!c)return;i.getGraph().setNodeAttribute(c,"highlighted",!0);const e=i.getNodeDisplayData(c);return e&&i.getCamera().animate(e,{easing:"linear",duration:500}),()=>{i.getGraph().setNodeAttribute(c,"highlighted",!1)}}),[c]);const d={className:`react-sigma-search ${t||""}`,id:e,style:n};return r.default.createElement("div",Object.assign({},d),r.default.createElement("input",{type:"text",placeholder:"Search...",list:"nodes",value:a,onChange:e=>{const t=e.target.value,n=l.find((e=>e.label===t));n?(s(n.label),u([]),p(n.id)):(p(null),s(t))}}),r.default.createElement("datalist",{id:"nodes"},l.map((e=>r.default.createElement("option",{key:e.id,value:e.label},e.label)))))}},3855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomControl=void 0;const r=n(8303).__importDefault(n(8156)),o=n(4739);t.ZoomControl=({className:e,style:t,animationDuration:n=200,customZoomIn:i,customZoomOut:a,customZoomCenter:s})=>{const l=o.useSigma();function u(e){l&&(e?e>0?l.getCamera().animatedZoom({duration:n,factor:1.5}):e<0&&l.getCamera().animatedUnzoom({duration:n,factor:1.5}):l.getCamera().animatedReset({duration:n}))}const c={className:e,style:t};return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",Object.assign({},c,{className:`react-sigma-control-zoom-in ${e||""}`}),r.default.createElement("button",{className:i?"":"default",onClick:()=>u(1),title:"Zoom In"},i)),r.default.createElement("div",Object.assign({},c,{className:`react-sigma-control-zoom-out ${e||""}`}),r.default.createElement("button",{className:a?"":"default",onClick:()=>u(-1),title:"Zoom Out"},a)),r.default.createElement("div",Object.assign({},c,{className:`react-sigma-control-zoom-center ${e||""}`}),r.default.createElement("button",{className:s?"":"default",onClick:()=>u(),title:"See whole graph"},s)))}},6370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoadGraph=void 0;const r=n(8156),o=n(4739);t.useLoadGraph=function(){const e=o.useSigma();return r.useCallback(((t,n=!0)=>{e&&t&&(n&&e.getGraph().order>0&&e.getGraph().clear(),e.getGraph().import(t),e.refresh())}),[e])}},4282:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRegisterEvents=void 0;const r=n(8156),o=n(4739),i=n(5945),a=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","kill"],s=["click","rightClick","mouseup","mousedown","mousemove","doubleClick","wheel"],l=["mouseup","mousedown","mousemove"],u=["cameraUpdated"];t.useRegisterEvents=function(){const e=o.useSigma(),t=i.useSetSettings(),[n,c]=r.useState({});return r.useEffect((()=>{if(!e||!n)return;const r=Object.keys(n),o={},i={},c=e.getSettings();return r.some((e=>["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)))&&!1===c.enableEdgeClickEvents&&(o.enableEdgeClickEvents=!0,i.enableEdgeClickEvents=!1),r.some((e=>["enterEdge","leaveEdge"].includes(e)))&&!1===c.enableEdgeHoverEvents&&(o.enableEdgeHoverEvents=!0,i.enableEdgeHoverEvents=!1),r.some((e=>["wheelEdge"].includes(e)))&&!1===c.enableEdgeWheelEvents&&(o.enableEdgeWheelEvents=!0,i.enableEdgeWheelEvents=!1),Object.keys(o).length>0&&t(o),r.forEach((t=>{const r=n[t];a.includes(t)&&e.on(t,r),s.includes(t)&&e.getMouseCaptor().on(t,r),l.includes(t)&&e.getTouchCaptor().on(t,r),u.includes(t)&&e.getCamera().on("updated",r)})),()=>{let r;for(r in Object.keys(i).length>0&&t(i),n){const t=n[r];a.includes(r)&&e.removeListener(r,t),s.includes(r)&&e.getMouseCaptor().removeListener(r,t),l.includes(r)&&e.getTouchCaptor().removeListener(r,t),u.includes(r)&&e.getCamera().removeListener("updated",t)}}}),[e,n,t]),c}},5945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSetSettings=void 0;const r=n(8156),o=n(4739);t.useSetSettings=function(){const e=o.useSigma(),[t,n]=r.useState({});return r.useEffect((()=>{if(!e||!t)return;const n={};return Object.keys(t).forEach((r=>{n[r]=t[r],e.setSetting(r,t[r])})),()=>{Object.keys(n).forEach((t=>{e.setSetting(t,n[t])}))}}),[e,t]),n}},4739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigma=void 0;const r=n(222);t.useSigma=function(){return r.useSigmaContext().sigma}},4986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8303);r.__exportStar(n(8765),t),r.__exportStar(n(4739),t),r.__exportStar(n(4282),t),r.__exportStar(n(6370),t),r.__exportStar(n(5945),t),r.__exportStar(n(178),t),r.__exportStar(n(8460),t),r.__exportStar(n(3855),t),r.__exportStar(n(484),t),r.__exportStar(n(948),t),r.__exportStar(n(6799),t)},6799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4222:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,c=1/0,p=9007199254740991,d=NaN,f=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",E="[object GeneratorFunction]",x="[object Map]",O="[object Number]",S="[object Object]",C="[object Promise]",_="[object RegExp]",k="[object Set]",T="[object String]",P="[object Symbol]",A="[object WeakMap]",D="[object ArrayBuffer]",j="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",M="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",F="[object Uint8Array]",z="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",B=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Y=RegExp(G.source),$=RegExp(q.source),K=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="["+Se+"]",_e="["+Ee+"]",ke="\\d+",Te="["+xe+"]",Pe="[^\\ud800-\\udfff"+Se+ke+"\\u2700-\\u27bf"+xe+Oe+"]",Ae="\\ud83c[\\udffb-\\udfff]",De="[^\\ud800-\\udfff]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="["+Oe+"]",Me="(?:"+Te+"|"+Pe+")",Ne="(?:"+Ie+"|"+Pe+")",Re="(?:['’](?:d|ll|m|re|s|t|ve))?",Fe="(?:['’](?:D|LL|M|RE|S|T|VE))?",ze="(?:"+_e+"|"+Ae+")?",Ve="[\\ufe0e\\ufe0f]?",Ue=Ve+ze+"(?:\\u200d(?:"+[De,je,Le].join("|")+")"+Ve+ze+")*",Be="(?:"+["[\\u2700-\\u27bf]",je,Le].join("|")+")"+Ue,He="(?:"+[De+_e+"?",_e,je,Le,"[\\ud800-\\udfff]"].join("|")+")",We=RegExp("['’]","g"),Ge=RegExp(_e,"g"),qe=RegExp(Ae+"(?="+Ae+")|"+He+Ue,"g"),Ye=RegExp([Ie+"?"+Te+"+"+Re+"(?="+[Ce,Ie,"$"].join("|")+")",Ne+"+"+Fe+"(?="+[Ce,Ie+Me,"$"].join("|")+")",Ie+"?"+Me+"+"+Re,Ie+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Be].join("|"),"g"),$e=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xe=-1,Qe={};Qe[L]=Qe[I]=Qe[M]=Qe[N]=Qe[R]=Qe[F]=Qe[z]=Qe[V]=Qe[U]=!0,Qe[m]=Qe[g]=Qe[D]=Qe[v]=Qe[j]=Qe[y]=Qe[b]=Qe[w]=Qe[x]=Qe[O]=Qe[S]=Qe[_]=Qe[k]=Qe[T]=Qe[A]=!1;var Je={};Je[m]=Je[g]=Je[D]=Je[j]=Je[v]=Je[y]=Je[L]=Je[I]=Je[M]=Je[N]=Je[R]=Je[x]=Je[O]=Je[S]=Je[_]=Je[k]=Je[T]=Je[P]=Je[F]=Je[z]=Je[V]=Je[U]=!0,Je[b]=Je[w]=Je[A]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,lt=st&&st.exports===at,ut=lt&&rt.process,ct=function(){try{return st&&st.require&&st.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),pt=ct&&ct.isArrayBuffer,dt=ct&&ct.isDate,ft=ct&&ct.isMap,ht=ct&&ct.isRegExp,mt=ct&&ct.isSet,gt=ct&&ct.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Ot(e,t){return!(null==e||!e.length)&&Lt(e,t,0)>-1}function St(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Ct(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function _t(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function kt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Tt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var At=Rt("length");function Dt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function jt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Lt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):jt(e,Mt,n)}function It(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Mt(e){return e!=e}function Nt(e,t){var n=null==e?0:e.length;return n?Vt(e,t)/n:d}function Rt(e){return function(t){return null==t?o:t[e]}}function Ft(e){return function(t){return null==e?o:e[t]}}function zt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Vt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Ut(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Bt(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Ht(e){return function(t){return e(t)}}function Wt(e,t){return Ct(t,(function(t){return e[t]}))}function Gt(e,t){return e.has(t)}function qt(e,t){for(var n=-1,r=e.length;++n<r&&Lt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}function $t(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=Ft({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Zt=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});function Xt(e){return"\\"+et[e]}function Qt(e){return $e.test(e)}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Qt(e)?function(e){for(var t=qe.lastIndex=0;qe.test(e);)++t;return t}(e):At(e)}function an(e){return Qt(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var ln=Ft({"&":"&","<":"<",">":">",""":'"',"'":"'"}),un=function e(t){var n,r=(t=null==t?it:un.defaults(it.Object(),t,un.pick(it,Ze))).Array,oe=t.Date,Ee=t.Error,xe=t.Function,Oe=t.Math,Se=t.Object,Ce=t.RegExp,_e=t.String,ke=t.TypeError,Te=r.prototype,Pe=xe.prototype,Ae=Se.prototype,De=t["__core-js_shared__"],je=Pe.toString,Le=Ae.hasOwnProperty,Ie=0,Me=(n=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=Ae.toString,Re=je.call(Se),Fe=it._,ze=Ce("^"+je.call(Le).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=lt?t.Buffer:o,Ue=t.Symbol,Be=t.Uint8Array,He=Ve?Ve.allocUnsafe:o,qe=en(Se.getPrototypeOf,Se),$e=Se.create,et=Ae.propertyIsEnumerable,rt=Te.splice,ot=Ue?Ue.isConcatSpreadable:o,at=Ue?Ue.iterator:o,st=Ue?Ue.toStringTag:o,ut=function(){try{var e=ci(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,At=oe&&oe.now!==it.Date.now&&oe.now,Ft=t.setTimeout!==it.setTimeout&&t.setTimeout,cn=Oe.ceil,pn=Oe.floor,dn=Se.getOwnPropertySymbols,fn=Ve?Ve.isBuffer:o,hn=t.isFinite,mn=Te.join,gn=en(Se.keys,Se),vn=Oe.max,yn=Oe.min,bn=oe.now,wn=t.parseInt,En=Oe.random,xn=Te.reverse,On=ci(t,"DataView"),Sn=ci(t,"Map"),Cn=ci(t,"Promise"),_n=ci(t,"Set"),kn=ci(t,"WeakMap"),Tn=ci(Se,"create"),Pn=kn&&new kn,An={},Dn=zi(On),jn=zi(Sn),Ln=zi(Cn),In=zi(_n),Mn=zi(kn),Nn=Ue?Ue.prototype:o,Rn=Nn?Nn.valueOf:o,Fn=Nn?Nn.toString:o;function zn(e){if(ns(e)&&!Ga(e)&&!(e instanceof Hn)){if(e instanceof Bn)return e;if(Le.call(e,"__wrapped__"))return Vi(e)}return new Bn(e)}var Vn=function(){function e(){}return function(t){if(!ts(t))return{};if($e)return $e(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Un(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Gn(e);this.size=t.size}function Kn(e,t){var n=Ga(e),r=!n&&Wa(e),o=!n&&!r&&Ka(e),i=!n&&!r&&!o&&cs(e),a=n||r||o||i,s=a?Ut(e.length,_e):[],l=s.length;for(var u in e)!t&&!Le.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||vi(u,l))||s.push(u);return s}function Zn(e){var t=e.length;return t?e[qr(0,t-1)]:o}function Xn(e,t){return Ii(To(e),ar(t,0,e.length))}function Qn(e){return Ii(To(e))}function Jn(e,t,n){(n!==o&&!Ua(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Le.call(e,t)&&Ua(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Ua(e[n][0],t))return n;return-1}function nr(e,t,n,r){return pr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Po(t,js(t),e)}function or(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:ks(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var p=Ga(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return To(e,s)}else{var d=fi(e),f=d==w||d==E;if(Ka(e))return xo(e,l);if(d==S||d==m||f&&!i){if(s=u||f?{}:mi(e),!l)return u?function(e,t){return Po(e,di(e),t)}(e,function(e,t){return e&&Po(t,Ls(t),e)}(s,e)):function(e,t){return Po(e,pi(e),t)}(e,rr(s,e))}else{if(!Je[d])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case D:return Oo(e);case v:case y:return new o(+e);case j:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case I:case M:case N:case R:case F:case z:case V:case U:return So(e,n);case x:return new o;case O:case T:return new o(e);case _:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case P:return r=e,Rn?Se(Rn.call(r)):{}}}(e,d,l)}}a||(a=new $n);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,sr(r,t,n,o,e,a))}));var g=p?o:(c?u?ri:ni:u?Ls:js)(e);return bt(g||e,(function(r,o){g&&(r=e[o=r]),er(s,o,sr(r,t,n,o,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new ke(i);return Ai((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,i=Ot,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Ct(t,Ht(n))),r?(i=St,a=!1):t.length>=200&&(i=Gt,a=!1,t=new Yn(t));e:for(;++o<s;){var c=e[o],p=null==n?c:n(c);if(c=r||0!==c?c:0,a&&p==p){for(var d=u;d--;)if(t[d]===p)continue e;l.push(c)}else i(t,p,r)||l.push(c)}return l}zn.templateSettings={escape:K,evaluate:Z,interpolate:X,variable:"",imports:{_:zn}},zn.prototype=Un.prototype,zn.prototype.constructor=zn,Bn.prototype=Vn(Un.prototype),Bn.prototype.constructor=Bn,Hn.prototype=Vn(Un.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===a?o:n}return Le.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==o:Le.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===o?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Gn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return tr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Sn||Gn),string:new Wn}},qn.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return li(this,e).get(e)},qn.prototype.has=function(e){return li(this,e).has(e)},qn.prototype.set=function(e,t){var n=li(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Gn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var pr=jo(br),dr=jo(wr,!0);function fr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!us(s):n(s,l)))var l=s,u=a}return u}function mr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function gr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?gr(s,t-1,n,r,o):_t(o,s):r||(o[o.length]=s)}return o}var vr=Lo(),yr=Lo(!0);function br(e,t){return e&&vr(e,t,js)}function wr(e,t){return e&&yr(e,t,js)}function Er(e,t){return xt(t,(function(t){return Qa(e[t])}))}function xr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&n<r;)e=e[Fi(t[n++])];return n&&n==r?e:o}function Or(e,t,n){var r=t(e);return Ga(e)?r:_t(r,n(e))}function Sr(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in Se(e)?function(e){var t=Le.call(e,st),n=e[st];try{e[st]=o;var r=!0}catch(e){}var i=Ne.call(e);return r&&(t?e[st]=n:delete e[st]),i}(e):function(e){return Ne.call(e)}(e)}function Cr(e,t){return e>t}function _r(e,t){return null!=e&&Le.call(e,t)}function kr(e,t){return null!=e&&t in Se(e)}function Tr(e,t,n){for(var i=n?St:Ot,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,p=[];l--;){var d=e[l];l&&t&&(d=Ct(d,Ht(t))),c=yn(d.length,c),u[l]=!n&&(t||a>=120&&d.length>=120)?new Yn(l&&d):o}d=e[0];var f=-1,h=u[0];e:for(;++f<a&&p.length<c;){var m=d[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?Gt(h,g):i(p,g,n))){for(l=s;--l;){var v=u[l];if(!(v?Gt(v,g):i(e[l],g,n)))continue e}h&&h.push(g),p.push(m)}}return p}function Pr(e,t,n){var r=null==(e=_i(e,t=yo(t,e)))?e:e[Fi(Xi(t))];return null==r?o:vt(r,e,n)}function Ar(e){return ns(e)&&Sr(e)==m}function Dr(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Ga(e),l=Ga(t),u=s?g:fi(e),c=l?g:fi(t),p=(u=u==m?S:u)==S,d=(c=c==m?S:c)==S,f=u==c;if(f&&Ka(e)){if(!Ka(t))return!1;s=!0,p=!1}if(f&&!p)return a||(a=new $n),s||cs(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case v:case y:case O:return Ua(+e,+t);case b:return e.name==t.name&&e.message==t.message;case _:case T:return e==t+"";case x:var s=Jt;case k:var l=1&r;if(s||(s=nn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=ei(s(e),s(t),r,o,i,a);return a.delete(e),c;case P:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var h=p&&Le.call(e,"__wrapped__"),w=d&&Le.call(t,"__wrapped__");if(h||w){var E=h?e.value():e,C=w?t.value():t;return a||(a=new $n),i(E,C,n,r,a)}}return!!f&&(a||(a=new $n),function(e,t,n,r,i,a){var s=1&n,l=ni(e),u=l.length;if(u!=ni(t).length&&!s)return!1;for(var c=u;c--;){var p=l[c];if(!(s?p in t:Le.call(t,p)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++c<u;){var g=e[p=l[c]],v=t[p];if(r)var y=s?r(v,g,p,t,e,a):r(g,v,p,e,t,a);if(!(y===o?g===v||i(g,v,n,r,a):y)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Dr,i))}function jr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Se(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var u=(l=n[i])[0],c=e[u],p=l[1];if(s&&l[2]){if(c===o&&!(u in e))return!1}else{var d=new $n;if(r)var f=r(c,p,u,e,t,d);if(!(f===o?Dr(p,c,3,r,d):f))return!1}}return!0}function Lr(e){return!(!ts(e)||(t=e,Me&&Me in t))&&(Qa(e)?ze:me).test(zi(e));var t}function Ir(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Ga(e)?zr(e[0],e[1]):Fr(e):fl(e)}function Mr(e){if(!xi(e))return gn(e);var t=[];for(var n in Se(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e,t){return e<t}function Rr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return pr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Fr(e){var t=ui(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function zr(e,t){return bi(e)&&Oi(t)?Si(Fi(e),t):function(n){var r=ks(n,e);return r===o&&r===t?Ts(n,e):Dr(t,r,3)}}function Vr(e,t,n,r,i){e!==t&&vr(t,(function(a,s){if(i||(i=new $n),ts(a))!function(e,t,n,r,i,a,s){var l=Ti(e,n),u=Ti(t,n),c=s.get(u);if(c)Jn(e,n,c);else{var p=a?a(l,u,n+"",e,t,s):o,d=p===o;if(d){var f=Ga(u),h=!f&&Ka(u),m=!f&&!h&&cs(u);p=u,f||h||m?Ga(l)?p=l:$a(l)?p=To(l):h?(d=!1,p=xo(u,!0)):m?(d=!1,p=So(u,!0)):p=[]:is(u)||Wa(u)?(p=l,Wa(l)?p=ys(l):ts(l)&&!Qa(l)||(p=mi(u))):d=!1}d&&(s.set(u,p),i(p,u,r,a,s),s.delete(u)),Jn(e,n,p)}}(e,t,s,n,Vr,r,i);else{var l=r?r(Ti(e,s),a,s+"",e,t,i):o;l===o&&(l=a),Jn(e,s,l)}}),Ls)}function Ur(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Br(e,t,n){t=t.length?Ct(t,(function(e){return Ga(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=Ct(t,Ht(si()));var o=Rr(e,(function(e,n,o){var i=Ct(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=Co(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Hr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=xr(e,a);n(s,a)&&Xr(i,yo(a,e),s)}return i}function Wr(e,t,n,r){var o=r?It:Lt,i=-1,a=t.length,s=e;for(e===t&&(t=To(t)),n&&(s=Ct(e,Ht(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&rt.call(s,l,1),rt.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?rt.call(e,o,1):uo(e,o)}}return e}function qr(e,t){return e+pn(En()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pn(t/2))&&(e+=e)}while(t);return n}function $r(e,t){return Di(Ci(e,t,ol),e+"")}function Kr(e){return Zn(Us(e))}function Zr(e,t){var n=Us(e);return Ii(n,ar(t,0,n.length))}function Xr(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var u=Fi(t[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var p=l[u];(c=r?r(p,u,l):o)===o&&(c=ts(p)?p:vi(t[i+1])?[]:{})}er(l,u,c),l=l[u]}return e}var Qr=Pn?function(e,t){return Pn.set(e,t),e}:ol,Jr=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function eo(e){return Ii(Us(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!us(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ol,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,u=us(t),c=t===o;i<a;){var p=pn((i+a)/2),d=n(e[p]),f=d!==o,h=null===d,m=d==d,g=us(d);if(s)var v=r||m;else v=c?m&&(r||f):l?m&&f&&(r||!h):u?m&&f&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);v?i=p+1:a=p}return yn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ua(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:us(e)?d:+e}function so(e){if("string"==typeof e)return e;if(Ga(e))return Ct(e,so)+"";if(us(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,n){var r=-1,o=Ot,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=St;else if(i>=200){var u=t?null:$o(e);if(u)return nn(u);a=!1,o=Gt,l=new Yn}else l=t?[]:s;e:for(;++r<i;){var c=e[r],p=t?t(c):c;if(c=n||0!==c?c:0,a&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue e;t&&l.push(p),s.push(c)}else o(l,p,n)||(l!==s&&l.push(p),s.push(c))}return s}function uo(e,t){return null==(e=_i(e,t=yo(t,e)))||delete e[Fi(Xi(t))]}function co(e,t,n,r){return Xr(e,t,n(xr(e,t)),r)}function po(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof Hn&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,_t([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?lo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=cr(a[i]||s,e[l],t,n));return lo(gr(a,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function go(e){return $a(e)?e:[]}function vo(e){return"function"==typeof e?e:ol}function yo(e,t){return Ga(e)?e:bi(e,t)?[e]:Ri(bs(e))}var bo=$r;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var Eo=ct||function(e){return it.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function So(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=us(e),s=t!==o,l=null===t,u=t==t,c=us(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!u)return-1}return 0}function _o(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,u=t.length,c=vn(a-s,0),p=r(u+c),d=!o;++l<u;)p[l]=t[l];for(;++i<s;)(d||i<a)&&(p[n[i]]=e[i]);for(;c--;)p[l++]=e[i++];return p}function ko(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,p=vn(a-l,0),d=r(p+c),f=!o;++i<p;)d[i]=e[i];for(var h=i;++u<c;)d[h+u]=t[u];for(;++s<l;)(f||i<a)&&(d[h+n[s]]=e[i++]);return d}function To(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Po(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):o;u===o&&(u=e[l]),i?or(n,l,u):er(n,l,u)}return n}function Ao(e,t){return function(n,r){var o=Ga(n)?yt:nr,i=t?t():{};return o(n,e,si(r,2),i)}}function Do(e){return $r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&yi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Se(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Se(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Se(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Io(e){return function(t){var n=Qt(t=bs(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function Mo(e){return function(t){return kt(Qs(Ws(t).replace(We,"")),e,"")}}function No(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ro(e){return function(t,n,r){var i=Se(t);if(!Ya(t)){var a=si(n,3);t=js(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Fo(e){return ti((function(t){var n=t.length,r=n,a=Bn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(i);if(a&&!l&&"wrapper"==ii(s))var l=new Bn([],!0)}for(r=l?r:n;++r<n;){var u=ii(s=t[r]),c="wrapper"==u?oi(s):o;l=c&&wi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ii(c[0])].apply(l,c[3]):1==s.length&&wi(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ga(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function zo(e,t,n,i,a,s,l,c,p,d){var f=t&u,h=1&t,m=2&t,g=24&t,v=512&t,y=m?o:No(e);return function o(){for(var u=arguments.length,b=r(u),w=u;w--;)b[w]=arguments[w];if(g)var E=ai(o),x=$t(b,E);if(i&&(b=_o(b,i,a,g)),s&&(b=ko(b,s,l,g)),u-=x,g&&u<d){var O=tn(b,E);return qo(e,t,zo,o.placeholder,n,b,O,c,p,d-u)}var S=h?n:this,C=m?S[e]:e;return u=b.length,c?b=ki(b,c):v&&u>1&&b.reverse(),f&&p<u&&(b.length=p),this&&this!==it&&this instanceof o&&(C=y||No(C)),C.apply(S,b)}}function Vo(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Uo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Bo(e){return ti((function(t){return t=Ct(t,Ht(si())),$r((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Ho(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,cn(e/on(t)));return Qt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function Wo(e){return function(t,n,i){return i&&"number"!=typeof i&&yi(t,n,i)&&(n=i=o),t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n,o){for(var i=-1,a=vn(cn((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:hs(i),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function qo(e,t,n,r,i,a,s,u,c,p){var d=8&t;t|=d?l:64,4&(t&=~(d?64:l))||(t&=-4);var f=[e,t,i,d?a:o,d?s:o,d?o:a,d?o:s,u,c,p],h=n.apply(o,f);return wi(e)&&Pi(h,f),h.placeholder=r,ji(h,e,t)}function Yo(e){var t=Oe[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(ms(n),292))&&hn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $o=_n&&1/nn(new _n([,-0]))[1]==c?function(e){return new _n(e)}:ul;function Ko(e){return function(t){var n=fi(t);return n==x?Jt(t):n==k?rn(t):function(e,t){return Ct(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zo(e,t,n,a,c,p,d,f){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(i);var m=a?a.length:0;if(m||(t&=-97,a=c=o),d=d===o?d:vn(ms(d),0),f=f===o?f:ms(f),m-=c?c.length:0,64&t){var g=a,v=c;a=c=o}var y=h?o:oi(e),b=[e,t,n,a,c,g,v,p,d,f];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?_o(c,l,t[4]):l,e[4]=c?tn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?ko(c,l,t[6]):l,e[6]=c?tn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],c=b[4],!(f=b[9]=b[9]===o?h?0:e.length:vn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=No(e);return function a(){for(var s=arguments.length,l=r(s),u=s,c=ai(a);u--;)l[u]=arguments[u];var p=s<3&&l[0]!==c&&l[s-1]!==c?[]:tn(l,c);return(s-=p.length)<n?qo(e,t,zo,a.placeholder,o,l,p,o,o,n-s):vt(this&&this!==it&&this instanceof a?i:e,this,l)}}(e,t,f):t!=l&&33!=t||c.length?zo.apply(o,b):function(e,t,n,o){var i=1&t,a=No(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=o.length,p=r(c+l),d=this&&this!==it&&this instanceof t?a:e;++u<c;)p[u]=o[u];for(;l--;)p[u++]=arguments[++s];return vt(d,i?n:this,p)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=No(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ji((y?Qr:Pi)(w,b),e,t)}function Xo(e,t,n,r){return e===o||Ua(e,Ae[n])&&!Le.call(r,n)?t:e}function Qo(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Vr(e,t,o,Qo,a),a.delete(t)),e}function Jo(e){return is(e)?o:e}function ei(e,t,n,r,i,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),p=a.get(t);if(c&&p)return c==t&&p==e;var d=-1,f=!0,h=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++d<l;){var m=e[d],g=t[d];if(r)var v=s?r(g,m,d,t,e,a):r(m,g,d,e,t,a);if(v!==o){if(v)continue;f=!1;break}if(h){if(!Pt(t,(function(e,t){if(!Gt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function ti(e){return Di(Ci(e,o,qi),e+"")}function ni(e){return Or(e,js,pi)}function ri(e){return Or(e,Ls,di)}var oi=Pn?function(e){return Pn.get(e)}:ul;function ii(e){for(var t=e.name+"",n=An[t],r=Le.call(An,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Le.call(zn,"placeholder")?zn:e).placeholder}function si(){var e=zn.iteratee||il;return e=e===il?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=js(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Lr(n)?n:o}var pi=dn?function(e){return null==e?[]:(e=Se(e),xt(dn(e),(function(t){return et.call(e,t)})))}:gl,di=dn?function(e){for(var t=[];e;)_t(t,pi(e)),e=qe(e);return t}:gl,fi=Sr;function hi(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=Fi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&vi(a,o)&&(Ga(e)||Wa(e))}function mi(e){return"function"!=typeof e.constructor||xi(e)?{}:Vn(qe(e))}function gi(e){return Ga(e)||Wa(e)||!!(ot&&e&&e[ot])}function vi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&vi(t,n.length):"string"==r&&t in n)&&Ua(n[t],e)}function bi(e,t){if(Ga(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||J.test(e)||!Q.test(e)||null!=t&&e in Se(t)}function wi(e){var t=ii(e),n=zn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(On&&fi(new On(new ArrayBuffer(1)))!=j||Sn&&fi(new Sn)!=x||Cn&&fi(Cn.resolve())!=C||_n&&fi(new _n)!=k||kn&&fi(new kn)!=A)&&(fi=function(e){var t=Sr(e),n=t==S?e.constructor:o,r=n?zi(n):"";if(r)switch(r){case Dn:return j;case jn:return x;case Ln:return C;case In:return k;case Mn:return A}return t});var Ei=De?Qa:vl;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function Oi(e){return e==e&&!ts(e)}function Si(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Se(n))}}function Ci(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),vt(e,this,l)}}function _i(e,t){return t.length<2?e:xr(e,to(t,0,-1))}function ki(e,t){for(var n=e.length,r=yn(t.length,n),i=To(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}function Ti(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pi=Li(Qr),Ai=Ft||function(e,t){return it.setTimeout(e,t)},Di=Li(Jr);function ji(e,t,n){var r=t+"";return Di(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!Ot(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Li(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ii(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=qr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Mi,Ni,Ri=(Mi=Ma((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Ni.size&&Ni.clear(),e})),Ni=Mi.cache,Mi);function Fi(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function zi(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Vi(e){if(e instanceof Hn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=To(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ui=$r((function(e,t){return $a(e)?cr(e,gr(t,1,$a,!0)):[]})),Bi=$r((function(e,t){var n=Xi(t);return $a(n)&&(n=o),$a(e)?cr(e,gr(t,1,$a,!0),si(n,2)):[]})),Hi=$r((function(e,t){var n=Xi(t);return $a(n)&&(n=o),$a(e)?cr(e,gr(t,1,$a,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=vn(r+o,0)),jt(e,si(t,3),o)}function Gi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ms(n),i=n<0?vn(r+i,0):yn(i,r-1)),jt(e,si(t,3),i,!0)}function qi(e){return null!=e&&e.length?gr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var $i=$r((function(e){var t=Ct(e,go);return t.length&&t[0]===e[0]?Tr(t):[]})),Ki=$r((function(e){var t=Xi(e),n=Ct(e,go);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Tr(n,si(t,2)):[]})),Zi=$r((function(e){var t=Xi(e),n=Ct(e,go);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Qi=$r(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Gr(e,Ct(t,(function(e){return vi(e,n)?+e:e})).sort(Co)),r}));function ta(e){return null==e?e:xn.call(e)}var na=$r((function(e){return lo(gr(e,1,$a,!0))})),ra=$r((function(e){var t=Xi(e);return $a(t)&&(t=o),lo(gr(e,1,$a,!0),si(t,2))})),oa=$r((function(e){var t=Xi(e);return t="function"==typeof t?t:o,lo(gr(e,1,$a,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if($a(e))return t=vn(e.length,t),!0})),Ut(t,(function(t){return Ct(e,Rt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Ct(n,(function(e){return vt(t,o,e)}))}var sa=$r((function(e,t){return $a(e)?cr(e,t):[]})),la=$r((function(e){return ho(xt(e,$a))})),ua=$r((function(e){var t=Xi(e);return $a(t)&&(t=o),ho(xt(e,$a),si(t,2))})),ca=$r((function(e){var t=Xi(e);return t="function"==typeof t?t:o,ho(xt(e,$a),o,t)})),pa=$r(ia),da=$r((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function fa(e){var t=zn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Bn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ga=Ao((function(e,t,n){Le.call(e,n)?++e[n]:or(e,n,1)})),va=Ro(Wi),ya=Ro(Gi);function ba(e,t){return(Ga(e)?bt:pr)(e,si(t,3))}function wa(e,t){return(Ga(e)?wt:dr)(e,si(t,3))}var Ea=Ao((function(e,t,n){Le.call(e,n)?e[n].push(t):or(e,n,[t])})),xa=$r((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return pr(e,(function(e){a[++o]=i?vt(t,e,n):Pr(e,t,n)})),a})),Oa=Ao((function(e,t,n){or(e,n,t)}));function Sa(e,t){return(Ga(e)?Ct:Rr)(e,si(t,3))}var Ca=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),_a=$r((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,gr(t,1),[])})),ka=At||function(){return it.Date.now()};function Ta(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Zo(e,u,o,o,o,o,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new ke(i);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Aa=$r((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Aa));r|=l}return Zo(e,r,t,n,o)})),Da=$r((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Da));r|=l}return Zo(t,r,e,n,o)}));function ja(e,t,n){var r,a,s,l,u,c,p=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new ke(i);function m(t){var n=r,i=a;return r=a=o,p=t,l=e.apply(i,n)}function g(e){return p=e,u=Ai(y,t),d?m(e):l}function v(e){var n=e-c;return c===o||n>=t||n<0||f&&e-p>=s}function y(){var e=ka();if(v(e))return b(e);u=Ai(y,function(e){var n=t-(e-c);return f?yn(n,s-(e-p)):n}(e))}function b(e){return u=o,h&&r?m(e):(r=a=o,l)}function w(){var e=ka(),n=v(e);if(r=arguments,a=this,c=e,n){if(u===o)return g(c);if(f)return Eo(u),u=Ai(y,t),m(c)}return u===o&&(u=Ai(y,t)),l}return t=vs(t)||0,ts(n)&&(d=!!n.leading,s=(f="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),w.cancel=function(){u!==o&&Eo(u),p=0,r=c=a=u=o},w.flush=function(){return u===o?l:b(ka())},w}var La=$r((function(e,t){return ur(e,1,t)})),Ia=$r((function(e,t,n){return ur(e,vs(t)||0,n)}));function Ma(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ma.Cache||qn),n}function Na(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=qn;var Ra=bo((function(e,t){var n=(t=1==t.length&&Ga(t[0])?Ct(t[0],Ht(si())):Ct(gr(t,1),Ht(si()))).length;return $r((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return vt(e,this,r)}))})),Fa=$r((function(e,t){var n=tn(t,ai(Fa));return Zo(e,l,o,t,n)})),za=$r((function(e,t){var n=tn(t,ai(za));return Zo(e,64,o,t,n)})),Va=ti((function(e,t){return Zo(e,256,o,o,o,t)}));function Ua(e,t){return e===t||e!=e&&t!=t}var Ba=Go(Cr),Ha=Go((function(e,t){return e>=t})),Wa=Ar(function(){return arguments}())?Ar:function(e){return ns(e)&&Le.call(e,"callee")&&!et.call(e,"callee")},Ga=r.isArray,qa=pt?Ht(pt):function(e){return ns(e)&&Sr(e)==D};function Ya(e){return null!=e&&es(e.length)&&!Qa(e)}function $a(e){return ns(e)&&Ya(e)}var Ka=fn||vl,Za=dt?Ht(dt):function(e){return ns(e)&&Sr(e)==y};function Xa(e){if(!ns(e))return!1;var t=Sr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Qa(e){if(!ts(e))return!1;var t=Sr(e);return t==w||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ft?Ht(ft):function(e){return ns(e)&&fi(e)==x};function os(e){return"number"==typeof e||ns(e)&&Sr(e)==O}function is(e){if(!ns(e)||Sr(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Re}var as=ht?Ht(ht):function(e){return ns(e)&&Sr(e)==_},ss=mt?Ht(mt):function(e){return ns(e)&&fi(e)==k};function ls(e){return"string"==typeof e||!Ga(e)&&ns(e)&&Sr(e)==T}function us(e){return"symbol"==typeof e||ns(e)&&Sr(e)==P}var cs=gt?Ht(gt):function(e){return ns(e)&&es(e.length)&&!!Qe[Sr(e)]},ps=Go(Nr),ds=Go((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ya(e))return ls(e)?an(e):To(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=fi(e);return(t==x?Jt:t==k?nn:Us)(e)}function hs(e){return e?(e=vs(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?ar(ms(e),0,f):0}function vs(e){if("number"==typeof e)return e;if(us(e))return d;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Bt(e);var n=he.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):fe.test(e)?d:+e}function ys(e){return Po(e,Ls(e))}function bs(e){return null==e?"":so(e)}var ws=Do((function(e,t){if(xi(t)||Ya(t))Po(t,js(t),e);else for(var n in t)Le.call(t,n)&&er(e,n,t[n])})),Es=Do((function(e,t){Po(t,Ls(t),e)})),xs=Do((function(e,t,n,r){Po(t,Ls(t),e,r)})),Os=Do((function(e,t,n,r){Po(t,js(t),e,r)})),Ss=ti(ir),Cs=$r((function(e,t){e=Se(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ls(a),l=-1,u=s.length;++l<u;){var c=s[l],p=e[c];(p===o||Ua(p,Ae[c])&&!Le.call(e,c))&&(e[c]=a[c])}return e})),_s=$r((function(e){return e.push(o,Qo),vt(Ms,o,e)}));function ks(e,t,n){var r=null==e?o:xr(e,t);return r===o?n:r}function Ts(e,t){return null!=e&&hi(e,t,kr)}var Ps=Vo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),tl(ol)),As=Vo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),si),Ds=$r(Pr);function js(e){return Ya(e)?Kn(e):Mr(e)}function Ls(e){return Ya(e)?Kn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=xi(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}(e)}var Is=Do((function(e,t,n){Vr(e,t,n)})),Ms=Do((function(e,t,n,r){Vr(e,t,n,r)})),Ns=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ct(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),Po(e,ri(e),n),r&&(n=sr(n,7,Jo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Rs=ti((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Ts(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Ct(ri(e),(function(e){return[e]}));return t=si(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var zs=Ko(js),Vs=Ko(Ls);function Us(e){return null==e?[]:Wt(e,js(e))}var Bs=Mo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)}));function Hs(e){return Xs(bs(e).toLowerCase())}function Ws(e){return(e=bs(e))&&e.replace(ye,Kt).replace(Ge,"")}var Gs=Mo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=Mo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Io("toLowerCase"),$s=Mo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ks=Mo((function(e,t,n){return e+(n?" ":"")+Xs(t)})),Zs=Mo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Io("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?o:t)===o?function(e){return Ke.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Js=$r((function(e,t){try{return vt(e,o,t)}catch(e){return Xa(e)?e:new Ee(e)}})),el=ti((function(e,t){return bt(t,(function(t){t=Fi(t),or(e,t,Aa(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Fo(),rl=Fo(!0);function ol(e){return e}function il(e){return Ir("function"==typeof e?e:sr(e,1))}var al=$r((function(e,t){return function(n){return Pr(n,e,t)}})),sl=$r((function(e,t){return function(n){return Pr(e,n,t)}}));function ll(e,t,n){var r=js(t),o=Er(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Er(t,js(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Qa(e);return bt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=To(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,_t([this.value()],arguments))})})),e}function ul(){}var cl=Bo(Ct),pl=Bo(Et),dl=Bo(Pt);function fl(e){return bi(e)?Rt(Fi(e)):function(e){return function(t){return xr(t,e)}}(e)}var hl=Wo(),ml=Wo(!0);function gl(){return[]}function vl(){return!1}var yl,bl=Uo((function(e,t){return e+t}),0),wl=Yo("ceil"),El=Uo((function(e,t){return e/t}),1),xl=Yo("floor"),Ol=Uo((function(e,t){return e*t}),1),Sl=Yo("round"),Cl=Uo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ta,zn.assign=ws,zn.assignIn=Es,zn.assignInWith=xs,zn.assignWith=Os,zn.at=Ss,zn.before=Pa,zn.bind=Aa,zn.bindAll=el,zn.bindKey=Da,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},zn.chain=fa,zn.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:vn(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(cn(i/t));a<i;)l[s++]=to(e,a,a+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return _t(Ga(n)?To(n):[n],gr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?Ct(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[n(e[0]),e[1]]})):[],$r((function(n){for(var r=-1;++r<t;){var o=e[r];if(vt(o[0],this,n))return vt(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=js(e);return function(n){return lr(n,e,t)}}(sr(e,1))},zn.constant=tl,zn.countBy=ga,zn.create=function(e,t){var n=Vn(e);return null==t?n:rr(n,t)},zn.curry=function e(t,n,r){var i=Zo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,n,r){var i=Zo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.debounce=ja,zn.defaults=Cs,zn.defaultsDeep=_s,zn.defer=La,zn.delay=Ia,zn.difference=Ui,zn.differenceBy=Bi,zn.differenceWith=Hi,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:ms(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:ms(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0):[]},zn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&yi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ms(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ms(r))<0&&(r+=i),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(Ga(e)?xt:mr)(e,si(t,3))},zn.flatMap=function(e,t){return gr(Sa(e,t),1)},zn.flatMapDeep=function(e,t){return gr(Sa(e,t),c)},zn.flatMapDepth=function(e,t,n){return n=n===o?1:ms(n),gr(Sa(e,t),n)},zn.flatten=qi,zn.flattenDeep=function(e){return null!=e&&e.length?gr(e,c):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===o?1:ms(t)):[]},zn.flip=function(e){return Zo(e,512)},zn.flow=nl,zn.flowRight=rl,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:Er(e,js(e))},zn.functionsIn=function(e){return null==e?[]:Er(e,Ls(e))},zn.groupBy=Ea,zn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},zn.intersection=$i,zn.intersectionBy=Ki,zn.intersectionWith=Zi,zn.invert=Ps,zn.invertBy=As,zn.invokeMap=xa,zn.iteratee=il,zn.keyBy=Oa,zn.keys=js,zn.keysIn=Ls,zn.map=Sa,zn.mapKeys=function(e,t){var n={};return t=si(t,3),br(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=si(t,3),br(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},zn.matches=function(e){return Fr(sr(e,1))},zn.matchesProperty=function(e,t){return zr(e,sr(t,1))},zn.memoize=Ma,zn.merge=Is,zn.mergeWith=Ms,zn.method=al,zn.methodOf=sl,zn.mixin=ll,zn.negate=Na,zn.nthArg=function(e){return e=ms(e),$r((function(t){return Ur(t,e)}))},zn.omit=Ns,zn.omitBy=function(e,t){return Fs(e,Na(si(t)))},zn.once=function(e){return Pa(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(Ga(t)||(t=null==t?[]:[t]),Ga(n=r?o:n)||(n=null==n?[]:[n]),Br(e,t,n))},zn.over=cl,zn.overArgs=Ra,zn.overEvery=pl,zn.overSome=dl,zn.partial=Fa,zn.partialRight=za,zn.partition=Ca,zn.pick=Rs,zn.pickBy=Fs,zn.property=fl,zn.propertyOf=function(e){return function(t){return null==e?o:xr(e,t)}},zn.pull=Qi,zn.pullAll=Ji,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,si(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,o,n):e},zn.pullAt=ea,zn.range=hl,zn.rangeRight=ml,zn.rearg=Va,zn.reject=function(e,t){return(Ga(e)?xt:mr)(e,Na(si(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Gr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return $r(e,t=t===o?t:ms(t))},zn.reverse=ta,zn.sampleSize=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ms(t),(Ga(e)?Xn:Zr)(e,t)},zn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Xr(e,t,n,r)},zn.shuffle=function(e){return(Ga(e)?Qn:eo)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yi(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===o?r:ms(n)),to(e,t,n)):[]},zn.sortBy=_a,zn.sortedUniq=function(e){return e&&e.length?io(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&yi(e,t,n)&&(t=n=o),(n=n===o?f:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Qt(e)?wo(an(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vn(ms(t),0),$r((function(n){var r=n[t],o=wo(n,0,t);return r&&_t(o,r),vt(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:ms(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:ms(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?po(e,si(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ke(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ja(e,t,{leading:r,maxWait:t,trailing:o})},zn.thru=ha,zn.toArray=fs,zn.toPairs=zs,zn.toPairsIn=Vs,zn.toPath=function(e){return Ga(e)?Ct(e,Fi):us(e)?[e]:To(Ri(bs(e)))},zn.toPlainObject=ys,zn.transform=function(e,t,n){var r=Ga(e),o=r||Ka(e)||cs(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Qa(i)?Vn(qe(e)):{}}return(o?bt:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Ta(e,1)},zn.union=na,zn.unionBy=ra,zn.unionWith=oa,zn.uniq=function(e){return e&&e.length?lo(e):[]},zn.uniqBy=function(e,t){return e&&e.length?lo(e,si(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?lo(e,o,t):[]},zn.unset=function(e,t){return null==e||uo(e,t)},zn.unzip=ia,zn.unzipWith=aa,zn.update=function(e,t,n){return null==e?e:co(e,t,vo(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,vo(n),r)},zn.values=Us,zn.valuesIn=function(e){return null==e?[]:Wt(e,Ls(e))},zn.without=sa,zn.words=Qs,zn.wrap=function(e,t){return Fa(vo(t),e)},zn.xor=la,zn.xorBy=ua,zn.xorWith=ca,zn.zip=pa,zn.zipObject=function(e,t){return mo(e||[],t||[],er)},zn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Xr)},zn.zipWith=da,zn.entries=zs,zn.entriesIn=Vs,zn.extend=Es,zn.extendWith=xs,ll(zn,zn),zn.add=bl,zn.attempt=Js,zn.camelCase=Bs,zn.capitalize=Hs,zn.ceil=wl,zn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},zn.clone=function(e){return sr(e,4)},zn.cloneDeep=function(e){return sr(e,5)},zn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},zn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},zn.conformsTo=function(e,t){return null==t||lr(e,t,js(t))},zn.deburr=Ws,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=El,zn.endsWith=function(e,t,n){e=bs(e),t=so(t);var r=e.length,i=n=n===o?r:ar(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=Ua,zn.escape=function(e){return(e=bs(e))&&$.test(e)?e.replace(q,Zt):e},zn.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},zn.every=function(e,t,n){var r=Ga(e)?Et:fr;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},zn.find=va,zn.findIndex=Wi,zn.findKey=function(e,t){return Dt(e,si(t,3),br)},zn.findLast=ya,zn.findLastIndex=Gi,zn.findLastKey=function(e,t){return Dt(e,si(t,3),wr)},zn.floor=xl,zn.forEach=ba,zn.forEachRight=wa,zn.forIn=function(e,t){return null==e?e:vr(e,si(t,3),Ls)},zn.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),Ls)},zn.forOwn=function(e,t){return e&&br(e,si(t,3))},zn.forOwnRight=function(e,t){return e&&wr(e,si(t,3))},zn.get=ks,zn.gt=Ba,zn.gte=Ha,zn.has=function(e,t){return null!=e&&hi(e,t,_r)},zn.hasIn=Ts,zn.head=Yi,zn.identity=ol,zn.includes=function(e,t,n,r){e=Ya(e)?e:Us(e),n=n&&!r?ms(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Lt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=vn(r+o,0)),Lt(e,t,o)},zn.inRange=function(e,t,n){return t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},zn.invoke=Ds,zn.isArguments=Wa,zn.isArray=Ga,zn.isArrayBuffer=qa,zn.isArrayLike=Ya,zn.isArrayLikeObject=$a,zn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Sr(e)==v},zn.isBuffer=Ka,zn.isDate=Za,zn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(Ga(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||cs(e)||Wa(e)))return!e.length;var t=fi(e);if(t==x||t==k)return!e.size;if(xi(e))return!Mr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Dr(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Dr(e,t,o,n):!!r},zn.isError=Xa,zn.isFinite=function(e){return"number"==typeof e&&hn(e)},zn.isFunction=Qa,zn.isInteger=Ja,zn.isLength=es,zn.isMap=rs,zn.isMatch=function(e,t){return e===t||jr(e,t,ui(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,jr(e,t,ui(t),n)},zn.isNaN=function(e){return os(e)&&e!=+e},zn.isNative=function(e){if(Ei(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=os,zn.isObject=ts,zn.isObjectLike=ns,zn.isPlainObject=is,zn.isRegExp=as,zn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=p},zn.isSet=ss,zn.isString=ls,zn.isSymbol=us,zn.isTypedArray=cs,zn.isUndefined=function(e){return e===o},zn.isWeakMap=function(e){return ns(e)&&fi(e)==A},zn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Sr(e)},zn.join=function(e,t){return null==e?"":mn.call(e,t)},zn.kebabCase=Gs,zn.last=Xi,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ms(n))<0?vn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):jt(e,Mt,i,!0)},zn.lowerCase=qs,zn.lowerFirst=Ys,zn.lt=ps,zn.lte=ds,zn.max=function(e){return e&&e.length?hr(e,ol,Cr):o},zn.maxBy=function(e,t){return e&&e.length?hr(e,si(t,2),Cr):o},zn.mean=function(e){return Nt(e,ol)},zn.meanBy=function(e,t){return Nt(e,si(t,2))},zn.min=function(e){return e&&e.length?hr(e,ol,Nr):o},zn.minBy=function(e,t){return e&&e.length?hr(e,si(t,2),Nr):o},zn.stubArray=gl,zn.stubFalse=vl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Ol,zn.nth=function(e,t){return e&&e.length?Ur(e,ms(t)):o},zn.noConflict=function(){return it._===this&&(it._=Fe),this},zn.noop=ul,zn.now=ka,zn.pad=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ho(pn(o),n)+e+Ho(cn(o),n)},zn.padEnd=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?e+Ho(t-r,n):e},zn.padStart=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?Ho(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bs(e).replace(re,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hs(e),t===o?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=En();return yn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return qr(e,t)},zn.reduce=function(e,t,n){var r=Ga(e)?kt:zt,o=arguments.length<3;return r(e,si(t,4),n,o,pr)},zn.reduceRight=function(e,t,n){var r=Ga(e)?Tt:zt,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},zn.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ms(t),Yr(bs(e),t)},zn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Fi(t[r])];a===o&&(r=i,a=n),e=Qa(a)?a.call(e):a}return e},zn.round=Sl,zn.runInContext=e,zn.sample=function(e){return(Ga(e)?Zn:Kr)(e)},zn.size=function(e){if(null==e)return 0;if(Ya(e))return ls(e)?on(e):e.length;var t=fi(e);return t==x||t==k?e.size:Mr(e).length},zn.snakeCase=$s,zn.some=function(e,t,n){var r=Ga(e)?Pt:no;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},zn.sortedIndex=function(e,t){return ro(e,t)},zn.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Ua(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ro(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Ua(e[n],t))return n}return-1},zn.startCase=Ks,zn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ar(ms(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},zn.subtract=Cl,zn.sum=function(e){return e&&e.length?Vt(e,ol):0},zn.sumBy=function(e,t){return e&&e.length?Vt(e,si(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&yi(e,t,n)&&(t=o),e=bs(e),t=xs({},t,r,Xo);var i,a,s=xs({},t.imports,r.imports,Xo),l=js(s),u=Wt(s,l),c=0,p=t.interpolate||be,d="__p += '",f=Ce((t.escape||be).source+"|"+p.source+"|"+(p===X?pe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";e.replace(f,(function(t,n,r,o,s,l){return r||(r=o),d+=e.slice(c,l).replace(we,Xt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var m=Le.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(B,""):d).replace(H,"$1").replace(W,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Js((function(){return xe(l,h+"return "+d).apply(o,u)}));if(g.source=d,Xa(g))throw g;return g},zn.times=function(e,t){if((e=ms(e))<1||e>p)return[];var n=f,r=yn(e,f);t=si(t),e-=f;for(var o=Ut(r,t);++n<e;)t(n);return o},zn.toFinite=hs,zn.toInteger=ms,zn.toLength=gs,zn.toLower=function(e){return bs(e).toLowerCase()},zn.toNumber=vs,zn.toSafeInteger=function(e){return e?ar(ms(e),-9007199254740991,p):0===e?e:0},zn.toString=bs,zn.toUpper=function(e){return bs(e).toUpperCase()},zn.trim=function(e,t,n){if((e=bs(e))&&(n||t===o))return Bt(e);if(!e||!(t=so(t)))return e;var r=an(e),i=an(t);return wo(r,qt(r,i),Yt(r,i)+1).join("")},zn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.slice(0,sn(e)+1);if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,0,Yt(r,an(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,qt(r,an(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?ms(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=bs(e)).length;if(Qt(e)){var s=an(e);a=s.length}if(n>=a)return e;var l=n-on(r);if(l<1)return r;var u=s?wo(s,0,l).join(""):e.slice(0,l);if(i===o)return u+r;if(s&&(l+=u.length-l),as(i)){if(e.slice(l).search(i)){var c,p=u;for(i.global||(i=Ce(i.source,bs(de.exec(i))+"g")),i.lastIndex=0;c=i.exec(p);)var d=c.index;u=u.slice(0,d===o?l:d)}}else if(e.indexOf(so(i),l)!=l){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},zn.unescape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(G,ln):e},zn.uniqueId=function(e){var t=++Ie;return bs(e)+t},zn.upperCase=Zs,zn.upperFirst=Xs,zn.each=ba,zn.eachRight=wa,zn.first=Yi,ll(zn,(yl={},br(zn,(function(e,t){Le.call(zn.prototype,t)||(yl[t]=e)})),yl),{chain:!1}),zn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),bt(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===o?1:vn(ms(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(ol)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=$r((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Pr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Na(si(e)))},Hn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(f)},br(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Hn,u=s[0],c=l||Ga(t),p=function(e){var t=i.apply(zn,_t([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,f=!!this.__actions__.length,h=a&&!d,m=l&&!f;if(!a&&c){t=m?t:new Hn(this);var g=e.apply(t,s);return g.__actions__.push({func:ha,args:[p],thisArg:o}),new Bn(g,d)}return h&&m?e.apply(this,s):(g=this.thru(p),h?r?g.value()[0]:g.value():g)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ga(o)?o:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),br(Hn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Le.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[zo(o,2).name]=[{name:"wrapper",func:o}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=To(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=To(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=To(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,p=c.length,d=0,f=yn(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return fo(e,this.__actions__);var h=[];e:for(;l--&&d<f;){for(var m=-1,g=e[u+=t];++m<p;){var v=c[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}h[d++]=g}return h},zn.prototype.at=ma,zn.prototype.chain=function(){return fa(this)},zn.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Un;){var r=Vi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Bn(t,this.__chain__)}return this.thru(ta)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,at&&(zn.prototype[at]=function(){return this}),zn}();it._=un,(r=function(){return un}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},8303:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__extends:()=>o,__assign:()=>i,__rest:()=>a,__decorate:()=>s,__param:()=>l,__metadata:()=>u,__awaiter:()=>c,__generator:()=>p,__createBinding:()=>d,__exportStar:()=>f,__values:()=>h,__read:()=>m,__spread:()=>g,__spreadArrays:()=>v,__spreadArray:()=>y,__await:()=>b,__asyncGenerator:()=>w,__asyncDelegator:()=>E,__asyncValues:()=>x,__makeTemplateObject:()=>O,__importStar:()=>C,__importDefault:()=>_,__classPrivateFieldGet:()=>k,__classPrivateFieldSet:()=>T});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(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}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function f(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(l,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return S(t,e),t}function _(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function T(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}},4735:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o,i=(o=n(5431))&&o.__esModule?o:{default:o},a=function(e){return e};t.default=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(Array.isArray(e)&&2===e.length?e:[e,null],2),n=t[0],o=t[1];return function(e){for(var t=arguments.length,s=Array(t>1?t-1:0),l=1;l<t;l++)s[l-1]=arguments[l];var u=s.map((function(e){return n[e]})).filter(a);return"string"==typeof u[0]||"function"==typeof o?{key:e,className:o?o.apply(void 0,r(u)):u.join(" ")}:{key:e,style:i.default.apply(void 0,[{}].concat(r(u)))}}},e.exports=t.default},5431:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var o,i,a=n(e),s=1;s<arguments.length;s++){o=arguments[s],i=r(Object(o));for(var l=0;l<i.length;l++)a[i[l]]=o[i[l]]}return a}},3145:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),i=o[0],a=o[1];return r?null===a||a===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,a+1]:0===n||a===n-1?[null,null]:null===a?[null,0]:[null,a+1]}return{next:o,prev:function(e){var o=t(e,2),i=o[0],a=o[1];return r?null===a||0===a?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,a-1]:0===n||0===a?[null,null]:null===a?[null,n-1]:[null,a-1]},isLast:function(e){return null===o(e)[1]}}}},3666:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},1250:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1181),s=i(n(2383)),l=n(8586),u=n(432),c=1.5,p=function(e){function t(){var t=e.call(this)||this;return t.x=.5,t.y=.5,t.angle=0,t.ratio=1,t.minRatio=null,t.maxRatio=null,t.nextFrame=null,t.previousState=null,t.enabled=!0,t.previousState=t.getState(),t}return o(t,e),t.from=function(e){return(new t).setState(e)},t.prototype.enable=function(){return this.enabled=!0,this},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.getState=function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}},t.prototype.hasState=function(e){return this.x===e.x&&this.y===e.y&&this.ratio===e.ratio&&this.angle===e.angle},t.prototype.getPreviousState=function(){var e=this.previousState;return e?{x:e.x,y:e.y,angle:e.angle,ratio:e.ratio}:null},t.prototype.getBoundedRatio=function(e){var t=e;return"number"==typeof this.minRatio&&(t=Math.max(t,this.minRatio)),"number"==typeof this.maxRatio&&(t=Math.min(t,this.maxRatio)),t},t.prototype.validateState=function(e){var t={};return"number"==typeof e.x&&(t.x=e.x),"number"==typeof e.y&&(t.y=e.y),"number"==typeof e.angle&&(t.angle=e.angle),"number"==typeof e.ratio&&(t.ratio=this.getBoundedRatio(e.ratio)),t},t.prototype.isAnimated=function(){return!!this.nextFrame},t.prototype.setState=function(e){if(!this.enabled)return this;this.previousState=this.getState();var t=this.validateState(e);return"number"==typeof t.x&&(this.x=t.x),"number"==typeof t.y&&(this.y=t.y),"number"==typeof t.angle&&(this.angle=t.angle),"number"==typeof t.ratio&&(this.ratio=t.ratio),this.hasState(this.previousState)||this.emit("updated",this.getState()),this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var o=Object.assign({},a.ANIMATE_DEFAULTS,t),i=this.validateState(e),u="function"==typeof o.easing?o.easing:s.default[o.easing],c=Date.now(),p=this.getState(),d=function(){var e=(Date.now()-c)/o.duration;if(e>=1)return r.nextFrame=null,r.setState(i),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var t=u(e),n={};"number"==typeof i.x&&(n.x=p.x+(i.x-p.x)*t),"number"==typeof i.y&&(n.y=p.y+(i.y-p.y)*t),"number"==typeof i.angle&&(n.angle=p.angle+(i.angle-p.angle)*t),"number"==typeof i.ratio&&(n.ratio=p.ratio+(i.ratio-p.ratio)*t),r.setState(n),r.nextFrame=(0,l.requestFrame)(d)};this.nextFrame?((0,l.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,l.requestFrame)(d)):d(),this.animationCallback=n}},t.prototype.animatedZoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio/e});this.animate({ratio:this.ratio/(e.factor||c)},e)}else this.animate({ratio:this.ratio/c})},t.prototype.animatedUnzoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio*e});this.animate({ratio:this.ratio*(e.factor||c)},e)}else this.animate({ratio:this.ratio*c})},t.prototype.animatedReset=function(e){this.animate({x:.5,y:.5,ratio:1,angle:0},e)},t.prototype.copy=function(){return t.from(this.getState())},t}(u.TypedEventEmitter);t.default=p},8231:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getWheelDelta=t.getTouchCoords=t.getTouchesArray=t.getWheelCoords=t.getMouseCoords=t.getPosition=void 0;var a=n(432);function s(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function l(e,t){return i(i({},s(e,t)),{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){this.sigmaDefaultPrevented=!0},original:e})}function u(e){for(var t=[],n=0,r=Math.min(e.length,2);n<r;n++)t.push(e[n]);return t}function c(e){if(void 0!==e.deltaY)return-3*e.deltaY/360;if(void 0!==e.detail)return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}t.getPosition=s,t.getMouseCoords=l,t.getWheelCoords=function(e,t){return i(i({},l(e,t)),{delta:c(e)})},t.getTouchesArray=u,t.getTouchCoords=function(e,t){return{touches:u(e.touches).map((function(e){return s(e,t)})),original:e}},t.getWheelDelta=c;var p=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return o(t,e),t}(a.TypedEventEmitter);t.default=p},3834:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(8231)),u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.draggedEvents=0,r.downStartTime=null,r.lastMouseX=null,r.lastMouseY=null,r.isMouseDown=!1,r.isMoving=!1,r.movingTimeout=null,r.startCameraState=null,r.clicks=0,r.doubleClickTimeout=null,r.currentWheelDirection=0,r.handleClick=r.handleClick.bind(r),r.handleRightClick=r.handleRightClick.bind(r),r.handleDown=r.handleDown.bind(r),r.handleUp=r.handleUp.bind(r),r.handleMove=r.handleMove.bind(r),r.handleWheel=r.handleWheel.bind(r),r.handleOut=r.handleOut.bind(r),t.addEventListener("click",r.handleClick,!1),t.addEventListener("contextmenu",r.handleRightClick,!1),t.addEventListener("mousedown",r.handleDown,!1),t.addEventListener("wheel",r.handleWheel,!1),t.addEventListener("mouseout",r.handleOut,!1),document.addEventListener("mousemove",r.handleMove,!1),document.addEventListener("mouseup",r.handleUp,!1),r}return o(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("click",this.handleClick),e.removeEventListener("contextmenu",this.handleRightClick),e.removeEventListener("mousedown",this.handleDown),e.removeEventListener("wheel",this.handleWheel),e.removeEventListener("mouseout",this.handleOut),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)},t.prototype.handleClick=function(e){var t=this;if(this.enabled){if(this.clicks++,2===this.clicks)return this.clicks=0,"number"==typeof this.doubleClickTimeout&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(e);setTimeout((function(){t.clicks=0,t.doubleClickTimeout=null}),300),this.draggedEvents<3&&this.emit("click",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,l.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=(0,l.getMouseCoords)(e,this.container);if(this.emit("doubleClick",t),!t.sigmaDefaultPrevented){var n=this.renderer.getCamera(),r=n.getBoundedRatio(n.getState().ratio/2.2);n.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200})}}},t.prototype.handleDown=function(e){if(this.enabled){this.startCameraState=this.renderer.getCamera().getState();var t=(0,l.getPosition)(e,this.container),n=t.x,r=t.y;this.lastMouseX=n,this.lastMouseY=r,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0,this.emit("mousedown",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleUp=function(e){var t=this;if(this.enabled&&this.isMouseDown){var n=this.renderer.getCamera();this.isMouseDown=!1,"number"==typeof this.movingTimeout&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var r=(0,l.getPosition)(e,this.container),o=r.x,i=r.y,a=n.getState(),s=n.getPreviousState()||{x:0,y:0};this.isMoving?n.animate({x:a.x+3*(a.x-s.x),y:a.y+3*(a.y-s.y)},{duration:200,easing:"quadraticOut"}):this.lastMouseX===o&&this.lastMouseY===i||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,l.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&this.emit("mousemove",n),this.isMouseDown){this.isMoving=!0,this.draggedEvents++,"number"==typeof this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){t.movingTimeout=null,t.isMoving=!1}),100);var r=this.renderer.getCamera(),o=(0,l.getPosition)(e,this.container),i=o.x,a=o.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),u=this.renderer.viewportToFramedGraph({x:i,y:a}),c=s.x-u.x,p=s.y-u.y,d=r.getState(),f=d.x+c,h=d.y+p;r.setState({x:f,y:h}),this.lastMouseX=i,this.lastMouseY=a,e.preventDefault(),e.stopPropagation()}}},t.prototype.handleWheel=function(e){var t=this;if(this.enabled){e.preventDefault(),e.stopPropagation();var n=(0,l.getWheelDelta)(e);if(n){var r=(0,l.getWheelCoords)(e,this.container);if(this.emit("wheel",r),!r.sigmaDefaultPrevented){var o=n>0?1/1.7:1.7,i=this.renderer.getCamera(),a=i.getBoundedRatio(i.getState().ratio*o),s=n>0?1:-1,u=Date.now();this.currentWheelDirection===s&&this.lastWheelTriggerTime&&u-this.lastWheelTriggerTime<50||(i.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=s,this.lastWheelTriggerTime=u)}}}},t.prototype.handleOut=function(){},t}(l.default);t.default=u},916:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(8231)),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.touchMode=0,r.handleStart=r.handleStart.bind(r),r.handleLeave=r.handleLeave.bind(r),r.handleMove=r.handleMove.bind(r),t.addEventListener("touchstart",r.handleStart,!1),t.addEventListener("touchend",r.handleLeave,!1),t.addEventListener("touchcancel",r.handleLeave,!1),t.addEventListener("touchmove",r.handleMove,!1),r}return o(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("touchstart",this.handleStart),e.removeEventListener("touchend",this.handleLeave),e.removeEventListener("touchcancel",this.handleLeave),e.removeEventListener("touchmove",this.handleMove)},t.prototype.getDimensions=function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}},t.prototype.dispatchRelatedMouseEvent=function(e,t,n,r){var o=n||(0,u.getPosition)(t.touches[0],this.container),i=new MouseEvent(e,{clientX:o.x,clientY:o.y,altKey:t.altKey,ctrlKey:t.ctrlKey});(r||this.container).dispatchEvent(i)},t.prototype.handleStart=function(e){var t=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousedown",e);var n=(0,u.getTouchesArray)(e.touches);if(this.isMoving=!0,this.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,u.getPosition)(e,t.container)})),this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=l(this.startTouchesPositions,2),o=r[0],i=o.x,a=o.y,s=r[1],c=s.x,p=s.y;this.startTouchesAngle=Math.atan2(p-a,c-i),this.startTouchesDistance=Math.sqrt(Math.pow(c-i,2)+Math.pow(p-a,2))}this.emit("touchdown",(0,u.getTouchCoords)(e,this.container))}},t.prototype.handleLeave=function(e){if(this.enabled){switch(e.preventDefault(),0===e.touches.length&&this.lastTouchesPositions&&this.lastTouchesPositions.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouchesPositions[0],document),this.dispatchRelatedMouseEvent("click",e,this.lastTouchesPositions[0])),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(1===e.touches.length){this.handleStart(e),e.preventDefault();break}case 1:if(this.isMoving){var t=this.renderer.getCamera(),n=t.getState(),r=t.getPreviousState()||{x:0,y:0};t.animate({x:n.x+3*(n.x-r.x),y:n.y+3*(n.y-r.y)},{duration:200,easing:"quadraticOut"})}this.isMoving=!1,this.touchMode=0}this.emit("touchup",(0,u.getTouchCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t,n=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousemove",e);var r=this.renderer.getCamera(),o=this.startCameraState,i=(0,u.getTouchesArray)(e.touches).map((function(e){return(0,u.getPosition)(e,n.container)}));switch(this.lastTouchesPositions=i,this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200),this.touchMode){case 1:var a=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),s=a.x,c=a.y,p=this.renderer.viewportToFramedGraph(i[0]),d=p.x,f=p.y;r.setState({x:o.x+s-d,y:o.y+c-f});break;case 2:var h={},m=i[0],g=m.x,v=m.y,y=i[1],b=y.x,w=y.y,E=Math.atan2(w-v,b-g)-this.startTouchesAngle,x=Math.hypot(w-v,b-g)/this.startTouchesDistance,O=r.getBoundedRatio(o.ratio/x);h.ratio=O,h.angle=o.angle+E;var S=this.getDimensions(),C=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:o}),_=Math.min(S.width,S.height),k=_/S.width,T=O/_;f=v-_/2/(_/S.height),d=(t=l([(d=g-_/2/k)*Math.cos(-h.angle)-f*Math.sin(-h.angle),f*Math.cos(-h.angle)+d*Math.sin(-h.angle)],2))[0],f=t[1],h.x=C.x-d*T,h.y=C.y+f*T,r.setState(h)}this.emit("touchmove",(0,u.getTouchCoords)(e,this.container))}},t}(u.default);t.default=c},2306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeLabelsToDisplayFromNodes=t.LabelGrid=void 0;var n=function(){function e(e,t){this.key=e,this.size=t}return e.compare=function(e,t){return e.size>t.size?-1:e.size<t.size||e.key>t.key?1:-1},e}(),r=function(){function e(){this.width=0,this.height=0,this.cellSize=0,this.columns=0,this.rows=0,this.cells={}}return e.prototype.resizeAndClear=function(e,t){this.width=e.width,this.height=e.height,this.cellSize=t,this.columns=Math.ceil(e.width/t),this.rows=Math.ceil(e.height/t),this.cells={}},e.prototype.getIndex=function(e){var t=Math.floor(e.x/this.cellSize);return Math.floor(e.y/this.cellSize)*this.columns+t},e.prototype.add=function(e,t,r){var o=new n(e,t),i=this.getIndex(r),a=this.cells[i];a||(a=[],this.cells[i]=a),a.push(o)},e.prototype.organize=function(){for(var e in this.cells)this.cells[e].sort(n.compare)},e.prototype.getLabelsToDisplay=function(e,t){var n=this.cellSize*this.cellSize,r=n/e/e*t/n,o=Math.ceil(r),i=[];for(var a in this.cells)for(var s=this.cells[a],l=0;l<Math.min(o,s.length);l++)i.push(s[l].key);return i},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,o=e.displayedNodeLabels,i=[];return t.forEachEdge((function(e,t,a,s){(a===n||s===n||r.has(a)||r.has(s)||o.has(a)&&o.has(s))&&i.push(e)})),i}},9316:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var a=i(n(8884)),s=!1;function l(e){return e.x1===e.x2||e.y1===e.y2}function u(e){var t=Math.sqrt(Math.pow(e.x2-e.x1,2)+Math.pow(e.y2-e.y1,2)),n=(e.y1-e.y2)*e.height/t,r=(e.x2-e.x1)*e.height/t,o={x:e.x1,y:e.y1},i={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},s={x:e.x2+n,y:e.y2+r},l=Math.min(o.x,i.x,a.x,s.x),u=Math.max(o.x,i.x,a.x,s.x),c=Math.min(o.y,i.y,a.y,s.y);return{x1:l,y1:c,x2:u,y2:c,height:Math.max(o.y,i.y,a.y,s.y)-c}}function c(e,t,n,r,o,i,a){return e<r+i&&e+n>r&&t<o+a&&t+n>o}function p(e,t,n,r,o,i,a,s){return e<o+a&&e+n>o&&t<i+s&&t+r>i}function d(e,t,n,r,o,i){var a=e<n+o/2;return t<r+i/2?a?1:2:a?3:4}t.isRectangleAligned=l,t.getCircumscribedAlignedRectangle=u,t.squareCollidesWithQuad=c,t.rectangleCollidesWithQuad=p;var f=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={}).outside=[],t),this.cache=null,this.lastRectangle=null;var n=Math.pow(4,5);this.data=new Float32Array((4*n-1)/3*4),e.boundaries?this.resize(e.boundaries):this.resize({x:0,y:0,width:1,height:1})}return e.prototype.add=function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var l=o-a,u=i-a,p=2*a,d=0,f=0;;){if(d>=5)return n[f]=n[f]||[],void n[f].push(r);var h=4*f+4,m=4*f+8,g=4*f+12,v=4*f+16,y=c(l,u,p,t[h+0],t[h+1],t[h+2],t[h+3]),b=c(l,u,p,t[m+0],t[m+1],t[m+2],t[m+3]),w=c(l,u,p,t[g+0],t[g+1],t[g+2],t[g+3]),E=c(l,u,p,t[v+0],t[v+1],t[v+2],t[v+3]),x=[y,b,w,E].reduce((function(e,t){return t?e+1:e}),0);if(0===x&&0===d)return n.outside.push(r),void(!s&&n.outside.length>=5&&(s=!0,console.warn("sigma/quadtree.insertNode: At least 5 nodes are outside the global quadtree zone. You might have a problem with the normalization function or the custom bounding box.")));if(0===x)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(d,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(3===x)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(d,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(x>1)return n[f]=n[f]||[],void n[f].push(r);d++,y&&(f=h),b&&(f=m),w&&(f=g),E&&(f=v)}}(0,this.data,this.containers,e,t,n,r),this},e.prototype.resize=function(e){this.clear(),this.data[0]=e.x,this.data[1]=e.y,this.data[2]=e.width,this.data[3]=e.height,function(e,t){for(var n=[0,0];n.length;){var r=n.pop(),o=n.pop(),i=4*o+4,a=4*o+8,s=4*o+12,l=4*o+16,u=t[o+0],c=t[o+1],p=t[o+2]/2,d=t[o+3]/2;t[i+0]=u,t[i+1]=c,t[i+2]=p,t[i+3]=d,t[a+0]=u+p,t[a+1]=c,t[a+2]=p,t[a+3]=d,t[s+0]=u,t[s+1]=c+d,t[s+2]=p,t[s+3]=d,t[l+0]=u+p,t[l+1]=c+d,t[l+2]=p,t[l+3]=d,r<4&&(n.push(l,r+1),n.push(s,r+1),n.push(a,r+1),n.push(i,r+1))}}(0,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={}).outside=[],e),this},e.prototype.point=function(e,t){var n=this.containers.outside,i=0,a=0;do{this.containers[i]&&n.push.apply(n,o([],r(this.containers[i]),!1)),i=4*i+4*d(e,t,this.data[i+0],this.data[i+1],this.data[i+2],this.data[i+3]),a++}while(a<=5);return n},e.prototype.rectangle=function(e,t,n,i,s){var c,d=this.lastRectangle;return d&&e===d.x1&&n===d.x2&&t===d.y1&&i===d.y2&&s===d.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:i,height:s},l(this.lastRectangle)||(this.lastRectangle=u(this.lastRectangle)),this.cache=function(e,t,n,r,o,i,s){for(var l,u=[0,0],c=[];u.length;){var d=u.pop(),f=u.pop();if((l=n[f])&&(0,a.default)(c,l),!(d>=5)){var h=4*f+4,m=4*f+8,g=4*f+12,v=4*f+16,y=p(r,o,i,s,t[h+0],t[h+1],t[h+2],t[h+3]),b=p(r,o,i,s,t[m+0],t[m+1],t[m+2],t[m+3]),w=p(r,o,i,s,t[g+0],t[g+1],t[g+2],t[g+3]),E=p(r,o,i,s,t[v+0],t[v+1],t[v+2],t[v+3]);y&&u.push(h,d+1),b&&u.push(m,d+1),w&&u.push(g,d+1),E&&u.push(v,d+1)}}return c}(0,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-i),s),(c=this.cache).push.apply(c,o([],r(this.containers.outside),!1))),this.cache},e}();t.default=f},9358:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sigma=t.MouseCaptor=t.QuadTree=t.Camera=void 0;var o=r(n(8953));t.Sigma=o.default;var i=r(n(1250));t.Camera=i.default;var a=r(n(9316));t.QuadTree=a.default;var s=r(n(3834));t.MouseCaptor=s.default,t.default=o.default},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var i=o.edgeLabelSize,a=o.edgeLabelFont,s=o.edgeLabelWeight,l=o.edgeLabelColor.attribute?t[o.edgeLabelColor.attribute]||o.edgeLabelColor.color||"#000":o.edgeLabelColor.color,u=t.label;if(u){e.fillStyle=l,e.font="".concat(s," ").concat(i,"px ").concat(a);var c,p,d=n.size,f=r.size,h=n.x,m=n.y,g=r.x,v=r.y,y=g-h,b=v-m,w=Math.sqrt(y*y+b*b);if(!(w<d+f)){c=((h+=y*d/w)+(g-=y*f/w))/2,p=((m+=b*d/w)+(v-=b*f/w))/2,y=g-h,b=v-m,w=Math.sqrt(y*y+b*b);var E,x=e.measureText(u).width;if(x>w){for(u+="…",x=e.measureText(u).width;x>w&&u.length>1;)u=u.slice(0,-2)+"…",x=e.measureText(u).width;if(u.length<4)return}E=y>0?b>0?Math.acos(y/w):Math.asin(b/w):b>0?Math.acos(y/w)+Math.PI:Math.asin(y/w)+Math.PI/2,e.save(),e.translate(c,p),e.rotate(E),e.fillText(u,-x/2,t.size/2+i),e.restore()}}}},4362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2193));t.default=function(e,t,n){var r=n.labelSize,i=n.labelFont,a=n.labelWeight;if(e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000","string"==typeof t.label){var s=e.measureText(t.label).width,l=Math.round(s+5),u=Math.round(r+4),c=Math.max(t.size,r/2)+2,p=Math.asin(u/2/c),d=Math.sqrt(Math.abs(Math.pow(c,2)-Math.pow(u/2,2)));e.beginPath(),e.moveTo(t.x+d,t.y+u/2),e.lineTo(t.x+c+l,t.y+u/2),e.lineTo(t.x+c+l,t.y-u/2),e.lineTo(t.x+d,t.y-u/2),e.arc(t.x,t.y,c,p,-p),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,(0,o.default)(e,t,n)}},2193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(t.label){var r=n.labelSize,o=n.labelFont,i=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font="".concat(i," ").concat(r,"px ").concat(o),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},4488:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createEdgeCompoundProgram=t.AbstractEdgeProgram=void 0;var i=function(e){function t(t,n,r,o,i){return e.call(this,t,n,r,o,i)||this}return o(t,e),t}(n(1549).AbstractProgram);t.AbstractEdgeProgram=i,t.createEdgeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.computeIndices=function(){this.programs.forEach((function(e){return e.computeIndices()}))},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n,r,o){this.programs.forEach((function(i){return i.process(e,t,n,r,o)}))},t}()}},1624:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createNodeCompoundProgram=t.AbstractNodeProgram=void 0;var i=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r,o,i)||this;a.positionLocation=t.getAttribLocation(a.program,"a_position"),a.sizeLocation=t.getAttribLocation(a.program,"a_size"),a.colorLocation=t.getAttribLocation(a.program,"a_color");var s=t.getUniformLocation(a.program,"u_matrix");if(null===s)throw new Error("AbstractNodeProgram: error while getting matrixLocation");a.matrixLocation=s;var l=t.getUniformLocation(a.program,"u_ratio");if(null===l)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=l;var u=t.getUniformLocation(a.program,"u_scale");if(null===u)throw new Error("AbstractNodeProgram: error while getting scaleLocation");return a.scaleLocation=u,a}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.sizeLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.sizeLocation,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,this.attributes*Float32Array.BYTES_PER_ELEMENT,12)},t}(n(1549).AbstractProgram);t.AbstractNodeProgram=i,t.createNodeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.render=function(e){this.programs.forEach((function(t){return t.render(e)}))},t.prototype.process=function(e,t,n){this.programs.forEach((function(r){return r.process(e,t,n)}))},t}()}},1549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProgram=void 0;var r=n(3451),o=function(){function e(e,t,n,o,i){this.array=new Float32Array,this.points=o,this.attributes=i,this.gl=e,this.vertexShaderSource=t,this.fragmentShaderSource=n;var a=e.createBuffer();if(null===a)throw new Error("AbstractProgram: error while creating the buffer");this.buffer=a,e.bindBuffer(e.ARRAY_BUFFER,this.buffer),this.vertexShader=(0,r.loadVertexShader)(e,this.vertexShaderSource),this.fragmentShader=(0,r.loadFragmentShader)(e,this.fragmentShaderSource),this.program=(0,r.loadProgram)(e,[this.vertexShader,this.fragmentShader])}return e.prototype.bufferData=function(){var e=this.gl;e.bufferData(e.ARRAY_BUFFER,this.array,e.DYNAMIC_DRAW)},e.prototype.allocate=function(e){this.array=new Float32Array(this.points*this.attributes*e)},e.prototype.hasNothingToRender=function(){return 0===this.array.length},e}();t.AbstractProgram=o},5696:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(4488),i=r(n(3193)),a=r(n(3653)),s=(0,o.createEdgeCompoundProgram)([a.default,i.default]);t.default=s},3193:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(577)),l=i(n(1604)),u=function(e){function t(t){var n=e.call(this,t,s.default,l.default,3,9)||this;n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius"),n.barycentricLocation=t.getAttribLocation(n.program,"a_barycentric");var r=t.getUniformLocation(n.program,"u_matrix");if(null===r)throw new Error("EdgeArrowHeadProgram: error while getting matrixLocation");n.matrixLocation=r;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=o;var i=t.getUniformLocation(n.program,"u_correctionRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=i,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.barycentricLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,9*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.barycentricLocation,3,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,24)},t.prototype.computeIndices=function(){},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=27*o,s=i+27;i<s;i++)this.array[i]=0;else{var l=n.size||1,u=t.size||1,c=e.x,p=e.y,d=t.x,f=t.y,h=(0,a.floatColor)(n.color),m=d-c,g=f-p,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var w=27*o,E=this.array;E[w++]=d,E[w++]=f,E[w++]=-y,E[w++]=-b,E[w++]=u,E[w++]=h,E[w++]=1,E[w++]=0,E[w++]=0,E[w++]=d,E[w++]=f,E[w++]=-y,E[w++]=-b,E[w++]=u,E[w++]=h,E[w++]=0,E[w++]=1,E[w++]=0,E[w++]=d,E[w++]=f,E[w++]=-y,E[w++]=-b,E[w++]=u,E[w++]=h,E[w++]=0,E[w++]=0,E[w]=1}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawArrays(t.TRIANGLES,0,this.array.length/9)}},t}(n(4488).AbstractEdgeProgram);t.default=u},3653:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(4488),s=n(8586),l=i(n(3574)),u=i(n(3343)),c=function(e){function t(t){var n=e.call(this,t,l.default,u.default,4,6)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=o;var i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=i;var a=t.getUniformLocation(n.program,"u_correctionRatio");if(null===a)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");return n.correctionRatioLocation=a,n.canUse32BitsIndices=(0,s.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,20)},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=24*o,a=i+24;i<a;i++)this.array[i]=0;else{var l=n.size||1,u=e.x,c=e.y,p=t.x,d=t.y,f=t.size||1,h=(0,s.floatColor)(n.color),m=p-u,g=d-c,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var w=24*o,E=this.array;E[w++]=u,E[w++]=c,E[w++]=y,E[w++]=b,E[w++]=h,E[w++]=0,E[w++]=u,E[w++]=c,E[w++]=-y,E[w++]=-b,E[w++]=h,E[w++]=0,E[w++]=p,E[w++]=d,E[w++]=y,E[w++]=b,E[w++]=h,E[w++]=f,E[w++]=p,E[w++]=d,E[w++]=-y,E[w++]=-b,E[w++]=h,E[w]=-f}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(a.AbstractEdgeProgram);t.default=c},5372:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(9843)),l=i(n(3343)),u=function(e){function t(t){var n=e.call(this,t,s.default,l.default,4,5)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeProgram: error while creating indicesBuffer");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=o;var i=t.getUniformLocation(n.program,"u_correctionRatio");if(null===i)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=i;var u=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===u)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");return n.sqrtZoomRatioLocation=u,n.canUse32BitsIndices=(0,a.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,5*Float32Array.BYTES_PER_ELEMENT,16)},t.prototype.computeIndices=function(){for(var e=this.array.length/5,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=20*o,s=i+20;i<s;i++)this.array[i]=0;else{var l=n.size||1,u=e.x,c=e.y,p=t.x,d=t.y,f=(0,a.floatColor)(n.color),h=p-u,m=d-c,g=h*h+m*m,v=0,y=0;g&&(v=-m*(g=1/Math.sqrt(g))*l,y=h*g*l);var b=20*o,w=this.array;w[b++]=u,w[b++]=c,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=u,w[b++]=c,w[b++]=-v,w[b++]=-y,w[b++]=f,w[b++]=p,w[b++]=d,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=p,w[b++]=d,w[b++]=-v,w[b++]=-y,w[b]=f}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(n(4488).AbstractEdgeProgram);t.default=u},732:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(1432)),l=i(n(6846)),u=function(e){function t(t){var n=e.call(this,t,s.default,l.default,1,4)||this;return n.bind(),n}return o(t,e),t.prototype.process=function(e,t,n){var r=this.array,o=1*n*4;if(t)return r[o++]=0,r[o++]=0,r[o++]=0,void(r[o++]=0);var i=(0,a.floatColor)(e.color);r[o++]=e.x,r[o++]=e.y,r[o++]=e.size,r[o]=i},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/4)}},t}(n(1624).AbstractNodeProgram);t.default=u},1604:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\n\nvoid main(void) {\n gl_FragColor = v_color;\n}\n";e.exports=n})()},577:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute vec2 a_normal;\nattribute float a_radius;\nattribute vec4 a_color;\nattribute vec3 a_barycentric;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadWidthLengthRatio = 0.66;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl and\n // edge.clamped.vert.glsl. Please read it to get better comments on what's\n // happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n float adaptedWebGLNodeRadius = a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n float adaptedWebGLArrowHeadHalfWidth = adaptedWebGLArrowHeadLength * arrowHeadWidthLengthRatio / 2.0;\n\n float da = a_barycentric.x;\n float db = a_barycentric.y;\n float dc = a_barycentric.z;\n\n vec2 delta = vec2(\n da * (adaptedWebGLNodeRadius * unitNormal.y)\n + db * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y + adaptedWebGLArrowHeadHalfWidth * unitNormal.x)\n + dc * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y - adaptedWebGLArrowHeadHalfWidth * unitNormal.x),\n\n da * (-adaptedWebGLNodeRadius * unitNormal.x)\n + db * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x + adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n + dc * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x - adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n );\n\n vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;\n\n gl_Position = vec4(position, 0, 1);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3574:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl. Please read it to\n // get better comments on what's happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here, we move the point to leave space for the arrow head:\n float direction = sign(a_radius);\n float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n\n vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3343:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\n\nvoid main(void) {\n float dist = length(v_normal) * v_thickness;\n\n float t = smoothstep(\n v_thickness - feather,\n v_thickness,\n dist\n );\n\n gl_FragColor = mix(v_color, transparent, t);\n}";e.exports=n})()},9843:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r='attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // We require edges to be at least `minThickness` pixels thick *on screen*\n // (so we need to compensate the SQRT zoom ratio):\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction\n // ratio:\n float webGLThickness = pixelsThickness * u_correctionRatio;\n\n // Finally, we adapt the edge thickness to the "SQRT rule" in sigma (so that\n // items are not too big when zoomed in, and not too small when zoomed out).\n // The exact computation should be `adapted = value * zoom / sqrt(zoom)`, but\n // it\'s simpler like this:\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n // For the fragment shader though, we need a thickness that takes the "magic"\n // correction ratio into account (as in webGLThickness), but so that the\n // antialiasint effect does not depend on the zoom level. So here\'s yet\n // another thickness version:\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n';e.exports=n})()},6846:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float radius = 0.5;\n\nvoid main(void) {\n vec4 color0 = vec4(0.0, 0.0, 0.0, 0.0);\n vec2 m = gl_PointCoord - vec2(0.5, 0.5);\n float dist = radius - length(m);\n\n float t = 0.0;\n if (dist > v_border)\n t = 1.0;\n else if (dist > 0.0)\n t = dist / v_border;\n\n gl_FragColor = mix(color0, v_color, t);\n}\n";e.exports=n})()},1432:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4(\n (u_matrix * vec3(a_position, 1)).xy,\n 0,\n 1\n );\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3451:(e,t)=>{"use strict";function n(e,t,n){var r="VERTEX"===e?t.VERTEX_SHADER:t.FRAGMENT_SHADER,o=t.createShader(r);if(null===o)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(o,n),t.compileShader(o),!t.getShaderParameter(o,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(o);throw t.deleteShader(o),new Error("loadShader: error while compiling the shader:\n".concat(i,"\n").concat(n))}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.loadProgram=t.loadFragmentShader=t.loadVertexShader=void 0,t.loadVertexShader=function(e,t){return n("VERTEX",e,t)},t.loadFragmentShader=function(e,t){return n("FRAGMENT",e,t)},t.loadProgram=function(e,t){var n,r,o=e.createProgram();if(null===o)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(o,t[n]);if(e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw e.deleteProgram(o),new Error("loadProgram: error while linking the program.");return o}},9061:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SETTINGS=t.validateSettings=void 0;var o=r(n(2193)),i=r(n(4362)),a=r(n(284)),s=r(n(732)),l=r(n(5372)),u=r(n(5696));t.validateSettings=function(e){if("number"!=typeof e.labelDensity||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if("number"==typeof t&&"number"==typeof n&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")},t.DEFAULT_SETTINGS={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeClickEvents:!1,enableEdgeWheelEvents:!1,enableEdgeHoverEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,labelRenderer:o.default,hoverRenderer:i.default,edgeLabelRenderer:a.default,nodeProgramClasses:{circle:s.default},edgeProgramClasses:{arrow:u.default,line:l.default}}},8953:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(1250)),u=s(n(3834)),c=s(n(9316)),p=n(432),d=n(8586),f=n(2306),h=n(9061),m=s(n(916)),g=n(2237),v=n(8073),y=(0,d.getPixelRatio)();function b(e,t,n){if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),n.label||""===n.label||(n.label=null),void 0!==n.label&&null!==n.label?n.label=""+n.label:n.label=null,n.size||(n.size=2),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("highlighted")||(n.highlighted=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function w(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var E=function(e){function t(t,n,r){void 0===r&&(r={});var o=e.call(this)||this;if(o.elements={},o.canvasContexts={},o.webGLContexts={},o.activeListeners={},o.quadtree=new c.default,o.labelGrid=new f.LabelGrid,o.nodeDataCache={},o.edgeDataCache={},o.nodesWithForcedLabels=[],o.edgesWithForcedLabels=[],o.nodeKeyToIndex={},o.edgeKeyToIndex={},o.nodeExtent={x:[0,1],y:[0,1]},o.matrix=(0,g.identity)(),o.invMatrix=(0,g.identity)(),o.correctionRatio=1,o.customBBox=null,o.normalizationFunction=(0,d.createNormalizationFunction)({x:[-1/0,1/0],y:[-1/0,1/0]}),o.cameraSizeRatio=1,o.width=0,o.height=0,o.displayedLabels=new Set,o.highlightedNodes=new Set,o.hoveredNode=null,o.hoveredEdge=null,o.renderFrame=null,o.renderHighlightedNodesFrame=null,o.needToProcess=!1,o.needToSoftProcess=!1,o.checkEdgesEventsFrame=null,o.nodePrograms={},o.hoverNodePrograms={},o.edgePrograms={},o.settings=(0,d.assign)({},h.DEFAULT_SETTINGS,r),(0,h.validateSettings)(o.settings),(0,d.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");for(var i in o.graph=t,o.container=n,o.initializeCache(),o.createWebGLContext("edges",{preserveDrawingBuffer:!0}),o.createCanvasContext("edgeLabels"),o.createWebGLContext("nodes"),o.createCanvasContext("labels"),o.createCanvasContext("hovers"),o.createWebGLContext("hoverNodes"),o.createCanvasContext("mouse"),o.webGLContexts){var a=o.webGLContexts[i];a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.enable(a.BLEND)}for(var s in o.settings.nodeProgramClasses){var p=o.settings.nodeProgramClasses[s];o.nodePrograms[s]=new p(o.webGLContexts.nodes,o),o.hoverNodePrograms[s]=new p(o.webGLContexts.hoverNodes,o)}for(var s in o.settings.edgeProgramClasses){var v=o.settings.edgeProgramClasses[s];o.edgePrograms[s]=new v(o.webGLContexts.edges,o)}return o.resize(),o.camera=new l.default,o.bindCameraHandlers(),o.mouseCaptor=new u.default(o.elements.mouse,o),o.touchCaptor=new m.default(o.elements.mouse,o),o.bindEventHandlers(),o.bindGraphHandlers(),o.handleSettingsUpdate(),o.process(),o.render(),o}return o(t,e),t.prototype.createCanvas=function(e){var t=(0,d.createElement)("canvas",{position:"absolute"},{class:"sigma-".concat(e)});return this.elements[e]=t,this.container.appendChild(t),t},t.prototype.createCanvasContext=function(e){var t=this.createCanvas(e);return this.canvasContexts[e]=t.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),this},t.prototype.createWebGLContext=function(e,t){var n,r=this.createCanvas(e),o=i({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",o))||(n=r.getContext("webgl",o)),n||(n=r.getContext("experimental-webgl",o)),this.webGLContexts[e]=n,this},t.prototype.initializeCache=function(){var e=this,t=this.graph,n=0;t.forEachNode((function(t){e.nodeKeyToIndex[t]=n++})),n=0,t.forEachEdge((function(t){e.edgeKeyToIndex[t]=n++}))},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize);var t=function(e,t,n,r,o){return e>n-o&&e<n+o&&t>r-o&&t<r+o&&Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))<o};this.activeListeners.handleMove=function(n){for(var r,o,a,s=(r=n.x,o=n.y,a=e.viewportToFramedGraph({x:r,y:o}),e.quadtree.point(a.x,1-a.y)),l={event:n,preventSigmaDefault:function(){this.event.preventSigmaDefault()}},u=1/0,c=null,p=0,f=s.length;p<f;p++){var h=s[p],m=e.nodeDataCache[h],g=e.framedGraphToViewport(m),v=e.scaleSize(m.size);if(!m.hidden&&t(n.x,n.y,g.x,g.y,v)){var y=Math.sqrt(Math.pow(n.x-g.x,2)+Math.pow(n.y-g.y,2));y<u&&(u=y,c=h)}}return c&&e.hoveredNode!==c&&!e.nodeDataCache[c].hidden?(e.hoveredNode&&e.emit("leaveNode",i(i({},l),{node:e.hoveredNode})),e.hoveredNode=c,e.emit("enterNode",i(i({},l),{node:c})),void e.scheduleHighlightedNodesRender()):e.hoveredNode&&(m=e.nodeDataCache[e.hoveredNode],g=e.framedGraphToViewport(m),v=e.scaleSize(m.size),!t(n.x,n.y,g.x,g.y,v))?(h=e.hoveredNode,e.hoveredNode=null,e.emit("leaveNode",i(i({},l),{node:h})),e.scheduleHighlightedNodesRender()):void(!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(l):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,d.requestFrame)((function(){e.checkEdgeHoverEvents(l),e.checkEdgesEventsFrame=null})))))};var n=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){this.event.preventSigmaDefault()}};if(e.hoveredNode)return e.emit("".concat(t,"Node"),i(i({},r),{node:e.hoveredNode}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var o=e.getEdgeAtPoint(n.x,n.y);if(o)return e.emit("".concat(t,"Edge"),i(i({},r),{edge:o}))}return e.emit("".concat(t,"Stage"),r)}};return this.activeListeners.handleClick=n("click"),this.activeListeners.handleRightClick=n("rightClick"),this.activeListeners.handleDoubleClick=n("doubleClick"),this.activeListeners.handleWheel=n("wheel"),this.activeListeners.handleDown=n("down"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this},t.prototype.bindGraphHandlers=function(){var e=this,t=this.graph;return this.activeListeners.graphUpdate=function(){e.needToProcess=!0,e._scheduleRefresh()},this.activeListeners.softGraphUpdate=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},this.activeListeners.addNodeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},this.activeListeners.addEdgeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},t.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),t.on("nodeDropped",this.activeListeners.graphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),t.on("edgeDropped",this.activeListeners.graphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.graphUpdate),t.on("cleared",this.activeListeners.graphUpdate),this},t.prototype.checkEdgeHoverEvents=function(e){var t=this.hoveredNode?null:this.getEdgeAtPoint(e.event.x,e.event.y);return t!==this.hoveredEdge&&(this.hoveredEdge&&this.emit("leaveEdge",i(i({},e),{edge:this.hoveredEdge})),t&&this.emit("enterEdge",i(i({},e),{edge:t})),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n,r,o=this,i=this.edgeDataCache,s=this.nodeDataCache;if(!(0,v.isPixelColored)(this.webGLContexts.edges,e*y,t*y))return null;var l=this.viewportToGraph({x:e,y:t}),u=l.x,c=l.y,p=0;if(this.graph.someEdge((function(e,t,n,r,a,l){var u=a.x,c=a.y,d=l.x,f=l.y;if(i[e].hidden||s[n].hidden||s[r].hidden)return!1;if(u!==d||c!==f){var h=Math.sqrt(Math.pow(d-u,2)+Math.pow(f-c,2)),m=o.graphToViewport({x:u,y:c}),g=m.x,v=m.y,y=o.graphToViewport({x:d,y:f}),b=y.x,w=y.y,E=Math.sqrt(Math.pow(b-g,2)+Math.pow(w-v,2));return p=h/E,!0}})),!p)return null;var d=this.graph.filterEdges((function(e,t,n,r,a,l){return!(i[e].hidden||s[n].hidden||s[r].hidden)&&(!!(0,v.doEdgeCollideWithPoint)(u,c,a.x,a.y,l.x,l.y,i[e].size*p/o.cameraSizeRatio)||void 0)}));if(0===d.length)return null;var f=d[d.length-1],h=-1/0;try{for(var m=a(d),g=m.next();!g.done;g=m.next()){var b=g.value,w=this.graph.getEdgeAttribute(b,"zIndex");w>=h&&(f=b,h=w)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return f},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,o=this.getDimensions(),i=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(o,r.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,d.graphExtent)(n),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var s=new l.default,u=(0,d.matrixFromCamera)(s.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,d.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var c={},p=n.nodes(),f=0,h=p.length;f<h;f++){var m=p[f],g=Object.assign({},n.getNodeAttributes(m));r.nodeReducer&&(g=r.nodeReducer(m,g)),c[(y=b(this.settings,m,g)).type]=(c[y.type]||0)+1,this.nodeDataCache[m]=y,this.normalizationFunction.applyTo(y),y.forceLabel&&this.nodesWithForcedLabels.push(m),this.settings.zIndex&&(y.zIndex<i[0]&&(i[0]=y.zIndex),y.zIndex>i[1]&&(i[1]=y.zIndex))}for(var v in this.nodePrograms){if(!this.nodePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for node type "'.concat(v,'"!'));e||this.nodePrograms[v].allocate(c[v]||0),c[v]=0}for(this.settings.zIndex&&i[0]!==i[1]&&(p=(0,d.zIndexOrdering)(i,(function(e){return t.nodeDataCache[e].zIndex}),p)),f=0,h=p.length;f<h;f++){m=p[f];var y=this.nodeDataCache[m];this.quadtree.add(m,y.x,1-y.y,y.size/this.width),"string"!=typeof y.label||y.hidden||this.labelGrid.add(m,y.size,this.framedGraphToViewport(y,{matrix:u})),this.nodePrograms[y.type].process(y,y.hidden,c[y.type]++),y.highlighted&&!y.hidden&&this.highlightedNodes.add(m),this.nodeKeyToIndex[m]=f}this.labelGrid.organize();var E={},x=n.edges();for(f=0,h=x.length;f<h;f++){var O=x[f];g=Object.assign({},n.getEdgeAttributes(O)),r.edgeReducer&&(g=r.edgeReducer(O,g)),E[(y=w(this.settings,0,g)).type]=(E[y.type]||0)+1,this.edgeDataCache[O]=y,y.forceLabel&&!y.hidden&&this.edgesWithForcedLabels.push(O),this.settings.zIndex&&(y.zIndex<a[0]&&(a[0]=y.zIndex),y.zIndex>a[1]&&(a[1]=y.zIndex))}for(var v in this.edgePrograms){if(!this.edgePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(v,'"!'));e||this.edgePrograms[v].allocate(E[v]||0),E[v]=0}for(this.settings.zIndex&&a[0]!==a[1]&&(x=(0,d.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),x)),f=0,h=x.length;f<h;f++){O=x[f],y=this.edgeDataCache[O];var S=n.extremities(O),C=this.nodeDataCache[S[0]],_=this.nodeDataCache[S[1]],k=y.hidden||C.hidden||_.hidden;this.edgePrograms[y.type].process(C,_,y,k,E[y.type]++),this.nodeKeyToIndex[O]=f}for(var v in this.edgePrograms){var T=this.edgePrograms[v];e||"function"!=typeof T.computeIndices||T.computeIndices()}return this},t.prototype.handleSettingsUpdate=function(){return this.camera.minRatio=this.settings.minCameraRatio,this.camera.maxRatio=this.settings.maxCameraRatio,this.camera.setState(this.camera.validateState(this.camera.getState())),this},t.prototype._refresh=function(){return this.needToProcess?this.process():this.needToSoftProcess&&this.process(!0),this.needToProcess=!1,this.needToSoftProcess=!1,this.render(),this},t.prototype._scheduleRefresh=function(){var e=this;return this.renderFrame||(this.renderFrame=(0,d.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e,t=this.camera.getState();if(t.ratio>=1)e=new Set(this.graph.nodes());else{var n=this.viewRectangle();e=new Set(this.quadtree.rectangle(n.x1,1-n.y1,n.x2,1-n.y2,n.height))}var r=this.labelGrid.getLabelsToDisplay(t.ratio,this.settings.labelDensity).concat(this.nodesWithForcedLabels);this.displayedLabels=new Set;for(var o=this.canvasContexts.labels,a=0,s=r.length;a<s;a++){var l=r[a],u=this.nodeDataCache[l];if(!this.displayedLabels.has(l)&&!u.hidden){var c=this.framedGraphToViewport(u),p=c.x,d=c.y,f=this.scaleSize(u.size);!u.forceLabel&&f<this.settings.labelRenderedSizeThreshold||e.has(l)&&(this.displayedLabels.add(l),this.settings.labelRenderer(o,i(i({key:l},u),{size:f,x:p,y:d}),this.settings))}}return this},t.prototype.renderEdgeLabels=function(){if(!this.settings.renderEdgeLabels)return this;var e=this.canvasContexts.edgeLabels;e.clearRect(0,0,this.width,this.height);for(var t=(0,f.edgeLabelsToDisplayFromNodes)({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedLabels,highlightedNodes:this.highlightedNodes}).concat(this.edgesWithForcedLabels),n=new Set,r=0,o=t.length;r<o;r++){var a=t[r],s=this.graph.extremities(a),l=this.nodeDataCache[s[0]],u=this.nodeDataCache[s[1]],c=this.edgeDataCache[a];n.has(a)||c.hidden||l.hidden||u.hidden||(this.settings.edgeLabelRenderer(e,i(i({key:a},c),{size:this.scaleSize(c.size)}),i(i(i({key:s[0]},l),this.framedGraphToViewport(l)),{size:this.scaleSize(l.size)}),i(i(i({key:s[1]},u),this.framedGraphToViewport(u)),{size:this.scaleSize(u.size)}),this.settings),n.add(a))}return this},t.prototype.renderHighlightedNodes=function(){var e=this,t=this.canvasContexts.hovers;t.clearRect(0,0,this.width,this.height);var n=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&n.push(this.hoveredNode),this.highlightedNodes.forEach((function(t){t!==e.hoveredNode&&n.push(t)})),n.forEach((function(n){return function(n){var r=e.nodeDataCache[n],o=e.framedGraphToViewport(r),a=o.x,s=o.y,l=e.scaleSize(r.size);e.settings.hoverRenderer(t,i(i({key:n},r),{size:l,x:a,y:s}),e.settings)}(n)}));var r={};for(var o in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.hoverNodePrograms)this.hoverNodePrograms[o].allocate(r[o]||0),r[o]=0;for(var o in n.forEach((function(t){var n=e.nodeDataCache[t];e.hoverNodePrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.hoverNodePrograms){var a=this.hoverNodePrograms[o];a.bind(),a.bufferData(),a.render({matrix:this.matrix,width:this.width,height:this.height,ratio:this.camera.ratio,correctionRatio:this.correctionRatio/this.camera.ratio,scalingRatio:y})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,d.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){if(this.renderFrame&&((0,d.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return this;var e=this.mouseCaptor,t=this.camera.isAnimated()||e.isMoving||e.draggedEvents||e.currentWheelDirection,n=this.camera.getState(),r=this.getDimensions(),o=this.getGraphDimensions(),i=this.getSetting("stagePadding")||0;for(var a in this.matrix=(0,d.matrixFromCamera)(n,r,o,i),this.invMatrix=(0,d.matrixFromCamera)(n,r,o,i,!0),this.correctionRatio=(0,d.getMatrixImpact)(this.matrix,n,r),this.nodePrograms)(s=this.nodePrograms[a]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:y});if(!this.settings.hideEdgesOnMove||!t)for(var a in this.edgePrograms){var s;(s=this.edgePrograms[a]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:y})}return this.settings.hideLabelsOnMove&&t||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes(),this.emit("afterRender")),this},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getGraph=function(){return this.graph},t.prototype.getMouseCaptor=function(){return this.mouseCaptor},t.prototype.getTouchCaptor=function(){return this.touchCaptor},t.prototype.getDimensions=function(){return{width:this.width,height:this.height}},t.prototype.getGraphDimensions=function(){var e=this.customBBox||this.nodeExtent;return{width:e.x[1]-e.x[0]||1,height:e.y[1]-e.y[0]||1}},t.prototype.getNodeDisplayData=function(e){var t=this.nodeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getEdgeDisplayData=function(e){var t=this.edgeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getSettings=function(){return i({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,h.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.updateSetting=function(e,t){return this.settings[e]=t(this.settings[e]),(0,h.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.resize=function(){var e=this.width,t=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,0===this.width)throw new Error("Sigma: container has no width.");if(0===this.height)throw new Error("Sigma: container has no height.");if(e===this.width&&t===this.height)return this;for(var n in this.elements){var r=this.elements[n];r.style.width=this.width+"px",r.style.height=this.height+"px"}for(var n in this.canvasContexts)this.elements[n].setAttribute("width",this.width*y+"px"),this.elements[n].setAttribute("height",this.height*y+"px"),1!==y&&this.canvasContexts[n].scale(y,y);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*y+"px"),this.elements[n].setAttribute("height",this.height*y+"px"),this.webGLContexts[n].viewport(0,0,this.width*y,this.height*y);return this},t.prototype.clear=function(){return this.webGLContexts.nodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.webGLContexts.edges.clear(this.webGLContexts.edges.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this},t.prototype.refresh=function(){return this.needToProcess=!0,this._refresh(),this},t.prototype.scheduleRefresh=function(){return this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.getViewportZoomedState=function(e,t){var n=this.camera.getState(),r=n.ratio,o=n.angle,i=n.x,a=n.y,s=t/r,l={x:this.width/2,y:this.height/2},u=this.viewportToFramedGraph(e),c=this.viewportToFramedGraph(l);return{angle:o,x:(u.x-c.x)*(1-s)+i,y:(u.y-c.y)*(1-s)+a,ratio:t}},t.prototype.viewRectangle=function(){var e=0*this.width/8,t=0*this.height/8,n=this.viewportToFramedGraph({x:0-e,y:0-t}),r=this.viewportToFramedGraph({x:this.width+e,y:0-t}),o=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-o.y}},t.prototype.framedGraphToViewport=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!!t.graphDimensions,r=t.matrix?t.matrix:n?(0,d.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,o=[e.x,e.y,1],i=(0,g.multiplyVec)(r,o);return{x:(1+i[0])*this.width/2,y:(1-i[1])*this.height/2}},t.prototype.viewportToFramedGraph=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!t.graphDimensions,r=t.matrix?t.matrix:n?(0,d.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,o=[e.x/this.width*2-1,1-e.y/this.height*2,1],i=(0,g.multiplyVec)(r,o);return{x:i[0],y:i[1]}},t.prototype.viewportToGraph=function(e,t){return void 0===t&&(t={}),this.normalizationFunction.inverse(this.viewportToFramedGraph(e,t))},t.prototype.graphToViewport=function(e,t){return void 0===t&&(t={}),this.framedGraphToViewport(this.normalizationFunction(e),t)},t.prototype.getBBox=function(){return(0,d.graphExtent)(this.graph)},t.prototype.getCustomBBox=function(){return this.customBBox},t.prototype.setCustomBBox=function(e){return this.customBBox=e,this._scheduleRefresh(),this},t.prototype.kill=function(){var e=this.graph;this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),e.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),e.removeListener("nodeDropped",this.activeListeners.graphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),e.removeListener("edgeDropped",this.activeListeners.graphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.graphUpdate),e.removeListener("cleared",this.activeListeners.graphUpdate),this.quadtree=new c.default,this.nodeDataCache={},this.edgeDataCache={},this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[],this.highlightedNodes.clear(),this.renderFrame&&((0,d.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,d.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var t=this.container;t.firstChild;)t.removeChild(t.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return i({},this.elements)},t}(p.TypedEventEmitter);t.default=E},432:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var i=function(e){function t(){var t=e.call(this)||this;return t.rawEmitter=t,t}return o(t,e),t}(n(2699).EventEmitter);t.TypedEventEmitter=i},1181:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.animateNodes=t.ANIMATE_DEFAULTS=void 0;var o=n(8586),i=r(n(2383));t.ANIMATE_DEFAULTS={easing:"quadraticInOut",duration:150},t.animateNodes=function(e,n,r,a){var s=Object.assign({},t.ANIMATE_DEFAULTS,r),l="function"==typeof s.easing?s.easing:i.default[s.easing],u=Date.now(),c={};for(var p in n){var d=n[p];for(var f in c[p]={},d)c[p][f]=e.getNodeAttribute(p,f)}var h=null,m=function(){var t=(Date.now()-u)/s.duration;if(t>=1){for(var r in n){var i=n[r];for(var p in i)e.setNodeAttribute(r,p,i[p])}"function"==typeof a&&a()}else{for(var r in t=l(t),n){i=n[r];var d=c[r];for(var p in i)e.setNodeAttribute(r,p,i[p]*t+d[p]*(1-t))}h=(0,o.requestFrame)(m)}};return m(),function(){h&&(0,o.cancelFrame)(h)}}},1078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML_COLORS=void 0,t.HTML_COLORS={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"}},2383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cubicInOut=t.cubicOut=t.cubicIn=t.quadraticInOut=t.quadraticOut=t.quadraticIn=t.linear=void 0,t.linear=function(e){return e},t.quadraticIn=function(e){return e*e},t.quadraticOut=function(e){return e*(2-e)},t.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},t.cubicIn=function(e){return e*e*e},t.cubicOut=function(e){return--e*e*e+1},t.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)};var n={linear:t.linear,quadraticIn:t.quadraticIn,quadraticOut:t.quadraticOut,quadraticInOut:t.quadraticInOut,cubicIn:t.cubicIn,cubicOut:t.cubicOut,cubicInOut:t.cubicInOut};t.default=n},8073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doEdgeCollideWithPoint=t.isPixelColored=void 0,t.isPixelColored=function(e,t,n){var r=new Uint8Array(4);return e.readPixels(t,e.drawingBufferHeight-n,1,1,e.RGBA,e.UNSIGNED_BYTE,r),r[3]>0},t.doEdgeCollideWithPoint=function(e,t,n,r,o,i,a){return!(e<n-a&&e<o-a||t<r-a&&t<i-a||e>n+a&&e>o+a||t>r+a&&t>i+a||!(Math.abs((o-n)*(r-t)-(n-e)*(i-r))/Math.sqrt(Math.pow(o-n,2)+Math.pow(i-r,2))<a/2))}},8586:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateGraph=t.canUse32BitsIndices=t.extractPixel=t.getMatrixImpact=t.matrixFromCamera=t.getCorrectionRatio=t.floatColor=t.zIndexOrdering=t.createNormalizationFunction=t.graphExtent=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var i=o(n(1880)),a=n(2237),s=n(1078);function l(e){return"object"==typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=l,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,o=t.length;r<o;r++){var i=t[r];i&&Object.assign(e,i)}return e},t.assignDeep=function e(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=t||{};for(var o=0,i=n.length;o<i;o++){var a=n[o];if(a)for(var s in a)l(a[s])?t[s]=e(t[s],a[s]):t[s]=a[s]}return t},t.requestFrame="undefined"!=typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,0)},t.cancelFrame="undefined"!=typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:function(e){return clearTimeout(e)},t.createElement=function(e,t,n){var r=document.createElement(e);if(t)for(var o in t)r.style[o]=t[o];if(n)for(var o in n)r.setAttribute(o,n[o]);return r},t.getPixelRatio=function(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:1},t.graphExtent=function(e){var t=1/0,n=-1/0,r=1/0,o=-1/0;return e.forEachNode((function(e,i){var a=i.x,s=i.y;a<t&&(t=a),a>n&&(n=a),s<r&&(r=s),s>o&&(o=s)})),{x:[t,n],y:[r,o]}},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],o=t[1],i=r(e.y,2),a=i[0],s=i[1],l=Math.max(o-n,s-a);0===l&&(l=1);var u=(o+n)/2,c=(s+a)/2,p=function(e){return{x:.5+(e.x-u)/l,y:.5+(e.y-c)/l}};return p.applyTo=function(e){e.x=.5+(e.x-u)/l,e.y=.5+(e.y-c)/l},p.inverse=function(e){return{x:u+l*(e.x-.5),y:c+l*(e.y-.5)}},p.ratio=l,p},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,o=t(n)||0;return r<o?-1:r>o?1:0}))};var u=new Int8Array(4),c=new Int32Array(u.buffer,0,1),p=new Float32Array(u.buffer,0,1),d=/^\s*rgba?\s*\(/,f=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/,h={};for(var m in s.HTML_COLORS)h[m]=g(s.HTML_COLORS[m]);function g(e){if(void 0!==h[e])return h[e];var t=0,n=0,r=0,o=1;if("#"===e[0])4===e.length?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16));else if(d.test(e)){var i=e.match(f);i&&(t=+i[1],n=+i[2],r=+i[3],i[4]&&(o=+i[4]))}o=255*o|0,c[0]=4278190079&(o<<24|r<<16|n<<8|t);var a=p[0];return h[e]=a,a}function v(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}t.floatColor=g,t.getCorrectionRatio=v,t.matrixFromCamera=function(e,t,n,r,o){var i=e.angle,s=e.ratio,l=e.x,u=e.y,c=t.width,p=t.height,d=(0,a.identity)(),f=Math.min(c,p)-2*r,h=v(t,n);return o?((0,a.multiply)(d,(0,a.translate)((0,a.identity)(),l,u)),(0,a.multiply)(d,(0,a.scale)((0,a.identity)(),s)),(0,a.multiply)(d,(0,a.rotate)((0,a.identity)(),i)),(0,a.multiply)(d,(0,a.scale)((0,a.identity)(),c/f/2/h,p/f/2/h))):((0,a.multiply)(d,(0,a.scale)((0,a.identity)(),f/c*2*h,f/p*2*h)),(0,a.multiply)(d,(0,a.rotate)((0,a.identity)(),-i)),(0,a.multiply)(d,(0,a.scale)((0,a.identity)(),1/s)),(0,a.multiply)(d,(0,a.translate)((0,a.identity)(),-l,-u))),d},t.getMatrixImpact=function(e,t,n){var o=r((0,a.multiplyVec)(e,[Math.cos(t.angle),Math.sin(t.angle),0]),2),i=o[0],s=o[1];return 1/Math.sqrt(Math.pow(i,2)+Math.pow(s,2))/n.width},t.extractPixel=function(e,t,n,r){var o=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,o),o},t.canUse32BitsIndices=function(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,i.default)(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode((function(e,t){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))throw new Error("Sigma: Coordinates of node ".concat(e," are invalid. A node must have a numeric 'x' and 'y' attribute."))}))}},2237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiplyVec=t.multiply=t.translate=t.rotate=t.scale=t.identity=void 0,t.identity=function(){return Float32Array.of(1,0,0,0,1,0,0,0,1)},t.scale=function(e,t,n){return e[0]=t,e[4]="number"==typeof n?n:t,e},t.rotate=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e},t.translate=function(e,t,n){return e[6]=t,e[7]=n,e},t.multiply=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=t[0],d=t[1],f=t[2],h=t[3],m=t[4],g=t[5],v=t[6],y=t[7],b=t[8];return e[0]=p*n+d*i+f*l,e[1]=p*r+d*a+f*u,e[2]=p*o+d*s+f*c,e[3]=h*n+m*i+g*l,e[4]=h*r+m*a+g*u,e[5]=h*o+m*s+g*c,e[6]=v*n+y*i+b*l,e[7]=v*r+y*a+b*u,e[8]=v*o+y*s+b*c,e},t.multiplyVec=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=t[0],d=t[1],f=t[2],h=Array.isArray(t)?[0,0,0]:Float32Array.of(0,0,0);return h[0]=p*n+d*i+f*l,h[1]=p*r+d*a+f*u,h[2]=p*o+d*s+f*c,h}},2564:e=>{"use strict";e.exports=function(){}},8096:e=>{"use strict";e.exports=window["material-ui-coreStyles"].withStyles},1531:e=>{"use strict";e.exports=window["material-ui"].Avatar},683:e=>{"use strict";e.exports=window["material-ui"].IconButton},2298:e=>{"use strict";e.exports=window["material-ui"].SvgIcon},6929:e=>{"use strict";e.exports=window["material-ui"].Tooltip},8310:t=>{"use strict";t.exports=e},2308:e=>{"use strict";e.exports=t},2396:e=>{"use strict";e.exports=n},3192:e=>{"use strict";e.exports=r},5099:e=>{"use strict";e.exports=o},3288:e=>{"use strict";e.exports=i},8156:e=>{"use strict";e.exports=a},5680:e=>{"use strict";e.exports=s},7111:e=>{"use strict";e.exports=l},4756:e=>{"use strict";e.exports=u},5751:e=>{"use strict";e.exports=c}},d={};function f(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}};return p[e].call(n.exports,n,n.exports,f),n.loaded=!0,n.exports}f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var h={};return(()=>{"use strict";f.r(h),f.d(h,{GraphView:()=>lC});var e={};f.r(e),f.d(e,{FILE:()=>nh,TEXT:()=>oh,URL:()=>rh});var t=f(8156),n=f.n(t),r=f(4756);const o=window["material-ui-coreStyles"];var i=f(5099),a=f.n(i),s=f(8310),l=f.n(s),u=f(3288),c=f(5751),p=f.n(c);const d=window["material-ui"].Portal;var m=f.n(d),g=f(4176),v=f(2308),y=f.n(v);const b=(0,o.makeStyles)((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",zIndex:1e4}})));function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}const E=e=>{const o=b(),i=(0,r.useSelector)(y().selectors.getAutoCloseInterval),a=(0,r.useSelector)(y().selectors.getUiError),s=(0,r.useDispatch)();return(0,t.useEffect)((()=>{a&&e.showErrorFromStore&&(E.addError({title:p().text("Error"),message:a}),s(v.ui.actions.errorSet(null)))}),[s,a,e.showErrorFromStore]),n().createElement(m(),{container:document.body},n().createElement(g.ZP,w({classes:{errorBlock:l()(o.errorBlock,(0,u.path)(["classes","errorBlock"],e))},autoCloseInterval:i},e)))};E.propTypes={showErrorFromStore:a().bool},E.addError=g.ZP.addError;const x=E;var O=function(e,t){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},O(e,t)};function S(e,t){function n(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};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&&(n[r[o]]=e[r[o]])}return n}function k(e){var t,n,r="";if(e)if("object"==typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=k(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(n=k(t))&&(r&&(r+=" "),r+=n);else"boolean"==typeof e||e.call||(r&&(r+=" "),r+=e);return r}function T(){for(var e,t=0,n="";t<arguments.length;)(e=k(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}const P=window["material-ui"].Typography;var A=f.n(P);const D=window["material-ui"].Button;var j=f.n(D);const L=window["material-ui"].Toolbar;var I=f.n(L),M=f(683),N=f.n(M);function R(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function F(){return F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(this,arguments)}function z(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const U=n().createContext(null);function B(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function H(e,t,n){return null!=n[t]?n[t]:e.props[t]}function W(e,n,r){var o=B(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,t.isValidElement)(s)){var l=a in n,u=a in o,c=n[a],p=(0,t.isValidElement)(c)&&!c.props.in;!u||l&&!p?u||!l||p?u&&l&&(0,t.isValidElement)(c)&&(i[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:H(s,"exit",e),enter:H(s,"enter",e)})):i[a]=(0,t.cloneElement)(s,{in:!1}):i[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:H(s,"exit",e),enter:H(s,"enter",e)})}})),i}var G=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},q=function(e){function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(V(V(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}z(r,e);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=e,o=a,B(r.children,(function(e){return(0,t.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:H(e,"appear",r),enter:H(e,"enter",r),exit:H(e,"exit",r)})}))):W(e,i,a),firstRender:!1}},o.handleExited=function(e,t){var n=B(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=F({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,t=e.component,r=e.childFactory,o=R(e,["component","childFactory"]),i=this.state.contextValue,a=G(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===t?n().createElement(U.Provider,{value:i},a):n().createElement(U.Provider,{value:i},n().createElement(t,o,a))},r}(n().Component);q.propTypes={},q.defaultProps={component:"div",childFactory:function(e){return e}};const Y=q;var $=f(2196),K=f.n($),Z=f(4812),X=f.n(Z),Q=f(7111),J=f.n(Q);var ee="unmounted",te="exited",ne="entering",re="entered",oe="exiting",ie=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=te,r.appearStatus=ne):o=re:o=t.unmountOnExit||t.mountOnEnter?ee:te,r.state={status:o},r.nextCallback=null,r}z(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ee?{status:te}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ne&&n!==re&&(t=ne):n!==ne&&n!==re||(t=oe)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=J().findDOMNode(this);t===ne?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===te&&this.setState({status:ee})},r.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:ne},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:re},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:re},(function(){n.props.onEntered(e)}))},r.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:oe},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:te},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:te},(function(){t.props.onExited(e)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===ee)return null;var t=this.props,r=t.children,o=R(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof r)return n().createElement(U.Provider,{value:null},r(e,o));var i=n().Children.only(r);return n().createElement(U.Provider,{value:null},n().cloneElement(i,o))},t}(n().Component);function ae(){}ie.contextType=U,ie.propTypes={},ie.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ae,onEntering:ae,onEntered:ae,onExit:ae,onExiting:ae,onExited:ae},ie.UNMOUNTED=0,ie.EXITED=1,ie.ENTERING=2,ie.ENTERED=3,ie.EXITING=4;const se=ie;var le=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return X()(e,t)}))},ue=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){t.removeClasses(e,"exit"),t.addClass(e,n?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=n?"appear":"enter";t.addClass(e,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=n?"appear":"enter";t.removeClasses(e,r),t.addClass(e,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),t.addClass(e,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){t.addClass(e,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){t.removeClasses(e,"exit"),t.addClass(e,"exit","done"),t.props.onExited&&t.props.onExited(e)},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}z(t,e);var r=t.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"];"appear"===t&&"done"===n&&(r+=" "+this.getClassNames("enter").doneClassName),"active"===n&&e&&e.scrollTop,this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return K()(e,t)}))}(e,r)},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&le(e,r),o&&le(e,o),i&&le(e,i)},r.render=function(){var e=this.props,t=(e.classNames,R(e,["classNames"]));return n().createElement(se,F({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(n().Component);ue.defaultProps={classNames:""},ue.propTypes={};const ce=ue;var pe=f(2298),de=f.n(pe);const fe=window["material-ui"].CircularProgress;var he=f.n(fe);function me(){return me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(this,arguments)}const ge=window["material-ui-styles"];function ve(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ye(e){return ye="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},ye(e)}function be(e){return be="function"==typeof Symbol&&"symbol"===ye(Symbol.iterator)?function(e){return ye(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ye(e)},be(e)}function we(e){return e&&"object"===be(e)&&e.constructor===Object}function Ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?me({},e):e;return we(e)&&we(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(we(t[o])&&o in e?r[o]=Ee(e[o],t[o],n):r[o]=t[o])})),r}var xe=["xs","sm","md","lg","xl"];function Oe(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=ve(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function u(e,t){var r=xe.indexOf(t);return r===xe.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[xe[r+1]]?n[xe[r+1]]:t)-a/100).concat(o,")")}return me({keys:xe,values:n,up:l,down:function(e){var t=xe.indexOf(e)+1,r=n[xe[t]];return t===xe.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t,n){var r;return me({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return me({paddingLeft:t(2),paddingRight:t(2)},n,Se({},e.up("sm"),me({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Se(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Se(r,e.up("sm"),{minHeight:64}),r)},n)}function _e(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}const ke={black:"#000",white:"#fff"},Te={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Pe="#7986cb",Ae="#3f51b5",De="#303f9f",je="#ff4081",Le="#f50057",Ie="#c51162",Me="#e57373",Ne="#f44336",Re="#d32f2f",Fe="#ffb74d",ze="#ff9800",Ve="#f57c00",Ue="#64b5f6",Be="#2196f3",He="#1976d2",We="#81c784",Ge="#4caf50",qe="#388e3c";function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function $e(e){if(e.type)return e;if("#"===e.charAt(0))return $e(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(_e(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Ke(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Ze(e){var t="hsl"===(e=$e(e)).type?$e(function(e){var t=(e=$e(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Ke({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xe(e,t){return e=$e(e),t=Ye(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Ke(e)}var Qe={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ke.white,default:Te[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Je={text:{primary:ke.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Te[800],default:"#303030"},action:{active:ke.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function et(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=$e(e),t=Ye(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Ke(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=$e(e),t=Ye(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Ke(e)}(e.main,i)))}function tt(e){var t=e.primary,n=void 0===t?{light:Pe,main:Ae,dark:De}:t,r=e.secondary,o=void 0===r?{light:je,main:Le,dark:Ie}:r,i=e.error,a=void 0===i?{light:Me,main:Ne,dark:Re}:i,s=e.warning,l=void 0===s?{light:Fe,main:ze,dark:Ve}:s,u=e.info,c=void 0===u?{light:Ue,main:Be,dark:He}:u,p=e.success,d=void 0===p?{light:We,main:Ge,dark:qe}:p,f=e.type,h=void 0===f?"light":f,m=e.contrastThreshold,g=void 0===m?3:m,v=e.tonalOffset,y=void 0===v?.2:v,b=ve(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function w(e){var t=function(e,t){var n=Ze(e),r=Ze(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Je.text.primary)>=g?Je.text.primary:Qe.text.primary;return t}var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=me({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(_e(4,t));if("string"!=typeof e.main)throw new Error(_e(5,JSON.stringify(e.main)));return et(e,"light",n,y),et(e,"dark",r,y),e.contrastText||(e.contrastText=w(e.main)),e},x={dark:Je,light:Qe};return Ee(me({common:ke,type:h,primary:E(n),secondary:E(o,"A400","A200","A700"),error:E(a),warning:E(l),info:E(c),success:E(d),grey:Te,contrastThreshold:g,getContrastText:w,augmentColor:E,tonalOffset:y},x[h]),b)}function nt(e){return Math.round(1e5*e)/1e5}var rt={textTransform:"uppercase"},ot='"Roboto", "Helvetica", "Arial", sans-serif';function it(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ot:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,p=n.fontWeightMedium,d=void 0===p?500:p,f=n.fontWeightBold,h=void 0===f?700:f,m=n.htmlFontSize,g=void 0===m?16:m,v=n.allVariants,y=n.pxToRem,b=ve(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),w=a/14,E=y||function(e){return"".concat(e/g*w,"rem")},x=function(e,t,n,r,i){return me({fontFamily:o,fontWeight:e,fontSize:E(t),lineHeight:n},o===ot?{letterSpacing:"".concat(nt(r/t),"em")}:{},i,v)},O={h1:x(l,96,1.167,-1.5),h2:x(l,60,1.2,-.5),h3:x(c,48,1.167,0),h4:x(c,34,1.235,.25),h5:x(c,24,1.334,0),h6:x(d,20,1.6,.15),subtitle1:x(c,16,1.75,.15),subtitle2:x(d,14,1.57,.1),body1:x(c,16,1.5,.15),body2:x(c,14,1.43,.15),button:x(d,14,1.75,.4,rt),caption:x(c,12,1.66,.4),overline:x(c,12,2.66,1,rt)};return Ee(me({htmlFontSize:g,pxToRem:E,round:nt,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:h},O),b,{clone:!1})}function at(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const st=["none",at(0,2,1,-1,0,1,1,0,0,1,3,0),at(0,3,1,-2,0,2,2,0,0,1,5,0),at(0,3,3,-2,0,3,4,0,0,1,8,0),at(0,2,4,-1,0,4,5,0,0,1,10,0),at(0,3,5,-1,0,5,8,0,0,1,14,0),at(0,3,5,-1,0,6,10,0,0,1,18,0),at(0,4,5,-2,0,7,10,1,0,2,16,1),at(0,5,5,-3,0,8,10,1,0,3,14,2),at(0,5,6,-3,0,9,12,1,0,3,16,2),at(0,6,6,-3,0,10,14,1,0,4,18,3),at(0,6,7,-4,0,11,15,1,0,4,20,3),at(0,7,8,-4,0,12,17,2,0,5,22,4),at(0,7,8,-4,0,13,19,2,0,5,24,4),at(0,7,9,-4,0,14,21,2,0,5,26,4),at(0,8,9,-5,0,15,22,2,0,6,28,5),at(0,8,10,-5,0,16,24,2,0,6,30,5),at(0,8,11,-5,0,17,26,2,0,6,32,5),at(0,9,11,-5,0,18,28,2,0,7,34,6),at(0,9,12,-6,0,19,29,2,0,7,36,6),at(0,10,13,-6,0,20,31,3,0,8,38,7),at(0,10,13,-6,0,21,33,3,0,8,40,7),at(0,10,14,-6,0,22,35,3,0,8,42,7),at(0,11,14,-7,0,23,36,3,0,9,44,8),at(0,11,15,-7,0,24,38,3,0,9,46,8)],lt={borderRadius:4};function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ct={xs:0,sm:600,md:960,lg:1280,xl:1920},pt={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(ct[e],"px)")}};function dt(e){return e&&"object"===be(e)&&e.constructor===Object}function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?me({},e):e;return dt(e)&&dt(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(dt(t[o])&&o in e?r[o]=ft(e[o],t[o],n):r[o]=t[o])})),r}const ht=function(e,t){return t?ft(e,t,{clone:!1}):e};var mt,gt,vt={m:"margin",p:"padding"},yt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wt=(mt=function(e){if(e.length>2){if(!bt[e])return[e];e=bt[e]}var t=ut(e.split(""),2),n=t[0],r=t[1],o=vt[n],i=yt[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]},gt={},function(e){return void 0===gt[e]&&(gt[e]=mt(e)),gt[e]}),Et=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function xt(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Ot(e){var t=xt(e.theme);return Object.keys(e).map((function(n){if(-1===Et.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}(wt(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||pt;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===be(t)){var o=e.theme.breakpoints||pt;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(ht,{})}function St(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=xt({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}Ot.propTypes={},Ot.filterProps=Et;var Ct={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},_t={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kt(e){return"".concat(Math.round(e),"ms")}const Tt={easing:Ct,duration:_t,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?_t.standard:n,o=t.easing,i=void 0===o?Ct.easeInOut:o,a=t.delay,s=void 0===a?0:a;return ve(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:kt(r)," ").concat(i," ").concat("string"==typeof s?s:kt(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Pt={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},At=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,u=void 0===l?{}:l,c=ve(e,["breakpoints","mixins","palette","spacing","typography"]),p=tt(a),d=Oe(n),f=St(s),h=Ee({breakpoints:d,direction:"ltr",mixins:Ce(d,f,o),overrides:{},palette:p,props:{},shadows:st,typography:it(p,u),spacing:f,shape:lt,transitions:Tt,zIndex:Pt},c),m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];return g.reduce((function(e,t){return Ee(e,t)}),h)}(),Dt=function(e,t){return(0,ge.withStyles)(e,me({defaultTheme:At},t))};function jt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Lt(e,n){return t.useMemo((function(){return null==e&&null==n?null:function(t){jt(e,t),jt(n,t)}}),[e,n])}var It="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Mt(e){var n=t.useRef(e);return It((function(){n.current=e})),t.useCallback((function(){return n.current.apply(void 0,arguments)}),[])}var Nt=!0,Rt=!1,Ft=null,zt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Vt(e){e.metaKey||e.altKey||e.ctrlKey||(Nt=!0)}function Ut(){Nt=!1}function Bt(){"hidden"===this.visibilityState&&Rt&&(Nt=!0)}function Ht(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return Nt||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!zt[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function Wt(){Rt=!0,window.clearTimeout(Ft),Ft=window.setTimeout((function(){Rt=!1}),100)}function Gt(){return{isFocusVisible:Ht,onBlurVisible:Wt,ref:t.useCallback((function(e){var t,n=Q.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Vt,!0),t.addEventListener("mousedown",Ut,!0),t.addEventListener("pointerdown",Ut,!0),t.addEventListener("touchstart",Ut,!0),t.addEventListener("visibilitychange",Bt,!0))}),[])}}function qt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Yt(){return Yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yt.apply(this,arguments)}function $t(e,t){return $t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$t(e,t)}const Kt=n().createContext(null);function Zt(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function Xt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Qt(e,n,r){var o=Zt(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,t.isValidElement)(s)){var l=a in n,u=a in o,c=n[a],p=(0,t.isValidElement)(c)&&!c.props.in;!u||l&&!p?u||!l||p?u&&l&&(0,t.isValidElement)(c)&&(i[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:Xt(s,"exit",e),enter:Xt(s,"enter",e)})):i[a]=(0,t.cloneElement)(s,{in:!1}):i[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Xt(s,"exit",e),enter:Xt(s,"enter",e)})}})),i}var Jt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},en=function(e){var r,o;function i(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}o=e,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,$t(r,o);var a=i.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},i.getDerivedStateFromProps=function(e,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=e,o=a,Zt(r.children,(function(e){return(0,t.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Xt(e,"appear",r),enter:Xt(e,"enter",r),exit:Xt(e,"exit",r)})}))):Qt(e,i,a),firstRender:!1}},a.handleExited=function(e,t){var n=Zt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Yt({},t.children);return delete n[e.key],{children:n}})))},a.render=function(){var e=this.props,t=e.component,r=e.childFactory,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=this.state.contextValue,a=Jt(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===t?n().createElement(Kt.Provider,{value:i},a):n().createElement(Kt.Provider,{value:i},n().createElement(t,o,a))},i}(n().Component);en.propTypes={},en.defaultProps={component:"div",childFactory:function(e){return e}};const tn=en;var nn="undefined"==typeof window?t.useEffect:t.useLayoutEffect;const rn=function(e){var n=e.classes,r=e.pulsate,o=void 0!==r&&r,i=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,u=e.onExited,c=void 0===u?function(){}:u,p=e.timeout,d=t.useState(!1),f=d[0],h=d[1],m=T(n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+i},v=T(n.child,f&&n.childLeaving,o&&n.childPulsate),y=Mt(c);return nn((function(){if(!l){h(!0);var e=setTimeout(y,p);return function(){clearTimeout(e)}}}),[y,l,p]),t.createElement("span",{className:m,style:g},t.createElement("span",{className:v}))};var on=t.forwardRef((function(e,n){var r=e.center,o=void 0!==r&&r,i=e.classes,a=e.className,s=ve(e,["center","classes","className"]),l=t.useState([]),u=l[0],c=l[1],p=t.useRef(0),d=t.useRef(null);t.useEffect((function(){d.current&&(d.current(),d.current=null)}),[u]);var f=t.useRef(!1),h=t.useRef(null),m=t.useRef(null),g=t.useRef(null);t.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var v=t.useCallback((function(e){var n=e.pulsate,r=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.cb;c((function(e){return[].concat(qt(e),[t.createElement(rn,{key:p.current,classes:i,timeout:550,pulsate:n,rippleX:r,rippleY:o,rippleSize:a})])})),p.current+=1,d.current=s}),[i]),y=t.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,s=void 0===a?o||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,p,d,y=u?null:g.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),p=Math.round(b.height/2);else{var w=e.touches?e.touches[0]:e,E=w.clientX,x=w.clientY;c=Math.round(E-b.left),p=Math.round(x-b.top)}if(s)(d=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(d+=1);else{var O=2*Math.max(Math.abs((y?y.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((y?y.clientHeight:0)-p),p)+2;d=Math.sqrt(Math.pow(O,2)+Math.pow(S,2))}e.touches?null===m.current&&(m.current=function(){v({pulsate:i,rippleX:c,rippleY:p,rippleSize:d,cb:n})},h.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):v({pulsate:i,rippleX:c,rippleY:p,rippleSize:d,cb:n})}}),[o,v]),b=t.useCallback((function(){y({},{pulsate:!0})}),[y]),w=t.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(h.current=setTimeout((function(){w(e,t)})));m.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return t.useImperativeHandle(n,(function(){return{pulsate:b,start:y,stop:w}}),[b,y,w]),t.createElement("span",me({className:T(i.root,a),ref:g},s),t.createElement(tn,{component:null,exit:!0},u))}));const an=Dt((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(t.memo(on));var sn=t.forwardRef((function(e,n){var r=e.action,o=e.buttonRef,i=e.centerRipple,a=void 0!==i&&i,s=e.children,l=e.classes,u=e.className,c=e.component,p=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,m=void 0!==h&&h,g=e.disableTouchRipple,v=void 0!==g&&g,y=e.focusRipple,b=void 0!==y&&y,w=e.focusVisibleClassName,E=e.onBlur,x=e.onClick,O=e.onFocus,S=e.onFocusVisible,C=e.onKeyDown,_=e.onKeyUp,k=e.onMouseDown,P=e.onMouseLeave,A=e.onMouseUp,D=e.onTouchEnd,j=e.onTouchMove,L=e.onTouchStart,I=e.onDragLeave,M=e.tabIndex,N=void 0===M?0:M,R=e.TouchRippleProps,F=e.type,z=void 0===F?"button":F,V=ve(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),U=t.useRef(null),B=t.useRef(null),H=t.useState(!1),W=H[0],G=H[1];f&&W&&G(!1);var q=Gt(),Y=q.isFocusVisible,$=q.onBlurVisible,K=q.ref;function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;return Mt((function(r){return t&&t(r),!n&&B.current&&B.current[e](r),!0}))}t.useImperativeHandle(r,(function(){return{focusVisible:function(){G(!0),U.current.focus()}}}),[]),t.useEffect((function(){W&&b&&!m&&B.current.pulsate()}),[m,b,W]);var X=Z("start",k),J=Z("stop",I),ee=Z("stop",A),te=Z("stop",(function(e){W&&e.preventDefault(),P&&P(e)})),ne=Z("start",L),re=Z("stop",D),oe=Z("stop",j),ie=Z("stop",(function(e){W&&($(e),G(!1)),E&&E(e)}),!1),ae=Mt((function(e){U.current||(U.current=e.currentTarget),Y(e)&&(G(!0),S&&S(e)),O&&O(e)})),se=function(){var e=Q.findDOMNode(U.current);return p&&"button"!==p&&!("A"===e.tagName&&e.href)},le=t.useRef(!1),ue=Mt((function(e){b&&!le.current&&W&&B.current&&" "===e.key&&(le.current=!0,e.persist(),B.current.stop(e,(function(){B.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!f&&(e.preventDefault(),x&&x(e))})),ce=Mt((function(e){b&&" "===e.key&&B.current&&W&&!e.defaultPrevented&&(le.current=!1,e.persist(),B.current.stop(e,(function(){B.current.pulsate(e)}))),_&&_(e),x&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&x(e)})),pe=p;"button"===pe&&V.href&&(pe="a");var de={};"button"===pe?(de.type=z,de.disabled=f):("a"===pe&&V.href||(de.role="button"),de["aria-disabled"]=f);var fe=Lt(o,n),he=Lt(K,U),ge=Lt(fe,he),ye=t.useState(!1),be=ye[0],we=ye[1];t.useEffect((function(){we(!0)}),[]);var Ee=be&&!m&&!f;return t.createElement(pe,me({className:T(l.root,u,W&&[l.focusVisible,w],f&&l.disabled),onBlur:ie,onClick:x,onFocus:ae,onKeyDown:ue,onKeyUp:ce,onMouseDown:X,onMouseLeave:te,onMouseUp:ee,onDragLeave:J,onTouchEnd:re,onTouchMove:oe,onTouchStart:ne,ref:ge,tabIndex:f?-1:N},de,V),s,Ee?t.createElement(an,me({ref:B,center:a},R)):null)}));const ln=Dt({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(sn);function un(e){if("string"!=typeof e)throw new Error(_e(7));return e.charAt(0).toUpperCase()+e.slice(1)}var cn=t.forwardRef((function(e,n){var r=e.edge,o=void 0!==r&&r,i=e.children,a=e.classes,s=e.className,l=e.color,u=void 0===l?"default":l,c=e.disabled,p=void 0!==c&&c,d=e.disableFocusRipple,f=void 0!==d&&d,h=e.size,m=void 0===h?"medium":h,g=ve(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return t.createElement(ln,me({className:T(a.root,s,"default"!==u&&a["color".concat(un(u))],p&&a.disabled,"small"===m&&a["size".concat(un(m))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!f,disabled:p,ref:n},g),t.createElement("span",{className:a.label},i))}));const pn=Dt((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Xe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Xe(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Xe(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(cn);var dn=[0,1,2,3,4,5,6,7,8,9,10],fn=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var mn=t.forwardRef((function(e,n){var r=e.alignContent,o=void 0===r?"stretch":r,i=e.alignItems,a=void 0===i?"stretch":i,s=e.classes,l=e.className,u=e.component,c=void 0===u?"div":u,p=e.container,d=void 0!==p&&p,f=e.direction,h=void 0===f?"row":f,m=e.item,g=void 0!==m&&m,v=e.justify,y=void 0===v?"flex-start":v,b=e.lg,w=void 0!==b&&b,E=e.md,x=void 0!==E&&E,O=e.sm,S=void 0!==O&&O,C=e.spacing,_=void 0===C?0:C,k=e.wrap,P=void 0===k?"wrap":k,A=e.xl,D=void 0!==A&&A,j=e.xs,L=void 0!==j&&j,I=e.zeroMinWidth,M=void 0!==I&&I,N=ve(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),R=T(s.root,l,d&&[s.container,0!==_&&s["spacing-xs-".concat(String(_))]],g&&s.item,M&&s.zeroMinWidth,"row"!==h&&s["direction-xs-".concat(String(h))],"wrap"!==P&&s["wrap-xs-".concat(String(P))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==o&&s["align-content-xs-".concat(String(o))],"flex-start"!==y&&s["justify-xs-".concat(String(y))],!1!==L&&s["grid-xs-".concat(String(L))],!1!==S&&s["grid-sm-".concat(String(S))],!1!==x&&s["grid-md-".concat(String(x))],!1!==w&&s["grid-lg-".concat(String(w))],!1!==D&&s["grid-xl-".concat(String(D))]);return t.createElement(c,me({className:R,ref:n},N))})),gn=Dt((function(e){return me({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return dn.forEach((function(t){var r=e.spacing(t);0!==r&&(n["spacing-".concat("xs","-").concat(t)]={margin:"-".concat(hn(r,2)),width:"calc(100% + ".concat(hn(r),")"),"& > $item":{padding:hn(r,2)}})})),n}(e),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};fn.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?me(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(mn);const vn=gn,yn=window["material-ui"].DialogActions;var bn=f.n(yn);const wn=window["material-ui"].DialogContent;var En=f.n(wn);const xn=window["material-ui"].Dialog;var On=f.n(xn);const Sn=window["material-ui"].Popover;var Cn=f.n(Sn);const _n=window["material-ui"].TextField;var kn=f.n(_n);const Tn=window["material-ui"].InputAdornment;var Pn=f.n(Tn);function An(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Dn=function(e){function t(t){var n;return(n=e.call(this,t)||this)._state=null,n._del=!1,n._handleChange=function(e){var t=n.state.value,r=e.target.value,o=e.target,i=r.length>t.length,a=n._del,s=t===n.props.format(r);n.setState({value:r,local:!0},(function(){var e=o.selectionStart,l=n.props.refuse||/[^\d]+/g,u=r.substr(0,e).replace(l,"");if(n._state={input:o,before:u,op:i,di:a&&s,del:a},n.props.replace&&n.props.replace(t)&&i&&!s){for(var c=-1,p=0;p!==u.length;++p)c=Math.max(c,r.toLowerCase().indexOf(u[p].toLowerCase(),c+1));var d=r.substr(c+1).replace(l,"")[0];c=r.indexOf(d,c+1),r=""+r.substr(0,c)+r.substr(c+1)}var f=n.props.format(r);t===f?n.setState({value:r}):n.props.onChange(f)}))},n._hKD=function(e){"Delete"===e.code&&(n._del=!0)},n._hKU=function(e){"Delete"===e.code&&(n._del=!1)},n.state={value:t.value,local:!0},n}An(t,e),t.getDerivedStateFromProps=function(e,t){return{value:t.local?t.value:e.value,local:!1}};var n=t.prototype;return n.render=function(){var e=this._handleChange,t=this.state.value;return(0,this.props.children)({value:t,onChange:e})},n.componentWillUnmount=function(){document.removeEventListener("keydown",this._hKD),document.removeEventListener("keyup",this._hKU)},n.componentDidMount=function(){document.addEventListener("keydown",this._hKD),document.addEventListener("keyup",this._hKU)},n.componentDidUpdate=function(){var e=this._state;if(e){for(var t=this.state.value,n=-1,r=0;r!==e.before.length;++r)n=Math.max(n,t.toLowerCase().indexOf(e.before[r].toLowerCase(),n+1));if(this.props.replace&&(e.op||e.del&&!e.di))for(;t[n+1]&&(this.props.refuse||/[^\d]+/).test(t[n+1]);)n+=1;e.input.selectionStart=e.input.selectionEnd=n+1+(e.di?1:0)}this._state=null},t}(t.Component);const jn=window["material-ui"].Tab;var Ln=f.n(jn);const In=window["material-ui"].Tabs;var Mn=f.n(In);const Nn=window["material-ui"].Paper;var Rn=f.n(Nn),Fn=(0,t.createContext)(null),zn=function(e){var n=e.utils,r=e.children,o=e.locale,i=e.libInstance,a=(0,t.useMemo)((function(){return new n({locale:o,moment:i})}),[n,i,o]);return(0,t.createElement)(Fn.Provider,{value:a,children:r})};function Vn(){var e=(0,t.useContext)(Fn);return function(e){if(!e)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.")}(e),e}var Un=(0,o.makeStyles)((function(e){var t="light"===e.palette.type?e.palette.primary.contrastText:e.palette.getContrastText(e.palette.background.default);return{toolbarTxt:{color:(0,o.fade)(t,.54)},toolbarBtnSelected:{color:t}}}),{name:"MuiPickersToolbarText"}),Bn=function(e){var n,r=e.selected,o=e.label,i=e.className,a=void 0===i?null:i,s=_(e,["selected","label","className"]),l=Un();return(0,t.createElement)(A(),C({children:o,className:T(l.toolbarTxt,a,(n={},n[l.toolbarBtnSelected]=r,n))},s))},Hn=function(e){var n=e.classes,r=e.className,o=void 0===r?null:r,i=e.label,a=e.selected,s=e.variant,l=e.align,u=e.typographyClassName,c=_(e,["classes","className","label","selected","variant","align","typographyClassName"]);return(0,t.createElement)(j(),C({variant:"text",className:T(n.toolbarBtn,o)},c),(0,t.createElement)(Bn,{align:l,className:u,variant:s,label:i,selected:a}))};Hn.defaultProps={className:""};var Wn=(0,o.createStyles)({toolbarBtn:{padding:0,minWidth:"16px",textTransform:"none"}}),Gn=(0,o.withStyles)(Wn,{name:"MuiPickersToolbarButton"})(Hn),qn=(0,o.makeStyles)((function(e){return{toolbar:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:100,backgroundColor:"light"===e.palette.type?e.palette.primary.main:e.palette.background.default},toolbarLandscape:{height:"auto",maxWidth:150,padding:8,justifyContent:"flex-start"}}}),{name:"MuiPickersToolbar"}),Yn=function(e){var n,r=e.children,o=e.isLandscape,i=e.className,a=void 0===i?null:i,s=_(e,["children","isLandscape","className"]),l=qn();return(0,t.createElement)(I(),C({className:T(l.toolbar,(n={},n[l.toolbarLandscape]=o,n),a)},s),r)};function $n(e,t){return Array.isArray(t)?t.every((function(t){return-1!==e.indexOf(t)})):-1!==e.indexOf(t)}var Kn=function(e){return 1===e.length&&"year"===e[0]},Zn=function(e){return 2===e.length&&$n(e,"month")&&$n(e,"year")},Xn=(0,o.makeStyles)({toolbar:{flexDirection:"column",alignItems:"flex-start"},toolbarLandscape:{padding:16},dateLandscape:{marginRight:16}},{name:"MuiPickersDatePickerRoot"}),Qn=function(e){var n,r,o=e.date,i=e.views,a=e.setOpenView,s=e.isLandscape,l=e.openView,u=Vn(),c=Xn(),p=(0,t.useMemo)((function(){return Kn(i)}),[i]),d=(0,t.useMemo)((function(){return Zn(i)}),[i]);return(0,t.createElement)(Yn,{isLandscape:s,className:T((n={},n[c.toolbar]=!p,n[c.toolbarLandscape]=s,n))},(0,t.createElement)(Gn,{variant:p?"h3":"subtitle1",onClick:function(){return a("year")},selected:"year"===l,label:u.getYearText(o)}),!p&&!d&&(0,t.createElement)(Gn,{variant:"h4",selected:"date"===l,onClick:function(){return a("date")},align:s?"left":"center",label:u.getDatePickerHeaderText(o),className:T((r={},r[c.dateLandscape]=s,r))}),d&&(0,t.createElement)(Gn,{variant:"h4",onClick:function(){return a("month")},selected:"month"===l,label:u.getMonthText(o)}))},Jn=((0,i.oneOfType)([i.object,i.string,i.number,(0,i.instanceOf)(Date)]),(0,i.oneOf)(["year","month","day"]),{ampm:!0,invalidDateMessage:"Invalid Time Format"}),er={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),invalidDateMessage:"Invalid Date Format",minDateMessage:"Date should not be before minimal date",maxDateMessage:"Date should not be after maximal date",allowKeyboardControl:!0},tr=C({},Jn,er,{showTabs:!0}),nr=(0,o.makeStyles)((function(e){return{day:{width:36,height:36,fontSize:e.typography.caption.fontSize,margin:"0 2px",color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium,padding:0},hidden:{opacity:0,pointerEvents:"none"},current:{color:e.palette.primary.main,fontWeight:600},daySelected:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{backgroundColor:e.palette.primary.main}},dayDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersDay"}),rr=function(e){var n,r=e.children,o=e.disabled,i=e.hidden,a=e.current,s=e.selected,l=_(e,["children","disabled","hidden","current","selected"]),u=nr(),c=T(u.day,((n={})[u.hidden]=i,n[u.current]=a,n[u.daySelected]=s,n[u.dayDisabled]=o,n));return(0,t.createElement)(N(),C({className:c,tabIndex:i||o?-1:0},l),(0,t.createElement)(A(),{variant:"body2",color:"inherit"},r))};rr.displayName="Day",rr.defaultProps={disabled:!1,hidden:!1,current:!1,selected:!1};var or=function(e){var n=e.children,r=e.value,o=e.disabled,i=e.onSelect,a=e.dayInCurrentMonth,s=_(e,["children","value","disabled","onSelect","dayInCurrentMonth"]),l=(0,t.useCallback)((function(){return i(r)}),[i,r]);return(0,t.createElement)("div",C({role:"presentation",onClick:a&&!o?l:void 0,onKeyPress:a&&!o?l:void 0},s),n)},ir=(0,o.makeStyles)((function(e){var t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{transitionContainer:{display:"block",position:"relative","& > *":{position:"absolute",top:0,right:0,left:0}},"slideEnter-left":{willChange:"transform",transform:"translate(100%)"},"slideEnter-right":{willChange:"transform",transform:"translate(-100%)"},slideEnterActive:{transform:"translate(0%)",transition:t},slideExit:{transform:"translate(0%)"},"slideExitActiveLeft-left":{willChange:"transform",transform:"translate(-200%)",transition:t},"slideExitActiveLeft-right":{willChange:"transform",transform:"translate(200%)",transition:t}}}),{name:"MuiPickersSlideTransition"}),ar=function(e){var n=e.children,r=e.transKey,o=e.slideDirection,i=e.className,a=void 0===i?null:i,s=ir(),l={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+o],exitActive:s["slideExitActiveLeft-"+o]};return(0,t.createElement)(Y,{className:T(s.transitionContainer,a),childFactory:function(e){return(0,t.cloneElement)(e,{classNames:l})}},(0,t.createElement)(ce,{mountOnEnter:!0,unmountOnExit:!0,key:r+o,timeout:350,classNames:l,children:n}))},sr=(0,o.makeStyles)((function(e){return{switchHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:e.spacing(.5),marginBottom:e.spacing(1)},transitionContainer:{width:"100%",overflow:"hidden",height:23},iconButton:{zIndex:1,backgroundColor:e.palette.background.paper},daysHeader:{display:"flex",justifyContent:"center",alignItems:"center",maxHeight:16},dayLabel:{width:36,margin:"0 2px",textAlign:"center",color:e.palette.text.hint}}}),{name:"MuiPickersCalendarHeader"}),lr=function(e){var n=e.currentMonth,r=e.onMonthChange,i=e.leftArrowIcon,a=e.rightArrowIcon,s=e.leftArrowButtonProps,l=e.rightArrowButtonProps,u=e.disablePrevMonth,c=e.disableNextMonth,p=e.slideDirection,d=Vn(),f=sr(),h="rtl"===(0,o.useTheme)().direction;return(0,t.createElement)("div",null,(0,t.createElement)("div",{className:f.switchHeader},(0,t.createElement)(N(),C({},s,{disabled:u,onClick:function(){return r(d.getPreviousMonth(n),"right")},className:f.iconButton}),h?a:i),(0,t.createElement)(ar,{slideDirection:p,transKey:n.toString(),className:f.transitionContainer},(0,t.createElement)(A(),{align:"center",variant:"body1"},d.getCalendarHeaderText(n))),(0,t.createElement)(N(),C({},l,{disabled:c,onClick:function(){return r(d.getNextMonth(n),"left")},className:f.iconButton}),h?i:a)),(0,t.createElement)("div",{className:f.daysHeader},d.getWeekdays().map((function(e,n){return(0,t.createElement)(A(),{key:n,variant:"caption",className:f.dayLabel},e)}))))};lr.displayName="CalendarHeader",lr.defaultProps={leftArrowIcon:(0,t.createElement)((function(e){return n().createElement(de(),C({},e),n().createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),n().createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),rightArrowIcon:(0,t.createElement)((function(e){return n().createElement(de(),C({},e),n().createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),n().createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),disablePrevMonth:!1,disableNextMonth:!1};var ur="undefined"==typeof window?t.useEffect:t.useLayoutEffect;function cr(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function pr(e,n){var r=(0,t.useRef)(n);ur((function(){r.current=n})),(0,t.useEffect)((function(){if(e){var t=function(e){cr(e,n)};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}}),[e,n])}var dr,fr,hr=function(e){var n=e.onKeyDown;return(0,t.useEffect)((function(){return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}}),[n]),null},mr=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={slideDirection:"left",currentMonth:n.props.utils.startOfMonth(n.props.date),loadingQueue:0},n.pushToLoadingQueue=function(){var e=n.state.loadingQueue+1;n.setState({loadingQueue:e})},n.popFromLoadingQueue=function(){var e=n.state.loadingQueue;e=e<=0?0:e-1,n.setState({loadingQueue:e})},n.handleChangeMonth=function(e,t){if(n.setState({currentMonth:e,slideDirection:t}),n.props.onMonthChange){var r=n.props.onMonthChange(e);r&&(n.pushToLoadingQueue(),r.then((function(){n.popFromLoadingQueue()})))}},n.validateMinMaxDate=function(e){var t=n.props,r=t.minDate,o=t.maxDate,i=t.utils,a=t.disableFuture,s=t.disablePast,l=i.date();return Boolean(a&&i.isAfterDay(e,l)||s&&i.isBeforeDay(e,l)||r&&i.isBeforeDay(e,i.date(r))||o&&i.isAfterDay(e,i.date(o)))},n.shouldDisablePrevMonth=function(){var e=n.props,t=e.utils,r=e.disablePast,o=e.minDate,i=t.date(),a=t.startOfMonth(r&&t.isAfter(i,t.date(o))?i:t.date(o));return!t.isBefore(a,n.state.currentMonth)},n.shouldDisableNextMonth=function(){var e=n.props,t=e.utils,r=e.disableFuture,o=e.maxDate,i=t.date(),a=t.startOfMonth(r&&t.isBefore(i,t.date(o))?i:t.date(o));return!t.isAfter(a,n.state.currentMonth)},n.shouldDisableDate=function(e){var t=n.props.shouldDisableDate;return n.validateMinMaxDate(e)||Boolean(t&&t(e))},n.handleDaySelect=function(e,t){void 0===t&&(t=!0);var r=n.props,o=r.date,i=r.utils;n.props.onChange(i.mergeDateAndTime(e,o),t)},n.moveToDay=function(e){var t=n.props.utils;e&&!n.shouldDisableDate(e)&&(t.getMonth(e)!==t.getMonth(n.state.currentMonth)&&n.handleChangeMonth(t.startOfMonth(e),"left"),n.handleDaySelect(e,!1))},n.handleKeyDown=function(e){var t=n.props,r=t.theme,o=t.date,i=t.utils;cr(e,{ArrowUp:function(){return n.moveToDay(i.addDays(o,-7))},ArrowDown:function(){return n.moveToDay(i.addDays(o,7))},ArrowLeft:function(){return n.moveToDay(i.addDays(o,"ltr"===r.direction?-1:1))},ArrowRight:function(){return n.moveToDay(i.addDays(o,"ltr"===r.direction?1:-1))}})},n.renderWeeks=function(){var e=n.props,r=e.utils,o=e.classes;return r.getWeekArray(n.state.currentMonth).map((function(e){return(0,t.createElement)("div",{key:"week-"+e[0].toString(),className:o.week},n.renderDays(e))}))},n.renderDays=function(e){var r=n.props,o=r.date,i=r.renderDay,a=r.utils,s=a.date(),l=a.startOfDay(o),u=a.getMonth(n.state.currentMonth);return e.map((function(e){var r=n.shouldDisableDate(e),o=a.getMonth(e)===u,c=(0,t.createElement)(rr,{disabled:r,current:a.isSameDay(e,s),hidden:!o,selected:a.isSameDay(l,e)},a.getDayText(e));return i&&(c=i(e,l,o,c)),(0,t.createElement)(or,{value:e,key:e.toString(),disabled:r,dayInCurrentMonth:o,onSelect:n.handleDaySelect},c)}))},n}return S(n,e),n.getDerivedStateFromProps=function(e,t){var n=e.utils,r=e.date;if(!n.isEqual(r,t.lastDate)){var o=n.getMonth(r),i=t.lastDate||r,a=n.getMonth(i);return{lastDate:r,currentMonth:e.utils.startOfMonth(r),slideDirection:o===a?t.slideDirection:n.isAfterDay(r,i)?"left":"right"}}return null},n.prototype.componentDidMount=function(){var e=this.props,t=e.date,n=e.minDate,r=e.maxDate,o=e.utils,i=e.disablePast,a=e.disableFuture;if(this.shouldDisableDate(t)){var s=function(e){var t=e.date,n=e.utils,r=e.minDate,o=e.maxDate,i=e.disableFuture,a=e.disablePast,s=e.shouldDisableDate,l=n.startOfDay(n.date());a&&n.isBefore(r,l)&&(r=l),i&&n.isAfter(o,l)&&(o=l);var u=t,c=t;for(n.isBefore(t,r)&&(u=n.date(r),c=null),n.isAfter(t,o)&&(c&&(c=n.date(o)),u=null);u||c;){if(u&&n.isAfter(u,o)&&(u=null),c&&n.isBefore(c,r)&&(c=null),u){if(!s(u))return u;u=n.addDays(u,1)}if(c){if(!s(c))return c;c=n.addDays(c,-1)}}return null}({date:t,utils:o,minDate:o.date(n),maxDate:o.date(r),disablePast:Boolean(i),disableFuture:Boolean(a),shouldDisableDate:this.shouldDisableDate});this.handleDaySelect(s,!1)}},n.prototype.render=function(){var e=this.state,n=e.currentMonth,r=e.slideDirection,o=this.props,i=o.classes,a=o.allowKeyboardControl,s=o.leftArrowButtonProps,l=o.leftArrowIcon,u=o.rightArrowButtonProps,c=o.rightArrowIcon,p=o.loadingIndicator||(0,t.createElement)(he(),null);return(0,t.createElement)(t.Fragment,null,a&&(0,t.createElement)(hr,{onKeyDown:this.handleKeyDown}),(0,t.createElement)(lr,{currentMonth:n,slideDirection:r,onMonthChange:this.handleChangeMonth,leftArrowIcon:l,leftArrowButtonProps:s,rightArrowIcon:c,rightArrowButtonProps:u,disablePrevMonth:this.shouldDisablePrevMonth(),disableNextMonth:this.shouldDisableNextMonth()}),(0,t.createElement)(ar,{slideDirection:r,transKey:n.toString(),className:i.transitionContainer},(0,t.createElement)(t.Fragment,null,this.state.loadingQueue>0&&(0,t.createElement)("div",{className:i.progressContainer},p)||(0,t.createElement)("div",null,this.renderWeeks()))))},n.defaultProps={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),disablePast:!1,disableFuture:!1,allowKeyboardControl:!0},n}(t.Component),gr=(0,o.withStyles)((function(e){return{transitionContainer:{minHeight:216,marginTop:e.spacing(1.5)},progressContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},week:{display:"flex",justifyContent:"center"}}}),{name:"MuiPickersCalendar",withTheme:!0})(((fr=function(e){var n=Vn();return(0,t.createElement)(dr,C({utils:n},e))}).displayName="WithUtils("+((dr=mr).displayName||dr.name)+")",fr)),vr=(0,o.makeStyles)((function(e){return{root:{height:40,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none","&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},yearSelected:{margin:"10px 0",fontWeight:e.typography.fontWeightMedium},yearDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersYear"}),yr=function(e){var n,r=e.onSelect,o=e.forwardedRef,i=e.value,a=e.selected,s=e.disabled,l=e.children,u=_(e,["onSelect","forwardedRef","value","selected","disabled","children"]),c=vr(),p=(0,t.useCallback)((function(){return r(i)}),[r,i]);return(0,t.createElement)(A(),C({role:"button",component:"div",tabIndex:s?-1:0,onClick:p,onKeyPress:p,color:a?"primary":void 0,variant:a?"h5":"subtitle1",children:l,ref:o,className:T(c.root,(n={},n[c.yearSelected]=a,n[c.yearDisabled]=s,n))},u))};yr.displayName="Year";var br=(0,t.forwardRef)((function(e,n){return(0,t.createElement)(yr,C({},e,{forwardedRef:n}))})),wr=310,Er=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,ge.makeStyles)(e,me({defaultTheme:At},t))}((function(e){return{staticWrapperRoot:{overflow:"hidden",minWidth:wr,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}}}),{name:"MuiPickersStaticWrapper"}),xr=function(e){var n=e.children,r=Er();return(0,t.createElement)("div",{className:r.staticWrapperRoot,children:n})},Or=function(e){var n,r,o=e.children,i=e.classes,a=e.onAccept,s=e.onDismiss,l=e.onClear,u=e.onSetToday,c=e.okLabel,p=e.cancelLabel,d=e.clearLabel,f=e.todayLabel,h=e.clearable,m=e.showTodayButton,g=(e.showTabs,e.wider),v=_(e,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return(0,t.createElement)(On(),C({role:"dialog",onClose:s,classes:{paper:T(i.dialogRoot,(n={},n[i.dialogRootWider]=g,n))}},v),(0,t.createElement)(En(),{children:o,className:i.dialog}),(0,t.createElement)(bn(),{classes:{root:T((r={},r[i.withAdditionalAction]=h||m,r))}},h&&(0,t.createElement)(j(),{color:"primary",onClick:l},d),!h&&m&&(0,t.createElement)(j(),{color:"primary",onClick:u},f),p&&(0,t.createElement)(j(),{color:"primary",onClick:s},p),c&&(0,t.createElement)(j(),{color:"primary",onClick:a},c)))};Or.displayName="ModalDialog";var Sr=(0,o.createStyles)({dialogRoot:{minWidth:wr},dialogRootWider:{},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}}),Cr=(0,o.withStyles)(Sr,{name:"MuiPickersModal"})(Or),_r=function(e){var n=e.open,r=e.children,o=e.okLabel,i=e.cancelLabel,a=e.clearLabel,s=e.todayLabel,l=e.showTodayButton,u=e.clearable,c=e.DialogProps,p=e.showTabs,d=e.wider,f=e.InputComponent,h=e.DateInputProps,m=e.onClear,g=e.onAccept,v=e.onDismiss,y=e.onSetToday,b=_(e,["open","children","okLabel","cancelLabel","clearLabel","todayLabel","showTodayButton","clearable","DialogProps","showTabs","wider","InputComponent","DateInputProps","onClear","onAccept","onDismiss","onSetToday"]);return pr(n,{Enter:g}),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(f,C({},b,h)),(0,t.createElement)(Cr,C({wider:d,showTabs:p,open:n,onClear:m,onAccept:g,onDismiss:v,onSetToday:y,clearLabel:a,todayLabel:s,okLabel:o,cancelLabel:i,clearable:u,showTodayButton:l,children:r},c)))};_r.defaultProps={okLabel:"OK",cancelLabel:"Cancel",clearLabel:"Clear",todayLabel:"Today",clearable:!1,showTodayButton:!1};var kr,Tr=(0,o.makeStyles)({popoverPaper:{width:wr,paddingBottom:8},popoverPaperWider:{width:325}},{name:"MuiPickersInlineWrapper"}),Pr=function(e){var n,r=e.open,o=e.wider,i=e.children,a=e.PopoverProps,s=(e.onClear,e.onDismiss),l=(e.onSetToday,e.onAccept),u=(e.showTabs,e.DateInputProps),c=e.InputComponent,p=_(e,["open","wider","children","PopoverProps","onClear","onDismiss","onSetToday","onAccept","showTabs","DateInputProps","InputComponent"]),d=(0,t.useRef)(),f=Tr();return pr(r,{Enter:l}),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(c,C({},p,u,{inputRef:d})),(0,t.createElement)(Cn(),C({open:r,onClose:s,anchorEl:d.current,classes:{paper:T(f.popoverPaper,(n={},n[f.popoverPaperWider]=o,n))},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:i},a)))},Ar=(0,t.createContext)(null),Dr=function(e){var n=e.variant,r=_(e,["variant"]),o=function(e){switch(e){case"inline":return Pr;case"static":return xr;default:return _r}}(n);return(0,t.createElement)(Ar.Provider,{value:n||"dialog"},(0,t.createElement)(o,C({},r)))},jr=(0,o.makeStyles)({container:{height:300,overflowY:"auto"}},{name:"MuiPickersYearSelection"}),Lr=function(e){var n=e.date,r=e.onChange,o=e.onYearChange,i=e.minDate,a=e.maxDate,s=e.disablePast,l=e.disableFuture,u=e.animateYearScrolling,c=Vn(),p=jr(),d=(0,t.useContext)(Ar),f=(0,t.useRef)(null);(0,t.useEffect)((function(){f.current&&f.current.scrollIntoView&&f.current.scrollIntoView({block:"static"===d?"nearest":"center",behavior:u?"smooth":"auto"})}),[]);var h=c.getYear(n),m=(0,t.useCallback)((function(e){var t=c.setYear(n,e);o&&o(t),r(t,!0)}),[n,r,o,c]);return(0,t.createElement)("div",{className:p.container},c.getYearRange(i,a).map((function(e){var n=c.getYear(e),r=n===h;return(0,t.createElement)(br,{key:c.getYearText(e),selected:r,value:n,onSelect:m,ref:r?f:void 0,disabled:Boolean(s&&c.isBeforeYear(e,c.date())||l&&c.isAfterYear(e,c.date()))},c.getYearText(e))})))};!function(e){e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds"}(kr||(kr={}));var Ir=kr,Mr=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={toAnimateTransform:!1,previousType:void 0},t.getAngleStyle=function(){var e=t.props,n=e.value,r=e.isInner,o=e.type,i=360/(o===Ir.HOURS?12:60)*n;return o===Ir.HOURS&&n>12&&(i-=360),{height:r?"26%":"40%",transform:"rotateZ("+i+"deg)"}},t}return S(n,e),n.prototype.render=function(){var e,n,r=this.props,o=r.classes,i=r.hasSelected;return(0,t.createElement)("div",{style:this.getAngleStyle(),className:T(o.pointer,(e={},e[o.animateTransform]=this.state.toAnimateTransform,e))},(0,t.createElement)("div",{className:T(o.thumb,(n={},n[o.noPoint]=i,n))}))},n.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}},n}(t.Component),Nr=(0,o.withStyles)((function(e){return(0,o.createStyles)({pointer:{width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},animateTransform:{transition:e.transitions.create(["transform","height"])},thumb:{width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"100%",position:"absolute",top:-21,left:-15,border:"14px solid "+e.palette.primary.main,boxSizing:"content-box"},noPoint:{backgroundColor:e.palette.primary.main}})}),{name:"MuiPickersClockPointer"})(Mr),Rr=130,Fr=130,zr=Rr-Rr,Vr=0-Fr,Ur=function(e,t,n){var r=t-Rr,o=n-Fr,i=57.29577951308232*(Math.atan2(zr,Vr)-Math.atan2(r,o));i=Math.round(i/e)*e,i%=360;var a=Math.floor(i/e)||0,s=Math.pow(r,2)+Math.pow(o,2);return{value:a,distance:Math.sqrt(s)}},Br=function(e,t){return t.getHours(e)>=12?"pm":"am"},Hr=function(e,t,n,r){if(n&&(r.getHours(e)>=12?"pm":"am")!==t){var o="am"===t?r.getHours(e)-12:r.getHours(e)+12;return r.setHours(e,o)}return e},Wr=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMoving=!1,t.handleTouchMove=function(e){t.isMoving=!0,t.setTime(e)},t.handleTouchEnd=function(e){t.isMoving&&(t.setTime(e,!0),t.isMoving=!1)},t.handleMove=function(e){e.preventDefault(),e.stopPropagation(),(void 0===e.buttons?1===e.nativeEvent.which:1===e.buttons)&&t.setTime(e.nativeEvent,!1)},t.handleMouseUp=function(e){t.isMoving&&(t.isMoving=!1),t.setTime(e.nativeEvent,!0)},t.hasSelected=function(){var e=t.props,n=e.type,r=e.value;return n===Ir.HOURS||r%5==0},t}return S(n,e),n.prototype.setTime=function(e,t){void 0===t&&(t=!1);var n=e.offsetX,r=e.offsetY;if(void 0===n){var o=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-o.left,r=e.changedTouches[0].clientY-o.top}var i=this.props.type===Ir.SECONDS||this.props.type===Ir.MINUTES?function(e,t,n){return void 0===n&&(n=1),Ur(6*n,e,t).value*n%60}(n,r,this.props.minutesStep):function(e,t,n){var r=Ur(30,e,t),o=r.value,i=r.distance;return o=o||12,n?o%=12:i<90&&(o+=12,o%=24),o}(n,r,Boolean(this.props.ampm));this.props.onChange(i,t)},n.prototype.render=function(){var e=this.props,n=e.classes,r=e.value,o=e.children,i=e.type,a=!e.ampm&&i===Ir.HOURS&&(r<1||r>12);return(0,t.createElement)("div",{className:n.container},(0,t.createElement)("div",{className:n.clock},(0,t.createElement)("div",{role:"menu",tabIndex:-1,className:n.squareMask,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMove}),(0,t.createElement)("div",{className:n.pin}),(0,t.createElement)(Nr,{type:i,value:r,isInner:a,hasSelected:this.hasSelected()}),o))},n.defaultProps={ampm:!1,minutesStep:1},n}(t.Component),Gr=(0,o.withStyles)((function(e){return(0,o.createStyles)({container:{display:"flex",justifyContent:"center",alignItems:"flex-end",margin:e.spacing(2)+"px 0 "+e.spacing(1)+"px"},clock:{backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:260,width:260,position:"relative",pointerEvents:"none",zIndex:1},squareMask:{width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:"none",touchActions:"none",userSelect:"none","&:active":{cursor:"move"}},pin:{width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),{name:"MuiPickersClock"})(Wr),qr={0:[0,40],1:[55,19.6],2:[94.4,59.5],3:[109,114],4:[94.4,168.5],5:[54.5,208.4],6:[0,223],7:[-54.5,208.4],8:[-94.4,168.5],9:[-109,114],10:[-94.4,59.5],11:[-54.5,19.6],12:[0,5],13:[36.9,49.9],14:[64,77],15:[74,114],16:[64,151],17:[37,178],18:[0,188],19:[-37,178],20:[-64,151],21:[-74,114],22:[-64,77],23:[-37,50]},Yr=(0,o.makeStyles)((function(e){var t=e.spacing(4);return{clockNumber:{width:t,height:32,userSelect:"none",position:"absolute",left:"calc(50% - "+t/2+"px)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:"light"===e.palette.type?e.palette.text.primary:e.palette.text.hint},clockNumberSelected:{color:e.palette.primary.contrastText}}}),{name:"MuiPickersClockNumber"}),$r=function(e){var n,r=e.selected,o=e.label,i=e.index,a=e.isInner,s=Yr(),l=T(s.clockNumber,((n={})[s.clockNumberSelected]=r,n)),u=(0,t.useMemo)((function(){var e=qr[i];return{transform:"translate("+e[0]+"px, "+e[1]+"px"}}),[i]);return(0,t.createElement)(A(),{component:"span",className:l,variant:a?"body2":"body1",style:u,children:o})},Kr=function(e){for(var n=e.ampm,r=e.utils,o=e.date,i=r.getHours(o),a=[],s=n?12:23,l=function(e){return n?12===e?12===i||0===i:i===e||i-12===e:i===e},u=n?1:0;u<=s;u+=1){var c=u.toString();0===u&&(c="00");var p={index:u,label:r.formatNumber(c),selected:l(u),isInner:!n&&(0===u||u>12)};a.push((0,t.createElement)($r,C({key:u},p)))}return a},Zr=function(e){var n=e.value,r=e.utils.formatNumber;return[(0,t.createElement)($r,{label:r("00"),selected:0===n,index:12,key:12}),(0,t.createElement)($r,{label:r("05"),selected:5===n,index:1,key:1}),(0,t.createElement)($r,{label:r("10"),selected:10===n,index:2,key:2}),(0,t.createElement)($r,{label:r("15"),selected:15===n,index:3,key:3}),(0,t.createElement)($r,{label:r("20"),selected:20===n,index:4,key:4}),(0,t.createElement)($r,{label:r("25"),selected:25===n,index:5,key:5}),(0,t.createElement)($r,{label:r("30"),selected:30===n,index:6,key:6}),(0,t.createElement)($r,{label:r("35"),selected:35===n,index:7,key:7}),(0,t.createElement)($r,{label:r("40"),selected:40===n,index:8,key:8}),(0,t.createElement)($r,{label:r("45"),selected:45===n,index:9,key:9}),(0,t.createElement)($r,{label:r("50"),selected:50===n,index:10,key:10}),(0,t.createElement)($r,{label:r("55"),selected:55===n,index:11,key:11})]},Xr=function(e){var n=e.type,r=e.onHourChange,o=e.onMinutesChange,i=e.onSecondsChange,a=e.ampm,s=e.date,l=e.minutesStep,u=Vn(),c=(0,t.useMemo)((function(){switch(n){case Ir.HOURS:return{value:u.getHours(s),children:Kr({date:s,utils:u,ampm:Boolean(a)}),onChange:function(e,t){var n=Br(s,u),o=Hr(u.setHours(s,e),n,Boolean(a),u);r(o,t)}};case Ir.MINUTES:var e=u.getMinutes(s);return{value:e,children:Zr({value:e,utils:u}),onChange:function(e,t){var n=u.setMinutes(s,e);o(n,t)}};case Ir.SECONDS:var t=u.getSeconds(s);return{value:t,children:Zr({value:t,utils:u}),onChange:function(e,t){var n=u.setSeconds(s,e);i(n,t)}};default:throw new Error("You must provide the type for TimePickerView")}}),[a,s,r,o,i,n,u]);return(0,t.createElement)(Gr,C({type:n,ampm:a,minutesStep:l},c))};Xr.displayName="TimePickerView",Xr.defaultProps={ampm:!0,minutesStep:1},(0,t.memo)(Xr);var Qr=(0,o.makeStyles)((function(e){return{root:{flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none",height:75,transition:e.transitions.create("font-size",{duration:"100ms"}),"&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},monthSelected:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium},monthDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersMonth"}),Jr=function(e){var n,r=e.selected,o=e.onSelect,i=e.disabled,a=e.value,s=e.children,l=_(e,["selected","onSelect","disabled","value","children"]),u=Qr(),c=(0,t.useCallback)((function(){o(a)}),[o,a]);return(0,t.createElement)(A(),C({role:"button",component:"div",className:T(u.root,(n={},n[u.monthSelected]=r,n[u.monthDisabled]=i,n)),tabIndex:i?-1:0,onClick:c,onKeyPress:c,color:r?"primary":void 0,variant:r?"h5":"subtitle1",children:s},l))};Jr.displayName="Month";var eo=(0,o.makeStyles)({container:{width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch"}},{name:"MuiPickersMonthSelection"}),to=function(e){var n=e.disablePast,r=e.disableFuture,o=e.minDate,i=e.maxDate,a=e.date,s=e.onMonthChange,l=e.onChange,u=Vn(),c=eo(),p=u.getMonth(a),d=function(e){var t=u.date(),a=u.date(o),s=u.date(i),l=u.startOfMonth(n&&u.isAfter(t,a)?t:a),c=u.startOfMonth(r&&u.isBefore(t,s)?t:s),p=u.isBefore(e,l),d=u.isAfter(e,c);return p||d},f=(0,t.useCallback)((function(e){var t=u.setMonth(a,e);l(t,!0),s&&s(t)}),[a,l,s,u]);return(0,t.createElement)("div",{className:c.container},u.getMonthArray(a).map((function(e){var n=u.getMonth(e),r=u.format(e,"MMM");return(0,t.createElement)(Jr,{key:r,value:n,selected:n===p,onSelect:f,disabled:d(e)},r)})))},no=function(){return"undefined"!=typeof window&&window.screen&&window.orientation&&90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait"},ro={year:Lr,month:to,date:gr,hours:Xr,minutes:Xr,seconds:Xr},oo=(0,o.makeStyles)({container:{display:"flex",flexDirection:"column"},containerLandscape:{flexDirection:"row"},pickerView:{overflowX:"hidden",minHeight:305,minWidth:wr,maxWidth:325,display:"flex",flexDirection:"column",justifyContent:"center"},pickerViewLandscape:{padding:"0 8px"}},{name:"MuiPickersBasePicker"}),io=function(e){var n,r,o=e.date,i=e.ampm,a=e.views,s=e.disableToolbar,l=e.disablePast,u=e.disableFuture,c=e.hideTabs,p=e.onChange,d=e.openTo,f=e.minutesStep,h=e.dateRangeIcon,m=e.timeIcon,g=e.minDate,v=e.maxDate,y=e.animateYearScrolling,b=e.leftArrowIcon,w=e.rightArrowIcon,E=e.renderDay,x=e.shouldDisableDate,O=e.allowKeyboardControl,S=e.onMonthChange,_=e.onYearChange,k=e.leftArrowButtonProps,P=e.rightArrowButtonProps,A=e.ToolbarComponent,D=e.loadingIndicator,j=e.orientation,L=Vn(),I=oo(),M=function(e){var n=(0,t.useState)(no()),r=n[0],o=n[1],i=(0,t.useCallback)((function(){return o(no())}),[]);return ur((function(){return window.addEventListener("orientationchange",i),function(){return window.removeEventListener("orientationchange",i)}}),[i]),"landscape"===(e||r)}(j),N=function(e,n,r){var o=(0,t.useState)(n&&$n(e,n)?n:e[0]),i=o[0],a=o[1],s=(0,t.useCallback)((function(t,n){var o=e[e.indexOf(i)+1];if(n&&o)return r(t,!1),void a(o);r(t,Boolean(n))}),[r,i,e]);return{handleChangeAndOpenNext:s,openView:i,setOpenView:a}}(a,d,p),R=N.openView,F=N.setOpenView,z=N.handleChangeAndOpenNext,V=(0,t.useMemo)((function(){return L.date(g)}),[g,L]),U=(0,t.useMemo)((function(){return L.date(v)}),[v,L]);return(0,t.createElement)("div",{className:T(I.container,(n={},n[I.containerLandscape]=M,n))},!s&&(0,t.createElement)(A,C({date:o,onChange:p,setOpenView:F,openView:R,hideTabs:c,dateRangeIcon:h,timeIcon:m,isLandscape:M},e)),(0,t.createElement)("div",{className:T(I.pickerView,(r={},r[I.pickerViewLandscape]=M,r))},"year"===R&&(0,t.createElement)(Lr,{date:o,onChange:z,minDate:V,maxDate:U,disablePast:l,disableFuture:u,onYearChange:_,animateYearScrolling:y}),"month"===R&&(0,t.createElement)(to,{date:o,onChange:z,minDate:V,maxDate:U,disablePast:l,disableFuture:u,onMonthChange:S}),"date"===R&&(0,t.createElement)(gr,{date:o,onChange:z,onMonthChange:S,disablePast:l,disableFuture:u,minDate:V,maxDate:U,leftArrowIcon:b,leftArrowButtonProps:k,rightArrowIcon:w,rightArrowButtonProps:P,renderDay:E,shouldDisableDate:x,allowKeyboardControl:O,loadingIndicator:D}),("hours"===R||"minutes"===R||"seconds"===R)&&(0,t.createElement)(Xr,{date:o,ampm:i,type:R,minutesStep:f,onHourChange:z,onMinutesChange:z,onSecondsChange:z})))};io.defaultProps=C({},er,{views:Object.keys(ro)});var ao=function(e,t,n,r,o){var i=o.invalidLabel,a=o.emptyLabel,s=o.labelFunc,l=n.date(e);return s?s(r?null:l,i):r?a||"":n.isValid(l)?n.format(l,t):i},so=function(e,t,n){return t?n:e.endOfDay(n)},lo=function(e,t,n){return t?n:e.startOfDay(n)};function uo(e,t,n){return void 0===t&&(t=!0),e||(t?n["12h"]:n["24h"])}function co(e,n){var r=e.autoOk,o=e.disabled,i=e.onAccept,a=e.onChange,s=e.onError,l=e.value,u=e.variant,c=Vn(),p=function(e){var n,r=e.open,o=e.onOpen,i=e.onClose,a=null;return null==r&&(r=(n=(0,t.useState)(!1))[0],a=n[1]),{isOpen:r,setIsOpen:(0,t.useCallback)((function(e){return a&&a(e),e?o&&o():i&&i()}),[o,i,a])}}(e),d=p.isOpen,f=p.setIsOpen,h=function(e,n){return{date:function(e,n){var r=n.value,o=n.initialFocusedDate,i=(0,t.useRef)(e.date()),a=e.date(r||o||i.current);return a&&e.isValid(a)?a:i.current}(Vn(),e),format:e.format||n.getDefaultFormat()}}(e,n),m=h.date,g=h.format,v=(0,t.useState)(m),y=v[0],b=v[1];(0,t.useEffect)((function(){d||c.isEqual(y,m)||b(m)}),[m,d,y,c]);var w=(0,t.useCallback)((function(e){f(!1),a(e),i&&i(e)}),[i,a,f]),E=(0,t.useMemo)((function(){return{format:g,open:d,onClear:function(){return w(null)},onAccept:function(){return w(y)},onSetToday:function(){return b(c.date())},onDismiss:function(){f(!1)}}}),[w,g,d,y,f,c]),x=(0,t.useMemo)((function(){return{date:y,onChange:function(e,t){void 0===t&&(t=!0),b(e),"inline"!==u&&"static"!==u||a(e),t&&r&&w(e)}}}),[w,r,a,y,u]),O=function(e,t,n){var r=n.maxDate,o=n.minDate,i=n.disablePast,a=n.disableFuture,s=n.maxDateMessage,l=n.minDateMessage,u=n.invalidDateMessage,c=n.strictCompareDates,p=t.date(e);return null===e?"":t.isValid(e)?r&&t.isAfter(p,so(t,!!c,t.date(r)))||a&&t.isAfter(p,so(t,!!c,t.date()))?s:o&&t.isBefore(p,lo(t,!!c,t.date(o)))||i&&t.isBefore(p,lo(t,!!c,t.date()))?l:"":u}(l,c,e);(0,t.useEffect)((function(){O&&s&&s(O,l)}),[s,O,l]);var S=ao(m,g,c,null===l,e),C={pickerProps:x,inputProps:(0,t.useMemo)((function(){return{inputValue:S,validationError:O,onClick:function(){return!o&&f(!0)}}}),[o,S,f,O]),wrapperProps:E};return(0,t.useDebugValue)(C),C}var po=function(e){var n=e.inputValue,r=e.inputVariant,o=e.validationError,i=e.InputProps,a=e.TextFieldComponent,s=void 0===a?kn():a,l=_(e,["inputValue","inputVariant","validationError","InputProps","TextFieldComponent"]),u=(0,t.useMemo)((function(){return C({},i,{readOnly:!0})}),[i]);return(0,t.createElement)(s,C({error:Boolean(o),helperText:o},l,{value:n,variant:r,InputProps:u}))};function fo(e){var n=e.useOptions,r=e.getCustomProps,o=e.DefaultToolbarComponent;return function(e){var i=e.allowKeyboardControl,a=e.ampm,s=e.hideTabs,l=e.animateYearScrolling,u=(e.autoOk,e.disableFuture),c=e.disablePast,p=(e.format,e.forwardedRef,e.initialFocusedDate,e.invalidDateMessage,e.labelFunc,e.leftArrowIcon),d=e.leftArrowButtonProps,f=e.maxDate,h=(e.maxDateMessage,e.minDate),m=(e.onOpen,e.onClose,e.minDateMessage,e.strictCompareDates),g=e.minutesStep,v=(e.onAccept,e.onChange,e.onMonthChange),y=e.onYearChange,b=e.renderDay,w=e.views,E=e.openTo,x=e.rightArrowIcon,O=e.rightArrowButtonProps,S=e.shouldDisableDate,k=e.dateRangeIcon,T=(e.emptyLabel,e.invalidLabel,e.timeIcon),P=(e.value,e.variant),A=e.orientation,D=e.disableToolbar,j=e.loadingIndicator,L=e.ToolbarComponent,I=void 0===L?o:L,M=_(e,["allowKeyboardControl","ampm","hideTabs","animateYearScrolling","autoOk","disableFuture","disablePast","format","forwardedRef","initialFocusedDate","invalidDateMessage","labelFunc","leftArrowIcon","leftArrowButtonProps","maxDate","maxDateMessage","minDate","onOpen","onClose","minDateMessage","strictCompareDates","minutesStep","onAccept","onChange","onMonthChange","onYearChange","renderDay","views","openTo","rightArrowIcon","rightArrowButtonProps","shouldDisableDate","dateRangeIcon","emptyLabel","invalidLabel","timeIcon","value","variant","orientation","disableToolbar","loadingIndicator","ToolbarComponent"]),N=r?r(e):{},R=co(e,n(e)),F=R.pickerProps,z=R.inputProps,V=R.wrapperProps;return(0,t.createElement)(Dr,C({variant:P,InputComponent:po,DateInputProps:z},V,N,M),(0,t.createElement)(io,C({},F,{orientation:A,disableToolbar:D,ToolbarComponent:I,hideTabs:s,ampm:a,views:w,openTo:E,allowKeyboardControl:i,minutesStep:g,animateYearScrolling:l,disableFuture:u,disablePast:c,leftArrowIcon:p,leftArrowButtonProps:d,maxDate:f,minDate:h,strictCompareDates:m,onMonthChange:v,onYearChange:y,renderDay:b,dateRangeIcon:k,timeIcon:T,rightArrowIcon:x,rightArrowButtonProps:O,shouldDisableDate:S,loadingIndicator:j})))}}po.displayName="PureDateInput";var ho=function(e){var n=e.inputValue,r=e.inputVariant,o=e.validationError,i=e.KeyboardButtonProps,a=e.InputAdornmentProps,s=e.onClick,l=e.onChange,u=e.InputProps,c=e.mask,p=e.maskChar,d=void 0===p?"_":p,f=e.refuse,h=void 0===f?/[^\d]+/gi:f,m=e.format,g=e.keyboardIcon,v=e.disabled,y=e.rifmFormatter,b=e.TextFieldComponent,w=void 0===b?kn():b,E=_(e,["inputValue","inputVariant","validationError","KeyboardButtonProps","InputAdornmentProps","onClick","onChange","InputProps","mask","maskChar","refuse","format","keyboardIcon","disabled","rifmFormatter","TextFieldComponent"]),x=c||function(e,t){return e.replace(/[a-z]/gi,t)}(m,d),O=(0,t.useCallback)(function(e,t,n){return function(r){if(""===r)return r;for(var o="",i=r.replace(n,""),a=0,s=0;a<e.length;){var l=e[a];l===t&&s<i.length?(o+=i[s],s+=1):o+=l,a+=1}return o}}(x,d,h),[c,d]),S=a&&a.position?a.position:"end";return(0,t.createElement)(Dn,{value:n,onChange:function(e){l(""===e||e===x?null:e)},refuse:h,format:y||O},(function(e){var n,l=e.onChange,c=e.value;return(0,t.createElement)(w,C({disabled:v,error:Boolean(o),helperText:o},E,{value:c,onChange:l,variant:r,InputProps:C({},u,(n={},n[S+"Adornment"]=(0,t.createElement)(Pn(),C({position:S},a),(0,t.createElement)(pn,C({disabled:v},i,{onClick:s}),g)),n))}))}))};function mo(e){var n=e.useOptions,r=e.getCustomProps,o=e.DefaultToolbarComponent;return function(e){var i=e.allowKeyboardControl,a=e.ampm,s=e.hideTabs,l=e.animateYearScrolling,u=(e.autoOk,e.disableFuture),c=e.disablePast,p=(e.format,e.forwardedRef,e.initialFocusedDate,e.invalidDateMessage,e.labelFunc,e.leftArrowIcon),d=e.leftArrowButtonProps,f=e.maxDate,h=(e.maxDateMessage,e.minDate),m=(e.onOpen,e.onClose,e.minDateMessage,e.strictCompareDates),g=e.minutesStep,v=(e.onAccept,e.onChange,e.onMonthChange),y=e.onYearChange,b=e.renderDay,w=e.views,E=e.openTo,x=e.rightArrowIcon,O=e.rightArrowButtonProps,S=e.shouldDisableDate,k=(e.value,e.dateRangeIcon),T=(e.emptyLabel,e.invalidLabel,e.timeIcon),P=e.orientation,A=e.variant,D=e.disableToolbar,j=e.loadingIndicator,L=e.ToolbarComponent,I=void 0===L?o:L,M=_(e,["allowKeyboardControl","ampm","hideTabs","animateYearScrolling","autoOk","disableFuture","disablePast","format","forwardedRef","initialFocusedDate","invalidDateMessage","labelFunc","leftArrowIcon","leftArrowButtonProps","maxDate","maxDateMessage","minDate","onOpen","onClose","minDateMessage","strictCompareDates","minutesStep","onAccept","onChange","onMonthChange","onYearChange","renderDay","views","openTo","rightArrowIcon","rightArrowButtonProps","shouldDisableDate","value","dateRangeIcon","emptyLabel","invalidLabel","timeIcon","orientation","variant","disableToolbar","loadingIndicator","ToolbarComponent"]),N=r?r(e):{},R=function(e,n){var r=e.format,o=void 0===r?n.getDefaultFormat():r,i=e.inputValue,a=e.onChange,s=e.value,l=Vn(),u=ao(s,o,l,null===s,e),c=(0,t.useState)(u),p=c[0],d=c[1],f=i?function(e,t,n){try{return t.parse(e,n)}catch(e){return null}}(i,l,o):s;(0,t.useEffect)((function(){(null===s||l.isValid(s))&&d(u)}),[u,d,l,s]);var h=(0,t.useCallback)((function(e){a(e,null===e?null:l.format(e,o))}),[o,a,l]),m=co(C({},e,{value:f,onChange:h}),n),g=m.inputProps,v=m.wrapperProps,y=m.pickerProps,b=(0,t.useMemo)((function(){return C({},g,{format:v.format,inputValue:i||p,onChange:function(e){d(e||"");var t=null===e?null:l.parse(e,v.format);a(t,e)}})}),[g,p,i,a,l,v.format]);return{inputProps:b,wrapperProps:v,pickerProps:y}}(e,n(e)),F=R.pickerProps,z=R.inputProps,V=R.wrapperProps;return(0,t.createElement)(Dr,C({variant:A,InputComponent:ho,DateInputProps:z},N,V,M),(0,t.createElement)(io,C({},F,{ToolbarComponent:I,disableToolbar:D,hideTabs:s,orientation:P,ampm:a,views:w,openTo:E,allowKeyboardControl:i,minutesStep:g,animateYearScrolling:l,disableFuture:u,disablePast:c,leftArrowIcon:p,leftArrowButtonProps:d,maxDate:f,minDate:h,strictCompareDates:m,onMonthChange:v,onYearChange:y,renderDay:b,dateRangeIcon:k,timeIcon:T,rightArrowIcon:x,rightArrowButtonProps:O,shouldDisableDate:S,loadingIndicator:j})))}}ho.defaultProps={keyboardIcon:(0,t.createElement)((function(e){return n().createElement(de(),C({},e),n().createElement("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),n().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null)};var go=C({},er,{openTo:"date",views:["year","date"]});function vo(e){var t=Vn();return{getDefaultFormat:function(){return function(e,t){return Kn(e)?t.yearFormat:Zn(e)?t.yearMonthFormat:t.dateFormat}(e.views,t)}}}var yo=fo({useOptions:vo,DefaultToolbarComponent:Qn}),bo=mo({useOptions:vo,DefaultToolbarComponent:Qn});yo.defaultProps=go,bo.defaultProps=go;var wo=(0,o.makeStyles)({toolbarLandscape:{flexWrap:"wrap"},toolbarAmpmLeftPadding:{paddingLeft:50},separator:{margin:"0 4px 0 2px",cursor:"default"},hourMinuteLabel:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},hourMinuteLabelLandscape:{marginTop:"auto"},hourMinuteLabelReverse:{flexDirection:"row-reverse"},ampmSelection:{marginLeft:20,marginRight:-20,display:"flex",flexDirection:"column"},ampmLandscape:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},ampmSelectionWithSeconds:{marginLeft:15,marginRight:10},ampmLabel:{fontSize:18}},{name:"MuiPickersTimePickerToolbar"});function Eo(e,n,r){var o=Vn();return{meridiemMode:Br(e,o),handleMeridiemChange:(0,t.useCallback)((function(t){var i=Hr(e,t,Boolean(n),o);r(i,!1)}),[n,e,r,o])}}var xo=function(e){var n,r,i,a=e.date,s=e.views,l=e.ampm,u=e.openView,c=e.onChange,p=e.isLandscape,d=e.setOpenView,f=Vn(),h=(0,o.useTheme)(),m=wo(),g=Eo(a,l,c),v=g.meridiemMode,y=g.handleMeridiemChange,b=p?"h3":"h2";return(0,t.createElement)(Yn,{isLandscape:p,className:T((n={},n[m.toolbarLandscape]=p,n[m.toolbarAmpmLeftPadding]=l&&!p,n))},(0,t.createElement)("div",{className:T(m.hourMinuteLabel,(r={},r[m.hourMinuteLabelLandscape]=p,r[m.hourMinuteLabelReverse]="rtl"===h.direction,r))},$n(s,"hours")&&(0,t.createElement)(Gn,{variant:b,onClick:function(){return d(Ir.HOURS)},selected:u===Ir.HOURS,label:f.getHourText(a,Boolean(l))}),$n(s,["hours","minutes"])&&(0,t.createElement)(Bn,{label:":",variant:b,selected:!1,className:m.separator}),$n(s,"minutes")&&(0,t.createElement)(Gn,{variant:b,onClick:function(){return d(Ir.MINUTES)},selected:u===Ir.MINUTES,label:f.getMinuteText(a)}),$n(s,["minutes","seconds"])&&(0,t.createElement)(Bn,{variant:"h2",label:":",selected:!1,className:m.separator}),$n(s,"seconds")&&(0,t.createElement)(Gn,{variant:"h2",onClick:function(){return d(Ir.SECONDS)},selected:u===Ir.SECONDS,label:f.getSecondText(a)})),l&&(0,t.createElement)("div",{className:T(m.ampmSelection,(i={},i[m.ampmLandscape]=p,i[m.ampmSelectionWithSeconds]=$n(s,"seconds"),i))},(0,t.createElement)(Gn,{disableRipple:!0,variant:"subtitle1",selected:"am"===v,typographyClassName:m.ampmLabel,label:f.getMeridiemText("am"),onClick:function(){return y("am")}}),(0,t.createElement)(Gn,{disableRipple:!0,variant:"subtitle1",selected:"pm"===v,typographyClassName:m.ampmLabel,label:f.getMeridiemText("pm"),onClick:function(){return y("pm")}})))},Oo=C({},Jn,{openTo:"hours",views:["hours","minutes"]});function So(e){var t=Vn();return{getDefaultFormat:function(){return uo(e.format,e.ampm,{"12h":t.time12hFormat,"24h":t.time24hFormat})}}}var Co=fo({useOptions:So,DefaultToolbarComponent:xo}),_o=mo({useOptions:So,DefaultToolbarComponent:xo,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Co.defaultProps=Oo,_o.defaultProps=Oo;var ko=function(e){return"date"===e||"year"===e?"date":"time"},To=(0,o.makeStyles)((function(e){var t="light"===e.palette.type?e.palette.primary.main:e.palette.background.default;return{tabs:{color:e.palette.getContrastText(t),backgroundColor:t}}}),{name:"MuiPickerDTTabs"}),Po=function(e){var n=e.view,r=e.onChange,i=e.dateRangeIcon,a=e.timeIcon,s=To(),l="light"===(0,o.useTheme)().palette.type?"secondary":"primary";return(0,t.createElement)(Rn(),null,(0,t.createElement)(Mn(),{variant:"fullWidth",value:ko(n),onChange:function(e,t){t!==ko(n)&&r("date"===t?"date":"hours")},className:s.tabs,indicatorColor:l},(0,t.createElement)(Ln(),{value:"date",icon:(0,t.createElement)(t.Fragment,null,i)}),(0,t.createElement)(Ln(),{value:"time",icon:(0,t.createElement)(t.Fragment,null,a)})))};Po.defaultProps={dateRangeIcon:(0,t.createElement)((function(e){return n().createElement(de(),C({},e),n().createElement("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),n().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null),timeIcon:(0,t.createElement)((function(e){return n().createElement(de(),C({},e),n().createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),n().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),n().createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}))}),null)};var Ao=(0,o.makeStyles)((function(e){return{toolbar:{paddingLeft:16,paddingRight:16,justifyContent:"space-around"},separator:{margin:"0 4px 0 2px",cursor:"default"}}}),{name:"MuiPickerDTToolbar"}),Do=function(e){var n=e.date,r=e.openView,i=e.setOpenView,a=e.ampm,s=e.hideTabs,l=e.dateRangeIcon,u=e.timeIcon,c=e.onChange,p=Vn(),d=Ao(),f=!s&&"undefined"!=typeof window&&window.innerHeight>667,h=Eo(n,a,c),m=h.meridiemMode,g=h.handleMeridiemChange,v="rtl"===(0,o.useTheme)().direction;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Yn,{isLandscape:!1,className:d.toolbar},(0,t.createElement)(vn,{container:!0,justify:"center",wrap:"nowrap"},(0,t.createElement)(vn,{item:!0,container:!0,xs:5,justify:"flex-start",direction:"column"},(0,t.createElement)("div",null,(0,t.createElement)(Gn,{variant:"subtitle1",onClick:function(){return i("year")},selected:"year"===r,label:p.getYearText(n)})),(0,t.createElement)("div",null,(0,t.createElement)(Gn,{variant:"h4",onClick:function(){return i("date")},selected:"date"===r,label:p.getDateTimePickerHeaderText(n)}))),(0,t.createElement)(vn,{item:!0,container:!0,xs:6,justify:"center",alignItems:"flex-end",direction:v?"row-reverse":"row"},(0,t.createElement)(Gn,{variant:"h3",onClick:function(){return i("hours")},selected:"hours"===r,label:p.getHourText(n,a)}),(0,t.createElement)(Bn,{variant:"h3",label:":",className:d.separator}),(0,t.createElement)(Gn,{variant:"h3",onClick:function(){return i("minutes")},selected:"minutes"===r,label:p.getMinuteText(n)})),a&&(0,t.createElement)(vn,{item:!0,container:!0,xs:1,direction:"column",justify:"flex-end"},(0,t.createElement)(Gn,{variant:"subtitle1",selected:"am"===m,label:p.getMeridiemText("am"),onClick:function(){return g("am")}}),(0,t.createElement)(Gn,{variant:"subtitle1",selected:"pm"===m,label:p.getMeridiemText("pm"),onClick:function(){return g("pm")}})))),f&&(0,t.createElement)(Po,{dateRangeIcon:l,timeIcon:u,view:r,onChange:i}))},jo=C({},tr,{wider:!0,orientation:"portrait",openTo:"date",views:["year","date","hours","minutes"]});function Lo(e){var t=Vn();if("portrait"!==e.orientation)throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return{getDefaultFormat:function(){return uo(e.format,e.ampm,{"12h":t.dateTime12hFormat,"24h":t.dateTime24hFormat})}}}var Io=fo({useOptions:Lo,DefaultToolbarComponent:Do}),Mo=mo({useOptions:Lo,DefaultToolbarComponent:Do,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Io.defaultProps=jo,Mo.defaultProps=jo;var No=f(3192),Ro=f.n(No),Fo=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,r=t.instance,o=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=r||o||Ro(),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),r=0,o=t,i=[];o.isBefore(n);){var a=Math.floor(r/7);i[a]=i[a]||[],i[a].push(o),o=o.clone().add(1,"day"),r+=1}return i},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[],i=n;i.isBefore(r);)o.push(i),i=i.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}();const zo=Fo,Vo=window["material-ui"].LinearProgress;var Uo=f.n(Vo);const Bo=(0,o.makeStyles)({loadingOverlay:{position:"absolute",width:"100%",height:"100%",top:0,left:0,opacity:.37,zIndex:10,backgroundColor:"#fff"},transparent:{backgroundColor:"transparent"},relativePosition:{"&$loadingOverlay":{position:"relative"}}}),Ho=e=>{let{transparent:t=!1,relativePosition:r=!1,className:o}=e;const i=Bo();return n().createElement(n().Fragment,null,n().createElement("div",{className:l()(i.loadingOverlay,o,{[i.transparent]:t,[i.relativePosition]:r})},n().createElement(Uo(),{color:"secondary"})))},Wo=(0,o.makeStyles)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},graphWrapper:{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1},graphContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}})));var Go=f(2396);function qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yo=e=>e.target.value,$o=e=>e.target.checked,Ko=()=>{},Zo=()=>null,Xo=(e,t)=>(0,u.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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qo(e,t,n[t])}))}return e}({},n,{[r]:l()(e[r],t[r])})),{}),Qo=new Promise((()=>{})),Jo=function(){let{cancelPrevious:e=!0,cancelOnUnmount:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,t.useRef)(Ko),o=()=>r.current();return(0,t.useEffect)((()=>()=>{n&&o()}),[]),(0,t.useCallback)((t=>(e&&o(),new Promise(((e,n)=>{r.current=()=>n("canceled"),t.then(e,n)})).catch((function(e){if("canceled"===e)return Qo;throw e})))),[])};function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ti=(e,t)=>{const n=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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ei(e,t,n[t])}))}return e}({},e,{[null==t?void 0:t.uri]:t}),r=Object.keys(n);return r.length>50&&delete n[r[0]],n},ni=n().createContext({graphLoading:!1,data:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{}});ni.displayName="GraphStateContext";var ri=f(6929),oi=f.n(ri),ii=f(1531),ai=f.n(ii);const si=e=>{let{entity:t,avatarClassName:o,imageClassName:i}=e;const a=(0,r.useSelector)(y().selectors.getMetadata),s=(0,r.useSelector)(y().selectors.getAbsoluteImagePath)||"",u=(0,Go.getEntityImage)(a,s,t),c=(0,Go.getAbsoluteImageUrl)(s,(0,Go.getEntityTypeImage)(a,t.type)),p=e=>{e.target.onError=null,e.target.src=(0,Go.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 n().createElement(ai(),{className:l()(o,i),src:u,imgProps:{onError:p}},n().createElement("img",{className:i,src:c,alt:"fallback entity avatar",onError:p}))},li=(0,o.makeStyles)({container:{display:"flex",flexShrink:0,marginLeft:"10px",alignItems:"center"},value:{marginLeft:"4px",minWidth:"20px",textAlign:"center"}}),ui=(0,o.makeStyles)({dqiq:{width:"14px",height:"14px",lineHeight:"14px",background:"#e6605e",color:"#fff",fontSize:"10px",fontWeight:100,marginLeft:"2px",marginRight:"1px",borderRadius:"2px",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,textIndent:0}}),ci=()=>{const e=ui();return n().createElement(n().Fragment,null,n().createElement("span",null,"DQ"),n().createElement("span",{className:e.dqiq},"IQ"))},pi=["analyticsAttributes/DQ/analyticsAttributes/score","analyticsAttributes/DQ"],di=["analyticsAttributes/IQ/analyticsAttributes/score","analyticsAttributes/IQ"],fi=e=>{let{label:t="",attrTypeUri:r=""}=e;const o=r.indexOf("analyticsAttributes/"),i=r.substr(o),a=(0,u.includes)(i,pi),s=(0,u.includes)(i,di);return(0,u.cond)([[(0,u.always)(a),(0,u.always)(n().createElement(ci,null))],[(0,u.always)(s),(0,u.always)(p().text("Rank"))],[u.T,(0,u.always)(t)]])()};fi.propTypes={label:a().string,attrTypeUri:a().string};const hi=fi,mi=e=>{let{label:t,value:r,uri:o,rangeColorsConfig:i,className:a}=e;const s=li();return n().createElement("div",{className:l()(s.container,a),key:o},n().createElement(hi,{attrTypeUri:o,label:t}),n().createElement("span",{className:s.value,style:{color:(0,Go.getScoreColor)(o,r,i)}},r))};mi.propTypes={label:a().string,value:a().oneOfType([a().string,a().number]),uri:a().string,rangeColorsConfig:a().object,className:a().string};const gi=mi,vi=(0,o.makeStyles)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),yi=e=>{let{entity:t,className:o,size:i="small"}=e;const a=vi(),s=(0,r.useSelector)(y().selectors.getMetadata),u=t.type,c=(0,Go.getEntityType)(s,u)||{},p=(0,Go.getPropWithInheritance)(s,c,"typeColor")||Go.theme.palette.primary.main;return n().createElement(A(),{style:{backgroundColor:p,color:Go.utils.Colors.getColor(p)?"#FFFFFF":"#212121"},className:l()(a[`entityType-${i}`],o),component:"div"},(0,Go.getEntityTypeLabel)(s,t))},bi=(0,o.makeStyles)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}},scores:{display:"flex",flexGrow:1,justifyContent:"flex-end",paddingRight:"20px"}})));function wi(){return wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wi.apply(this,arguments)}const Ei=e=>{let{className:o,entity:i,scoresToShow:a,rangeColorsConfig:s,children:c,classes:d}=e;const f=bi({classes:d}),h=(0,r.useSelector)(y().selectors.getMetadata),m=(0,t.useCallback)((()=>{navigator.clipboard.writeText((0,Go.getEntityId)(i))}),[i]);if((0,u.isNil)(i))return null;const g=(0,Go.getLabel)(i.label),v=i.secondaryLabel,b=(0,Go.getBusinessCardAttributesText)(h,i),w=(0,Go.isActiveObject)(i),E=(0,Go.getScores)(h,i,a),x=i.uri,O=(0,Go.getEntityId)(i);return n().createElement("div",{className:l()(f.profileBandWrapper,o)},n().createElement("div",{className:l()(f.profileBand,{[f.inactive]:!w}),"data-entity-uri":x},n().createElement(si,{key:i.uri,entity:i,avatarClassName:f.profileIcon,imageClassName:f.imageProfileIcon}),n().createElement("div",{className:f.profileInfo},n().createElement("div",null,n().createElement(A(),{variant:"h6",className:f.label},g),v&&n().createElement(A(),{variant:"subtitle2",className:f.secondaryLabel},v),b&&n().createElement(A(),{variant:"subtitle1",className:f.businessCard},b)),n().createElement("div",{className:f.specialInfo},n().createElement("div",{className:f.entityType},n().createElement(yi,{entity:i,size:"medium",className:f.badge}),E.length>0&&n().createElement("div",{className:f.scores},E.map((e=>n().createElement(gi,wi({key:e.uri},e,{rangeColorsConfig:s}))))),!(0,Go.isTempUri)(x)&&n().createElement(oi(),{title:p().text("Copy to clipboard")},n().createElement(A(),{display:"inline",variant:"body2",className:f.entityId,onClick:m},p().text("Entity ID"),": ",O))))),c&&n().createElement("div",null,c)))};Ei.propTypes={className:a().string,entity:a().object,scoresToShow:a().arrayOf(a().string),rangeColorsConfig:a().object,children:a().node,classes:a().object};const xi=Ei,Oi="commentsContainerVisibilityArea",Si=(0,o.makeStyles)((()=>({root:{display:"flex",alignItems:"start"},addButton:{visibility:"hidden","&$showAlways":{visibility:"visible"},".commentsContainerVisibilityArea:hover &":{visibility:"visible"}},showAlways:{}}))),Ci=(e,n)=>{const r=(0,t.useRef)(!1);(0,t.useEffect)((()=>{r.current?e():r.current=!0}),n)},_i=()=>{},ki=n().createContext({comments:[],commentsMap:null,currentComment:null,getComment:_i,getComments:()=>new Promise(_i),getCommentsCount:_i,createComment:()=>new Promise(_i),editComment:()=>new Promise(_i),createReply:()=>new Promise(_i),resolveThread:_i,reOpenThread:_i,clearCurrentComment:_i,deleteComment:_i,sending:!1,loading:!1,pageToken:null});ki.displayName="CollaborationContext";const Ti=n().createContext([]);function Pi(){return Pi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pi.apply(this,arguments)}Ti.displayName="RelatedObjectUrisContext";const Ai=e=>n().createElement("svg",Pi({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),n().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"})),Di=(0,o.makeStyles)((()=>({root:{position:"relative",height:"18px",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"4px",cursor:"pointer"},icon:{"&:hover":{fillOpacity:.7}},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"}}))),ji=n().forwardRef(((e,t)=>{let{children:r,onClick:o}=e;const i=Di();return n().createElement(oi(),{title:p().text("Show comment")},n().createElement("div",{ref:t,className:i.root,onClick:o},n().createElement(Ai,{className:i.icon}),n().createElement("div",{className:i.childrenWrapper},r)))}));ji.displayName="CommentButton";const Li=ji;function Ii(){return Ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(this,arguments)}const Mi=e=>n().createElement("svg",Ii({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),n().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"})),Ni=e=>{let{className:t,onClick:r}=e;const o=Di();return n().createElement(oi(),{title:p().text("Add comment")},n().createElement("div",{className:l()(o.root,t),onClick:r},n().createElement(Mi,{className:o.icon})))},Ri=window["material-ui"].Box;var Fi=f.n(Ri),zi=f(7291);const Vi=window["material-ui"].Link;var Ui=f.n(Vi),Bi=f(3054);const Hi=window["material-ui"].Menu;var Wi=f.n(Hi);const Gi=window["material-ui"].MenuItem;var qi=f.n(Gi);const Yi={tooltipTitle:a().node,tooltipPlacement:a().string,showForDisabled:a().bool};const $i=(0,o.makeStyles)((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}}))),Ki=e=>{const r=(0,t.forwardRef)(((t,r)=>{let{tooltipTitle:o,tooltipPlacement:i,showForDisabled:a=!1}=t,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["tooltipTitle","tooltipPlacement","showForDisabled"]);const l=$i();return o?n().createElement(oi(),{ref:r,title:o,placement:i||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:l.tooltip}},(t=>t?n().createElement("span",{className:l.wrapper},n().createElement(e,s)):n().createElement(e,s))(a)):n().createElement(e,s)}));return r.displayName="WithTooltip",r.propTypes=Yi,r},Zi=(0,o.makeStyles)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,o.fade)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,o.fade)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),Xi=Ki(qi()),Qi=(0,t.forwardRef)(((e,t)=>{let{item:r,onMenuClose:o=u.identity}=e;const i=Zi(),{disabled:a,text:s,tooltip:l,onClick:c,id:p=""}=r;return n().createElement(Xi,{tooltipTitle:l,showForDisabled:!0,classes:{root:i.menuItem},onClick:e=>{o(e),c(e)},disabled:a,ref:t,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${p}`},n().createElement(A(),{classes:{root:i.menuText}},s))}));Qi.displayName="MenuItemRenderer";const Ji=Qi;function ea(){return ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ea.apply(this,arguments)}function ta(e){let{className:r,menuId:o,buttonComponent:i=j(),buttonContent:a,menuItems:s=[],buttonProps:c={},popoverProps:p={},onMenuOpen:d=u.identity,onMenuClose:f=u.identity,MenuItemRenderer:h=Ji}=e;const m=i,g=Zi(),v=(0,t.useRef)(),[y,b]=(0,t.useState)(!1);Ci((()=>{y?d():f()}),[y]);const w=(0,t.useCallback)((e=>{null==e||e.stopPropagation(),b((e=>!e))}),[]);return n().createElement(n().Fragment,null,n().createElement(m,ea({ref:v,className:l()(g.buttonRoot,{[g.selected]:y},r),onClick:w,"aria-pressed":y,"aria-controls":y?o:void 0,"aria-haspopup":"true"},c),a),n().createElement(Wi(),ea({id:o,variant:"menu",open:y,autoFocus:!1,classes:{paper:g.paper},anchorEl:v.current,onClose:w,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:y}},p),s.map(((e,t)=>n().createElement(h,{item:e,key:t,onMenuClose:w})))))}ta.displayName="DropDownMenuButton";const na=ta;function ra(){return ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ra.apply(this,arguments)}const oa={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},ia=(0,t.forwardRef)(((e,t)=>{const{classes:r,className:o,onClick:i,icon:a,size:s=oa.XS,iconClassName:l}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["classes","className","onClick","icon","size","iconClassName"]);return n().createElement(N(),ra({ref:t,classes:{root:`${r[`root${s}`]} ${r.rootAll}`,disabled:r.disabled},onClick:i,className:o},u),a&&n().createElement(a,{classes:{root:r[`icon${s}`]},className:l}))}));ia.displayName="SmallIconButton";const aa=(0,o.withStyles)((()=>({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}})))(ia),sa=Ki(aa),la=n().createContext({});la.displayName="EntitiesMapContext";const ua=n().createContext(null);ua.displayName="ViewIdContext";const ca=(0,t.forwardRef)(((e,o)=>{let{value:i,children:a,className:s}=e;const l=(0,r.useDispatch)(),u=(0,t.useContext)(ua),c=(0,r.useSelector)(y().selectors.getUIPath),p=(0,t.useCallback)((()=>{l(v.ui.actions.openEntity({uri:i,viewId:u}))}),[u,i,l]);return n().createElement("a",{ref:o,href:(d=i,(0,Go.getEntityLink)({uiPath:c,uri:d})),onClick:e=>{p(),e.stopPropagation(),e.preventDefault()},className:s},a);var d}));ca.displayName="EntityUriLink";const pa=ca,da=(e,t)=>{const n=e.relatedObjectUris.indexOf(t);if(n>=0)return e.relatedObjectUris[1-n]},fa=e=>`${p().date(e,"LT")} ${p().date(e,"LL")}`,ha=(0,o.makeStyles)((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"}}))),ma=e=>{let{comment:o,className:i}=e;const a=ha(),s=(0,r.useSelector)(y().selectors.getEntity),u=(0,r.useSelector)(y().selectors.getMetadata),c=(0,t.useContext)(la);return n().createElement(Fi(),{className:i},(()=>{switch(o.objectType){case Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE:{const e=(0,Go.getAttributeTypeUriByValueUri)(o.objectId,s.type),t=(0,Go.findAttributeTypeByUri)(u,e);return n().createElement(n().Fragment,null,n().createElement(A(),{className:a.title},p().text("Selected attribute:")),n().createElement(A(),{className:a.label},null==t?void 0:t.label))}case Go.CollaborationObjectTypes.ENTITY:return n().createElement(n().Fragment,null,n().createElement(A(),{className:a.title},p().text("Selected profile:")),n().createElement(pa,{className:l()(a.label,a.link),value:(0,Go.getEntityUriForLink)(s)},(0,Go.getLabel)(s.label)));case Go.CollaborationObjectTypes.RELATION:{var e;const t=da(o,s.uri),r={uri:t,label:null===(e=c[t])||void 0===e?void 0:e.label};return n().createElement(n().Fragment,null,n().createElement(A(),{className:a.title},p().text("Selected relation:")),n().createElement(A(),{className:a.label},n().createElement(pa,{className:a.link,value:(0,Go.getEntityUriForLink)(s)},(0,Go.getLabel)(s.label)),t&&n().createElement(n().Fragment,null,` ${p().text("to")} `,n().createElement(pa,{className:a.link,value:(0,Go.getEntityUriForLink)(r)},r.label?(0,Go.getLabel)(r.label):(0,Go.getEntityId)(r)))))}case Go.CollaborationObjectTypes.POTENTIAL_MATCH:{var t;const e=da(o,s.uri),r={uri:e,label:null===(t=c[e])||void 0===t?void 0:t.label};return n().createElement(n().Fragment,null,n().createElement(A(),{className:a.title},p().text("Selected potential match:")),n().createElement(A(),{className:a.label},n().createElement(pa,{className:a.link,value:(0,Go.getEntityUriForLink)(s)},(0,Go.getLabel)(s.label)),e&&n().createElement(n().Fragment,null,` ${p().text("and")} `,n().createElement(pa,{className:a.link,value:(0,Go.getEntityUriForLink)(r)},r.label?(0,Go.getLabel)(r.label):(0,Go.getEntityId)(r)))))}default:return null}})())},ga=n().createContext([]);ga.displayName="UsersContext";const va=(0,o.makeStyles)((e=>({root:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",wordBreak:"break-word"}}))),ya=e=>{let{comment:r,className:o}=e;const i=va(),a=(0,t.useContext)(ga);return n().createElement(A(),{className:l()(i.root,o)},function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"+";const o=[];let i="",a=!1;for(let s=0;s<=e.length;s++){const l=e[s],u=e[s+1],c=s===e.length-1;i+=l,l===r&&0===s&&(a=!0),a&&t.includes(i.slice(r.length))&&(a=!1,o.push(n(i)),i=""),u===r&&(a=!0,o.push(i),i=""),c&&o.push(i)}return o}(r.content,r.namedUsers,(e=>{const t=a.find((t=>t.username===e.slice(1)));return t?n().createElement(Ui(),{href:`mailto:${t.email}`},e):e})).map(((e,r)=>n().createElement(t.Fragment,{key:r},e))))},ba=(0,o.makeStyles)((e=>({root:{width:"32px",height:"32px",fontSize:"12px",color:e.palette.text.secondary,backgroundColor:"rgba(144, 164, 174, 0.2)"}})));function wa(){return wa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wa.apply(this,arguments)}const Ea=e=>{let{className:t,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","children"]);const i=ba();return n().createElement(ai(),wa({},o,{className:l()(i.root,t)}),r.split(".").map((e=>e[0].toUpperCase())).join(""))},xa=(0,o.makeStyles)((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"},message:{marginTop:"12px"},dropdownMenu:{zIndex:"3000 !important"},buttons:{marginTop:"15px",marginBottom:"12px",display:"flex","& $button + $button":{marginLeft:"10px"}},button:{fontSize:"13px",lineHeight:"15px"}}))),Oa=e=>{let{onReply:o,className:i,uri:a,comment:s,onStartEditing:l}=e;const u=xa(),c=(0,r.useSelector)(y().selectors.getUserName),d=s.createdBy===c,{resolveThread:f,reOpenThread:h,sending:m,deleteComment:g}=(0,t.useContext)(ki),v=(0,t.useMemo)((()=>[{text:p().text("Edit"),onClick:l},{text:p().text("Delete"),onClick:()=>g({uri:a,commentId:s.commentId})}]),[l,g,a,s]);return n().createElement(Fi(),{className:i},n().createElement(Fi(),{className:u.header},n().createElement(Ea,{classes:{root:u.avatar}},s.createdBy),n().createElement(Fi(),{width:"100%"},n().createElement(A(),{className:u.username},s.createdBy)),n().createElement(A(),{className:u.createdAt},fa(s.createdTime)),d&&n().createElement(na,{buttonComponent:sa,buttonProps:{icon:Bi.Z,tooltipTitle:p().text("Open menu")},popoverProps:{PopoverClasses:{root:u.dropdownMenu}},menuItems:v,menuId:"collaboration-comment-menu"})),n().createElement(Fi(),{className:u.body},n().createElement(ma,{comment:s,className:u.commentTarget}),n().createElement(ya,{comment:s,className:u.message}),n().createElement(Fi(),{className:u.buttons},n().createElement(Ui(),{className:u.button,onClick:o,component:"button"},p().text("Reply")),"open"===s.status&&n().createElement(Ui(),{disabled:m,className:u.button,onClick:()=>{f({commentId:s.commentId,uri:a})},component:"button"},p().text("Resolve")),"resolved"===s.status&&n().createElement(Ui(),{disabled:m,className:u.button,onClick:()=>{h({commentId:s.commentId,uri:a})},component:"button"},p().text("Re-open")))))},Sa=(0,o.makeStyles)((e=>({root:{display:"flex",padding:"8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},avatar:{marginRight:"8px"},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"}}))),Ca=e=>{let{className:t,reply:r}=e;const{createdBy:o,action:i,createdTime:a}=r,s=Sa();return n().createElement(Fi(),{className:l()(s.root,t)},n().createElement(Ea,{classes:{root:s.avatar}},o),n().createElement(Fi(),null,n().createElement(Fi(),{className:s.header},n().createElement(A(),{className:s.username},o),"resolve"===i&&n().createElement(A(),{className:s.marked},p().text("Marked as resolved")),"reopen"===i&&n().createElement(A(),{className:s.marked},p().text("Re-opened"))),"resolve"!==i&&n().createElement(ya,{className:s.message,comment:r}),n().createElement(A(),{className:s.createdAt},fa(a))))};function _a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ka(){return ka=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ka.apply(this,arguments)}function Ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Aa(e,t,n){return t&&Pa(e.prototype,t),n&&Pa(e,n),e}function Da(e){return Da="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},Da(e)}function ja(e){return ja="function"==typeof Symbol&&"symbol"===Da(Symbol.iterator)?function(e){return Da(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Da(e)},ja(e)}function La(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ia(e,t){return!t||"object"!==ja(t)&&"function"!=typeof t?La(e):t}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ma(e)}function Na(e,t){return Na=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Na(e,t)}function Ra(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Na(e,t)}function Fa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var za=f(7677),Va=f.n(za);var Ua=f(1260),Ba=f.n(Ua),Ha=f(5182),Wa=f.n(Ha),Ga=function(e){return e===Object(e)?Object.keys(e):[]},qa=function(e){return e===Object(e)?Object.values(e):[]};function Ya(e,t){var n=Object.assign({},e);return Za(e)&&Za(t)&&Ga(t).forEach((function(r){Za(t[r])&&r in e?n[r]=Ya(e[r],t[r]):Object.assign(n,Ba()({},r,t[r]))})),n}var $a=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 Ya(e,t)}),e)},Ka=function(e,t){var n=Object.assign({},e);if(t)for(var r=0;r<t.length;r++)delete n[t[r]];return n},Za=function(e){return!(e!==Object(e)||e instanceof Date||Array.isArray(e))},Xa=function(e){return(e||[]).filter(Boolean)},Qa=function(e){return"&"===e[0]},Ja=function(e){return!Qa(e)},es=function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},ts=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Ga(e),r={},o=0,i=n.length;o<i;o+=1){var a=n[o],s="[object Object]"!==Object.prototype.toString.call(e[a])||":"===a[0]||"@"===a[0]||t.indexOf(a)>=0;s&&(r[a]=e[a])}return r},ns=function(e,t){for(var n=t.map(es),r=Ga(e),o={},i=0,a=r.length;i<a;i+=1){var s=r[i];(t.indexOf(s)>=0||n.indexOf(es(s))>=0)&&(o[s]=e[s])}return o},rs=function e(t,n){for(var r=$a.apply(void 0,[{},Ka(t,n)].concat(Wa()(qa(ns(t,n))))),o=Ga(r).filter(Qa),i=0,a=o.length;i<a;i+=1){var s=o[i],l=e(r[s],n);n.indexOf(s)>=0?(delete r[s],r=$a({},r,l)):r[s]=l}return r};function os(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 is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?os(Object(n),!0).forEach((function(t){Ba()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var as=["animationName"];const ss=function(e){var t=e.style,n=e.className;return is(is({},t?{style:ts(t,as)}:{}),n?{className:n}:{})};var ls=(0,t.createContext)(ss);ls.Provider;const us=function(e){if(!e)return[];if("string"==typeof e)return[e];if(!Array.isArray(e)){var t=e;return Ga(e).reduce((function(e,n){return e.concat(t[n]?[n]:[])}),[])}return e};var cs={};const ps=function(e){return function(t,n){var r,o=n||cs;e.memoize=e.memoize||new WeakMap,e.memoize.has(o)?r=e.memoize.get(o):(r={},e.memoize.set(o,r));var i=us(t).join(" ");return i in r?r[i]:r[i]=e(t||[],n)}};function ds(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 fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){Ba()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hs=function(e){var t=e&&Ga(e)[0];return t&&t.split("__")[0].split("--")[0]},ms=function(e,t,n){if(e){var r=e.split(" ")[0],o=[].concat(Wa()(0===t.length?n.map((function(e){return"".concat(r,"--").concat(e.substring(1))})):[]),Wa()(t.map((function(e){return"".concat(r,"__").concat(e)}))));return 0===t.length?[e].concat(Wa()(o)):o}};const gs=function e(t){var n=t.style,r=t.className,o=t.classNames,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ss,a=r||hs(o)||(null==n?void 0:n.className),s="function"==typeof n?n:ps((function(t,r){var s=us(t);Va()(Array.isArray(s),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),Va()(!r||Za(r),"Optional second parameter must be a plain object.");var l=s.filter(Qa),u=s.filter(Ja),c=u.length>0?function(e){return qa(ns(e,u))}:function(e){return[e]},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(rs(e,l))},d=ms(a,u,l);return e(fs(fs(fs({},(n||r)&&{style:$a.apply(void 0,[{}].concat(Wa()(p(r)),Wa()(p(n))))}),d&&{className:d.join(" ")}),o&&{classNames:o}),i)})),l=fs({},"function"==typeof n?n:{style:n}),u=Wa()(new Set([].concat(Wa()(l.className?l.className.split(" "):[]),Wa()(a?a.split(" "):[])))),c=o?Xa(u.map((function(e){return o[e]}))):u,p=i(fs(fs({},l),c.length>0?{className:c.join(" ")}:{}));return Object.assign(s,p),s},vs=function(e,n,r){var o=n.style,i=n.className,a=n.classNames,s=(0,t.useContext)(ls);return(0,t.useMemo)((function(){return gs({style:o,className:i,classNames:a},s)}),[o,i,a,s])(r,e)};function ys(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 bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach((function(t){Ba()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ws=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},Es="__id__",xs="__display__",Os=function(e,t){Va()("id"===t||"display"===t,'Second arg must be either "id" or "display", got: "'.concat(t,'"'));var n=e.indexOf(xs),r=e.indexOf(Es);return n<0&&(n=null),r<0&&(r=null),Va()(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},Ss=function(e){var t=/^\/(.+)\/(\w+)?$/;return new RegExp(e.map((function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t.exec(e.toString()),3),r=n[1],o=n[2];return Va()(!o,"RegExp flags are not supported. Change /".concat(r,"/").concat(o," into /").concat(r,"/")),"(".concat(r,")")})).join("|"),"g")},Cs=function(e){var t=0;return e.indexOf("__id__")>=0&&t++,e.indexOf("__display__")>=0&&t++,t},_s=function(){},ks=function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_s,i=Ss(t.map((function(e){return e.regex}))),a=2,s=t.map((function(e){var t=e.markup,n=a;return a+=Cs(t)+1,n})),l=0,u=0;null!==(r=i.exec(e));){var c=s.find((function(e){return!!r[e]})),p=s.indexOf(c),d=t[p],f=d.markup,h=d.displayTransform,m=c+Os(f,"id"),g=c+Os(f,"display"),v=r[m],y=h(v,r[g]),b=e.substring(l,r.index);o(b,l,u),u+=b.length,n(r[0],r.index,u,v,y,p,l),u+=y.length,l=i.lastIndex}l<e.length&&o(e.substring(l),l,u)},Ts=function(e,t){var n="";return ks(e,t,(function(e,t,r,o,i){n+=i}),(function(e){n+=e})),n},Ps=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";if("number"!=typeof n)return n;var i=function(e,t,o){void 0===r&&o+e.length>=n&&(r=t+n-o)},a=function(e,t,i,a,s,l,u){void 0===r&&i+s.length>n&&(r="NULL"===o?null:t+("END"===o?e.length:0))};return ks(e,t,a,i),void 0===r?e.length:r},As=function(e,t,n,r){return e.substring(0,t)+r+e.substring(n)},Ds=function(e,t){var n=[];return ks(e,t,(function(e,t,r,o,i,a,s){n.push({id:o,display:i,childIndex:a,index:t,plainTextIndex:r})})),n},js=function(e,t){return"".concat(e,"-").concat(t)},Ls=function(e){return Object.values(e).reduce((function(e,t){return e+t.results.length}),0)},Is=function(e){var t=ws(e),n=e[e.indexOf(xs)+xs.length],r=e[e.indexOf(Es)+Es.length];return new RegExp(t.replace(xs,"([^".concat(ws(n||""),"]+?)")).replace(Es,"([^".concat(ws(r||""),"]+?)")))},Ms=function(e){return t.Children.toArray(e).map((function(e){var t=e.props,n=t.markup,r=t.regex,o=t.displayTransform;return{markup:n,regex:r?Ns(r,n):Is(n),displayTransform:o||function(e,t){return t||e}}}))},Ns=function(e,t){var n=new RegExp(e.toString()+"|").exec("").length-1,r=Cs(t);return Va()(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},Rs=[{base:"A",letters:/(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\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:/(Ꜳ|[\uA732])/g},{base:"AE",letters:/(Æ|Ǽ|Ǣ|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(Ꜵ|[\uA734])/g},{base:"AU",letters:/(Ꜷ|[\uA736])/g},{base:"AV",letters:/(Ꜹ|Ꜻ|[\uA738\uA73A])/g},{base:"AY",letters:/(Ꜽ|[\uA73C])/g},{base:"B",letters:/(B|Ⓑ|B|Ḃ|Ḅ|Ḇ|Ƀ|Ƃ|Ɓ|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(C|Ⓒ|C|Ć|Ĉ|Ċ|Č|Ç|Ḉ|Ƈ|Ȼ|Ꜿ|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(D|Ⓓ|D|Ḋ|Ď|Ḍ|Ḑ|Ḓ|Ḏ|Đ|Ƌ|Ɗ|Ɖ|Ꝺ|Ð|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(DZ|DŽ|[\u01F1\u01C4])/g},{base:"Dz",letters:/(Dz|Dž|[\u01F2\u01C5])/g},{base:"E",letters:/(E|Ⓔ|E|È|É|Ê|Ề|Ế|Ễ|Ể|Ẽ|Ē|Ḕ|Ḗ|Ĕ|Ė|Ë|Ẻ|Ě|Ȅ|Ȇ|Ẹ|Ệ|Ȩ|Ḝ|Ę|Ḙ|Ḛ|Ɛ|Ǝ|[\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:/(F|Ⓕ|F|Ḟ|Ƒ|Ꝼ|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(G|Ⓖ|G|Ǵ|Ĝ|Ḡ|Ğ|Ġ|Ǧ|Ģ|Ǥ|Ɠ|Ꞡ|Ᵹ|Ꝿ|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(H|Ⓗ|H|Ĥ|Ḣ|Ḧ|Ȟ|Ḥ|Ḩ|Ḫ|Ħ|Ⱨ|Ⱶ|Ɥ|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(I|Ⓘ|I|Ì|Í|Î|Ĩ|Ī|Ĭ|İ|Ï|Ḯ|Ỉ|Ǐ|Ȉ|Ȋ|Ị|Į|Ḭ|Ɨ|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(J|Ⓙ|J|Ĵ|Ɉ|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(K|Ⓚ|K|Ḱ|Ǩ|Ḳ|Ķ|Ḵ|Ƙ|Ⱪ|Ꝁ|Ꝃ|Ꝅ|Ꞣ|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(L|Ⓛ|L|Ŀ|Ĺ|Ľ|Ḷ|Ḹ|Ļ|Ḽ|Ḻ|Ł|Ƚ|Ɫ|Ⱡ|Ꝉ|Ꝇ|Ꞁ|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(LJ|[\u01C7])/g},{base:"Lj",letters:/(Lj|[\u01C8])/g},{base:"M",letters:/(M|Ⓜ|M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(N|Ⓝ|N|Ǹ|Ń|Ñ|Ṅ|Ň|Ṇ|Ņ|Ṋ|Ṉ|Ƞ|Ɲ|Ꞑ|Ꞥ|Ŋ|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(NJ|[\u01CA])/g},{base:"Nj",letters:/(Nj|[\u01CB])/g},{base:"O",letters:/(O|Ⓞ|O|Ò|Ó|Ô|Ồ|Ố|Ỗ|Ổ|Õ|Ṍ|Ȭ|Ṏ|Ō|Ṑ|Ṓ|Ŏ|Ȯ|Ȱ|Ö|Ȫ|Ỏ|Ő|Ǒ|Ȍ|Ȏ|Ơ|Ờ|Ớ|Ỡ|Ở|Ợ|Ọ|Ộ|Ǫ|Ǭ|Ø|Ǿ|Ɔ|Ɵ|Ꝋ|Ꝍ|[\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:/(Œ|[\u0152])/g},{base:"OI",letters:/(Ƣ|[\u01A2])/g},{base:"OO",letters:/(Ꝏ|[\uA74E])/g},{base:"OU",letters:/(Ȣ|[\u0222])/g},{base:"P",letters:/(P|Ⓟ|P|Ṕ|Ṗ|Ƥ|Ᵽ|Ꝑ|Ꝓ|Ꝕ|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(Q|Ⓠ|Q|Ꝗ|Ꝙ|Ɋ|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(R|Ⓡ|R|Ŕ|Ṙ|Ř|Ȑ|Ȓ|Ṛ|Ṝ|Ŗ|Ṟ|Ɍ|Ɽ|Ꝛ|Ꞧ|Ꞃ|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(S|Ⓢ|S|ẞ|Ś|Ṥ|Ŝ|Ṡ|Š|Ṧ|Ṣ|Ṩ|Ș|Ş|Ȿ|Ꞩ|Ꞅ|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(T|Ⓣ|T|Ṫ|Ť|Ṭ|Ț|Ţ|Ṱ|Ṯ|Ŧ|Ƭ|Ʈ|Ⱦ|Ꞇ|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(Þ|[\u00DE])/g},{base:"TZ",letters:/(Ꜩ|[\uA728])/g},{base:"U",letters:/(U|Ⓤ|U|Ù|Ú|Û|Ũ|Ṹ|Ū|Ṻ|Ŭ|Ü|Ǜ|Ǘ|Ǖ|Ǚ|Ủ|Ů|Ű|Ǔ|Ȕ|Ȗ|Ư|Ừ|Ứ|Ữ|Ử|Ự|Ụ|Ṳ|Ų|Ṷ|Ṵ|Ʉ|[\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:/(V|Ⓥ|V|Ṽ|Ṿ|Ʋ|Ꝟ|Ʌ|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(Ꝡ|[\uA760])/g},{base:"W",letters:/(W|Ⓦ|W|Ẁ|Ẃ|Ŵ|Ẇ|Ẅ|Ẉ|Ⱳ|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(X|Ⓧ|X|Ẋ|Ẍ|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(Y|Ⓨ|Y|Ỳ|Ý|Ŷ|Ỹ|Ȳ|Ẏ|Ÿ|Ỷ|Ỵ|Ƴ|Ɏ|Ỿ|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(Z|Ⓩ|Z|Ź|Ẑ|Ż|Ž|Ẓ|Ẕ|Ƶ|Ȥ|Ɀ|Ⱬ|Ꝣ|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(a|ⓐ|a|ẚ|à|á|â|ầ|ấ|ẫ|ẩ|ã|ā|ă|ằ|ắ|ẵ|ẳ|ȧ|ǡ|ä|ǟ|ả|å|ǻ|ǎ|ȁ|ȃ|ạ|ậ|ặ|ḁ|ą|ⱥ|ɐ|[\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:/(ꜳ|[\uA733])/g},{base:"ae",letters:/(æ|ǽ|ǣ|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(ꜵ|[\uA735])/g},{base:"au",letters:/(ꜷ|[\uA737])/g},{base:"av",letters:/(ꜹ|ꜻ|[\uA739\uA73B])/g},{base:"ay",letters:/(ꜽ|[\uA73D])/g},{base:"b",letters:/(b|ⓑ|b|ḃ|ḅ|ḇ|ƀ|ƃ|ɓ|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(c|ⓒ|c|ć|ĉ|ċ|č|ç|ḉ|ƈ|ȼ|ꜿ|ↄ|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(d|ⓓ|d|ḋ|ď|ḍ|ḑ|ḓ|ḏ|đ|ƌ|ɖ|ɗ|ꝺ|ð|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(dz|dž|[\u01F3\u01C6])/g},{base:"e",letters:/(e|ⓔ|e|è|é|ê|ề|ế|ễ|ể|ẽ|ē|ḕ|ḗ|ĕ|ė|ë|ẻ|ě|ȅ|ȇ|ẹ|ệ|ȩ|ḝ|ę|ḙ|ḛ|ɇ|ɛ|ǝ|[\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:/(f|ⓕ|f|ḟ|ƒ|ꝼ|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(g|ⓖ|g|ǵ|ĝ|ḡ|ğ|ġ|ǧ|ģ|ǥ|ɠ|ꞡ|ᵹ|ꝿ|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(h|ⓗ|h|ĥ|ḣ|ḧ|ȟ|ḥ|ḩ|ḫ|ẖ|ħ|ⱨ|ⱶ|ɥ|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(ƕ|[\u0195])/g},{base:"i",letters:/(i|ⓘ|i|ì|í|î|ĩ|ī|ĭ|ï|ḯ|ỉ|ǐ|ȉ|ȋ|ị|į|ḭ|ɨ|ı|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(ij|[\u0133])/g},{base:"j",letters:/(j|ⓙ|j|ĵ|ǰ|ɉ|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(k|ⓚ|k|ḱ|ǩ|ḳ|ķ|ḵ|ƙ|ⱪ|ꝁ|ꝃ|ꝅ|ꞣ|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(l|ⓛ|l|ŀ|ĺ|ľ|ḷ|ḹ|ļ|ḽ|ḻ|ł|ƚ|ɫ|ⱡ|ꝉ|ꞁ|ꝇ|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(lj|[\u01C9])/g},{base:"m",letters:/(m|ⓜ|m|ḿ|ṁ|ṃ|ɱ|ɯ|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(n|ⓝ|n|ǹ|ń|ñ|ṅ|ň|ṇ|ņ|ṋ|ṉ|ƞ|ɲ|ʼn|ꞑ|ꞥ|ŋ|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(nj|[\u01CC])/g},{base:"o",letters:/(o|ⓞ|o|ò|ó|ô|ồ|ố|ỗ|ổ|õ|ṍ|ȭ|ṏ|ō|ṑ|ṓ|ŏ|ȯ|ȱ|ö|ȫ|ỏ|ő|ǒ|ȍ|ȏ|ơ|ờ|ớ|ỡ|ở|ợ|ọ|ộ|ǫ|ǭ|ø|ǿ|ɔ|ꝋ|ꝍ|ɵ|[\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:/(œ|[\u0153])/g},{base:"oi",letters:/(ƣ|[\u01A3])/g},{base:"ou",letters:/(ȣ|[\u0223])/g},{base:"oo",letters:/(ꝏ|[\uA74F])/g},{base:"p",letters:/(p|ⓟ|p|ṕ|ṗ|ƥ|ᵽ|ꝑ|ꝓ|ꝕ|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(q|ⓠ|q|ɋ|ꝗ|ꝙ|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(r|ⓡ|r|ŕ|ṙ|ř|ȑ|ȓ|ṛ|ṝ|ŗ|ṟ|ɍ|ɽ|ꝛ|ꞧ|ꞃ|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(s|ⓢ|s|ś|ṥ|ŝ|ṡ|š|ṧ|ṣ|ṩ|ș|ş|ȿ|ꞩ|ꞅ|ẛ|ſ|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(ß|[\u00DF])/g},{base:"t",letters:/(t|ⓣ|t|ṫ|ẗ|ť|ṭ|ț|ţ|ṱ|ṯ|ŧ|ƭ|ʈ|ⱦ|ꞇ|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(þ|[\u00FE])/g},{base:"tz",letters:/(ꜩ|[\uA729])/g},{base:"u",letters:/(u|ⓤ|u|ù|ú|û|ũ|ṹ|ū|ṻ|ŭ|ü|ǜ|ǘ|ǖ|ǚ|ủ|ů|ű|ǔ|ȕ|ȗ|ư|ừ|ứ|ữ|ử|ự|ụ|ṳ|ų|ṷ|ṵ|ʉ|[\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:/(v|ⓥ|v|ṽ|ṿ|ʋ|ꝟ|ʌ|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(ꝡ|[\uA761])/g},{base:"w",letters:/(w|ⓦ|w|ẁ|ẃ|ŵ|ẇ|ẅ|ẘ|ẉ|ⱳ|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(x|ⓧ|x|ẋ|ẍ|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(y|ⓨ|y|ỳ|ý|ŷ|ỹ|ȳ|ẏ|ÿ|ỷ|ẙ|ỵ|ƴ|ɏ|ỿ|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],Fs=function(e){return function(e){var t=e;return Rs.forEach((function(e){t=t.replace(e.letters,e.base)})),t}(e).toLowerCase()},zs=function(e,t,n){return n?Fs(e).indexOf(Fs(t)):e.toLowerCase().indexOf(t.toLowerCase())},Vs=function(e){return"number"==typeof e},Us=function(e){return e===Object(e)?Object.keys(e):[]},Bs=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 Hs(e,t){return function(r){var o=function(o){var i=o.style,a=o.className,s=o.classNames,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o,["style","className","classNames"]),u=t?t(l):void 0,c=vs(e,{style:i,className:a,classNames:s},u);return n().createElement(r,ka({},l,{style:c}))},i=r.displayName||r.name||"Component";return o.displayName="defaultStyle(".concat(i,")"),o}}var Ws=function(e){function r(){var e;return Ta(this,r),Fa(La(e=Ia(this,Ma(r).apply(this,arguments))),"setCaretElement",(function(t){e.caretElement=t})),e.state={left:void 0,top:void 0},e}return Ra(r,e),Aa(r,[{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,r=this.props,o=r.selectionStart,i=r.selectionEnd,a=r.value,s=r.style,l=r.children,u=r.containerRef,c=Ms(l);o===i&&(e=Ps(a,c,o,"START"));var p=[],d={},f=p,h=0;return ks(a,c,(function(e,n,r,o,i,a,s){var l=function(e,t){return e.hasOwnProperty(t)?e[t]++:e[t]=0,t+"_"+e[t]}(d,o);f.push(t.getMentionComponentForMatch(o,i,a,l))}),(function(n,r,o){if(Vs(e)&&e>=r&&e<=r+n.length){var i=e-r;f.push(t.renderSubstring(n.substring(0,i),h)),f=[t.renderSubstring(n.substring(i),h)]}else f.push(t.renderSubstring(n,h));h++})),f.push(" "),f!==p&&p.push(this.renderHighlighterCaret(f)),n().createElement("div",ka({},s,{ref:u}),p)}},{key:"renderSubstring",value:function(e,t){return n().createElement("span",ka({},this.props.style("substring"),{key:t}),e)}},{key:"getMentionComponentForMatch",value:function(e,r,o,i){var a={id:e,display:r,key:i},s=t.Children.toArray(this.props.children)[o];return n().cloneElement(s,a)}},{key:"renderHighlighterCaret",value:function(e){return n().createElement("span",ka({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),e)}}]),r}(t.Component);Fa(Ws,"propTypes",{selectionStart:a().number,selectionEnd:a().number,value:a().string.isRequired,onCaretPositionChange:a().func.isRequired,containerRef:a().oneOfType([a().func,a().shape({current:"undefined"==typeof Element?a().any:a().instanceOf(Element)})]),children:a().oneOfType([a().element,a().arrayOf(a().element)]).isRequired}),Fa(Ws,"defaultProps",{value:""});var Gs=Hs({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}}))(Ws),qs=function(e){function t(){return Ta(this,t),Ia(this,Ma(t).apply(this,arguments))}return Ra(t,e),Aa(t,[{key:"render",value:function(){var e=Bs(this.props,["style","classNames","className"],Us(t.propTypes));return n().createElement("li",ka({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(),s=this.renderHighlightedDisplay(a,t);return n?n(r,t,s,o,i):s}},{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,r=t.ignoreAccents,o=t.query,i=t.style,a=zs(e,o,r);return-1===a?n().createElement("span",i("display"),e):n().createElement("span",i("display"),e.substring(0,a),n().createElement("b",i("highlight"),e.substring(a,a+o.length)),e.substring(a+o.length))}}]),t}(t.Component);Fa(qs,"propTypes",{id:a().string.isRequired,query:a().string.isRequired,index:a().number.isRequired,ignoreAccents:a().bool,suggestion:a().oneOfType([a().string,a().shape({id:a().oneOfType([a().string,a().number]).isRequired,display:a().string})]).isRequired,renderSuggestion:a().func,focused:a().bool});var Ys=Hs({cursor:"pointer"},(function(e){return{"&focused":e.focused}}))(qs);function $s(){var e=vs(),t=e("spinner");return n().createElement("div",e,n().createElement("div",t,n().createElement("div",t(["element","element1"])),n().createElement("div",t(["element","element2"])),n().createElement("div",t(["element","element3"])),n().createElement("div",t(["element","element4"])),n().createElement("div",t(["element","element5"]))))}var Ks=function(e){function r(){var e,t;Ta(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Fa(La(t=Ia(this,(e=Ma(r)).call.apply(e,[this].concat(o)))),"handleMouseEnter",(function(e,n){t.props.onMouseEnter&&t.props.onMouseEnter(e)})),Fa(La(t),"select",(function(e,n){t.props.onSelect(e,n)})),Fa(La(t),"setUlElement",(function(e){t.ulElement=e})),t}return Ra(r,e),Aa(r,[{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,r=e.a11ySuggestionsListLabel,o=e.isOpened,i=e.style,a=e.onMouseDown,s=e.containerRef,l=e.position,u=e.left,c=e.top;return o?n().createElement("div",ka({},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 bs(bs(bs({},e),"function"==typeof t?t:{}),{},{style:bs(bs({},e.style),"function"==typeof t?t.style:t)})}),{})}({position:l||"absolute",left:u,top:c},i),{onMouseDown:a,ref:s}),n().createElement("ul",ka({ref:this.setUlElement,id:t,role:"listbox","aria-label":r},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(_a(t),_a(r.map((function(n,r){return e.renderSuggestion(n,o,t.length+r)}))))}),[])}},{key:"renderSuggestion",value:function(e,r,o){var i=this,a=o===this.props.focusIndex,s=r.childIndex,l=r.query,u=t.Children.toArray(this.props.children)[s].props.renderSuggestion,c=this.props.ignoreAccents;return n().createElement(Ys,{style:this.props.style("item"),key:"".concat(s,"-").concat(Zs(e)),id:js(this.props.id,o),query:l,index:o,ignoreAccents:c,renderSuggestion:u,suggestion:e,focused:a,onClick:function(){return i.select(e,r)},onMouseEnter:function(){return i.handleMouseEnter(o)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return n().createElement($s,{style:this.props.style("loadingIndicator")})}}]),r}(t.Component);Fa(Ks,"propTypes",{id:a().string.isRequired,suggestions:a().object.isRequired,a11ySuggestionsListLabel:a().string,focusIndex:a().number,position:a().string,left:a().number,top:a().number,scrollFocusedIntoView:a().bool,isLoading:a().bool,isOpened:a().bool.isRequired,onSelect:a().func,ignoreAccents:a().bool,containerRef:a().oneOfType([a().func,a().shape({current:"undefined"==typeof Element?a().any:a().instanceOf(Element)})]),children:a().oneOfType([a().element,a().arrayOf(a().element)]).isRequired}),Fa(Ks,"defaultProps",{suggestions:{},onSelect:function(){return null}});var Zs=function(e){return"string"==typeof e?e:e.id},Xs=Hs({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(Ks);function Qs(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 Js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(n,!0).forEach((function(t){Fa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var el={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},tl=!1,nl={singleLine:a().bool,allowSpaceInQuery:a().bool,allowSuggestionsAboveCursor:a().bool,forceSuggestionsAboveCursor:a().bool,ignoreAccents:a().bool,a11ySuggestionsListLabel:a().string,value:a().string,onKeyDown:a().func,onSelect:a().func,onBlur:a().func,onChange:a().func,suggestionsPortalHost:"undefined"==typeof Element?a().any:a().PropTypes.instanceOf(Element),inputRef:a().oneOfType([a().func,a().shape({current:"undefined"==typeof Element?a().any:a().instanceOf(Element)})]),children:a().oneOfType([a().element,a().arrayOf(a().element)]).isRequired},rl=function(e){function r(e){var o;return Ta(this,r),Fa(La(o=Ia(this,Ma(r).call(this,e))),"setContainerElement",(function(e){o.containerElement=e})),Fa(La(o),"getInputProps",(function(){var e=o.props,t=e.readOnly,n=e.disabled,r=e.style;return Js({},Bs(o.props,["style","classNames","className"],Us(nl)),{},r("input"),{value:o.getPlainText()},!t&&!n&&{onChange:o.handleChange,onSelect:o.handleSelect,onKeyDown:o.handleKeyDown,onBlur:o.handleBlur,onCompositionStart:o.handleCompositionStart,onCompositionEnd:o.handleCompositionEnd,onScroll:o.updateHighlighterScroll},{},o.isOpened()&&{role:"combobox","aria-controls":o.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":js(o.uuidSuggestionsOverlay,o.state.focusIndex)})})),Fa(La(o),"renderControl",(function(){var e=o.props,t=e.singleLine,r=e.style,i=o.getInputProps();return n().createElement("div",r("control"),o.renderHighlighter(),t?o.renderInput(i):o.renderTextarea(i))})),Fa(La(o),"renderInput",(function(e){return n().createElement("input",ka({type:"text",ref:o.setInputRef},e))})),Fa(La(o),"renderTextarea",(function(e){return n().createElement("textarea",ka({ref:o.setInputRef},e))})),Fa(La(o),"setInputRef",(function(e){o.inputElement=e;var t=o.props.inputRef;"function"==typeof t?t(e):t&&(t.current=e)})),Fa(La(o),"setSuggestionsElement",(function(e){o.suggestionsElement=e})),Fa(La(o),"renderSuggestionsOverlay",(function(){if(!Vs(o.state.selectionStart))return null;var e=o.state.suggestionsPosition,t=e.position,r=e.left,i=e.top,a=n().createElement(Xs,{id:o.uuidSuggestionsOverlay,style:o.props.style("suggestions"),position:t,left:r,top:i,focusIndex:o.state.focusIndex,scrollFocusedIntoView:o.state.scrollFocusedIntoView,containerRef:o.setSuggestionsElement,suggestions:o.state.suggestions,onSelect:o.addMention,onMouseDown:o.handleSuggestionsMouseDown,onMouseEnter:o.handleSuggestionsMouseEnter,isLoading:o.isLoading(),isOpened:o.isOpened(),ignoreAccents:o.props.ignoreAccents,a11ySuggestionsListLabel:o.props.a11ySuggestionsListLabel},o.props.children);return o.props.suggestionsPortalHost?J().createPortal(a,o.props.suggestionsPortalHost):a})),Fa(La(o),"renderHighlighter",(function(){var e=o.state,t=e.selectionStart,r=e.selectionEnd,i=o.props,a=i.singleLine,s=i.children,l=i.value,u=i.style;return n().createElement(Gs,{containerRef:o.setHighlighterElement,style:u("highlighter"),value:l,singleLine:a,selectionStart:t,selectionEnd:r,onCaretPositionChange:o.handleCaretPositionChange},s)})),Fa(La(o),"setHighlighterElement",(function(e){o.highlighterElement=e})),Fa(La(o),"handleCaretPositionChange",(function(e){o.setState({caretPosition:e})})),Fa(La(o),"getPlainText",(function(){return Ts(o.props.value||"",Ms(o.props.children))})),Fa(La(o),"executeOnChange",(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 i,a;return o.props.onChange?(i=o.props).onChange.apply(i,[e].concat(n)):o.props.valueLink?(a=o.props.valueLink).requestChange.apply(a,[e.target.value].concat(n)):void 0})),Fa(La(o),"handleChange",(function(e){if(tl=!1,!document.documentMode||(document.activeElement&&document.activeElement.contentDocument||document).activeElement===e.target){var t=o.props.value||"",n=Ms(o.props.children),r=e.target.value,i=function(e,t,n,r){var o=n.selectionStartBefore,i=n.selectionEndBefore,a=n.selectionEndAfter,s=Ts(e,r),l=s.length-t.length;"undefined"===o&&(o=a+l),"undefined"===i&&(i=o),o===i&&i===a&&s.length===t.length&&(o-=1);var u=t.slice(o,a),c=Math.min(o,a),p=i;o===a&&(p=Math.max(i,o+l));var d=Ps(e,r,c,"START"),f=Ps(e,r,p,"END"),h=Ps(e,r,c,"NULL"),m=Ps(e,r,p,"NULL"),g=null===h||null===m,v=As(e,d,f,u);if(!g){var y=Ts(v,r);if(y!==t){for(c=0;t[c]===y[c];)c++;u=t.slice(c,a),p=s.lastIndexOf(t.substring(a)),d=Ps(e,r,c,"START"),f=Ps(e,r,p,"END"),v=As(e,d,f,u)}}return v}(t,r,{selectionStartBefore:o.state.selectionStart,selectionEndBefore:o.state.selectionEnd,selectionEndAfter:e.target.selectionEnd},n);r=Ts(i,n);var a=e.target.selectionStart,s=e.target.selectionEnd,l=!1,u=function(e,t,n){var r=n,o=!1;if(ks(e,t,(function(e,t,i,a,s,l,u){i<=n&&i+s.length>n&&(r=i,o=!0)})),o)return r}(t,n,a);void 0!==u&&o.state.selectionEnd>u&&(s=a=u,l=!0),o.setState({selectionStart:a,selectionEnd:s,setSelectionAfterMentionChange:l});var c=Ds(i,n),p={target:{value:i}};o.executeOnChange(p,i,r,c)}})),Fa(La(o),"handleSelect",(function(e){if(o.setState({selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd}),!tl){var t=o.inputElement;e.target.selectionStart===e.target.selectionEnd?o.updateMentionsQueries(t.value,e.target.selectionStart):o.clearSuggestions(),o.updateHighlighterScroll(),o.props.onSelect(e)}})),Fa(La(o),"handleKeyDown",(function(e){if(0!==Ls(o.state.suggestions)&&o.suggestionsElement)switch(Object.values(el).indexOf(e.keyCode)>=0&&(e.preventDefault(),e.stopPropagation()),e.keyCode){case el.ESC:return void o.clearSuggestions();case el.DOWN:return void o.shiftFocus(1);case el.UP:return void o.shiftFocus(-1);case el.RETURN:case el.TAB:return void o.selectFocused();default:return}else o.props.onKeyDown(e)})),Fa(La(o),"shiftFocus",(function(e){var t=Ls(o.state.suggestions);o.setState({focusIndex:(t+o.state.focusIndex+e)%t,scrollFocusedIntoView:!0})})),Fa(La(o),"selectFocused",(function(){var e=o.state,t=e.suggestions,n=e.focusIndex,r=Object.values(t).reduce((function(e,t){var n=t.results,r=t.queryInfo;return[].concat(_a(e),_a(n.map((function(e){return{result:e,queryInfo:r}}))))}),[])[n],i=r.result,a=r.queryInfo;o.addMention(i,a),o.setState({focusIndex:0})})),Fa(La(o),"handleBlur",(function(e){var t=o._suggestionsMouseDown;o._suggestionsMouseDown=!1,t||o.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){o.updateHighlighterScroll()}),1),o.props.onBlur(e,t)})),Fa(La(o),"handleSuggestionsMouseDown",(function(e){o._suggestionsMouseDown=!0})),Fa(La(o),"handleSuggestionsMouseEnter",(function(e){o.setState({focusIndex:e,scrollFocusedIntoView:!1})})),Fa(La(o),"updateSuggestionsPosition",(function(){var e=o.state.caretPosition,t=o.props,n=t.suggestionsPortalHost,r=t.allowSuggestionsAboveCursor,i=t.forceSuggestionsAboveCursor;if(e&&o.suggestionsElement){var a=o.suggestionsElement,s=o.highlighterElement,l=s.getBoundingClientRect(),u=ol(s,"font-size"),c={left:l.left+e.left,top:l.top+e.top+u},p=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(a){var d={};if(n){d.position="fixed";var f=c.left,h=c.top;f-=ol(a,"margin-left"),h-=ol(a,"margin-top"),f-=s.scrollLeft,h-=s.scrollTop;var m=Math.max(document.documentElement.clientWidth,window.innerWidth||0);f+a.offsetWidth>m?d.left=Math.max(0,m-a.offsetWidth):d.left=f,r&&h+a.offsetHeight>p&&a.offsetHeight<h-u||i?d.top=Math.max(0,h-a.offsetHeight-u):d.top=h}else{var g=e.left-s.scrollLeft,v=e.top-s.scrollTop;g+a.offsetWidth>o.containerElement.offsetWidth?d.right=0:d.left=g,r&&c.top-s.scrollTop+a.offsetHeight>p&&a.offsetHeight<l.top-u-s.scrollTop?d.top=v-a.offsetHeight-u:d.top=v}d.left===o.state.suggestionsPosition.left&&d.top===o.state.suggestionsPosition.top&&d.position===o.state.suggestionsPosition.position||o.setState({suggestionsPosition:d})}}})),Fa(La(o),"updateHighlighterScroll",(function(){var e=o.inputElement,t=o.highlighterElement;e&&t&&(t.scrollLeft=e.scrollLeft,t.scrollTop=e.scrollTop,t.height=e.height)})),Fa(La(o),"handleCompositionStart",(function(){tl=!0})),Fa(La(o),"handleCompositionEnd",(function(){tl=!1})),Fa(La(o),"setSelection",(function(e,t){if(null!==e&&null!==t){var n=o.inputElement;if(n.setSelectionRange)n.setSelectionRange(e,t);else if(n.createTextRange){var r=n.createTextRange();r.collapse(!0),r.moveEnd("character",t),r.moveStart("character",e),r.select()}}})),Fa(La(o),"updateMentionsQueries",(function(e,t){o._queryId++,o.suggestions={},o.setState({suggestions:{}});var r=o.props.value||"",i=o.props.children,a=Ms(i),s=Ps(r,a,t,"NULL");if(null!==s){var l=function(e,t){var n=Ds(e,t),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0}(r.substring(0,s),a),u=e.substring(l,t);n().Children.forEach(i,(function(t,n){if(t){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof RegExp)return e;var n=t.allowSpaceInQuery,r=ws(e);return new RegExp("(?:^|\\s)(".concat(r,"([^").concat(n?"":"\\s").concat(r,"]*))$"))}(t.props.trigger,o.props),i=u.match(r);if(i){var a=l+u.indexOf(i[1],i.index);o.queryData(i[2],n,a,a+i[1].length,e)}}}))}})),Fa(La(o),"clearSuggestions",(function(){o._queryId++,o.suggestions={},o.setState({suggestions:{},focusIndex:0})})),Fa(La(o),"queryData",(function(e,n,r,i,a){var s=o.props,l=s.children,u=s.ignoreAccents,c=function(e,t){return e instanceof Array?function(n,r){for(var o=[],i=0,a=e.length;i<a;++i){var s=e[i].display||e[i].id;zs(s,n,t)>=0&&o.push(e[i])}return o}:e}(t.Children.toArray(l)[n].props.data,u),p=c(e,o.updateSuggestions.bind(null,o._queryId,n,e,r,i,a));p instanceof Array&&o.updateSuggestions(o._queryId,n,e,r,i,a,p)})),Fa(La(o),"updateSuggestions",(function(e,t,n,r,i,a,s){if(e===o._queryId){o.suggestions=Js({},o.suggestions,Fa({},t,{queryInfo:{childIndex:t,query:n,querySequenceStart:r,querySequenceEnd:i,plainTextValue:a},results:s}));var l=o.state.focusIndex,u=Ls(o.suggestions);o.setState({suggestions:o.suggestions,focusIndex:l>=u?Math.max(u-1,0):l})}})),Fa(La(o),"addMention",(function(e,n){var r=e.id,i=e.display,a=n.childIndex,s=n.querySequenceStart,l=n.querySequenceEnd,u=n.plainTextValue,c=o.props.value||"",p=Ms(o.props.children),d=t.Children.toArray(o.props.children)[a].props,f=d.markup,h=d.displayTransform,m=d.appendSpaceOnAdd,g=d.onAdd,v=Ps(c,p,s,"START"),y=v+l-s,b=function(e,t,n){return e.replace(Es,t).replace(xs,n)}(f,r,i);m&&(b+=" ");var w=As(c,v,y,b);o.inputElement.focus();var E=h(r,i);m&&(E+=" ");var x=s+E.length;o.setState({selectionStart:x,selectionEnd:x,setSelectionAfterMentionChange:!0});var O={target:{value:w}},S=Ds(w,p),C=As(u,s,l,E);o.executeOnChange(O,w,C,S),g&&g(r,i,v,y),o.clearSuggestions()})),Fa(La(o),"isLoading",(function(){var e=!1;return n().Children.forEach(o.props.children,(function(t){e=e||t&&t.props.isLoading})),e})),Fa(La(o),"isOpened",(function(){return Vs(o.state.selectionStart)&&(0!==Ls(o.state.suggestions)||o.isLoading())})),Fa(La(o),"_queryId",0),o.suggestions={},o.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),o.handleCopy=o.handleCopy.bind(La(o)),o.handleCut=o.handleCut.bind(La(o)),o.handlePaste=o.handlePaste.bind(La(o)),o.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},o}return Ra(r,e),Aa(r,[{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 n().createElement("div",ka({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,s=Ms(a),l=Ps(i,s,n,"START"),u=Ps(i,s,r,"END"),c=e.clipboardData.getData("text/react-mentions"),p=e.clipboardData.getData("text/plain"),d=As(i,l,u,c||p).replace(/\r/g,""),f=Ts(d,s),h={target:Js({},e.target,{value:d})};this.executeOnChange(h,d,f,Ds(d,s))}}},{key:"saveSelectionToClipboard",value:function(e){var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,s=Ms(i),l=Ps(a,s,n,"START"),u=Ps(a,s,r,"END");e.clipboardData.setData("text/plain",e.target.value.slice(n,r)),e.clipboardData.setData("text/react-mentions",a.slice(l,u))}},{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,s=Ms(i),l=Ps(a,s,n,"START"),u=Ps(a,s,r,"END"),c=[a.slice(0,l),a.slice(u)].join(""),p=Ts(c,s),d={target:Js({},e.target,{value:p})};this.executeOnChange(d,c,p,Ds(a,s))}}}]),r}(n().Component);Fa(rl,"propTypes",nl),Fa(rl,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var ol=function(e,t){var n=parseFloat(window.getComputedStyle(e,null).getPropertyValue(t));return isFinite(n)?n:0},il=Hs({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:Js({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}}))(rl),al={fontWeight:"inherit"},sl=function(e){var t=e.display,r=e.style,o=e.className,i=e.classNames,a=vs(al,{style:r,className:o,classNames:i});return n().createElement("strong",a,t)};sl.propTypes={onAdd:a().func,onRemove:a().func,renderSuggestion:a().func,trigger:a().oneOfType([a().string,a().instanceOf(RegExp)]),markup:a().string,displayTransform:a().func,allowSpaceInQuery:a().bool,isLoading:a().bool},sl.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 ll=(0,o.makeStyles)((e=>({root:{width:"100%",backgroundColor:"#fff",fontFamily:"Roboto","&__control":{fontSize:"13px"},"&__highlighter":{padding:"10px 22px",border:"1px solid transparent !important",maxHeight:"70px"},"&__input":{borderRadius:"2px",border:"1px solid rgba(0,0,0,0.12)",padding:"10px 22px",outline:0,maxHeight:"70px",overflow:"auto !important"},"&__suggestions":{padding:"8px 0",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)",transform:"translateY(-100%)"},"&__suggestions__list":{maxHeight:"200px",overflowY:"scroll"},"&__suggestions__item":{padding:"6px 12px",color:e.palette.text.primary,fontSize:"13px",transition:e.transitions.create(["background-color"]),"&:hover, &--focused":{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 ul(){return ul=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(this,arguments)}const cl=e=>{let{onChange:r,className:o}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["onChange","className"]);const a=ll(),s=(0,t.useContext)(ga);return n().createElement(il,ul({},i,{onChange:(e,t,n,o)=>{r(t,n,(0,u.uniq)(o.map((e=>{let{display:t}=e;return t.slice(1)}))))},className:l()(a.root,o)}),n().createElement(sl,{trigger:"+",data:s.map((e=>{let{username:t}=e;return{id:t,display:t}})),displayTransform:(e,t)=>`+${t}`,appendSpaceOnAdd:!0,className:a.mention}))},pl=(0,o.makeStyles)({root:{padding:"6px 6px 6px 8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},textField:{maxWidth:"calc(100% - 40px)"},form:{marginBottom:0},main:{display:"flex",alignItems:"center"},avatar:{marginRight:"8px"},buttons:{marginLeft:"40px",marginTop:"8px"},button:{"& + $button":{marginLeft:"8px"}}}),dl=e=>{switch(e){case"open":return p().text("Reply...");case"resolved":return p().text("Adding a comment will re-open this");default:return""}},fl=e=>{let{inputRef:o,className:i,uri:a,relatedObjectUris:s,objectType:c,popperRef:d,comment:f,isEditingComment:h,onCancel:m}=e;const g=pl(),v=(0,r.useSelector)(y().selectors.getUserName),{createReply:b,createComment:w,sending:E,editComment:x}=(0,t.useContext)(ki),[O,S]=(0,t.useState)(""),[C,_]=(0,t.useState)(""),[k,T]=(0,t.useState)([]),[P,A]=(0,t.useState)(!1),D=Jo(),L=""!==O.trim(),I=P||L,M=null==f?void 0:f.status,N=(e,t,n)=>{T(n),S(e),_(t)},R=()=>{null==m||m(),N("","",[])};return(0,t.useEffect)((()=>{d&&d.current.update()}),[d,I]),(0,t.useEffect)((()=>{h?S(f.content):R()}),[h]),n().createElement(Fi(),{className:l()(g.root,i)},n().createElement("form",{onSubmit:e=>{e.preventDefault();const t=(0,u.cond)([[(0,u.always)(!f),()=>w({content:C,namedUsers:k,objectType:c,uri:a,relatedObjectUris:s})],[(0,u.always)(h),()=>x({content:C,namedUsers:k,commentId:f.commentId,objectType:c,replies:f.replies,relatedObjectUris:s,uri:a})],[u.T,()=>b({content:C,namedUsers:k,commentId:f.commentId,action:"open"===f.status?"none":"reopen",uri:a})]]);return D(t()).then(R).catch(console.log)},className:g.form},n().createElement(Fi(),{className:g.main},n().createElement(Ea,{classes:{root:g.avatar}},v),n().createElement(cl,{className:g.textField,disabled:E,onChange:(e,t,n)=>{N(e,t,n)},inputRef:o,value:O,onFocus:()=>A(!0),onBlur:()=>A(!1),placeholder:dl(M)})),I&&n().createElement(Fi(),{className:g.buttons},n().createElement(j(),{className:g.button,variant:"contained",color:"primary",disabled:!L||E,type:"submit"},((e,t)=>t?p().text("Edit"):"open"===e||"resolved"===e?p().text("Reply"):p().text("Comment"))(M,h)),n().createElement(j(),{disabled:E,onClick:()=>R(),className:g.button,variant:"outlined",color:"primary"},p().text("Cancel")))))},hl=(0,o.makeStyles)((()=>({root:{maxWidth:"100%",padding:"8px 4px 10px 16px"},messages:{},repliedComment:{marginBottom:"2px"},replies:{marginLeft:"40px"},sendMessageArea:{marginLeft:"40px"},comment:{}}))),ml=(0,t.memo)((e=>{let{uri:r,relatedObjectUris:o,objectType:i,classes:a,popperRef:s,messagesRef:l,comment:u}=e;const c=(0,t.useRef)(),p=hl({classes:a}),[d,f]=(0,t.useState)(!1),h=n().createElement(fl,{className:p.sendMessageArea,inputRef:c,popperRef:s,uri:r,relatedObjectUris:o,objectType:i,comment:u,onCancel:()=>f(!1),isEditingComment:d});return n().createElement(Fi(),{className:p.root},u&&n().createElement(n().Fragment,null,n().createElement("div",{className:p.messages,ref:l},n().createElement(Oa,{comment:u,uri:r,onReply:()=>{d&&f(!1),c.current.focus()},onStartEditing:()=>{f(!0)},className:p.comment}),n().createElement(Fi(),{className:p.replies},u.replies.map((e=>n().createElement(Ca,{key:e.replyId,className:p.repliedComment,reply:e}))))),h),!u&&h)})),gl=window["material-ui"].ClickAwayListener;var vl=f.n(gl);const yl=window["material-ui"].Popper;var bl=f.n(yl);const wl=(0,o.makeStyles)({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}}),El=e=>{let{anchorEl:t,leftBackdropRef:n,rightBackdropRef:r,topBackdropRef:o,bottomBackdropRef:i,rafIdRef:a,lastResizeTimestamp:s=0}=e;if(t){if(Date.now()-s>100&&o.current&&n.current&&r.current&&i.current){const e=t.getBoundingClientRect();o.current.style.top="0",o.current.style.left="0",o.current.style.right="0",o.current.style.height=e.top+"px",n.current.style.top="0",n.current.style.left="0",n.current.style.width=e.left+"px",n.current.style.bottom="0",r.current.style.top="0",r.current.style.left=e.right+"px",r.current.style.right="0",r.current.style.bottom="0",i.current.style.top=e.bottom+"px",i.current.style.left="0",i.current.style.right="0",i.current.style.bottom="0",s=Date.now()}a.current=requestAnimationFrame((()=>El({anchorEl:t,leftBackdropRef:n,rightBackdropRef:r,topBackdropRef:o,bottomBackdropRef:i,rafIdRef:a,lastResizeTimestamp:s})))}};function xl(){return xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(this,arguments)}function Ol(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sl=(0,t.forwardRef)(((e,r)=>{let{modifiers:o,modal:i=!0,onClose:a,anchorEl:s,open:c,className:p}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["modifiers","modal","onClose","anchorEl","open","className"]);const f=wl(),h=(0,t.useRef)(),g=(0,t.useRef)(),v=(0,t.useRef)(),y=(0,t.useRef)(),b=(0,t.useRef)();(0,t.useEffect)((()=>{if(c&&i)return El({anchorEl:s,leftBackdropRef:h,rightBackdropRef:g,topBackdropRef:v,bottomBackdropRef:y,rafIdRef:b}),()=>cancelAnimationFrame(b.current)}),[s,c,i]);const w=(0,t.useMemo)((()=>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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ol(e,t,n[t])}))}return e}({},o,(0,u.compose)((0,u.either)((0,u.includes)("MSIE "),(0,u.includes)("Trident/")),(0,u.path)(["navigator","userAgent"]))(window)?{computeStyle:{gpuAcceleration:!1}}:{})),[o]);return n().createElement(n().Fragment,null,i&&c&&n().createElement(m(),{container:document.body},n().createElement("div",{ref:v,className:f.backdrop,onClick:a}),n().createElement("div",{ref:g,className:f.backdrop,onClick:a}),n().createElement("div",{ref:y,className:f.backdrop,onClick:a}),n().createElement("div",{ref:h,className:f.backdrop,onClick:a})),n().createElement(bl(),xl({open:c,anchorEl:s},d,{modifiers:w,className:l()(p,f.popper),ref:r})))}));Sl.displayName="Popper",Sl.defaultProps={modifiers:{}};const Cl=Sl,_l=(0,o.makeStyles)((e=>{const t=e.palette.background.paper;return{popoverRoot:{backgroundColor:t,maxWidth:1e3},popper:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},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)"}}}})),kl=e=>{let{anchorEl:t,placement:r="top",arrow:o=!0,open:i,onClose:a=(()=>{}),children:s,className:u,popperRef:c}=e;const p=_l(),[d,f]=n().useState(null);return n().createElement(Cl,{anchorEl:t,placement:r,className:l()(p.popper,u),modifiers:{preventOverflow:{enabled:!0,boundariesElement:"window"},arrow:{enabled:o,element:d}},open:i,modal:!1,popperRef:c},n().createElement(Fi(),null,n().createElement(vl(),{onClickAway:e=>{var t;t=e.target,Array.from(document.querySelectorAll("[data-modal]")).some((e=>e.contains(t)))||a()}},n().createElement(Rn(),{className:p.popoverRoot},o?n().createElement("span",{className:p.arrow,ref:f}):null,n().createElement(Fi(),null,s)))))},Tl=(0,o.makeStyles)((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:e=>{let{hasScroll:t}=e;return{marginLeft:"16px",marginRight:t?"2px":"8px"}},replies:e=>{let{hasScroll:t}=e;return{marginLeft:"8px",marginRight:t?"2px":"8px"}},sendMessageArea:e=>{let{hasScroll:t,scrollWidth:n}=e;return{marginLeft:"8px",marginRight:t?n+2:"8px"}},messages:{maxHeight:"400px",overflowY:"auto"}}))),Pl=e=>{let{uri:r,relatedObjectUris:o,objectType:i,anchorEl:a,onClose:s,open:l,comment:u}=e;const[c,d]=(0,t.useState)(0),f=Tl({scrollWidth:c,hasScroll:0!==c}),h=(0,t.useRef)(null),{resolveThread:m,loading:g,sending:v}=(0,t.useContext)(ki),y=1+(null==u?void 0:u.replies.length);return n().createElement(kl,{popperRef:h,anchorEl:a,open:l,placement:"right-start",onClose:s,className:f.popper},n().createElement(Fi(),{className:f.header},n().createElement(Fi(),{className:f.headerInfo},n().createElement(A(),{className:f.title},p().text("Comments")),u&&!g&&n().createElement(A(),{className:f.counter},p().number(y)," ",1===y?p().text("item"):p().text("items"))),u&&!g&&n().createElement(sa,{className:f.resolveButton,size:"S",onClick:()=>{m({commentId:u.commentId,uri:r})},disabled:v,showForDisabled:!0,tooltipTitle:p().text("Resolve"),icon:zi.Z,color:"primary"})),!g&&n().createElement(ml,{popperRef:h,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:r,relatedObjectUris:o,objectType:i,comment:u}))},Al=e=>{let{className:r,uri:o,objectType:i,relatedObjectUris:a,onChangePopupVisibility:s,allowOnlyOneComment:u=!1,showAlways:c=!1}=e;const p=Si(),[d,f]=(0,t.useState)(null),[h,m]=(0,t.useState)(!1),g=h&&Boolean(d),{currentComment:v,commentsMap:y,getComment:b,clearCurrentComment:w,objectTypes:E}=(0,t.useContext)(ki),x=!!y&&(!E||E.includes(i)),O=((null==y?void 0:y[o])||[]).filter((e=>{let{status:t}=e;return"resolved"!==t})).reverse(),S=!u||u&&0===O.length,C=null===v&&g;Ci((()=>{s&&s(g)}),[g]);const _=(0,t.useContext)(Ti),k=(0,t.useMemo)((()=>_?[...a,..._]:a),[_,a]);return x&&n().createElement("div",{className:l()(p.root,r)},S&&n().createElement(Ni,{className:l()(p.addButton,{[p.showAlways]:c||C}),onClick:e=>{f(e.currentTarget),m(!0)}}),O.map((e=>{let{replies:t,commentId:r}=e;return n().createElement(Li,{ref:r===(null==v?void 0:v.commentId)?f:null,key:r,onClick:()=>(e=>{b(e),m(!0)})(r)},1+t)})),n().createElement(Pl,{anchorEl:d,open:g,onClose:()=>{f(null),w(),m(!1)},uri:o,relatedObjectUris:k,objectType:i,comment:v}))},Dl=(0,o.makeStyles)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),jl=(0,t.memo)((e=>{let{className:t}=e;const o=Dl(),i=(0,r.useSelector)(y().selectors.getEntity),a=(0,r.useSelector)(y().selectors.getRangeColors);return n().createElement(xi,{className:l()(t,Oi),entity:i,rangeColorsConfig:a},n().createElement(Fi(),{className:o.comments},n().createElement(Al,{uri:i.uri,relatedObjectUris:(0,Go.createRelatedObjectUris)(Go.CollaborationObjectTypes.ENTITY,{entityUri:i.uri}),objectType:Go.CollaborationObjectTypes.ENTITY})))}));jl.displayName="GraphProfileBand";const Ll=jl,Il=(0,o.makeStyles)((e=>({contentWrapper:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,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)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),Ml=e=>{let{width:t,open:r,children:o}=e;const i=Il();return n().createElement("div",{className:i.contentWrapper,style:{width:`${r?t:0}px`}},r&&n().createElement(n().Fragment,null,o))},Nl=(0,o.makeStyles)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,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)"},active:{backgroundColor:(0,o.fade)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function Rl(){return Rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rl.apply(this,arguments)}function Fl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const zl=e=>{let{buttonsProps:t,activeIndexId:r,className:o,onButtonClick:i,classes:a={}}=e;const s=Nl(),{active:u,buttonWrapper:c}=a,p=Fl(a,["active","buttonWrapper"]);return n().createElement("div",{className:l()(s.container,o)},t.map((e=>{let{id:t}=e,o=Fl(e,["id"]);return n().createElement(sa,Rl({},o,{classes:p,size:"S",key:t,className:l()({[l()(s.active,u)]:r===t},s.buttonWrapper,c),onClick:()=>i(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))};var Vl=f(2726);const Ul=(0,o.makeStyles)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function Bl(){return Bl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bl.apply(this,arguments)}const Hl=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return n().createElement("svg",Bl({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),n().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};function Wl(){return Wl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wl.apply(this,arguments)}const Gl=(e,r,o)=>{if(e&&r){const i=(0,t.memo)(o);return t=>n().createElement(e.Consumer,null,(e=>n().createElement(i,Wl({},t,r(e,t)))))}return o},ql=Gl(ni,(0,u.pick)(["selectedEntity"]),(e=>{let{selectedEntity:t}=e;return n().createElement(xi,{entity:t})})),Yl=n().createContext([]);function $l(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Kl(e,t,n[t])}))}return e}function Kl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zl=(0,o.makeStyles)((e=>({"basic-view__paper":$l({display:"flex",flexDirection:"column"},e.basicView)})));function Xl(){return Xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xl.apply(this,arguments)}const Ql=(0,t.forwardRef)(((e,t)=>{let{children:r,className:o}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className"]);const a=Zl();return n().createElement(Rn(),Xl({ref:t,className:o,classes:{root:a["basic-view__paper"]}},i),r)}));Ql.displayName="BasicView",Ql.propTypes={children:a().node,className:a().string};const Jl=Ql,eu=(0,o.makeStyles)({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function tu(){return tu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tu.apply(this,arguments)}const nu=e=>{let{title:t,children:r=null,classes:o={}}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","children","classes"]);const a=eu();return n().createElement(I(),tu({className:o.root,classes:{root:a.toolbar}},i),n().createElement(A(),{className:o.title,classes:{root:a.title},variant:"h6"},t),r)},ru=(0,o.makeStyles)({container:{padding:"0 16px",minHeight:"48px"},title:{fontSize:"16px",lineHeight:"19px",paddingTop:"16px",paddingBottom:"13px",justifyContent:"flex-start"}}),ou=e=>{let{className:t,title:r,children:o}=e;const i=ru();return n().createElement(nu,{title:r,classes:{root:l()(i.container,t),title:i.title}},o)},iu="1px solid #AFD4E9",au=(0,o.makeStyles)({decorator:{marginLeft:8,borderLeft:iu,"&:last-child":{borderLeft:"none","&:before":{borderLeft:iu}},"&:before":{top:0,height:14,width:5,borderBottom:iu,content:'""',display:"block",left:"0"},"&$plain":{"&:before":{width:0}}},plain:{},wrapper:{marginLeft:16,marginTop:-8}}),su=e=>{let{className:t,children:r,plain:o=!1,enabled:i=!1}=e;const a=au();return i?n().createElement("div",{className:l()(a.decorator,{[a.plain]:o},t)},n().createElement("div",{className:a.wrapper},r)):n().createElement(n().Fragment,null,r)};function lu(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uu(e,t,n[t])}))}return e}function uu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cu="13px",pu="15px",du={titleRow:{display:"block",minHeight:"16px",textIndent:"-1em",paddingLeft:"1em"},title:{whiteSpace:"nowrap"},ovIcon:{marginLeft:"8px",marginRight:"-3px",marginTop:"-1px",textIndent:0}},fu=(0,o.makeStyles)({paddingWrapper:{paddingTop:"3px",paddingBottom:"5px","&:last-child":{paddingBottom:"2px"}},paddingWrapperWithLines:{paddingBottom:"1px","&:last-child":{paddingBottom:"2px"}}}),hu=(0,o.makeStyles)(lu({wrapper:{fontSize:cu,lineHeight:pu,flex:1},collaborationWrapper:{display:"flex",alignItems:"start",minHeight:"18px"},attribute:{marginLeft:"8px",paddingLeft:"4px",paddingRight:"4px",display:"inline",overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},titleIcon:{width:"16px",height:"16px",marginBottom:"-3px",marginRight:"8px",marginLeft:"1px",color:"rgba(0, 0, 0, 0.38)"}},du)),mu=(0,o.makeStyles)(lu({wrapper:{display:"flex",flexDirection:"column",alignItems:"flex-start",fontSize:cu,lineHeight:pu},attribute:{"&:last-child":{marginBottom:0},paddingLeft:"4px",paddingRight:"4px",marginLeft:"5px",marginBottom:"4px",whiteSpace:"pre-wrap",wordBreak:"break-word"},attributes:{alignSelf:"stretch"}},du,{titleRow:lu({},du.titleRow,{marginBottom:"3px"})})),gu=(0,o.makeStyles)({mark:{color:"red"}}),vu=()=>{const e=gu();return n().createElement("span",{className:e.mark},"*")},yu=(0,o.makeStyles)({label:{color:"rgba(0,0,0,0.6)",fontSize:"13px",lineHeight:"15px"}}),bu=e=>{let{label:t,isRequired:r,className:o,attributeType:i={}}=e;const a=yu();return n().createElement(A(),{className:l()(a.label,o),component:"span"},n().createElement(hi,{label:t,attrTypeUri:i.uri}),r&&n().createElement(vu,null))};bu.propTypes={label:a().string,isRequired:a().bool,className:a().string,attributeType:Go.AttributeTypeType};const wu=bu,Eu=window["material-ui"].Chip;var xu=f.n(Eu);const Ou=(0,o.makeStyles)((e=>({container:{height:"16px",borderColor:(0,o.fade)(e.palette.primary.main,.54)},label:{paddingLeft:"4px",paddingRight:"4px",fontSize:"10px",lineHeight:"11px",color:e.palette.primary.main}}))),Su=e=>{let{value:t=null,dataTypeDefinition:o,rich:i=!0}=e;const a=(0,r.useSelector)(y().selectors.getAttributePresentations),s=Ro().localeData().longDateFormat("L"),l=Ro().localeData().longDateFormat("LTS"),u=(0,r.useSelector)(y().selectors.getDateMask)||s,c=(0,r.useSelector)(y().selectors.getDateTimeMask)||s+" "+l,p=(0,Go.formatDataTypeValue)({attributePresentations:a,dataTypeDefinition:o,dateMask:u,dateTimeMask:c},t);return i&&(0,Go.isAttributeValueLink)(o,t)?n().createElement(Ui(),{target:"_blank",href:(0,Go.addProtocolToLink)(p),underline:"none"},p):p};Su.propTypes={value:a().any,dataTypeDefinition:a().object,rich:a().bool};const Cu=Su,_u=Ki(xu()),ku=e=>{let{className:t,attributeType:r,nonOvValues:o=[],nonOvTotal:i}=e;const a=Ou();if(!i)return null;const s=o.length?o.map(((e,t)=>n().createElement("div",{key:t},(0,Go.isComplexAttribute)(r)?(0,Go.getLabel)(e.label):n().createElement(Cu,{value:(0,Go.getAttributeValue)(e),dataTypeDefinition:(0,Go.getAttrDataTypeDefinition)(r),rich:!1})))):null;return n().createElement(_u,{tooltipTitle:s,tooltipPlacement:"top",label:`+ ${i}`,variant:"outlined",classes:{root:l()(a.container,t),label:a.label}})};ku.propTypes={className:a().string,nonOvTotal:a().number,attributeType:Go.AttributeTypeType,nonOvValues:a().arrayOf(a().oneOfType([Go.SimpleAttributeValueType,Go.NestedAttributeValueType,Go.ReferenceAttributeValueType]))};const Tu=ku,Pu=n().createContext({appearance:void 0,attributes:void 0,roles:void 0,tags:void 0});Pu.displayName="HistoryDiffContext";const Au=(e,t)=>{const n=(0,Go.getAttributeSource)(e);return t.reduce(((t,r)=>{for(const o in r){const i=(e[n]||[]).find((e=>e.uri===o));return Array.isArray(r[o])&&"object"==typeof r[o][0]?t=(t||[]).concat(Au(i,r[o])):(t.push(Du(r[o],i)),t)}}),[])},Du=(e,t)=>e&&e.length&&!(0,u.isNil)(e[0])&&""!==e[0]?{fieldName:(0,Go.attributeUriToSearchUri)(t.uri),filter:t.type===Go.DataTypes.TYPE_BLOB?Go.FilterOptions.FULL_TEXT:Go.FilterOptions.EQUALS,values:e}:{fieldName:(0,Go.attributeUriToSearchUri)(t.uri),filter:"missing"},ju=(e,t,n,r)=>{const o=((e,t)=>{const n=t.find((t=>t.uri===e.uri));return n&&Array.isArray(n.children)?n.children:[]})(e,n);let i=(null==e?void 0:e.attributes)||(null==e?void 0:e.analyticsAttributes)||[];return o.length&&(i=i.filter((e=>o.includes(e.uri)))),i.reduce(((e,o)=>{const i=Lu(t[o.name],r,n);return i&&i.length&&(Array.isArray(i[0])?e.push({[o.uri]:i[0]}):e.push({[o.uri]:i})),e}),[])},Lu=(e,t,n)=>{if(e&&0!==e.length)return e.reduce(((e,r)=>{if("type"in r&&r.type){const o="lookupCode"in r?r.lookupCode:r.value,i=(0,Go.findAttributeTypeByUri)(t,r.type);o&&"object"!=typeof o&&(0,Go.isOv)(r)?e.push(Iu(o,i)):o&&"object"==typeof o&&!Array.isArray(o)&&e.push(ju(i,o,n,t))}return e}),[])},Iu=(e,t)=>{switch(null==t?void 0:t.type){case Go.DataTypes.TYPE_DATE:return new Date(e).getTime();case Go.DataTypes.TYPE_TIMESTAMP:return isNaN(Number(e))?new Date(e).getTime():new Date(Number(e)).getTime();default:return e}};function Mu(){return Mu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mu.apply(this,arguments)}const Nu=e=>n().createElement("svg",Mu({width:11,height:11,viewBox:"0 0 11 11"},e),n().createElement("path",{d:"M2.514 5h2.314V3l2.5 2.5-2.5 2.5V6h-3.8a4.5 4.5 0 10.73-3H.6a5.5 5.5 0 11-.577 3H0V5H2.514z",fill:"#6CACE4",stroke:"none",strokeWidth:1,fillRule:"evenodd"})),Ru=(0,o.makeStyles)((e=>({container:{backgroundColor:"white",width:"360px",minWidth:"360px",maxWidth:"720px"},header:{display:"flex",height:"48px",alignItems:"center",justifyContent:"space-between",paddingLeft:"16px"},title:{color:e.palette.text.primary,fontSize:"16px",letterSpacing:"0.15px",lineHeight:"19px"},entityTypeLabel:{color:"rgba(0,0,0,0.67)",fontSize:"14px",paddingLeft:"16px",paddingBottom:"12px",lineHeight:"16px"},divider:{height:"24px",width:"1px",backgroundColor:"rgba(0,0,0,0.12)"},headerCount:{color:e.palette.text.secondary,fontSize:"14px",letterSpacing:"0.24px",lineHeight:"28px",width:"210px"},body:{borderBottom:"1px solid rgba(0,0,0,0.12)",padding:"0 16px 8px"},footer:{display:"flex",alignItems:"center",height:"31px",paddingLeft:"16px",color:e.palette.primary.main,fontSize:"13px",letterSpacing:"0",lineHeight:"15px"},profileIcon:{height:"16px",width:"16px"},entityContainer:{display:"flex",flexDirection:"row",alignItems:"center"},entityLabel:{color:e.palette.primary.main,fontSize:"13px",letterSpacing:"0",lineHeight:"15px",textDecoration:"none",paddingLeft:"8px"},icon:{margin:"auto 8px auto 0"},content:{color:e.palette.primary.main},seeAllButton:{cursor:"pointer"}}))),Fu=(0,o.makeStyles)({tooltip:{backgroundColor:"white",boxShadow:"0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.2)",padding:0,borderRadius:"4px",maxWidth:"none"},arrow:{"&::before":{backgroundColor:"white"}}});function zu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vu=e=>{let{value:o,attributeType:i,config:a={}}=e;const[s,l]=(0,t.useState)([]),[u,c]=(0,t.useState)(0),d=(0,r.useSelector)(y().selectors.getEntity)||{},f=Jo(),h=(0,r.useDispatch)(),m=Ru(),g=(0,r.useSelector)(y().selectors.getGlobalSearchRequestOptions)||{},b=a.entityType||d.type,w=u>6;(0,t.useEffect)((()=>{const e=function(e,t){let n=[{fieldName:"type",filter:"equals",values:[arguments.length>2&&void 0!==arguments[2]?arguments[2]:""]}];return Array.isArray(e)?n=n.concat(Au(t,e)):n.push(Du([e],t)),n}(o,i,b),t=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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zu(e,t,n[t])}))}return e}({max:6},g);f(Promise.all([(0,Go.getFilteredEntities)(e,t),(0,Go.getTotals)(e,t)])).then((e=>{const[t,{total:n}]=e;l(Array.isArray(t)?t:[]),c(n)})).catch((()=>{l([]),c(0)}))}),[]);const E=Boolean(a.label);return n().createElement("div",{className:m.container},n().createElement("div",{className:m.header},n().createElement("div",{className:m.title},p().text("Pivot profiles")),n().createElement("div",{className:m.divider}),n().createElement("div",{className:m.headerCount},p().number(u,"0,0")+" "+(1===u?p().text("item"):p().text("items")))),E&&n().createElement("div",{className:m.entityTypeLabel},a.label),n().createElement("div",{className:m.body},s.map((e=>n().createElement("div",{key:e.uri,className:m.entityContainer},n().createElement(si,{entity:e,avatarClassName:m.profileIcon}),n().createElement(pa,{className:m.entityLabel,value:(0,Go.getEntityUriForLink)(e)},(0,Go.getLabel)(e.label)))))),w&&n().createElement("div",{className:m.footer},n().createElement("a",{className:m.seeAllButton,onClick:()=>{const e=Array.isArray(o)?(e=>e.map((e=>Object.fromEntries(Object.entries(e).map((e=>{let[t,n]=e;return[(0,Go.getLastUriPart)(t),n]}))))))(o):((e,t)=>[{[e.name]:t}])(i,o);h(v.ui.actions.openPivotingPerspective({value:e,attributeType:i}))}},p().text("See all"))))},Uu=e=>{let{value:o,attributeType:i,children:a,className:s}=e;const l=Fu(),c=Ru(),p=(0,t.useContext)(Yl)||[],d=(0,Go.isNested)(i),f=(0,r.useSelector)(y().selectors.getMetadata)||{},h=d?ju(i,o.value,p,f):Iu(o.lookupCode||o.value,i),m=p.some((e=>{let{uri:t}=e;return t===i.uri}))&&(Array.isArray(h)&&h.length||!Array.isArray(h)&&!(0,u.isNil)(h)),g=p.find((e=>{let{uri:t}=e;return t===i.uri}));return m?n().createElement(oi(),{interactive:!0,arrow:!0,placement:"right-start",classes:l,title:n().createElement(Vu,{value:h,attributeType:i,config:g.popup})},n().createElement("span",{className:s},n().createElement(Nu,{className:c.icon}),n().createElement("span",{className:c.content},a))):n().createElement(n().Fragment,null,a)};let Bu;!function(e){e.insertAttribute="insertAttribute",e.updateAttribute="updateAttribute",e.deleteAttribute="deleteAttribute"}(Bu||(Bu={}));const Hu={[Bu.insertAttribute]:{color:"#599E0E"},[Bu.updateAttribute]:{backgroundColor:"rgba(255, 187, 0, 0.12)",color:"#CC7500"},[Bu.deleteAttribute]:{backgroundColor:"rgba(255, 50, 0, 0.2)",color:"#CF0E26"}},Wu=e=>{switch(e){case"UPDATE_ATTRIBUTE":return Bu.updateAttribute;case"UNDO_IGNORE_ATTRIBUTE":case"INSERT_ATTRIBUTE":return Bu.insertAttribute;case"IGNORE_ATTRIBUTE":case"DELETE_ATTRIBUTE":return Bu.deleteAttribute;default:return""}},Gu="/",qu=(0,u.pipe)((0,u.split)(Gu),(0,u.propSatisfies)((0,u.lte)(2),"length")),Yu=(0,u.pipe)((0,u.split)(Gu),(0,u.slice)(0,-2),(0,u.join)(Gu)),$u=(0,u.curry)(((e,t)=>(0,u.cond)([[(0,u.has)(e),(0,u.prop)(e)],[()=>qu(e),$u(Yu(e))]])(t))),Ku=e=>(0,u.pipe)(u.keys,(0,u.any)((0,u.startsWith)(e+Gu))),Zu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$u(e,t);return(0,u.isNil)(n)?Ku(e)(t)?"UPDATE_ATTRIBUTE":"":n},Xu=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==r||null===(n=r[e])||void 0===n?void 0:n[t]};function Qu(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ju(e,t,n[t])}))}return e}function Ju(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ec=(0,o.makeStyles)({root:{display:"flex",alignItems:"start",justifyContent:"space-between"},commentsContainer:{height:"15px",marginRight:"-4px"},attributeValue:{flex:1,wordBreak:"break-all"},updateAttribute:Qu({width:"fit-content",padding:"0 4px",marginLeft:"-4px"},Hu[Bu.updateAttribute],{"& > a":{color:Hu[Bu.updateAttribute].color}}),insertAttribute:Qu({width:"fit-content"},Hu[Bu.insertAttribute],{"& > a":{color:Hu[Bu.insertAttribute].color}}),deleteAttribute:Qu({width:"fit-content",padding:"0 4px",marginLeft:"-4px",textDecoration:"line-through"},Hu[Bu.deleteAttribute],{"& > a":{color:Hu[Bu.deleteAttribute].color}}),multilineAttribute:{width:"fit-content"}}),tc=e=>{let{className:r,attributeType:o=null,attributeValue:i,inlined:a}=e;const s=ec(),{appearance:u}=(0,t.useContext)(Pu),c=Zu(i.uri,u),p=Wu(c),d=n().createElement(Cu,{value:(0,Go.getAttributeValue)(i),dataTypeDefinition:(0,Go.getAttrDataTypeDefinition)(o)});return a||p?n().createElement("div",{className:r},n().createElement(Uu,{value:i,attributeType:o,key:i.uri,className:l()({[s.multilineAttribute]:!a})},n().createElement("span",{className:s[p]},d))):n().createElement("div",{className:l()(r,s.root,Oi)},n().createElement(Uu,{value:i,attributeType:o,key:i.uri},n().createElement("span",{className:s.attributeValue},d)),n().createElement(Al,{className:s.commentsContainer,uri:i.uri,relatedObjectUris:(0,Go.createRelatedObjectUris)(Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE,{uri:i.uri}),objectType:Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE}))};var nc=f(8989);const rc=(0,o.makeStyles)({expandButton:{"&:hover":{backgroundColor:"transparent"}},expandIcon:{transition:"transform .15s ease"},expanded:{transform:"rotate(90deg)"}});function oc(){return oc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(this,arguments)}const ic=e=>{const t=rc(),{expanded:r,className:o}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["expanded","className"]);return n().createElement(aa,oc({icon:nc.Z,size:"XXS",disableRipple:!0,iconClassName:l()(t.expandIcon,{[t.expanded]:r}),className:l()(o,t.expandButton)},i))},ac=(0,o.makeStyles)({complexContainer:{marginTop:"1px"},labelContainer:{display:"flex",minHeight:"18px"},label:{fontSize:"13px",lineHeight:"15px",letterSpacing:"normal",paddingTop:"1px",marginLeft:"2px"},spacer:{flex:1}}),sc=e=>{let{attributeTypesList:r,attributeValue:o,label:i,expanded:a=!1,children:s,showNonOv:u}=e;const c=ac(),p=o.uri,[d,f]=(0,t.useState)(!1);(0,t.useEffect)((()=>{f(a)}),[a]);const h=(r||[]).some((e=>(0,Go.isAnalyticAttribute)(e))),m=(0,t.useMemo)((()=>({attributes:h?null:o.value,analyticsAttributes:h?o.value:null})),[o,h]);return n().createElement("div",{className:c.complexContainer},n().createElement("div",{className:l()(c.labelContainer,Oi)},n().createElement(ic,{onClick:()=>f((e=>!e)),expanded:d}),n().createElement(A(),{component:"span",variant:"body2",classes:{body2:c.label}},i),n().createElement("div",{className:c.spacer}),n().createElement(Al,{uri:o.uri,relatedObjectUris:(0,Go.createRelatedObjectUris)(Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE,{uri:o.uri}),objectType:Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE})),d&&n().createElement(LS,{attrTypes:r,entity:m,drawLines:!0,parentUri:p,showNonOv:u},s))};sc.propTypes={children:a().node,label:a().oneOfType([a().string,a().node]),attributeTypesList:a().arrayOf(Go.AttributeTypeType),attributeValue:a().oneOfType([Go.NestedAttributeValueType,Go.ReferenceAttributeValueType]),expanded:a().bool,showNonOv:a().bool};const lc=sc;function uc(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cc(e,t,n[t])}))}return e}function cc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pc=(0,o.makeStyles)({label:{textDecoration:"none"},updateAttribute:uc({width:"fit-content",padding:"0 4px",marginLeft:"-4px"},Hu[Bu.updateAttribute]),insertAttribute:uc({width:"fit-content"},Hu[Bu.insertAttribute]),deleteAttribute:uc({width:"fit-content",textDecoration:"line-through",padding:"0 4px",marginLeft:"-4px"},Hu[Bu.deleteAttribute]),pivotingTooltip:{marginLeft:"4px"}});function dc(){return dc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dc.apply(this,arguments)}const fc=e=>{let{attributeValue:r,attributeType:o}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["attributeValue","attributeType"]);const a=pc(),{appearance:s}=(0,t.useContext)(Pu),u=(0,t.useMemo)((()=>{const e=Zu(r.uri,s),t=Wu(e),i=r.label?r.label:(0,Go.evaluateDeepEntityLabel)(r,o.dataLabelPattern);return n().createElement(Uu,{className:a.pivotingTooltip,value:r,attributeType:o},n().createElement(Fi(),{component:"span",className:l()(a[t],a.label)},(0,Go.getLabel)(i)))}),[s,a,r,o]);return n().createElement(lc,dc({label:u,attributeValue:r,attributeTypesList:(0,Go.getAttributeTypeSubAttributes)({},o)},i))};fc.propTypes=Go.NestedAttributeType;const hc=(0,t.memo)(fc);function mc(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gc(e,t,n[t])}))}return e}function gc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vc=(0,o.makeStyles)((e=>({label:{color:e.palette.primary.main,textDecoration:"none"},relationshipLabel:{marginLeft:"4px",color:e.palette.text.primary},updateAttribute:mc({width:"fit-content",padding:"0 4px",marginLeft:"-4px"},Hu[Bu.updateAttribute]),insertAttribute:mc({width:"fit-content"},Hu[Bu.insertAttribute]),deleteAttribute:mc({width:"fit-content",textDecoration:"line-through",padding:"0 4px",marginLeft:"-4px"},Hu[Bu.deleteAttribute])})));function yc(){return yc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yc.apply(this,arguments)}const bc=e=>{let{attributeValue:r,metadata:o,attributeType:i,uiPath:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["attributeValue","metadata","attributeType","uiPath"]);const u=vc(),c=(0,Go.getReferencedEntityUriFromAttrValue)(r),p=(0,t.useMemo)((()=>(0,Go.getAttributeTypeSubAttributes)(o,i)),[i,o]),{appearance:d}=(0,t.useContext)(Pu),f=(0,t.useMemo)((()=>{const e=Zu(r.uri,d),t=Wu(e);return n().createElement("a",{href:(0,Go.isEmptyValue)(d)?(0,Go.getEntityLink)({uiPath:a,uri:c}):void 0,className:l()(u.label,u[t])},(0,Go.getLabel)(r.label),r.relationshipLabel&&n().createElement("span",{className:u.relationshipLabel},r.relationshipLabel))}),[r.uri,r.label,r.relationshipLabel,d,c,u,a]);return n().createElement(lc,yc({attributeTypesList:p,attributeValue:r,label:f},s))};bc.propTypes=Go.ReferenceAttributeType;const wc=(0,t.memo)(bc),Ec=(0,r.connect)((e=>({metadata:y().selectors.getMetadata(e),uiPath:y().selectors.getUIPath(e)})))(wc),xc=e=>{const{attributeType:t}=e;return class{static build(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e.type){case Go.DataTypes.TYPE_NESTED:return n().createElement(hc,t);case Go.DataTypes.TYPE_REFERENCE:return n().createElement(Ec,t);default:return n().createElement(tc,t)}}}.build(t,e)},Oc=e=>{let{value:t,nonVisibleValues:r,attributeType:o,titleClassName:i,contentClassName:a,showNonOv:s,totalNonVisibleValues:u}=e;const c=hu(),{label:p}=o;return n().createElement("div",{className:l()(c.collaborationWrapper,Oi)},n().createElement("div",{className:l()(c.titleRow,c.wrapper)},n().createElement(wu,{label:p,className:l()(c.title,i),attributeType:o}),n().createElement(Tu,{nonOvValues:r,attributeType:o,className:c.ovIcon,nonOvTotal:u}),n().createElement(xc,{className:l()(c.attribute,a),attributeValue:t,attributeType:o,showNonOv:s,inlined:!0})),n().createElement(Al,{uri:t.uri,relatedObjectUris:(0,Go.createRelatedObjectUris)(Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE,{uri:t.uri}),objectType:Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE}))};var Sc=f(4426);const Cc=(0,o.makeStyles)({link:{display:"flex",marginTop:4},"svg-icon__root":{fontSize:"1rem"}}),_c=e=>{let{moreNumber:t,valueNumber:r,onClick:o}=e;const i=Cc();return n().createElement(Ui(),{component:"button",variant:"caption",className:i.link,onClick:o,underline:"none"},n().createElement(Sc.Z,{className:i["svg-icon__root"]}),t&&r?p().text("Show ${moreNumber} more of remaining ${valueNumber} value",{moreNumber:t,valueNumber:r}):p().text("Show more"))};var kc=f(6971);const Tc=e=>{let{onClick:t}=e;const r=Cc();return n().createElement(Ui(),{component:"button",variant:"caption",className:r.link,onClick:t,underline:"none"},n().createElement(kc.Z,{className:r["svg-icon__root"]}),p().text("Show less"))},Pc=e=>{let{max:r,values:o,nonVisibleValues:i,totalVisibleValues:a,attributeType:s,parentUri:c,requestNextPageOfAttributeValues:p,titleClassName:d,contentClassName:f,showNonOv:h,totalNonVisibleValues:m}=e;const g=mu(),[v,y]=(0,t.useState)(r),b=r<a,w=b&&v<a,E=b&&v>=a,{label:x}=s,O=o.slice(0,v),S=a-v;return n().createElement("div",{className:g.wrapper},n().createElement("div",{className:g.titleRow},n().createElement(wu,{label:x,className:l()(g.title,d),attributeType:s}),n().createElement(Tu,{nonOvValues:i,attributeType:s,className:g.ovIcon,nonOvTotal:m})),n().createElement("div",{className:g.attributes},O.map((e=>n().createElement(xc,{key:e.uri,className:l()(g.attribute,f),attributeValue:e,attributeType:s,showNonOv:h})))),w&&n().createElement(_c,{moreNumber:(0,u.min)(r,S),valueNumber:S,onClick:()=>{o.length<a&&p({parentUri:c,attributeTypeUri:s.uri,attributeTypeName:s.name,values:o,defaultMaxValues:r}),y(v+r)}}),E&&n().createElement(Tc,{onClick:()=>{y(r)}}))};var Ac=f(79);function Dc(){return Dc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}const jc=e=>n().createElement("svg",Dc({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),n().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n().createElement("path",{d:"M0 0h24v24H0z"}),n().createElement("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zm-4.5-9l2.5 3.096V18H5l4.5-5.5 2.5 3.01L16.5 10zm-8-4a1.5 1.5 0 110 3 1.5 1.5 0 010-3z",fillOpacity:.12,fill:"#000",fillRule:"nonzero"}))),Lc=(0,o.makeStyles)((e=>({root:{position:"relative"},image:e=>{let{imageWidth:t,imageHeight:n}=e;return{width:t,height:n,objectFit:"cover",verticalAlign:"bottom"}},defaultContainer:{display:"flex",alignItems:"center",backgroundColor:"rgb(247, 247, 247)"},defaultImage:{width:"40px",height:"40px",marginLeft:"auto",marginRight:"auto",color:e.palette.text.secondary},hideImage:{display:"none"}})));function Ic(){return Ic=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ic.apply(this,arguments)}const Mc="loading",Nc="loaded",Rc="error",Fc={SMALL:{imageWidth:114,imageHeight:114},MEDIUM:{imageWidth:162,imageHeight:162},LARGE:{imageWidth:192,imageHeight:192},OVERRIDE:{imageWidth:"unset",imageHeight:"unset"}},zc=(0,t.memo)((e=>{const{src:r,className:o,containerClassName:i,size:a=Fc.SMALL,overlay:s=null}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["src","className","containerClassName","size","overlay"]),c=a||Fc.SMALL,p=Lc(c),[d,f]=(0,t.useState)(Mc);(0,t.useEffect)((()=>{f(Mc)}),[r]);const h=d===Mc,m=d===Nc;return d===Rc?n().createElement("div",Ic({className:l()(p.defaultContainer,p.image,o)},u),n().createElement(Ac.Z,{className:p.defaultImage})):n().createElement("div",{className:l()(p.root,i)},!(0,Go.isEmptyValue)(r)&&n().createElement("img",Ic({src:r,className:l()(p.image,o,{[p.hideImage]:h}),onLoad:()=>{f(Nc)},onError:()=>{f(Rc)},alt:"image"},u)),h&&n().createElement("div",Ic({className:l()(p.defaultContainer,p.image,o)},u),n().createElement(jc,{className:p.defaultImage})),m&&s)}));var Vc=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}()}(),Uc="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Bc=void 0!==f.g&&f.g.Math===Math?f.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Hc="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Bc):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},Wc=["top","right","bottom","left","width","height","size","weight"],Gc="undefined"!=typeof MutationObserver,qc=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&&s()}function a(){Hc(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,20);o=e}return s}(this.refresh.bind(this))}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(){Uc&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Gc?(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(){Uc&&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;Wc.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Yc=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},$c=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Bc},Kc=ep(0,0,0,0);function Zc(e){return parseFloat(e)||0}function Xc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Zc(e["border-"+n+"-width"])}),0)}var Qc="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof $c(e).SVGGraphicsElement}:function(e){return e instanceof $c(e).SVGElement&&"function"==typeof e.getBBox};function Jc(e){return Uc?Qc(e)?function(e){var t=e.getBBox();return ep(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Kc;var r=$c(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]=Zc(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=Zc(r.width),l=Zc(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=Xc(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Xc(r,"top","bottom")+a)),!function(e){return e===$c(e).document.documentElement}(e)){var u=Math.round(s+i)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return ep(o.left,o.top,s,l)}(e):Kc}function ep(e,t,n,r){return{x:e,y:t,width:n,height:r}}var tp=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ep(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Jc(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}(),np=function(e,t){var n,r,o,i,a,s,l,u=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),Yc(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);Yc(this,{target:e,contentRect:u})},rp=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Vc,"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 $c(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new tp(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 $c(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 np(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}(),op="undefined"!=typeof WeakMap?new WeakMap:new Vc,ip=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=qc.getInstance(),r=new rp(t,n,this);op.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ip.prototype[e]=function(){var t;return(t=op.get(this))[e].apply(t,arguments)}}));const ap=void 0!==Bc.ResizeObserver?Bc.ResizeObserver:ip,sp=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},lp="object"==typeof global&&global&&global.Object===Object&&global;var up="object"==typeof self&&self&&self.Object===Object&&self;const cp=lp||up||Function("return this")(),pp=function(){return cp.Date.now()};var dp=/\s/;var fp=/^\s+/;const hp=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&dp.test(e.charAt(t)););return t}(e)+1).replace(fp,""):e},mp=cp.Symbol;var gp=Object.prototype,vp=gp.hasOwnProperty,yp=gp.toString,bp=mp?mp.toStringTag:void 0;var wp=Object.prototype.toString;var Ep=mp?mp.toStringTag:void 0;const xp=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ep&&Ep in Object(e)?function(e){var t=vp.call(e,bp),n=e[bp];try{e[bp]=void 0;var r=!0}catch(e){}var o=yp.call(e);return r&&(t?e[bp]=n:delete e[bp]),o}(e):function(e){return wp.call(e)}(e)};var Op=/^[-+]0x[0-9a-f]+$/i,Sp=/^0b[01]+$/i,Cp=/^0o[0-7]+$/i,_p=parseInt;const kp=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==xp(e)}(e))return NaN;if(sp(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=sp(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=hp(e);var n=Sp.test(e);return n||Cp.test(e)?_p(e.slice(2),n?2:8):Op.test(e)?NaN:+e};var Tp=Math.max,Pp=Math.min;const Ap=function(e,t,n){var r,o,i,a,s,l,u=0,c=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){return u=e,s=setTimeout(g,t),c?f(e):a}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-u>=i}function g(){var e=pp();if(m(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return p?Pp(n,i-(e-u)):n}(e))}function v(e){return s=void 0,d&&r?f(e):(r=o=void 0,a)}function y(){var e=pp(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return h(l);if(p)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=kp(t)||0,sp(n)&&(c=!!n.leading,i=(p="maxWait"in n)?Tp(kp(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},y.flush=function(){return void 0===s?a:v(pp())},y};var Dp={debounce:Ap,throttle:function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return sp(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ap(e,t,{leading:r,maxWait:t,trailing:o})}},jp=function(e){return"function"==typeof e},Lp=function(){return"undefined"==typeof window};function Ip(e){return Ip="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},Ip(e)}function Mp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Np(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rp(e,t){return Rp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rp(e,t)}function Fp(e,t){return!t||"object"!==Ip(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zp(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Vp(e){return Vp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vp(e)}var Up=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rp(e,t)}(i,e);var t,n,r,o=(t=i,function(){var e,n=Vp(t);if(zp()){var r=Vp(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Fp(this,e)});function i(){return Mp(this,i),o.apply(this,arguments)}return n=i,(r=[{key:"render",value:function(){return this.props.children}}])&&Np(n.prototype,r),i}(t.PureComponent);const Bp=Up;function Hp(e){return Hp="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},Hp(e)}function Wp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gp(e,t){return Gp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gp(e,t)}function qp(e,t){return!t||"object"!==Hp(t)&&"function"!=typeof t?Yp(e):t}function Yp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Kp(e){return Kp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kp(e)}function Zp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gp(e,t)}(s,e);var r,o,i,a=(r=s,function(){var e,t=Kp(r);if($p()){var n=Kp(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return qp(this,e)});function s(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Zp(Yp(n=a.call(this,e)),"cancelHandler",(function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)})),Zp(Yp(n),"rafClean",(function(){n.raf&&n.raf.cancel&&(n.raf.cancel(),n.raf=null)})),Zp(Yp(n),"toggleObserver",(function(e){var t=n.getElement();t&&n.resizeObserver[e]&&n.resizeObserver[e](t)})),Zp(Yp(n),"getElement",(function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(!Lp()){if(t)return document.querySelector(t);if(r&&((o=r)instanceof Element||o instanceof HTMLDocument))return r;var o,i=n.element&&(0,Q.findDOMNode)(n.element);if(i)return i.parentElement}})),Zp(Yp(n),"createUpdater",(function(){return n.rafClean(),n.raf=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r}((function(e){var t=e.width,r=e.height,o=n.props.onResize;jp(o)&&o(t,r),n.setState({width:t,height:r})})),n.raf})),Zp(Yp(n),"createResizeHandler",(function(e){var t=n.state,r=t.width,o=t.height,i=n.props,a=i.handleWidth,s=i.handleHeight;if(a||s){var l=n.createUpdater();e.forEach((function(e){var t=e&&e.contentRect||{},i=t.width,u=t.height,c=a&&r!==i||s&&o!==u;!n.skipOnMount&&c&&!Lp()&&l({width:i,height:u}),n.skipOnMount=!1}))}})),Zp(Yp(n),"onRef",(function(e){n.element=e})),Zp(Yp(n),"getRenderType",(function(){var e=n.props,r=e.render,o=e.children;return jp(r)?"renderProp":jp(o)?"childFunction":(0,t.isValidElement)(o)?"child":Array.isArray(o)?"childArray":"parent"})),Zp(Yp(n),"getTargetComponent",(function(){var e=n.props,r=e.render,o=e.children,i=e.nodeType,a=n.state,s={width:a.width,height:a.height};switch(n.getRenderType()){case"renderProp":return(0,t.cloneElement)(r(s),{key:"resize-detector"});case"childFunction":return(0,t.cloneElement)(o(s));case"child":return(0,t.cloneElement)(o,s);case"childArray":return o.map((function(e){return!!e&&(0,t.cloneElement)(e,s)}));default:return(0,t.createElement)(i)}}));var r=e.skipOnMount,o=e.refreshMode,i=e.refreshRate,l=e.refreshOptions;n.state={width:void 0,height:void 0},n.skipOnMount=r,n.raf=null,n.element=null,n.unmounted=!1;var u=Dp[o];return n.resizeHandler=u?u(n.createResizeHandler,i,l):n.createResizeHandler,n.resizeObserver=new ap(n.resizeHandler),n}return o=s,(i=[{key:"componentDidMount",value:function(){this.toggleObserver("observe")}},{key:"componentWillUnmount",value:function(){this.toggleObserver("unobserve"),this.rafClean(),this.cancelHandler(),this.unmounted=!0}},{key:"render",value:function(){return n().createElement(Bp,{ref:this.onRef},this.getTargetComponent())}}])&&Wp(o.prototype,i),s}(t.PureComponent);Xp.propTypes={handleWidth:i.bool,handleHeight:i.bool,skipOnMount:i.bool,refreshRate:i.number,refreshMode:i.string,refreshOptions:(0,i.shape)({leading:i.bool,trailing:i.bool}),querySelector:i.string,targetDomEl:i.any,onResize:i.func,render:i.func,children:i.any,nodeType:i.node},Xp.defaultProps={handleWidth:!1,handleHeight:!1,skipOnMount:!1,refreshRate:1e3,refreshMode:void 0,refreshOptions:void 0,querySelector:null,targetDomEl:null,onResize:null,render:void 0,children:null,nodeType:"div"};const Qp=Xp,Jp=n().createContext(!1);Jp.displayName="BlockImageGalleryDialogContext";var ed=f(5203),td=f(5762);const nd=(0,o.makeStyles)((e=>({root:{display:"flex",alignContent:"center",flexDirection:"column"},main:{position:"relative",padding:"0 86px",marginTop:"auto"},mainImageContainer:{display:"flex",alignContent:"center",height:"100%",width:"100%"},mainImage:{maxWidth:"calc(100vw - 512px)",maxHeight:"calc(100vh - 192px)",margin:"0 auto",userSelect:"none"},arrowButton:{backgroundColor:e.palette.divider,color:"white","&:hover":{backgroundColor:e.palette.divider}},arrowButtonPrev:{position:"absolute",top:"50%",left:"16px",transform:"translateY(-50%)"},arrowButtonNext:{position:"absolute",top:"50%",right:"16px",transform:"translateY(-50%)"}}))),rd=window["material-ui"].Grid;var od=f.n(rd);const id=(0,o.makeStyles)((()=>({thumbnails:{marginLeft:"12px",marginBottom:"12px",marginTop:"auto",width:"calc(100vw - 364px)",overflowX:"auto",overflowY:"hidden"},gridContainer:{width:"100%"},thumb:{width:"96px",height:"96px",cursor:"pointer",userSelect:"none"},inactiveThumb:{filter:"brightness(0.5)"}}))),ad=e=>{let{attributeValues:r,setAttributeValueIndex:o,attributeValueIndex:i}=e;const a=id(),s=(0,t.useRef)(null);return(0,t.useEffect)((()=>{if(null!=s&&s.current){const e=s.current.scrollLeft,t=s.current.offsetWidth+e,n=96*i+16*i+12;t<n?s.current.scroll&&(n>t+96+16?s.current.scroll(n,0):s.current.scroll(112+e,0)):e+96>n&&s.current.scroll&&s.current.scroll(n-96,0)}}),[i,s]),n().createElement("div",{ref:s,className:a.thumbnails},n().createElement(od(),{container:!0,wrap:"nowrap",direction:"row",spacing:1,className:a.gridContainer},r.map(((e,t)=>{let{uri:r,value:s}=e;return n().createElement(od(),{item:!0,key:r},n().createElement(zc,{onClick:()=>o(t),className:l()(a.thumb,{[a.inactiveThumb]:i!==t}),src:(0,Go.getImageAttributeOvThumbnailUrl)({value:s})}))}))))},sd=e=>{let{className:t,attributeValues:r,attributeValueIndex:o,setAttributeValueIndex:i}=e;const a=nd(),s=r[o],u=(0,Go.getImageAttributeOvPreviewUrl)(s);return n().createElement("div",{className:l()(a.root,t)},n().createElement("div",{className:a.main},o>0&&n().createElement(aa,{icon:ed.Z,className:l()(a.arrowButton,a.arrowButtonPrev),onClick:()=>{i(o-1)},size:"XL"}),n().createElement(zc,{containerClassName:a.mainImageContainer,className:a.mainImage,size:u&&Fc.OVERRIDE,src:u}),o!==r.length-1&&n().createElement(aa,{icon:td.Z,className:l()(a.arrowButton,a.arrowButtonNext),onClick:()=>{i(o+1)},size:"XL"})),n().createElement(ad,{attributeValues:r,attributeValueIndex:o,setAttributeValueIndex:i}))},ld=window["material-ui"].Checkbox;var ud=f.n(ld);const cd=window["material-ui"].FormControlLabel;var pd=f.n(cd);const dd=window["material-ui"].Divider;var fd=f.n(dd);const hd=(0,o.makeStyles)({moreAttributes:{display:"flex",paddingBottom:"6px","&$dense":{padding:0}},dense:{},popupContainer:{},moreAttributesPopup:{"&$popupContainer":{}},moreButton:{padding:"9px 16px 9px 12px",backgroundColor:"rgba(98, 2, 238, 0)"},buttonLabel:{fontSize:"14px",fontWeight:500,lineHeight:"16px"},icon:{fontSize:"18px",marginRight:"8px"}}),md=(0,o.makeStyles)((()=>({container:e=>{let{containerHeight:t=553,containerWidth:n}=e;return{display:"flex",flexDirection:"column",height:t,width:n,flexGrow:1}},header:{marginLeft:"16px",marginTop:"16px",marginBottom:"12px",fontSize:"16px",fontWeight:500,letterSpacing:"0.15px",lineHeight:"24px"},searchInputContainer:{margin:"0 16px 12px 16px",flexShrink:"0"},list:{flexGrow:1,height:0,overflow:"hidden",width:"100%",position:"relative","& ul":{paddingBottom:0,paddingTop:0}}}))),gd=md,vd=window["material-ui"].Input;var yd=f.n(vd),bd=f(7685),wd=f(1853);const Ed=(0,o.makeStyles)((()=>({container:e=>{let{height:t=36}=e;return{height:t,borderRadius:"2px",alignItems:"center",backgroundColor:"rgba(0,0,0,0.03)",minWidth:"100px"}},icon:{opacity:.67,marginLeft:"10px",marginRight:"6px"},input:{fontSize:"13px",width:"100%"},clearButton:{marginRight:"10px"},white:{backgroundColor:"rgb(255, 255, 255)",boxShadow:"0 1px 3px 0 rgba(0,0,0,0.24)"}})));function xd(){return xd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xd.apply(this,arguments)}function Od(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=r.concat(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 in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cd=(0,t.memo)((e=>{let{value:r,autofocus:o,onSearch:i=Ko,rootRef:a,classes:s={},height:c}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","autofocus","onSearch","rootRef","classes","height"]);const f=Ed({height:c}),[h,m]=(0,t.useState)(""),g=(0,u.pipe)((0,u.tap)(i),m),v=(0,u.isNil)(r)?h:r;return n().createElement(yd(),xd({startAdornment:n().createElement(Pn(),{position:"start"},n().createElement(wd.Z,{className:f.icon})),endAdornment:n().createElement(Pn(),{position:"end"},v.length>0&&n().createElement(aa,{icon:bd.default,className:f.clearButton,onClick:()=>g("")})),autoFocus:o,classes:Od({},s,{input:l()(f.input,s.input),root:l()(f.container,s.root)}),placeholder:p().text("Search"),value:v,onChange:(0,u.pipe)(Yo,g),disableUnderline:!0,ref:a},d))}));const _d=e=>{let{title:t,className:r,onSearch:o,hideTitle:i,hideSearchInput:a,headerPlacement:s="top",containerWidth:u,containerHeight:c,searchInputOnKeyDown:d,children:f,searchInputRef:h}=e,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","className","onSearch","hideTitle","hideSearchInput","headerPlacement","containerWidth","containerHeight","searchInputOnKeyDown","children","searchInputRef"]);const g=gd({containerWidth:u,containerHeight:c}),v=n().createElement(n().Fragment,null,!i&&n().createElement("div",{className:g.header},t),!a&&n().createElement(Cd,{onSearch:o,autofocus:!0,onKeyDown:d,inputRef:h,classes:{root:g.searchInputContainer},placeholder:p().text("Search & add attributes"),height:40}));return n().createElement(Cn(),m,n().createElement("div",{className:l()(g.container,r),style:{width:u}},"top"===s&&v,n().createElement("div",{className:g.list},f),"bottom"===s&&v))};_d.propTypes={className:a().string,title:a().string,headerPlacement:a().oneOf(["top","bottom"]),onSearch:a().func,searchInputOnKeyDown:a().func,containerWidth:a().number,containerHeight:a().number,hideTitle:a().bool,hideSearchInput:a().bool,searchInputRef:a().shape({current:a().instanceOf(Element)}),children:a().node},_d.defaultProps={anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};const kd=_d,Td=window["material-ui"].ListItem;var Pd=f.n(Td);const Ad=window["material-ui"].ListItemText;var Dd=f.n(Ad);const jd=window["material-ui"].RootRef;var Ld=f.n(jd);function Id(){return Id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function Md(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Nd(e,t,n[t])}))}return e}function Nd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rd=(0,o.makeStyles)((e=>({tooltip:e.tooltip,popper:{zIndex:1e4}}))),Fd=e=>{let{children:r,value:o,className:i,showOnExceededWidth:a=!0,showOnExceededHeight:s}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","value","className","showOnExceededWidth","showOnExceededHeight"]);const u=(0,t.useRef)(),c=Rd(),[p,d]=(0,t.useState)(!1),f=()=>d(((e,t,n)=>e&&(t&&e.clientWidth<e.scrollWidth||n&&e.clientHeight<e.scrollHeight))(u.current,a,s));return(0,t.useEffect)(f,[s,a,o]),n().createElement(n().Fragment,null,n().createElement(Qp,{handleWidth:a,handleHeight:s,onResize:f}),n().createElement(Ld(),{rootRef:u},n().createElement(oi(),Id({title:p?o:"",classes:Md({},c,{tooltip:i})},l),r)))},zd={children:a().node,value:a().node,className:a().string,showOnExceededWidth:a().bool,showOnExceededHeight:a().bool};Fd.propTypes=zd;const Vd=Fd;function Ud(){return Ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ud.apply(this,arguments)}const Bd=e=>n().createElement("svg",Ud({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),n().createElement("path",{d:"M14 11v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v1a1 1 0 01-1 1H6a1 1 0 01-1-1v-4a1 1 0 011-1h4a1 1 0 011 1v1h3z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}));function Hd(){return Hd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hd.apply(this,arguments)}const Wd=e=>n().createElement("svg",Hd({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),n().createElement("path",{d:"M10 18h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1H8V8H6a1 1 0 01-1-1V3a1 1 0 011-1h6a1 1 0 011 1v4a1 1 0 01-1 1h-2v3h3v-1a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-1h-3v5z",fill:"#000",stroke:"none",strokeWidth:1,fillRule:"evenodd"}));function Gd(){return Gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gd.apply(this,arguments)}const qd=e=>n().createElement("svg",Gd({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),n().createElement("rect",{fill:"#000",x:9,y:9,width:6,height:6,rx:1,stroke:"none",strokeWidth:1,fillRule:"evenodd"})),Yd=(0,o.makeStyles)({container:{"& > $marginWrapper:first-child":{paddingLeft:"4px"}},listItem:{paddingLeft:"1px",paddingTop:"2px",paddingBottom:"2px",transition:"none","&:hover":{"& $itemAfter":{background:"linear-gradient(to right, rgba(235, 235, 235, 0.2), rgba(235, 235, 235, 1) 100%)"}},"&$listItemFocus":{"& $itemAfter":{background:"linear-gradient(to right, rgba(219, 219, 219, 0.2), rgba(219, 219, 219, 1) 100%)"}},"&:focus":{outline:"none"}},listItemFocus:{},icon:{opacity:.29,width:"16px",height:"16px",flexShrink:0,marginRight:"6px",marginLeft:"8px"},recommendedIcon:{width:"18px",height:"18px",marginRight:"5px",marginLeft:"7px",flexShrink:0},logoIcon:{width:"18px",height:"18px",flexShrink:0,marginRight:"4px"},itemAfter:{position:"absolute",right:0,top:0,width:"40px",height:"100%",pointerEvents:"none",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)"},itemText:{padding:"0",margin:0,"& span":{fontSize:"0.8125rem",letterSpacing:"normal",whiteSpace:"nowrap"}},checkbox:{opacity:.34,padding:0,marginLeft:"14px","&$checked":{opacity:1,background:"none"}},checked:{},marginWrapper:{display:"flex",alignItems:"center"},defaultCursor:{cursor:"default"},itemTooltip:{margin:"4px 0"},marginText:{marginLeft:"21px"},itemTextWrapper:{display:"flex",alignItems:"center"}}),$d=e=>{let{attrType:t={}}=e;const r=Yd(),o=(e=>{switch(e.type){case Go.DataTypes.TYPE_IMAGE:case Go.DataTypes.TYPE_NESTED:return Bd;case Go.DataTypes.TYPE_REFERENCE:return Wd;default:return qd}})(t);return n().createElement(o,{className:r.icon})},Kd=e=>{let{margin:t,level:r,className:o,children:i}=e;return null!=r?n().createElement("div",{style:{marginLeft:r*t},className:o},i):i};function Zd(){return Zd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zd.apply(this,arguments)}const Xd=Ki((e=>n().createElement("svg",Zd({width:13,height:18,viewBox:"0 0 13 18",xmlns:"http://www.w3.org/2000/svg"},e),n().createElement("g",{transform:"translate(-3 -1)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n().createElement("path",{fill:"#FF4081",d:"M5.833 10h3.75v6.667l-3.75 1.666z"}),n().createElement("path",{fill:"#CE0C4E",d:"M13.333 10v8.333l-3.75-1.666V10z"}),n().createElement("circle",{fill:"#FFC058",cx:9.583,cy:7.917,r:6.25}),n().createElement("circle",{fill:"#FFCD7B",cx:9.583,cy:7.917,r:5.417}),n().createElement("path",{fill:"#FFFBB5",d:"M8.333 11.667L5 8.462l.933-.898 2.4 2.308L13.4 5l.933.897z"}))))),Qd=(0,t.memo)((e=>{let{groupId:t,data:r,checked:o=!1,isFocused:i=!1,isRequired:a=!1,label:s,labelInText:u,level:c,onClick:d=Ko,hideCheckBox:f=!1,hideIcon:h=!1,notSelectable:m=!1,disableHorizontalScrollbar:g=!1,style:v={},subItemMargin:y=20,LogoIcon:b,className:w}=e;const E=Yd(),{attrType:x}=r||{},O=!(f&&(0,Go.isNested)(x)||m),S=!!b;return n().createElement(Vd,{value:u||s,className:E.itemTooltip,placement:"bottom-end"},n().createElement(Pd(),{className:l()(E.container,E.listItem,{[E.defaultCursor]:!O},w),onClick:O?()=>d(r,!o,t):void 0,style:v,dense:!0,button:O,classes:{focusVisible:E.listItemFocus,selected:E.listItemFocus},selected:i,tabIndex:-1},!f&&n().createElement(ud(),{checked:o,disableRipple:!0,disabled:!O,className:l()(E.checkbox,{[E.checked]:o}),tabIndex:-1}),n().createElement(Kd,{margin:y,level:c,className:E.marginWrapper},n().createElement(n().Fragment,null,!h&&(e=>"recommended"===t?n().createElement(Xd,{className:E.recommendedIcon,tooltipTitle:p().text("Recommended"),showForDisabled:!0}):n().createElement($d,{attrType:e}))(x),n().createElement("div",{className:l()(E.itemTextWrapper,{[E.marginText]:h})},S&&n().createElement(b,{className:E.logoIcon}),n().createElement(Dd(),{primary:n().createElement(n().Fragment,null,s,a&&n().createElement(vu,null)),className:E.itemText})))),O&&g&&n().createElement("div",{className:E.itemAfter})))}));function Jd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ef(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}const tf=function(e,t){var n;void 0===t&&(t=ef);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};var nf="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function rf(e){cancelAnimationFrame(e.id)}var of=null;function af(e){if(void 0===e&&(e=!1),null===of||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?of="positive-descending":(t.scrollLeft=1,of=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),of}return of}var sf=function(e,t){return e};function lf(e){var n,r,o=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,s=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,u=e.getStopIndexForStartIndex,c=e.initInstanceProps,p=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return r=n=function(e){function n(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,Jd(Jd(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Jd(Jd(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=tf((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=tf((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,s=r.itemSize,l=r.layout,u=n._getItemStyleCache(p&&s,p&&l,p&&i);if(u.hasOwnProperty(e))t=u[e];else{var c=o(n.props,e,n._instanceProps),d=a(n.props,e,n._instanceProps),f="horizontal"===i||"horizontal"===l,h="rtl"===i,m=f?c:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:c,height:f?"100%":d,width:f?d:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=tf((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(af()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){var e,t,r,o;null!==n._resetIsScrollingTimeoutId&&rf(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=(e=n._resetIsScrolling,t=150,r=nf(),o={id:requestAnimationFrame((function n(){nf()-r>=t?e.call(null):o.id=requestAnimationFrame(n)}))})},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}An(n,e),n.getDerivedStateFromProps=function(e,t){return uf(e,t),d(e),null};var r=n.prototype;return r.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},r.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(s(this.props,e,t,r,this._instanceProps))},r.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},r.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(af()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},r.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&rf(this._resetIsScrollingTimeoutId)},r.render=function(){var e=this.props,n=e.children,r=e.className,o=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,p=e.itemData,d=e.itemKey,f=void 0===d?sf:d,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,w=this.state.isScrolling,E="horizontal"===o||"horizontal"===h,x=E?this._onScrollHorizontal:this._onScrollVertical,O=this._getRangeToRender(),S=O[0],C=O[1],_=[];if(c>0)for(var k=S;k<=C;k++)_.push((0,t.createElement)(n,{data:p,key:f(k,p),index:k,isScrolling:y?w:void 0,style:this._getItemStyle(k)}));var T=i(this.props,this._instanceProps);return(0,t.createElement)(m||g||"div",{className:r,onScroll:x,ref:this._outerRefSetter,style:me({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},(0,t.createElement)(l||u||"div",{children:_,ref:s,style:{height:E?"100%":T,pointerEvents:w?"none":void 0,width:E?T:"100%"}}))},r._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},r._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=l(this.props,a,this._instanceProps),c=u(this.props,s,a,this._instanceProps),p=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,s-p),Math.max(0,Math.min(t-1,c+d)),s,c]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var uf=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},cf=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=r(l);o[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},pf=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=cf(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},df=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},ff=lf({getItemOffset:function(e,t,n){return cf(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:df,getOffsetForIndexAndAlignment:function(e,t,n,r,o){var i=e.direction,a=e.height,s=e.layout,l=e.width,u="horizontal"===i||"horizontal"===s?l:a,c=cf(e,t,o),p=df(e,o),d=Math.max(0,Math.min(p-u,c.offset)),f=Math.max(0,c.offset-u+c.size);switch("smart"===n&&(n=r>=f-u&&r<=d+u?"auto":"center"),n){case"start":return d;case"end":return f;case"center":return Math.round(f+(d-f)/2);default:return r>=f&&r<=d?r:r<f?f:d}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?pf(e,t,o,0,n):function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&cf(e,n,t).offset<r;)n+=i,i*=2;return pf(e,t,Math.min(n,o-1),Math.floor(n/2),r)}(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=cf(e,t,r),p=n+u,d=c.offset+c.size,f=t;f<a-1&&d<p;)f++,d+=cf(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});const hf=(0,o.makeStyles)({stickyTitlesWrapper:{position:"absolute",top:0,"& > div":{zIndex:1,position:"absolute",top:0,width:"100%",visibility:"hidden"}}}),mf=e=>e.titleItemIndex===e.index,gf=e=>{let{items:r,getItemSize:o,renderItem:i,renderGroupTitle:a,width:s="100%",height:l,fixedTitle:u=!0,itemKey:c=(e=>e),disableHorizontalScrollbar:p,hideSubtitles:d,focusIndex:f=null,onInnerContainerResize:h}=e;const m=hf(),g=(0,t.useRef)(null),v=(0,t.useRef)(null),y=(0,t.useRef)(null),b=(0,t.useRef)([0]),w={topMargin:0},E=(0,t.useMemo)((()=>!d||(r||[]).some((e=>null!==e.titleItemIndex))),[r,d]),x=(0,t.useCallback)((e=>{const t=b.current.length;let n=0;r.slice(t-1,e+1).forEach(((e,r)=>{const i=t+r-1;r>0&&(b.current[i]=b.current[i-1]+n),n=o(i,e.item)}))}),[o,r]),O=(0,t.useCallback)((e=>r[e].titleItemIndex),[r]),S=(0,t.useCallback)((e=>r[e]),[r]);(0,t.useEffect)((()=>{requestAnimationFrame((()=>{g.current&&g.current.scrollTo(0)}))}),[r.length]),(0,t.useEffect)((()=>{g.current&&g.current.resetAfterIndex(0),C();const e=(e=>{const t=e.findIndex((e=>e.item.moveTo));if(t>-1){x(t);const e=O(t);return{offset:b.current[t],titleHeight:o(e,S(e).item)}}})(r);if(e&&e.offset&&g.current){const{titleHeight:t}=e,n=e.offset-t;(n<g.current.state.scrollOffset||n>g.current.state.scrollOffset+l)&&requestAnimationFrame((()=>{g.current&&g.current.scrollTo(n-(l-t)/2)}))}}),[x,S,o,O,l,b,r,g]);const C=()=>{y.current&&v.current&&(y.current.style.width=v.current.offsetWidth+"px")},_=(0,t.useCallback)((e=>{let t=null,n=0;return r.some(((r,o)=>{x(o+10);const i=b.current[o+1];return e>=n&&e<i&&(t={index:o,offset:n,listItem:r}),n=i,t})),t}),[x,b,r]),k=(0,t.useCallback)((e=>o(e,S(e).item)),[S,o]),T=(0,t.useCallback)((e=>{let{index:t,style:n,data:r}=e;const o=S(t);return o.item&&(mf(o)&&a(n,o.item)||i(n,o.item,t,r))}),[S,a,i]),{handleOnItemsRendered:P}=(e=>{let{focusIndex:n,listRef:r,items:o}=e;const i=(0,t.useRef)(null),a=(0,t.useRef)(null),s=(0,t.useCallback)((e=>{let{visibleStartIndex:t,visibleStopIndex:n}=e;i.current=t,a.current=n}),[]);return(0,t.useEffect)((()=>{r.current&&null!==n&&0!==o.length&&(n<Math.max(i.current+3,0)?r.current.scrollToItem(Math.max(n-3,0),"start"):n>Math.min(a.current-3,o.length-1)&&r.current.scrollToItem(Math.min(n+3,o.length-1),"end"))}),[n,o.length,r]),{handleOnItemsRendered:s}})({items:r,focusIndex:f,listRef:g}),A=(0,t.useCallback)((()=>r.filter((e=>mf(e))).map((e=>(e=>n().createElement("div",{className:"stickyTitleItem",style:{visibility:"hidden"},"data-index":e.index,key:e.index},a({height:o(e.index,e.item)},e.item)))(e)))),[o,r,a]);return n().createElement(n().Fragment,null,n().createElement("div",{ref:y,className:m.stickyTitlesWrapper},u&&A()),h&&v.current&&n().createElement(Qp,{handleHeight:!0,onResize:h,targetDomEl:v.current}),n().createElement(ff,{ref:g,itemCount:r.length,itemSize:k,width:s,height:l,itemKey:c,innerRef:v,onScroll:e=>{let{scrollOffset:t,scrollDirection:n}=e;if(!u||!E)return;const i=_(t),a=i&&O(i.index);var s;null!==a&&(s=a,y.current&&[...y.current.querySelectorAll(".stickyTitleItem")].forEach((e=>{e.dataset.index===s.toString()?(e.style.visibility="visible",w.index=s):e.style.visibility="hidden"}))),C();const l=null!==a&&o(a,S(a).item),c=_(t+l+w.topMargin);let p=0;if(c){switch(n){case"forward":c.offset-t>0&&mf(c.listItem)&&(p=l-(c.offset-t));break;case"backward":{const e=a>-1&&(d=a,r.findIndex(((e,t)=>mf(e)&&d<t))),n=(e=>(x(e),b.current[e]))(e);e>-1&&t<n&&l>=n-t&&(p=l-(n-t))}}(e=>{y.current&&(w.topMargin=-e,y.current.style.top=-e+"px")})(p)}var d},style:p?{overflowX:"hidden"}:void 0,overscanCount:5,onItemsRendered:P},T))};gf.propTypes={items:a().arrayOf(a().object).isRequired,getItemSize:a().func.isRequired,renderItem:a().func.isRequired,width:a().oneOfType([a().number,a().string]),height:a().number.isRequired,renderGroupTitle:a().func,fixedTitle:a().bool,hideSubtitles:a().bool,itemKey:a().func,disableHorizontalScrollbar:a().bool,focusIndex:a().number,onInnerContainerResize:a().func};const vf=gf;var yf=f(5549);const bf=(0,o.makeStyles)({highlight:{fontWeight:600}}),wf=e=>{let{text:t="",highlight:r="",className:o}=e;const i=bf(),a=r&&t.split(new RegExp(`(${r})`,"gi"));return n().createElement("span",null,r?a.map(((e,t)=>n().createElement("span",{key:t,className:e.toLocaleLowerCase()===r.toLocaleLowerCase()?o||i.highlight:""},e))):t)},Ef=(0,u.curry)(((e,t)=>(0,u.filter)((t=>t.label.toLowerCase().includes(e.toLowerCase())))(t))),xf=e=>{let{label:r,popupTitle:o=r,data:i,dense:a,onApply:s}=e;const c=hd(),p=(0,t.useRef)(),[d,f]=(0,t.useState)(!1),[h,m]=(0,t.useState)(""),[g,v]=(0,t.useState)([]),y=(0,t.useCallback)(((e,t)=>{v((0,u.ifElse)((0,u.always)(t),(0,u.append)(e),(0,u.reject)((0,u.propEq)("id",e.id)))(g))}),[g]),b=(0,t.useMemo)((()=>(0,u.pipe)(Ef(h),(0,u.map)((e=>({item:{id:e.uri,label:e.label,attrType:e}}))))(i)),[i,h]),w=(0,t.useMemo)((()=>(e=>{const t=e=>(0,u.flatten)(e.map((e=>[e].concat(e.items?t(e.items):[]))));let n=null;return t(e).map(((e,t)=>(e&&e.items&&(n=t),{item:e,index:t,titleItemIndex:n})))})(b)),[b]),E=(0,t.useCallback)((()=>28),[]),x=(0,t.useCallback)((e=>{let{item:t}=e;y(t,(0,u.not)((0,u.any)((0,u.propEq)("id",t.id))(g)))}),[y,g]),{focusIndex:O,handleKeyDown:S}=(e=>{let{items:n,open:r,onSelectFocusedItem:o,selectedItems:i,onClose:a}=e;const[s,l]=(0,t.useState)(null),c=(0,t.useRef)(!1),p=(0,t.useCallback)((e=>{let t=null===e?p(-1):e;for(;null!==e&&t<n.length&&(t<=e||t>=0&&mf(n[t]));)t+=1;return t!==n.length?t:p(-1)}),[n]),d=(0,t.useCallback)((e=>{let t=null===e?n.length-1:e;for(;null!==e&&t>=0&&(t>=e||mf(n[t]));)t-=1;return t<0?n.length-1:t}),[n]),f=(0,t.useCallback)((()=>{if(!(0,u.isNil)(s)){const e=n[s].item;!e.item.notSelectable&&o({item:e.item,groupData:e})}}),[o,n,s]),h=(0,t.useCallback)((e=>{if(0!==n.length)switch(e.key){case"Down":case"ArrowDown":return l(p),e.preventDefault(),!1;case"Up":case"ArrowUp":return l(d),e.preventDefault(),!1;case"Enter":c.current=!0,f();break;case"Tab":a&&a(e);break;default:return}}),[n,p,d,f,a]);return(0,t.useEffect)((()=>{if(c.current){c.current=!1;const e=n.findIndex((e=>e.item.moveTo));e>-1&&l(e)}else l(null)}),[n,r,i]),{focusIndex:s,handleKeyDown:h}})({items:w,open:d,onSelectFocusedItem:x,selectedItems:g}),C=(0,t.useRef)(null);C.current=O;const _=Math.min(255,28*w.length),k=Math.max(140,_+112),T=(0,t.useCallback)(((e,t,r)=>{let{item:o,level:i=0}=t;const a=(0,u.any)((0,u.propEq)("id",o.id))(g),s=C.current===r;return n().createElement(Qd,{key:o.uri,onClick:y,checked:a,level:i,data:o,label:n().createElement(wf,{text:o.label,highlight:h}),labelInText:o.label,style:e,isFocused:s,isRequired:!!o.attrType.required,LogoIcon:o.LogoIcon})}),[h,y,g]);return n().createElement("div",{className:l()(c.moreAttributes,{[c.dense]:a})},n().createElement(j(),{color:"primary",onClick:()=>f(!d),ref:p,className:c.moreButton},n().createElement(yf.Z,{classes:{root:c.icon}}),n().createElement("div",{className:c.buttonLabel},r)),n().createElement(kd,{open:d,className:l()(c.moreAttributesPopup,c.popupContainer),anchorEl:p.current,onClose:(0,u.pipe)((()=>{g.length>0&&s((0,u.pluck)("attrType",g))}),(()=>f(!1)),(()=>m("")),(()=>v([]))),onSearch:m,containerHeight:k,title:o,containerWidth:320,searchInputOnKeyDown:S},n().createElement(vf,{getItemSize:E,renderItem:T,items:w,height:_,containerWidth:320,focusIndex:O})))};xf.propTypes={label:a().string,popupTitle:a().string,data:a().array,dense:a().bool,onApply:a().func};const Of=xf,Sf={get CreationTime(){return p().text("Creation Time")},get CreationDate(){return p().text("Creation Date")},get Dimensions(){return p().text("Dimensions")},get MimeType(){return p().text("Mime Type")},get Size(){return p().text("Size")},get Url(){return p().text("Full image URL (S3)")},get UrlPreview(){return p().text("Preview image URL (S3)")},get UrlThumbnail(){return p().text("Small image URL (S3)")},get CdnUrl(){return p().text("Full image URL (CDN)")},get CdnUrlPreview(){return p().text("Preview image URL (CDN)")},get CdnUrlThumbnail(){return p().text("Small image URL (CDN)")}},Cf=function(){let{value:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return["Url","UrlPreview","UrlThumbnail","CdnUrl","CdnUrlPreview","CdnUrlThumbnail","MimeType"].includes(t)?(0,u.path)([t,0,"value"],e):"CreationDate"===t&&(0,u.path)(["CreationTimestamp",0,"value"],e)?Ro()(e.CreationTimestamp[0].value).format("MM-DD-YYYY"):"CreationTime"===t&&(0,u.path)(["CreationTimestamp",0,"value"],e)?Ro()(e.CreationTimestamp[0].value).format("HH:mm:ss"):"Dimensions"===t&&(0,u.path)(["Height",0,"value"],e)&&(0,u.path)(["Width",0,"value"],e)?`${e.Height[0].value} x ${e.Width[0].value} ${p().text("pixels")}`:"Size"===t&&(0,u.path)(["Size",0,"value"],e)?`${(Number(e.Size[0].value)/1e3).toFixed(2)} KB`:void 0},_f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((e=>{let{system:t}=e;return!t}))},kf=(e,t)=>{const{includeNames:n=[],excludeNames:r=[],order:o=[]}=t,i=n.length?e.filter((e=>n.includes(e))):e.filter((e=>!r.includes(e)));return 0===o.length?i:i.sort(((e,t)=>{const n=o.indexOf(e),r=o.indexOf(t);return-1===n&&-1!==r?1:-1===r&&-1!==n?-1:n-r}))},Tf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=_f(t.attributes);return kf(Object.keys(e.value||{}),n).reduce(((t,n)=>{const o=r.find((e=>{let{name:t}=e;return t===n}));return o?[...t,{attrType:o,values:e.value[n]}]:t}),[])},Pf=e=>["Url","UrlPreview","UrlThumbnail","CdnUrl","CdnUrlPreview","CdnUrlThumbnail"].includes(e),Af=(0,o.makeStyles)({title:{marginBottom:"10px",color:"white",fontSize:"18px",lineHeight:"21px","&$canAdd":{marginBottom:"3px"}},divider:{width:"100%",height:"1px",background:"rgba(255,255,255,0.12)"},canAdd:{}}),Df=e=>{let{attributeType:r,onAddAttributes:o,uri:i}=e;const a=Af(),s=_f(r.attributes),u=Boolean(o);return n().createElement(Fi(),null,n().createElement(A(),{className:l()(a.title,{[a.canAdd]:u})},p().text("Meta info")),u&&n().createElement(t.Fragment,null,n().createElement(Of,{label:p().text("Attributes"),data:s,dense:!1,onApply:e=>{o&&o(e.map((e=>({attributeType:e,parentUri:i}))))}}),n().createElement(fd(),{className:a.divider})))},jf=(0,o.makeStyles)((e=>({root:{fontSize:"13px",letterSpacing:0,lineHeight:"15px",marginBottom:"11px"},title:{color:"rgba(255,255,255,0.54)",marginRight:"12px",float:"left"},content:{color:"rgba(255,255,255,0.87)",wordWrap:"break-word"},link:{color:e.palette.primary.main,textDecoration:"none"}}))),Lf=e=>{let{title:t,content:r,isLink:o,children:i}=e;const a=jf();return n().createElement("div",{className:a.root},n().createElement("span",{className:a.title},t),o?n().createElement("a",{className:a.link,href:r},p().text("link")):n().createElement("span",{className:a.content},r||i))},If=(0,o.makeStyles)({root:{padding:"10px 0"},title:{color:"rgba(255,255,255,0.54)",fontSize:"13px"},content:{color:"rgba(255,255,255,0.87)",wordWrap:"break-word"}}),Mf=e=>{let{attributeValue:t,attributeType:o,imageAttributeFieldsOrder:i}=e;const a=If(),s=(0,r.useSelector)(y().selectors.getIsViewMode),l=(u=t,c=i,kf(Object.keys(Sf),c).map((e=>Cf(u,e)?{title:Sf[e],value:Cf(u,e),isLink:Pf(e)}:null)).filter(Boolean));var u,c;const p=Tf(t,o,i);return n().createElement(Fi(),{className:a.root},l.map((e=>{let{title:t,value:r,isLink:o}=e;return n().createElement(Lf,{key:t,isLink:o,title:t,content:r})})),s&&p.map((e=>{let{attrType:r,values:o}=e;return n().createElement(jS,{key:r.uri,attributeType:r,drawLines:!1,values:o,titleClassName:a.title,contentClassName:a.content,parentUri:t.uri})})))};var Nf=f(4438),Rf=f(2669),Ff=f(1556);const zf=(0,o.makeStyles)((()=>({root:{fontSize:"24px",color:"#fff"}}))),Vf=e=>{let{checked:t,className:r,onClick:o}=e;const i=zf(),a=t?Ff.Z:Rf.Z;return n().createElement(a,{className:l()(i.root,r),onClick:o})};function Uf(){return Uf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uf.apply(this,arguments)}const Bf=e=>n().createElement("svg",Uf({width:18,height:18,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),n().createElement("defs",null,n().createElement("path",{d:"M19 16v3H5v-3H3v3c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-3h-2zm-6-3.33l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2v9.67z",id:"Download_svg__a"})),n().createElement("g",{transform:"translate(-3 -3)",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n().createElement("mask",{id:"Download_svg__b",fill:"#fff"},n().createElement("use",{xlinkHref:"#Download_svg__a"})),n().createElement("path",{fillOpacity:.54,fill:"#fff",mask:"url(#Download_svg__b)",d:"M0 0h24v24H0z"}))),Hf=(0,o.makeStyles)((()=>({overlay:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"0.2s linear all","&:not($selected):not($selectionMode):hover":{backgroundColor:"rgba(0,0,0,0.6)"},userSelect:"none"},selected:{backgroundColor:"rgba(0,114,206,0.6)"},selectionMode:{cursor:"pointer","&:not($selected)":{backgroundColor:"rgba(0,0,0,0.6)"}},button:{padding:0,width:"100px",height:"36px",color:"#fff",fontSize:"14px",fontWeight:500,lineHeight:"16px",border:"1px solid rgba(255,255,255,0.25)",backgroundColor:"rgba(98,2,238,0)"},checkedIcon:{position:"absolute",left:"4px",top:"4px",cursor:"pointer"},actions:{display:"flex",alignItems:"center",position:"absolute",top:"4px",right:"4px"},actionButton:{color:"#fff",fontSize:"24px"},dropDownMenuButton:{margin:"0 2px 0 8px"}}))),Wf=(0,t.memo)((e=>{const{id:r,canBeSelected:o=!1,selected:i=!1,selectionMode:a=!1,onDeselect:s=Ko,onSelect:c=Ko,onShareLink:d,onSetAsDefault:f,onDelete:h,onDownload:m=Ko,onClick:g}=e,v=Hf(),[y,b]=(0,t.useState)(!1),w=(0,t.useMemo)((()=>[{text:p().text("Share link"),onClick:d},{text:p().text("Set as default"),onClick:f},{text:p().text("Delete"),onClick:h}].filter((0,u.prop)("onClick"))),[d,f,h]),E=e=>()=>(0,u.ifElse)((0,u.equals)(!0),s,c)(e),x=o&&(i||y||a),O=!a&&!i&&y,S=o&&i;return n().createElement("div",{className:l()(v.overlay,{[v.selected]:i,[v.selectionMode]:a}),onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),onClick:a?E(i):e=>{e.currentTarget===e.target&&g()}},x&&n().createElement(Vf,{className:v.checkedIcon,checked:i,onClick:E(i)}),O&&n().createElement("div",{className:v.actions},n().createElement(aa,{onClick:m,className:v.actionButton,icon:Bf}),n().createElement(na,{menuId:`image-overlay-actions-${r}`,buttonComponent:aa,buttonProps:{icon:Bi.Z,className:l()(v.actionButton,v.dropDownMenuButton)},menuItems:w})),S&&n().createElement(j(),{className:v.button,variant:"outlined",onClick:s},p().text("Deselect")))}));var Gf=f(5680);function qf(e){var t=null;return function(){return null==t&&(t=e()),t}}function Yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n;return t=e,n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&Yf(t.prototype,n),e}(),Kf=qf((function(){return/firefox/i.test(navigator.userAgent)})),Zf=qf((function(){return Boolean(window.safari)}));function Xf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Qf=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,l=[],u=[],c=[],p=0;p<r-1;p++)a=t[p+1]-t[p],s=n[p+1]-n[p],u.push(a),l.push(s),c.push(s/a);for(var d=[c[0]],f=0;f<u.length-1;f++){var h=c[f],m=c[f+1];if(h*m<=0)d.push(0);else{a=u[f];var g=u[f+1],v=a+g;d.push(3*v/((v+g)/h+(v+a)/m))}}d.push(c[c.length-1]);for(var y,b=[],w=[],E=0;E<d.length-1;E++){y=c[E];var x=d[E],O=1/u[E],S=x+d[E+1]-y-y;b.push((y-x-S)*O),w.push(S*O*O)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=b,this.c3s=w}var t,n;return t=e,n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,u=i.length-1;l<=u;){var c=t[s=Math.floor(.5*(l+u))];if(c<e)l=s+1;else{if(!(c>e))return n[s];u=s-1}}var p=e-t[a=Math.max(0,u)],d=p*p;return n[a]+r[a]*p+o[a]*d+i[a]*p*d}}],n&&Xf(t.prototype,n),e}();function Jf(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function eh(e){return{x:e.clientX,y:e.clientY}}var th,nh="__NATIVE_FILE__",rh="__NATIVE_URL__",oh="__NATIVE_TEXT__";function ih(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function ah(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sh=(ah(th={},nh,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),ah(th,rh,{exposeProperties:{urls:function(e,t){return ih(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),ah(th,oh,{exposeProperties:{text:function(e,t){return ih(e,t,"")}},matchesTypes:["Text","text/plain"]}),th);function lh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var uh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&lh(t.prototype,n),e}();function ch(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(sh).filter((function(e){return sh[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function ph(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var dh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&ph(t.prototype,n),e}();function fh(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 hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fh(Object(n),!0).forEach((function(t){mh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var vh=function(){function t(e,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return Jf(r.sourceNodes.get(e))},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return r.document&&r.document.body&&document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=eh(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=ch(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=r.monitor.getSourceId(),s=r.sourceNodes.get(a),l=r.sourcePreviewNodes.get(a)||s;if(l){var u=r.getCurrentSourcePreviewNodeOptions(),c=function(e,t,n,r,o){var i,a,s="IMG"===(i=t).nodeName&&(Kf()||!document.documentElement.contains(i)),l=Jf(s?e:t),u={x:n.x-l.x,y:n.y-l.y},c=e.offsetWidth,p=e.offsetHeight,d=r.anchorX,f=r.anchorY,h=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return Zf()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(s,t,c,p),m=h.dragPreviewWidth,g=h.dragPreviewHeight,v=o.offsetX,y=o.offsetY,b=0===y||y;return{x:0===v||v?v:new Qf([0,.5,1],[u.x,u.x/c*m,u.x+m-c]).interpolate(d),y:b?y:(a=new Qf([0,.5,1],[u.y,u.y/p*g,u.y+g-p]).interpolate(f),Zf()&&s&&(a+=(window.devicePixelRatio-1)*g),a)}}(s,l,n,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});o.setDragImage(l,c.x,c.y)}}try{o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(i)r.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=ch(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;r.dragEnterTargetIds=[],r.monitor.isDragging()&&(r.altKeyPressed=e.altKey,Kf()||r.actions.hover(t,{clientOffset:eh(e)}),t.some((function(e){return r.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:eh(e)}),(t||[]).some((function(e){return r.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem()&&r.currentNativeSource.loadDataTransfer(e.dataTransfer),r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:eh(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new dh(n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new $f(this.isNodeInDocument)}var n,r;return n=t,(r=[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return hh({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return hh({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(e).some((function(n){return e[n]===t}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new uh(sh[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&gh(n.prototype,r),t}();const yh=function(e,t){return new vh(e,t)},bh=window["material-ui"].InputBase;var wh=f.n(bh);const Eh=(0,o.makeStyles)((e=>({root:{width:"328px"},paper:{width:"100%",height:"40px",display:"flex",alignItems:"center",boxShadow:"none",backgroundColor:"rgba(0,0,0,0.03)"},inputRoot:{flex:1},input:{padding:"0 12px",fontSize:"14px","&:placeholder":{color:e.palette.text.secondary}},errorMessage:{marginTop:"8px",fontSize:"12px",color:e.palette.error.main}}))),xh=e=>0===e.trim().length,Oh=e=>{let{onSend:r}=e;const o=Eh(),[i,a]=(0,t.useState)(""),[s,l]=(0,t.useState)(null);return n().createElement(Fi(),{className:o.root},n().createElement(Rn(),{className:o.paper},n().createElement(wh(),{value:i,onChange:e=>{const t=e.target.value,n=new RegExp(/^(ftp|http|https):\/\/[^ "]+$/).test(t);a(t),n||xh(t)?l(null):l(p().text("URL is not correct"))},classes:{root:o.inputRoot,input:o.input},placeholder:p().text("Paste an image URL here")}),n().createElement(j(),{disabled:Boolean(s)||xh(i),variant:"outlined",color:"primary",onClick:()=>{r(i),a(""),l(null)}},p().text("Send"))),s&&n().createElement(A(),{className:o.errorMessage},s))},Sh=["image/png","image/jpeg","image/tiff","image/gif","image/bmp"],Ch=e=>{let{className:t,onAppendFile:r}=e;return n().createElement(n().Fragment,null,n().createElement("input",{onInput:e=>{r&&r(e.currentTarget.files[0])},style:{display:"none"},accept:Sh.join(","),id:"upload-image-button",type:"file"}),n().createElement("label",{htmlFor:"upload-image-button"},n().createElement(j(),{className:t,variant:"contained",color:"primary",component:"span"},p().text("Select image"))))};function _h(){return _h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_h.apply(this,arguments)}const kh=e=>n().createElement("svg",_h({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),n().createElement("defs",null,n().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"UploadIcon_svg__c"},n().createElement("stop",{stopColor:"#FFF",offset:"0%"}),n().createElement("stop",{stopColor:"#FFF",stopOpacity:0,offset:"100%"})),n().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"UploadIcon_svg__d"},n().createElement("stop",{stopColor:"#FFF",offset:"0%"}),n().createElement("stop",{stopColor:"#FFF",stopOpacity:0,offset:"100%"})),n().createElement("linearGradient",{x1:"67.572%",y1:"54.952%",x2:"15.212%",y2:"13.907%",id:"UploadIcon_svg__e"},n().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),n().createElement("stop",{stopColor:"#000",offset:"100%"})),n().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"UploadIcon_svg__f"},n().createElement("stop",{stopColor:"#B8EDFF",offset:"0%"}),n().createElement("stop",{stopColor:"#53ACDE",offset:"100%"})),n().createElement("circle",{id:"UploadIcon_svg__a",cx:128,cy:128,r:128})),n().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n().createElement("mask",{id:"UploadIcon_svg__b",fill:"#fff"},n().createElement("use",{xlinkHref:"#UploadIcon_svg__a"})),n().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#UploadIcon_svg__a"}),n().createElement("g",{mask:"url(#UploadIcon_svg__b)"},n().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(-1 9)"},n().createElement("path",{d:"M0 107.268c0 35.579 28.703 64.409 64.173 64.409h139.021c29.578 0 53.497-24.035 53.497-53.635 0-28.356-21.935-51.562-49.705-53.515C199.577 27.705 167.2 0 128.346 0 97.425 0 70.59 17.582 57.171 43.274 25.027 46.767 0 74.117 0 107.268z",fill:"#FFF",opacity:.3}),n().createElement("ellipse",{fill:"url(#UploadIcon_svg__c)",opacity:.4,cx:64.553,cy:107.664,rx:61.43,ry:62.336}),n().createElement("path",{d:"M127.979 8.91c38.773 0 70.206 31.895 70.206 71.24 0 39.346-31.433 71.241-70.206 71.241-6.067 0-11.954-.78-17.57-2.249 9.688-11.019 15.574-25.551 15.574-41.478 0-33.7-26.352-61.153-59.286-62.299C78.714 23.611 101.654 8.91 127.98 8.91z",fill:"url(#UploadIcon_svg__d)",opacity:.4})),n().createElement("path",{fill:"url(#UploadIcon_svg__e)",opacity:.12,d:"M82.093 128.474l38.374 37.966-10.666 18.958 72.714 71.94 63.578-57.537v-6.11l-71.107-70.352H97.22z",transform:"translate(-1 9)"}),n().createElement("path",{fill:"url(#UploadIcon_svg__f)",d:"M151.004 128.29v57.591h-40.836V128.29H81l49.5-49.409L180 128.29z",transform:"translate(-1 9)"})))),Th=(0,o.makeStyles)((e=>({root:{padding:"36px 0 29px"},isActive:{backgroundColor:"rgba(0,114,206,0.12)"},icon:{width:"190px",height:"190px",marginBottom:"24px"},title:{marginBottom:"8px",color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px"},description:{marginBottom:"24px",color:e.palette.text.secondary,fontSize:"14px",lineHeight:"16px"}}))),Ph=e=>{let{onAppendFile:t,className:r}=e;const o=Th(),[{canDrop:i,isOver:a},s]=(0,Gf.useDrop)({accept:[nh],drop:e=>{e&&t(e.files[0])},collect:e=>({isOver:e.isOver(),canDrop:e.canDrop()})}),u=i&&a;return n().createElement("div",{ref:s,className:l()(o.root,{[o.isActive]:u},r)},n().createElement(kh,{className:o.icon}),n().createElement(A(),{className:o.title},p().text("Drag an image here")),n().createElement(A(),{className:o.description},p().text("Acceptable image types would include JPG, PNG, TIFF, GIF, BMP. Maximum image size: ${MAX_IMAGE_SIZE}Mb",{MAX_IMAGE_SIZE:20})),n().createElement(Ch,{onAppendFile:t}))},Ah=(0,o.makeStyles)((e=>({root:{width:"100%",display:"flex",alignItems:"center",padding:"0 30px",boxSizing:"border-box"},border:{borderBottom:`1px solid ${e.palette.text.primary}`,flex:1,opacity:.12},text:{padding:"0 10px",color:e.palette.text.secondary,fontSize:"14px",lineHeight:"16px"}}))),Dh=e=>{let{children:t,className:r}=e;const o=Ah();return n().createElement(Fi(),{className:l()(o.root,r)},n().createElement(Fi(),{className:o.border}),n().createElement(A(),{className:o.text},t),n().createElement(Fi(),{className:o.border}))},jh=window["material-ui"].Snackbar;var Lh=f.n(jh);const Ih=(0,o.makeStyles)({closeIcon:{color:"#fff"}}),Mh=e=>{let{error:t,onClose:r}=e;const o=Ih();return n().createElement(Lh(),{open:Boolean(t),onClose:r,message:t,action:n().createElement(sa,{className:o.closeIcon,tooltipTitle:p().text("Close"),icon:bd.default,onClick:r})})},Nh=(0,o.makeStyles)((e=>({root:{},dialogPaper:{position:"relative",maxWidth:"480px"},title:{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,letterSpacing:"0.25px",lineHeight:"24px",padding:"16px"},body:{display:"flex",flexDirection:"column",alignItems:"center",padding:"0 8px 49px",textAlign:"center"},targetBox:{marginBottom:"8px"},divider:{marginBottom:"28px"}}))),Rh=e=>{let{open:o,onClose:i,onUpload:a}=e;const s=Nh(),l=(0,r.useSelector)(y().selectors.getImageServicePath),u=(0,r.useSelector)(y().selectors.getEnvironment),c=(0,r.useSelector)(y().selectors.getTenant),[d,f]=(0,t.useState)(!1),[h,m]=(0,t.useState)(null),g=e=>{f(!0),(0,Go.uploadImage)({image:e,imageServicePath:l,environment:u,tenant:c}).then((e=>{a(e),i()})).catch((e=>m(e.errorMessage))).finally((()=>f(!1)))};return n().createElement(Gf.DndProvider,{backend:yh},n().createElement(On(),{open:o,onClose:i,classes:{paper:s.dialogPaper}},n().createElement(A(),{className:s.title},p().text("Add new image")),n().createElement(Fi(),{className:s.body},n().createElement(Ph,{className:s.targetBox,onAppendFile:e=>{const t=Number((e.size/1024/1024).toFixed(2)),n=Sh.includes(e.type);t>20?m(p().text("File size exceeds configured max file size.")):n?g(e):m(p().text("File format is not supported."))}}),n().createElement(Dh,{className:s.divider},p().text("or")),n().createElement(Oh,{onSend:e=>{g(e)}})),d&&n().createElement(Ho,null),n().createElement(Mh,{error:h,onClose:()=>m(null)})))},Fh={imageMargin:4,imageWidth:Fc.SMALL.imageWidth,imageHeight:Fc.SMALL.imageHeight},zh=(0,o.makeStyles)((()=>({root:{width:"100%",marginBottom:"10px"},image:e=>{let{imageMargin:t}=e;return{marginRight:t,cursor:"pointer","&:last-child":{marginRight:0}}},uploadContainer:e=>{let{imageMargin:t,imageWidth:n,imageHeight:r}=e;return{backgroundColor:"white",width:n,height:r,cursor:"pointer",border:"1px dashed #0072CE",boxSizing:"border-box",marginRight:t,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},uploadButton:{width:"50px",height:"50px"},uploadIcon:{fontSize:"36px"}}))),Vh=e=>{let{attributeType:o={},attributeValues:i=[],onDeleteAttribute:a,onChangeAttribute:s,requestNextPageOfAttributeValues:l,parentUri:u,paging:c,showNonOv:p,imageSize:d=Fh}=e;const f=zh(d),h=(0,r.useSelector)(y().selectors.getEntity)||{},m=(0,r.useSelector)((e=>y().selectors.getModifiedEntityDefaultProfilePic(e,h.uri))),g=(0,r.useDispatch)(),[b,w]=(0,t.useState)(!1),E=(0,t.useCallback)((()=>{w((e=>!e))}),[]),x=(0,t.useCallback)((e=>{const t=(0,Go.generateUri)(u,o.name),n={};for(const r in e){const i=(o.attributes||[]).find((e=>{let{name:t}=e;return t===r}));i&&(n[r]=[{uri:(0,Go.generateUri)(t,i.name),ov:!0,value:e[r],type:i.uri}])}s({attributeType:o,uri:t,value:n})}),[s,u,o]),O=(0,t.useCallback)((e=>{if(a(e),m===e.uri){var t;const n=(null===(t=i[0])||void 0===t?void 0:t.uri)===e.uri?i[1]:i[0];g(v.profile.modifiedEntities.actions.setDefaultProfilePic({entityUri:h.uri,value:n||{}}))}}),[a,h,m,i]),S=(e,t)=>{const{onOpenImageGalleryDialog:r,onDownload:i,onShareLink:a,onSetAsDefault:s}=e,l=(0,Go.getImageAttributeOvUrl)(t),{uri:u}=t;return n().createElement(Wf,{id:u,onShareLink:()=>a(l),onSetAsDefault:()=>s(t),onDelete:()=>O({uri:u,attributeType:o}),onDownload:()=>i([l]),onClick:()=>r(u)})};return n().createElement("div",{className:f.root},n().createElement(dS,{attributeValues:i,attributeType:o,renderImage:e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,Go.getImageAttributeOvThumbnailUrl)(t),{uri:o}=t,{onOpenImageGalleryDialog:i}=e;return n().createElement("div",{className:f.image,key:o},n().createElement(zc,{src:r,overlay:S(e,t),onClick:()=>i(o),size:{imageWidth:d.imageWidth,imageHeight:d.imageHeight}}))},overlay:!0,countFixedItems:1,onUpload:E,onDeleteAttribute:O,imageSize:d,requestNextPageOfAttributeValues:l,paging:c,parentUri:u,showNonOv:p},n().createElement("div",{className:f.uploadContainer,onClick:E},n().createElement(aa,{className:f.uploadButton,iconClassName:f.uploadIcon,icon:Nf.Z}))),n().createElement(Rh,{open:b,onUpload:x,onClose:E}))},Uh=(0,o.makeStyles)((e=>({wrapper:{width:"100%"},helperText:{margin:"3px 0 1px 12px"},caption:{display:"flex",color:e.palette.error.main,fontSize:"12px",lineHeight:"16px"}}))),Bh=e=>{let{className:t,message:r}=e;const o=Uh();return r?n().createElement(A(),{variant:"caption",className:l()(o.caption,t)},r):null};var Hh=f(2983);function Wh(){return Wh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wh.apply(this,arguments)}const Gh=e=>{let{value:t,onChange:r}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","onChange"]);return n().createElement(ud(),Wh({},o,{checked:t,onChange:r&&(0,u.pipe)($o,r)}))};Gh.propTypes={onChange:a().func,value:a().bool};const qh=Gh,Yh=(0,o.makeStyles)((e=>({checkbox_primary:{color:e.palette.divider},label:{color:e.palette.text.secondary}}))),$h=e=>{let{value:t,onChange:r,className:o}=e;const i=Yh();return n().createElement("div",{className:o},n().createElement(pd(),{classes:{label:i.label},control:n().createElement(qh,{classes:{root:i.checkbox_primary},color:"primary",value:!(0,u.isNil)(t)&&!!t,onChange:r}),label:p().text("Yes")}),n().createElement(pd(),{classes:{label:i.label},control:n().createElement(qh,{classes:{root:i.checkbox_primary},color:"primary",value:!(0,u.isNil)(t)&&!t,onChange:r&&(0,u.pipe)(u.not,r)}),label:p().text("No")}))};$h.propTypes={value:a().bool,onChange:a().func,className:a().string};const Kh=$h;function Zh(){return Zh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zh.apply(this,arguments)}const Xh=e=>n().createElement("svg",Zh({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),n().createElement("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z",fill:"currentColor",fillRule:"nonzero",stroke:"none",strokeWidth:1})),Qh=(0,o.makeStyles)((e=>({icon:{color:e.palette.text.secondary},iconButtonRoot:{padding:8},underline:{"&:after":{transform:"scaleX(1)"}},inputLabel:{color:e.palette.primary.main},adornedEnd:{paddingRight:4},adornmentPositionEnd:{marginLeft:"-10px"},inputRoot:{fontSize:"14px",letterSpacing:0,lineHeight:"16px",overflow:"hidden"}})));function Jh(){return Jh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jh.apply(this,arguments)}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=r.concat(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 in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nm=Ro().localeData().longDateFormat("L"),rm=e=>{var r;let{value:o=null,label:i,variant:a="filled",onChange:s,InputProps:c={},InputLabelProps:d={},onBlur:f=Ko,onFocus:h=Ko}=e,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","label","variant","onChange","InputProps","InputLabelProps","onBlur","onFocus"]);const g=Qh(),[v,y]=(0,t.useState)(!1);return n().createElement(bo,Jh({format:nm,variant:"inline",invalidDateMessage:p().text("Invalid Date Format"),maxDateMessage:p().text("Date should not be after maximal date"),minDateMessage:p().text("Date should not be before minimal date"),inputVariant:a,autoOk:!0,onBlur:f,onFocus:h,InputAdornmentProps:{position:"end",classes:{positionEnd:g.adornmentPositionEnd}},KeyboardButtonProps:{classes:{root:g.iconButtonRoot},onKeyPress:(0,u.invoker)(0,"stopPropagation")},keyboardIcon:n().createElement(Xh,{className:g.icon}),onChange:(0,Go.debounce)((0,u.when)(Go.utils.dates.isValidMomentDateOrNull,(0,u.pipe)(Go.utils.dates.momentToDate,Go.utils.dates.clearDateTime,s)),0),label:i,"aria-label":i,value:o,placeholder:p().text(nm),onClose:()=>y(!1),onOpen:()=>y(!0),InputProps:em({classes:{root:g.inputRoot,underline:l()({[g.underline]:v}),adornedEnd:g.adornedEnd},disableUnderline:(0,u.isNil)(o)},c),PopoverProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},InputLabelProps:em({classes:em({root:l()({[g.inputLabel]:v},null==d||null===(r=d.classes)||void 0===r?void 0:r.root)},null==d?void 0:d.classes),shrink:!(0,u.isNil)(i)},d)},m))};var om=f(8281);const im=(0,o.makeStyles)({multiSelect:{padding:"3px 48px 3px 8px !important",minHeight:"34px !important"},chips:{display:"flex",flexWrap:"wrap"}}),am=a().shape({prefix:a().string,suffix:a().string,thousandSeparator:a().string,decimalSeparator:a().string}),sm=a().oneOfType([a().string,a().number,a().object]),lm=a().shape({value:sm.isRequired,label:a().string}),um=a().shape({label:a().string.isRequired,values:a().arrayOf(a().object).isRequired}),cm=(a().shape({id:a().string,label:a().string,dataTypeDefinition:a().object,resizable:a().bool,sortable:a().bool,filterable:a().bool,headCellRenderer:a().func,rowCellValueRenderer:a().func,nestedPath:a().arrayOf(a().string)}),a().shape({field:a().string,order:Go.SortOrderType}),a().shape({value:a().oneOfType([Go.FilterValueType,a().arrayOf(Go.FilterValueType)]),filter:a().string}),a().arrayOf(a().shape({id:a().string,label:a().string,dataTypeDefinition:a().object}))),pm=a().arrayOf(a().shape({id:a().string,label:a().string,columns:cm})),dm=(a().oneOfType([cm,pm]),a().shape({title:a().string,pathToTitle:a().arrayOf(a().string),fieldName:a().string,entityTypeUri:a().string,attrType:Go.AttributeTypeType,uri:a().string,groupName:a().string})),fm=(a().shape({id:a().string,values:a().array,data:dm,filter:a().string,operator:a().string}),(0,o.makeStyles)({root:{height:"28px",backgroundColor:"rgba(43, 152, 240, 0.12)",maxWidth:"calc(100% - 4px)",margin:"2px"},deleteIcon:{height:18,width:18,color:"rgba(0,0,0,0.38)",marginRight:"8px"},label:{overflow:"hidden"}})),hm=(0,o.makeStyles)((e=>({container:{display:"flex",alignItems:"center",width:"100%"},label:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},count:{color:e.palette.text.secondary,fontSize:"13px",letterSpacing:0,lineHeight:"15px",marginLeft:8}})));function mm(){return mm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mm.apply(this,arguments)}const gm=e=>{let{classes:t={},label:r,count:o}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["classes","label","count"]);const a=fm(),s=hm();return n().createElement(xu(),mm({classes:Xo(t,a),label:n().createElement("div",{className:s.container},n().createElement(Vd,{value:r},n().createElement("div",{className:s.label},r)),o&&n().createElement("div",{className:s.count},o))},i))};gm.propTypes={classes:a().object,label:a().string,count:a().string};const vm=gm;function ym(){return ym=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ym.apply(this,arguments)}function bm(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wm(e,t,n[t])}))}return e}function wm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Em=e=>{let{multiple:t,value:r,children:o,getValueLabel:i=Ko,getValuePlaceholder:a=u.identity,onChange:s=Ko,fullWidth:c,TextFieldProps:p,MenuProps:d,classes:f}=e,h=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["multiple","value","children","getValueLabel","getValuePlaceholder","onChange","fullWidth","TextFieldProps","MenuProps","classes"]);const m=im();return n().createElement(kn(),ym({select:!0,fullWidth:c},p,{value:(0,u.defaultTo)(t?[]:"",r),onChange:(0,u.pipe)(Yo,s),SelectProps:bm({},h,{MenuProps:bm({getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"left"}},d),classes:bm({},f,{root:l()({[m.multiSelect]:t},(0,u.prop)("root",f))}),multiple:t,renderValue:e=>t?n().createElement("div",{className:m.chips},e.map(((t,r)=>n().createElement(vm,{key:t,label:i(t)||a(t),onMouseDown:e=>e.stopPropagation(),onDelete:()=>s((0,u.remove)(r,1,e))})))):i(e)||a(e)})}),o)};Em.propTypes={multiple:a().bool,fullWidth:a().bool,value:a().oneOfType([sm,a().arrayOf(sm)]),TextFieldProps:a().object,MenuProps:a().object,children:a().node,classes:a().object,onChange:a().func,getValueLabel:a().func,getValuePlaceholder:a().func};const xm=Em;function Om(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sm=(0,u.has)("values"),Cm=(0,u.curry)(((e,t)=>Sm(t)?[{label:t.label,depth:e,isGroup:!0},...(0,u.chain)(Cm(e+1),t.values)]: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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Om(e,t,n[t])}))}return e}({},t,{depth:e}))),_m=(0,u.chain)(Cm(0)),km=(0,u.curry)(((e,t)=>e.find((e=>{let{isGroup:n,value:r}=e;return!n&&r===t})))),Tm=(0,o.makeStyles)({checkIcon:{transform:"scale(.7)",marginLeft:"-25px",position:"absolute"},emptyLabel:{padding:"4px 16px"}}),Pm={variant:"filled",margin:"dense",hiddenLabel:!0},Am=(0,o.makeStyles)({filledInputUnderline:{"&:before":{display:"none"}},marginDense:{margin:0}}),Dm=(0,o.makeStyles)({root:{paddingRight:"48px !important"},icon:{right:"12px"}});function jm(){return jm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jm.apply(this,arguments)}function Lm(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=r.concat(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 in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mm=e=>{let{value:t,entries:r,classes:o}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","entries","classes"]);const a=_m(r),s=(0,u.isNil)(t)?[]:(0,Go.wrapInArrayIfNeeded)(t),c=Tm(),d=Dm();return n().createElement(xm,jm({MenuProps:{disableAutoFocusItem:!0},classes:Lm({},o,{root:l()(d.root,(0,u.prop)("root",o)),icon:l()(d.icon,(0,u.prop)("icon",o))})},i,{value:t,getValueLabel:(0,u.pipe)(km(a),(0,u.prop)("label"))}),a.length>0?a.map(((e,t)=>{let{value:r,label:o,depth:i,isGroup:a}=e;return n().createElement(qi(),{key:t,disabled:a,value:r,style:{paddingLeft:25*(i+1)+"px"}},s.includes(r)&&n().createElement(om.Z,{className:c.checkIcon}),o||r.toString())})):n().createElement(qi(),{className:c.emptyLabel,disabled:!0},p().text("No results found")))};Mm.propTypes={value:a().oneOfType([sm,a().arrayOf(sm)]),entries:a().arrayOf(a().oneOfType([lm,um])).isRequired,classes:a().object};const Nm=(0,u.curry)(((e,t)=>{const[n,...r]=t.split(e);return[n,r.join(e)]})),Rm=(0,u.useWith)(u.path,[Nm(".")]),Fm=(0,u.ascend)((0,u.prop)("label"));function zm(){return zm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zm.apply(this,arguments)}function Vm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Um=e=>{let{multiple:r,value:o,lookupCode:i,lookups:a,onChange:s,getLookups:l}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["multiple","value","lookupCode","lookups","onChange","getLookups"]);const p=e=>({lookupCode:e,value:(0,u.path)([i,e,"displayName"],a)});(0,t.useEffect)((()=>{(0,u.isEmpty)(a)&&l&&l()}),[a,l]);const d=((e,t)=>{const n=e=>{const{parent:r}=Rm(e,t);return r?n(r).concat(e):[e]},r=e=>{let[n,r]=e;const i=Rm(n,t),[,a]=Nm(".",n),s=(0,Go.getLookupLabel)(a,i.displayName);return i===r?{label:s,value:a}:{label:s,values:o(r)}},o=e=>Object.entries(e).map(r).sort(Fm),i=Object.entries(t[e]||[]).reduce(((t,r)=>{let[o,i]=r;return(0,u.assocPath)(n(`${e}.${o}`),i,t)}),{});return o(i)})(i,a),f=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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vm(e,t,n[t])}))}return e}({},c,{multiple:r,entries:d});return o=(0,u.defaultTo)(r?[]:{},o),r?n().createElement(Mm,zm({},f,{value:(0,u.pluck)("lookupCode",o),getValuePlaceholder:e=>o.find((0,u.propEq)("lookupCode",e)).value,onChange:(0,u.pipe)((0,u.map)(p),s)})):n().createElement(Mm,zm({},f,{value:(0,u.prop)("lookupCode",o),getValuePlaceholder:(0,u.always)((0,u.prop)("value",o)),onChange:(0,u.pipe)(p,s)}))};Um.propTypes={multiple:a().bool,value:a().oneOfType([Go.LookupValueType,a().arrayOf(Go.LookupValueType)]),lookupCode:a().string.isRequired,lookups:a().objectOf(a().objectOf(Go.SimpleLookupType)).isRequired,onChange:a().func,getLookups:a().func};const Bm=Um;function Hm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wm(){return Wm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wm.apply(this,arguments)}function Gm(e){return Gm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gm(e)}function qm(e,t){return qm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qm(e,t)}function Ym(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $m(){}function Km(){}Km.resetWarningCache=$m;var Zm=function(e,t){return function(e){e.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Km,resetWarningCache:$m};return n.PropTypes=n,n}()}(t={exports:{}}),t.exports}();function Xm(){}function Qm(e){return!!(e||"").match(/\d/)}function Jm(e){return null==e}function eg(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function tg(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),i=o[0],a=o[1]||"";return{beforeDecimal:i,afterDecimal:a,hasNagation:n,addNegation:r}}function ng(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function rg(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function og(e,t,n){return Math.min(Math.max(e,t),n)}function ig(e){return Math.max(e.selectionStart,e.selectionEnd)}var ag={thousandSeparator:Zm.oneOfType([Zm.string,Zm.oneOf([!0])]),decimalSeparator:Zm.string,allowedDecimalSeparators:Zm.arrayOf(Zm.string),thousandsGroupStyle:Zm.oneOf(["thousand","lakh","wan"]),decimalScale:Zm.number,fixedDecimalScale:Zm.bool,displayType:Zm.oneOf(["input","text"]),prefix:Zm.string,suffix:Zm.string,format:Zm.oneOfType([Zm.string,Zm.func]),removeFormatting:Zm.func,mask:Zm.oneOfType([Zm.string,Zm.arrayOf(Zm.string)]),value:Zm.oneOfType([Zm.number,Zm.string]),defaultValue:Zm.oneOfType([Zm.number,Zm.string]),isNumericString:Zm.bool,customInput:Zm.elementType,allowNegative:Zm.bool,allowEmptyFormatting:Zm.bool,allowLeadingZeros:Zm.bool,onValueChange:Zm.func,onKeyDown:Zm.func,onMouseUp:Zm.func,onChange:Zm.func,onFocus:Zm.func,onBlur:Zm.func,type:Zm.oneOf(["text","tel","password"]),isAllowed:Zm.func,renderText:Zm.func,getInputRef:Zm.oneOfType([Zm.func,Zm.shape({current:Zm.any})])},sg={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:Xm,onChange:Xm,onKeyDown:Xm,onMouseUp:Xm,onFocus:Xm,onBlur:Xm,isAllowed:function(){return!0}},lg=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?Ym(e):t}(this,Gm(t).call(this,e));var r=e.defaultValue;n.validateProps();var o=n.formatValueProp(r);return n.state={value:o,numAsString:n.removeFormatting(o),mounted:!1},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(Ym(n)),n.onKeyDown=n.onKeyDown.bind(Ym(n)),n.onMouseUp=n.onMouseUp.bind(Ym(n)),n.onFocus=n.onFocus.bind(Ym(n)),n.onBlur=n.onBlur.bind(Ym(n)),n}var r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qm(e,t)}(t,e),r=t,o=[{key:"componentDidMount",value:function(){this.setState({mounted:!0})}},{key:"componentDidUpdate",value:function(e){this.updateValueIfRequired(e)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.focusTimeout)}},{key:"updateValueIfRequired",value:function(e){var t=this.props,n=this.state,r=this.focusedElm,o=n.value,i=n.numAsString,a=void 0===i?"":i;if(e!==t){this.validateProps();var s=this.formatNumString(a),l=Jm(t.value)?s:this.formatValueProp(),u=this.removeFormatting(l),c=parseFloat(u),p=parseFloat(a);(isNaN(c)&&isNaN(p)||c===p)&&s===o&&(null!==r||l===o)||this.updateValue({formattedValue:l,numAsString:u,input:r})}}},{key:"getFloatString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.decimalScale,n=this.getSeparators(),r=n.decimalSeparator,o=this.getNumberRegex(!0),i="-"===e[0];i&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var a=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==a&&(e="".concat(e.substring(0,a),".").concat(e.substring(a+1,e.length).replace(new RegExp(eg(r),"g"),""))),i&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,i=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!i||0===o||t||r?"":"|"+eg(i)),e?"g":void 0)}},{key:"getSeparators",value:function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,r=t.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}}},{key:"getMaskAtIndex",value:function(e){var t=this.props.mask,n=void 0===t?" ":t;return"string"==typeof n?n:n[e]||" "}},{key:"getValueObject",value:function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}}},{key:"validateProps",value:function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,r=t.thousandSeparator;if(n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: ".concat(r,' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: ').concat(n," (default value for decimalSeparator is .)\n "));if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask ".concat(e," should not contain numeric character;\n "))}},{key:"setPatchedCaretPosition",value:function(e,t,n){rg(e,t),setTimeout((function(){e.value===n&&rg(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,i=r.suffix,a=r.format;if(""===e)return 0;if(t=og(t,0,e.length),!a){var s="-"===e[0];return og(t,o.length+(s?1:0),e.length-i.length)}if("function"==typeof a)return t;if("#"===a[t]&&Qm(e[t]))return t;if("#"===a[t-1]&&Qm(e[t-1]))return t;var l=a.indexOf("#");t=og(t,l,a.lastIndexOf("#")+1);for(var u=a.substring(t,a.length).indexOf("#"),c=t,p=t+(-1===u?0:u);c>l&&("#"!==a[c]||!Qm(e[c]));)c-=1;return!Qm(e[p])||"left"===n&&t!==l||t-c<p-t?Qm(e[c])?c+1:c:p}},{key:"getCaretPosition",value:function(e,t,n){var r,o,i=this.props.format,a=this.state.value,s=this.getNumberRegex(!0),l=(e.match(s)||[]).join(""),u=(t.match(s)||[]).join("");for(r=0,o=0;o<n;o++){var c=e[o]||"",p=t[r]||"";if((c.match(s)||c===p)&&("0"!==c||!p.match(s)||"0"===p||l.length===u.length)){for(;c!==t[r]&&r<t.length;)r++;r++}}return"string"!=typeof i||a||(r=t.length),this.correctCaretPosition(t,r)}},{key:"removePrefixAndSuffix",value:function(e){var t=this.props,n=t.format,r=t.prefix,o=t.suffix;if(!n&&e){var i="-"===e[0];i&&(e=e.substring(1,e.length));var a=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==a&&a===e.length-o.length?e.substring(0,a):e,i&&(e="-"+e)}return e}},{key:"removePatternFormatting",value:function(e){for(var t=this.props.format.split("#").filter((function(e){return""!==e})),n=0,r="",o=0,i=t.length;o<=i;o++){var a=t[o]||"",s=o===i?e.length:e.indexOf(a,n);if(-1===s){r=e;break}r+=e.substring(n,s),n=s+a.length}return(r.match(/\d/g)||[]).join("")}},{key:"removeFormatting",value:function(e){var t=this.props,n=t.format,r=t.removeFormatting;return e?(n?e="string"==typeof n?this.removePatternFormatting(e):"function"==typeof r?r(e):(e.match(/\d/g)||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e}},{key:"formatWithPattern",value:function(e){for(var t=this.props.format,n=0,r=t.split(""),o=0,i=t.length;o<i;o++)"#"===t[o]&&(r[o]=e[n]||this.getMaskAtIndex(n),n+=1);return r.join("")}},{key:"formatAsNumber",value:function(e){var t=this.props,n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix,i=t.suffix,a=t.allowNegative,s=t.thousandsGroupStyle,l=this.getSeparators(),u=l.thousandSeparator,c=l.decimalSeparator,p=-1!==e.indexOf(".")||n&&r,d=tg(e,a),f=d.beforeDecimal,h=d.afterDecimal,m=d.addNegation;return void 0!==n&&(h=ng(h,n,r)),u&&(f=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(f,u,s)),o&&(f=o+f),i&&(h+=i),m&&(f="-"+f),f+(p&&c||"")+h}},{key:"formatNumString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.format,r=t.allowEmptyFormatting,o=e;return""!==e||r?"-"!==e||n?"string"==typeof n?this.formatWithPattern(o):"function"==typeof n?n(o):this.formatAsNumber(o):"-":""}},{key:"formatValueProp",value:function(e){var t=this.props,n=t.format,r=t.decimalScale,o=t.fixedDecimalScale,i=t.allowEmptyFormatting,a=this.props,s=a.value,l=a.isNumericString,u=!(s=Jm(s)?e:s)&&0!==s;return u&&i&&(s=""),u&&!i?"":("number"==typeof s&&(s=s.toString(),l=!0),"Infinity"===s&&l&&(s=""),l&&!n&&"number"==typeof r&&(s=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=tg(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNagation,l=parseFloat("0.".concat(a||"0")).toFixed(t).split("."),u=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),l[0]),c=ng(l[1]||"",Math.min(t,a.length),n),p=r?".":"";return"".concat(s?"-":"").concat(u).concat(p).concat(c)}(s,r,o)),l?this.formatNumString(s):this.formatInput(s))}},{key:"formatNegation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.allowNegative,n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}},{key:"formatInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.format;return t||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)}},{key:"isCharacterAFormat",value:function(e,t){var n=this.props,r=n.format,o=n.prefix,i=n.suffix,a=n.decimalScale,s=n.fixedDecimalScale,l=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-i.length||a&&s&&t[e]===l))}},{key:"checkIfFormatGotDeleted",value:function(e,t,n){for(var r=e;r<t;r++)if(this.isCharacterAFormat(r,n))return!0;return!1}},{key:"correctInputValue",value:function(e,t,n){var r=this.props,o=r.format,i=r.allowNegative,a=r.prefix,s=r.suffix,l=r.decimalScale,u=this.getSeparators(),c=u.allowedDecimalSeparators,p=u.decimalSeparator,d=this.state.numAsString||"",f=this.selectionBeforeInput,h=f.selectionStart,m=f.selectionEnd,g=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),v=g.start,y=g.end;if(!o&&v===y&&-1!==c.indexOf(n[h])){var b=0===l?"":p;return n.substr(0,h)+b+n.substr(h+1,n.length)}var w=o?0:a.length,E=t.length-(o?0:s.length);if(n.length>t.length||!n.length||v===y||0===h&&m===t.length||h===w&&m===E)return n;if(this.checkIfFormatGotDeleted(v,y,t)&&(n=t),!o){var x=this.removeFormatting(n),O=tg(x,i),S=O.beforeDecimal,C=O.afterDecimal,_=O.addNegation,k=e<n.indexOf(p)+1;if(x.length<d.length&&k&&""===S&&!parseFloat(C))return _?"-":""}return n}},{key:"updateValue",value:function(e){var t=e.formattedValue,n=e.input,r=e.setCaretPosition,o=void 0===r||r,i=e.numAsString,a=e.caretPos,s=this.props.onValueChange,l=this.state.value;if(n)if(o){if(!a){var u=e.inputValue||n.value,c=ig(n);n.value=t,a=this.getCaretPosition(u,t,c)}this.setPatchedCaretPosition(n,a,t)}else n.value=t;void 0===i&&(i=this.removeFormatting(t)),t!==l&&(this.setState({value:t,numAsString:i}),s(this.getValueObject(t,i)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,i=o.isAllowed,a=r.value||"",s=ig(t);n=this.correctInputValue(s,a,n);var l=this.formatInput(n)||"",u=this.removeFormatting(l);i(this.getValueObject(l,u))||(l=a),this.updateValue({formattedValue:l,numAsString:u,inputValue:n,input:t}),o.onChange(e)}},{key:"onBlur",value:function(e){var t=this.props,n=this.state,r=t.format,o=t.onBlur,i=t.allowLeadingZeros,a=n.numAsString,s=n.value;if(this.focusedElm=null,clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(a))&&(a=""),i||(a=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return"".concat(t?"-":"").concat(r).concat(o?".".concat(o):"")}(a));var l=this.formatNumString(a);if(l!==s)return this.updateValue({formattedValue:l,numAsString:a,input:e.target,setCaretPosition:!1}),void o(e)}o(e)}},{key:"onKeyDown",value:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value,s=void 0===a?"":a,l=this.props,u=l.decimalScale,c=l.fixedDecimalScale,p=l.prefix,d=l.suffix,f=l.format,h=l.onKeyDown,m=void 0!==u&&c,g=this.getNumberRegex(!1,m),v=new RegExp("-"),y="string"==typeof f;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:i},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===i){var b=t,w=y?f.indexOf("#"):p.length,E=y?f.lastIndexOf("#")+1:s.length-d.length;if("ArrowLeft"===r||"ArrowRight"===r){var x="ArrowLeft"===r?"left":"right";b=this.correctCaretPosition(s,t,x)}else if("Delete"!==r||g.test(s[t])||v.test(s[t])){if("Backspace"===r&&!g.test(s[t]))if(o<=w+1&&"-"===s[0]&&void 0===f){var O=s.substring(1);this.updateValue({formattedValue:O,caretPos:b,input:n})}else if(!v.test(s[t])){for(;!g.test(s[b-1])&&b>w;)b--;b=this.correctCaretPosition(s,b,"left")}}else for(;!g.test(s[b])&&b<E;)b++;(b!==t||t<w||t>E)&&(e.preventDefault(),this.setPatchedCaretPosition(n,b,s)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,b,s),h(e)}else h(e)}},{key:"onMouseUp",value:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value,i=void 0===o?"":o;if(n===r){var a=this.correctCaretPosition(i,n);a!==n&&this.setPatchedCaretPosition(t,a,i)}this.props.onMouseUp(e)}},{key:"onFocus",value:function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var n=e.target,r=n.selectionStart,o=n.selectionEnd,i=n.value,a=void 0===i?"":i,s=t.correctCaretPosition(a,r);s===r||0===r&&o===a.length||t.setPatchedCaretPosition(n,s,a),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,r,o=this.props,i=o.type,a=o.displayType,s=o.customInput,l=o.renderText,u=o.getInputRef,c=o.format,p=this.state,d=p.value,f=p.mounted,h=(e=this.props,t=ag,r={},Object.keys(e).forEach((function(n){t[n]||(r[n]=e[n])})),r),m=f&&function(e){return e||!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}(c)?"numeric":void 0,g=Wm({inputMode:m},h,{type:i,value:d,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===a)return l?l(d)||null:n().createElement("span",Wm({},h,{ref:u}),d);if(s){var v=s;return n().createElement(v,Wm({},g,{ref:u}))}return n().createElement("input",Wm({},g,{ref:u}))}}],o&&Hm(r.prototype,o),t}(n().Component);lg.propTypes=ag,lg.defaultProps=sg;const ug=lg;var cg=f(8726);const pg=(0,o.makeStyles)({inputRoot:{flexWrap:"wrap"},autosizeInput:{width:"auto",marginLeft:"5px",overflow:"hidden","& input":{background:"0px center",border:0,fontSize:"inherit",outline:0,padding:0,color:"inherit"}}});function dg(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fg(e,t,n[t])}))}return e}function fg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hg(){return hg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hg.apply(this,arguments)}function mg(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const gg=e=>{let{CustomInputComponent:t}=e,r=mg(e,["CustomInputComponent"]);return t?n().createElement(t,hg({},r,{customInput:cg.Z})):n().createElement(cg.Z,r)};gg.propTypes={CustomInputComponent:a().elementType};const vg=p().text("Press Enter to add. You may enter multiple values"),yg=(0,u.pipe)(u.trim,u.isEmpty),bg=e=>{let{values:r=[],InputProps:o={},inputProps:i={},classes:a={},onChange:s=Ko,getValueLabel:c=u.identity}=e,p=mg(e,["values","InputProps","inputProps","classes","onChange","getValueLabel"]);const d=pg(),f=o.classes||{},{root:h}=f,m=mg(f,["root"]),[g,v]=(0,t.useState)(""),y=e=>s((0,u.remove)(e,1,r)),b=r.length>0,w=()=>{var e;yg(g)||(e=g,s((0,u.uniq)([...r,e])),v(""))},[E,x]=(0,t.useState)(!1),O=!b&&E?vg:"";return n().createElement(oi(),{title:O},n().createElement(kn(),hg({},p,{classes:{root:a.root},value:g,onChange:(0,u.pipe)(Yo,v),InputProps:dg({},o,{startAdornment:r.map(((e,t)=>n().createElement(vm,{key:e,label:c(e),onDelete:()=>y(t)}))),inputComponent:gg,classes:dg({root:l()(d.inputRoot,h),input:l()(d.autosizeInput,m.input)},m)}),inputProps:dg({},i,{CustomInputComponent:o.inputComponent}),onKeyPress:(0,u.when)((0,u.propEq)("key","Enter"),w),onKeyDown:(0,u.when)((0,u.propEq)("keyCode",8),(()=>{""===g&&b&&y(-1)})),onFocus:()=>x(!0),onBlur:(0,u.pipe)(w,(()=>x(!1)))})))};bg.propTypes={values:a().arrayOf(a().string),InputProps:a().shape({classes:a().shape({root:a().string}),inputComponent:a().elementType}),inputProps:a().object,onChange:a().func,classes:a().object,getValueLabel:a().func};const wg=bg;function Eg(){return Eg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eg.apply(this,arguments)}const xg=e=>{let{value:r,onChange:o=Ko,multiline:i}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","onChange","multiline"]);const[s,l]=(0,t.useState)("");(0,t.useEffect)((()=>{l((0,u.isNil)(r)?"":r)}),[r]);const c=()=>{s!==r&&o(s)};return n().createElement(kn(),Eg({},a,{multiline:i,value:s,onKeyPress:(0,u.when)((0,u.propEq)("key","Enter"),(()=>{i||c()})),onBlur:c,onChange:(0,u.pipe)(Yo,l)}))};xg.propTypes={value:a().oneOfType([a().string,a().number]),onChange:a().func,multiline:a().bool,InputProps:a().object,className:a().string};const Og=xg;function Sg(){return Sg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sg.apply(this,arguments)}const Cg=e=>{let{multiple:t,value:r,getValueLabel:o,multiline:i}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["multiple","value","getValueLabel","multiline"]);return t?n().createElement(wg,Sg({},a,{values:r,getValueLabel:o})):n().createElement(Og,Sg({},a,{value:r,multiline:i}))};Cg.propTypes={multiple:a().bool,multiline:a().bool,value:a().oneOfType([a().string,a().arrayOf(a().string),a().number,a().arrayOf(a().number)]),getValueLabel:a().func};const _g=Cg;function kg(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tg(e,t,n[t])}))}return e}function Tg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pg(){return Pg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pg.apply(this,arguments)}function Ag(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Dg=e=>{let{inputRef:t,onChange:r,integer:o,customInput:i,format:a}=e,s=Ag(e,["inputRef","onChange","integer","customInput","format"]);return n().createElement(ug,Pg({},s,a,{getInputRef:t,isNumericString:!0,onValueChange:e=>{r({target:{value:e.value}})},decimalScale:o?0:void 0,customInput:i}))};Dg.propTypes={inputRef:a().func.isRequired,onChange:a().func.isRequired,integer:a().bool,customInput:a().elementType,format:am};const jg=e=>{let{integer:t,format:r,inputProps:o,InputProps:i}=e,a=Ag(e,["integer","format","inputProps","InputProps"]);return n().createElement(_g,Pg({},a,{inputProps:kg({integer:t,format:r},o),InputProps:kg({},i,{inputComponent:Dg}),getValueLabel:(0,Go.formatNumber)(r)}))};jg.propTypes={multiple:a().bool,integer:a().bool,format:am,inputProps:a().object,InputProps:a().object,value:a().oneOfType([a().string,a().arrayOf(a().string),a().number,a().arrayOf(a().number)]),onChange:a().func};const Lg=jg;var Ig=f(2771),Mg=f(6898);const Ng=(0,o.makeStyles)((e=>({iconButtonRoot:{padding:8},underline:{"&:after":{transform:"scaleX(1)"}},inputLabel:{color:e.palette.primary.main},adornedEnd:{paddingRight:4},inputRoot:{fontSize:"14px",letterSpacing:0,lineHeight:"16px"}})));function Rg(){return Rg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rg.apply(this,arguments)}function Fg(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zg(e,t,n[t])}))}return e}function zg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vg=Ro().localeData().longDateFormat("L"),Ug=Ro().localeData().longDateFormat("LTS"),Bg=e=>(0,Mg.Pk)((0,Mg.sb)(e,"_"),"_",/[^\dap]+/gi),Hg=e=>{let{value:r=null,label:o,variant:i="filled",onChange:a,InputProps:s,format:c}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","label","variant","onChange","InputProps","format"]);const f=Ng(),[h,m]=(0,t.useState)(!1),g=c||`${Vg} ${Ug}`,v=g&&g.toLowerCase().includes("a");return n().createElement(Mo,Rg({format:g,rifmFormatter:v?Bg(g):void 0,variant:"inline",invalidDateMessage:p().text("Invalid Date Format"),maxDateMessage:p().text("Date should not be after maximal date"),minDateMessage:p().text("Date should not be before minimal date"),inputVariant:i,views:["year","date","hours","minutes","seconds"],autoOk:!0,InputAdornmentProps:{position:"end"},KeyboardButtonProps:{classes:{root:f.iconButtonRoot},onKeyPress:(0,u.invoker)(0,"stopPropagation")},keyboardIcon:n().createElement(Ig.Z,null),onChange:(0,u.when)(Go.utils.dates.isValidMomentDateOrNull,(0,u.pipe)(Go.utils.dates.momentToDate,a)),label:o,"aria-label":o,value:r,placeholder:p().text(`${Vg} HH:MM`.toUpperCase()),ampm:!1,onClose:()=>m(!1),onOpen:()=>m(!0),InputProps:Fg({classes:{root:f.inputRoot,underline:l()({[f.underline]:h}),adornedEnd:f.adornedEnd},disableUnderline:(0,u.isNil)(r)},s),PopoverProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},InputLabelProps:{classes:{root:h?f.inputLabel:void 0},shrink:!(0,u.isNil)(o)}},d))};var Wg=f(359),Gg=f.n(Wg);function qg(){return qg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qg.apply(this,arguments)}const Yg=e=>n().createElement("svg",qg({width:79,height:68,viewBox:"0 0 79 68",xmlns:"http://www.w3.org/2000/svg"},e),n().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n().createElement("path",{d:"M24.889 40.444V22.556H3.603v-2.334H24.89V3.89h2.333v16.333h23.334V3.89h2.333v16.333h18.157v2.334H52.889v17.888h18.157v2.334H52.889v17.396h-2.333V42.778H27.222v17.396H24.89V42.778H3.603v-2.334H24.89zm2.333 0h23.334V22.556H27.222v17.888z",fill:"#D2DEDE",opacity:.2}),n().createElement("path",{d:"M68.725 3.889H3.889v29.814l13.413-14.36 14.399 6.347 11.265-7.467h16.633l9.126-14.334zm2.053 4.016l-9.044 14.207H44.138l-12.06 7.994-13.818-6.091L3.889 39.4V59.89h66.889V7.905zM3 0h68.667a3 3 0 013 3v57.778a3 3 0 01-3 3H3a3 3 0 01-3-3V3a3 3 0 013-3z",fill:"#D2DEDE",opacity:.5}),n().createElement("path",{d:"M66.732 52.044H64.79l-.689-.664a15.91 15.91 0 003.86-10.4c0-8.826-7.154-15.98-15.98-15.98C43.154 25 36 32.154 36 40.98c0 8.827 7.154 15.981 15.98 15.981a15.91 15.91 0 0010.4-3.86l.664.689v1.942L75.337 68 79 64.337 66.732 52.044zM52 52c-6.087 0-11-4.913-11-11s4.913-11 11-11 11 4.913 11 11-4.913 11-11 11z",fill:"#B5C8C9",fillRule:"nonzero"}))),$g=(0,o.makeStyles)({container:{display:"flex",flexShrink:0,alignItems:"center",height:"36px","& $smallIcon":{height:"24px",width:"28px",paddingRight:"10px",paddingLeft:"2px"},"& $text":{height:"14px",color:"#707F80",fontSize:"12px",lineHeight:"14px"}},smallIcon:{},text:{}});function Kg(){return Kg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kg.apply(this,arguments)}const Zg=e=>{let{className:t,message:r}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","message"]);const i=$g();return n().createElement("div",Kg({className:l()(i.container,t)},o),n().createElement(Yg,{className:i.smallIcon}),n().createElement("div",{className:i.text},r))};function Xg(){return Xg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xg.apply(this,arguments)}const Qg=e=>n().createElement(Zg,Xg({message:p().text("No results found")},e)),Jg=(0,o.makeStyles)({"typeahead__suggestions-placeholder":{padding:"8px 16px",textAlign:"center"},"typeahead__suggestions-container--open":{maxHeight:"230px",overflowY:"auto"},"typeahead__suggestions-list":{margin:0,padding:0,listStyleType:"none"},"typeahead__suggestions-menuItem":{color:"rgba(0,0,0,0.87)",fontSize:"14px"},input__root:{color:"rgba(0,0,0,0.87)",fontSize:"14px"},autosizeInput:{width:"auto",paddingTop:"10px",paddingBottom:"11px",marginLeft:"5px",overflow:"hidden","& input":{background:"0px center",border:0,fontSize:"inherit",outline:0,padding:0,color:"inherit"}},rawInput:{height:"19px"},"multiple-input__root":{flexWrap:"wrap",color:"rgba(0,0,0,0.87)",fontSize:"14px"},"multiple-input__input":{flex:"1 0 25px",flexWrap:"wrap"},"multiple-input__adornedStart":{paddingLeft:"8px"},input__underline:{"&:before":{display:"none"}},"typeahead__suggestions-container":{width:"100%"},"menuItem--item":{overflow:"hidden",textOverflow:"ellipsis",display:"block"}});function ev(){return ev=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ev.apply(this,arguments)}function tv(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nv(e,t,n[t])}))}return e}function nv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const ov=e=>{let{value:r,getSuggestions:o,onChange:i,multiple:a,fullWidth:s,InputProps:c={}}=e,p=rv(e,["value","getSuggestions","onChange","multiple","fullWidth","InputProps"]);const[d,f]=(0,t.useState)([]),[h,m]=(0,t.useState)(!1),g=(0,t.useRef)(),v=Jg(),y=(0,u.pipe)((0,u.prop)("value"),u.trim,o,(0,u.andThen)((0,u.pipe)((0,u.tap)(f),(0,u.both)(u.isEmpty,(()=>{var e;return(null===(e=g.current)||void 0===e?void 0:e.querySelector("input"))===document.activeElement})),m))),b=(0,t.useCallback)((0,Go.debounce)(y,300),[o]);r=(0,u.defaultTo)(a?[]:"",r);const[w,E]=(0,t.useState)(""),[x,O]=(0,t.useState)(!1),S=e=>{let{newValue:t,method:n}=e;switch(n){case"type":a&&E(t);break;case"escape":a?E(t):i(t);break;case"click":case"enter":a?(E(""),t&&i((0,u.uniq)([...r,t]))):i(t)}};return n().createElement(Gg(),{suggestions:d,shouldRenderSuggestions:u.T,inputProps:tv({value:a?w:r,onChange:(0,u.pipe)((0,u.nthArg)(1),S),onKeyDown:e=>{13===e.keyCode&&a&&!x&&S({method:"enter",newValue:w})},fullWidth:s},p,{autoComplete:"nope"}),getSuggestionValue:u.identity,onSuggestionsFetchRequested:(0,u.ifElse)((0,u.propEq)("reason","input-changed"),b,y),onSuggestionsClearRequested:(0,u.pipe)((0,u.always)([]),f,u.F,m),renderInputComponent:e=>{let{ref:t,onChange:o}=e,s=rv(e,["ref","onChange"]);const p={underline:l()({[v.input__underline]:(0,Go.isEmptyValue)(r)}),input:l()(v.rawInput,(0,u.path)(["classes","input"],c))};return a?n().createElement(kn(),ev({},s,{ref:g,inputRef:t,InputProps:tv({},c,{startAdornment:r.map(((e,t)=>n().createElement(vm,{key:e,label:e,onDelete:()=>i((0,u.remove)(t,1,r))}))),inputComponent:cg.Z,classes:tv({root:l()(v["multiple-input__input"],(0,u.path)(["classes","root"],c))},p,{input:l()(v.autosizeInput,p.input),adornedStart:v["multiple-input__adornedStart"]})}),value:w,onChange:o,classes:{root:v["multiple-input__root"]}})):n().createElement(kn(),ev({},s,{ref:g,inputRef:t,value:r,onChange:(0,u.pipe)((0,u.tap)(o),Yo,i),InputProps:tv({},c,{classes:tv({root:l()(v.input__root,(0,u.path)(["classes","root"],c))},p)})}))},renderSuggestionsContainer:e=>{let{children:t,containerProps:{ref:r}}=e,o=rv(e.containerProps,["ref"]);return n().createElement(Cl,{anchorEl:g.current,open:Boolean(t)||h},n().createElement(Rn(),ev({ref:r,square:!0},o,{style:{width:(0,u.prop)("clientWidth",g.current)}}),t||n().createElement(Qg,{className:v["typeahead__suggestions-placeholder"]})))},renderSuggestion:(e,t)=>{let{isHighlighted:r}=t;return n().createElement(qi(),{className:v["typeahead__suggestions-menuItem"],selected:r,component:"div"},n().createElement(Vd,{value:e},n().createElement("div",{className:v["menuItem--item"]},e)))},theme:{container:s?v["typeahead__suggestions-container"]:"",suggestionsList:v["typeahead__suggestions-list"],suggestionsContainerOpen:v["typeahead__suggestions-container--open"]},onSuggestionHighlighted:(0,u.pipe)((0,u.prop)("suggestion"),Boolean,O)})};ov.propTypes={multiple:a().bool,fullWidth:a().bool,placeholder:a().string,value:a().oneOfType([a().string,a().arrayOf(a().string)]),onChange:a().func.isRequired,getSuggestions:a().func.isRequired,InputProps:a().object};const iv=ov;function av(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lv(e,t,n){return t&&sv(e.prototype,t),n&&sv(e,n),e}function uv(e,t){return uv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uv(e,t)}function cv(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uv(e,t)}function pv(e,t){return!t||"object"!==be(t)&&"function"!=typeof t?Jd(e):t}function dv(e){return dv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dv(e)}f(1068),f(8111);var fv=function(){function e(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.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=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}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=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]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();const hv=function(e){function t(e,r,l,u,d){for(var f,h,m,g,w,x=0,O=0,S=0,C=0,_=0,j=0,I=m=f=0,N=0,R=0,F=0,z=0,V=l.length,U=V-1,B="",H="",W="",G="";N<V;){if(h=l.charCodeAt(N),N===U&&0!==O+C+S+x&&(0!==O&&(h=47===O?10:47),C=S=x=0,V++,U++),0===O+C+S+x){if(N===U&&(0<R&&(B=B.replace(p,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(N)}h=59}switch(h){case 123:for(f=(B=B.trim()).charCodeAt(0),m=1,z=++N;N<V;){switch(h=l.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(N+1)){case 42:case 47:e:{for(I=N+1;I<U;++I)switch(l.charCodeAt(I)){case 47:if(42===h&&42===l.charCodeAt(I-1)&&N+2!==I){N=I+1;break e}break;case 10:if(47===h){N=I+1;break e}}N=I}}break;case 91:h++;case 40:h++;case 34:case 39:for(;N++<U&&l.charCodeAt(N)!==h;);}if(0===m)break;N++}if(m=l.substring(z,N),0===f&&(f=(B=B.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<R&&(B=B.replace(p,"")),h=B.charCodeAt(1)){case 100:case 109:case 115:case 45:R=r;break;default:R=D}if(z=(m=t(r,R,m,h,d+1)).length,0<L&&(w=s(3,m,R=n(D,B,F),r,T,k,z,h,d,u),B=R.join(""),void 0!==w&&0===(z=(m=w.trim()).length)&&(h=0,m="")),0<z)switch(h){case 115:B=B.replace(E,a);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(v,"$1 $2"))+"{"+m+"}",m=1===A||2===A&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=B+m,112===u&&(H+=m,m="")}else m=""}else m=t(r,n(r,B,F),m,u,d+1);W+=m,m=F=R=I=f=0,B="",h=l.charCodeAt(++N);break;case 125:case 59:if(1<(z=(B=(0<R?B.replace(p,""):B).trim()).length))switch(0===I&&(f=B.charCodeAt(0),45===f||96<f&&123>f)&&(z=(B=B.replace(" ",":")).length),0<L&&void 0!==(w=s(1,B,r,e,T,k,H.length,u,d,u))&&0===(z=(B=w.trim()).length)&&(B="\0\0"),f=B.charCodeAt(0),h=B.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){G+=B+l.charAt(N);break}default:58!==B.charCodeAt(z-1)&&(H+=o(B,f,h,B.charCodeAt(2)))}F=R=I=f=0,B="",h=l.charCodeAt(++N)}}switch(h){case 13:case 10:47===O?O=0:0===1+f&&107!==u&&0<B.length&&(R=1,B+="\0"),0<L*M&&s(0,B,r,e,T,k,H.length,u,d,u),k=1,T++;break;case 59:case 125:if(0===O+C+S+x){k++;break}default:switch(k++,g=l.charAt(N),h){case 9:case 32:if(0===C+x+O)switch(_){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===C+O+x&&(R=F=1,g="\f"+g);break;case 108:if(0===C+O+x+P&&0<I)switch(N-I){case 2:112===_&&58===l.charCodeAt(N-3)&&(P=_);case 8:111===j&&(P=j)}break;case 58:0===C+O+x&&(I=N);break;case 44:0===O+S+C+x&&(R=1,g+="\r");break;case 34:case 39:0===O&&(C=C===h?0:0===C?h:C);break;case 91:0===C+O+S&&x++;break;case 93:0===C+O+S&&x--;break;case 41:0===C+O+x&&S--;break;case 40:0===C+O+x&&(0===f&&(2*_+3*j==533||(f=1)),S++);break;case 64:0===O+S+C+x+I+m&&(m=1);break;case 42:case 47:if(!(0<C+x+S))switch(O){case 0:switch(2*h+3*l.charCodeAt(N+1)){case 235:O=47;break;case 220:z=N,O=42}break;case 42:47===h&&42===_&&z+2!==N&&(33===l.charCodeAt(z+2)&&(H+=l.substring(z,N+1)),g="",O=0)}}0===O&&(B+=g)}j=_,_=h,N++}if(0<(z=H.length)){if(R=r,0<L&&void 0!==(w=s(2,H,R,e,T,k,z,u,d,u))&&0===(H=w).length)return G+H+W;if(H=R.join(",")+"{"+H+"}",0!=A*P){switch(2!==A||i(H,2)||(P=0),P){case 111:H=H.replace(b,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}P=0}}return G+H+W}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[l++]=r(e[u]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===A||2===A&&i(l,1)?"-webkit-"+l+l:l}if(0===A||2===A&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(_,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(S,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,l,c){for(var p,d=0,f=t;d<L;++d)switch(p=j[d].call(u,e,f,n,r,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?A=1:(A=2,I=e):A=0),l}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<L){var o=s(-1,n,r,r,T,k,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(D,r,n,0,0);return 0<L&&void 0!==(o=s(-2,i,r,r,T,k,i.length,0,0,0))&&(i=o),P=0,k=T=1,i}var c=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,O=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,k=1,T=1,P=0,A=1,D=[],j=[],L=0,I=null,M=0;return u.use=function e(t){switch(t){case void 0:case null:L=j.length=0;break;default:if("function"==typeof t)j[L++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},u.set=l,void 0!==e&&l(e),u};var mv="/*|*/";function gv(e){e&&vv.current.insert(e+"}")}var vv={current:null},yv=function(e,t,n,r,o,i,a,s,l,u){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return vv.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+mv;break;case 3:switch(s){case 102:case 112:return vv.current.insert(n[0]+t),"";default:return t+(0===u?mv:"")}case-2:t.split("/*|*/}").forEach(gv)}};function bv(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var wv=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0),o=o.next}while(void 0!==o)}};const Ev=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)},xv={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ov=/[A-Z]|^ms/g,Sv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cv=function(e){return 45===e.charCodeAt(1)},_v=function(e){return null!=e&&"boolean"!=typeof e},kv=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Cv(e)?e:e.replace(Ov,"-$&").toLowerCase()})),Tv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Sv,(function(e,t,n){return Av={name:t,styles:n,next:Av},t}))}return 1===xv[e]||Cv(e)||"number"!=typeof t||0===t?t:t+"px"};function Pv(e,t,n,r){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 Av={name:n.name,styles:n.styles,next:Av},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Av={name:o.name,styles:o.styles,next:Av},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Pv(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":_v(a)&&(r+=kv(i)+":"+Tv(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Pv(e,t,a,!1);switch(i){case"animation":case"animationName":r+=kv(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)_v(a[l])&&(r+=kv(i)+":"+Tv(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=Av,a=n(e);return Av=i,Pv(e,t,a,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Av,Dv=/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="";Av=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Pv(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=Pv(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);Dv.lastIndex=0;for(var s,l="";null!==(s=Dv.exec(o));)l+="-"+s[1];return{name:Ev(o)+l,styles:o,next:Av}},Lv=Object.prototype.hasOwnProperty,Iv=(0,t.createContext)("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,o=new hv(t),i={};r=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),o.use(e.stylisPlugins)(yv),a=function(e,t,n,r){var i=t.name;vv.current=n,o(e,t.styles),r&&(l.inserted[i]=!0)};var l={key:n,sheet:new fv({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return l}():null),Mv=(0,t.createContext)({}),Nv=(Iv.Provider,function(e){var n=function(n,r){return(0,t.createElement)(Iv.Consumer,null,(function(t){return e(n,t,r)}))};return(0,t.forwardRef)(n)}),Rv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fv=function(e,t){var n={};for(var r in t)Lv.call(t,r)&&(n[r]=t[r]);return n[Rv]=e,n},zv=function(){return null},Vv=function(e,n,r,o){var i=null===r?n.css:n.css(r);"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var a=n[Rv],s=[i],l="";"string"==typeof n.className?l=bv(e.registered,s,n.className):null!=n.className&&(l=n.className+" ");var u=jv(s);wv(e,u,"string"==typeof a),l+=e.key+"-"+u.name;var c={};for(var p in n)Lv.call(n,p)&&"css"!==p&&p!==Rv&&(c[p]=n[p]);c.ref=o,c.className=l;var d=(0,t.createElement)(a,c),f=(0,t.createElement)(zv,null);return(0,t.createElement)(t.Fragment,null,f,d)},Uv=Nv((function(e,n,r){return"function"==typeof e.css?(0,t.createElement)(Mv.Consumer,null,(function(t){return Vv(n,e,t,r)})):Vv(n,e,null,r)}));const Bv=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jv(t)};var Hv=function(e,n){var r=arguments;if(null==n||!Lv.call(n,"css"))return t.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Uv,i[1]=Fv(e,n);for(var a=2;a<o;a++)i[a]=r[a];return t.createElement.apply(null,i)},Wv=(t.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o});function Gv(e,t,n){var r=[],o=bv(e,r,n);return r.length<2?n:o+t(r)}var qv=function(){return null},Yv=Nv((function(e,n){return(0,t.createElement)(Mv.Consumer,null,(function(r){var o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=jv(t,n.registered);return wv(n,o,!1),n.key+"-"+o.name},i={css:o,cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Gv(n.registered,o,Wv(t))},theme:r},a=e.children(i),s=(0,t.createElement)(qv,null);return(0,t.createElement)(t.Fragment,null,s,a)}))}));f(8921);var $v=f(1950),Kv=function(){};function Zv(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Xv(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Zv(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Qv=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===be(e)&&null!==e?[e]:[]};function Jv(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ey(e){return Jv(e)?window.pageYOffset:e.scrollTop}function ty(e,t){Jv(e)?window.scrollTo(0,t):e.scrollTop=t}function ny(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function ry(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Kv,o=ey(e),i=t-o,a=10,s=0;function l(){var t=ny(s+=a,o,i,n);ty(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function oy(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function iy(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 ay(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iy(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dv(e);if(t){var o=dv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pv(this,n)}}function ly(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,f=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=ey(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,E=g-h,x=w+v,O=c-v-h,S=d-g+v+y,C=v+h-b,_=160;switch(o){case"auto":case"bottom":if(E>=f)return{placement:"bottom",maxHeight:t};if(O>=f&&!a)return i&&ry(l,S,_),{placement:"bottom",maxHeight:t};if(!a&&O>=r||a&&E>=r)return i&&ry(l,S,_),{placement:"bottom",maxHeight:a?E-y:O-y};if("auto"===o||a){var k=t,T=a?w:x;return T>=r&&(k=Math.min(T-y-s.controlHeight,t)),{placement:"top",maxHeight:k}}if("bottom"===o)return ty(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(x>=f&&!a)return i&&ry(l,C,_),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var P=t;return(!a&&x>=r||a&&w>=r)&&(P=a?w-b:x-b),i&&ry(l,C,_),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var uy=function(e){return"auto"===e?"bottom":e},cy=(0,t.createContext)({getPortalPlacement:null}),py=function(e){cv(n,e);var t=sy(n);function n(){var e;av(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var u="fixed"===a,c=ly({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:l}),p=e.context.getPortalPlacement;p&&p(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||uy(t);return ay(ay({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return lv(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(t.Component);py.contextType=cy;var dy=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},fy=dy,hy=dy,my=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Hv("div",me({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};my.defaultProps={children:"No options"};var gy=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Hv("div",me({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};gy.defaultProps={children:"Loading..."};var vy=function(e){cv(n,e);var t=sy(n);function n(){var e;av(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==uy(e.props.menuPlacement)&&e.setState({placement:n})},e}return lv(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,a=e.getStyles,s="fixed"===i;if(!t&&!s||!r)return null;var l=this.state.placement||uy(o),u=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}}(r),c=s?0:window.pageYOffset,p=u[l]+c,d=Hv("div",{css:a("menuPortal",{offset:p,position:i,rect:u})},n);return Hv(cy.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Q.createPortal)(d,t):d)}}]),n}(t.Component),yy=Array.isArray,by=Object.keys,wy=Object.prototype.hasOwnProperty;function Ey(e,t){if(e===t)return!0;if(e&&t&&"object"==be(e)&&"object"==be(t)){var n,r,o,i=yy(e),a=yy(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!Ey(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var u=e instanceof RegExp,c=t instanceof RegExp;if(u!=c)return!1;if(u&&c)return e.toString()==t.toString();var p=by(e);if((r=p.length)!==by(t).length)return!1;for(n=r;0!=n--;)if(!wy.call(t,p[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(o=p[n])&&e.$$typeof||Ey(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}function xy(e,t){try{return Ey(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function Oy(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Oy=function(){return n},n}var Sy={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Cy=function(e){var t=e.size,n=ve(e,["size"]);return Hv("svg",me({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Sy},n))},_y=function(e){return Hv(Cy,me({size:20},e),Hv("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"}))},ky=function(e){return Hv(Cy,me({size:20},e),Hv("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"}))},Ty=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Py=Ty,Ay=Ty,Dy=function(){var e=Bv.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_"}}}(Oy()),jy=function(e){var t=e.delay,n=e.offset;return Hv("span",{css:Bv({animation:"".concat(Dy," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ly=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return Hv("div",me({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),Hv(jy,{delay:0,offset:i}),Hv(jy,{delay:160,offset:!0}),Hv(jy,{delay:320,offset:!i}))};function Iy(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 My(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iy(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ny(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 Ry(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ny(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ny(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Ly.defaultProps={size:4};var Fy=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function zy(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 Vy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uy=function(e){var t=e.children,n=e.innerProps;return Hv("div",n,t)},By=Uy,Hy=Uy,Wy=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,p=r.Container,d=r.Label,f=r.Remove;return Hv(Yv,null,(function(r){var h=r.css,m=r.cx;return Hv(p,{data:i,innerProps:Vy(Vy({},s),{},{className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:c},Hv(d,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),Hv(f,{data:i,innerProps:Vy({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},u),selectProps:c}))}))};function Gy(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 qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gy(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Wy.defaultProps={cropWithEllipsis:!0};for(var Yy={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Hv("div",me({},i,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||Hv(_y,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return Hv("div",me({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":u},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Hv("div",me({},i,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||Hv(ky,null))},DownChevron:ky,CrossIcon:_y,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.label,l=e.theme,u=e.selectProps;return Hv("div",{css:o("group",e),className:r({group:!0},n)},Hv(i,me({},a,{selectProps:u,theme:l,getStyles:o,cx:r}),s),Hv("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,i=(e.selectProps,ve(e,["className","cx","getStyles","theme","selectProps"]));return Hv("div",me({css:r("groupHeading",My({theme:o},i)),className:n({"group-heading":!0},t)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return Hv("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Hv("span",me({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,i=e.isHidden,a=e.isDisabled,s=e.theme,l=(e.selectProps,ve(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Hv("div",{css:r("input",Ry({theme:s},l))},Hv($v.Z,me({className:n({input:!0},t),inputRef:o,inputStyle:Fy(i),disabled:a},l)))},LoadingIndicator:Ly,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return Hv("div",me({css:o("menu",e),className:r({menu:!0},n)},a,{ref:i}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isMulti,a=e.innerRef,s=e.innerProps;return Hv("div",me({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":i},n),ref:a},s),t)},MenuPortal:vy,LoadingMessage:gy,NoOptionsMessage:my,MultiValue:Wy,MultiValueContainer:By,MultiValueLabel:Hy,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Hv("div",n,t||Hv(_y,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,l=e.innerRef,u=e.innerProps;return Hv("div",me({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:l},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Hv("div",me({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return Hv("div",me({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return Hv("div",me({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,a=e.hasValue;return Hv("div",{css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},t)}},$y=function(e){return qy(qy({},Yy),e.components)},Ky=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Zy=new RegExp("["+Ky.map((function(e){return e.letters})).join("")+"]","g"),Xy={},Qy=0;Qy<Ky.length;Qy++)for(var Jy=Ky[Qy],eb=0;eb<Jy.letters.length;eb++)Xy[Jy.letters[eb]]=Jy.base;var tb=function(e){return e.replace(Zy,(function(e){return Xy[e]}))};function nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var rb=function(e){return e.replace(/^\s+|\s+$/g,"")},ob=function(e){return"".concat(e.label," ").concat(e.value)},ib={name:"1laao21-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;"},ab=function(e){return Hv("span",me({css:ib},e))};function sb(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,ve(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Hv("input",me({ref:t},n,{css:Bv({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var lb=function(e){cv(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=dv(t);if(n){var o=dv(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return pv(this,e)});function o(){return av(this,o),r.apply(this,arguments)}return lv(o,[{key:"componentDidMount",value:function(){this.props.innerRef((0,Q.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),o}(t.Component),ub=["boxSizing","height","overflow","paddingRight","position"],cb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function pb(e){e.preventDefault()}function db(e){e.stopPropagation()}function fb(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function hb(){return"ontouchstart"in window||navigator.maxTouchPoints}var mb=!(!window.document||!window.document.createElement),gb=0,vb=function(e){cv(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=dv(t);if(n){var o=dv(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return pv(this,e)});function o(){var e;av(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return lv(o,[{key:"componentDidMount",value:function(){var e=this;if(mb){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&ub.forEach((function(t){var n=i&&i[t];e.originalStyles[t]=n})),n&&gb<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+a||0;Object.keys(cb).forEach((function(e){var t=cb[e];i&&(i[e]=t)})),i&&(i.paddingRight="".concat(l,"px"))}o&&hb()&&(o.addEventListener("touchmove",pb,this.listenerOptions),r&&(r.addEventListener("touchstart",fb,this.listenerOptions),r.addEventListener("touchmove",db,this.listenerOptions))),gb+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(mb){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;gb=Math.max(gb-1,0),n&&gb<1&&ub.forEach((function(t){var n=e.originalStyles[t];i&&(i[t]=n)})),o&&hb()&&(o.removeEventListener("touchmove",pb,this.listenerOptions),r&&(r.removeEventListener("touchstart",fb,this.listenerOptions),r.removeEventListener("touchmove",db,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),o}(t.Component);vb.defaultProps={accountForScrollbars:!0};var yb={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},bb=function(e){cv(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=dv(t);if(n){var o=dv(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return pv(this,e)});function o(){var e;av(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return lv(o,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?Hv("div",null,Hv("div",{onClick:this.blurSelectInput,css:yb}),Hv(lb,{innerRef:this.getScrollTarget},t),r?Hv(vb,{touchScrollTarget:r}):null):t}}]),o}(t.PureComponent);var wb=function(e){cv(i,e);var t,r,o=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=dv(t);if(r){var o=dv(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return pv(this,e)});function i(){var e;av(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,l=e.scrollTarget,u=l.scrollTop,c=l.scrollHeight,p=l.clientHeight,d=e.scrollTarget,f=n>0,h=c-p-u,m=!1;h>n&&e.isBottom&&(i&&i(t),e.isBottom=!1),f&&e.isTop&&(s&&s(t),e.isTop=!1),f&&n>h?(o&&!e.isBottom&&o(t),d.scrollTop=c,m=!0,e.isBottom=!0):!f&&-n>u&&(a&&!e.isTop&&a(t),d.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return lv(i,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return n().createElement(lb,{innerRef:this.getScrollTarget},this.props.children)}}]),i}(t.Component);function Eb(e){var t=e.isEnabled,r=void 0===t||t,o=ve(e,["isEnabled"]);return r?n().createElement(wb,o):o.children}var xb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,i=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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"}},Ob=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},Sb=function(e){return!!e.isDisabled},Cb={clearIndicator:Ay,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Py,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:hy,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return Se(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Se(t,"backgroundColor",a.neutral0),Se(t,"borderRadius",o),Se(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Se(t,"marginBottom",i.menuGutter),Se(t,"marginTop",i.menuGutter),Se(t,"position","absolute"),Se(t,"width","100%"),Se(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},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){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:fy,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},_b={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}};function kb(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 Tb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kb(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pb={backspaceRemovesValue:!0,blurInputOnSelect:oy(),captureMenuScroll:!oy(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:ob,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?rb(t):t,u=a?rb(i(e)):i(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=tb(l),u=tb(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-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:Sb,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},Ab=1,Db=function(e){cv(i,e);var t,r,o=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=dv(t);if(r){var o=dv(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return pv(this,e)});function i(e){var t;av(this,i),(t=o.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},t.blockOptionHover=!1,t.isComposing=!1,t.clearFocusValueOnUpdate=!1,t.commonProps=void 0,t.components=void 0,t.hasGroups=!1,t.initialTouchX=0,t.initialTouchY=0,t.inputIsHiddenAfterUpdate=void 0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.cacheComponents=function(e){t.components=$y({components:e})},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;o(e,Tb(Tb({},n),{},{name:i}))},t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,o=t.props,i=o.closeMenuOnSelect,a=o.isMulti;t.onInputChange("",{action:"set-value"}),i&&(t.inputIsHiddenAfterUpdate=!a,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=t.state.selectValue;if(o)if(t.isOptionSelected(e,i)){var a=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==a})),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.isOptionDisabled(e,i)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue([].concat(qt(i),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));else t.isOptionDisabled(e,i)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));r&&t.blurInput()},t.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e),o=n.filter((function(e){return t.getOptionValue(e)!==r}));t.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):""}}),t.focusInput()},t.clearValue=function(){t.onChange(null,{action:"clear"})},t.popValue=function(){var e=t.state.selectValue,n=e[e.length-1],r=e.slice(0,e.length-1);t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):""}}),t.onChange(r.length?r:null,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Xv.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return t.props.getOptionLabel(e)},t.getOptionValue=function(e){return t.props.getOptionValue(e)},t.getStyles=function(e,n){var r=Cb[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,o=n.focusedOption;if(o&&e){var i=r.focusable.indexOf(o),a=r.render[i];return a&&a.key}},t.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:Ob(n,r)})},t.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:xb(n,Tb(Tb({},r),{},{label:t.props["aria-label"]}))})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Jv(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){var n=t.props,r=n.isSearchable,o=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return void 0===n?r:n},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,p=n.tabSelectsValue,d=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!p||!h||d&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.buildMenuOptions=function(e,n){var r=e.inputValue,o=void 0===r?"":r,i=e.options,a=function(e,r){var i=t.isOptionDisabled(e,n),a=t.isOptionSelected(e,n),s=t.getOptionLabel(e),l=t.getOptionValue(e);if(!(t.shouldHideSelectedOptions()&&a||!t.filterOption({label:s,value:l,data:e},o))){var u=i?void 0:function(){return t.onOptionHover(e)},c=i?void 0:function(){return t.selectOption(e)},p="".concat(t.getElementId("option"),"-").concat(r);return{innerProps:{id:p,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:p,label:s,type:"option",value:l}}};return i.reduce((function(e,n,r){if(n.options){t.hasGroups||(t.hasGroups=!0);var o=n.options.map((function(t,n){var o=a(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var i="".concat(t.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:i,data:n,options:o})}}else{var s=a(n,"".concat(r));s&&(e.render.push(s),e.focusable.push(n))}return e}),{render:[],focusable:[]})};var n=e.value;t.cacheComponents=tf(t.cacheComponents,xy).bind(Jd(t)),t.cacheComponents(e.components),t.instancePrefix="react-select-"+(t.props.instanceId||++Ab);var r=Qv(n);t.buildMenuOptions=tf(t.buildMenuOptions,(function(e,t){var n=ut(e,2),r=n[0],o=n[1],i=ut(t,2),a=i[0];return o===i[1]&&r.inputValue===a.inputValue&&r.options===a.options})).bind(Jd(t));var a=e.menuIsOpen?t.buildMenuOptions(e,r):{render:[],focusable:[]};return t.state.menuOptions=a,t.state.selectValue=r,t}return lv(i,[{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()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==i){var a=Qv(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},l=this.getNextFocusedValue(a),u=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:u,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),u&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?ty(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&ty(t,Math.max(n.offsetTop-i,0)),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(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),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.buildMenuOptions(this.props,r),a=this.props,s=a.isMulti,l=a.tabSelectsValue,u="first"===e?0:i.focusable.length-1;if(!s){var c=i.focusable.indexOf(r[0]);c>-1&&(u=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:i,focusedValue:null,focusedOption:i.focusable[u]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:l}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=i.length-1,u=-1;if(i.length){switch(e){case"previous":u=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(u=s+1)}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:i[u]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,i=o.focusedOption,a=o.menuOptions,s=a.focusable;if(s.length){var l=0,u=s.indexOf(i);i||(u=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?l=u>0?u-1:s.length-1:"down"===e?l=(u+1)%s.length:"pageup"===e?(l=u-n)<0&&(l=0):"pagedown"===e?(l=u+n)>s.length-1&&(l=s.length-1):"last"===e&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Sb(s[l]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(_b):Tb(Tb({},_b),this.props.theme):_b}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,i=this.selectOption,a=this.props,s=a.isMulti,l=a.isRtl,u=a.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:i,setValue:o,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.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"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(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:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,l=i.inputValue,u=i.screenReaderStatus,c=r?function(e){var t=e.focusedValue,n=e.selectValue;return"value ".concat((0,e.getOptionLabel)(t)," focused, ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=o&&s?function(e){var t=e.focusedOption,n=e.options;return"option ".concat((0,e.getOptionLabel)(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",d=function(e){var t=e.inputValue;return"".concat(e.screenReaderMessage).concat(t?" for search term "+t:"",".")}({inputValue:l,screenReaderMessage:u({count:this.countOptions()})});return"".concat(c," ").concat(p," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=this.components.Input,u=this.state.inputIsHidden,c=o||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!r)return n().createElement(sb,me({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Kv,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:s,value:""},p));var d=this.commonProps,f=d.cx,h=d.theme,m=d.selectProps;return n().createElement(l,me({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:f,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:a,form:s,theme:h,type:"text",value:i},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,r=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,p=c.controlShouldRenderValue,d=c.isDisabled,f=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!p)return h?null:n().createElement(l,me({},u,{key:"placeholder",isDisabled:d,isFocused:b}),m);if(f)return v.map((function(t,s){var l=t===y;return n().createElement(r,me({},u,{components:{Container:o,Label:i,Remove:a},isFocused:l,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=v[0];return n().createElement(s,me({},u,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return n().createElement(e,me({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return e&&i?n().createElement(e,me({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return n().createElement(r,me({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return n().createElement(e,me({},t,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,r=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,p=this.commonProps,d=this.state,f=d.focusedOption,h=d.menuOptions,m=this.props,g=m.captureMenuScroll,v=m.inputValue,y=m.isLoading,b=m.loadingMessage,w=m.minMenuHeight,E=m.maxMenuHeight,x=m.menuIsOpen,O=m.menuPlacement,S=m.menuPosition,C=m.menuPortalTarget,_=m.menuShouldBlockScroll,k=m.menuShouldScrollIntoView,T=m.noOptionsMessage,P=m.onMenuScrollToTop,A=m.onMenuScrollToBottom;if(!x)return null;var D,j=function(t){var r=f===t.data;return t.innerRef=r?e.getFocusedOptionRef:void 0,n().createElement(c,me({},p,t,{isFocused:r}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=h.render.map((function(t){if("group"===t.type){t.type;var i=ve(t,["type"]),a="".concat(t.key,"-heading");return n().createElement(r,me({},p,i,{Heading:o,headingProps:{id:a,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e)})))}if("option"===t.type)return j(t)}));else if(y){var L=b({inputValue:v});if(null===L)return null;D=n().createElement(l,p,L)}else{var I=T({inputValue:v});if(null===I)return null;D=n().createElement(u,p,I)}var M={minMenuHeight:w,maxMenuHeight:E,menuPlacement:O,menuPosition:S,menuShouldScrollIntoView:k},N=n().createElement(py,me({},p,M),(function(t){var r=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return n().createElement(i,me({},p,M,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:s}),n().createElement(Eb,{isEnabled:g,onTopArrive:P,onBottomArrive:A},n().createElement(bb,{isEnabled:_},n().createElement(a,me({},p,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:l}),D))))}));return C||"fixed"===S?n().createElement(s,me({},p,{appendTo:C,controlElement:this.controlRef,menuPlacement:O,menuPosition:S}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!o){if(i){if(r){var l=s.map((function(t){return e.getOptionValue(t)})).join(r);return n().createElement("input",{name:a,type:"hidden",value:l})}var u=s.length>0?s.map((function(t,r){return n().createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:e.getOptionValue(t)})})):n().createElement("input",{name:a,type:"hidden"});return n().createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return n().createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?n().createElement(ab,{"aria-live":"polite"},n().createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),n().createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,r=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return n().createElement(o,me({},d,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),n().createElement(t,me({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:c}),n().createElement(i,me({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),n().createElement(r,me({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),i}(t.Component);Db.defaultProps=Pb,f(9976);var jb={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Lb=function(e){var r,o;return o=r=function(t){cv(a,t);var r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=dv(r);if(o){var n=dv(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return pv(this,e)});function a(){var e;av(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return lv(a,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[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];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,r=this.props,o=(r.defaultInputValue,r.defaultMenuIsOpen,r.defaultValue,ve(r,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return n().createElement(e,me({},o,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),a}(t.Component),r.defaultProps=jb,o};var Ib,Mb,Nb,Rb=Lb(Db),Fb=(Ib=Rb,Nb=Mb=function(e){cv(i,e);var t,r,o=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=dv(t);if(r){var o=dv(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return pv(this,e)});function i(e){var t;return av(this,i),(t=o.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.optionsCache={},t.handleInputChange=function(e,n){var r=t.props,o=r.cacheOptions,i=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,n,r.onInputChange);if(!i)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&t.optionsCache[i])t.setState({inputValue:i,loadedInputValue:i,loadedOptions:t.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var a=t.lastRequest={};t.setState({inputValue:i,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(i,(function(e){t.mounted&&(e&&(t.optionsCache[i]=e),a===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return i},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return lv(i,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,t=this.props,r=(t.loadOptions,t.isLoading),o=ve(t,["loadOptions","isLoading"]),i=this.state,a=i.defaultOptions,s=i.inputValue,l=i.isLoading,u=i.loadedInputValue,c=i.loadedOptions,p=i.passEmptyOptions?[]:s&&u?c:a||[];return n().createElement(Ib,me({},o,{ref:function(t){e.select=t},options:p,isLoading:l||r,onInputChange:this.handleInputChange}))}}]),i}(t.Component),Mb.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},Nb);const zb=Fb;function Vb(e){const{selectProps:{classes:t},children:r}=e;return n().createElement(A(),{color:"textSecondary",className:t.noOptionsMessage},r)}function Ub(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Bb(e,t,n[t])}))}return e}function Bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hb(){return Hb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hb.apply(this,arguments)}function Wb(e){let{inputRef:t}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["inputRef"]);return n().createElement("div",Hb({ref:t},r))}function Gb(e){const{children:t,innerProps:r,innerRef:o,selectProps:{classes:i,TextFieldProps:a={}}}=e;return n().createElement(kn(),Hb({fullWidth:!0},a,{InputProps:Ub({inputComponent:Wb},a.InputProps,{inputProps:Ub({className:i.control,ref:o,children:t},r,a.inputProps)})}))}function qb(){return qb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qb.apply(this,arguments)}function Yb(e){const{selectProps:{classes:t},innerProps:r,innerRef:o,getStyles:i,children:a}=e;return n().createElement(Rn(),qb({ref:o,style:i("menu",e),className:t.menu},r),a)}Vb.propTypes={children:a().node,selectProps:a().object.isRequired},Wb.propTypes={inputRef:a().oneOfType([a().func,a().shape({current:a().any.isRequired})])},Gb.propTypes={children:a().node,innerProps:a().shape({onMouseDown:a().func.isRequired}).isRequired,innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]).isRequired,selectProps:a().shape({classes:a().shape({control:a().string.isRequired}),TextFieldProps:a().object})},Yb.propTypes={children:a().element.isRequired,innerProps:a().object.isRequired,selectProps:a().object.isRequired,innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]),getStyles:a().func};var $b=f(9166);function Kb(){return Kb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kb.apply(this,arguments)}function Zb(e){const{children:t,selectProps:r,removeProps:o}=e;return n().createElement(xu(),{tabIndex:-1,label:t,className:r.classes.multiValue,classes:{label:r.classes.multiValue__label},onDelete:o.onClick,deleteIcon:n().createElement($b.Z,Kb({},e.removeProps,{style:{height:"18px",width:"18px",color:"rgba(0,0,0,0.38)",marginRight:"8px"}}))})}function Xb(){return Xb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xb.apply(this,arguments)}function Qb(e){const{innerProps:t,innerRef:r,children:o,isFocused:i,isSelected:a,label:s,selectProps:{classes:u}}=e;return n().createElement(qi(),Xb({className:l()(u.option,{[u["option--selected"]]:a}),ref:r,selected:i,component:"div"},t),n().createElement(Vd,{value:s},n().createElement("div",{className:u["option--item"]},o)))}function Jb(){return Jb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jb.apply(this,arguments)}function ew(e){const{selectProps:{classes:t},innerProps:r={},children:o}=e;return n().createElement(A(),Jb({color:"textSecondary",className:t.placeholder},r),o)}function tw(){return tw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tw.apply(this,arguments)}function nw(e){const{selectProps:{classes:t},innerProps:r,children:o}=e;return n().createElement(A(),tw({className:t.singleValue},r),o)}function rw(e){const{selectProps:{classes:t},children:r,isMulti:o}=e;return n().createElement("div",{className:l()(t.valueContainer,{[t["valueContainer--multi"]]:o})},r)}Zb.propTypes={children:a().node,isFocused:a().bool.isRequired,removeProps:a().shape({onClick:a().func.isRequired,onMouseDown:a().func.isRequired,onTouchEnd:a().func.isRequired}).isRequired,selectProps:a().object.isRequired},Qb.propTypes={children:a().node,innerProps:a().shape({id:a().string.isRequired,key:a().string,onClick:a().func.isRequired,onMouseMove:a().func.isRequired,onMouseOver:a().func.isRequired,tabIndex:a().number.isRequired}).isRequired,innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]),isFocused:a().bool.isRequired,isSelected:a().bool.isRequired,label:a().string,selectProps:a().shape({classes:a().shape({option:a().string,"option--selected":a().string})})},ew.propTypes={children:a().node,innerProps:a().object,selectProps:a().object.isRequired},nw.propTypes={children:a().node,innerProps:a().object,selectProps:a().object.isRequired},rw.propTypes={children:a().node,selectProps:a().object.isRequired,isMulti:a().bool};var ow=f(1039);function iw(){return iw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iw.apply(this,arguments)}function aw(e){const{selectProps:{classes:t},innerProps:r}=e;return n().createElement(N(),iw({},r,{className:t.clearIndicator}),n().createElement(ow.Z,null))}aw.propTypes={innerProps:a().shape({onMouseDown:a().func.isRequired,onTouchEnd:a().func.isRequired,"aria-hidden":a().string.isRequired}).isRequired,selectProps:a().shape({classes:a().object.isRequired}).isRequired};var sw=f(3543);function lw(){return lw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lw.apply(this,arguments)}function uw(e){const{selectProps:{classes:t},innerProps:r}=e;return n().createElement(N(),lw({},r,{className:t.dropdownIndicator}),n().createElement(sw.Z,null))}function cw(e){const{children:t,selectProps:{classes:r}}=e;return n().createElement(A(),{variant:"subtitle2",className:l()(r.groupHeading)},t)}uw.propTypes={innerProps:a().shape({onMouseDown:a().func.isRequired,onTouchEnd:a().func.isRequired,"aria-hidden":a().string.isRequired}).isRequired,selectProps:a().shape({classes:a().object.isRequired}).isRequired},cw.propTypes={children:a().node,selectProps:a().shape({classes:a().shape({groupHeading:a().string})})};const pw={Control:Gb,Menu:Yb,MultiValue:Zb,NoOptionsMessage:Vb,Option:Qb,Placeholder:ew,SingleValue:nw,ValueContainer:rw,ClearIndicator:aw,DropdownIndicator:uw,GroupHeading:cw},dw=(0,o.makeStyles)((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"}})));function fw(){return fw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fw.apply(this,arguments)}function hw(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mw(e,t,n[t])}))}return e}function mw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gw(e){function t(t){const{components:r,classes:o,error:i,TextFieldProps:a,innerRef:s}=t,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["components","classes","error","TextFieldProps","innerRef"]),u=dw(),c=hw({},pw,r),p=Xo(u,o);return n().createElement(e,fw({ref:s,components:c,classes:p,TextFieldProps:hw({},a,{error:i})},l))}return t.displayName=`withMuiSkin(${e.displayName||e.name})`,t.defaultProps={components:{},classes:{}},t.propTypes={components:a().shape({ClearIndicator:a().func,Control:a().func,DropdownIndicator:a().func,DownChevron:a().func,CrossIcon:a().func,Group:a().func,GroupHeading:a().func,IndicatorsContainer:a().func,IndicatorSeparator:a().func,Input:a().func,LoadingIndicator:a().func,Menu:a().func,MenuList:a().func,MenuPortal:a().func,LoadingMessage:a().func,NoOptionsMessage:a().func,MultiValue:a().func,MultiValueContainer:a().func,MultiValueLabel:a().func,MultiValueRemove:a().func,Option:a().func,Placeholder:a().func,SelectContainer:a().func,SingleValue:a().func,ValueContainer:a().func}),classes:a().shape({control:a().string,valueContainer:a().string,multiValue:a().string,noOptionsMessage:a().string,singleValue:a().string,placeholder:a().string,menu:a().string,clearIndicator:a().string,dropdownIndicator:a().string,option:a().string,"option--selected":a().string}),TextFieldProps:a().object,error:a().bool,innerRef:a().object},t}const vw=gw(zb),yw=e=>{let{lookupCode:t,value:n}=e;return(0,Go.getLookupLabel)(t,n)},bw=e=>Object.entries(e).map((e=>{let[t,{displayName:n}]=e;return{lookupCode:t,value:n}})).sort(((e,t)=>{const n=yw(e).toLowerCase(),r=yw(t).toLowerCase();return Go.utils.strings.sort("asc",n,r)})),ww=(0,o.makeStyles)((e=>({checkIcon:{transform:"scale(.7)",marginLeft:"-30px",position:"absolute"},option:{paddingLeft:"35px"},dropdownIndicator:{padding:"8px 12px",cursor:"pointer",color:e.palette.text.secondary},clearIndicator:{display:"none"},placeholder:{position:"static"}}))),Ew=e=>{const t=ww(),{isSelected:r,children:o}=e;return n().createElement(Qb,e,r&&n().createElement(om.Z,{className:t.checkIcon}),o)};Ew.propTypes={children:a().node,isSelected:a().bool.isRequired};const xw=Ew,Ow=(0,o.makeStyles)((e=>({expanded:{transform:"rotate(180deg)"},disabled:{color:`${e.palette.text.disabled} !important`}})));function Sw(){return Sw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sw.apply(this,arguments)}const Cw=e=>{const{selectProps:{classes:t,menuIsOpen:r,isDisabled:o},innerProps:i}=e,a=Ow();return n().createElement(sw.Z,Sw({},i,{className:l()(t.dropdownIndicator,{[a.expanded]:r},{[a.disabled]:o})}))};Cw.propTypes={innerProps:a().object.isRequired,selectProps:a().shape({classes:a().shape({dropdownIndicator:a().string}).isRequired,menuIsOpen:a().bool.isRequired,isDisabled:a().bool}).isRequired};const _w=Cw;var kw=f(8697),Tw=f.n(kw);const Pw=(0,o.makeStyles)({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}}),Aw=n().createContext(null);function Dw(){return Dw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dw.apply(this,arguments)}Aw.Provider.propTypes={value:a().shape({element:a().instanceOf(Element),priority:a().arrayOf(a().oneOf(["left","right","top","bottom"]))})},Aw.displayName="PopupBoundariesContext";const jw=e=>{const{selectProps:{inputRef:r,menuIsOpen:o,inputValue:i},innerRef:a,children:s,innerProps:l}=e,[c,p]=(0,t.useState)("id");(0,t.useEffect)((()=>{p(Tw()())}),[i]);const d=Pw(),f=(0,t.useContext)(Aw),h=f&&f.element;return n().createElement(Cl,{anchorEl:r.current,open:o,className:d.popper,key:c,modifiers:h?{preventOverflow:{boundariesElement:f.element,priority:f.priority}}:void 0,placement:"bottom"},n().createElement(Rn(),Dw({ref:a,style:{width:(0,u.prop)("clientWidth",r.current)}},l),s))};jw.propTypes={children:a().oneOfType([a().element,a().array]).isRequired,selectProps:a().shape({inputRef:a().object.isRequired,menuIsOpen:a().bool.isRequired,inputValue:a().string}).isRequired,innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]).isRequired,innerProps:a().object.isRequired};const Lw=jw,Iw=e=>e&&e.lookupCode&&!e.value,Mw=(0,u.curry)(((e,t)=>(0,u.hasPath)([t,"displayName"],e))),Nw=e=>{const{children:t,data:r,removeProps:o}=e;return n().createElement(vm,{tabIndex:-1,label:t,count:(0,u.prop)("formattedNumber",r),onDelete:o.onClick,deleteIcon:n().createElement($b.Z,e.removeProps)})};Nw.propTypes={children:a().node,data:a().shape({value:a().string,label:a().string,number:a().number}).isRequired,removeProps:a().shape({onClick:a().func.isRequired,onMouseDown:a().func.isRequired,onTouchEnd:a().func.isRequired}).isRequired};const Rw=Nw,Fw={};function zw(){return zw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zw.apply(this,arguments)}function Vw(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Uw(e,t,n[t])}))}return e}function Uw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bw={IndicatorSeparator:Zo,LoadingIndicator:Zo,Option:xw,DropdownIndicator:_w,Menu:Lw,MultiValue:Rw},Hw=e=>{let{multiple:r,value:o,lookupCode:i,TextFieldProps:a,parents:s,onChange:l,getLookups:c,lookups:d={},resolveLookups:f,fullWidth:h,disabled:m,placeholder:g,autopopulationId:v}=e,y=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["multiple","value","lookupCode","TextFieldProps","parents","onChange","getLookups","lookups","resolveLookups","fullWidth","disabled","placeholder","autopopulationId"]);const b=(0,t.useRef)(null),w=(0,t.useRef)(null),E=ww();(e=>{let{lookups:n,resolvedValues:r,resolveLookups:o,onLookupsResolve:i}=e;const[a,s]=(0,t.useState)([]);(0,t.useEffect)((()=>{const[e,t]=(0,u.pipe)(Go.wrapInArrayIfNeeded,(0,u.filter)(Iw),(0,u.map)((0,u.prop)("lookupCode")),(0,u.partition)(Mw(r)))(n);if(e.length>0){const t=e.map((e=>({lookupCode:e,value:r[e].displayName})));i(t)}const l=t.filter((e=>!a.includes(e)));l.length>0&&(s((0,u.pipe)((0,u.concat)(l),u.uniq)),o(l))}),[n,r])})({lookups:o,resolvedValues:d[i],resolveLookups:e=>f(i,e),onLookupsResolve:e=>l(r?e:e[0])}),((e,n,r)=>{var o;const i=(0,t.useRef)(!1);!i.current&&r&&document.activeElement===(null===(o=n.current)||void 0===o?void 0:o.getElementsByTagName("input")[0])&&(i.current=!0),(0,t.useEffect)((()=>{const t=()=>{i.current&&(i.current=!1)};var n,o;if(!r&&i.current&&(null===(n=e.current)||void 0===n||n.focus(),i.current=!1),r&&i.current)return null===(o=document)||void 0===o||o.addEventListener("click",t),()=>{var e;null===(e=document)||void 0===e||e.removeEventListener("click",t)}}),[r])})(w,b,m);const[x,O]=(0,t.useState)(""),S=(0,t.useCallback)((e=>c(i,s,e).then(bw)),[i,s]),C=(0,t.useCallback)((0,Go.debounce)(((e,t)=>{S(e).then((e=>t(e))).catch((()=>t([])))}),400),[S]),{defaultOptions:_,initialDefaultOptions:k,isLoading:T}=(e=>{const[n,r]=(0,t.useState)([]),[o,i]=(0,t.useState)(null),[a,s]=(0,t.useState)(!1),l=Jo();return(0,t.useEffect)((()=>{r([]),s(!0),l(e("")).then((e=>{r(e),i((t=>t||e)),s(!1)})).catch((()=>{s(!1)}))}),[e]),{defaultOptions:n,initialDefaultOptions:o,isLoading:a}})(S),P=r?(0,u.isEmpty)(o):!(null!=o&&o.lookupCode||null!=o&&o.value),{markAsTouched:A}=(e=>{let{id:n,initialDefaultOptions:r,isEmptyValue:o,multiple:i,onChange:a}=e;return(0,t.useEffect)((()=>{n&&r&&1===r.length&&o&&!(e=>Fw[e])(n)&&a(i?r:r[0])}),[r]),{markAsTouched:(0,t.useCallback)((()=>{n&&(e=>{Fw[e]=!0})(n)}),[n])}})({id:v,initialDefaultOptions:k,isEmptyValue:P,multiple:r,onChange:l});return n().createElement(vw,zw({},y,{isMulti:r,classes:E,menuPortalTarget:document.body,menuPlacement:"auto",TextFieldProps:Vw({},a,{ref:b,disabled:(null==a?void 0:a.disabled)||m}),inputRef:b,innerRef:w,styles:{menuPortal:e=>Vw({},e,{zIndex:1300}),container:e=>Vw({},e,h?{width:"100%"}:{})},loadingMessage:()=>p().text("Loading..."),noOptionsMessage:()=>p().text("No results found"),components:Bw,isClearable:!0,isSearchable:!0,inputValue:x,onInputChange:O,isLoading:!x&&T,defaultOptions:_,hideSelectedOptions:!1,placeholder:g||"",isDisabled:m,loadOptions:C,getOptionValue:(0,u.either)((0,u.prop)("value"),(0,u.prop)("lookupCode")),getOptionLabel:yw,onChange:e=>{A(),l(e)},value:(0,u.defaultTo)(r?[]:null,o)}))};Hw.propTypes={multiple:a().bool,value:a().oneOfType([Go.LookupValueType,a().arrayOf(Go.LookupValueType)]),TextFieldProps:a().shape({variant:a().string,margin:a().string,hiddenLabel:a().bool}),lookupCode:a().string.isRequired,parents:a().array,getLookups:a().func,onChange:a().func,lookups:a().object,resolveLookups:a().func,fullWidth:a().bool,placeholder:a().string,disabled:a().bool,autopopulationId:a().string};const Ww=Hw,Gw=(0,o.makeStyles)({fileUploaderInput:{display:"none"},uploaded:{display:"flex",alignItems:"center"},label:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},cancelIcon:{height:"18px",width:"18px",color:"rgba(0,0,0,0.38)",marginLeft:"3px",cursor:"pointer"}}),qw=e=>{console.error(e),x.addError({title:p().text("File upload error"),message:e})},Yw=e=>{let{supportedFileTypes:r=[],onUpload:o,onBeforeUpload:i}=e;const a=Gw(),s=(0,t.useRef)(),l=r.join(",");return n().createElement(t.Fragment,null,n().createElement(j(),{variant:"contained",onClick:()=>{s.current.value=null,s.current.click()}},p().text("Select File")),n().createElement("input",{type:"file",className:a.fileUploaderInput,onChange:e=>{const t=e.target.files||e.dataTransfer.files||[];t.length>0&&(i(),o(t[0])),e.stopPropagation(),e.preventDefault()},ref:s,name:"uploadfile",accept:l}))};Yw.propTypes={onUpload:a().func,onBeforeUpload:a().func,supportedFileTypes:a().arrayOf(a().string)};const $w=e=>{let{link:r,filename:o,onUpload:i,onError:a=qw,onCancel:s,supportedFileTypes:l,isValidLink:u=!0}=e;const[c,p]=(0,t.useState)(1),[d,f]=(0,t.useState)(""),h=Gw();(0,t.useEffect)((()=>{f(o)}),[o]),(0,t.useEffect)((()=>{p(r?3:1)}),[r]);const m=(0,t.useCallback)((e=>{p(1),a(e)}),[a]),g=(0,t.useCallback)((e=>i(e).then((()=>{p(3),f(e.name)})).catch(m)),[i,m]),v=(0,t.useCallback)((()=>{p(2)}),[]),y=(0,t.useCallback)((()=>{p(1),s()}),[s]);switch(c){case 1:return n().createElement(Yw,{supportedFileTypes:l,onUpload:g,onBeforeUpload:v});case 3:{const e=(0,Go.getLabel)(d);return n().createElement("div",{className:h.uploaded},n().createElement(Vd,{value:e},u?n().createElement(Ui(),{href:r,className:h.label},e):n().createElement(A(),{variant:"inherit",className:h.label},e)),n().createElement($b.Z,{onClick:y,onMouseDown:y,onTouchEnd:y,className:h.cancelIcon}))}case 2:return n().createElement(he(),{size:20});default:return null}};$w.propTypes={link:a().string,filename:a().string,onUpload:a().func,onError:a().func,onCancel:a().func,supportedFileTypes:a().arrayOf(a().string),isValidLink:a().bool};const Kw=$w,Zw=(0,o.makeStyles)({editor:{alignSelf:"center"}}),Xw=e=>{let{value:r,onChange:o,onError:i,className:a}=e;const{downloadLink:s,filename:u,expirationDate:c}=r||{},p=c>=Date.now(),d=(0,t.useCallback)((e=>(0,Go.uploadFileForSearch)(e).then((t=>{let{path:n,downloadLink:r,expirationDate:i}=t;o({filename:e.name,downloadLink:r,link:n,expirationDate:new Date(i).getTime()})}))),[o]),f=(0,t.useCallback)((()=>o(null)),[o]),h=Zw();return n().createElement("div",{className:l()(h.editor,a)},n().createElement(Kw,{isValidLink:p,link:s,filename:u,supportedFileTypes:[".txt",".csv"],onUpload:d,onError:i,onCancel:f}))};function Qw(){return Qw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(this,arguments)}function Jw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const eE=e=>t=>e.find((0,u.propEq)("value",t)),tE=e=>{let{entries:t,classes:r={}}=e,o=Jw(e,["entries","classes"]);const{menuItem:i}=r,a=Jw(r,["menuItem"]);return n().createElement(xm,Qw({},o,{classes:a,getValueLabel:(0,u.pipe)(eE(t),(0,u.prop)("label"))}),t.map(((e,t)=>{let{value:r,label:o}=e;return n().createElement(qi(),{key:t,value:r,className:i},o||r.toString())})))};tE.propTypes={classes:a().object,entries:a().arrayOf(lm).isRequired};const nE=tE;function rE(){return rE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rE.apply(this,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=r.concat(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 in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aE=e=>{let{classes:t}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["classes"]);const o=Dm();return n().createElement(nE,rE({MenuProps:{disableAutoFocusItem:!0},classes:oE({},t,{root:l()(o.root,(0,u.prop)("root",t)),icon:l()(o.icon,(0,u.prop)("icon",t))})},r))};aE.propTypes={classes:a().object};const sE=aE;function lE(){return lE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lE.apply(this,arguments)}function uE(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cE(e,t,n[t])}))}return e}function cE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pE(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dE(e,t,n[t])}))}return e}function dE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fE=e=>{let{fieldName:o,value:i,onChange:a,dataTypeDefinition:s,TextFieldProps:l={}}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["fieldName","value","onChange","dataTypeDefinition","TextFieldProps"]);const p=Am(),d=((e,n)=>{const o=(0,r.useSelector)(y().selectors.getTenant),i=(0,r.useSelector)(y().selectors.getLookups),a=(0,r.useSelector)(y().selectors.getAttributePresentations),s=(0,r.useSelector)(y().selectors.getGlobalSearchRequestOptions),l=(0,r.useDispatch)(),c=(0,t.useCallback)((t=>(0,Go.getFacetedAttributeData)({fieldName:e,searchValue:t,options:uE({},s)}).then((t=>Object.keys(t[e])))),[e,s]),{type:p,values:d,lookupCode:f,uri:h,dependentLookupCode:m,options:g}=n;switch(p){case Go.DataTypes.TYPE_ENUM:return{entries:d.map((e=>({value:e})))};case Go.DataTypes.TYPE_LOOKUP:return{lookups:i,lookupCode:f,getLookups:()=>(0,Go.getLookups)().then((e=>{l(v.profile.lookups.actions.lookupsLoaded(e))}))};case Go.DataTypes.TYPE_DEPENDENT_LOOKUP:return{lookups:i,lookupCode:m,getLookups:(e,t,n)=>(0,Go.getDependentLookups)({type:e,parents:t,displayNamePrefix:n}).then((t=>{let{codeValues:n}=t;return(0,u.propOr)({},e,n)})),resolveLookups:(e,t)=>{const n=t.map((t=>({type:e,codeValue:t})));return(0,Go.resolveLookupsList)(n).then((t=>{if(Array.isArray(t)){const n=t.reduce(((t,n)=>uE({},t,n[e])),{});l(v.profile.lookups.actions.lookupsForTypeResolved({type:e,values:n}))}}))}};case Go.DataTypes.TYPE_TYPEAHEAD:return{getSuggestions:c};case Go.DataTypes.TYPE_NUMBER:case Go.DataTypes.TYPE_FLOAT:case Go.DataTypes.TYPE_DOUBLE:case Go.DataTypes.TYPE_LONG:case Go.DataTypes.TYPE_INT:return{format:a[h]};case Go.DataTypes.TYPE_FILE:return{tenant:o};case Go.DataTypes.TYPE_SELECT:return{entries:g};default:return{}}})(o,s);return l=(0,u.mergeDeepLeft)(l,pE({},Pm,{className:p.marginDense,InputProps:{disableUnderline:(e=>(0,u.is)(Object,e)&&(0,u.has)("value",e)?(0,Go.isEmptyValue)(e.value):(0,Go.isEmptyValue)(e))(i)}})),class{static build(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{fullWidth:r,TextFieldProps:o,color:i}=t,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["fullWidth","TextFieldProps","color"]);switch(e){case Go.DataTypes.TYPE_STRING:case Go.DataTypes.TYPE_CIK_ID:case Go.DataTypes.TYPE_ENTITY_ID:case Go.DataTypes.TYPE_URL:case Go.DataTypes.TYPE_BLOG_URL:case Go.DataTypes.TYPE_IMAGE_URL:return n().createElement(_g,lE({fullWidth:r},o,a));case Go.DataTypes.TYPE_EMAIL:return n().createElement(_g,lE({fullWidth:r},o,a,{type:"email"}));case Go.DataTypes.TYPE_TEXT:case Go.DataTypes.TYPE_BLOB:return n().createElement(_g,lE({fullWidth:r,rowsMax:7},o,a,{multiline:!0}));case Go.DataTypes.TYPE_PASSWORD:return n().createElement(_g,lE({fullWidth:r},o,a,{type:"password"}));case Go.DataTypes.TYPE_LONG:case Go.DataTypes.TYPE_INT:case Go.DataTypes.TYPE_COUNT:return n().createElement(Lg,lE({fullWidth:r},o,a,{integer:!0}));case Go.DataTypes.TYPE_FLOAT:case Go.DataTypes.TYPE_DOUBLE:case Go.DataTypes.TYPE_NUMBER:case Go.DataTypes.TYPE_DOLLAR:return n().createElement(Lg,lE({fullWidth:r},o,a));case Go.DataTypes.TYPE_BOOLEAN:case Go.DataTypes.TYPE_BOOLEAN_RADIO:case Go.DataTypes.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return n().createElement(Kh,lE({color:i},a,{className:null==o?void 0:o.booleanRadioEditorClassName}));case Go.DataTypes.TYPE_DATE:case Go.DataTypes.TYPE_ACTIVENESS_DATE:case Go.DataTypes.TYPE_LOCAL_DATE:return n().createElement(rm,lE({},o,a));case Go.DataTypes.TYPE_TIMESTAMP:return n().createElement(Hg,lE({},o,a));case Go.DataTypes.TYPE_ENUM:case Go.DataTypes.TYPE_SELECT:return n().createElement(sE,lE({fullWidth:r,TextFieldProps:o},a));case Go.DataTypes.TYPE_LOOKUP:return n().createElement(Bm,lE({fullWidth:r,TextFieldProps:o},a));case Go.DataTypes.TYPE_TYPEAHEAD:return n().createElement(iv,lE({fullWidth:r},o,a));case Go.DataTypes.TYPE_DEPENDENT_LOOKUP:return n().createElement(Ww,lE({fullWidth:r,TextFieldProps:o},a));case Go.DataTypes.TYPE_FILE:return n().createElement(Xw,a);default:return n().createElement(_g,lE({fullWidth:r},o,a))}}}.build(s.type,pE({onChange:a,value:i,TextFieldProps:l},d,c))};fE.propTypes={fieldName:a().string,value:a().any,onChange:a().func,dataTypeDefinition:a().object};const hE=fE,mE=window["material-ui"].FormControl;var gE=f.n(mE);const vE=window["material-ui"].FormHelperText;var yE=f.n(vE);function bE(){return bE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bE.apply(this,arguments)}const wE=(0,t.memo)((e=>{let{errorMessage:t,children:r,className:o,classes:i}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["errorMessage","children","className","classes"]);const s=Uh(),u=!!t;return n().createElement(gE(),bE({className:l()(s.wrapper,o,null==i?void 0:i.root),error:!0},a),r,u&&n().createElement(yE(),{className:l()(s.helperText,null==i?void 0:i.helperText)},n().createElement(Bh,{message:t})))})),EE=(0,u.curry)(((e,t,n)=>{const r=((e,t)=>{const{type:n}=(0,Go.getAttrDataTypeDefinition)(e);switch(n){case Go.DataTypes.TYPE_BOOLEAN:case Go.DataTypes.TYPE_BOOLEAN_RADIO:case Go.DataTypes.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return t.toString();case Go.DataTypes.TYPE_DATE:return t&&Ro()(t).format("YYYY-MM-DD")||"";case Go.DataTypes.TYPE_TIMESTAMP:return t&&Ro()(t).format()||"";case Go.DataTypes.TYPE_ACTIVENESS_DATE:case Go.DataTypes.TYPE_LOCAL_DATE:return t&&t.valueOf();default:return t||""}})(t,n);return{value:r,uri:e.uri,attributeType:t}})),xE=n().createContext({enabled:!1,queueSizeThreshold:0});xE.Provider.propTypes={value:a().shape({enabled:a().bool,queueSizeThreshold:a().number})},xE.displayName="AsyncMountContext";let OE=0;const SE=()=>{const e=(0,t.useRef)(!0),{enabled:n,queueSizeThreshold:r=0}=(0,t.useContext)(xE),[o,i]=(0,t.useState)(!n||n&&OE<r);e.current&&OE++;const a=(0,t.useRef)();return(0,t.useEffect)((()=>{if(OE--,!o)return a.current=setTimeout((()=>{i(!0)}),0),()=>clearTimeout(a.current)}),[]),e.current=!1,o};function CE(){return CE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CE.apply(this,arguments)}function _E(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kE(e,t,n[t])}))}return e}function kE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TE={},PE=(0,o.makeStyles)((e=>({wrapper:{width:"100%"},errorWrapper:{alignSelf:"stretch"},editor:{display:"flex",flex:1,alignItems:"flex-start",marginBottom:"10px"},"editor-value":{flex:"1 1 auto"},"editor-read-only-value":{marginLeft:"12px",display:"flex",alignItems:"center"},"editor-actions":{display:"flex",alignItems:"center",paddingLeft:"8px"},addButton:{marginRight:"-8px"},button:{color:e.palette.text.secondary},placeholder:{height:"50px"},deleted:{color:e.palette.text.secondary,textDecoration:"line-through"},editedLabel:{fontStyle:"italic",color:e.palette.text.secondary}})));function AE(){return AE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AE.apply(this,arguments)}const DE=e=>{let{className:t,attributeValue:o,attributeType:i,isReltioCrosswalk:a,ownError:s,mode:c,onAddOneMore:d,onDeleteAttribute:f,onChangeAttribute:h,onDeactivateError:m,additionalControlsRenderer:g,state:v}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","attributeValue","attributeType","isReltioCrosswalk","ownError","mode","onAddOneMore","onDeleteAttribute","onChangeAttribute","onDeactivateError","additionalControlsRenderer","state"]);const w=PE(),E="deleted"===v,x="edited"===v,O=(0,Go.isEditableMode)(c),S=(0,Go.getAttrDataTypeDefinition)(i),C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t}=arguments.length>1?arguments[1]:void 0;const{value:n,lookupCode:r}=e;switch(t){case Go.DataTypes.TYPE_BOOLEAN:case Go.DataTypes.TYPE_BOOLEAN_RADIO:case Go.DataTypes.TYPE_RDM_LOOKUPS_NOT_RESOLVED:return(0,Go.parseBoolean)(n);case Go.DataTypes.TYPE_DATE:return n&&Go.utils.dates.toLocalDate(n)||null;case Go.DataTypes.TYPE_LOCAL_DATE:case Go.DataTypes.TYPE_TIMESTAMP:case Go.DataTypes.TYPE_ACTIVENESS_DATE:return n&&new Date(n)||null;case Go.DataTypes.TYPE_DEPENDENT_LOOKUP:case Go.DataTypes.TYPE_LOOKUP:return{value:n,lookupCode:r};default:return n}}(o,S),_=(0,Go.checkCanCreateAttribute)({attributeType:i,mode:c}),k=(0,Go.checkCanEditAttribute)({attributeType:i,attributeValue:o,mode:c,isReltioCrosswalk:a}),T=(0,Go.checkCanDeleteAttribute)({attributeType:i,attributeValue:o,mode:c,isReltioCrosswalk:a}),P=k&&O,D=(0,Go.getErrorMessage)(s),j=(0,r.useSelector)((e=>(0,Go.isDependentLookupAttrType)(i)?((e,t,n)=>{const r=y().selectors.getDependentLookupsStructureNode(e,n);if(r){const a=t.uri,{parents:s,missedParentsAttributeTypes:l}=((e,t,n)=>{var r;const o=n.parents.flatMap((t=>{const n=y().selectors.getDependentLookupsStructureNode(e,t);return n.values.map((e=>_E({},e,{type:t,dependentLookupCode:n.attrType.dependentLookupCode})))})),i=y().selectors.getModifiedEntities(e),a=y().selectors.getEntityUri(e),s=y().selectors.getAllRelationsToAddAndEdit(e),l=y().selectors.getMetadata(e),c=(0,Go.filterRelatedParentValuesForDependentLookupValueUri)({parentValues:o,valueUri:t,entityUri:a,modifiedEntities:i,connections:s}),p=(0,u.pipe)(Go.getAttributeValuePath,(0,u.defaultTo)([]),(0,u.map)((0,u.pipe)((0,u.path)(["valueType","uri"]),Go.getBaseUri)),(0,u.prepend)(null===(r=i[a])||void 0===r?void 0:r.type),(0,u.reject)(u.isNil),u.uniq)({entityUri:a,entitiesMap:i,connections:s,metadata:l},t),d=n.parents.filter((e=>p.some((0,Go.areOneHierarchyUris)(e)))).map((t=>y().selectors.getDependentLookupsStructureNode(e,t).attrType)).filter((e=>!c.some((t=>{let{type:n,value:r}=t;return r&&n===e.uri}))));return{parents:Object.values(c.reduce(((e,t)=>{var n;return _E({},e,{[t.dependentLookupCode]:{type:t.dependentLookupCode,codeValues:(0,u.uniq)([t.value,...(null===(n=e[t.dependentLookupCode])||void 0===n?void 0:n.codeValues)||[]]).filter(Boolean).sort()}})}),{})),missedParentsAttributeTypes:d}})(e,a,r),{isBlocked:c=!1}=y().selectors.getDependentLookupEditorState(e,a)||{},d=(o=l).length?p().text("Please select value for ${labels} ${attributes}.",{labels:(i=o.map((0,u.pipe)((0,u.prop)("label"),(e=>`'${e}'`))),i.reduce(((e,t,n)=>[e,t].join(n===i.length-1?` ${p().text("and")} `:", ")))),attributes:1===o.length?p().text("attribute"):p().text("attributes")}):"",f=y().selectors.getLookupAutocomplete(e),h=(0,Go.isAutopopulationEnabled)(f,n),m=!(null!=t&&t.lookupCode||null!=t&&t.value)&&c&&p().text("Populating values...")||d||"",g={parents:s,disabled:!!d||c,placeholder:m,autopopulationId:h?a:null};return m&&(g.value=null),((e,t)=>{const n=TE[e];return(0,u.equals)(t,n)?n:((0,u.equals)(null==n?void 0:n.parents,t.parents)&&(t.parents=n.parents),TE[e]=t,t)})(a,g)}var o,i})(e,o,null==i?void 0:i.uri):null)),L=()=>{s&&m((0,Go.getErrorId)(s))},I=!!d&&_&&!i.singleValue,M=!E&&!!f&&T,N=!!D,R=E?{disabled:!0}:{};return n().createElement("div",{className:l()(w.editor,t)},n().createElement(wE,{errorMessage:D,className:w.errorWrapper},n().createElement("div",{className:l()(w["editor-value"],{[w.deleted]:E},{[w["editor-read-only-value"]]:!P})},P?n().createElement(hE,AE({fieldName:(0,Go.attributeUriToSearchUri)(i.uri),value:C,dataTypeDefinition:S,error:N,onChange:(0,u.pipe)(EE(o,i),h,L),fullWidth:!0},j,b,R)):n().createElement(Cu,{value:(0,Go.getAttributeValue)(o),dataTypeDefinition:S}))),n().createElement("div",{className:w["editor-actions"]},x&&n().createElement(A(),{variant:"caption",className:w.editedLabel},"(",p().text("edited"),")"),I&&n().createElement(aa,{icon:yf.Z,onClick:d,size:"L",className:l()(w.addButton,w.button)}),g&&g({attributeType:i,attributeValue:o}),M&&n().createElement(aa,{className:w.button,icon:Hh.Z,onClick:()=>{f({uri:o.uri,attributeType:i}),(0,Go.getErrorType)(s)!==Go.ErrorType.missed&&L()},size:"L"})))};DE.propTypes={className:a().string,attributeValue:Go.SimpleAttributeValueType,attributeType:Go.AttributeTypeType,ownError:Go.AttributeErrorType,isReltioCrosswalk:a().bool,state:a().oneOf(["deleted","edited"]),mode:Go.ModeType,onAddOneMore:a().func,onDeleteAttribute:a().func,onChangeAttribute:a().func,onDeactivateError:a().func,additionalControlsRenderer:a().func};const jE=(0,t.memo)(function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const o=(0,t.forwardRef)(((t,o)=>SE()?n().createElement(e,CE({},t,{ref:o})):r&&n().createElement(r,CE({},t,{ref:o}))));return o.displayName="WithAsyncMount",o}(DE,(()=>{const e=PE();return n().createElement("div",{className:e.placeholder})}))),LE=(0,o.makeStyles)((e=>({editor:{display:"flex",flex:1,height:"36px",alignItems:"center"},label:{flex:1,marginLeft:"2px",marginTop:"2px",fontSize:"13px",lineHeight:"15px"},actions:{display:"flex",alignItems:"center"},titleContainer:{display:"flex",flex:1,minHeight:"20px"},expandButton:{marginTop:"2px"},deleted:{color:e.palette.text.secondary,textDecoration:"line-through"},editedLabel:{fontStyle:"italic",color:e.palette.text.secondary},errorWrapperHelperText:{marginLeft:0}}))),IE=[Go.EntityAttrTypes.roles.uri,Go.EntityAttrTypes.tags.uri],ME=(e,t,n,r)=>{const o=(0,u.pipe)(Go.getEntityType,(0,u.defaultTo)({}),(0,u.props)(["attributes","analyticsAttributes"]),(0,u.reject)(u.isNil),u.flatten,(0,u.concat)(u.__,(0,u.pipe)(u.values,(0,u.reject)((0,u.propEq)("uri",Go.EntityAttrTypes.id.uri)))(Go.EntityAttrTypes)))(e,t);return n.length?o.filter((e=>{let{uri:t}=e;return n.includes(t)})):o.filter((e=>{let{uri:t}=e;return!r.includes(t)}))},NE=(e,t)=>(0,u.partition)((0,u.pipe)((0,u.path)(["attrType","uri"]),(0,u.includes)(u.__,e)),t),RE=n().createContext(null);function FE(){return FE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FE.apply(this,arguments)}const zE=e=>{let{attrTypes:r,entity:o,parentUri:i,showEmptyEditors:a,mode:s,crosswalks:l,drawLines:c,children:d,className:f,alwaysVisibleTypeUris:h=IE,onAddAttributes:m,onChangeAttribute:g,onDeleteAttribute:v,additionalControlsRenderer:y,showNonOv:b}=e;const{attributes:w={}}=o,E=(0,t.useMemo)((()=>(0,Go.getCreatableAttributeTypes)(s,r)),[r,s]),x=((e,t)=>e.filter((e=>{const n=((e,t)=>{const{attributes:n={},analyticsAttributes:r={}}=t;return(0,u.cond)([[Go.isSpecialAttribute,(0,u.always)(t)],[(0,u.both)(Go.isAnalyticAttribute,(0,u.always)(r)),(0,u.always)(r)],[u.T,(0,u.always)(n)]])(e)})(e,t),r=(e=>(0,Go.isSpecialAttribute)(e)?"uri":"name")(e);return!((e.singleValue||(0,Go.isRoleAttrType)(e)||(0,Go.isTagAttrType)(e))&&(0,u.has)(e[r])(n))})))(E,o),O=(0,t.useContext)(RE),S=(0,t.useMemo)((()=>(0,Go.getAttributesListForEditMode)(r,s,o,a,b,O)),[r,s,o,a,b,O]),[C,_]=(0,t.useMemo)((()=>NE(h,S)),[S,h]),k=(0,t.useCallback)((e=>{m(e.map((e=>({attributeType:e,parentUri:i}))))}),[m,i]),T={enabled:c};return n().createElement("div",{className:f},d&&n().createElement(su,T,d),n().createElement(su,FE({},T,{plain:!0}),E.length>0&&n().createElement(Of,{label:p().text("More attributes"),onApply:k,dense:c,data:x})),_.concat(C).map((e=>{let{attrType:t,values:r}=e;return n().createElement(LO,{key:t.uri,attributeType:t,drawLines:c,values:r,paging:(0,u.path)(["paging",t.uri],w),parentUri:i,showEmptyEditors:a,mode:s,crosswalks:l,onAddAttributes:m,onChangeAttribute:g,onDeleteAttribute:v,additionalControlsRenderer:y,showNonOv:b})})))};zE.propTypes={attrTypes:a().array,entity:a().object,parentUri:a().string,children:a().node,showEmptyEditors:a().bool,mode:Go.ModeType,crosswalks:a().array,drawLines:a().bool,showNonOv:a().bool,className:a().string,alwaysVisibleTypeUris:a().array,onAddAttributes:a().func,onChangeAttribute:a().func,onDeleteAttribute:a().func,additionalControlsRenderer:a().func};const VE=(0,t.memo)(zE);function UE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BE=e=>{let{label:r,attributeTypesList:o,attributeType:i,attributeValue:a,children:s,errors:u,ownError:c,mode:d,metadata:f,crosswalks:h,lazy:m,showEmptyEditors:g,onAddOneMore:v,onAddAttributes:y,onDeleteAttribute:b,onChangeAttribute:w,additionalControlsRenderer:E,hideDeleteButton:x,state:O,showNonOv:S}=e;const C=LE(),_="deleted"===O,k="edited"===O,T=a.uri,P=(0,Go.isTempUri)(T),[D,L]=(0,t.useState)(P),I=(0,t.useMemo)((()=>(0,Go.checkCanDeleteAttribute)({attributeType:i,attributeValue:a,mode:d,metadata:f,isReltioCrosswalk:(0,Go.isReltioCrosswalk)(h,a)})),[i,a,d,f,h]),M=!_&&!x&&!!b&&I,N=(0,t.useMemo)((()=>(0,Go.hasAttributeDescendantsWithErrors)(a,u)),[u,a]);(0,t.useEffect)((()=>{N&&L(!0)}),[u,N]),(0,t.useEffect)((()=>{_&&L(!1)}),[_]);const R=(o||[]).some((e=>(0,Go.isAnalyticAttribute)(e))),F=(0,t.useMemo)((()=>({attributes:R?null:a.value,analyticsAttributes:R?a.value:null})),[a,R]),z=(0,Go.getErrorMessage)(c)||N&&p().text("Has an incorrect value")||"";return m?n().createElement(j(),{variant:"text",color:"primary",onClick:v},"Create attribute"):n().createElement(n().Fragment,null,n().createElement("div",{className:C.editor},n().createElement("div",{className:C.titleContainer},n().createElement(ic,{onClick:()=>L((e=>!e)),expanded:D,className:C.expandButton,disabled:_}),n().createElement(wE,{errorMessage:z,classes:{helperText:C.errorWrapperHelperText}},n().createElement("div",{className:l()(C.label,{[C.deleted]:_})},r))),n().createElement("div",{className:C.actions},k&&n().createElement(A(),{variant:"caption",className:C.editedLabel},"(",p().text("edited"),")"),E&&E({attributeType:i,attributeValue:a}),M&&n().createElement(aa,{icon:Hh.Z,onClick:()=>b({uri:T,attributeType:i,attributeValue:a}),size:"L"}))),D&&n().createElement(VE,{attrTypes:o,entity:F,showEmptyEditors:g||P,drawLines:!0,parentUri:T,mode:d,crosswalks:h,onAddAttributes:y,onChangeAttribute:w,onDeleteAttribute:b,additionalControlsRenderer:E,showNonOv:S},s))};BE.propTypes=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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){UE(e,t,n[t])}))}return e}({label:a().string,children:a().node,attributeTypesList:a().arrayOf(Go.AttributeTypeType),attributeValue:a().oneOfType([Go.NestedAttributeValueType,Go.ReferenceAttributeValueType])},Go.ComplexAttributeType);const HE=BE;function WE(){return WE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WE.apply(this,arguments)}const GE=e=>{const{attributeValue:t,attributeType:r}=e,o=(0,Go.evaluateDeepEntityLabel)(t,r.dataLabelPattern);return n().createElement(HE,WE({label:(0,Go.getLabel)(o),attributeTypesList:r.attributes||r.analyticsAttributes},e))};GE.propTypes=Go.NestedAttributeType;const qE=(0,t.memo)(GE),YE=(0,o.makeStyles)((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"}}))),$E=(0,o.makeStyles)({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"21px"}}),KE=e=>{const{selectProps:{onCreate:t,createLabel:r,inputValue:o,components:i},children:a}=e,s=YE();return n().createElement(Lw,e,a,r&&!(0,u.prop)("Group",i)&&n().createElement("span",{className:s.addLabel,onClick:()=>t(o)},n().createElement(yf.Z,{className:s.addIcon}),r))};KE.propTypes={children:a().element.isRequired,selectProps:a().object.isRequired};const ZE=KE;f(2220),f(8527),t.Component;const XE=gw(Lb(Db));function QE(){return QE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QE.apply(this,arguments)}function JE(e){const{selectProps:{menuIsOpen:t},innerProps:r,children:o}=e,i=$E();return!t&&n().createElement(A(),QE({className:i.singleValue},r),o)}function ex(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tx(e,t,n[t])}))}return e}function tx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}JE.propTypes={children:a().node,innerProps:a().object};const nx=(0,o.makeStyles)({control:{height:"auto"},dropdownIndicator:{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",lineHeight:"16px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),rx={menu:e=>ex({},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=>ex({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>ex({},e,{padding:"0 0 8px 0"}),input:e=>ex({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>ex({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},ox={menuList:e=>ex({},e,{padding:0})},ix={input:e=>ex({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function ax(){return ax=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ax.apply(this,arguments)}function sx(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lx(e,t,n[t])}))}return e}function lx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ux=e=>{let{value:r,label:o,createLabel:i,getOptions:a,options:s,height:c=46,onChange:p=u.identity,onCreate:d,onClear:f=u.identity,components:h,textFieldInputRef:m,TextFieldProps:g,classes:v}=e,y=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","label","createLabel","getOptions","options","height","onChange","onCreate","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const b=nx({height:c}),w=Am(),[E,x]=(0,t.useState)(!1),O=(0,t.useRef)(null),S=a?vw:XE,C=(0,u.prop)("ClearIndicator",h)?{}:{IndicatorSeparator:Zo,ClearIndicator:Zo},_=d?(e,t)=>{d(e,t),x(!1)}:void 0,k=(0,u.prop)("Group",h)?ox:{},T=(0,u.isEmpty)(o)?ix:{},P=sx({},rx,k,T),A=sx({},b,v);return n().createElement(S,ax({placeholder:"",defaultOptions:!0},y,{value:(0,u.defaultTo)(null,r),loadOptions:a,options:s,cacheOptions:!0,onChange:p,onCreate:_,onClear:f,createLabel:i,classes:A,styles:P,components:sx({DropdownIndicator:_w,LoadingIndicator:Zo,SingleValue:JE,Menu:ZE},C,h),menuPlacement:"auto",TextFieldProps:sx({},g,{label:o,variant:"filled",margin:"dense",classes:sx({},(0,u.prop)("classes",g),{root:l()(b.formControl,(0,u.path)(["classes","root"],g))}),inputProps:sx({},(0,u.prop)("inputProps",g)),InputProps:sx({},(0,u.prop)("InputProps",g),{classes:sx({},(0,u.path)(["InputProps","classes"],g),{root:l()(b.filledInputRoot,(0,u.path)(["InputProps","classes","root"],g)),underline:l()({[w.filledInputUnderline]:(0,Go.isEmptyValue)(r)},(0,u.path)(["InputProps","classes","underline"],g)),focused:l()("focused",(0,u.path)(["InputProps","classes","focused"],g))})}),InputLabelProps:sx({},(0,u.prop)("InputLabelProps",g),{classes:sx({},(0,u.path)(["InputLabelProps","classes"],g),{root:l()(b.inputLabel,(0,u.path)(["InputLabelProps","classes","root"],g)),shrink:l()("shrink",(0,u.path)(["InputLabelProps","classes","shrink"],g))}),shrink:!(0,Go.isEmptyValue)(r)||void 0}),ref:m||O}),inputRef:m||O,menuIsOpen:E,onMenuOpen:()=>x(!0),onMenuClose:()=>x(!1)}))},cx={value:a().oneOfType([a().object,a().array]),label:a().string.isRequired,getOptions:a().func,options:a().array,onChange:a().func,onCreate:a().func,onClear:a().func,createLabel:a().string,components:a().object,textFieldInputRef:a().object,TextFieldProps:a().object,height:a().number,classes:a().object};ux.propTypes=cx;const px=ux;var dx=f(8018);function fx(){return fx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fx.apply(this,arguments)}const hx=e=>{const t=(0,r.useSelector)(y().selectors.getAbsoluteImagePath)||"";return n().createElement(dx.ZP,fx({},e,{storagePath:(o=t,o.endsWith("/")?o:o+"/")}));var o},mx=(0,o.makeStyles)({entityContainer:{display:"flex",alignItems:"center",height:"32px",minHeight:"32px",padding:0},entityLabel:{height:"15px",fontSize:"13px",color:"rgba(0,0,0,0.87)",cursor:"pointer",lineHeight:"15px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},emptyEntityLabel:{height:"15px",fontSize:"13px",color:"rgba(0,0,0,0.6)",lineHeight:"15px",marginLeft:"16px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",cursor:"default"},entityAvatar:{transform:"scale(0.5)",marginLeft:"8px",marginRight:"11px"},entitySecondaryLabel:{color:"rgba(0,0,0,0.6)"}}),gx=(0,o.makeStyles)((e=>({singleValue:{color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",paddingTop:"18px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},linkValue:{cursor:"pointer",color:e.palette.primary.main,textDecoration:"none"}}))),vx=(0,o.makeStyles)((e=>({addLabel:{color:e.palette.primary.main,display:"flex",fontWeight:"500",cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},groupHeading:{fontSize:"13px",height:"36px",padding:"0 16px",display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),yx=(0,o.makeStyles)({clearIcon:{cursor:"pointer",height:"20px",width:"20px"}});function bx(){return bx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bx.apply(this,arguments)}const wx=e=>{let{innerRef:t,innerProps:r,selectOption:o,data:i}=e;const a=mx(),{uri:s,entityType:l,label:u,secondaryLabel:c}=i;return""!==s?n().createElement(qi(),bx({className:a.entityContainer,ref:t,key:s,onClick:()=>o({label:u,uri:s,entityType:l})},r),n().createElement(hx,{className:a.entityAvatar,entityType:l}),n().createElement("span",{className:a.entityLabel},u,c&&n().createElement("span",{className:a.entitySecondaryLabel},", ",c))):n().createElement(qi(),bx({className:a.entityContainer,ref:t,key:s},r,{disabled:!0}),n().createElement("span",{className:a.emptyEntityLabel},p().text("No results found")))};wx.propTypes={innerRef:a().oneOfType([a().oneOf([null]),a().func,a().shape({current:a().any.isRequired})]),innerProps:a().object.isRequired,selectOption:a().func.isRequired,data:a().shape({uri:a().string.isRequired,label:a().string.isRequired,entityType:Go.EntityType.isRequired})};const Ex=wx,xx=e=>{const{selectProps:{currentEntityType:o,menuIsOpen:i,disableLinkClick:a},children:s,data:c}=e,d=gx(),f=(0,r.useDispatch)(),h=(0,t.useContext)(ua),m=(0,r.useSelector)(y().selectors.getUIPath),g=(0,Go.isTempUri)(c.entityUri)?{className:d.singleValue,component:"span"}:{className:l()(d.singleValue,d.linkValue),onMouseDown:e=>{e.stopPropagation(),a||(0,u.pipe)((0,u.always)({uri:c.entityUri,viewId:h}),v.ui.actions.openEntity,f)()},onClick:e=>e.preventDefault(),href:(0,Go.getEntityLink)({uiPath:m,uri:c.entityUri}),component:"a"};return!i&&n().createElement(A(),g,(0,Go.isTempUri)(c.entityUri)?p().text(`New ${o.label} will be created`):(0,Go.getLabel)(s))};xx.propTypes={children:a().string,data:a().object.isRequired,selectProps:a().object.isRequired};const Ox=xx;var Sx=f(3375);const Cx=e=>{const{selectProps:{onClear:t}}=e,r=yx();return n().createElement(N(),{onClick:t},n().createElement(Sx.Z,{className:r.clearIcon}))};Cx.propTypes={selectProps:a().object.isRequired};const _x=Cx,kx=e=>e&&e.attributes,Tx=e=>{let{entity:r,entityType:o,attributeTypesSelectionStrategy:i=kx,mode:a,onAddAttributes:s,onDeleteAttribute:l,onChangeAttribute:u}=e;const c=(0,t.useMemo)((()=>i(o)),[i,o]);return r?n().createElement(VE,{key:r.uri,attrTypes:c,entity:r,showEmptyEditors:!0,drawLines:!0,parentUri:r.uri,mode:a,crosswalks:r.crosswalks,onAddAttributes:s,onChangeAttribute:u,onDeleteAttribute:l}):null};Tx.propTypes={entityUri:a().string,parentUri:a().string,entity:a().object,entityType:a().object,attributeTypesSelectionStrategy:a().func,mode:Go.ModeType,onAddAttributes:a().func,onDeleteAttribute:a().func,onChangeAttribute:a().func};const Px=Tx,Ax={onAddAttributes:v.profile.actions.addAttributes,onDeleteAttribute:v.profile.actions.removeAttribute,onChangeAttribute:v.profile.actions.modifyAttribute},Dx=(0,r.connect)(((e,t)=>({entity:t.entityUri&&y().selectors.getModifiedEntity(e,t.entityUri)})),Ax)(Px),{Group:jx}=Yy,Lx=e=>{const{selectProps:{inputValue:t,onCreate:r},data:o,children:i}=e,a=vx();return n().createElement(jx,e,n().createElement("div",{className:a.groupHeading},n().createElement("span",null,o.label),r&&n().createElement("span",{onClick:()=>r(t,o.entityType),className:a.addLabel},n().createElement(yf.Z,{className:a.addIcon}),p().text(`Create ${t?`"${t}" as `:""}new ${o.label}`))),i)};Lx.propTypes={selectProps:a().object.isRequired,data:a().object,children:a().array};const Ix=Lx,Mx=(0,o.makeStyles)({creatorWrapper:{marginTop:"20px"}});function Nx(){return Nx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nx.apply(this,arguments)}function Rx(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Fx(e,t,n[t])}))}return e}function Fx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zx=e=>{let{entity:r={},entityTypesUris:o=[],mode:i,max:a,onChange:s,onCreate:l,metadata:c,globalSearchRequestOptions:d,attributeTypesSelectionStrategy:f,disableLinkClick:h}=e,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["entity","entityTypesUris","mode","max","onChange","onCreate","metadata","globalSearchRequestOptions","attributeTypesSelectionStrategy","disableLinkClick"]);const g=Mx(),[v,y]=(0,t.useState)(""),b=(0,t.useMemo)((()=>o.map((e=>(0,Go.getEntityType)(c,e)))),[o,c]),w=[{filter:"equals",fieldName:"type",values:o.map(Go.getLastUriPart)}],E=Rx({},d,{max:a}),x=l?(e,t)=>{l(t||o[0],e),y("")}:void 0,O=e=>{null!==e&&(y(""),s(e))},S=(0,t.useMemo)((()=>1!==b.length),[b]),C=((0,u.isEmpty)(r)?b[0]:(0,Go.getEntityType)(c,r.entityType))||{},_=l&&p().text(`Create ${v?`"${v}" as `:""}new ${C.label}`),k=p().text(`Select ${1===b.length?`${b[0].label} `:""}profile`),T=!(0,u.isEmpty)(r)&&(0,Go.isTempUri)(r.entityUri),P=S?{Group:Ix,GroupHeading:Zo}:{},A=T?{ClearIndicator:_x}:{};return n().createElement(n().Fragment,null,n().createElement(px,Nx({value:(0,u.isEmpty)(r)?void 0:r,inputValue:v,onInputChange:e=>{y(e)},getOptions:e=>(0,Go.getFilteredEntities)(w,E,e).then((e=>t=>{const n=t.map((t=>Rx({},t,{label:(0,Go.getLabel)(t.label),entityType:e.find((e=>{let{uri:n}=e;return n===t.type}))}))),r=e=>(0,u.isEmpty)(e)?[{label:"",uri:"",entityType:{}}]:e;return e.length>1?e.map((e=>({label:e.label,entityType:e.uri,options:r(n.filter((t=>t.type===e.uri)))}))):r(n)})(b)),getOptionLabel:(0,u.prop)("entityLabel"),onChange:O,onCreate:x,onClear:()=>{O({})},label:k,createLabel:_,components:Rx({Option:Ex,SingleValue:Ox},P,A),currentEntityType:C,isClearable:!0,disableLinkClick:h},m)),T&&n().createElement("div",{className:g.creatorWrapper},n().createElement(Dx,{mode:i,attributeTypesSelectionStrategy:f,entityType:C,entityUri:r.entityUri})))};zx.propTypes={entity:Go.ConnectionEntityType,entityTypesUris:a().arrayOf(a().string),max:a().number,mode:Go.ModeType,dispatch:a().func,metadata:Go.MetadataType,onChange:a().func.isRequired,onCreate:a().func,attributeTypesSelectionStrategy:a().func,globalSearchRequestOptions:a().object,disableLinkClick:a().bool};const Vx=zx,Ux=(0,o.makeStyles)({item:{marginBottom:"20px"},dense:{marginBottom:0}});function Bx(){return Bx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bx.apply(this,arguments)}function Hx(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Wx(e,t,n[t])}))}return e}function Wx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gx=e=>{const r=Ux(),{modifiedEntity:o,metadata:i,globalSearchRequestOptions:a,onDeleteModifiedEntity:s,onUpdateModifiedEntity:c,onDeactivateError:p}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["modifiedEntity","metadata","globalSearchRequestOptions","onDeleteModifiedEntity","onUpdateModifiedEntity","onDeactivateError"]),{attributeValue:f,attributeType:h,mode:m,crosswalks:g,errors:v,onChangeAttribute:y}=d,b=(0,t.useRef)(f),w=(0,Go.getReferencedEntityFromAttrValue)(f),E=(0,Go.getReferencedRelationFromAttrValue)(f),x=(0,Go.getReferencedEntityTypeUriFromAttrType)(h),O=(0,Go.getEntityType)(i,x),S=o?(0,Go.evaluateDeepEntityLabel)(o,O.dataLabelPattern):f.label,C=(0,t.useMemo)((()=>[x]),[x]),_=(0,t.useMemo)((()=>(0,Go.addReferencedRelationCrosswalks)(g,E)),[g,E]),k=(0,t.useMemo)((()=>(0,Go.getReferencedEntityActiveError)(f,v)),[f,v]),T=(0,t.useMemo)((()=>w&&{entityUri:(0,Go.getReferencedEntityUri)(w),entityType:(0,Go.getReferencedEntityTypeUri)(w),entityLabel:f.label}),[w,f.label]),P=(0,t.useMemo)((()=>(0,Go.getReferencedRelationAttrTypesUris)(h).map((e=>(0,Go.findAttributeTypeByUri)(i,e))).filter(u.identity)),[h,i]),A=(0,t.useCallback)((e=>(0,Go.referencedEntityAttributeTypesSelectionStrategy)(h,e)),[h]),D=(0,t.useCallback)((e=>{o&&s(o.uri);const t=b.current,n=!(0,u.isEmpty)(e)&&e.uri===(0,Go.getReferencedEntityUriFromAttrValue)(t),r=Hx({},f,{label:e.label,refEntity:n?t.refEntity:(0,Go.convertReferencedEntityForAttrValue)(e),refRelation:n?t.refRelation:(0,Go.createReferencedRelationForAttrValue)(f)});y({value:r,attributeType:h,uri:f.uri}),k&&p((0,Go.getErrorId)(k))}),[f,h,o,y,s,p,k]),j=(0,t.useCallback)(((e,t)=>{const n=(0,u.pipe)(A,(0,Go.getCreatableAttributeTypes)(m))(O),r=(0,Go.createTemporaryEntity)({entityTypeUri:e,initValue:t,attributeTypes:n,metadata:i,mode:m});D(r),c(r)}),[A,m,O,i,D,c]),L=(0,t.useMemo)((()=>(0,Go.checkCanEditAttribute)({attributeType:h,attributeValue:f,mode:m,isReltioCrosswalk:(0,Go.isReltioCrosswalk)(g,f)})),[h,f,m,g]),I=(0,t.useMemo)((()=>(0,Go.checkMetadataForCreate)(m,O)),[m,O]),M=(0,Go.getErrorMessage)(k);return n().createElement(HE,Bx({},d,{label:(0,Go.getLabel)(S),attributeTypesList:P,crosswalks:_,metadata:i}),n().createElement(wE,{errorMessage:M},n().createElement(Vx,{className:l()(r.item,{[r.dense]:M||T&&(0,Go.isTempUri)(T.entityUri)}),entity:T||{},entityTypesUris:C,max:20,globalSearchRequestOptions:a,mode:m,onChange:L?D:void 0,onCreate:I?j:void 0,metadata:i,attributeTypesSelectionStrategy:A})))};Gx.propTypes=Hx({},Go.ReferenceAttributeType,{modifiedEntity:Go.EntityType,metadata:Go.MetadataType,globalSearchRequestOptions:a().object,onDeleteModifiedEntity:a().func,onUpdateModifiedEntity:a().func,onDeactivateError:a().func});const qx=(0,t.memo)(Gx),Yx={onDeleteModifiedEntity:v.profile.modifiedEntities.actions.entityDeleted,onUpdateModifiedEntity:v.profile.modifiedEntities.actions.entityCreated,onDeactivateError:v.profile.errors.actions.errorDeactivated},$x=(0,r.connect)(((e,t)=>{const n=(0,Go.getReferencedEntityUriFromAttrValue)(t.attributeValue);return{modifiedEntity:(0,Go.isTempUri)(n)?y().selectors.getModifiedEntity(e,n):null,metadata:y().selectors.getMetadata(e),globalSearchRequestOptions:y().selectors.getGlobalSearchRequestOptions(e,["ovOnly"])}}),Yx)(qx);function Kx(){return Kx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kx.apply(this,arguments)}const Zx=e=>{const{attributeType:t}=e;return class{static build(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{showEmptyEditors:r,onAddAttributes:o,lazy:i,errors:a,crosswalks:s,showNonOv:l}=t,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["showEmptyEditors","onAddAttributes","lazy","errors","crosswalks","showNonOv"]);switch(e.type){case Go.DataTypes.TYPE_NESTED:return n().createElement(qE,t);case Go.DataTypes.TYPE_REFERENCE:return n().createElement($x,t);default:return n().createElement(jE,Kx({isReltioCrosswalk:(0,Go.isReltioCrosswalk)(s,t.attributeValue)},u))}}}.build(t,e)},Xx=(0,o.makeStyles)((e=>({caption:{fontSize:"0.7rem",opacity:.54},wrapper:{display:"flex",flexDirection:"column",alignItems:"flex-start"},attributesWrapper:{width:"100%",marginBottom:"10px"},link:{display:"flex",marginTop:4},"svg-icon__root":{fontSize:"1rem"},title:{fontSize:"12px",lineHeight:"14px",paddingLeft:"12px",color:e.palette.text.secondary},typeError:{marginLeft:"12px"},ovIcon:{marginLeft:"8px",marginTop:"-1px",textIndent:0},titleWrapper:{flex:1,paddingBottom:"3px"}}))),Qx=e=>p().text("${value}",{value:1===e?p().text("value"):p().text("values")}),Jx=(0,u.has)("minValue"),eO=(0,u.has)("maxValue"),tO=(0,u.pipe)(eO,u.not),nO=(0,u.propSatisfies)((e=>1===e),"minValue"),rO=e=>{let{minValue:t}=e;return p().text("This attribute can have minimum ${minValue} ${minValueCaption}",{minValue:p().number(t,"0"),minValueCaption:Qx(t)})},oO=e=>{let{maxValue:t}=e;return p().text("This attribute can have maximum ${maxValue} ${maxValueCaption}",{maxValue:p().number(t,"0"),maxValueCaption:Qx(t)})},iO=(0,u.cond)([[u.isNil,(0,u.always)("")],[e=>{let{minValue:t,maxValue:n}=e;return t&&t===n},e=>{let{minValue:t}=e;return p().text("This attribute should have ${minValue} ${minValueCaption}",{minValue:p().number(t,"0"),minValueCaption:Qx(t)})}],[(0,u.allPass)([nO,eO]),oO],[(0,u.allPass)([nO,tO]),(0,u.always)("")],[(0,u.allPass)([Jx,eO]),e=>{let{minValue:t,maxValue:n}=e;return p().text("${minCardinality} and maximum ${maxValue} ${maxValueCaption}",{minCardinality:rO({minValue:t}),maxValue:p().number(n,"0"),maxValueCaption:Qx(n)})}],[eO,oO],[Jx,rO],[u.T,(0,u.always)("")]]),aO=e=>{let{cardinality:t}=e;const r=Xx();return n().createElement(A(),{variant:"caption",className:r.caption},iO(t))};aO.propTypes={cardinality:Go.CardinalityType};const sO=aO,lO=(0,u.filter)((0,u.propSatisfies)(Go.isTempUri,"uri")),uO=e=>{let{max:r,values:o,attributeType:i,parentUri:a,mode:s,drawLines:l,showEmptyEditors:c,errorMessage:p,errors:d,paging:f,crosswalks:h,showNonOv:m,nonVisibleValues:g,onAddAttributes:v,onDeleteAttribute:y,onChangeAttribute:b,onDeactivateError:w,additionalControlsRenderer:E,requestNextPageOfAttributeValues:x}=e;const O=Xx(),[S,C]=(0,t.useState)(r),[_,k]=(0,t.useState)(!1),{label:T,required:P,cardinality:A,name:D,uri:j}=i,L=(0,Go.isEditableMode)(s),I=(0,t.useContext)(RE),M=(0,t.useMemo)((()=>null==I?void 0:I.includes(j)),[j,I]),N=(0,Go.isEmptyValue)(o),R=(!_&&c||P||M)&&N,F=(0,t.useRef)((0,Go.createNewAttribute)({parentUri:a,attributeType:i})),z=(0,t.useCallback)((()=>{C(S+1);const e={parentUri:a,index:S,attributeType:i};return v(R&&!(0,Go.isComplexAttribute)(i.type)?[e,e]:[e])}),[S,v,a,i,R]),V=(0,t.useCallback)((0,u.pipe)(y,u.T,k),[y,k]);if(N&&!R)return null;if(R&&N&&(o=[F.current]),(0,Go.isEmptyValue)(o))return null;const U=(lO(o)||[]).length,B=m?"totalValues":"totalOvValues",H=(0,u.ifElse)((0,u.has)(B),(0,u.pipe)((0,u.prop)(B),(0,u.add)(U)),(0,u.always)(o.length))(f),W=null!=f&&f.totalValues?f.totalValues-H:null==g?void 0:g.length,G=r<H,q=G&&S<H,Y=G&&S>=H,$=o.slice(0,S),K=$?$.length-1:0,Z=H-S;return n().createElement(su,{enabled:l},n().createElement("div",{className:O.wrapper},n().createElement("div",{className:O.titleWrapper},n().createElement(wu,{label:T,isRequired:P,className:O.title,attributeType:i}),n().createElement(Tu,{nonOvValues:g,attributeType:i,className:O.ovIcon,nonOvTotal:W})),L&&n().createElement(sO,{cardinality:A}),L&&n().createElement(Bh,{message:p,className:O.typeError}),n().createElement("div",{className:O.attributesWrapper},$.map(((e,t)=>n().createElement(Zx,{key:e.uri,attributeValue:e,attributeType:i,lazy:R&&!P,showEmptyEditors:c,errors:d,ownError:(0,Go.getAttributeOwnError)(e,t,i.uri,d),mode:s,crosswalks:h,onAddOneMore:K===t?z:null,onAddAttributes:v,onDeleteAttribute:V,onChangeAttribute:b,onDeactivateError:w,additionalControlsRenderer:E}))),q&&n().createElement(_c,{moreNumber:(0,u.min)(r,Z),valueNumber:Z,onClick:()=>{o.length<H&&x({parentUri:a,attributeTypeUri:j,attributeTypeName:D,values:o,defaultMaxValues:r}),C(S+r)}}),Y&&n().createElement(Tc,{onClick:()=>{C(r)}}))))},cO=(0,o.makeStyles)({value:{color:"rgba(0, 0, 0, 0.87)"},placeholder:{color:"rgba(0, 0, 0, 0.38)",fontSize:"14px !important"}}),pO=e=>{let{selectProps:{menuIsOpen:t},data:{label:r}}=e;const o=cO();return!t&&n().createElement(A(),{variant:"body2",classes:{root:o.value}},r)};pO.propTypes={selectProps:a().shape({menuIsOpen:a().bool}),data:a().shape({label:a().string})};const dO=pO;function fO(){return fO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fO.apply(this,arguments)}const hO=e=>{const t=cO(),{innerProps:r={},children:o}=e;return n().createElement(A(),fO({className:t.placeholder},r),o)};function mO(){return mO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mO.apply(this,arguments)}hO.propTypes={children:a().node,innerProps:a().object,selectProps:a().object.isRequired};const gO={SingleValue:dO,Placeholder:hO},vO=(0,t.memo)((e=>{let t=mO({},e);return n().createElement(px,mO({components:gO},t))})),yO=(0,o.makeStyles)({container:{display:"flex",flex:1,alignItems:"flex-start",marginBottom:"10px"},roleContainer:{width:"100%"},valueContainer:{marginLeft:"8px",width:0},deleteButton:{marginLeft:"8px"}}),bO={MultiValue:Rw},wO=e=>{let{values:o,onChange:i,onDelete:a}=e;const s=yO(),l=(0,r.useSelector)(y().selectors.getMetadata),c=(0,r.useSelector)(y().selectors.getEntity),p=c.uri,d=(0,Go.getRolesForEntityType)(l,c.type).map((e=>({value:e.uri,label:e.label}))),f=(o||[]).map((e=>{var t;return{value:e,label:(null===(t=d.find((0,u.propEq)("value",e)))||void 0===t?void 0:t.label)||(0,Go.getLastUriPart)(e)}})),h=(0,t.useCallback)((e=>{const t=(null==e?void 0:e.map((0,u.prop)("value")))||[];i({value:t,attributeType:Go.EntityAttrTypes.roles,uri:p})}),[p,i]),m=(0,t.useCallback)((()=>{a({uri:p,attributeType:Go.EntityAttrTypes.roles})}),[p,a]);return n().createElement("div",{className:s.container},n().createElement(vO,{label:"",height:40,isMulti:!0,options:d,value:f,onChange:h,components:bO,classes:s,className:s.roleContainer}),!!a&&n().createElement(aa,{className:s.deleteButton,icon:Hh.Z,onClick:m,size:"L"}))},EO=(0,o.makeStyles)({container:{display:"flex",flex:1,alignItems:"flex-start",marginBottom:"10px"},deleteButton:{marginLeft:"8px"}}),xO=e=>e?`?filter=${(0,Go.buildFilterQueryString)()((e=>[{filter:"containsWordStartingWith",fieldName:"tags",values:[e]}])(e))}`:"",OO=[{fieldName:"tags",orderType:"reversedCount"}],SO=e=>(0,Go.getFacets)({query:xO(e),body:OO}).then((e=>Object.keys(e.tags))),CO=e=>{let{className:o,values:i,onChange:a,onDelete:s}=e;const l=EO(),u=(0,r.useSelector)(y().selectors.getEntityUri),c=(0,t.useCallback)((e=>{a({value:e,attributeType:Go.EntityAttrTypes.tags,uri:u})}),[a,u]),p=(0,t.useCallback)((()=>{s({uri:u,attributeType:Go.EntityAttrTypes.tags})}),[u,s]);return n().createElement("div",{className:l.container},n().createElement(iv,{fullWidth:!0,multiple:!0,variant:"filled",className:o,value:i||[],onChange:c,getSuggestions:SO}),!!s&&n().createElement(aa,{className:l.deleteButton,icon:Hh.Z,onClick:p,size:"L"}))};function _O(){return _O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_O.apply(this,arguments)}function kO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TO=e=>{let{values:r,attributeType:o,parentUri:i,mode:a,errorMessage:s,onDeleteAttribute:l,onChangeAttribute:c,showEmptyEditors:p}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["values","attributeType","parentUri","mode","errorMessage","onDeleteAttribute","onChangeAttribute","showEmptyEditors"]);const f=Xx(),{label:h,required:m,cardinality:g}=o,v=(0,Go.isEditableMode)(a),[y,b]=(0,t.useState)(!1),w=(0,t.useCallback)((0,u.pipe)(l,u.T,b),[l,b]),E=(0,Go.isEmptyValue)(r),x=!y&&p&&E,O=(0,t.useRef)((0,Go.createNewAttribute)({parentUri:i,attributeType:o}));return(0,Go.isActivenessAttrType)(o)&&E&&!x?null:n().createElement(Fi(),{className:f.wrapper},n().createElement(wu,{label:h,isRequired:m,className:f.title,attributeType:o}),v&&n().createElement(sO,{cardinality:g}),v&&n().createElement(Bh,{message:s}),n().createElement(Fi(),{className:f.attributesWrapper},(()=>{switch(o.uri){case Go.EntityAttrTypes.tags.uri:return n().createElement(CO,{values:r,onDelete:w,onChange:c});case Go.EntityAttrTypes.roles.uri:return n().createElement(wO,{values:r,onDelete:w,onChange:c});default:{const e=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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kO(e,t,n[t])}))}return e}({},O.current,{value:r[0]||""});return n().createElement(Zx,_O({attributeValue:e,attributeType:o,mode:a,onDeleteAttribute:w,onChangeAttribute:c},d))}}})()))};function PO(){return PO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PO.apply(this,arguments)}var AO;!function(e){e.imageLine="imageLine",e.special="special",e.default="default"}(AO||(AO={}));const DO=(0,t.memo)((e=>{let{values:t,attributeType:r,mode:o=Go.Mode.Viewing,crosswalks:i,drawLines:a,paging:s={},parentUri:l,errors:c,errorMessage:p,max:d=1/0,showEmptyEditors:f,showNonOv:h,onAddAttributes:m,onDeleteAttribute:g,onChangeAttribute:v,onDeactivateError:y,additionalControlsRenderer:b,requestNextPageOfAttributeValues:w}=e;const E=Xx(),x=(0,u.partition)(Go.isOv),[O,S]=x(t),C=h?t:O,_=h?[]:S,k={errorMessage:p,errors:c,mode:o,parentUri:l,onAddAttributes:m,onDeleteAttribute:g,onChangeAttribute:v,onDeactivateError:y,additionalControlsRenderer:b,showEmptyEditors:f};return(()=>{switch((0,u.cond)([[Go.isSpecialAttribute,(0,u.always)(AO.special)],[Go.isImage,(0,u.always)(AO.imageLine)],[u.T,(0,u.always)(AO.default)]])(r)){case AO.special:return n().createElement(su,{enabled:a},n().createElement(TO,PO({values:C,attributeType:r},k)));case AO.imageLine:return n().createElement(su,{enabled:a},n().createElement("div",{className:E.wrapper},n().createElement(wu,{label:null==r?void 0:r.label,attributeType:r}),n().createElement(Vh,{attributeValues:C,attributeType:r,paging:s,onDeleteAttribute:g,parentUri:l,onChangeAttribute:v,requestNextPageOfAttributeValues:w,showNonOv:h})));default:return n().createElement(uO,PO({values:C,attributeType:r,max:d,paging:s,crosswalks:i,drawLines:a,requestNextPageOfAttributeValues:w,showNonOv:h,nonVisibleValues:_},k))}})()})),jO={requestNextPageOfAttributeValues:v.profile.actions.requestNextPageOfAttributeValues,onDeactivateError:v.profile.errors.actions.errorDeactivated},LO=(0,r.connect)(((e,t)=>{let{parentUri:n,attributeType:r,max:o}=t;return{errors:y().selectors.getActiveErrorsForAttributesPager(e,n,r),errorMessage:(0,Go.getAttributePagerActiveTypeErrorMessage)(n,r,y().selectors.getProfileErrors(e)),max:o||y().selectors.getDefaultMaxValues(e)}}),jO)(DO),IO=(0,o.makeStyles)({root:{},form:{padding:"10px 0"},divider:{width:"100%",height:"1px",background:"rgba(255,255,255,0.12)"},actions:{display:"flex",justifyContent:"flex-end",marginTop:"4px"},cancelButton:{color:"white",marginRight:"8px"}}),MO=e=>{let{attributeType:t,imageAttributeFieldsOrder:r,attributeValue:o,hasChanges:i,onDeleteAttribute:a,onChangeAttribute:s,onAddAttributes:l,onCancel:u,onApply:c,mode:d}=e;const f=IO(),h=Tf(o,t,r),m=0!==h.length||0===h.length&&i;return n().createElement(Fi(),{className:f.root},n().createElement(Fi(),{className:f.form},h.map((e=>{let{attrType:t,values:r}=e;return n().createElement(LO,{key:t.uri,parentUri:o.uri,attributeType:t,values:r,showEmptyEditors:(0,Go.isTempUri)(o.uri),mode:d,drawLines:!1,onDeleteAttribute:a,onChangeAttribute:s,onAddAttributes:l})}))),m&&n().createElement(n().Fragment,null,n().createElement(fd(),{className:f.divider}),n().createElement(Fi(),{className:f.actions},n().createElement(j(),{disabled:!i,onClick:u,className:f.cancelButton},p().text("Cancel")),n().createElement(j(),{disabled:!i,onClick:c,color:"primary"},p().text("Apply")))))},NO={palette:{type:"dark",primary:Go.theme.palette.primary,secondary:Go.theme.palette.secondary}},RO=(0,o.createMuiTheme)(NO),FO=e=>{let{imageAttributeFieldsOrder:i,attributeType:a,attributeValue:s}=e;const{addAttributes:l,changeAttribute:c,deleteAttribute:p,clearLocalChanges:d,applyLocalChanges:f,attributeValue:h,hasChanges:m}=(e=>{let{initialAttributeValue:n,attributeType:o}=e;const i=(0,r.useDispatch)(),a=(0,t.useContext)(ua),[s,l]=(0,t.useState)(n);(0,t.useEffect)((()=>{l(n)}),[n]);const c=!(0,u.equals)(s,n),p=(0,t.useCallback)((e=>{l((t=>e.reduce(((e,t)=>{const{attributeType:n,parentUri:r,index:o}=t;return(0,Go.addAttribute)({entity:e,attributeType:n,parentUri:r,index:o,nestingLevel:1})}),t)))}),[]),d=(0,t.useCallback)((e=>{let{value:t,attributeType:n,uri:r}=e;l((e=>(0,Go.editAttribute)({entity:e,attributeType:n,uri:r,value:t,nestingLevel:1})))}),[]),f=(0,t.useCallback)((e=>{let{attributeType:t,uri:n}=e;l((e=>(0,Go.removeAttribute)({entity:e,attributeType:t,uri:n,nestingLevel:1})))}),[]);return{addAttributes:p,changeAttribute:d,deleteAttribute:f,clearLocalChanges:(0,t.useCallback)((()=>{l(n)}),[n]),applyLocalChanges:(0,t.useCallback)((()=>{i(v.profile.actions.modifyAttribute({value:s,attributeType:o,uri:s.uri,viewId:a}))}),[s,o,a,i]),attributeValue:s,hasChanges:c}})({attributeType:a,initialAttributeValue:s}),g=(0,r.useSelector)(y().selectors.getMode),b=(0,r.useSelector)(y().selectors.getIsEditableMode);return n().createElement(o.MuiThemeProvider,{theme:RO},n().createElement(Fi(),null,n().createElement(Df,{attributeType:a,uri:null==h?void 0:h.uri,onAddAttributes:b?l:void 0}),n().createElement(Mf,{attributeType:a,attributeValue:h,imageAttributeFieldsOrder:i}),b&&n().createElement(MO,{mode:g,imageAttributeFieldsOrder:i,attributeType:a,attributeValue:h,hasChanges:m,onDeleteAttribute:p,onChangeAttribute:c,onAddAttributes:l,onCancel:d,onApply:f})))},zO=(0,o.makeStyles)((e=>({root:{position:"relative",backgroundColor:"#333",maxHeight:"calc(100vh - 64px)",overflow:"hidden"},header:{display:"flex",alignItems:"center",height:"56px",paddingLeft:"16px",boxShadow:`0 1px 0 0 ${e.palette.divider}`},headerTitle:{color:"rgba(255, 255, 255, 0.87)",fontSize:"16px",lineHeight:"19px"},bodyWrapper:{maxHeight:"calc(100% - 56px)",overflow:"auto"},body:{padding:"16px"},formControlLabel:{marginLeft:0,marginBottom:"27px"},checkboxLabel:{marginLeft:"8px",color:"rgba(255,255,255,0.87)",fontSize:"13px",lineHeight:"15px"},checkbox:{color:"white",padding:0}}))),VO=e=>{let{className:o,attributeValue:i,handleSetAsDefault:a,attributeType:s}=e;const u=zO(),c=(0,r.useSelector)(y().selectors.getEntity)||{},d=(0,r.useSelector)((e=>y().selectors.getModifiedEntity(e,null==c?void 0:c.uri)))||{},f=(0,r.useSelector)(y().selectors.getIsViewMode)?c:d,h=(0,r.useSelector)(y().selectors.getImageAttributesFieldsOrder)||{},m=h[null==c?void 0:c.type]||(null==h?void 0:h.default)||{},[g,v]=(0,t.useState)(!1);(0,t.useEffect)((()=>{v((null==f?void 0:f.defaultProfilePic)===(null==i?void 0:i.uri))}),[null==i?void 0:i.uri,f]);const b=(0,t.useCallback)((()=>{a(i.uri)}),[null==i?void 0:i.uri]);return n().createElement(Fi(),{className:l()(u.root,o)},n().createElement(Fi(),{className:u.header},n().createElement(A(),{className:u.headerTitle},p().text("Details"))),n().createElement(Fi(),{className:u.bodyWrapper},n().createElement(Fi(),{className:u.body},n().createElement(pd(),{classes:{root:u.formControlLabel,label:u.checkboxLabel},control:n().createElement(ud(),{className:u.checkbox,checked:g,onChange:b,color:"default"}),label:p().text("Set as default")}),n().createElement(FO,{attributeType:s,imageAttributeFieldsOrder:m,attributeValue:i}))))},UO=(0,o.makeStyles)((()=>({root:{display:"flex",width:"100%",overflowY:"auto",height:"calc(100vh - 64px)"},main:{flex:"1 0 auto"},details:{width:"340px"}}))),BO=e=>{let{attributeValues:r=[],currentAttributeValueUri:o,setCurrentAttributeValueUri:i,handleSetAsDefault:a,attributeType:s}=e;const[l,u]=(0,t.useState)(0);(0,t.useEffect)((()=>{c(o?r.findIndex((e=>e.uri===o)):0)}),[o,r]);const c=(0,t.useCallback)((e=>{var t;u(e),i(null===(t=r[e])||void 0===t?void 0:t.uri)}),[r]),p=UO();return n().createElement(Fi(),{className:p.root},n().createElement(sd,{attributeValueIndex:l,setAttributeValueIndex:c,attributeValues:r,className:p.main}),n().createElement(VO,{handleSetAsDefault:a,attributeValue:r[l],className:p.details,attributeType:s}))},HO=window["material-ui"].AppBar;var WO=f.n(HO),GO=f(3115);function qO(){return qO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qO.apply(this,arguments)}const YO=e=>n().createElement("svg",qO({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),n().createElement("defs",null,n().createElement("path",{d:"M14 5a1 1 0 011 1v12a1 1 0 01-1 1H4a1 1 0 01-1-1V6a1 1 0 011-1h10zm6 12v2h-3v-2h3zm2-4v2h-5v-2h5zm0-4v2h-5V9h5zm0-4v2h-5V5h5z",id:"Details_svg__a"})),n().createElement("g",{stroke:"none",strokeWidth:1,fillRule:"evenodd"},n().createElement("mask",{id:"Details_svg__b",fill:"#fff"},n().createElement("use",{xlinkHref:"#Details_svg__a"})),n().createElement("path",{mask:"url(#Details_svg__b)",d:"M0 0h24v24H0z"}))),$O=window["material-ui"].ButtonGroup;var KO=f.n($O);const ZO=(0,o.makeStyles)((e=>({button:{minWidth:"30px",padding:"8px 8px",justifyContent:"start",fill:"rgba(0,0,0,0.54)",textTransform:"none",borderColor:"rgba(0,0,0,0.12)"},icon:{color:"rgba(0,0,0,0.54)",width:"20px",height:"20px",marginRight:"8px"},title:{fontSize:"13px",lineHeight:"15px",letterSpacing:0},current:{"& $icon":{color:e.palette.primary.main},backgroundColor:(0,o.fade)(e.palette.primary.main,.12),fill:e.palette.primary.main,color:e.palette.primary.main,"&:hover":{backgroundColor:(0,o.fade)(e.palette.primary.main,.24)}}}))),XO=Ki(j()),QO=e=>{let{className:t,classes:r={},modes:o=[],modeId:i,onChange:a}=e;const s=ZO();return n().createElement(KO(),{className:t},o.map((e=>{let{id:t,title:o,tooltipTitle:u,Icon:c}=e;return n().createElement(XO,{key:String(t),className:l()(s.button,{[s.current]:i===t},r.button),tooltipTitle:u,onClick:(p=t,()=>a(p)),"data-reltio-id":`reltio-search-mode-${t}`},c&&n().createElement(c,{className:s.icon}),o&&n().createElement("div",{className:s.title},o));var p})))},JO=(0,o.makeStyles)((()=>({paper:{backgroundColor:"rgba(0, 0, 0, .85)"},backdrop:{backgroundColor:"transparent"},toolbar:{paddingLeft:"20px",paddingRight:"20px"},appBar:{position:"relative",background:"linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%)"},closeButton:{marginRight:"28px"},closeIcon:{fontSize:"24px",color:"#fff"},headerLeft:{display:"flex",alignItems:"center",flex:2},headerCenter:{display:"flex",justifyContent:"center",flex:1},headerRight:{flex:2,display:"flex",justifyContent:"flex-end",alignItems:"center"},modeSwitcher:{backgroundColor:"#fff"},content:{padding:0}})));let eS;!function(e){e.GALLERY_MODE="gallery",e.DETAILS_MODE="details"}(eS||(eS={}));const tS=e=>{let{open:r,mode:o,children:i,header:a,onClose:s,onChangeMode:l}=e;const u=JO(),c=(0,t.useMemo)((()=>[{id:eS.GALLERY_MODE,title:p().text("Gallery"),Icon:GO.Z},{id:eS.DETAILS_MODE,title:p().text("Details"),Icon:YO}]),[]);return n().createElement(On(),{classes:{paper:u.paper},open:r,BackdropProps:{className:u.backdrop},fullScreen:!0},n().createElement(WO(),{classes:{colorPrimary:u.appBar}},n().createElement(I(),{className:u.toolbar},n().createElement(Fi(),{className:u.headerLeft},n().createElement(sa,{tooltipTitle:p().text("Close"),onClick:s,className:u.closeButton,iconClassName:u.closeIcon,icon:bd.default}),null==a?void 0:a.left),n().createElement(Fi(),{className:u.headerCenter},n().createElement(QO,{modes:c,modeId:o,onChange:l,className:u.modeSwitcher})),n().createElement(Fi(),{className:u.headerRight},null==a?void 0:a.right))),n().createElement(En(),{className:u.content},i))},nS=(0,o.makeStyles)((()=>({root:{padding:"0 24px",overflowY:"auto",height:"calc(100vh - 64px)"},item:{padding:"2px"}}))),rS=e=>{let{items:t,selectedItems:r,onSelectImage:o,onDeselectImage:i,onShareLink:a,onSetAsDefault:s,onDownload:l,onClickImage:u,onDelete:c}=e;const p=nS(),d=e=>n().createElement(Wf,{id:e,selected:r.includes(e),selectionMode:0!==r.length,onSelect:()=>o(e),onDeselect:()=>i(e),onShareLink:()=>a(e),onSetAsDefault:()=>s(e),onDownload:()=>l(e),onClick:()=>u(e),onDelete:c?()=>c(e):void 0,canBeSelected:!0});return n().createElement(Fi(),{className:p.root},n().createElement(od(),{container:!0},t.map((e=>{let{id:t,src:r}=e;return n().createElement(od(),{key:t,classes:{item:p.item},item:!0},n().createElement(zc,{size:Fc.LARGE,onClick:()=>u(t),src:r,overlay:d(t)}))}))))},oS=(0,o.makeStyles)((e=>({selectButton:{fontSize:"14px",fontWeight:500,color:e.palette.primary.main,textTransform:"uppercase"}}))),iS=e=>{let{selectedItems:t,items:r,onSelectAll:o,onClearAll:i}=e;const a=oS(),s=t.length===r.length;return n().createElement(Ui(),{component:"button",underline:"none",classes:{button:a.selectButton},onClick:s?i:o},s?p().text("Clear selection"):p().text("Select all images"))};var aS=f(5292);const sS=(0,o.makeStyles)((()=>({downloadButton:{color:"#fff",fontSize:"24px",marginLeft:"30px"},shareButton:{color:"#fff",fontSize:"24px",marginLeft:"21px"},deleteButton:{color:"#fff",fontSize:"24px",marginLeft:"24px"},divider:{height:"31px",width:"1px",marginLeft:"10px",backgroundColor:"rgba(255,255,255,0.38)"}}))),lS=e=>{let{onDownload:t,onShare:r,onUpload:o,onDelete:i}=e;const a=sS();return n().createElement(n().Fragment,null,o&&n().createElement(j(),{variant:"contained",color:"primary",onClick:o,startIcon:n().createElement(Nf.Z,null)},p().text("Upload")),t&&o&&n().createElement("div",{className:a.divider}),t&&n().createElement(sa,{className:a.downloadButton,tooltipTitle:p().text("Download selected items"),icon:Bf,onClick:t}),r&&n().createElement(sa,{className:a.shareButton,tooltipTitle:p().text("Copy link"),icon:aS.Z,onClick:r}),i&&n().createElement(sa,{className:a.deleteButton,tooltipTitle:p().text("Delete selected items"),icon:Hh.Z,onClick:i}))},uS=e=>{let{attributeValues:o,open:i,onClose:a,currentAttributeValueUri:s,setCurrentAttributeValueUri:l,attributeType:c,onDownload:p,onShareLink:d,onSetAsDefault:f,onUpload:h,onDeleteAttribute:m}=e;const[g,v]=(0,t.useState)([]),[b,w]=(0,t.useState)(eS.GALLERY_MODE),E=(0,r.useSelector)(y().selectors.getIsViewMode);(0,t.useEffect)((()=>{w(s?eS.DETAILS_MODE:eS.GALLERY_MODE)}),[s]);const x=o.map((e=>({src:(0,Go.getImageAttributeOvThumbnailUrl)(e),downloadURL:(0,Go.getImageAttributeOvUrl)(e),id:e.uri}))),O=e=>{d(x.find((0,u.propEq)("id",e)).downloadURL)},S=e=>{const t=o.find((t=>{let{uri:n}=t;return n===e}));f(t)},C=e=>{m({uri:e,attributeType:c})},_=b===eS.GALLERY_MODE,k=b===eS.DETAILS_MODE,T=g.length>0,P=k||_&&T,A=!E&&P,D=!E&&(k||_&&!T),j=_&&T&&n().createElement(iS,{items:x,selectedItems:g,onClearAll:()=>{v([])},onSelectAll:()=>{v((0,u.pluck)("id",x))}}),L=n().createElement(lS,{onDelete:A?()=>{(_?g:[s]).forEach((e=>{C(e)})),g.length&&v([])}:void 0,onDownload:P?()=>{const e=_?(0,u.pipe)((0,u.filter)((e=>{let{id:t}=e;return g.includes(t)})),(0,u.pluck)("downloadURL"))(x):[x.find((0,u.propEq)("id",s)).downloadURL];p(e)}:void 0,onShare:k?()=>{O(s)}:void 0,onUpload:D?h:void 0});return n().createElement(tS,{mode:b,open:i,onChangeMode:w,header:{left:j,right:L},onClose:a},_&&n().createElement(rS,{items:x,selectedItems:g,onSelectImage:e=>{v((t=>[...t,e]))},onDeselectImage:e=>{v((t=>t.filter((t=>t!==e))))},onShareLink:O,onSetAsDefault:S,onDownload:e=>{p([x.find((0,u.propEq)("id",e)).downloadURL])},onClickImage:e=>{l(e),w(eS.DETAILS_MODE)},onDelete:E?void 0:C}),k&&n().createElement(BO,{handleSetAsDefault:S,setCurrentAttributeValueUri:l,currentAttributeValueUri:s,attributeValues:o,attributeType:c}))},cS=(0,o.makeStyles)((e=>({imageBox:{position:"relative",display:"flex",width:"100%",flexGrow:1,flexShrink:0,flexWrap:"nowrap",marginTop:"2px",overflow:"hidden"},moreButtonContainer:e=>{let{imageWidth:t,imageHeight:n}=e;return{backgroundColor:"white",width:t,height:n,position:"absolute",right:0,cursor:"pointer"}},moreButton:t=>{let{imageWidth:n,imageHeight:r}=t;return{display:"flex",justifyContent:"center",alignItems:"center",width:n,height:r,backgroundColor:Xe(e.palette.primary.main,.06)}},number:{color:e.palette.primary.main,fontSize:"24px",lineHeight:"42px",letterSpacing:0,textAlign:"center",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}})));function pS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dS=e=>{let{attributeType:o,attributeValues:i=[],renderImage:a,overlay:s=!1,countFixedItems:l=0,children:u,onUpload:c,onDeleteAttribute:p,imageSize:d=Fh,paging:f,parentUri:h,showNonOv:m,requestNextPageOfAttributeValues:g}=e;const b=(0,r.useSelector)(y().selectors.getEntity)||{},w=(0,r.useSelector)(y().selectors.getIsViewMode),E=(0,r.useDispatch)(),x=cS(d);(0,t.useEffect)((()=>{if(f&&g){const e=m?f.totalOvValues:f.totalValues;e>i.length&&g({parentUri:h,attributeTypeUri:o.uri,attributeTypeName:o.name,values:[],defaultMaxValues:e})}}),[f,g,o,h,i.length,m]);const O=(0,t.useRef)(),[S,C]=(0,t.useState)(0),[_,k]=(0,t.useState)(0),T=(0,t.useContext)(Jp),[P,D]=(0,t.useState)(!1),[j,L]=(0,t.useState)(),I=(0,t.useCallback)((e=>{const{imageMargin:t,imageWidth:n}=d,r=Math.floor((e+t)/(n+t))-l,o=e+t-(r+l)*(n+t)<8;C(r),i.length>r?k(i.length-r+(o?1:0)):k(0)}),[i.length,l,d]),M=(0,t.useCallback)((e=>{I(e),O.current=e}),[I]);(0,t.useEffect)((()=>{O.current&&I(O.current)}),[i.length,I]);const N=(0,t.useCallback)((e=>{T||(L(e),D(!0))}),[T]),R=(0,t.useCallback)((()=>{D(!1)}),[]),F=e=>(e=>{e.forEach(((e,t)=>{try{if((e=>!!(e=>e.indexOf("://")>0||0===e.indexOf("//"))(e)&&new URL(e).host!==location.host)(e)){const n=document.createElement("iframe");n.setAttribute("style","display: none;"),n.setAttribute("src",e),document.body.appendChild(n),setTimeout((()=>document.body.removeChild(n)),3e4*(t+1))}else{const t=document.createElement("a");t.href=e,t.download=(e=>e.split("/").pop())(e),document.body.appendChild(t),t.click(),document.body.removeChild(t)}}catch(e){console.error(e)}}))})(e),z=e=>navigator.clipboard.writeText(e),V=(0,t.useCallback)((e=>{w?(0,Go.insertDefaultImageByAttrUri)(b.uri,e.uri).then((t=>{let{status:n}=t;"success"===n&&E(v.profile.entity.actions.setDefaultProfilePic(e))})):E(v.profile.modifiedEntities.actions.setDefaultProfilePic({entityUri:b.uri,value:e}))}),[w,b.uri,E]),U=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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pS(e,t,n[t])}))}return e}({onOpenImageGalleryDialog:N},s&&{onDownload:F,onShareLink:z,onSetAsDefault:V});return n().createElement(n().Fragment,null,n().createElement(Qp,{handleWidth:!0,onResize:M}),n().createElement(uS,{attributeValues:i,open:P,onClose:R,setCurrentAttributeValueUri:L,currentAttributeValueUri:j,attributeType:o,onDownload:F,onShareLink:z,onSetAsDefault:V,onUpload:c,onDeleteAttribute:p}),n().createElement("div",{className:x.imageBox},u,i.slice(0,S).map(a(U)),_>0&&n().createElement("div",{className:x.moreButtonContainer},n().createElement("div",{className:x.moreButton,onClick:()=>N()},n().createElement(A(),{className:x.number},`+${_}`)))))},fS=(0,o.makeStyles)((e=>({image:e=>{let{imageMargin:t,imageHeight:n,imageWidth:r}=e;return{marginRight:t,width:r,height:n,cursor:"pointer","&:last-child":{marginRight:0}}},deleteAttributeImage:{position:"relative","&:before":{content:"''",position:"absolute",left:0,top:0,right:0,bottom:0,background:`url('${(0,Go.svg2Url)('<svg xmlns="http://www.w3.org/2000/svg" style="stroke: #D1051E; stroke-width: 1" viewBox="0 0 114 114">\n\t<line x1="5" y1="109" x2="109" y2="5" />\n</svg>')}') no-repeat`,backgroundColor:Hu[Bu.deleteAttribute].backgroundColor,pointerEvents:"none"}},updateAttributeImage:{position:"relative","&:before":{content:"''",position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:Hu[Bu.updateAttribute].backgroundColor,pointerEvents:"none"}},deleteAttribute:e=>{let{imageWidth:t,imageHeight:n}=e;return{width:t,height:n,boxSizing:"border-box",outline:`3px solid ${Hu[Bu.deleteAttribute].color}`,outlineOffset:"-3px"}},insertAttribute:e=>{let{imageWidth:t,imageHeight:n}=e;return{width:t,height:n,boxSizing:"border-box",outline:`3px solid ${Hu[Bu.insertAttribute].color}`,outlineOffset:"-3px"}},updateAttribute:e=>{let{imageWidth:t,imageHeight:n}=e;return{width:t,height:n,boxSizing:"border-box",outline:`3px solid ${Hu[Bu.updateAttribute].color}`,outlineOffset:"-3px"}},number:{color:e.palette.primary.main,fontSize:"24px",lineHeight:"42px",letterSpacing:0,padding:"36px 8px",textAlign:"center",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}}))),hS=e=>{let{attributeType:r,attributeValues:o=[],paging:i,parentUri:a,requestNextPageOfAttributeValues:s,showNonOv:u,imageSize:c=Fh}=e;const p=fS(c),{appearance:d}=(0,t.useContext)(Pu);return n().createElement(dS,{attributeValues:o,attributeType:r,renderImage:e=>{let{onOpenImageGalleryDialog:t}=e;return e=>{const r=(0,Go.getImageAttributeOvThumbnailUrl)(e),{uri:o}=e,i=Zu(o,d),a=Wu(i);return n().createElement("div",{className:l()(p.image,{[p[a+"Image"]]:a}),key:o},n().createElement(zc,{onClick:()=>t(o),className:p[a],src:r,size:{imageWidth:c.imageWidth,imageHeight:c.imageHeight}}))}},imageSize:c,requestNextPageOfAttributeValues:s,paging:i,parentUri:a,showNonOv:u})};var mS=f(404);const gS=e=>{let{className:r,values:o,Component:i}=e;return n().createElement("div",{className:r},o.map(((e,r)=>n().createElement(t.Fragment,{key:e},n().createElement(i,{value:e}),r<o.length-1&&", "))))};function vS(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){yS(e,t,n[t])}))}return e}function yS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bS=(0,o.makeStyles)({insertAttribute:vS({width:"fit-content"},Hu[Bu.insertAttribute]),deleteAttribute:vS({width:"fit-content",textDecoration:"line-through",padding:"0 4px"},Hu[Bu.deleteAttribute])}),wS=e=>{let{value:o}=e;const i=bS(),a=(0,r.useSelector)(y().selectors.getMetadata),{appearance:s}=(0,t.useContext)(Pu),l=Xu("roles",o,s),u=Wu(l);return n().createElement("span",{className:i[u]},(0,Go.getRoleLabel)(a,o))},ES=e=>{let{className:t,values:r}=e;return n().createElement(gS,{values:r,className:t,Component:wS})},xS=n().createContext(null);xS.displayName="EntityContext";const OS=e=>{let{value:o}=e;const i=bS(),a=(0,r.useSelector)(y().selectors.getUIPath),s=(0,t.useContext)(xS),l=(0,r.useSelector)(y().selectors.getEntity),{appearance:u}=(0,t.useContext)(Pu),c=Xu("tags",o,u),p=Wu(c),d=s||l;return n().createElement(Ui(),{underline:"none",className:i[p],href:(0,Go.getTagLink)({uiPath:a,tag:o,entityUri:d.dataTenant?(0,Go.getDataTenantEntityUri)(d):d.uri})},o)},SS=e=>{let{className:t,values:r}=e;return n().createElement(gS,{values:r,className:t,Component:OS})},CS=e=>{let{values:t,attributeType:r}=e;const o=hu(),{label:i}=r;return n().createElement("div",{className:l()(o.titleRow,o.wrapper)},(a=o.titleIcon,r.uri===Go.EntityAttrTypes.tags.uri?n().createElement(mS.Z,{className:a}):null),n().createElement(wu,{label:i,className:o.title,attributeType:r}),(e=>{switch(r.uri){case Go.EntityAttrTypes.tags.uri:return n().createElement(SS,{className:e,values:t});case Go.EntityAttrTypes.roles.uri:return n().createElement(ES,{className:e,values:t});default:return n().createElement(xc,{className:e,attributeValue:{value:t[0]},attributeType:r,inlined:!0})}})(o.attribute));var a},_S="oneLine",kS="multiLine",TS="imageLine",PS="special",AS=(0,t.memo)((e=>{let{values:t,attributeType:r,drawLines:o,paging:i={},parentUri:a,max:s=1/0,requestNextPageOfAttributeValues:c,titleClassName:p,contentClassName:d,showNonOv:f}=e;const h=fu(),m=(0,u.partition)(Go.isOv);if(!t||!t.length)return null;const[g,v]=m(t),y=f?t:g,b=f?[]:v,w=f?"totalValues":"totalOvValues",E=(0,u.ifElse)((0,u.has)(w),(0,u.prop)(w),(0,u.always)(y.length))(i),x=null!=i&&i.totalValues?i.totalValues-E:b.length,O=1===E&&!(0,Go.isComplexAttribute)(r);return n().createElement(su,{enabled:o,className:l()({[h.paddingWrapperWithLines]:o})},n().createElement("div",{className:l()({[h.paddingWrapper]:!o})},(()=>{switch((0,u.cond)([[Go.isSpecialAttribute,(0,u.always)(PS)],[Go.isImage,(0,u.always)(TS)],[(0,u.always)(O),(0,u.always)(_S)],[u.T,(0,u.always)(kS)]])(r)){case _S:return n().createElement(Oc,{value:y[0],nonVisibleValues:b,totalNonVisibleValues:x,attributeType:r,titleClassName:p,contentClassName:d,showNonOv:f});case kS:return n().createElement(Pc,{values:y,nonVisibleValues:b,totalVisibleValues:E,totalNonVisibleValues:x,attributeType:r,parentUri:a,max:s,requestNextPageOfAttributeValues:c,titleClassName:p,contentClassName:d,showNonOv:f});case TS:return n().createElement(n().Fragment,null,n().createElement(wu,{label:null==r?void 0:r.label,attributeType:r}),n().createElement(hS,{attributeValues:y,attributeType:r,paging:i,parentUri:a,requestNextPageOfAttributeValues:c,showNonOv:f}));case PS:return n().createElement(CS,{values:y,attributeType:r})}})()))})),DS={requestNextPageOfAttributeValues:v.profile.actions.requestNextPageOfAttributeValues},jS=(0,r.connect)(((e,t)=>{let{max:n}=t;return{max:n||y().selectors.getDefaultMaxValues(e)}}),DS)(AS),LS=(0,t.memo)((e=>{let{attrTypes:r,entity:o,parentUri:i,drawLines:a,children:s,className:l,max:c,alwaysVisibleTypeUris:p=IE,showNonOv:d}=e;const[f,h]=(0,t.useState)(c||1/0),m=(0,t.useMemo)((()=>(0,Go.getAttributesListForReadMode)(r,o,d)),[r,o,d]),[g,v]=(0,t.useMemo)((()=>NE(p,m)),[m,p]),y=v.slice(0,f),b=c&&y.length<v.length,w=c&&y.length>=v.length&&c<y.length,E={enabled:a};return n().createElement("div",{className:l},s&&n().createElement(su,E,s),y.concat(g).map((e=>{let{attrType:t,values:r}=e;return n().createElement(jS,{key:t.uri,attributeType:t,drawLines:a,values:r,paging:(0,u.path)(["paging",t.uri],o.attributes),parentUri:i,showNonOv:d})})),b&&n().createElement(_c,{onClick:()=>{h(1/0)}}),w&&n().createElement(Tc,{onClick:()=>{h(c)}}))})),IS=(0,o.makeStyles)({attributesContainer:{padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"},noData:{fontSize:"13px",color:"rgba(0,0,0,0.54)"}}),MS=(0,r.connect)((e=>({metadata:y().selectors.getMetadata(e)})))((e=>{let{className:o,entity:i={},metadata:a,caption:s="",excludeUris:u=[],includeUris:c=[],attributesCount:d=16}=e;const f=IS(),h=(0,r.useSelector)(y().selectors.getPivotingAttributes),m=(0,t.useMemo)((()=>ME(a,i.type,c,u)),[u,c,a,i.type]),g=(0,Go.getAttributesListForReadMode)(m,i).filter((e=>{let{values:t}=e;return!(0,Go.isEmptyValue)(t)})).length>0;return g||!(0,Go.isEmptyValue)(s)?n().createElement(Yl.Provider,{value:h},n().createElement(Jl,{className:o},s&&n().createElement(ou,{className:f.header,title:s}),n().createElement(Fi(),{className:l()(f.attributesContainer,{[f.noCaption]:!s})},g?n().createElement(LS,{entity:i,attrTypes:m,parentUri:i.uri,drawLines:!1,max:d}):n().createElement(A(),{className:f.noData},p().text("No data found"))))):null})),NS=(0,o.makeStyles)({attributesContainer:{padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"}});function RS(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FS(e,t,n[t])}))}return e}function FS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zS=(0,r.connect)((e=>({metadata:y().selectors.getMetadata(e)})))((e=>{let{className:o,entity:i={},mode:a,metadata:s,caption:c="",excludeUris:p=[],includeUris:d=[],pinnedAttributes:f}=e;const h=NS(),m=(0,r.useDispatch)(),g=(0,t.useContext)(ua),b=(0,r.useSelector)(y().selectors.getUserRoles),w=(0,t.useMemo)((()=>(0,Go.getPinnedAttributesForUser)(f,b)),[f,b]),E=(0,r.useSelector)((e=>y().selectors.getModifiedEntity(e,i.uri)||{})),x=(0,t.useMemo)((()=>ME(s,E.type,d,p)),[p,d,s,E.type]),O=(0,t.useCallback)((e=>(0,u.pipe)(v.profile.actions.addAttributes,m)(e.map((e=>RS({},e,{viewId:g}))))),[g,m]),S=(0,t.useCallback)((e=>(0,u.pipe)(v.profile.actions.modifyAttribute,m)(RS({},e,{viewId:g}))),[g,m]),C=(0,t.useCallback)((e=>(0,u.pipe)(v.profile.actions.removeAttribute,m)(RS({},e,{viewId:g}))),[g,m]);return n().createElement(Jl,{className:o},c&&n().createElement(ou,{className:h.header,title:c}),n().createElement(Fi(),{className:l()(h.attributesContainer,{[h.noCaption]:!c})},n().createElement(RE.Provider,{value:w},n().createElement(VE,{entity:E,attrTypes:x,parentUri:E.uri,drawLines:!1,mode:a,showEmptyEditors:(0,Go.isTempUri)(E.uri),crosswalks:E.crosswalks,onAddAttributes:O,onChangeAttribute:S,onDeleteAttribute:C}))))}));function VS(){return VS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VS.apply(this,arguments)}const US=(0,r.connect)(((e,t)=>({entity:t.entity||y().selectors.getEntityWithDiff(e),mode:t.mode||y().selectors.getMode(e)})))((e=>{let{mode:t=Go.Mode.Viewing,attributesCount:r,pinnedAttributes:o,entity:i}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["mode","attributesCount","pinnedAttributes","entity"]);return n().createElement(xS.Provider,{value:i},(0,Go.isViewMode)(t)?n().createElement(MS,VS({attributesCount:r,entity:i},a)):n().createElement(zS,VS({mode:t,pinnedAttributes:o,entity:i},a)))})),BS=(0,o.makeStyles)({noShadowBlock:{boxShadow:"none"},wrapper:{position:"relative",paddingRight:"1px",overflow:"auto"}}),HS=Gl(ni,(0,u.pick)(["selectedEntity","selectedEntityLoading"]),(e=>{let{selectedEntity:t,selectedEntityLoading:r}=e;const o=BS();return n().createElement("div",{className:o.wrapper},r&&n().createElement(Ho,null),n().createElement(US,{entity:t,caption:p().text("Entity details"),className:o.noShadowBlock}))}));let WS;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(WS||(WS={}));const GS=(0,t.memo)((()=>{var e;const r=Ul(),[o,i]=(0,t.useState)(null),a=(0,t.useCallback)((e=>{i((t=>t===e?null:e))}),[]),s=null!==o,l=(0,t.useMemo)((()=>[{buttonProps:{id:WS.Relationship,icon:Hl,tooltipTitle:p().text("Relationship")},content:"Relationship"},{buttonProps:{id:WS.EntityDetails,icon:Vl.Z,tooltipTitle:p().text("Entity Details")},content:n().createElement(HS,null)}]),[]);return n().createElement("div",{className:r.wrapper},n().createElement(Ml,{open:s,width:480},n().createElement(ql,null),null===(e=l[o])||void 0===e?void 0:e.content),n().createElement(zl,{buttonsProps:(0,u.pluck)("buttonProps",l),onButtonClick:a,activeIndexId:o}))}));GS.displayName="GraphRightSidePanel";const qS=GS;var YS=f(4986);const $S=e=>{let{children:t}=e;return n().createElement("div",{style:{height:"calc(100% - 5px)"}},n().createElement(YS.SigmaContainer,{style:{background:"transparent"}},t))};var KS=f(8996),ZS=f.n(KS),XS=f(8833),QS=f.n(XS),JS=f(3660),eC=f.n(JS);function tC(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nC(e,t,n[t])}))}return e}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rC=e=>{let{data:n,selectedNode:r,onNodeClick:o}=e;const i=(0,YS.useSigma)(),a=(0,YS.useRegisterEvents)(),s=(0,YS.useLoadGraph)(),l=(0,YS.useSetSettings)(),[u,c]=(0,t.useState)({hoverNode:void 0,hoverNeighbours:void 0});return(0,t.useEffect)((()=>{const e=new(ZS());n.nodes.forEach((t=>{e.addNode(t.id,{label:t.name,size:21,color:"#0072CE"})})),n.edges.forEach((t=>{e.addEdge(t.from,t.to,{size:5})})),QS().assign(e);const t=eC().inferSettings(e);eC().assign(e,{settings:t,iterations:600}),s(e)}),[s,n]),(0,t.useEffect)((()=>{a({enterNode:e=>{let{node:t}=e;c({hoverNode:t,hoverNeighbours:n.edges.filter((e=>e.from===t||e.to===t)).map((e=>{var r,o;const i=e.from===t?e.to:e.from;return null!==(r=null===(o=n.nodes.find((e=>e.id===i)))||void 0===o?void 0:o.id)&&void 0!==r?r:""}))})},leaveNode:()=>{c({hoverNode:void 0,hoverNeighbours:void 0})},clickNode:e=>{let{node:t}=e;o(t)}})}),[i,a,n,o]),(0,t.useEffect)((()=>{l({nodeReducer:(e,t)=>{const n=tC({},t);return u.hoverNeighbours&&!u.hoverNeighbours.includes(e)&&u.hoverNode!==e&&(n.label="",n.color="#f6f6f6"),e===r&&(n.color="red"),n},edgeReducer:(e,t)=>{const n=i.getGraph(),r=tC({},t,{hidden:!1});return u.hoverNode&&!n.hasExtremity(e,u.hoverNode)&&(r.hidden=!0),r}})}),[i,l,u,r]),null},oC=Gl(ni,(e=>{let{data:t,selectedEntity:n,onEntitySelect:r}=e;return{data:t,selectedNode:null==n?void 0:n.uri,onNodeSelect:r}}),(e=>{let{data:r,selectedNode:o,onNodeSelect:i}=e;const a=(0,t.useMemo)((()=>r&&(e=>{const t=new Set,n=new Set;e.entities.forEach((e=>t.add(e.uri))),e.relations.filter((e=>t.has(e.startObject.objectURI)&&t.has(e.endObject.objectURI))).forEach((e=>{n.has(`${e.endObject.objectURI}--${e.startObject.objectURI}`)||n.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.direction}`)}));const r=e.entities.map((e=>({id:e.uri,name:e.label}))),o=[];return n.forEach((e=>{const t=e.split("--");o.push({from:t[0],to:t[1]})})),{nodes:r,edges:o}})(r)),[r]);return a&&n().createElement($S,null,n().createElement(rC,{data:a,selectedNode:o,onNodeClick:i}))})),iC=(0,t.memo)((()=>{const e=(0,r.useDispatch)();(0,t.useEffect)((()=>{e(v.profile.entity.actions.entityLoaded({uri:"entities/1IPdCSY1",type:"configuration/entityTypes/HCP"}))}),[e]);const o=Wo(),i=(0,r.useSelector)(y().selectors.getEntity),a=(e=>{const{graphLoading:n,data:o}=(e=>{const n=(0,r.useDispatch)(),[o,i]=(0,t.useState)(null),[a,s]=(0,t.useState)(!1),l=null==e?void 0:e.uri,u=(0,Go.isDataTenantEntity)(e);return(0,t.useEffect)((()=>(!l||(0,Go.isTempUri)(l)||u||(s(!0),(0,Go.getHops)({uri:l,deep:2,limitCreditsConsumption:!0,graphTypes:null,activenessDate:null}).then(i).catch((e=>{i(null),n(v.ui.actions.errorSet((0,Go.getRequestErrorMessage)(e,p().text("Something went wrong"))))})).finally((()=>{s(!1)}))),()=>{i(null),s(!1)})),[l,u,n]),{graphLoading:a,data:o}})(e),{selectedEntity:i,onEntitySelect:a,selectedEntityLoading:s}=((e,n)=>{const o=Jo(),i=(0,r.useDispatch)(),[a,s]=(0,t.useState)(null),l=(0,t.useRef)({}),[c,d]=(0,t.useState)(!1),f=(0,t.useCallback)((e=>{var t;if(l.current[e])return void s(l.current[e]);const r=null==n||null===(t=n.entities)||void 0===t?void 0:t.find((0,u.propEq)("uri",e));r&&s(r),d(!0),o((0,Go.getEntity)(e)).then((e=>{l.current=ti(l.current,e),s(e)})).catch((e=>{i(v.ui.actions.errorSet((0,Go.getRequestErrorMessage)(e,p().text("Something went wrong"))))})).finally((()=>{d(!1)}))}),[i,n,o]);return(0,t.useEffect)((()=>{null!=e&&e.uri&&(l.current=ti({},e),f(e.uri))}),[null==e?void 0:e.uri]),{selectedEntityLoading:c,selectedEntity:a,onEntitySelect:f}})(e,o);return{graphLoading:n,data:o,selectedEntity:i,onEntitySelect:a,selectedEntityLoading:s}})(i),{graphLoading:s}=a;return n().createElement(ni.Provider,{value:a},n().createElement("div",{className:o.perspectiveView},s&&n().createElement(Ho,null),(null==i?void 0:i.uri)&&n().createElement("div",{className:o.graphContainer},n().createElement("div",{className:o.graphWrapper},n().createElement(Ll,null),n().createElement(oC,null)),n().createElement(qS,null))))}));iC.displayName="GraphPerspectiveView";const aC=iC,sC=(0,o.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),lC=e=>{let{store:t}=e;return n().createElement(r.Provider,{store:t},n().createElement(o.StylesProvider,{generateClassName:sC},n().createElement(zn,{utils:zo},n().createElement(aC,null),n().createElement(x,{showErrorFromStore:!0}))))}})(),h})()}));
|