@rcsb/rcsb-saguaro-app
Version:
RCSB 1D Saguaro Web App
2 lines • 1.71 MB
JavaScript
/*! For license information please see app.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("RcsbFvWebApp",[],t):"object"==typeof exports?exports.RcsbFvWebApp=t():e.RcsbFvWebApp=t()}(self,(()=>(()=>{var e,t,n={136:()=>{"use strict";try{self["workbox:core:7.0.0"]&&_()}catch(e){}},207:(e,t,n)=>{"use strict";const o=n(5606),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:a}=n(8475),{Buffer:s}=n(8287),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:c}=n(1760).codes;e.exports=function(e,t,n){let u,p;if("string"==typeof t||t instanceof s)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});if(t&&t[i])p=!0,u=t[i]();else{if(!t||!t[a])throw new l("iterable",["Iterable"],t);p=!1,u=t[a]()}const d=new e({objectMode:!0,highWaterMark:1,...n});let f=!1;return d._read=function(){f||(f=!0,async function(){for(;;){try{const{value:e,done:t}=p?await u.next():u.next();if(t)d.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw f=!1,new c;if(d.push(t))continue;f=!1}}catch(e){d.destroy(e)}break}}())},d._destroy=function(e,t){r(async function(e){const t=null!=e,n="function"==typeof u.throw;if(t&&n){const{value:t,done:n}=await u.throw(e);if(await t,n)return}if("function"==typeof u.return){const{value:e}=await u.return();await e}}(e),(()=>o.nextTick(t,e)),(n=>o.nextTick(t,n||e)))},d}},251:(e,t)=>{t.read=function(e,t,n,o,r){var i,a,s=8*r-o-1,l=(1<<s)-1,c=l>>1,u=-7,p=n?r-1:0,d=n?-1:1,f=e[t+p];for(p+=d,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+p],p+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=o;u>0;a=256*a+e[t+p],p+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),i-=c}return(f?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,s,l,c=8*i-r-1,u=(1<<c)-1,p=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:i-1,m=o?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=u?(s=0,a=u):a+p>=1?(s=(t*l-1)*Math.pow(2,r),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=m,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[n+f]=255&a,f+=m,a/=256,c-=8);e[n+f-m]|=128*h}},311:e=>{"use strict";e.exports=function(e,t,n,o,r,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},1086:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlignmentTrackFactory:()=>Ev,AnnotationsTrackFactory:()=>Lv,FeatureType:()=>EI,MsaAlignmentTrackFactory:()=>LI,PlainAlignmentTrackFactory:()=>DI,PlainObservedAlignmentTrackFactory:()=>MI,PositionalScoreAlignmentTrackFactory:()=>NI,RcsbFvUI:()=>aR,RcsbRequestContextManager:()=>nv,SequenceTrackFactory:()=>yv,buildAssemblySequenceFv:()=>HN,buildChromosome:()=>tR,buildDataProviderFv:()=>iR,buildEntityChromosome:()=>eR,buildEntityFv:()=>WN,buildEntitySummaryFv:()=>UN,buildEntryChromosome:()=>ZN,buildFullChromosome:()=>JN,buildGroupFv:()=>nR,buildInstanceFv:()=>VN,buildInstanceSequenceFv:()=>qN,buildMultipleAlignmentSequenceFv:()=>jN,buildMultipleInstanceSequenceFv:()=>zN,buildPairwiseAlignment:()=>KN,buildPfv:()=>QN,buildSequenceIdentityAlignmentFv:()=>oR,buildSingleEntitySummaryFv:()=>GN,buildUniprotAlignmentFv:()=>rR,buildUniprotEntityFv:()=>YN,buildUniprotEntityInstanceFv:()=>XN,buildUniprotFv:()=>$N,unmount:()=>BN});var o={};n.r(o),n.d(o,{blob:()=>Xv,buffer:()=>Kv,csv:()=>hy,dsv:()=>my,html:()=>wy,image:()=>gy,json:()=>yy,svg:()=>xy,text:()=>dy,tsv:()=>by,xml:()=>Sy});var r={};n.r(r),n.d(r,{brush:()=>Jy,brushSelection:()=>Xy,brushX:()=>Qy,brushY:()=>Ky});var i={};n.r(i),n.d(i,{dispatch:()=>iC});var a={};n.r(a),n.d(a,{FormatSpecifier:()=>pC,format:()=>bC,formatDefaultLocale:()=>SC,formatLocale:()=>CC,formatPrefix:()=>gC,formatSpecifier:()=>uC,precisionFixed:()=>wC,precisionPrefix:()=>xC,precisionRound:()=>_C});var s=function(e,t){return s=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])},s(e,t)};function l(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}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function c(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))}function u(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function d(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var f=n(4848),m=n(5338),h=n(6540),b=n.t(h,2),g=n(5072),v=n.n(g),y=n(7825),C=n.n(y),S=n(7659),w=n.n(S),x=n(5056),_=n.n(x),E=n(540),F=n.n(E),k=n(1113),T=n.n(k),A=n(1867),I={};function D(e){return"function"==typeof e}function O(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}I.styleTagTransform=T(),I.setAttributes=_(),I.insert=w().bind(null,"head"),I.domAPI=C(),I.insertStyleElement=F(),v()(A.Ay,I),A.Ay&&A.Ay.locals&&A.Ay.locals;var N=O((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function R(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var M=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,o,r;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=u(i),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(D(l))try{l()}catch(e){r=e instanceof N?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var f=u(c),m=f.next();!m.done;m=f.next()){var h=m.value;try{B(h)}catch(e){r=null!=r?r:[],e instanceof N?r=d(d([],p(r)),p(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}if(r)throw new N(r)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)B(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&R(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&R(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),L=M.EMPTY;function P(e){return e instanceof M||e&&"closed"in e&&D(e.remove)&&D(e.add)&&D(e.unsubscribe)}function B(e){D(e)?e():e.unsubscribe()}var j=null,U=null,G=void 0,q=!1,z=!1,H={setTimeout:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=H.delegate;return(null==r?void 0:r.setTimeout)?r.setTimeout.apply(r,d([e,t],p(n))):setTimeout.apply(void 0,d([e,t],p(n)))},clearTimeout:function(e){var t=H.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function $(){}var W=V("C",void 0,void 0);function V(e,t,n){return{kind:e,value:t,error:n}}var Y=null;function X(e){if(q){var t=!Y;if(t&&(Y={errorThrown:!1,error:null}),e(),t){var n=Y,o=n.errorThrown,r=n.error;if(Y=null,o)throw r}}else e()}var Q=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,P(t)&&t.add(n)):n.destination=oe,n}return l(t,e),t.create=function(e,t,n){return new ee(e,t,n)},t.prototype.next=function(e){this.isStopped?ne(function(e){return V("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?ne(V("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?ne(W,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(M),K=Function.prototype.bind;function J(e,t){return K.call(e,t)}var Z=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){te(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){te(e)}else te(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){te(e)}},e}(),ee=function(e){function t(t,n,o){var r,i,a=e.call(this)||this;return D(t)||!t?r={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=o?o:void 0}:a&&z?((i=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},r={next:t.next&&J(t.next,i),error:t.error&&J(t.error,i),complete:t.complete&&J(t.complete,i)}):r=t,a.destination=new Z(r),a}return l(t,e),t}(Q);function te(e){q?function(e){q&&Y&&(Y.errorThrown=!0,Y.error=e)}(e):function(e){H.setTimeout((function(){if(!j)throw e;j(e)}))}(e)}function ne(e,t){var n=U;n&&H.setTimeout((function(){return n(e,t)}))}var oe={closed:!0,next:$,error:function(e){throw e},complete:$},re="function"==typeof Symbol&&Symbol.observable||"@@observable";function ie(e){return e}var ae=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o=this,r=function(e){return e&&e instanceof Q||function(e){return e&&D(e.next)&&D(e.error)&&D(e.complete)}(e)&&P(e)}(e)?e:new ee(e,t,n);return X((function(){var e=o,t=e.operator,n=e.source;r.add(t?t.call(r,n):n?o._subscribe(r):o._trySubscribe(r))})),r},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=se(t))((function(t,o){var r=new ee({next:function(t){try{e(t)}catch(e){o(e),r.unsubscribe()}},error:o,complete:t});n.subscribe(r)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[re]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===(n=e).length?ie:1===n.length?n[0]:function(e){return n.reduce((function(e,t){return t(e)}),e)})(this);var n},e.prototype.toPromise=function(e){var t=this;return new(e=se(e))((function(e,n){var o;t.subscribe((function(e){return o=e}),(function(e){return n(e)}),(function(){return e(o)}))}))},e.create=function(t){return new e(t)},e}();function se(e){var t;return null!==(t=null!=e?e:G)&&void 0!==t?t:Promise}var le,ce,ue=O((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return l(t,e),t.prototype.lift=function(e){var t=new de(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ue},t.prototype.next=function(e){var t=this;X((function(){var n,o;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var r=u(t.currentObservers),i=r.next();!i.done;i=r.next())i.value.next(e)}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;X((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;X((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,o=n.hasError,r=n.isStopped,i=n.observers;return o||r?L:(this.currentObservers=null,i.push(e),new M((function(){t.currentObservers=null,R(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,o=t.thrownError,r=t.isStopped;n?e.error(o):r&&e.complete()},t.prototype.asObservable=function(){var e=new ae;return e.source=this,e},t.create=function(e,t){return new de(e,t)},t}(ae),de=function(e){function t(t,n){var o=e.call(this)||this;return o.destination=t,o.source=n,o}return l(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:L},t}(pe);class fe{constructor(){this.conditionalFlag=new Map,this.subject=new pe}next(e){this.subject.next(e)}subscribe(e){return this.subject.subscribe(e)}unsubscribeAll(){this.subject.unsubscribe()}getCondition(e){var t;return null!==(t=this.conditionalFlag.get(e))&&void 0!==t&&t}setCondition(e,t){this.conditionalFlag.set(e,null==t||t)}}function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},me.apply(null,arguments)}function he(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}function be(e,t){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},be(e,t)}function ge(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,be(e,t)}function ve(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}!function(e){e[e.STOP_MOUSE_MOVE_HOVERING_HIGHLIGHT=0]="STOP_MOUSE_MOVE_HOVERING_HIGHLIGHT"}(le||(le={})),function(e){e.SELECTION="eventTypeSelection",e.SCALE="eventTypeScale",e.RESET="eventTypeReset",e.TRACK_HIDE="eventTypeHide",e.UPDATE_BOARD_CONFIG="updateBoardConfig",e.DOMAIN_VIEW="domainView",e.BOARD_HOVER="boardHover",e.ROW_READY="rowReady",e.FRACTION_COMPLETED="fractionComplete",e.BOARD_READY="boardReady",e.SET_SELECTION="eventTypeSetSelection",e.ADD_SELECTION="eventTypeAddSelection",e.ROW_HOVER="rowHover"}(ce||(ce={}));var ye=n(961);const Ce=h.createContext(null);var Se=function(e){return e.scrollTop},we="unmounted",xe="exited",_e="entering",Ee="entered",Fe="exiting",ke=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=xe,o.appearStatus=_e):r=Ee:r=t.unmountOnExit||t.mountOnEnter?we:xe,o.state={status:r},o.nextCallback=null,o}ge(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===we?{status:xe}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==_e&&n!==Ee&&(t=_e):n!==_e&&n!==Ee||(t=Fe)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===_e){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ye.findDOMNode(this);n&&Se(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xe&&this.setState({status:we})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[ye.findDOMNode(this),o],i=r[0],a=r[1],s=this.getTimeouts(),l=o?s.appear:s.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:_e},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ee},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Ee},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:ye.findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:Fe},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:xe},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:xe},(function(){e.props.onExited(o)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ye.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],a=r[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===we)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,he(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return h.createElement(Ce.Provider,{value:null},"function"==typeof n?n(e,o):h.cloneElement(h.Children.only(n),o))},t}(h.Component);function Te(){}ke.contextType=Ce,ke.propTypes={},ke.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Te,onEntering:Te,onEntered:Te,onExit:Te,onExiting:Te,onExited:Te},ke.UNMOUNTED=we,ke.EXITED=xe,ke.ENTERING=_e,ke.ENTERED=Ee,ke.EXITING=Fe;const Ae=ke;var Ie=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.remove(o):"string"==typeof n.className?n.className=ve(n.className,o):n.setAttribute("class",ve(n.className&&n.className.baseVal||"",o)));var n,o}))},De=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1];t.removeClasses(r,"exit"),t.addClass(r,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.addClass(r,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.removeClasses(r,i),t.addClass(r,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,r=o?(o&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:o?r+"-active":n[e+"Active"],doneClassName:o?r+"-done":n[e+"Done"]}},t}ge(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var o=this.getClassNames(t)[n+"ClassName"],r=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&r&&(o+=" "+r),"active"===n&&e&&Se(e),o&&(this.appliedClasses[t][n]=o,function(e,t){e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,o)||("string"==typeof n.className?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o)));var n,o}))}(e,o))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,r=n.active,i=n.done;this.appliedClasses[t]={},o&&Ie(e,o),r&&Ie(e,r),i&&Ie(e,i)},n.render=function(){var e=this.props,t=(e.classNames,he(e,["classNames"]));return h.createElement(Ae,me({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(h.Component);De.defaultProps={classNames:""},De.propTypes={};const Oe=De,Ne=1.5,Re=160,Me=[0,1];var Le=function(e){function t(t,n){return e.call(this)||this}return l(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(M),Pe={setInterval:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=Pe.delegate;return(null==r?void 0:r.setInterval)?r.setInterval.apply(r,d([e,t],p(n))):setInterval.apply(void 0,d([e,t],p(n)))},clearInterval:function(e){var t=Pe.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},Be=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.pending=!1,o}return l(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),Pe.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&Pe.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,o=!1;try{this.work(e)}catch(e){o=!0,n=e||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,o=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,R(o,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Le),je={now:function(){return(je.delegate||Date).now()},delegate:void 0},Ue=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=je.now,e}(),Ge=function(e){function t(t,n){void 0===n&&(n=Ue.now);var o=e.call(this,t,n)||this;return o.actions=[],o._active=!1,o}return l(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(Ue),qe=new Ge(Be);function ze(e){return e.split("-")[0]}function He(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,a=o.y+o.height/2-r.height/2,s=function(e){return["top","bottom"].includes(ze(e))?"x":"y"}(t),l=function(e){return"y"===e?"height":"width"}(s),c=o[l]/2-r[l]/2,u="x"===s;let p;switch(ze(t)){case"top":p={x:i,y:o.y-r.height};break;case"bottom":p={x:i,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:a};break;case"left":p={x:o.x-r.width,y:a};break;default:p={x:o.x,y:o.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":p[s]-=c*(n&&u?-1:1);break;case"end":p[s]+=c*(n&&u?-1:1)}return p}const $e=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:p}=He(c,o,l),d=o,f={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:b,y:g,data:v,reset:y}=await h({x:u,y:p,initialPlacement:o,placement:d,strategy:r,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=b?b:u,p=null!=g?g:p,f={...f,[i]:{...f[i],...v}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(d=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:u,y:p}=He(c,d,l))),n=-1)}return{x:u,y:p,placement:d,strategy:r,middlewareData:f}};function We(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Ve(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:d=!1,padding:f=0}=function(e,t){return"function"==typeof e?e(t):e}(t,e),m=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(f),h=s[d?"floating"===p?"reference":"floating":p],b=We(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===p?{...a.floating,x:o,y:r}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},C=We(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:v,strategy:l}):g);return{top:(b.top-C.top+m.top)/y.y,bottom:(C.bottom-b.bottom+m.bottom)/y.y,left:(b.left-C.left+m.left)/y.x,right:(C.right-b.right+m.right)/y.x}}Math.min,Math.max;function Ye(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xe(e){return Ye(e).getComputedStyle(e)}function Qe(e){return e instanceof Ye(e).Node}function Ke(e){return Qe(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){return e instanceof Ye(e).HTMLElement}function Ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ye(e).ShadowRoot||e instanceof ShadowRoot)}function et(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function tt(e){return["table","td","th"].includes(Ke(e))}function nt(e){const t=ot(),n=Xe(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ot(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function rt(e){return["html","body","#document"].includes(Ke(e))}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const it=Math.min,at=Math.max,st=Math.round,lt=Math.floor,ct=e=>({x:e,y:e});function ut(e){const t=Xe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Je(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=st(n)!==i||st(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function pt(e){return e instanceof Ye(e).Element}function dt(e){return pt(e)?e:e.contextElement}function ft(e){const t=dt(e);if(!Je(t))return ct(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=ut(t);let a=(i?st(n.width):n.width)/o,s=(i?st(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const mt=ct(0);function ht(e){const t=Ye(e);return ot()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mt}function bt(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=dt(e);let a=ct(1);t&&(o?pt(o)&&(a=ft(o)):a=ft(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ye(e))&&t}(i,n,o)?ht(i):ct(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,u=r.width/a.x,p=r.height/a.y;if(i){const e=Ye(i),t=o&&pt(o)?Ye(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=ft(n),t=n.getBoundingClientRect(),o=getComputedStyle(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,p*=e.y,l+=r,c+=i,n=Ye(n).frameElement}}return We({width:u,height:p,x:l,y:c})}function gt(e){return pt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function vt(e){return((Qe(e)?e.ownerDocument:e.document)||window.document).documentElement}function yt(e){return bt(vt(e)).left+gt(e).scrollLeft}function Ct(e){if("html"===Ke(e))return e;const t=e.assignedSlot||e.parentNode||Ze(e)&&e.host||vt(e);return Ze(t)?t.host:t}function St(e){const t=Ct(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Je(t)&&et(t)?t:St(t)}function wt(e,t){var n;void 0===t&&(t=[]);const o=St(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Ye(o);return r?t.concat(i,i.visualViewport||[],et(o)?o:[]):t.concat(o,wt(o))}function xt(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Ye(e),o=vt(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const e=ot();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)o=function(e){const t=vt(e),n=gt(e),o=e.ownerDocument.body,r=at(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=at(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+yt(e);const s=-n.scrollTop;return"rtl"===Xe(o).direction&&(a+=at(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(vt(e));else if(pt(t))o=function(e,t){const n=bt(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Je(e)?ft(e):ct(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=ht(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return We(o)}function _t(e,t){const n=Ct(e);return!(n===t||!pt(n)||rt(n))&&("fixed"===Xe(n).position||_t(n,t))}function Et(e,t,n){const o=Je(t),r=vt(t),i="fixed"===n,a=bt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ct(0);if(o||!o&&!i)if(("body"!==Ke(t)||et(r))&&(s=gt(t)),Je(t)){const e=bt(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=yt(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ft(e,t){return Je(e)&&"fixed"!==Xe(e).position?t?t(e):e.offsetParent:null}function kt(e,t){const n=Ye(e);if(!Je(e))return n;let o=Ft(e,t);for(;o&&tt(o)&&"static"===Xe(o).position;)o=Ft(o,t);return o&&("html"===Ke(o)||"body"===Ke(o)&&"static"===Xe(o).position&&!nt(o))?n:o||function(e){let t=Ct(e);for(;Je(t)&&!rt(t);){if(nt(t))return t;t=Ct(t)}return null}(e)||n}const Tt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=Je(n),i=vt(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=ct(1);const l=ct(0);if((r||!r&&"fixed"!==o)&&(("body"!==Ke(n)||et(i))&&(a=gt(n)),Je(n))){const e=bt(n);s=ft(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:vt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=wt(e).filter((e=>pt(e)&&"body"!==Ke(e))),r=null;const i="fixed"===Xe(e).position;let a=i?Ct(e):e;for(;pt(a)&&!rt(a);){const t=Xe(a),n=nt(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||et(a)&&!n&&_t(e,a))?o=o.filter((e=>e!==a)):r=t,a=Ct(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=xt(t,n,r);return e.top=at(o.top,e.top),e.right=it(o.right,e.right),e.bottom=it(o.bottom,e.bottom),e.left=at(o.left,e.left),e}),xt(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:kt,getElementRects:async function(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||kt,i=this.getDimensions;return{reference:Et(t,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return ut(e)},getScale:ft,isElement:pt,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}},At=(e,t,n)=>{const o=new Map,r={platform:Tt,...n},i={...r.platform,_c:o};return $e(e,t,{...r,platform:i})};var It;function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Dt.apply(null,arguments)}const Ot=function(e){return h.createElement("svg",Dt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),It||(It=h.createElement("path",{d:"M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"})))};var Nt;function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rt.apply(null,arguments)}const Mt=function(e){return h.createElement("svg",Rt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Nt||(Nt=h.createElement("path",{d:"M5 11h14v2H5z"})))};var Lt;function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pt.apply(null,arguments)}const Bt=function(e){return h.createElement("svg",Pt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Lt||(Lt=h.createElement("path",{d:"M5.536 21.886a1.004 1.004 0 0 0 1.033-.064l13-9a1 1 0 0 0 0-1.644l-13-9A.998.998 0 0 0 5 3v18a1 1 0 0 0 .536.886M7 4.909 17.243 12 7 19.091V4.909"})))};var jt;function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ut.apply(null,arguments)}const Gt=function(e){return h.createElement("svg",Ut({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),jt||(jt=h.createElement("path",{d:"M18.464 2.114a.998.998 0 0 0-1.033.063l-13 9a1.003 1.003 0 0 0 0 1.645l13 9A1 1 0 0 0 19 21V3a1 1 0 0 0-.536-.886M17 19.091 6.757 12 17 4.909z"})))};var qt;function zt(){return zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},zt.apply(null,arguments)}const Ht=function(e){return h.createElement("svg",zt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),qt||(qt=h.createElement("path",{d:"M11.178 19.569a.998.998 0 0 0 1.644 0l9-13A.999.999 0 0 0 21 5H3a1.002 1.002 0 0 0-.822 1.569z"})))};class $t extends h.Component{constructor(){super(...arguments),this.collapseRef=h.createRef(),this.expandRef=h.createRef(),this.config=[{icon:(0,f.jsx)(Ot,Object.assign({},$t.ICON_PROPS)),callback:this.zoomIn.bind(this),name:"zoom-in"},{icon:(0,f.jsx)(Mt,Object.assign({},$t.ICON_PROPS)),callback:this.zoomOut.bind(this),name:"zoom-out"},{icon:(0,f.jsx)(Bt,Object.assign({},$t.ICON_PROPS)),callback:this.move.bind(this,1),name:"move-right"},{icon:(0,f.jsx)(Gt,Object.assign({},$t.ICON_PROPS)),callback:this.move.bind(this,-1),name:"move-left"}],this.hideTask=null,this.state={collapse:!1}}render(){return(0,f.jsx)("div",{id:this.props.boardId+"_uiDiv",className:A.zV+" "+A.Ax,style:{position:"absolute",top:0,left:0},children:(0,f.jsxs)("div",{style:{position:"relative"},children:[(0,f.jsx)(Oe,{in:this.state.collapse,timeout:300,classNames:A.Gf,nodeRef:this.collapseRef,children:(0,f.jsx)("div",{style:{position:"absolute"},className:A.Vc+" "+A.Gf,onMouseEnter:this.changeState.bind(this,{collapse:!1}),ref:this.collapseRef,children:(0,f.jsx)("div",{className:A.tk,children:(0,f.jsx)(Ht,Object.assign({},$t.ICON_PROPS))})})}),(0,f.jsx)(Oe,{in:!this.state.collapse,timeout:300,classNames:A.x_,nodeRef:this.expandRef,children:(0,f.jsx)("div",{style:{position:"absolute"},className:A.x_,onMouseLeave:this.changeState.bind(this,{collapse:!0}),ref:this.expandRef,children:this.config.map((e=>this.buildButton(e)))})})]})})}componentDidMount(){this.subscription=this.subscribe();const e=document.querySelector("#"+this.props.boardId);if(null==e)throw"Main board DOM element not found";this.refDiv=e;const t=document.querySelector("#"+this.props.boardId+"_uiDiv");if(null==t)throw"Tooltip DOM element not found";this.tooltipDiv=t}componentWillUnmount(){this.subscription.unsubscribe()}subscribe(){return this.props.contextManager.subscribe((e=>{e.eventType===ce.BOARD_HOVER&&this.boardHover(e.eventData)}))}boardHover(e){e?this.displayUI():this.hideUI()}displayUI(){this.hideTask&&this.hideTask.unsubscribe();const e=!0===this.props.boardConfigData.includeAxis?32:0;At(this.refDiv,this.tooltipDiv,{placement:"right-start",middleware:[{name:"middleware",fn(t){return c(this,void 0,void 0,(function*(){const n=yield Ve(t,{rootBoundary:"viewport"});return n.top>e?{y:n.top+t.y-e}:{}}))}}]}).then((({x:t,y:n})=>{Object.assign(this.tooltipDiv.style,{left:`${t}px`,top:`${n+e}px`})})),this.tooltipDiv.classList.remove(A.Ax),this.tooltipDiv.classList.add(A.Ac)}hideUI(){const e=document.querySelector("#"+this.props.boardId+"_uiDiv");null!=e&&(this.hideTask=qe.schedule((()=>{e.classList.remove(A.Ac),e.classList.add(A.Ax)}),300))}buildButton(e){return(0,f.jsx)("div",{className:A.Hn,children:(0,f.jsx)("div",{className:A.qb,onClick:e.callback,children:e.icon})},e.name)}changeState(e){this.setState(e)}zoomIn(){if(null==(null!=this.props.boardConfigData.range?this.props.boardConfigData.range.max:this.props.boardConfigData.length))return;const e=this.props.xScale.domain(),t=Math.floor(.1*(e[1]-e[0])),n=e[0]+t,o=e[1]-t;o-n>20&&this.setDomain({domain:[n,o]})}zoomOut(){const e=null!=this.props.boardConfigData.range?this.props.boardConfigData.range.max:this.props.boardConfigData.length,t=null!=this.props.boardConfigData.range?this.props.boardConfigData.range.min:1;if(null==e)return;const n=this.props.xScale.domain(),o=Math.floor(.1*(n[1]-n[0])),r=n[0]-o>t-Ne?n[0]-o:t-Ne,i=n[1]+o<e+Ne?n[1]+o:e+Ne;i-r<e+Ne?this.setDomain({domain:[r,i]}):this.setDomain({domain:[t-Ne,e+Ne]})}move(e){const t=null!=this.props.boardConfigData.range?this.props.boardConfigData.range.max:this.props.boardConfigData.length,n=null!=this.props.boardConfigData.range?this.props.boardConfigData.range.min:1;if(null==t)return;const o=this.props.xScale.domain();let r=Math.floor(.1*(o[1]-o[0]));o[0]+e*r<n-Ne?r=o[0]-(n-Ne):o[1]+e*r>t+Ne&&(r=t+Ne-o[1]);const i=o[0]+e*r,a=o[1]+e*r;a-i<t+Ne?this.setDomain({domain:[i,a]}):this.setDomain({domain:[n-Ne,t+Ne]})}setScale(){null!=this.props.xScale&&this.props.contextManager.next({eventType:ce.SCALE,eventData:this.props.boardId})}setDomain(e){this.props.xScale.domain(e.domain),this.setScale()}}$t.ICON_PROPS={width:16,height:16,viewBox:"0 0 24 24"};class Wt extends h.Component{render(){return(0,f.jsx)("div",{className:A.sN,style:{display:"inline-block"},children:(0,f.jsx)("div",{children:this.props.externalRowMark?(0,f.jsx)(this.props.externalRowMark.component,Object.assign({isGlowing:this.props.isGlowing,clickCallback:this.props.clickCallback,hoverCallback:this.props.hoverCallback},this.props.externalRowMark.props)):(0,f.jsx)("div",{onClick:this.props.clickCallback,onMouseOver:this.props.hoverCallback,style:{width:6,height:6,marginBottom:4,marginRight:5},children:(0,f.jsx)("div",{className:A.hR})})})})}}class Vt extends h.Component{constructor(e){super(e),this.state={expandTitle:!1},this.PADDING_RIGHT=5,this.configData=this.props.data}render(){var e,t,n,o;const r=this.configStyle().height,i="string"==typeof(null===(e=this.configData)||void 0===e?void 0:e.rowTitle)?this.configData.rowTitle:"object"==typeof(null===(t=this.configData)||void 0===t?void 0:t.rowTitle)?this.configData.rowTitle.visibleTex:"";let a;if(null===(n=this.props.data.externalRowTitle)||void 0===n?void 0:n.rowTitleComponent){const e=this.props.data.externalRowTitle.rowTitleAdditionalProps,t=null===(o=this.props.data.externalRowTitle)||void 0===o?void 0:o.rowTitleComponent;a=(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)("div",{className:A.YW+(this.state.expandTitle?" "+A.SN:""),style:{lineHeight:r+"px",paddingRight:this.PADDING_RIGHT},onMouseEnter:e=>{this.expandTitle(e,!0)},onMouseLeave:e=>{this.expandTitle(e,!1)},children:[(0,f.jsx)(Wt,Object.assign({},this.props.data.rowMark,{isGlowing:this.props.isGlowing})),(0,f.jsx)("div",{style:{display:"inline-block"},children:(0,f.jsx)(t,Object.assign({},this.props,e))})]})})}else if("string"==typeof this.configData.rowPrefix&&this.configData.rowPrefix.length>0&&this.configData.fitTitleWidth){const e=Math.max(this.configData.rowPrefix.length,16),t=Math.round(e/(e+i.length)*this.configStyle().width),n={width:this.configStyle().width-t,height:r,paddingRight:this.PADDING_RIGHT};a=(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:Object.assign(Object.assign({},n),{float:"right",display:"inline-block"}),children:(0,f.jsx)("div",{className:A.YW,style:{lineHeight:r+"px"},children:this.setTitle()})}),(0,f.jsx)("div",{style:{height:r,float:"right",display:"inline-block"},children:(0,f.jsxs)("div",{className:A.YW,style:{lineHeight:r+"px",display:"inline-block"},children:[(0,f.jsx)(Wt,Object.assign({},this.props.data.rowMark,{isGlowing:this.props.isGlowing})),this.configData.rowPrefix]})})]})}else a="string"==typeof this.configData.rowPrefix&&this.configData.rowPrefix.length>0?(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)("div",{className:A.YW+(this.state.expandTitle?" "+A.SN:""),style:{lineHeight:r+"px",paddingRight:this.PADDING_RIGHT},onMouseEnter:e=>{this.expandTitle(e,!0)},onMouseLeave:e=>{this.expandTitle(e,!1)},children:[(0,f.jsx)(Wt,Object.assign({},this.props.data.rowMark,{isGlowing:this.props.isGlowing})),this.configData.rowPrefix+" ",this.setTitle()]})}):(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)("div",{className:A.YW+(this.state.expandTitle?" "+A.SN:""),style:{lineHeight:r+"px",paddingRight:this.PADDING_RIGHT},onMouseEnter:e=>{this.expandTitle(e,!0)},onMouseLeave:e=>{this.expandTitle(e,!1)},children:[(0,f.jsx)(Wt,Object.assign({},this.props.data.rowMark,{isGlowing:this.props.isGlowing})),this.setTitle()]})});return(0,f.jsxs)("div",{className:A.vl,style:this.configStyle(),children:[null!=this.setTitle()?(0,f.jsx)("div",{style:this.configTitleFlagColorStyle(),className:A.Uv}):null,a]})}setTitle(){if("string"==typeof this.configData.rowTitle)return this.configData.rowTitle;if("object"==typeof this.configData.rowTitle){const e=this.configData.rowTitle.isThirdParty?"_blank":"_self";return"string"==typeof this.configData.rowTitle.url?(0,f.jsx)("a",{href:this.configData.rowTitle.url,target:e,style:this.configData.rowTitle.style,children:this.configData.rowTitle.visibleTex}):(0,f.jsx)("span",{style:this.configData.rowTitle.style,children:this.configData.rowTitle.visibleTex})}return null}configStyle(){let e=Re;return"number"==typeof this.configData.rowTitleWidth&&(e=this.configData.rowTitleWidth),{width:e,height:this.props.rowTitleHeight}}configTitleFlagColorStyle(){let e="#FFFFFF";return"string"==typeof this.props.data.titleFlagColor&&(e=this.props.data.titleFlagColor),{backgroundColor:e,height:this.props.rowTitleHeight,width:this.PADDING_RIGHT,float:"right"}}expandTitle(e,t){const n=e.currentTarget;0>n.clientWidth-n.scrollWidth&&t?t&&this.setState({expandTitle:!0}):this.setState({expandTitle:!1})}}var Yt={value:()=>{}};function Xt(){for(var e,t=0,n=arguments.length,o={};t<n;++t){if(!(e=arguments[t]+"")||e in o||/[\s.]/.test(e))throw new Error("illegal type: "+e);o[e]=[]}return new Qt(o)}function Qt(e){this._=e}function Kt(e,t){for(var n,o=0,r=e.length;o<r;++o)if((n=e[o]).name===t)return n.value}function Jt(e,t,n){for(var o=0,r=e.length;o<r;++o)if(e[o].name===t){e[o]=Yt,e=e.slice(0,o).concat(e.slice(o+1));break}return null!=n&&e.push({name:t,value:n}),e}Qt.prototype=Xt.prototype={constructor:Qt,on:function(e,t){var n,o,r=this._,i=(o=r,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!o.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),a=-1,s=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=Jt(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Jt(r[n],e.name,null);return this}for(;++a<s;)if((n=(e=i[a]).type)&&(n=Kt(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Qt(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,o,r=new Array(n),i=0;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(o=this._[e]).length;i<n;++i)o[i].value.apply(t,r)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)}};const Zt=Xt;function en(){}function tn(e){return null==e?en:function(){return this.querySelector(e)}}function nn(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function on(){return[]}function rn(e){return null==e?on:function(){return this.querySelectorAll(e)}}function an(e){return function(){return this.matches(e)}}function sn(e){return function(t){return t.matches(e)}}var ln=Array.prototype.find;function cn(){return this.firstElementChild}var un=Array.prototype.filter;function pn(){return Array.from(this.children)}function dn(e){return new Array(e.length)}function fn(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function mn(e,t,n,o,r,i){for(var a,s=0,l=t.length,c=i.length;s<c;++s)(a=t[s])?(a.__data__=i[s],o[s]=a):n[s]=new fn(e,i[s]);for(;s<l;++s)(a=t[s])&&(r[s]=a)}function hn(e,t,n,o,r,i,a){var s,l,c,u=new Map,p=t.length,d=i.length,f=new Array(p);for(s=0;s<p;++s)(l=t[s])&&(f[s]=c=a.call(l,l.__data__,s,t)+"",u.has(c)?r[s]=l:u.set(c,l));for(s=0;s<d;++s)c=a.call(e,i[s],s,i)+"",(l=u.get(c))?(o[s]=l,l.__data__=i[s],u.delete(c)):n[s]=new fn(e,i[s]);for(s=0;s<p;++s)(l=t[s])&&u.get(f[s])===l&&(r[s]=l)}function bn(e){return e.__data__}function gn(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function vn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}fn.prototype={constructor:fn,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySele