streamlit-nightly 1.22.1.dev20230516__py2.py3-none-any.whl → 1.22.1.dev20230518__py2.py3-none-any.whl

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.
@@ -0,0 +1 @@
1
+ (self.webpackChunkstreamlit_browser=self.webpackChunkstreamlit_browser||[]).push([[425],{80292:function(e){e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},34405:function(e,t,n){var r=n(99038);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},86722:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},52201:function(e,t,n){var r=n(2785);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,e,n(e),o)})),i}},88843:function(e){e.exports=function(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},93527:function(e){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},23255:function(e,t,n){var r=n(45349),i=n(99798);e.exports=function e(t,n,o,a,l){var u=-1,s=t.length;for(o||(o=i),l||(l=[]);++u<s;){var c=t[u];n>0&&o(c)?n>1?e(c,n-1,o,a,l):r(l,c):a||(l[l.length]=c)}return l}},39473:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},99038:function(e,t,n){var r=n(93527),i=n(57700),o=n(13245);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},57700:function(e){e.exports=function(e){return e!==e}},2948:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,l=n(t((r-e)/(i||1)),0),u=Array(l);l--;)u[o?l:++a]=e,e+=i;return u}},2306:function(e,t,n){var r=n(5510),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7579:function(e,t,n){var r=n(44526),i=n(34405),o=n(86722),a=n(88905),l=n(56946),u=n(73671);e.exports=function(e,t,n){var s=-1,c=i,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=o;else if(d>=200){var v=t?null:l(e);if(v)return u(v);f=!1,c=a,p=new r}else p=t?[]:h;e:for(;++s<d;){var g=e[s],m=t?t(g):g;if(g=n||0!==g?g:0,f&&m===m){for(var b=p.length;b--;)if(p[b]===m)continue e;t&&p.push(m),h.push(g)}else c(p,m,n)||(p!==h&&p.push(m),h.push(g))}return h}},9575:function(e,t,n){var r=n(80292),i=n(52201),o=n(81186),a=n(95585);e.exports=function(e,t){return function(n,l){var u=a(n)?r:i,s=t?t():{};return u(n,e,o(l,2),s)}}},53934:function(e,t,n){var r=n(2948),i=n(73271),o=n(89103);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},56946:function(e,t,n){var r=n(4199),i=n(8568),o=n(73671),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},99798:function(e,t,n){var r=n(68624),i=n(52794),o=n(95585),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},13245:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},5510:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},28630:function(e,t,n){var r=n(88843),i=n(57923);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=i(n))===n?n:0),void 0!==t&&(t=(t=i(t))===t?t:0),r(i(e),t,n)}},12279:function(e,t,n){var r=n(91845),i=n(46170),o=n(57923),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u,s,c,d,f,h,p=0,v=!1,g=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=u,r=s;return u=s=void 0,p=t,d=e.apply(r,n)}function y(e){return p=e,f=setTimeout(x,t),v?b(e):d}function w(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-p>=c}function x(){var e=i();if(w(e))return k(e);f=setTimeout(x,function(e){var n=t-(e-h);return g?l(n,c-(e-p)):n}(e))}function k(e){return f=void 0,m&&u?b(e):(u=s=void 0,d)}function D(){var e=i(),n=w(e);if(u=arguments,s=this,h=e,n){if(void 0===f)return y(h);if(g)return clearTimeout(f),f=setTimeout(x,t),b(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(v=!!n.leading,c=(g="maxWait"in n)?a(o(n.maxWait)||0,t):c,m="trailing"in n?!!n.trailing:m),D.cancel=function(){void 0!==f&&clearTimeout(f),p=0,u=h=s=f=void 0},D.flush=function(){return void 0===f?d:k(i())},D}},15122:function(e,t,n){var r=n(23255);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},69522:function(e,t,n){var r=n(46351),i=n(9575),o=Object.prototype.hasOwnProperty,a=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},51912:function(e,t,n){var r=n(39473),i=n(81898);e.exports=function(e,t){return null!=e&&i(e,t,r)}},8568:function(e){e.exports=function(){}},46170:function(e,t,n){var r=n(7289);e.exports=function(){return r.Date.now()}},43575:function(e,t,n){var r=n(53934)();e.exports=r},91909:function(e,t,n){var r=n(12279),i=n(91845);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},89103:function(e,t,n){var r=n(57923),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},57923:function(e,t,n){var r=n(2306),i=n(91845),o=n(72060),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},28845:function(e,t,n){var r=n(7579);e.exports=function(e){return e&&e.length?r(e):[]}},27730:function(e,t,n){var r,i,o;i=[t,n(56840)],r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t);function r(e){return e&&e.__esModule?e:{default:e}}e.default=n.default},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)},56840:function(e,t,n){var r,i,o;i=[t,n(47313),n(75192)],r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=h;var r=o(t),i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function l(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}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();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}function d(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)}var f=!1;function h(e){f=e}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){h(!0)}}))}catch(m){}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return f?e:e.capture}function v(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var g=function(e){function t(){var e;u(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return o._handleSwipeStart=o._handleSwipeStart.bind(o),o._handleSwipeMove=o._handleSwipeMove.bind(o),o._handleSwipeEnd=o._handleSwipeEnd.bind(o),o._onMouseDown=o._onMouseDown.bind(o),o._onMouseMove=o._onMouseMove.bind(o),o._onMouseUp=o._onMouseUp.bind(o),o._setSwiperRef=o._setSwiperRef.bind(o),o}return d(t,e),s(t,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,p({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,p({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(e){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(e))}},{key:"_onMouseMove",value:function(e){this.mouseDown&&this._handleSwipeMove(e)}},{key:"_onMouseUp",value:function(e){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(e)}},{key:"_handleSwipeStart",value:function(e){var t=v(e),n=t.x,r=t.y;this.moveStart={x:n,y:r},this.props.onSwipeStart(e)}},{key:"_handleSwipeMove",value:function(e){if(this.moveStart){var t=v(e),n=t.x,r=t.y,i=n-this.moveStart.x,o=r-this.moveStart.y;this.moving=!0,this.props.onSwipeMove({x:i,y:o},e)&&e.cancelable&&e.preventDefault(),this.movePosition={deltaX:i,deltaY:o}}}},{key:"_handleSwipeEnd",value:function(e){this.props.onSwipeEnd(e);var t=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-t?this.props.onSwipeLeft(1,e):this.movePosition.deltaX>t&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.tagName,e.className),n=e.style,i=e.children,o=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,l(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return r.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},o),i)}}]),t}(t.Component);g.displayName="ReactSwipe",g.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},g.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=g},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)},69400:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t,n){var r=0===e?e:e+t;return"translate3d"+("("+("horizontal"===n?[r,0,0]:[0,r,0]).join(",")+")")}},79781:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fadeAnimationHandler=t.slideStopSwipingHandler=t.slideSwipeAnimationHandler=t.slideAnimationHandler=void 0;var r,i=n(47313),o=(r=n(69400))&&r.__esModule?r:{default:r},a=n(39850);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.slideAnimationHandler=function(e,t){var n={},r=t.selectedItem,l=r,s=i.Children.count(e.children)-1;if(e.infiniteLoop&&(r<0||r>s))return l<0?e.centerMode&&e.centerSlidePercentage&&"horizontal"===e.axis?n.itemListStyle=(0,a.setPosition)(-(s+2)*e.centerSlidePercentage-(100-e.centerSlidePercentage)/2,e.axis):n.itemListStyle=(0,a.setPosition)(100*-(s+2),e.axis):l>s&&(n.itemListStyle=(0,a.setPosition)(0,e.axis)),n;var c=(0,a.getPosition)(r,e),d=(0,o.default)(c,"%",e.axis),f=e.transitionTime+"ms";return n.itemListStyle={WebkitTransform:d,msTransform:d,OTransform:d,transform:d},t.swiping||(n.itemListStyle=u(u({},n.itemListStyle),{},{WebkitTransitionDuration:f,MozTransitionDuration:f,OTransitionDuration:f,transitionDuration:f,msTransitionDuration:f})),n};t.slideSwipeAnimationHandler=function(e,t,n,r){var o={},l="horizontal"===t.axis,u=i.Children.count(t.children),s=(0,a.getPosition)(n.selectedItem,t),c=t.infiniteLoop?(0,a.getPosition)(u-1,t)-100:(0,a.getPosition)(u-1,t),d=l?e.x:e.y,f=d;0===s&&d>0&&(f=0),s===c&&d<0&&(f=0);var h=s+100/(n.itemSize/f),p=Math.abs(d)>t.swipeScrollTolerance;return t.infiniteLoop&&p&&(0===n.selectedItem&&h>-100?h-=100*u:n.selectedItem===u-1&&h<100*-u&&(h+=100*u)),(!t.preventMovementUntilSwipeScrollTolerance||p||n.swipeMovementStarted)&&(n.swipeMovementStarted||r({swipeMovementStarted:!0}),o.itemListStyle=(0,a.setPosition)(h,t.axis)),p&&!n.cancelClick&&r({cancelClick:!0}),o};t.slideStopSwipingHandler=function(e,t){var n=(0,a.getPosition)(t.selectedItem,e);return{itemListStyle:(0,a.setPosition)(n,e.axis)}};t.fadeAnimationHandler=function(e,t){var n=e.transitionTime+"ms",r="ease-in-out",i={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:r,msTransitionTimingFunction:r,MozTransitionTimingFunction:r,WebkitTransitionTimingFunction:r,OTransitionTimingFunction:r};return t.swiping||(i=u(u({},i),{},{WebkitTransitionDuration:n,MozTransitionDuration:n,OTransitionDuration:n,transitionDuration:n,msTransitionDuration:n})),{slideStyle:i,selectedStyle:u(u({},i),{},{opacity:1,position:"relative"}),prevStyle:u({},i)}}},52081:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(47313)),i=d(n(27730)),o=d(n(81868)),a=d(n(60956)),l=d(n(59054)),u=d(n(99367)),s=n(39850),c=n(79781);function d(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function h(e){return h="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},h(e)}function p(){return p=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},p.apply(this,arguments)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function 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 b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function y(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=k(e);if(t){var i=k(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(h,e);var t,n,d,f=y(h);function h(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),D(x(t=f.call(this,e)),"thumbsRef",void 0),D(x(t),"carouselWrapperRef",void 0),D(x(t),"listRef",void 0),D(x(t),"itemsRef",void 0),D(x(t),"timer",void 0),D(x(t),"animationHandler",void 0),D(x(t),"setThumbsRef",(function(e){t.thumbsRef=e})),D(x(t),"setCarouselWrapperRef",(function(e){t.carouselWrapperRef=e})),D(x(t),"setListRef",(function(e){t.listRef=e})),D(x(t),"setItemsRef",(function(e,n){t.itemsRef||(t.itemsRef=[]),t.itemsRef[n]=e})),D(x(t),"autoPlay",(function(){r.Children.count(t.props.children)<=1||(t.clearAutoPlay(),t.props.autoPlay&&(t.timer=setTimeout((function(){t.increment()}),t.props.interval)))})),D(x(t),"clearAutoPlay",(function(){t.timer&&clearTimeout(t.timer)})),D(x(t),"resetAutoPlay",(function(){t.clearAutoPlay(),t.autoPlay()})),D(x(t),"stopOnHover",(function(){t.setState({isMouseEntered:!0},t.clearAutoPlay)})),D(x(t),"startOnLeave",(function(){t.setState({isMouseEntered:!1},t.autoPlay)})),D(x(t),"isFocusWithinTheCarousel",(function(){return!!t.carouselWrapperRef&&!((0,l.default)().activeElement!==t.carouselWrapperRef&&!t.carouselWrapperRef.contains((0,l.default)().activeElement))})),D(x(t),"navigateWithKeyboard",(function(e){if(t.isFocusWithinTheCarousel()){var n="horizontal"===t.props.axis,r=n?37:38;(n?39:40)===e.keyCode?t.increment():r===e.keyCode&&t.decrement()}})),D(x(t),"updateSizes",(function(){if(t.state.initialized&&t.itemsRef&&0!==t.itemsRef.length){var e="horizontal"===t.props.axis,n=t.itemsRef[0];if(n){var r=e?n.clientWidth:n.clientHeight;t.setState({itemSize:r}),t.thumbsRef&&t.thumbsRef.updateSizes()}}})),D(x(t),"setMountState",(function(){t.setState({hasMount:!0}),t.updateSizes()})),D(x(t),"handleClickItem",(function(e,n){0!==r.Children.count(t.props.children)&&(t.state.cancelClick?t.setState({cancelClick:!1}):(t.props.onClickItem(e,n),e!==t.state.selectedItem&&t.setState({selectedItem:e})))})),D(x(t),"handleOnChange",(function(e,n){r.Children.count(t.props.children)<=1||t.props.onChange(e,n)})),D(x(t),"handleClickThumb",(function(e,n){t.props.onClickThumb(e,n),t.moveTo(e)})),D(x(t),"onSwipeStart",(function(e){t.setState({swiping:!0}),t.props.onSwipeStart(e)})),D(x(t),"onSwipeEnd",(function(e){t.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),t.props.onSwipeEnd(e),t.clearAutoPlay(),t.state.autoPlay&&t.autoPlay()})),D(x(t),"onSwipeMove",(function(e,n){t.props.onSwipeMove(n);var r=t.props.swipeAnimationHandler(e,t.props,t.state,t.setState.bind(x(t)));return t.setState(g({},r)),!!Object.keys(r).length})),D(x(t),"decrement",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem-("number"===typeof e?e:1))})),D(x(t),"increment",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem+("number"===typeof e?e:1))})),D(x(t),"moveTo",(function(e){if("number"===typeof e){var n=r.Children.count(t.props.children)-1;e<0&&(e=t.props.infiniteLoop?n:0),e>n&&(e=t.props.infiniteLoop?0:n),t.selectItem({selectedItem:e}),t.state.autoPlay&&!1===t.state.isMouseEntered&&t.resetAutoPlay()}})),D(x(t),"onClickNext",(function(){t.increment(1)})),D(x(t),"onClickPrev",(function(){t.decrement(1)})),D(x(t),"onSwipeForward",(function(){t.increment(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),D(x(t),"onSwipeBackwards",(function(){t.decrement(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),D(x(t),"changeItem",(function(e){return function(n){(0,s.isKeyboardEvent)(n)&&"Enter"!==n.key||t.moveTo(e)}})),D(x(t),"selectItem",(function(e){t.setState(g({previousItem:t.state.selectedItem},e),(function(){t.setState(t.animationHandler(t.props,t.state))})),t.handleOnChange(e.selectedItem,r.Children.toArray(t.props.children)[e.selectedItem])})),D(x(t),"getInitialImage",(function(){var e=t.props.selectedItem,n=t.itemsRef&&t.itemsRef[e];return(n&&n.getElementsByTagName("img")||[])[0]})),D(x(t),"getVariableItemHeight",(function(e){var n=t.itemsRef&&t.itemsRef[e];if(t.state.hasMount&&n&&n.children.length){var r=n.children[0].getElementsByTagName("img")||[];if(r.length>0){var i=r[0];if(!i.complete){i.addEventListener("load",(function e(){t.forceUpdate(),i.removeEventListener("load",e)}))}}var o=(r[0]||n.children[0]).clientHeight;return o>0?o:null}return null}));var n={initialized:!1,previousItem:e.selectedItem,selectedItem:e.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:e.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return t.animationHandler="function"===typeof e.animationHandler&&e.animationHandler||"fade"===e.animationHandler&&c.fadeAnimationHandler||c.slideAnimationHandler,t.state=g(g({},n),t.animationHandler(e,n)),t}return t=h,(n=[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(e,t){e.children||!this.props.children||this.state.initialized||this.setupCarousel(),!e.autoFocus&&this.props.autoFocus&&this.forceFocus(),t.swiping&&!this.state.swiping&&this.setState(g({},this.props.stopSwipingHandler(this.props,this.state))),e.selectedItem===this.props.selectedItem&&e.centerMode===this.props.centerMode||(this.updateSizes(),this.moveTo(this.props.selectedItem)),e.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var e=this;this.bindEvents(),this.state.autoPlay&&r.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},(function(){var t=e.getInitialImage();t&&!t.complete?t.addEventListener("load",e.setMountState):e.setMountState()}))}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.addEventListener("mouseenter",this.stopOnHover),e.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.removeEventListener("mouseenter",this.stopOnHover),e.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,l.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var e=this.getInitialImage();e&&e.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,l.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var e;null===(e=this.carouselWrapperRef)||void 0===e||e.focus()}},{key:"renderItems",value:function(e){var t=this;return this.props.children?r.Children.map(this.props.children,(function(n,i){var a=i===t.state.selectedItem,l=i===t.state.previousItem,u=a&&t.state.selectedStyle||l&&t.state.prevStyle||t.state.slideStyle||{};t.props.centerMode&&"horizontal"===t.props.axis&&(u=g(g({},u),{},{minWidth:t.props.centerSlidePercentage+"%"})),t.state.swiping&&t.state.swipeMovementStarted&&(u=g(g({},u),{},{pointerEvents:"none"}));var s={ref:function(e){return t.setItemsRef(e,i)},key:"itemKey"+i+(e?"clone":""),className:o.default.ITEM(!0,i===t.state.selectedItem,i===t.state.previousItem),onClick:t.handleClickItem.bind(t,i,n),style:u};return r.default.createElement("li",s,t.props.renderItem(n,{isSelected:i===t.state.selectedItem,isPrevious:i===t.state.previousItem}))})):[]}},{key:"renderControls",value:function(){var e=this,t=this.props,n=t.showIndicators,i=t.labels,o=t.renderIndicator,a=t.children;return n?r.default.createElement("ul",{className:"control-dots"},r.Children.map(a,(function(t,n){return o&&o(e.changeItem(n),n===e.state.selectedItem,n,i.item)}))):null}},{key:"renderStatus",value:function(){return this.props.showStatus?r.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,r.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==r.Children.count(this.props.children)?r.default.createElement(a.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var e=this;if(!this.props.children||0===r.Children.count(this.props.children))return null;var t=this.props.swipeable&&r.Children.count(this.props.children)>1,n="horizontal"===this.props.axis,a=this.props.showArrows&&r.Children.count(this.props.children)>1,l=a&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,u=a&&(this.state.selectedItem<r.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,s=this.renderItems(!0),c=s.shift(),d=s.pop(),f={className:o.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},h={};if(n){if(f.onSwipeLeft=this.onSwipeForward,f.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var v=this.getVariableItemHeight(this.state.selectedItem);h.height=v||"auto"}}else f.onSwipeUp="natural"===this.props.verticalSwipe?this.onSwipeBackwards:this.onSwipeForward,f.onSwipeDown="natural"===this.props.verticalSwipe?this.onSwipeForward:this.onSwipeBackwards,f.style=g(g({},f.style),{},{height:this.state.itemSize}),h.height=this.state.itemSize;return r.default.createElement("div",{"aria-label":this.props.ariaLabel,className:o.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},r.default.createElement("div",{className:o.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,l,this.props.labels.leftArrow),r.default.createElement("div",{className:o.default.WRAPPER(!0,this.props.axis),style:h},t?r.default.createElement(i.default,p({tagName:"ul",innerRef:this.setListRef},f,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&d,this.renderItems(),this.props.infiniteLoop&&c):r.default.createElement("ul",{className:o.default.SLIDER(!0,this.state.swiping),ref:function(t){return e.setListRef(t)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&d,this.renderItems(),this.props.infiniteLoop&&c)),this.props.renderArrowNext(this.onClickNext,u,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}])&&m(t.prototype,n),d&&m(t,d),h}(r.default.Component);t.default=C,D(C,"displayName","Carousel"),D(C,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:s.noop,onClickThumb:s.noop,onChange:s.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(e,t,n){return r.default.createElement("button",{type:"button","aria-label":n,className:o.default.ARROW_PREV(!t),onClick:e})},renderArrowNext:function(e,t,n){return r.default.createElement("button",{type:"button","aria-label":n,className:o.default.ARROW_NEXT(!t),onClick:e})},renderIndicator:function(e,t,n,i){return r.default.createElement("li",{className:o.default.DOT(t),onClick:e,onKeyDown:e,value:n,key:n,role:"button",tabIndex:0,"aria-label":"".concat(i," ").concat(n+1)})},renderItem:function(e){return e},renderThumbs:function(e){var t=r.Children.map(e,(function(e){var t=e;if("img"!==e.type&&(t=r.Children.toArray(e.props.children).find((function(e){return"img"===e.type}))),t)return t}));return 0===t.filter((function(e){return e})).length?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):t},statusFormatter:s.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler})},19406:function(){},39850:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPosition=t.getPosition=t.isKeyboardEvent=t.defaultStatusFormatter=t.noop=void 0;var r,i=n(47313),o=(r=n(69400))&&r.__esModule?r:{default:r};t.noop=function(){};t.defaultStatusFormatter=function(e,t){return"".concat(e," of ").concat(t)};t.isKeyboardEvent=function(e){return!!e&&e.hasOwnProperty("key")};t.getPosition=function(e,t){if(t.infiniteLoop&&++e,0===e)return 0;var n=i.Children.count(t.children);if(t.centerMode&&"horizontal"===t.axis){var r=-e*t.centerSlidePercentage,o=n-1;return e&&(e!==o||t.infiniteLoop)?r+=(100-t.centerSlidePercentage)/2:e===o&&(r+=100-t.centerSlidePercentage),r}return 100*-e};t.setPosition=function(e,t){var n={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(r){n[r]=(0,o.default)(e,"%",t)})),n}},60956:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=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 i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(47313)),i=s(n(81868)),o=n(41806),a=s(n(69400)),l=s(n(27730)),u=s(n(99367));function s(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},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(){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 h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function v(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=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==d(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 b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=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&&p(e,t)}(d,e);var t,n,s,c=v(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),y(m(t=c.call(this,e)),"itemsWrapperRef",void 0),y(m(t),"itemsListRef",void 0),y(m(t),"thumbsRef",void 0),y(m(t),"setItemsWrapperRef",(function(e){t.itemsWrapperRef=e})),y(m(t),"setItemsListRef",(function(e){t.itemsListRef=e})),y(m(t),"setThumbsRef",(function(e,n){t.thumbsRef||(t.thumbsRef=[]),t.thumbsRef[n]=e})),y(m(t),"updateSizes",(function(){if(t.props.children&&t.itemsWrapperRef&&t.thumbsRef){var e=r.Children.count(t.props.children),n=t.itemsWrapperRef.clientWidth,i=t.props.thumbWidth?t.props.thumbWidth:(0,o.outerWidth)(t.thumbsRef[0]),a=Math.floor(n/i),l=a<e,u=l?e-a:0;t.setState((function(e,n){return{itemSize:i,visibleItems:a,firstItem:l?t.getFirstItem(n.selectedItem):0,lastPosition:u,showArrows:l}}))}})),y(m(t),"handleClickItem",(function(e,n,r){if(!function(e){return e.hasOwnProperty("key")}(r)||"Enter"===r.key){var i=t.props.onSelectItem;"function"===typeof i&&i(e,n)}})),y(m(t),"onSwipeStart",(function(){t.setState({swiping:!0})})),y(m(t),"onSwipeEnd",(function(){t.setState({swiping:!1})})),y(m(t),"onSwipeMove",(function(e){var n=e.x;if(!t.state.itemSize||!t.itemsWrapperRef||!t.state.visibleItems)return!1;var i=r.Children.count(t.props.children),o=-100*t.state.firstItem/t.state.visibleItems;0===o&&n>0&&(n=0),o===100*-Math.max(i-t.state.visibleItems,0)/t.state.visibleItems&&n<0&&(n=0);var l=o+100/(t.itemsWrapperRef.clientWidth/n);return t.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(e){t.itemsListRef.style[e]=(0,a.default)(l,"%",t.props.axis)})),!0})),y(m(t),"slideRight",(function(e){t.moveTo(t.state.firstItem-("number"===typeof e?e:1))})),y(m(t),"slideLeft",(function(e){t.moveTo(t.state.firstItem+("number"===typeof e?e:1))})),y(m(t),"moveTo",(function(e){e=(e=e<0?0:e)>=t.state.lastPosition?t.state.lastPosition:e,t.setState({firstItem:e})})),t.state={selectedItem:e.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},t}return t=d,(n=[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(e){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==e.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(e){var t=e;return e>=this.state.lastPosition&&(t=this.state.lastPosition),e<this.state.firstItem+this.state.visibleItems&&(t=this.state.firstItem),e<this.state.firstItem&&(t=e),t}},{key:"renderItems",value:function(){var e=this;return this.props.children.map((function(t,n){var o=i.default.ITEM(!1,n===e.state.selectedItem),a={key:n,ref:function(t){return e.setThumbsRef(t,n)},className:o,onClick:e.handleClickItem.bind(e,n,e.props.children[n]),onKeyDown:e.handleClickItem.bind(e,n,e.props.children[n]),"aria-label":"".concat(e.props.labels.item," ").concat(n+1),style:{width:e.props.thumbWidth}};return r.default.createElement("li",f({},a,{role:"button",tabIndex:0}),t)}))}},{key:"render",value:function(){var e=this;if(!this.props.children)return null;var t,n=r.Children.count(this.props.children)>1,o=this.state.showArrows&&this.state.firstItem>0,u=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,s=-this.state.firstItem*(this.state.itemSize||0),c=(0,a.default)(s,"px",this.props.axis),d=this.props.transitionTime+"ms";return t={WebkitTransform:c,MozTransform:c,MsTransform:c,OTransform:c,transform:c,msTransform:c,WebkitTransitionDuration:d,MozTransitionDuration:d,MsTransitionDuration:d,OTransitionDuration:d,transitionDuration:d,msTransitionDuration:d},r.default.createElement("div",{className:i.default.CAROUSEL(!1)},r.default.createElement("div",{className:i.default.WRAPPER(!1),ref:this.setItemsWrapperRef},r.default.createElement("button",{type:"button",className:i.default.ARROW_PREV(!o),onClick:function(){return e.slideRight()},"aria-label":this.props.labels.leftArrow}),n?r.default.createElement(l.default,{tagName:"ul",className:i.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:t,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):r.default.createElement("ul",{className:i.default.SLIDER(!1,this.state.swiping),ref:function(t){return e.setItemsListRef(t)},style:t},this.renderItems()),r.default.createElement("button",{type:"button",className:i.default.ARROW_NEXT(!u),onClick:function(){return e.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}])&&h(t.prototype,n),s&&h(t,s),d}(r.Component);t.default=w,y(w,"displayName","Thumbs"),y(w,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350})},81868:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(46123))&&r.__esModule?r:{default:r};var o={ROOT:function(e){return(0,i.default)(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({"carousel-root":!0},e||"",!!e))},CAROUSEL:function(e){return(0,i.default)({carousel:!0,"carousel-slider":e})},WRAPPER:function(e,t){return(0,i.default)({"thumbs-wrapper":!e,"slider-wrapper":e,"axis-horizontal":"horizontal"===t,"axis-vertical":"horizontal"!==t})},SLIDER:function(e,t){return(0,i.default)({thumbs:!e,slider:e,animated:!t})},ITEM:function(e,t,n){return(0,i.default)({thumb:!e,slide:e,selected:t,previous:n})},ARROW_PREV:function(e){return(0,i.default)({"control-arrow control-prev":!0,"control-disabled":e})},ARROW_NEXT:function(e){return(0,i.default)({"control-arrow control-next":!0,"control-disabled":e})},DOT:function(e){return(0,i.default)({dot:!0,selected:e})}};t.default=o},41806:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outerWidth=void 0;t.outerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseInt(n.marginLeft)+parseInt(n.marginRight)}},2655:function(e,t,n){"use strict";Object.defineProperty(t,"lr",{enumerable:!0,get:function(){return r.default}});var r=a(n(52081)),i=n(19406),o=a(n(60956));function a(e){return e&&e.__esModule?e:{default:e}}},59054:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return document}},99367:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return window}},17076:function(e,t,n){var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(e){return l(s(e),arguments)}function a(e,t){return o.apply(null,[e].concat(t||[]))}function l(e,t){var n,r,a,l,u,s,c,d,f,h=1,p=e.length,v="";for(r=0;r<p;r++)if("string"===typeof e[r])v+=e[r];else if("object"===typeof e[r]){if((l=e[r]).keys)for(n=t[h],a=0;a<l.keys.length;a++){if(void 0==n)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[a],l.keys[a-1]));n=n[l.keys[a]]}else n=l.param_no?t[l.param_no]:t[h++];if(i.not_type.test(l.type)&&i.not_primitive.test(l.type)&&n instanceof Function&&(n=n()),i.numeric_arg.test(l.type)&&"number"!==typeof n&&isNaN(n))throw new TypeError(o("[sprintf] expecting number but found %T",n));switch(i.number.test(l.type)&&(d=n>=0),l.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,l.width?parseInt(l.width):0);break;case"e":n=l.precision?parseFloat(n).toExponential(l.precision):parseFloat(n).toExponential();break;case"f":n=l.precision?parseFloat(n).toFixed(l.precision):parseFloat(n);break;case"g":n=l.precision?String(Number(n.toPrecision(l.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=l.precision?n.substring(0,l.precision):n;break;case"t":n=String(!!n),n=l.precision?n.substring(0,l.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=l.precision?n.substring(0,l.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=l.precision?n.substring(0,l.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(l.type)?v+=n:(!i.number.test(l.type)||d&&!l.sign?f="":(f=d?"+":"-",n=n.toString().replace(i.sign,"")),s=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",c=l.width-(f+n).length,u=l.width&&c>0?s.repeat(c):"",v+=l.align?f+n+u:"0"===s?f+u+n:u+f+n)}return v}var u=Object.create(null);function s(e){if(u[e])return u[e];for(var t,n=e,r=[],o=0;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var a=[],l=t[2],s=[];if(null===(s=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(s[1]);""!==(l=l.substring(s[0].length));)if(null!==(s=i.key_access.exec(l)))a.push(s[1]);else{if(null===(s=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(s[1])}t[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return u[e]=r}t.sprintf=o,t.vsprintf=a,"undefined"!==typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(r=function(){return{sprintf:o,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},47288:function(){},43509:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var r=n(29439),i=n(47313);var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=function(){var e=Array.prototype.slice.call(arguments).filter(Boolean),t={},n=[];e.forEach((function(e){(e?e.split(" "):[]).forEach((function(e){if(e.startsWith("atm_")){var i=e.split("_"),o=(0,r.Z)(i,2)[1];t[o]=e}else n.push(e)}))}));var i=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&i.push(t[o]);return i.push.apply(i,n),i.join(" ")},u=function(e,t){var n={};return Object.keys(e).filter(function(e){return function(t){return-1===e.indexOf(t)}}(t)).forEach((function(t){n[t]=e[t]})),n};var s=function(e,t){if(!("string"===typeof e||"number"===typeof e&&isFinite(e))){var n="object"===typeof e?JSON.stringify(e):String(e);console.warn("An interpolation evaluated to '".concat(n,"' in the component '").concat(t,"', which is probably a mistake. You should explicitly cast or transform the value to a string."))}};var c=new Proxy((function(e){return function(t){if(Array.isArray(t))throw new Error('Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup');var n=function(n,r){var o=n.as,c=void 0===o?e:o,d=n.class,f=function(e,t,n){var r,i=u(t,n);return"string"===typeof e&&-1===e.indexOf("-")&&(r=e[0]).toUpperCase()!==r&&Object.keys(i).forEach((function(e){a(e)||delete i[e]})),i}(c,n,["as","class"]);f.ref=r,f.className=t.atomic?l(t.class,f.className||d):l(f.className||d,t.class);var h=t.vars;if(h){var p={};for(var v in h){var g=h[v],m=g[0],b=g[1]||"",y="function"===typeof m?m(n):m;s(y,t.name),p["--".concat(v)]="".concat(y).concat(b)}var w=f.style||{},x=Object.keys(w);x.length>0&&x.forEach((function(e){p[e]=w[e]})),f.style=p}return e.__linaria&&e!==c?(f.as=c,i.createElement(e,f)):i.createElement(c,f)},r=i.forwardRef?i.forwardRef(n):function(e){var t=u(e,["innerRef"]);return n(t,e.innerRef)};return r.displayName=t.name,r.__linaria={className:t.class,extends:e},r}}),{get:function(e,t){return e(t)}})},91719:function(e,t,n){"use strict";n.d(t,{Bn:function(){return Qt}});var r=n(74165),i=n(15861),o=n(45987),a=n(93433),l=n(37762),u=n(29439),s=n(1413),c=n(43509),d=n(56130),f=n(47313),h=n(87462),p=n(30686),v=n(30168),g=n(71002),m=n(15671),b=n(43144),y=n(60136),w=n(4942),x=n(1168);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function S(e,t){return!t||"object"!==typeof 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 F(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S(this,n)}}var M=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],A=function(){};function Z(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function R(e,t,n){var r=[n];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(Z(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var I=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,g.Z)(e)&&null!==e?[e]:[];var t},O=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,C({},(0,o.Z)(e,M))};function P(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function T(e){return P(e)?window.pageYOffset:e.scrollTop}function H(e,t){P(e)?window.scrollTo(0,t):e.scrollTop=t}function L(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A,i=T(e),o=t-i,a=10,l=0;function u(){var t=L(l+=a,i,o,n);H(e,t),l<n?window.requestAnimationFrame(u):r(e)}u()}function B(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var _=!1,N={get passive(){return _=!0}},V="undefined"!==typeof window?window:{};V.addEventListener&&V.removeEventListener&&(V.addEventListener("p",A,N),V.removeEventListener("p",A,!1));var W=_;function j(e){return null!=e}function U(e,t,n){return e?t:n}function X(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,l=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;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 document.documentElement}(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c,d=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),h=f.bottom,p=f.height,v=f.top,g=n.offsetParent.getBoundingClientRect().top,m=a?window.innerHeight:P(c=u)?window.innerHeight:c.clientHeight,b=T(u),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,k=m-v,D=x+b,C=d-b-v,E=h-m+b+y,S=b+v-w,F=160;switch(i){case"auto":case"bottom":if(k>=p)return{placement:"bottom",maxHeight:t};if(C>=p&&!a)return o&&z(u,E,F),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&k>=r)return o&&z(u,E,F),{placement:"bottom",maxHeight:a?k-y:C-y};if("auto"===i||a){var M=t,A=a?x:D;return A>=r&&(M=Math.min(A-y-l.controlHeight,t)),{placement:"top",maxHeight:M}}if("bottom"===i)return o&&H(u,E),{placement:"bottom",maxHeight:t};break;case"top":if(x>=p)return{placement:"top",maxHeight:t};if(D>=p&&!a)return o&&z(u,S,F),{placement:"top",maxHeight:t};if(!a&&D>=r||a&&x>=r){var Z=t;return(!a&&D>=r||a&&x>=r)&&(Z=a?x-w:D-w),o&&z(u,S,F),{placement:"top",maxHeight:Z}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return s}var Y=function(e){return"auto"===e?"bottom":e},K=(0,f.createContext)({getPortalPlacement:null}),$=function(e){(0,y.Z)(n,e);var t=F(n);function n(){var e;(0,m.Z)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,a=n.menuPosition,l=n.menuShouldScrollIntoView,u=n.theme;if(t){var s="fixed"===a,c=X({maxHeight:i,menuEl:t,minHeight:r,placement:o,shouldScroll:l&&!s,isFixedPosition:s,theme:u}),d=e.context.getPortalPlacement;d&&d(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Y(t);return C(C({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return(0,b.Z)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(f.Component);$.contextType=K;var G=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"}},q=G,Q=G,J=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return(0,p.tZ)("div",(0,h.Z)({css:i("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};J.defaultProps={children:"No options"};var ee=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return(0,p.tZ)("div",(0,h.Z)({css:i("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};ee.defaultProps={children:"Loading..."};var te,ne=function(e){(0,y.Z)(n,e);var t=F(n);function n(){var e;(0,m.Z)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Y(e.props.menuPlacement)&&e.setState({placement:n})},e}return(0,b.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,i=e.controlElement,o=e.cx,a=e.innerProps,l=e.menuPlacement,u=e.menuPosition,s=e.getStyles,c="fixed"===u;if(!t&&!c||!i)return null;var d=this.state.placement||Y(l),f=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}}(i),v=c?0:window.pageYOffset,g={offset:f[d]+v,position:u,rect:f},m=(0,p.tZ)("div",(0,h.Z)({css:s("menuPortal",g),className:o({"menu-portal":!0},r)},a),n);return(0,p.tZ)(K.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,x.createPortal)(m,t):m)}}]),n}(f.Component),re=["size"];var ie={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},oe=function(e){var t=e.size,n=(0,o.Z)(e,re);return(0,p.tZ)("svg",(0,h.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ie},n))},ae=function(e){return(0,p.tZ)(oe,(0,h.Z)({size:20},e),(0,p.tZ)("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"}))},le=function(e){return(0,p.tZ)(oe,(0,h.Z)({size:20},e),(0,p.tZ)("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"}))},ue=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},se=ue,ce=ue,de=(0,p.F4)(te||(te=(0,v.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),fe=function(e){var t=e.delay,n=e.offset;return(0,p.tZ)("span",{css:(0,p.iv)({animation:"".concat(de," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","","","")})},he=function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.isRtl;return(0,p.tZ)("div",(0,h.Z)({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},i),(0,p.tZ)(fe,{delay:0,offset:o}),(0,p.tZ)(fe,{delay:160,offset:!0}),(0,p.tZ)(fe,{delay:320,offset:!o}))};he.defaultProps={size:4};var pe=["data"],ve=["innerRef","isDisabled","isHidden","inputClassName"],ge={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},me={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":C({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ge)},be=function(e){return C({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ge)},ye=function(e){var t=e.children,n=e.innerProps;return(0,p.tZ)("div",n,t)};var we={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return(0,p.tZ)("div",(0,h.Z)({css:i("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},o),t||(0,p.tZ)(ae,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.className,o=e.isDisabled,a=e.isFocused,l=e.innerRef,u=e.innerProps,s=e.menuIsOpen;return(0,p.tZ)("div",(0,h.Z)({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":a,"control--menu-is-open":s},i)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return(0,p.tZ)("div",(0,h.Z)({css:i("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},o),t||(0,p.tZ)(le,null))},DownChevron:le,CrossIcon:ae,Group:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.Heading,a=e.headingProps,l=e.innerProps,u=e.label,s=e.theme,c=e.selectProps;return(0,p.tZ)("div",(0,h.Z)({css:i("group",e),className:r({group:!0},n)},l),(0,p.tZ)(o,(0,h.Z)({},a,{selectProps:c,theme:s,getStyles:i,cx:r}),u),(0,p.tZ)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,i=O(e);i.data;var a=(0,o.Z)(i,pe);return(0,p.tZ)("div",(0,h.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},r)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,o=e.getStyles;return(0,p.tZ)("div",(0,h.Z)({css:o("indicatorsContainer",e),className:r({indicators:!0},n)},i),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return(0,p.tZ)("span",(0,h.Z)({},i,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.value,a=O(e),l=a.innerRef,u=a.isDisabled,s=a.isHidden,c=a.inputClassName,d=(0,o.Z)(a,ve);return(0,p.tZ)("div",{className:n({"input-container":!0},t),css:r("input",e),"data-value":i||""},(0,p.tZ)("input",(0,h.Z)({className:n({input:!0},c),ref:l,style:be(s),disabled:u},d)))},LoadingIndicator:he,Menu:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerRef,a=e.innerProps;return(0,p.tZ)("div",(0,h.Z)({css:i("menu",e),className:r({menu:!0},n),ref:o},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps,a=e.innerRef,l=e.isMulti;return(0,p.tZ)("div",(0,h.Z)({css:i("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":l},n),ref:a},o),t)},MenuPortal:ne,LoadingMessage:ee,NoOptionsMessage:J,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,o=e.data,a=e.getStyles,l=e.innerProps,u=e.isDisabled,s=e.removeProps,c=e.selectProps,d=r.Container,f=r.Label,h=r.Remove;return(0,p.tZ)(p.ms,null,(function(r){var v=r.css,g=r.cx;return(0,p.tZ)(d,{data:o,innerProps:C({className:g(v(a("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":u},n))},l),selectProps:c},(0,p.tZ)(f,{data:o,innerProps:{className:g(v(a("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:c},t),(0,p.tZ)(h,{data:o,innerProps:C({className:g(v(a("multiValueRemove",e)),i({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},s),selectProps:c}))}))},MultiValueContainer:ye,MultiValueLabel:ye,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,p.tZ)("div",(0,h.Z)({role:"button"},n),t||(0,p.tZ)(ae,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,a=e.isFocused,l=e.isSelected,u=e.innerRef,s=e.innerProps;return(0,p.tZ)("div",(0,h.Z)({css:i("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":a,"option--is-selected":l},n),ref:u,"aria-disabled":o},s),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return(0,p.tZ)("div",(0,h.Z)({css:i("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps,a=e.isDisabled,l=e.isRtl;return(0,p.tZ)("div",(0,h.Z)({css:i("container",e),className:r({"--is-disabled":a,"--is-rtl":l},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,a=e.innerProps;return(0,p.tZ)("div",(0,h.Z)({css:i("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.innerProps,o=e.isMulti,a=e.getStyles,l=e.hasValue;return(0,p.tZ)("div",(0,h.Z)({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l},n)},i),t)}},xe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var ke=n(16912);for(var De={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ce=function(e){return(0,p.tZ)("span",(0,h.Z)({css:De},e))},Ee={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,l=e.isDisabled,u=e.isSelected,s=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(s(a,n),".");if("menu"===t){var c=l?" disabled":"",d="".concat(u?"selected":"focused").concat(c);return"option ".concat(o," ").concat(d,", ").concat(s(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Se=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,l=e.selectProps,u=e.id,s=l.ariaLiveMessages,c=l.getOptionLabel,d=l.inputValue,h=l.isMulti,v=l.isOptionDisabled,g=l.isSearchable,m=l.menuIsOpen,b=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,x=l["aria-label"],k=l["aria-live"],D=(0,f.useMemo)((function(){return C(C({},Ee),s||{})}),[s]),E=(0,f.useMemo)((function(){var e,n="";if(t&&D.onChange){var r=t.option,i=t.options,o=t.removedValue,l=t.removedValues,u=t.value,s=o||r||(e=u,Array.isArray(e)?null:e),d=s?c(s):"",f=i||l||void 0,h=f?f.map(c):[],p=C({isDisabled:s&&v(s,a),label:d,labels:h},t);n=D.onChange(p)}return n}),[t,D,v,a,c]),S=(0,f.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&D.onFocus){var o={focused:t,label:c(t),isDisabled:v(t,a),isSelected:i,options:b,context:t===n?"menu":"value",selectValue:a};e=D.onFocus(o)}return e}),[n,r,c,v,D,b,a]),F=(0,f.useMemo)((function(){var e="";if(m&&b.length&&D.onFilter){var t=y({count:i.length});e=D.onFilter({inputValue:d,resultsMessage:t})}return e}),[i,d,m,D,b,y]),M=(0,f.useMemo)((function(){var e="";if(D.guidance){var t=r?"value":m?"menu":"input";e=D.guidance({"aria-label":x,context:t,isDisabled:n&&v(n,a),isMulti:h,isSearchable:g,tabSelectsValue:w})}return e}),[x,n,r,h,v,g,m,D,a,w]),A="".concat(S," ").concat(F," ").concat(M),Z=(0,p.tZ)(f.Fragment,null,(0,p.tZ)("span",{id:"aria-selection"},E),(0,p.tZ)("span",{id:"aria-context"},A)),R="initial-input-focus"===(null===t||void 0===t?void 0:t.action);return(0,p.tZ)(f.Fragment,null,(0,p.tZ)(Ce,{id:u},R&&Z),(0,p.tZ)(Ce,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text"},o&&!R&&Z))},Fe=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],Me=new RegExp("["+Fe.map((function(e){return e.letters})).join("")+"]","g"),Ae={},Ze=0;Ze<Fe.length;Ze++)for(var Re=Fe[Ze],Ie=0;Ie<Re.letters.length;Ie++)Ae[Re.letters[Ie]]=Re.base;var Oe=function(e){return e.replace(Me,(function(e){return Ae[e]}))},Pe=(0,ke.Z)(Oe),Te=function(e){return e.replace(/^\s+|\s+$/g,"")},He=function(e){return"".concat(e.label," ").concat(e.value)},Le=["innerRef"];function ze(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object.entries(e).filter((function(e){var t=(0,u.Z)(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=(0,u.Z)(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}((0,o.Z)(e,Le),"onExited","in","enter","exit","appear");return(0,p.tZ)("input",(0,h.Z)({ref:t},n,{css:(0,p.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","","","")}))}var Be=["boxSizing","height","overflow","paddingRight","position"],_e={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ne(e){e.preventDefault()}function Ve(e){e.stopPropagation()}function We(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function je(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ue=!("undefined"===typeof window||!window.document||!window.document.createElement),Xe=0,Ye={capture:!1,passive:!1};var Ke=function(){return document.activeElement&&document.activeElement.blur()},$e={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ge(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=(0,f.useRef)(!1),l=(0,f.useRef)(!1),u=(0,f.useRef)(0),s=(0,f.useRef)(null),c=(0,f.useCallback)((function(e,t){if(null!==s.current){var u=s.current,c=u.scrollTop,d=u.scrollHeight,f=u.clientHeight,h=s.current,p=t>0,v=d-f-c,g=!1;v>t&&a.current&&(r&&r(e),a.current=!1),p&&l.current&&(o&&o(e),l.current=!1),p&&t>v?(n&&!a.current&&n(e),h.scrollTop=d,g=!0,a.current=!0):!p&&-t>c&&(i&&!l.current&&i(e),h.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,o]),d=(0,f.useCallback)((function(e){c(e,e.deltaY)}),[c]),h=(0,f.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),p=(0,f.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;c(e,t)}),[c]),v=(0,f.useCallback)((function(e){if(e){var t=!!W&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",p,t)}}),[p,h,d]),g=(0,f.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",p,!1))}),[p,h,d]);return(0,f.useEffect)((function(){if(t){var e=s.current;return v(e),function(){g(e)}}}),[t,v,g]),function(e){s.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,f.useRef)({}),o=(0,f.useRef)(null),a=(0,f.useCallback)((function(e){if(Ue){var t=document.body,n=t&&t.style;if(r&&Be.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Xe<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+o||0;Object.keys(_e).forEach((function(e){var t=_e[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&je()&&(t.addEventListener("touchmove",Ne,Ye),e&&(e.addEventListener("touchstart",We,Ye),e.addEventListener("touchmove",Ve,Ye))),Xe+=1}}),[r]),l=(0,f.useCallback)((function(e){if(Ue){var t=document.body,n=t&&t.style;Xe=Math.max(Xe-1,0),r&&Xe<1&&Be.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&je()&&(t.removeEventListener("touchmove",Ne,Ye),e&&(e.removeEventListener("touchstart",We,Ye),e.removeEventListener("touchmove",Ve,Ye)))}}),[r]);return(0,f.useEffect)((function(){if(t){var e=o.current;return a(e),function(){l(e)}}}),[t,a,l]),function(e){o.current=e}}({isEnabled:n});return(0,p.tZ)(f.Fragment,null,n&&(0,p.tZ)("div",{onClick:Ke,css:$e}),t((function(e){i(e),o(e)})))}var qe={clearIndicator:ce,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},dropdownIndicator:se,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,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.value,r=e.theme,i=r.spacing,o=r.colors;return C({margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80,transform:n?"translateZ(0)":""},me)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Q,menu:function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return t={label:"menu"},(0,w.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,w.Z)(t,"backgroundColor",a.neutral0),(0,w.Z)(t,"borderRadius",i),(0,w.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,w.Z)(t,"marginBottom",o.menuGutter),(0,w.Z)(t,"marginTop",o.menuGutter),(0,w.Z)(t,"position","absolute"),(0,w.Z)(t,"width","100%"),(0,w.Z)(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,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?i.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:q,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.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*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Qe,Je={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}},et={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:B(),captureMenuScroll:!B(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=C({ignoreCase:!0,ignoreAccents:!0,stringify:He,trim:!0,matchFrom:"any"},Qe),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,l=n.matchFrom,u=a?Te(t):t,s=a?Te(o(e)):o(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),i&&(u=Pe(u),s=Oe(s)),"start"===l?s.substr(0,u.length)===u:s.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function tt(e,t,n,r){return{type:"option",data:t,isDisabled:lt(e,t,n),isSelected:ut(e,t,n),label:ot(e,t),value:at(e,t),index:r}}function nt(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return tt(e,n,t,r)})).filter((function(t){return it(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=tt(e,n,t,r);return it(e,o)?o:void 0})).filter(j)}function rt(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,a.Z)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function it(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,l=t.value;return(!ct(e)||!o)&&st(e,{label:a,value:l,data:i},r)}var ot=function(e,t){return e.getOptionLabel(t)},at=function(e,t){return e.getOptionValue(t)};function lt(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ut(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=at(e,t);return n.some((function(t){return at(e,t)===r}))}function st(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ct=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},dt=1,ft=function(e){(0,y.Z)(n,e);var t=F(n);function n(e){var r;return(0,m.Z)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,l=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:l}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,l=r.state.selectValue,u=i&&r.isOptionSelected(e,l),s=r.isOptionDisabled(e,l);if(u){var c=r.getOptionValue(e);r.setValue(l.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat((0,a.Z)(l),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter((function(e){return r.getOptionValue(e)!==i})),a=U(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(U(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=U(e,i,i[0]||null);r.onChange(o,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return R.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return ot(r.props,e)},r.getOptionValue=function(e){return at(r.props,e)},r.getStyles=function(e,t){var n=qe[e](t);n.boxSizing="border-box";var i=r.props.styles[e];return i?i(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,C(C({},we),e.components);var e},r.buildCategorizedOptions=function(){return nt(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return rt(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:C({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!r.props.isDisabled){var t=r.props,n=t.isMulti,i=t.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"===typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&P(e.target)&&r.props.onMenuClose():"function"===typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=i>5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return ct(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,l=t.isClearable,u=t.isDisabled,s=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,h=r.state,p=h.focusedOption,v=h.focusedValue,g=h.selectValue;if(!u&&("function"!==typeof c||(c(e),!e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)r.removeValue(v);else{if(!i)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!s||!d||!p||f&&r.isOptionSelected(p,g))return;r.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(s){if(!p)return;if(r.isComposing)return;r.selectOption(p);break}return;case"Escape":s?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):l&&o&&r.clearValue();break;case" ":if(a)return;if(!s){r.openMenu("first");break}if(!p)return;r.selectOption(p);break;case"ArrowUp":s?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":s?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!s)return;r.focusOption("pageup");break;case"PageDown":if(!s)return;r.focusOption("pagedown");break;case"Home":if(!s)return;r.focusOption("first");break;case"End":if(!s)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++dt),r.state.selectValue=I(e.value),r}return(0,b.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(!function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?H(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&H(e,Math.max(t.offsetTop-i,0))}(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var l=o.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(Je):C(C({},Je),this.props.theme):Je}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.selectOption,o=this.setValue,a=this.props,l=a.isMulti,u=a.isRtl,s=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:s,selectOption:i,selectProps:a,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return lt(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ut(this.props,e,t)}},{key:"filterOption",value:function(e,t){return st(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,l=e.menuIsOpen,u=this.getComponents().Input,s=this.state,c=s.inputIsHidden,d=s.ariaSelection,p=this.commonProps,v=r||this.getElementId("input"),g=C(C(C({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===d||void 0===d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?f.createElement(u,(0,h.Z)({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},g)):f.createElement(ze,(0,h.Z)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:A,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,u=this.commonProps,s=this.props,c=s.controlShouldRenderValue,d=s.isDisabled,p=s.isMulti,v=s.inputValue,g=s.placeholder,m=this.state,b=m.selectValue,y=m.focusedValue,w=m.isFocused;if(!this.hasValue()||!c)return v?null:f.createElement(l,(0,h.Z)({},u,{key:"placeholder",isDisabled:d,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(p)return b.map((function(t,a){var l=t===y,s="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return f.createElement(n,(0,h.Z)({},u,{components:{Container:r,Label:i,Remove:o},isFocused:l,isDisabled:d,key:s,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(v)return null;var x=b[0];return f.createElement(a,(0,h.Z)({},u,{data:x,isDisabled:d}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,(0,h.Z)({},t,{innerProps:a,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!e||!i)return null;return f.createElement(e,(0,h.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return f.createElement(n,(0,h.Z)({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,(0,h.Z)({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,o=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,s=t.Option,c=this.commonProps,d=this.state.focusedOption,p=this.props,v=p.captureMenuScroll,g=p.inputValue,m=p.isLoading,b=p.loadingMessage,y=p.minMenuHeight,w=p.maxMenuHeight,x=p.menuIsOpen,k=p.menuPlacement,D=p.menuPosition,C=p.menuPortalTarget,E=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,F=p.noOptionsMessage,M=p.onMenuScrollToTop,A=p.onMenuScrollToBottom;if(!x)return null;var Z,R=function(t,n){var r=t.type,i=t.data,o=t.isDisabled,a=t.isSelected,l=t.label,u=t.value,p=d===i,v=o?void 0:function(){return e.onOptionHover(i)},g=o?void 0:function(){return e.selectOption(i)},m="".concat(e.getElementId("option"),"-").concat(n),b={id:m,onClick:g,onMouseMove:v,onMouseOver:v,tabIndex:-1};return f.createElement(s,(0,h.Z)({},c,{innerProps:b,data:i,isDisabled:o,isSelected:a,key:m,label:l,type:r,value:u,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())Z=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,o=t.options,a=t.index,l="".concat(e.getElementId("group"),"-").concat(a),u="".concat(l,"-heading");return f.createElement(n,(0,h.Z)({},c,{key:l,data:i,options:o,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(m){var I=b({inputValue:g});if(null===I)return null;Z=f.createElement(l,c,I)}else{var O=F({inputValue:g});if(null===O)return null;Z=f.createElement(u,c,O)}var P={minMenuHeight:y,maxMenuHeight:w,menuPlacement:k,menuPosition:D,menuShouldScrollIntoView:S},T=f.createElement($,(0,h.Z)({},c,P),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,l=r.maxHeight;return f.createElement(i,(0,h.Z)({},c,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:a}),f.createElement(Ge,{captureEnabled:v,onTopArrive:M,onBottomArrive:A,lockEnabled:E},(function(t){return f.createElement(o,(0,h.Z)({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:l,focusedOption:d}),Z)})))}));return C||"fixed"===D?f.createElement(a,(0,h.Z)({},c,{appendTo:C,controlElement:this.controlRef,menuPlacement:k,menuPosition:D}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=this.state.selectValue;if(o&&!r){if(i){if(n){var l=a.map((function(t){return e.getOptionValue(t)})).join(n);return f.createElement("input",{name:o,type:"hidden",value:l})}var u=a.length>0?a.map((function(t,n){return f.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):f.createElement("input",{name:o,type:"hidden"});return f.createElement("div",null,u)}var s=a[0]?this.getOptionValue(a[0]):"";return f.createElement("input",{name:o,type:"hidden",value:s})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,a=t.selectValue,l=this.getFocusableOptions();return f.createElement(Se,(0,h.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,l=o.id,u=o.isDisabled,s=o.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return f.createElement(r,(0,h.Z)({},d,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:c}),this.renderLiveRegion(),f.createElement(t,(0,h.Z)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:c,menuIsOpen:s}),f.createElement(i,(0,h.Z)({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),f.createElement(n,(0,h.Z)({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,l=t.prevWasFocused,u=e.options,s=e.value,c=e.menuIsOpen,d=e.inputValue,f=e.isMulti,h=I(s),p={};if(n&&(s!==n.value||u!==n.options||c!==n.menuIsOpen||d!==n.inputValue)){var v=c?function(e,t){return rt(nt(e,t))}(e,h):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,m=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);p={selectValue:h,focusedOption:m,focusedValue:g,clearFocusValueOnUpdate:!1}}var b=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},y=o,w=a&&l;return a&&!w&&(y={value:U(f,h,h[0]||null),options:h,action:"initial-input-focus"},w=!l),"initial-input-focus"===(null===o||void 0===o?void 0:o.action)&&(y=null),C(C(C({},p),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:w})}}]),n}(f.Component);ft.defaultProps=et;var ht=n(83985),pt=n(5296),vt=(0,f.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,l=void 0===a?null:a,s=e.inputValue,c=e.menuIsOpen,d=e.onChange,h=e.onInputChange,p=e.onMenuClose,v=e.onMenuOpen,g=e.value,m=(0,o.Z)(e,xe),b=(0,f.useState)(void 0!==s?s:n),y=(0,u.Z)(b,2),w=y[0],x=y[1],k=(0,f.useState)(void 0!==c?c:i),D=(0,u.Z)(k,2),E=D[0],S=D[1],F=(0,f.useState)(void 0!==g?g:l),M=(0,u.Z)(F,2),A=M[0],Z=M[1],R=(0,f.useCallback)((function(e,t){"function"===typeof d&&d(e,t),Z(e)}),[d]),I=(0,f.useCallback)((function(e,t){var n;"function"===typeof h&&(n=h(e,t)),x(void 0!==n?n:e)}),[h]),O=(0,f.useCallback)((function(){"function"===typeof v&&v(),S(!0)}),[v]),P=(0,f.useCallback)((function(){"function"===typeof p&&p(),S(!1)}),[p]),T=void 0!==s?s:w,H=void 0!==c?c:E,L=void 0!==g?g:A;return C(C({},m),{},{inputValue:T,menuIsOpen:H,onChange:R,onInputChange:I,onMenuClose:P,onMenuOpen:O,value:L})}(e);return f.createElement(ft,(0,h.Z)({ref:t},n))})),gt=(f.Component,vt),mt=["children"],bt=[[50,5],[61.23,39.55],[97.55,39.55],[68.16,60.9],[79.39,95.45],[50,74.1],[20.61,95.45],[31.84,60.9],[2.45,39.55],[38.77,39.55]];function yt(e,t,n){for(var r=!1,i=0,o=bt;i<o.length;i++){var a=o[i],l=(a[0]-50)*(n/100)+t[0],u=(a[1]-50)*(n/100)+t[1];r?e.lineTo(l,u):(e.moveTo(l,u),r=!0)}e.closePath()}var wt=function(){return(0,f.createElement)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,f.createElement)("path",{d:"M47.1468 13.7811C48.0449 11.0172 51.9551 11.0172 52.8532 13.7812L60.5522 37.4762C60.9538 38.7123 62.1056 39.5491 63.4053 39.5491H88.3198C91.226 39.5491 92.4343 43.268 90.0831 44.9762L69.9269 59.6205C68.8755 60.3845 68.4355 61.7386 68.8371 62.9746L76.5361 86.6697C77.4342 89.4336 74.2707 91.732 71.9196 90.0238L51.7634 75.3794C50.7119 74.6155 49.2881 74.6155 48.2366 75.3795L28.0804 90.0238C25.7293 91.732 22.5659 89.4336 23.4639 86.6697L31.1629 62.9746C31.5645 61.7386 31.1245 60.3845 30.0731 59.6205L9.91686 44.9762C7.56572 43.268 8.77405 39.5491 11.6802 39.5491H36.5947C37.8944 39.5491 39.0462 38.7123 39.4478 37.4762L47.1468 13.7811Z",fill:"currentColor"}))},xt=(0,c.d)("div")({name:"EditorWrap",class:"e17a8fyf"}),kt={kind:d.p6.Custom,isMatch:function(e){return"star-cell"===e.data.kind},needsHover:!0,draw:function(e,t){var n=e.ctx,r=e.theme,i=e.rect,o=e.hoverAmount,a=t.data.rating,l=r.cellHorizontalPadding,u=i.x+l,s=Math.min(5,Math.ceil(a));u+=8,n.beginPath();for(var c=0;c<s;c++)yt(n,[u,i.y+i.height/2],16),u+=18;return n.fillStyle=r.textDark,n.globalAlpha=.6+.4*o,n.fill(),n.globalAlpha=1,!0},provideEditor:function(){return function(e){return(0,f.createElement)(xt,null,[0,1,2,3,4].map((function(t){return(0,f.createElement)("div",{key:t,className:e.value.data.rating<t+1?"inactive":"active",onClick:function(){e.onChange((0,s.Z)((0,s.Z)({},e.value),{},{data:(0,s.Z)((0,s.Z)({},e.value.data),{},{rating:t+1})}))}},(0,f.createElement)(wt,null))})))}},onPaste:function(e,t){var n=Number.parseInt(e);return(0,s.Z)((0,s.Z)({},t),{},{rating:Number.isNaN(n)?0:n})}},Dt=kt,Ct={kind:d.p6.Custom,isMatch:function(e){return"sparkline-cell"===e.data.kind},needsHover:!0,needsHoverPosition:!0,draw:function(e,t){var n,r=e.ctx,i=e.theme,o=e.rect,a=e.hoverAmount,s=e.hoverX,c=t.data,f=c.values,h=c.yAxis,p=c.color,v=c.graphKind,g=void 0===v?"line":v,m=c.displayValues,b=(0,u.Z)(h,2),y=b[0],w=b[1];if(0===f.length)return!0;f=f.map((function(e){return Math.min(1,Math.max(0,(e-y)/(w-y)))}));var x=i.cellHorizontalPadding,k=x+o.x,D=o.y+3,C=o.height-6,E=o.width-2*x,S=w<=0?D:y>=0?D+C:D+C*(w/(w-y));if(y<=0&&w>=0&&(r.beginPath(),r.moveTo(k,S),r.lineTo(k+E,S),r.globalAlpha=.4,r.lineWidth=1,r.strokeStyle=i.textLight,r.stroke(),r.globalAlpha=1),"bar"===g){r.beginPath();var F,M=(E-2*(f.length-1))/f.length,A=k,Z=(0,l.Z)(f);try{for(Z.s();!(F=Z.n()).done;){var R=F.value,I=D+C-R*C;r.moveTo(A,S),r.lineTo(A+M,S),r.lineTo(A+M,I),r.lineTo(A,I),A+=M+2}}catch(U){Z.e(U)}finally{Z.f()}r.fillStyle=null!=(n=t.data.color)?n:i.accentColor,r.fill()}else{1===f.length&&(f=[f[0],f[0]]),r.beginPath();var O,P=(o.width-16)/(f.length-1),T=f.map((function(e,t){return{x:k+P*t,y:D+C-e*C}}));for(r.moveTo(T[0].x,T[0].y),O=1;O<T.length-2;O++){var H=(T[O].x+T[O+1].x)/2,L=(T[O].y+T[O+1].y)/2;r.quadraticCurveTo(T[O].x,T[O].y,H,L)}r.quadraticCurveTo(T[O].x,T[O].y,T[O+1].x,T[O+1].y),r.strokeStyle=null!=p?p:i.accentColor,r.lineWidth=1+.5*a,r.stroke(),r.lineTo(o.x+o.width-x,S),r.lineTo(o.x+x,S),r.closePath(),r.globalAlpha=.2+.2*a;var z=r.createLinearGradient(0,D,0,D+1.4*C);z.addColorStop(0,null!=p?p:i.accentColor);var B=(0,d.dF)(null!=p?p:i.accentColor),_=(0,u.Z)(B,3),N=_[0],V=_[1],W=_[2];if(z.addColorStop(1,"rgba(".concat(N,", ").concat(V,", ").concat(W,", 0)")),r.fillStyle=z,r.fill(),r.globalAlpha=1,void 0!==s&&"line"===g&&void 0!==m){r.beginPath();var j=Math.min(f.length-1,Math.max(0,Math.round((s-x)/P)));r.moveTo(k+j*P,o.y),r.lineTo(k+j*P,o.y+o.height),r.lineWidth=1,r.strokeStyle=i.textLight,r.stroke(),r.save(),r.font="8px ".concat(i.fontFamily),r.fillStyle=i.textMedium,r.textBaseline="top",r.fillText(m[j],k,o.y+i.cellVerticalPadding),r.restore()}}return!0},provideEditor:function(){},onPaste:function(e,t){return t}},Et=Ct;function St(e,t,n,r,i,o){0!==o?("number"===typeof o&&(o={tl:o,tr:o,br:o,bl:o}),o={tl:Math.min(o.tl,i/2,r/2),tr:Math.min(o.tr,i/2,r/2),bl:Math.min(o.bl,i/2,r/2),br:Math.min(o.br,i/2,r/2)},e.moveTo(t+o.tl,n),e.arcTo(t+r,n,t+r,n+o.tr,o.tr),e.arcTo(t+r,n+i,t+r-o.br,n+i,o.br),e.arcTo(t,n+i,t,n+i-o.bl,o.bl),e.arcTo(t,n,t+o.tl,n,o.tl)):e.rect(t,n,r,i)}var Ft=20,Mt=(0,c.d)("div")({name:"EditorWrap",class:"e43amum",vars:{"e43amum-0":[function(e){return e.tagHeight/2},"px"],"e43amum-1":[function(e){return e.tagHeight},"px"],"e43amum-2":[function(e){return e.innerPad},"px"]}}),At={kind:d.p6.Custom,isMatch:function(e){return"tags-cell"===e.data.kind},draw:function(e,t){var n,r,i,o=e.ctx,a=e.theme,u=e.rect,s=t.data,c=s.possibleTags,f=s.tags,h={x:u.x+a.cellHorizontalPadding,y:u.y+a.cellVerticalPadding,width:u.width-2*a.cellHorizontalPadding,height:u.height-2*a.cellVerticalPadding},p=Math.max(1,Math.floor(h.height/26)),v=h.x,g=1,m=h.y+(h.height-p*Ft-6*(p-1))/2,b=(0,l.Z)(f);try{var y=function(){var e=i.value,t=null!=(r=null==(n=c.find((function(t){return t.tag===e})))?void 0:n.color)?r:a.bgBubble;o.font="12px ".concat(a.fontFamily);var l=(0,d.P7)(e,o).width+12;if(v!==h.x&&v+l>h.x+h.width&&g<p&&(g++,m+=26,v=h.x),o.fillStyle=t,o.beginPath(),St(o,v,m,l,Ft,10),o.fill(),o.fillStyle=a.textDark,o.fillText(e,v+6,m+10+(0,d.aX)(o,"12px ".concat(a.fontFamily))),(v+=l+8)>h.x+h.width&&g>=p)return"break"};for(b.s();!(i=b.n()).done;){if("break"===y())break}}catch(w){b.e(w)}finally{b.f()}return!0},provideEditor:function(){return function(e){var t=e.onChange,n=e.value,r=n.data,i=r.possibleTags,o=r.tags,l=r.readonly,u=void 0!==l&&l;return(0,f.createElement)(Mt,{tagHeight:Ft,innerPad:6,className:u?"readonly":""},i.map((function(r){var i=-1!==o.indexOf(r.tag);return(0,f.createElement)("label",{key:r.tag},!u&&(0,f.createElement)("input",{className:"gdg-input",type:"checkbox",checked:i,onChange:function(){var l=i?o.filter((function(e){return e!==r.tag})):[].concat((0,a.Z)(o),[r.tag]);t((0,s.Z)((0,s.Z)({},e.value),{},{data:(0,s.Z)((0,s.Z)({},n.data),{},{tags:l})}))}}),(0,f.createElement)("div",{className:"pill "+(i?"selected":"unselected"),style:{backgroundColor:i?r.color:void 0}},r.tag))})))}},onPaste:function(e,t){return(0,s.Z)((0,s.Z)({},t),{},{tags:t.possibleTags.map((function(e){return e.tag})).filter((function(t){return e.split(",").map((function(e){return e.trim()})).includes(t)}))})}},Zt={kind:d.p6.Custom,isMatch:function(e){return"user-profile-cell"===e.data.kind},draw:function(e,t){var n=e.ctx,r=e.rect,i=e.theme,o=e.imageLoader,a=e.col,l=e.row,u=t.data,s=u.image,c=u.name,f=u.initial,h=u.tint,p=i.cellHorizontalPadding,v=Math.min(12,r.height/2-i.cellVerticalPadding),g=r.x+p,m=o.loadOrGetImage(s,a,l);n.save(),n.beginPath(),n.arc(g+v,r.y+r.height/2,v,0,2*Math.PI),n.globalAlpha=.2,n.fillStyle=h,n.fill(),n.globalAlpha=1,n.font="600 16px ".concat(i.fontFamily);var b=(0,d.P7)(f[0],n);return n.fillText(f[0],g+v-b.width/2,r.y+r.height/2+(0,d.aX)(n,"600 16px ".concat(i.fontFamily))),void 0!==m&&(n.save(),n.beginPath(),n.arc(g+v,r.y+r.height/2,v,0,2*Math.PI),n.clip(),n.drawImage(m,g,r.y+r.height/2-v,2*v,2*v),n.restore()),void 0!==c&&(n.font="".concat(i.baseFontStyle," ").concat(i.fontFamily),n.fillStyle=i.textDark,n.fillText(c,g+2*v+p,r.y+r.height/2+(0,d.aX)(n,i))),n.restore(),!0},provideEditor:function(){return function(e){var t,n=e.isHighlighted,r=e.onChange,i=e.value;return(0,f.createElement)(d.t5,{highlight:n,autoFocus:!0,value:null!=(t=i.data.name)?t:"",onChange:function(e){return r((0,s.Z)((0,s.Z)({},i),{},{data:(0,s.Z)((0,s.Z)({},i.data),{},{name:e.target.value})}))}})}},onPaste:function(e,t){return(0,s.Z)((0,s.Z)({},t),{},{name:e})}},Rt=function(e){var t=we.Menu,n=e.children,r=(0,o.Z)(e,mt);return(0,f.createElement)(t,(0,s.Z)({},r),n)},It=(0,c.d)("div")({name:"Wrap",class:"w13j932a"}),Ot=(0,c.d)("div")({name:"PortalWrap",class:"p19663q2"}),Pt=function(e){var t=e.value,n=e.onFinishedEditing,o=e.initialValue,a=t.data,l=a.allowedValues,c=a.value,h=(0,f.useState)(c),p=(0,u.Z)(h,2),v=p[0],g=p[1],m=(0,f.useState)(null!=o?o:""),b=(0,u.Z)(m,2),y=b[0],w=b[1],x=(0,d.Fg)(),k=(0,f.useMemo)((function(){return l.map((function(e){return{value:e,label:e}}))}),[l]);return(0,f.createElement)(It,null,(0,f.createElement)(gt,{className:"glide-select",inputValue:y,onInputChange:w,menuPlacement:"auto",value:k.find((function(e){return e.value===v})),styles:{control:function(e){return(0,s.Z)((0,s.Z)({},e),{},{border:0,boxShadow:"none"})}},theme:function(e){return(0,s.Z)((0,s.Z)({},e),{},{colors:(0,s.Z)((0,s.Z)({},e.colors),{},{neutral0:x.bgCell,neutral5:x.bgCell,neutral10:x.bgCell,neutral20:x.bgCellMedium,neutral30:x.bgCellMedium,neutral40:x.bgCellMedium,neutral50:x.textLight,neutral60:x.textMedium,neutral70:x.textMedium,neutral80:x.textDark,neutral90:x.textDark,neutral100:x.textDark,primary:x.accentColor,primary75:x.accentColor,primary50:x.accentColor,primary25:x.accentLight})})},menuPortalTarget:document.getElementById("portal"),autoFocus:!0,openMenuOnFocus:!0,components:{DropdownIndicator:function(){return null},IndicatorSeparator:function(){return null},Menu:function(e){return(0,f.createElement)(Ot,null,(0,f.createElement)(Rt,(0,s.Z)({className:"click-outside-ignore"},e)))}},options:k,onChange:function(){var e=(0,i.Z)((0,r.Z)().mark((function e(i){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==i){e.next=2;break}return e.abrupt("return");case 2:return g(i.value),e.next=5,new Promise((function(e){return window.requestAnimationFrame(e)}));case 5:n((0,s.Z)((0,s.Z)({},t),{},{data:(0,s.Z)((0,s.Z)({},t.data),{},{value:i.value})}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}))},Tt={kind:d.p6.Custom,isMatch:function(e){return"dropdown-cell"===e.data.kind},draw:function(e,t){var n=e.ctx,r=e.theme,i=e.rect,o=t.data.value;return n.fillStyle=r.textDark,n.fillText(o,i.x+r.cellHorizontalPadding,i.y+i.height/2+(0,d.aX)(n,r)),!0},provideEditor:function(){return{editor:Pt,disablePadding:!0,deletedValue:function(e){return(0,s.Z)((0,s.Z)({},e),{},{copyData:"",data:(0,s.Z)((0,s.Z)({},e.data),{},{value:""})})}}},onPaste:function(e,t){return(0,s.Z)((0,s.Z)({},t),{},{value:t.allowedValues.includes(e)?e:t.value})}},Ht=(0,f.lazy)((0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(432).then(n.bind(n,68432));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))),Lt={kind:d.p6.Custom,isMatch:function(e){return"article-cell"===e.data.kind},draw:function(e,t){var n=e.ctx,r=e.theme,i=e.rect,o=t.data.markdown;o.includes("\n")&&(o=o.split(/\r?\n/)[0]);var a=i.width/4;return o.length>a&&(o=o.slice(0,a)),n.fillStyle=r.textDark,n.fillText(o,i.x+r.cellHorizontalPadding,i.y+i.height/2+(0,d.aX)(n,r)),!0},provideEditor:function(){return{editor:function(e){return(0,f.createElement)(f.Suspense,{fallback:null},(0,f.createElement)(Ht,(0,s.Z)({},e)))},styleOverride:{position:"fixed",left:"12.5vw",top:"12.5vh",width:"75vw",borderRadius:"9px",maxWidth:"unset",maxHeight:"unset"},disablePadding:!0}},onPaste:function(e,t){return(0,s.Z)((0,s.Z)({},t),{},{markdown:e})}},zt={marginRight:8},Bt={display:"flex",alignItems:"center",flexGrow:1},_t={kind:d.p6.Custom,isMatch:function(e){return"range-cell"===e.data.kind},draw:function(e,t){var n=e.ctx,r=e.theme,i=e.rect,o=t.data,a=o.min,l=o.max,u=o.value,s=o.label,c=o.measureLabel,f=i.x+r.cellHorizontalPadding,h=i.y+i.height/2,p=(u-a)/(l-a);n.save();var v=0;void 0!==s&&(n.font="12px ".concat(r.fontFamily),v=(0,d.P7)(null!=c?c:s,n,"12px ".concat(r.fontFamily)).width+r.cellHorizontalPadding);var g=i.width-2*r.cellHorizontalPadding-v,m=n.createLinearGradient(f,h,f+g,h);return m.addColorStop(0,r.accentColor),m.addColorStop(p,r.accentColor),m.addColorStop(p,r.bgBubble),m.addColorStop(1,r.bgBubble),n.beginPath(),n.fillStyle=m,St(n,f,h-3,g,6,3),n.fill(),n.beginPath(),St(n,f+.5,h-3+.5,g-1,5,2.5),n.strokeStyle=r.accentLight,n.lineWidth=1,n.stroke(),void 0!==s&&(n.textAlign="right",n.fillStyle=r.textDark,n.fillText(s,i.x+i.width-r.cellHorizontalPadding,h+(0,d.aX)(n,"12px ".concat(r.fontFamily)))),n.restore(),!0},provideEditor:function(){return function(e){var t=e.value.data,n=t.value.toString(),r=t.min.toString(),i=t.max.toString(),o=t.step.toString();return(0,f.createElement)("label",{style:Bt},(0,f.createElement)("input",{style:zt,type:"range",value:n,min:r,max:i,step:o,onChange:function(n){e.onChange((0,s.Z)((0,s.Z)({},e.value),{},{data:(0,s.Z)((0,s.Z)({},t),{},{value:Number(n.target.value)})}))}}),n)}},onPaste:function(e,t){var n=Number.parseFloat(e);return n=Number.isNaN(n)?t.value:Math.max(t.min,Math.min(t.max,n)),(0,s.Z)((0,s.Z)({},t),{},{value:n})}},Nt={kind:d.p6.Custom,isMatch:function(e){return"spinner-cell"===e.data.kind},draw:function(e){var t=e.ctx,n=e.theme,r=e.rect,i=e.requestAnimationFrame,o=window.performance.now()%1e3/1e3,a=r.x+r.width/2,l=r.y+r.height/2;return t.arc(a,l,Math.min(12,r.height/6),2*Math.PI*o,2*Math.PI*o+1.5*Math.PI),t.strokeStyle=n.textMedium,t.lineWidth=1.5,t.stroke(),t.lineWidth=1,i(),!0},provideEditor:function(){}},Vt={kind:d.p6.Custom,isMatch:function(e){return"date-picker-cell"===e.data.kind},draw:function(e,t){var n=t.data.displayDate;return(0,d.uN)(e,n,t.contentAlign),!0},provideEditor:function(){return function(e){var t=e.value.data,n=t.format,r=t.date,i="";return void 0!==r&&(i=r.toISOString(),"date"===n&&(i=i.split("T")[0])),(0,f.createElement)("input",{style:{minHeight:26,border:"none",outline:"none"},type:n,autoFocus:!0,value:i,onChange:function(t){var n;e.onChange((0,s.Z)((0,s.Z)({},e.value),{},{data:(0,s.Z)((0,s.Z)({},e.value.data),{},{date:null!=(n=t.target.valueAsDate)?n:void 0})}))}})}},onPaste:function(e,t){var n;try{n=new Date(e)}catch(r){}return(0,s.Z)((0,s.Z)({},t),{},{date:Number.isNaN(n)?void 0:n})}};function Wt(e){if("click"!==e.cell.data.navigateOn===e.ctrlKey){var t=document.createElement("canvas").getContext("2d",{alpha:!1});if(null!==t){var n=e.posX,r=e.bounds,i=e.cell,o=e.theme,a="".concat(o.baseFontStyle," ").concat(o.fontFamily);t.font=a;var s,c=i.data.links,f=o.cellHorizontalPadding,h=r.x+f,p=r.x+n,v=(0,l.Z)(c.entries());try{for(v.s();!(s=v.n()).done;){var g=(0,u.Z)(s.value,2),m=g[0],b=g[1],y=m<c.length-1,w=(0,d.P7)(b.title,t),x=y?(0,d.P7)(b.title+",",t,a):w;if(p>h&&p<h+w.width)return b;h+=x.width+4}}catch(k){v.e(k)}finally{v.f()}}}}var jt={kind:d.p6.Custom,needsHover:!0,needsHoverPosition:!0,isMatch:function(e){return"links-cell"===e.data.kind},onSelect:function(e){void 0!==Wt(e)&&e.preventDefault()},onClick:function(e){var t,n=Wt(e);void 0!==n&&(null==(t=n.onClick)||t.call(n),e.preventDefault())},draw:function(e,t){var n,r=e.ctx,i=e.rect,o=e.theme,a=e.hoverX,s=void 0===a?-100:a,c=e.highlighted,f=t.data,h=f.links,p=f.underlineOffset,v=void 0===p?5:p,g=o.cellHorizontalPadding,m=i.x+g,b=i.x+s,y="".concat(o.baseFontStyle," ").concat(o.fontFamily),w=(0,d.aX)(r,y),x=i.y+i.height/2+w,k=(0,l.Z)(h.entries());try{for(k.s();!(n=k.n()).done;){var D=(0,u.Z)(n.value,2),C=D[0],E=D[1],S=C<h.length-1,F=(0,d.P7)(E.title,r,y),M=S?(0,d.P7)(E.title+",",r,y):F;b>m&&b<m+F.width&&(r.moveTo(m,Math.floor(x+v)+.5),r.lineTo(m+F.width,Math.floor(x+v)+.5),r.strokeStyle=o.textDark,r.stroke(),r.fillStyle=c?(0,d.NH)(o.accentLight,o.bgCell):o.bgCell,r.fillText(S?E.title+",":E.title,m-1,x),r.fillText(S?E.title+",":E.title,m+1,x),r.fillText(S?E.title+",":E.title,m-2,x),r.fillText(S?E.title+",":E.title,m+2,x)),r.fillStyle=o.textDark,r.fillText(S?E.title+",":E.title,m,x),m+=M.width+4}}catch(A){k.e(A)}finally{k.f()}return!0},provideEditor:function(){return function(e){var t=e.value,n=e.onChange,r=t.data,i=r.links,o=r.maxLinks,l=void 0===o?Number.MAX_SAFE_INTEGER:o;return(0,f.createElement)(Ut,{onKeyDown:Xt},i.map((function(e,r){var o;return(0,f.createElement)(Yt,{key:r,link:null!=(o=e.href)?o:"",title:e.title,focus:0===r,onDelete:i.length>1?function(){var e=(0,a.Z)(i);e.splice(r,1),n((0,s.Z)((0,s.Z)({},t),{},{data:(0,s.Z)((0,s.Z)({},t.data),{},{links:e})}))}:void 0,onChange:function(e,o){var l=(0,a.Z)(i);l[r]={href:e,title:o},n((0,s.Z)((0,s.Z)({},t),{},{data:(0,s.Z)((0,s.Z)({},t.data),{},{links:l})}))}})})),(0,f.createElement)("button",{disabled:i.length>=l,className:"add-link",onClick:function(){var e=[].concat((0,a.Z)(i),[{title:""}]);n((0,s.Z)((0,s.Z)({},t),{},{data:(0,s.Z)((0,s.Z)({},t.data),{},{links:e})}))}},"Add link"))}},onPaste:function(e,t){var n=e.split(",");if(!t.links.some((function(e,t){return n[t]!==e.title})))return(0,s.Z)((0,s.Z)({},t),{},{links:n.map((function(e){return{title:e}}))})}},Ut=(0,c.d)("div")({name:"LinksCellEditorStyle",class:"lneeve5"});function Xt(e){"Tab"===e.key&&e.stopPropagation()}var Yt=function(e){var t=e.link,n=e.onChange,r=e.title,i=e.onDelete,o=e.focus;return(0,f.createElement)("div",{className:"gdg-link-title-editor"},(0,f.createElement)("input",{className:"gdg-title-input",value:r,placeholder:"Title",autoFocus:o,onChange:function(e){n(t,e.target.value)}}),(0,f.createElement)("input",{className:"gdg-link-input",value:t,placeholder:"URL",onChange:function(e){n(e.target.value,r)}}),void 0!==i&&(0,f.createElement)("button",{onClick:i},(0,f.createElement)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",id:"icon-import",xmlns:"http://www.w3.org/2000/svg"},(0,f.createElement)("path",{d:"M3 6L5 6L21 6",stroke:"currentColor",strokeWidth:"1px",strokeLinecap:"round",strokeLinejoin:"round"}),(0,f.createElement)("path",{d:"M17.9019 6C18.491 6 18.9525 6.50676 18.8975 7.09334L17.67 20.1867C17.5736 21.2144 16.711 22 15.6787 22H8.32127C7.28902 22 6.42635 21.2144 6.33 20.1867L5.1025 7.09334C5.04751 6.50676 5.50898 6 6.09813 6H17.9019Z",stroke:"currentColor",strokeWidth:"1px",strokeLinecap:"round",strokeLinejoin:"round"}),(0,f.createElement)("path",{d:"M14.4499 10.211L13.9949 17",stroke:"currentColor",strokeWidth:"1px",strokeLinecap:"round",strokeLinejoin:"round"}),(0,f.createElement)("path",{d:"M9.55499 10.211L10.0049 17",stroke:"currentColor",strokeWidth:"1px",strokeLinecap:"round",strokeLinejoin:"round"}),(0,f.createElement)("path",{d:"M7.5 2.25H16.5",stroke:"currentColor",strokeWidth:"1px",strokeLinecap:"round",strokeLinejoin:"round"}))))},Kt=jt;function $t(e,t,n){if("string"===typeof e)return void 0!==t[e]?t[e]:e;var r=(0,u.Z)(e,2),i=r[0],o=r[1];return void 0!==t[i]&&(i=t[i]),void 0!==t[o]&&(o=t[o]),(0,d.Nz)(i,o,n)}var Gt={kind:d.p6.Custom,isMatch:function(e){return"button-cell"===e.data.kind},needsHover:!0,onSelect:function(e){return e.preventDefault()},onClick:function(e){var t,n;null==(n=(t=e.cell.data).onClick)||n.call(t)},drawPrep:function(e){return e.ctx.textAlign="center",{deprep:function(e){e.ctx.textAlign="start"}}},draw:function(e,t){var n=e.ctx,r=e.theme,i=e.rect,o=e.hoverAmount,a=t.data,l=a.title,u=a.backgroundColor,s=a.color,c=a.borderColor,f=a.borderRadius,h=Math.floor(i.x+r.cellHorizontalPadding+1),p=Math.floor(i.y+r.cellVerticalPadding+1),v=Math.ceil(i.width-2*r.cellHorizontalPadding-1),g=Math.ceil(i.height-2*r.cellVerticalPadding-1);return void 0!==u&&(n.beginPath(),St(n,h,p,v,g,null!=f?f:0),n.fillStyle=$t(u,r,o),n.fill()),void 0!==c&&(n.beginPath(),St(n,h+.5,p+.5,v-1,g-1,null!=f?f:0),n.strokeStyle=$t(c,r,o),n.lineWidth=1,n.stroke()),n.fillStyle=$t(null!=s?s:r.accentColor,r,o),n.fillText(l,h+v/2,p+g/2+(0,d.aX)(n,"".concat(r.baseFontStyle," ").concat(r.fontFamily))),!0},provideEditor:void 0},qt=[Dt,Et,At,Zt,Tt,Lt,Nt,_t,Vt,Kt,Gt];function Qt(){return(0,d.R$)(qt)}},34264:function(e,t,n){"use strict";n.d(t,{fF:function(){return s}});var r=n(29439),i=n(56130),o=n(43575),a=n(47313);function l(e){var t,n,r,o,a;switch(e.kind){case i.p6.Number:return null!==(t=null===(n=e.data)||void 0===n?void 0:n.toString())&&void 0!==t?t:"";case i.p6.Boolean:return null!==(r=null===(o=e.data)||void 0===o?void 0:o.toString())&&void 0!==r?r:"";case i.p6.Markdown:case i.p6.RowID:case i.p6.Text:case i.p6.Uri:return null!==(a=e.data)&&void 0!==a?a:"";case i.p6.Bubble:case i.p6.Image:return e.data.join("");case i.p6.Drilldown:return e.data.map((function(e){return e.text})).join("");case i.p6.Protected:case i.p6.Loading:return"";case i.p6.Custom:return e.copyData}}function u(e){if("number"===typeof e)return e;if(e.length>0){var t=parseFloat(e);isNaN(t)||(e=t)}return e}function s(e){var t,n=e.sort,i=e.rows,s=e.getCellContent,c=void 0===n?void 0:e.columns.findIndex((function(e){return n.column===e||void 0!==e.id&&n.column.id===e.id}));-1===c&&(c=void 0);var d=null!==(t=null===n||void 0===n?void 0:n.direction)&&void 0!==t?t:"asc",f=a.useMemo((function(){if(void 0!==c){for(var e,t=new Array(i),r=[c,0],a=0;a<i;a++)r[1]=a,t[a]=l(s(r));return e="raw"===(null===n||void 0===n?void 0:n.mode)?o(i).sort((function(e,n){return function(e,t){return e>t?1:e===t?0:-1}(t[e],t[n])})):"smart"===(null===n||void 0===n?void 0:n.mode)?o(i).sort((function(e,n){return function(e,t){return e=u(e),t=u(t),"string"===typeof e&&"string"===typeof t?e.localeCompare(t):"number"===typeof e&&"number"===typeof t?e===t?0:e>t?1:-1:e==t?0:e>t?1:-1}(t[e],t[n])})):o(i).sort((function(e,n){return t[e].localeCompare(t[n])})),"desc"===d&&e.reverse(),e}}),[s,i,null===n||void 0===n?void 0:n.mode,d,c]),h=a.useCallback((function(e){return void 0===f?e:f[e]}),[f]),p=a.useCallback((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];return void 0===f||(i=f[i]),s([n,i])}),[s,f]);return void 0===f?{getCellContent:e.getCellContent,getOriginalIndex:h}:{getOriginalIndex:h,getCellContent:p}}},81307:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var r=n(29439),i=n(47313);var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=function(){var e=Array.prototype.slice.call(arguments).filter(Boolean),t={},n=[];e.forEach((function(e){(e?e.split(" "):[]).forEach((function(e){if(e.startsWith("atm_")){var i=e.split("_"),o=(0,r.Z)(i,2)[1];t[o]=e}else n.push(e)}))}));var i=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&i.push(t[o]);return i.push.apply(i,n),i.join(" ")},u=function(e,t){var n={};return Object.keys(e).filter(function(e){return function(t){return-1===e.indexOf(t)}}(t)).forEach((function(t){n[t]=e[t]})),n};var s=function(e,t){if(!("string"===typeof e||"number"===typeof e&&isFinite(e))){var n="object"===typeof e?JSON.stringify(e):String(e);console.warn("An interpolation evaluated to '".concat(n,"' in the component '").concat(t,"', which is probably a mistake. You should explicitly cast or transform the value to a string."))}};var c=new Proxy((function(e){return function(t){if(Array.isArray(t))throw new Error('Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup');var n=function(n,r){var o=n.as,c=void 0===o?e:o,d=n.class,f=function(e,t,n){var r,i=u(t,n);return"string"===typeof e&&-1===e.indexOf("-")&&(r=e[0]).toUpperCase()!==r&&Object.keys(i).forEach((function(e){a(e)||delete i[e]})),i}(c,n,["as","class"]);f.ref=r,f.className=t.atomic?l(t.class,f.className||d):l(f.className||d,t.class);var h=t.vars;if(h){var p={};for(var v in h){var g=h[v],m=g[0],b=g[1]||"",y="function"===typeof m?m(n):m;s(y,t.name),p["--".concat(v)]="".concat(y).concat(b)}var w=f.style||{},x=Object.keys(w);x.length>0&&x.forEach((function(e){p[e]=w[e]})),f.style=p}return e.__linaria&&e!==c?(f.as=c,i.createElement(e,f)):i.createElement(c,f)},r=i.forwardRef?i.forwardRef(n):function(e){var t=u(e,["innerRef"]);return n(t,e.innerRef)};return r.displayName=t.name,r.__linaria={className:t.class,extends:e},r}}),{get:function(e,t){return e(t)}})},56130:function(e,t,n){"use strict";n.d(t,{EV:function(){return ot},Nd:function(){return Ur},p6:function(){return Pe},t5:function(){return Er},NH:function(){return sn},uN:function(){return Wt},aX:function(){return Bt},Nz:function(){return cn},P7:function(){return zt},dF:function(){return ln},R$:function(){return Yr},Fg:function(){return Oe}});var r=n(4942),i=n(74165),o=n(15861),a=n(37762),l=n(93433),u=n(29439),s=n(1413),c=n(45987),d=n(15671),f=n(43144),h=n(60136),p=n(29388),v=n(81307),g=n(47313),m=n(28630),b=n(28845),y=n(15122),w=n(43575),x=n(12279),k=n(1168),D=n(51912),C=n(91909),E=new Map,S=new Map,F=new Map;function M(){E.clear(),F.clear(),S.clear()}function A(e,t,n,r){var i,o,l=S.get(n);if(r&&void 0!==l&&l.count>2e4){var u=F.get(n);if(void 0===u&&(u=function(e,t){var n,r,i=new Map,o=0,l=(0,a.Z)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?");try{for(l.s();!(r=l.n()).done;){var u=r.value,s=e.measureText(u).width;i.set(u,s),o+=s}}catch(g){l.e(g)}finally{l.f()}var c,d=o/i.size,f=(t/d+3)/4,h=i.keys(),p=(0,a.Z)(h);try{for(p.s();!(c=p.n()).done;){var v=c.value;i.set(v,(null!=(n=i.get(v))?n:d)*f)}}catch(g){p.e(g)}finally{p.f()}return i}(e,l.size),F.set(n,u)),l.count>5e5){var s,c=0,d=(0,a.Z)(t);try{for(d.s();!(s=d.n()).done;){var f=s.value;c+=null!=(i=u.get(f))?i:l.size}}catch(y){d.e(y)}finally{d.f()}return 1.01*c}var h=e.measureText(t);return function(e,t,n,r,i){var o,l,u,s,c=0,d={},f=(0,a.Z)(e);try{for(f.s();!(s=f.n()).done;){var h=s.value;c+=null!=(o=n.get(h))?o:i,d[h]=(null!=(l=d[h])?l:0)+1}}catch(y){f.e(y)}finally{f.f()}for(var p=t-c,v=0,g=Object.keys(d);v<g.length;v++){var m=g[v],b=d[m],w=null!=(u=n.get(m))?u:i,x=w+p*(w*b/c)*r/b;n.set(m,x)}}(t,h.width,u,Math.max(.05,1-l.count/2e5),l.size),S.set(n,{count:l.count+t.length,size:l.size}),h.width}var p=e.measureText(t),v=p.width/t.length;if((null!=(o=null==l?void 0:l.count)?o:0)>2e4)return p.width;if(void 0===l)S.set(n,{count:t.length,size:v});else{var g=v-l.size,m=t.length/(l.count+t.length),b=l.size+g*m;S.set(n,{count:l.count+t.length,size:b})}return p.width}function Z(e,t,n,r,i,o,l,u){if(t.length<=1)return t.length;if(i<n)return-1;var s=Math.floor(n/i*o),c=A(e,t.slice(0,Math.max(0,s)),r,l),d=null==u?void 0:u(t);if(c!==n)if(c<n){for(;c<n;)s++,c=A(e,t.slice(0,Math.max(0,s)),r,l);s--}else for(;c>n;){var f=void 0!==d?0:t.lastIndexOf(" ",s-1);f>0?s=f:s--,c=A(e,t.slice(0,Math.max(0,s)),r,l)}if(" "!==t[s]){var h=0;if(void 0===d)h=t.lastIndexOf(" ",s);else{var p,v=(0,a.Z)(d);try{for(v.s();!(p=v.n()).done;){var g=p.value;if(g>s)break;h=g}}catch(m){v.e(m)}finally{v.f()}}h>0&&(s=h)}return s}var R=n(69522),I=n(2655);function O(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var P={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var T=/[&<>"']/,H=new RegExp(T.source,"g"),L=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,z=new RegExp(L.source,"g"),B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_=function(e){return B[e]};function N(e,t){if(t){if(T.test(e))return e.replace(H,_)}else if(L.test(e))return e.replace(z,_);return e}var V=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function W(e){return e.replace(V,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var j=/(^|[^\[])\^/g;function U(e,t){e="string"===typeof e?e:e.source,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(j,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}var X=/[^\w:]/g,Y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function K(e,t,n){if(e){var r;try{r=decodeURIComponent(W(n)).replace(X,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!Y.test(n)&&(n=function(e,t){$[" "+e]||(G.test(e)?$[" "+e]=e+"/":$[" "+e]=ne(e,"/",!0));e=$[" "+e];var n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(q,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Q,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n}var $={},G=/^[^:]+:\/*[^/]*$/,q=/^([^:]+:)[\s\S]*$/,Q=/^([^:]+:\/*[^/]*)[\s\S]*$/;var J={exec:function(){}};function ee(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function te(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function ne(e,t,n){var r=e.length;if(0===r)return"";for(var i=0;i<r;){var o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,r-i)}function re(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ie(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function oe(e,t,n,r){var i=t.href,o=t.title?N(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var l={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}return{type:"image",raw:n,href:i,title:o,text:N(a)}}var ae=function(){function e(t){(0,d.Z)(this,e),this.options=t||P}return(0,f.Z)(e,[{key:"space",value:function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ne(n,"\n")}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:(0,u.Z)(t,1)[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=ne(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:i,text:n}}}},{key:"list",value:function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,o,a,l,u,s,c,d,f,h,p=t[1].trim(),v=p.length>1,g={type:"list",raw:"",ordered:v,start:v?+p.slice(0,-1):"",loose:!1,items:[]};p=v?"\\d{1,9}\\".concat(p.slice(-1)):"\\".concat(p),this.options.pedantic&&(p=v?p:"[*+-]");for(var m=new RegExp("^( {0,3}".concat(p,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(h=!1,t=m.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),s=t[2].split("\n",1)[0].replace(/^\t+/,(function(e){return" ".repeat(3*e.length)})),c=e.split("\n",1)[0],this.options.pedantic?(o=2,f=s.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,f=s.slice(o),o+=t[1].length),l=!1,!s&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),h=!0),!h)for(var b=new RegExp("^ {0,".concat(Math.min(3,o-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),y=new RegExp("^ {0,".concat(Math.min(3,o-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),w=new RegExp("^ {0,".concat(Math.min(3,o-1),"}(?:```|~~~)")),x=new RegExp("^ {0,".concat(Math.min(3,o-1),"}#"));e&&(c=d=e.split("\n",1)[0],this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!w.test(c))&&!x.test(c)&&!b.test(c)&&!y.test(e);){if(c.search(/[^ ]/)>=o||!c.trim())f+="\n"+c.slice(o);else{if(l)break;if(s.search(/[^ ]/)>=4)break;if(w.test(s))break;if(x.test(s))break;if(y.test(s))break;f+="\n"+c}l||c.trim()||(l=!0),n+=d+"\n",e=e.substring(d.length+1),s=c.slice(o)}g.loose||(u?g.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(f))&&(i="[ ] "!==r[0],f=f.replace(/^\[[ xX]\] +/,"")),g.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:f}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=f.trimRight(),g.raw=g.raw.trimRight();var k=g.items.length;for(a=0;a<k;a++)if(this.lexer.state.top=!1,g.items[a].tokens=this.lexer.blockTokens(g.items[a].text,[]),!g.loose){var D=g.items[a].tokens.filter((function(e){return"space"===e.type})),C=D.length>0&&D.some((function(e){return/\n.*\n/.test(e.raw)}));g.loose=C}if(g.loose)for(a=0;a<k;a++)g.items[a].loose=!0;return g}}},{key:"html",value:function(e){var t=this.rules.block.html.exec(e);if(t){var n={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var r=this.options.sanitizer?this.options.sanitizer(t[0]):N(t[0]);n.type="paragraph",n.text=r,n.tokens=this.lexer.inline(r)}return n}}},{key:"def",value:function(e){var t=this.rules.block.def.exec(e);if(t){var n=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}},{key:"table",value:function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:te(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i,o,a,l=n.align.length;for(r=0;r<l;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(l=n.rows.length,r=0;r<l;r++)n.rows[r]=te(n.rows[r],n.header.length).map((function(e){return{text:e}}));for(l=n.header.length,i=0;i<l;i++)n.header[i].tokens=this.lexer.inline(n.header[i].text);for(l=n.rows.length,i=0;i<l;i++)for(a=n.rows[i],o=0;o<a.length;o++)a[o].tokens=this.lexer.inline(a[o].text);return n}}}},{key:"lheading",value:function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}},{key:"paragraph",value:function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}},{key:"text",value:function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}},{key:"escape",value:function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:N(t[1])}}},{key:"tag",value:function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):N(t[0]):t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=ne(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&--r<0)return i;return-1}(t[2],"()");if(i>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var a=t[2],l="";if(this.options.pedantic){var u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);u&&(a=u[1],l=u[3])}else l=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(a=this.options.pedantic&&!/>$/.test(n)?a.slice(1):a.slice(1,-1)),oe(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0],this.lexer)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return oe(n,r,n[0],this.lexer)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,l=r[0].length-1,u=l,s=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+l);null!=(r=c.exec(t));)if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(a=o.length,r[3]||r[4])u+=a;else if(!((r[5]||r[6])&&l%3)||(l+a)%3){if(!((u-=a)>0)){a=Math.min(a,a+u+s);var d=e.slice(0,l+r.index+(r[0].length-o.length)+a);if(Math.min(l,a)%2){var f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}var h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}else s+=a}}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=N(n,!0),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}},{key:"autolink",value:function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(n=N(this.options.mangle?t(i[1]):i[1])):n=N(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},{key:"url",value:function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])i="mailto:"+(r=N(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=N(n[0]),i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}},{key:"inlineText",value:function(e,t){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):N(r[0]):r[0]:N(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}]),e}(),le={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:J,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};le.def=U(le.def).replace("label",le._label).replace("title",le._title).getRegex(),le.bullet=/(?:[*+-]|\d{1,9}[.)])/,le.listItemStart=U(/^( *)(bull) */).replace("bull",le.bullet).getRegex(),le.list=U(le.list).replace(/bull/g,le.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+le.def.source+")").getRegex(),le._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",le._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,le.html=U(le.html,"i").replace("comment",le._comment).replace("tag",le._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),le.paragraph=U(le._paragraph).replace("hr",le.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",le._tag).getRegex(),le.blockquote=U(le.blockquote).replace("paragraph",le.paragraph).getRegex(),le.normal=ee({},le),le.gfm=ee({},le.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),le.gfm.table=U(le.gfm.table).replace("hr",le.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",le._tag).getRegex(),le.gfm.paragraph=U(le._paragraph).replace("hr",le.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",le.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",le._tag).getRegex(),le.pedantic=ee({},le.normal,{html:U("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",le._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:J,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:U(le.normal._paragraph).replace("hr",le.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",le.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ue={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:J,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:J,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function se(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function ce(e){var t,n,r="",i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}ue._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ue.punctuation=U(ue.punctuation).replace(/punctuation/g,ue._punctuation).getRegex(),ue.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ue.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,ue._comment=U(le._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ue.emStrong.lDelim=U(ue.emStrong.lDelim).replace(/punct/g,ue._punctuation).getRegex(),ue.emStrong.rDelimAst=U(ue.emStrong.rDelimAst,"g").replace(/punct/g,ue._punctuation).getRegex(),ue.emStrong.rDelimUnd=U(ue.emStrong.rDelimUnd,"g").replace(/punct/g,ue._punctuation).getRegex(),ue._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ue._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ue._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ue.autolink=U(ue.autolink).replace("scheme",ue._scheme).replace("email",ue._email).getRegex(),ue._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ue.tag=U(ue.tag).replace("comment",ue._comment).replace("attribute",ue._attribute).getRegex(),ue._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ue._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ue._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ue.link=U(ue.link).replace("label",ue._label).replace("href",ue._href).replace("title",ue._title).getRegex(),ue.reflink=U(ue.reflink).replace("label",ue._label).replace("ref",le._label).getRegex(),ue.nolink=U(ue.nolink).replace("ref",le._label).getRegex(),ue.reflinkSearch=U(ue.reflinkSearch,"g").replace("reflink",ue.reflink).replace("nolink",ue.nolink).getRegex(),ue.normal=ee({},ue),ue.pedantic=ee({},ue.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:U(/^!?\[(label)\]\((.*?)\)/).replace("label",ue._label).getRegex(),reflink:U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ue._label).getRegex()}),ue.gfm=ee({},ue.normal,{escape:U(ue.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ue.gfm.url=U(ue.gfm.url,"i").replace("email",ue.gfm._extended_email).getRegex(),ue.breaks=ee({},ue.gfm,{br:U(ue.br).replace("{2,}","*").getRegex(),text:U(ue.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var de=function(){function e(t){(0,d.Z)(this,e),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||P,this.options.tokenizer=this.options.tokenizer||new ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:le.normal,inline:ue.normal};this.options.pedantic?(n.block=le.pedantic,n.inline=ue.pedantic):this.options.gfm&&(n.block=le.gfm,this.options.breaks?n.inline=ue.breaks:n.inline=ue.gfm),this.tokenizer.rules=n}return(0,f.Z)(e,[{key:"lex",value:function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}},{key:"blockTokens",value:function(e){var t,n,r,i,o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,n){return t+" ".repeat(n.length)}));for(var l=function(){if(o.options.extensions&&o.options.extensions.block&&o.options.extensions.block.some((function(n){return!!(t=n.call({lexer:o},e,a))&&(e=e.substring(t.raw.length),a.push(t),!0)})))return"continue";if(t=o.tokenizer.space(e))return e=e.substring(t.raw.length),1===t.raw.length&&a.length>0?a[a.length-1].raw+="\n":a.push(t),"continue";if(t=o.tokenizer.code(e))return e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?a.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,o.inlineQueue[o.inlineQueue.length-1].src=n.text),"continue";if(t=o.tokenizer.fences(e))return e=e.substring(t.raw.length),a.push(t),"continue";if(t=o.tokenizer.heading(e))return e=e.substring(t.raw.length),a.push(t),"continue";if(t=o.tokenizer.hr(e))return e=e.substring(t.raw.length),a.push(t),"continue";if(t=o.tokenizer.blockquote(e))return e=e.substring(t.raw.length),a.push(t),"continue";if(t=o.tokenizer.list(e))return e=e.substring(t.raw.length),a.push(t),"continue";if(t=o.tokenizer.html(e))return e=e.substring(t.raw.length),a.push(t),"continue";if(t=o.tokenizer.def(e))return e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?o.tokens.links[t.tag]||(o.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,o.inlineQueue[o.inlineQueue.length-1].src=n.text),"continue";if(t=o.tokenizer.table(e))return e=e.substring(t.raw.length),a.push(t),"continue";if(t=o.tokenizer.lheading(e))return e=e.substring(t.raw.length),a.push(t),"continue";if(r=e,o.options.extensions&&o.options.extensions.startBlock){var l,u=1/0,s=e.slice(1);o.options.extensions.startBlock.forEach((function(e){"number"===typeof(l=e.call({lexer:this},s))&&l>=0&&(u=Math.min(u,l))})),u<1/0&&u>=0&&(r=e.substring(0,u+1))}if(o.state.top&&(t=o.tokenizer.paragraph(r)))return n=a[a.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,o.inlineQueue.pop(),o.inlineQueue[o.inlineQueue.length-1].src=n.text):a.push(t),i=r.length!==e.length,e=e.substring(t.raw.length),"continue";if(t=o.tokenizer.text(e))return e=e.substring(t.raw.length),(n=a[a.length-1])&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,o.inlineQueue.pop(),o.inlineQueue[o.inlineQueue.length-1].src=n.text):a.push(t),"continue";if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(o.options.silent)return console.error(c),"break";throw new Error(c)}};e;){var u=l();if("continue"!==u&&"break"===u)break}return this.state.top=!0,a}},{key:"inline",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}},{key:"inlineTokens",value:function(e){var t,n,r,i,o,a,l=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(s));)c.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,i.index)+"["+ie("a",i[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,i.index)+"["+ie("a",i[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,i.index+i[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(var d=function(){if(o||(a=""),o=!1,l.options.extensions&&l.options.extensions.inline&&l.options.extensions.inline.some((function(n){return!!(t=n.call({lexer:l},e,u))&&(e=e.substring(t.raw.length),u.push(t),!0)})))return"continue";if(t=l.tokenizer.escape(e))return e=e.substring(t.raw.length),u.push(t),"continue";if(t=l.tokenizer.tag(e))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),"continue";if(t=l.tokenizer.link(e))return e=e.substring(t.raw.length),u.push(t),"continue";if(t=l.tokenizer.reflink(e,l.tokens.links))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),"continue";if(t=l.tokenizer.emStrong(e,s,a))return e=e.substring(t.raw.length),u.push(t),"continue";if(t=l.tokenizer.codespan(e))return e=e.substring(t.raw.length),u.push(t),"continue";if(t=l.tokenizer.br(e))return e=e.substring(t.raw.length),u.push(t),"continue";if(t=l.tokenizer.del(e))return e=e.substring(t.raw.length),u.push(t),"continue";if(t=l.tokenizer.autolink(e,ce))return e=e.substring(t.raw.length),u.push(t),"continue";if(!l.state.inLink&&(t=l.tokenizer.url(e,ce)))return e=e.substring(t.raw.length),u.push(t),"continue";if(r=e,l.options.extensions&&l.options.extensions.startInline){var i,c=1/0,d=e.slice(1);l.options.extensions.startInline.forEach((function(e){"number"===typeof(i=e.call({lexer:this},d))&&i>=0&&(c=Math.min(c,i))})),c<1/0&&c>=0&&(r=e.substring(0,c+1))}if(t=l.tokenizer.inlineText(r,se))return e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),o=!0,(n=u[u.length-1])&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),"continue";if(e){var f="Infinite loop on byte: "+e.charCodeAt(0);if(l.options.silent)return console.error(f),"break";throw new Error(f)}};e;){var f=d();if("continue"!==f&&"break"===f)break}return u}}],[{key:"rules",get:function(){return{block:le,inline:ue}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}]),e}(),fe=function(){function e(t){(0,d.Z)(this,e),this.options=t||P}return(0,f.Z)(e,[{key:"code",value:function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+N(r)+'">'+(n?e:N(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:N(e,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}},{key:"html",value:function(e){return e}},{key:"heading",value:function(e,t,n,r){if(this.options.headerIds){var i=this.options.headerPrefix+r.slug(n);return"<h".concat(t,' id="').concat(i,'">').concat(e,"</h").concat(t,">\n")}return"<h".concat(t,">").concat(e,"</h").concat(t,">\n")}},{key:"hr",value:function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}},{key:"list",value:function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}},{key:"listitem",value:function(e){return"<li>".concat(e,"</li>\n")}},{key:"checkbox",value:function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}},{key:"paragraph",value:function(e){return"<p>".concat(e,"</p>\n")}},{key:"table",value:function(e,t){return t&&(t="<tbody>".concat(t,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}},{key:"tablerow",value:function(e){return"<tr>\n".concat(e,"</tr>\n")}},{key:"tablecell",value:function(e,t){var n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"</".concat(n,">\n")}},{key:"strong",value:function(e){return"<strong>".concat(e,"</strong>")}},{key:"em",value:function(e){return"<em>".concat(e,"</em>")}},{key:"codespan",value:function(e){return"<code>".concat(e,"</code>")}},{key:"br",value:function(){return this.options.xhtml?"<br/>":"<br>"}},{key:"del",value:function(e){return"<del>".concat(e,"</del>")}},{key:"link",value:function(e,t,n){if(null===(e=K(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"}},{key:"image",value:function(e,t,n){if(null===(e=K(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'.concat(e,'" alt="').concat(n,'"');return t&&(r+=' title="'.concat(t,'"')),r+=this.options.xhtml?"/>":">"}},{key:"text",value:function(e){return e}}]),e}(),he=function(){function e(){(0,d.Z)(this,e)}return(0,f.Z)(e,[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,t,n){return""+n}},{key:"image",value:function(e,t,n){return""+n}},{key:"br",value:function(){return""}}]),e}(),pe=function(){function e(){(0,d.Z)(this,e),this.seen={}}return(0,f.Z)(e,[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}},{key:"slug",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}]),e}(),ve=function(){function e(t){(0,d.Z)(this,e),this.options=t||P,this.options.renderer=this.options.renderer||new fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new he,this.slugger=new pe}return(0,f.Z)(e,[{key:"parse",value:function(e){var t,n,r,i,o,a,l,u,s,c,d,f,h,p,v,g,m,b,y,w=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],x="",k=e.length;for(t=0;t<k;t++)if(c=e[t],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type])||!1===(y=this.options.extensions.renderers[c.type].call({parser:this},c))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type))switch(c.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(c.tokens),c.depth,W(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(u="",l="",i=c.header.length,n=0;n<i;n++)l+=this.renderer.tablecell(this.parseInline(c.header[n].tokens),{header:!0,align:c.align[n]});for(u+=this.renderer.tablerow(l),s="",i=c.rows.length,n=0;n<i;n++){for(l="",o=(a=c.rows[n]).length,r=0;r<o;r++)l+=this.renderer.tablecell(this.parseInline(a[r].tokens),{header:!1,align:c.align[r]});s+=this.renderer.tablerow(l)}x+=this.renderer.table(u,s);continue;case"blockquote":s=this.parse(c.tokens),x+=this.renderer.blockquote(s);continue;case"list":for(d=c.ordered,f=c.start,h=c.loose,i=c.items.length,s="",n=0;n<i;n++)g=(v=c.items[n]).checked,m=v.task,p="",v.task&&(b=this.renderer.checkbox(g),h?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=b+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=b+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:b}):p+=b),p+=this.parse(v.tokens,h),s+=this.renderer.listitem(p,m,g);x+=this.renderer.list(s,d,f);continue;case"html":x+=this.renderer.html(c.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(s=c.tokens?this.parseInline(c.tokens):c.text;t+1<k&&"text"===e[t+1].type;)s+="\n"+((c=e[++t]).tokens?this.parseInline(c.tokens):c.text);x+=w?this.renderer.paragraph(s):s;continue;default:var D='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(D);throw new Error(D)}else x+=y||"";return x}},{key:"parseInline",value:function(e,t){t=t||this.renderer;var n,r,i,o="",a=e.length;for(n=0;n<a;n++)if(r=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type])||!1===(i=this.options.extensions.renderers[r.type].call({parser:this},r))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type))switch(r.type){case"escape":case"text":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;default:var l='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(l);throw new Error(l)}else o+=i||"";return o}}],[{key:"parse",value:function(t,n){return new e(n).parse(t)}},{key:"parseInline",value:function(t,n){return new e(n).parseInline(t)}}]),e}();function ge(e,t,n){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"===typeof t&&(n=t,t=null),re(t=ee({},ge.defaults,t||{})),n){var r,i=t.highlight;try{r=de.lex(e,t)}catch(s){return n(s)}var o=function(e){var o;if(!e)try{t.walkTokens&&ge.walkTokens(r,t.walkTokens),o=ve.parse(r,t)}catch(s){e=s}return t.highlight=i,e?n(e):n(null,o)};if(!i||i.length<3)return o();if(delete t.highlight,!r.length)return o();var a=0;return ge.walkTokens(r,(function(e){"code"===e.type&&(a++,setTimeout((function(){i(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--a&&o()}))}),0))})),void(0===a&&o())}function l(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+N(e.message+"",!0)+"</pre>";throw e}try{var u=de.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(ge.walkTokens(u,t.walkTokens)).then((function(){return ve.parse(u,t)})).catch(l);ge.walkTokens(u,t.walkTokens)}return ve.parse(u,t)}catch(s){l(s)}}ge.options=ge.setOptions=function(e){var t;return ee(ge.defaults,e),t=ge.defaults,P=t,ge},ge.getDefaults=O,ge.defaults=P,ge.use=function(){for(var e=ge.defaults.extensions||{renderers:{},childTokens:{}},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){var n=ee({},t);if(n.async=ge.defaults.async||n.async,t.extensions&&(t.extensions.forEach((function(t){if(!t.name)throw new Error("extension name required");if(t.renderer){var n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=t.renderer.apply(this,r);return!1===o&&(o=n.apply(this,r)),o}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){var r=ge.defaults.renderer||new fe,i=function(e){var n=r[e];r[e]=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var l=t.renderer[e].apply(r,o);return!1===l&&(l=n.apply(r,o)),l}};for(var o in t.renderer)i(o);n.renderer=r}if(t.tokenizer){var a=ge.defaults.tokenizer||new ae,l=function(e){var n=a[e];a[e]=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var l=t.tokenizer[e].apply(a,i);return!1===l&&(l=n.apply(a,i)),l}};for(var u in t.tokenizer)l(u);n.tokenizer=a}if(t.walkTokens){var s=ge.defaults.walkTokens;n.walkTokens=function(e){var n=[];return n.push(t.walkTokens.call(this,e)),s&&(n=n.concat(s.call(this,e))),n}}ge.setOptions(n)}))},ge.walkTokens=function(e,t){var n,r=[],i=(0,a.Z)(e);try{var o=function(){var e=n.value;switch(r=r.concat(t.call(ge,e)),e.type){case"table":var i,o=(0,a.Z)(e.header);try{for(o.s();!(i=o.n()).done;){var l=i.value;r=r.concat(ge.walkTokens(l.tokens,t))}}catch(p){o.e(p)}finally{o.f()}var u,s=(0,a.Z)(e.rows);try{for(s.s();!(u=s.n()).done;){var c,d=u.value,f=(0,a.Z)(d);try{for(f.s();!(c=f.n()).done;){var h=c.value;r=r.concat(ge.walkTokens(h.tokens,t))}}catch(p){f.e(p)}finally{f.f()}}}catch(p){s.e(p)}finally{s.f()}break;case"list":r=r.concat(ge.walkTokens(e.items,t));break;default:ge.defaults.extensions&&ge.defaults.extensions.childTokens&&ge.defaults.extensions.childTokens[e.type]?ge.defaults.extensions.childTokens[e.type].forEach((function(n){r=r.concat(ge.walkTokens(e[n],t))})):e.tokens&&(r=r.concat(ge.walkTokens(e.tokens,t)))}};for(i.s();!(n=i.n()).done;)o()}catch(l){i.e(l)}finally{i.f()}return r},ge.parseInline=function(e,t){if("undefined"===typeof e||null===e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");re(t=ee({},ge.defaults,t||{}));try{var n=de.lexInline(e,t);return t.walkTokens&&ge.walkTokens(n,t.walkTokens),ve.parseInline(n,t)}catch(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+N(r.message+"",!0)+"</pre>";throw r}},ge.Parser=ve,ge.parser=ve.parse,ge.Renderer=fe,ge.TextRenderer=he,ge.Lexer=de,ge.lexer=de.lex,ge.Tokenizer=ae,ge.Slugger=pe,ge.parse=ge;ge.options,ge.setOptions,ge.use,ge.walkTokens,ge.parseInline,ve.parse,de.lex;var me,be=["onClickOutside"],ye=["width"],we=["width"],xe=["inWidth","inHeight","children"],ke=["placeholder","value","onKeyDown","highlight","altNewline","validatedSelection"];function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"This should not happen";throw new Error(e)}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed";if(!e)return De(t)}function Ee(e){return De("Hell froze over")}var Se=Object.prototype.hasOwnProperty;function Fe(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Fe(e[r],t[r]););return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(Se.call(e,n)&&++r&&!Se.call(t,n))return!1;if(!(n in t)||!Fe(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}var Me=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.apply(this,arguments)).wrapperRef=g.createRef(),e.clickOutside=function(t){if(null!==e.wrapperRef.current&&!e.wrapperRef.current.contains(t.target)){for(var n=t.target;null!==n;){if(n.classList.contains("click-outside-ignore"))return;n=n.parentElement}e.props.onClickOutside()}},e}return(0,f.Z)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.clickOutside,!0),document.addEventListener("contextmenu",this.clickOutside,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("contextmenu",this.clickOutside)}},{key:"render",value:function(){var e=this.props,t=(e.onClickOutside,(0,c.Z)(e,be));return g.createElement("div",(0,s.Z)((0,s.Z)({},t),{},{ref:this.wrapperRef}),this.props.children)}}]),n}(g.PureComponent);function Ae(e){var t,n;return{"--gdg-accent-color":e.accentColor,"--gdg-accent-fg":e.accentFg,"--gdg-accent-light":e.accentLight,"--gdg-text-dark":e.textDark,"--gdg-text-medium":e.textMedium,"--gdg-text-light":e.textLight,"--gdg-text-bubble":e.textBubble,"--gdg-bg-icon-header":e.bgIconHeader,"--gdg-fg-icon-header":e.fgIconHeader,"--gdg-text-header":e.textHeader,"--gdg-text-group-header":null!=(t=e.textGroupHeader)?t:e.textHeader,"--gdg-text-header-selected":e.textHeaderSelected,"--gdg-bg-cell":e.bgCell,"--gdg-bg-cell-medium":e.bgCellMedium,"--gdg-bg-header":e.bgHeader,"--gdg-bg-header-has-focus":e.bgHeaderHasFocus,"--gdg-bg-header-hovered":e.bgHeaderHovered,"--gdg-bg-bubble":e.bgBubble,"--gdg-bg-bubble-selected":e.bgBubbleSelected,"--gdg-bg-search-result":e.bgSearchResult,"--gdg-border-color":e.borderColor,"--gdg-horizontal-border-color":null!=(n=e.horizontalBorderColor)?n:e.borderColor,"--gdg-drilldown-border":e.drilldownBorder,"--gdg-link-color":e.linkColor,"--gdg-cell-horizontal-padding":"".concat(e.cellHorizontalPadding,"px"),"--gdg-cell-vertical-padding":"".concat(e.cellVerticalPadding,"px"),"--gdg-header-font-style":e.headerFontStyle,"--gdg-base-font-style":e.baseFontStyle,"--gdg-font-family":e.fontFamily,"--gdg-editor-font-size":e.editorFontSize}}var Ze={accentColor:"#4F5DFF",accentFg:"#FFFFFF",accentLight:"rgba(62, 116, 253, 0.1)",textDark:"#313139",textMedium:"#737383",textLight:"#B2B2C0",textBubble:"#313139",bgIconHeader:"#737383",fgIconHeader:"#FFFFFF",textHeader:"#313139",textGroupHeader:"#313139BB",textHeaderSelected:"#FFFFFF",bgCell:"#FFFFFF",bgCellMedium:"#FAFAFB",bgHeader:"#F7F7F8",bgHeaderHasFocus:"#E9E9EB",bgHeaderHovered:"#EFEFF1",bgBubble:"#EDEDF3",bgBubbleSelected:"#FFFFFF",bgSearchResult:"#fff9e3",borderColor:"rgba(115, 116, 131, 0.16)",drilldownBorder:"rgba(0, 0, 0, 0)",linkColor:"#4F5DFF",cellHorizontalPadding:8,cellVerticalPadding:3,headerIconSize:18,headerFontStyle:"600 13px",baseFontStyle:"13px",fontFamily:"Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif",editorFontSize:"13px",lineHeight:1.4};function Re(){return Ze}var Ie=g.createContext(Ze);function Oe(){return g.useContext(Ie)}var Pe,Te,He,Le,ze=null,Be=void 0,_e="header",Ne="group-header",Ve="out-of-bounds";(Te=Pe||(Pe={})).Uri="uri",Te.Text="text",Te.Image="image",Te.RowID="row-id",Te.Number="number",Te.Bubble="bubble",Te.Boolean="boolean",Te.Loading="loading",Te.Markdown="markdown",Te.Drilldown="drilldown",Te.Protected="protected",Te.Custom="custom",(Le=He||(He={})).HeaderRowID="headerRowID",Le.HeaderCode="headerCode",Le.HeaderNumber="headerNumber",Le.HeaderString="headerString",Le.HeaderBoolean="headerBoolean",Le.HeaderAudioUri="headerAudioUri",Le.HeaderVideoUri="headerVideoUri",Le.HeaderEmoji="headerEmoji",Le.HeaderImage="headerImage",Le.HeaderUri="headerUri",Le.HeaderPhone="headerPhone",Le.HeaderMarkdown="headerMarkdown",Le.HeaderDate="headerDate",Le.HeaderTime="headerTime",Le.HeaderEmail="headerEmail",Le.HeaderReference="headerReference",Le.HeaderIfThenElse="headerIfThenElse",Le.HeaderSingleValue="headerSingleValue",Le.HeaderLookup="headerLookup",Le.HeaderTextTemplate="headerTextTemplate",Le.HeaderMath="headerMath",Le.HeaderRollup="headerRollup",Le.HeaderJoinStrings="headerJoinStrings",Le.HeaderSplitString="headerSplitString",Le.HeaderGeoDistance="headerGeoDistance",Le.HeaderArray="headerArray",Le.RowOwnerOverlay="rowOwnerOverlay",Le.ProtectedColumnOverlay="protectedColumnOverlay";var We,je,Ue,Xe="___gdg_header_cell_",Ye=Xe+"checked",Ke=Xe+"unchecked",$e=Xe+"indeterminate";function Ge(e){return"width"in e&&"number"===typeof e.width}function qe(e){return Qe.apply(this,arguments)}function Qe(){return(Qe=(0,o.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==typeof t){e.next=2;break}return e.abrupt("return",t);case 2:return e.next=4,t();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Je(e){return e.kind!==Pe.Loading&&e.kind!==Pe.Bubble&&e.kind!==Pe.RowID&&e.kind!==Pe.Protected&&e.kind!==Pe.Drilldown}function et(e){return e.kind===We.Marker||e.kind===We.NewRow}function tt(e){return!(!Je(e)||e.kind===Pe.Image)&&(e.kind===Pe.Text||e.kind===Pe.Number||e.kind===Pe.Markdown||e.kind===Pe.Uri||e.kind===Pe.Custom||e.kind===Pe.Boolean?!0!==e.readonly:void Ee())}function nt(e){return D(e,"editor")}function rt(e){var t;return!(null!=(t=e.readonly)&&t)}(je=We||(We={})).NewRow="new-row",je.Marker="marker";var it=function(e){function t(e){var n=this;(0,d.Z)(this,t),this.items=e,this.offset=function(e){return 0===e?n:new t(n.items.map((function(t){return[t[0]+e,t[1]+e]})))},this.add=function(e){var r="number"===typeof e?[e,e+1]:e,i=function(e){if(0===e.length)return[];var t=(0,l.Z)(e),n=[];t.sort((function(e,t){return e[0]-t[0]})),n.push((0,l.Z)(t[0]));var r,i=(0,a.Z)(t.slice(1));try{for(i.s();!(r=i.n()).done;){var o=r.value,u=n[n.length-1];u[1]<o[0]?n.push((0,l.Z)(o)):u[1]<o[1]&&(u[1]=o[1])}}catch(s){i.e(s)}finally{i.f()}return n}([].concat((0,l.Z)(n.items),[r]));return new t(i)},this.remove=function(e){var r,i=(0,l.Z)(n.items),o="number"===typeof e?e:e[0],s="number"===typeof e?e+1:e[1],c=(0,a.Z)(i.entries());try{for(c.s();!(r=c.n()).done;){var d=(0,u.Z)(r.value,2),f=d[0],h=d[1],p=(0,u.Z)(h,2),v=p[0],g=p[1];if(v<=s&&o<=g){var m=[];v<o&&m.push([v,o]),s<g&&m.push([s,g]),i.splice.apply(i,[f,1].concat(m))}}}catch(b){c.e(b)}finally{c.f()}return new t(i)},this.first=function(){if(0!==n.items.length)return n.items[0][0]},this.last=function(){if(0!==n.items.length)return n.items.slice(-1)[0][1]-1},this.hasIndex=function(e){for(var t=0;t<n.items.length;t++){var r=(0,u.Z)(n.items[t],2),i=r[0],o=r[1];if(e>=i&&e<o)return!0}return!1},this.hasAll=function(e){for(var t=e[0];t<e[1];t++)if(!n.hasIndex(t))return!1;return!0},this.some=function(e){var t,r=(0,a.Z)(n);try{for(r.s();!(t=r.n()).done;){if(e(t.value))return!0}}catch(i){r.e(i)}finally{r.f()}return!1},this.equals=function(e){if(e===n)return!0;if(e.items.length!==n.items.length)return!1;for(var t=0;t<n.items.length;t++){var r=e.items[t],i=n.items[t];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0},this.toArray=function(){var e,t=[],r=(0,a.Z)(n.items);try{for(r.s();!(e=r.n()).done;)for(var i=(0,u.Z)(e.value,2),o=i[0],l=i[1],s=o;s<l;s++)t.push(s)}catch(c){r.e(c)}finally{r.f()}return t}}return(0,f.Z)(t,[{key:"length",get:function(){var e,t=0,n=(0,a.Z)(this.items);try{for(n.s();!(e=n.n()).done;){var r=(0,u.Z)(e.value,2),i=r[0];t+=r[1]-i}}catch(o){n.e(o)}finally{n.f()}return t}},{key:e,value:(0,i.Z)().mark((function e(){var t,n,r,o,l,s;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,a.Z)(this.items),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=14;break}r=(0,u.Z)(n.value,2),o=r[0],l=r[1],s=o;case 6:if(!(s<l)){e.next=12;break}return e.next=9,s;case 9:s++,e.next=6;break;case 12:e.next=3;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),t.e(e.t0);case 19:return e.prev=19,t.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,16,19,22]])}))}]),t}(Symbol.iterator),ot=it;ot.empty=function(){return null!=Ue?Ue:Ue=new it([])},ot.fromSingleSelection=function(e){return it.empty().add(e)};var at=(0,v.d)("div")({name:"DataGridOverlayEditorStyle",class:"d1t1th9s",vars:{"d1t1th9s-0":[function(e){return e.targetY},"px"],"d1t1th9s-1":[function(e){return e.targetX-1},"px"],"d1t1th9s-2":[function(e){return e.targetY-1},"px"],"d1t1th9s-3":[function(e){return e.targetWidth+2},"px"],"d1t1th9s-4":[function(e){return e.targetHeight+2},"px"],"d1t1th9s-5":[function(e){return e.targetY+10},"px"],"d1t1th9s-6":[function(e){return Math.max(0,(e.targetHeight-28)/2)},"px"]}});function lt(){var e=function(){var e=g.useState(),t=(0,u.Z)(e,2),n=t[0];return[null!=n?n:void 0,t[1]]}(),t=(0,u.Z)(e,2),n=t[0],r=t[1],i=g.useState(0),o=(0,u.Z)(i,2),a=o[0],l=o[1],s=g.useState(!0),c=(0,u.Z)(s,2),d=c[0],f=c[1];return g.useLayoutEffect((function(){if(void 0!==n&&"IntersectionObserver"in window){var e=new IntersectionObserver((function(e){0!==e.length&&f(e[0].isIntersecting)}),{threshold:1});return e.observe(n),function(){return e.disconnect()}}}),[n]),g.useEffect((function(){if(!d&&void 0!==n){var e;return e=requestAnimationFrame((function t(){var r=n.getBoundingClientRect().right;l((function(e){return Math.min(e+window.innerWidth-r-10,0)})),e=requestAnimationFrame(t)})),function(){void 0!==e&&cancelAnimationFrame(e)}}}),[n,d]),{ref:r,style:g.useMemo((function(){return{transform:"translateX(".concat(a,"px)")}}),[a])}}var ut=function(e){var t=e.target,n=e.content,r=e.onFinishEditing,a=e.forceEditMode,l=e.initialValue,c=e.imageEditorOverride,d=e.markdownDivCreateNode,f=e.highlight,h=e.className,p=e.theme,v=e.id,m=e.cell,b=e.validateCell,y=e.getCellRenderer,w=e.provideEditor,x=g.useState(a?n:void 0),D=(0,u.Z)(x,2),C=D[0],E=D[1],S=g.useRef(null!=C?C:n);S.current=null!=C?C:n;var F,M,A=g.useState((function(){return void 0===b||!(Je(n)&&!1===(null==b?void 0:b(m,n,S.current)))})),Z=(0,u.Z)(A,2),R=Z[0],I=Z[1],O=g.useCallback((function(e,t){r(R?e:void 0,t)}),[R,r]),P=g.useCallback((function(e){if(void 0!==b&&void 0!==e&&Je(e)){var t=b(m,e,S.current);!1===t?I(!1):"object"===typeof t?(e=t,I(!0)):I(!0)}E(e)}),[m,b]),T=g.useRef(!1),H=g.useRef(void 0),L=g.useCallback((function(){O(C,[0,0]),T.current=!0}),[C,O]),z=g.useCallback((function(e){var t;O(e,null!=(t=H.current)?t:[0,0]),T.current=!0}),[O]),B=g.useCallback(function(){var e=(0,o.Z)((0,i.Z)().mark((function e(t){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!1,"Escape"===t.key?(t.stopPropagation(),t.preventDefault(),H.current=[0,0]):"Enter"!==t.key||t.shiftKey?"Tab"===t.key&&(t.stopPropagation(),t.preventDefault(),H.current=[t.shiftKey?-1:1,0],n=!0):(t.stopPropagation(),t.preventDefault(),H.current=[0,1],n=!0),window.setTimeout((function(){T.current||void 0===H.current||(O(n?C:void 0,H.current),T.current=!0)}),0);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[O,C]),_=null!=C?C:n,N=g.useMemo((function(){var e,t;if(et(n))return[];var r=null==w?void 0:w(n);return void 0!==r?[r,!1]:[null==(t=null==(e=y(n))?void 0:e.provideEditor)?void 0:t.call(e,n),!1]}),[n,y,w]),V=(0,u.Z)(N,2),W=V[0],j=V[1],U=lt(),X=U.ref,Y=U.style,K=!0,$=!0;if(void 0!==W){K=!0!==W.disablePadding,$=!0!==W.disableStyling;var G=nt(W);G&&(M=W.styleOverride);var q=G?W.editor:W;F=g.createElement(q,{isHighlighted:f,onChange:P,value:_,initialValue:l,onFinishedEditing:z,validatedSelection:Je(_)?_.selectionRange:void 0,forceEditMode:a,target:t,imageEditorOverride:c,markdownDivCreateNode:d,isValid:R})}M=(0,s.Z)((0,s.Z)({},M),Y);var Q=document.getElementById("portal");if(null===Q)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `<div id="portal" />` as the last child of your `<body>`.'),null;var J=$?"gdg-style":"gdg-unstyle";return R||(J+=" invalid"),K&&(J+=" pad"),(0,k.createPortal)(g.createElement(Ie.Provider,{value:p},g.createElement(Me,{style:Ae(p),className:h,onClickOutside:L},g.createElement(at,{ref:X,id:v,className:J,style:M,as:!0===j?"label":void 0,targetX:t.x,targetY:t.y,targetWidth:t.width,targetHeight:t.height},g.createElement("div",{className:"clip-region",onKeyDown:B},F)))),Q)},st=65536,ct=[];function dt(e,t){return t*st+e}function ft(e){return e%st}function ht(e,t){return(e-t)/st}function pt(e){var t=ft(e);return[t,ht(e,t)]}var vt=function(){function e(){var t=this;(0,d.Z)(this,e),this.imageLoaded=function(){},this.loadedLocations=[],this.visibleWindow={x:0,y:0,width:0,height:0},this.freezeCols=0,this.isInWindow=function(e){var n=ft(e),r=ht(e,n),i=t.visibleWindow;return n<t.freezeCols&&r>=i.y&&r<=i.y+i.height||n>=i.x&&n<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},this.cache={},this.sendLoaded=C((function(){t.imageLoaded(t.loadedLocations),t.loadedLocations=[]}),20),this.clearOutOfWindow=function(){for(var e=0,n=Object.keys(t.cache);e<n.length;e++){for(var r=n[e],i=t.cache[r],o=!1,a=0;a<i.cells.length;a++){var l=i.cells[a];if(t.isInWindow(l)){o=!0;break}}o?i.cells=i.cells.filter(t.isInWindow):(i.cancel(),delete t.cache[r])}}}return(0,f.Z)(e,[{key:"setCallback",value:function(e){this.imageLoaded=e}},{key:"setWindow",value:function(e,t){this.visibleWindow.x===e.x&&this.visibleWindow.y===e.y&&this.visibleWindow.width===e.width&&this.visibleWindow.height===e.height&&this.freezeCols===t||(this.visibleWindow=e,this.freezeCols=t,this.clearOutOfWindow())}},{key:"loadImage",value:function(e,t,n,r){var l,u=this,s=!1,c=null!=(l=ct.pop())?l:new Image,d=!1,f={img:void 0,cells:[dt(t,n)],url:e,cancel:function(){d||(d=!0,ct.length<12?ct.unshift(c):s||(c.src=""))}},h=new Promise((function(e){return c.addEventListener("load",(function(){return e(null)}))}));requestAnimationFrame((0,o.Z)((0,i.Z)().mark((function t(){var n,o,l,p;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,c.src=e,t.next=4,h;case 4:return t.next=6,c.decode();case 6:if(void 0!==(n=u.cache[r])&&!d){n.img=c,o=(0,a.Z)(n.cells);try{for(o.s();!(l=o.n()).done;)p=l.value,u.loadedLocations.push(pt(p))}catch(i){o.e(i)}finally{o.f()}s=!0,u.sendLoaded()}t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),f.cancel();case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))),this.cache[r]=f}},{key:"loadOrGetImage",value:function(e,t,n){var r=e,i=this.cache[r];if(void 0!==i){var o=dt(t,n);return i.cells.includes(o)||i.cells.push(o),i.img}this.loadImage(e,t,n,r)}}]),e}(),gt=vt;function mt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=g.useRef();o.current=t,g.useEffect((function(){if(null!==n&&void 0!==n.addEventListener){var t=n,a=function(e){var n;null==(n=o.current)||n.call(t,e)};return t.addEventListener(e,a,{passive:r,capture:i}),function(){t.removeEventListener(e,a,{capture:i})}}}),[e,n,r,i])}function bt(e,t){return void 0===e?void 0:t}var yt=Math.PI;function wt(e){return e*yt/180}var xt=function(e){var t,n=null!=(t=e.fgColor)?t:"currentColor";return g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.createElement("path",{d:"M12.7073 7.05029C7.87391 11.8837 10.4544 9.30322 6.03024 13.7273C5.77392 13.9836 5.58981 14.3071 5.50189 14.6587L4.52521 18.5655C4.38789 19.1148 4.88543 19.6123 5.43472 19.475L9.34146 18.4983C9.69313 18.4104 10.0143 18.2286 10.2706 17.9722L16.9499 11.2929",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),g.createElement("path",{d:"M20.4854 4.92901L19.0712 3.5148C18.2901 2.73375 17.0238 2.73375 16.2428 3.5148L14.475 5.28257C15.5326 7.71912 16.4736 8.6278 18.7176 9.52521L20.4854 7.75744C21.2665 6.97639 21.2665 5.71006 20.4854 4.92901Z",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}))},kt=function(e){var t,n=null!=(t=e.fgColor)?t:"currentColor";return g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.createElement("path",{d:"M19 6L10.3802 17L5.34071 11.8758",vectorEffect:"non-scaling-stroke",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};var Dt="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",Ct="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",Et=new RegExp("^[^"+Ct+"]*["+Dt+"]"),St=new RegExp("^[^"+Dt+"]*["+Ct+"]");var Ft=void 0;var Mt=Symbol();function At(e,t){return(null!=e?e:"")===(null!=t?t:"")}function Zt(e,t,n){var r=n.x,i=n.x+n.width-1,o=n.y,a=n.y+n.height-1,l=(0,u.Z)(e,2),s=l[0],c=l[1];if(c<o||c>a)return!1;if(void 0===t.span)return s>=r&&s<=i;var d=(0,u.Z)(t.span,2),f=d[0],h=d[1];return f>=r&&f<=i||h>=r&&f<=i||f<r&&h>i}function Rt(e,t){var n=e;if(void 0!==t){var r=(0,l.Z)(e),i=n[t.src];t.src>t.dest?(r.splice(t.src,1),r.splice(t.dest,0,i)):(r.splice(t.dest+1,0,i),r.splice(t.src,1)),n=r=r.map((function(t,n){return(0,s.Z)((0,s.Z)({},t),{},{sticky:e[n].sticky})}))}return n}function It(e,t){for(var n=0,r=Rt(e,t),i=0;i<r.length;i++){var o=r[i];if(!o.sticky)break;n+=o.width}return n}function Ot(e,t,n,r,i){var o,l=Rt(e,r),u=[],s=(0,a.Z)(l);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(!c.sticky)break;u.push(c)}}catch(m){s.e(m)}finally{s.f()}if(u.length>0){var d,f=(0,a.Z)(u);try{for(f.s();!(d=f.n()).done;){n-=d.value.width}}catch(m){f.e(m)}finally{f.f()}}for(var h=t,p=null!=i?i:0;p<=n&&h<l.length;)p+=l[h].width,h++;for(var v=t;v<h;v++){var g=l[v];g.sticky||u.push(g)}return u}var Pt=0,Tt={},Ht="undefined"===typeof window;function Lt(){return(Lt=(0,o.Z)((0,i.Z)().mark((function e(){var t;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ht&&void 0!==(null==(t=null==document?void 0:document.fonts)?void 0:t.ready)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,document.fonts.ready;case 4:Pt=0,Tt={},M();case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zt(e,t,n){var r=function(e,t,n,r){return"".concat(e,"_").concat(null!=r?r:t.font,"_").concat(n)}(e,t,"middle",n),i=Tt[r];return void 0===i&&(i=t.measureText(e),Tt[r]=i,Pt++),Pt>1e4&&(Tt={},Pt=0),i}function Bt(e,t){return"string"!==typeof t&&(t="".concat(t.baseFontStyle," ").concat(t.fontFamily)),function(e,t){var n,r=(0,a.Z)(Nt);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.key===t)return i.val}}catch(s){r.e(s)}finally{r.f()}var o=_t(e,"alphabetic"),l=_t(e,"middle"),u=-(l.actualBoundingBoxDescent-o.actualBoundingBoxDescent)+o.actualBoundingBoxAscent/2;return Nt.push({key:t,val:u}),u}(e,t)}function _t(e,t){e.save(),e.textBaseline=t;var n=e.measureText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");return e.restore(),n}!function(){Lt.apply(this,arguments)}();var Nt=[];function Vt(e,t,n){var r=e.ctx,i=e.theme,o=null!=t?t:{},a=null!=n?n:i.textDark;return a!==o.fillStyle&&(r.fillStyle=a,o.fillStyle=a),o}function Wt(e,t,n){var r=e.rect,i=e.ctx,o=e.theme;i.fillStyle=o.textDark,Xt({ctx:i,rect:r,theme:o},t,n)}function jt(e,t,n,r,i,o,a,l,u){"right"===u?e.fillText(t,n+i-(l.cellHorizontalPadding+.5),r+o/2+a):"center"===u?e.fillText(t,n+i/2,r+o/2+a):e.fillText(t,n+l.cellHorizontalPadding+.5,r+o/2+a)}function Ut(e,t){var n=zt("ABCi09jgqpy",e,t);return n.actualBoundingBoxAscent+n.actualBoundingBoxDescent}function Xt(e,t,n,r,i){var o=e.ctx,l=e.rect,u=e.theme,s=l.x,c=l.y,d=l.width,f=l.height;if(!(r=null!=r&&r)){t.includes("\n")&&(t=t.split(/\r?\n/)[0]);var h=d/4;t.length>h&&(t=t.slice(0,h))}var p,v=Bt(o,u),g="rtl"===(p=t,Et.test(p)?"rtl":St.test(p)?"ltr":"neutral");if(void 0===n&&g&&(n="right"),g&&(o.direction="rtl"),t.length>0){var m=!1;if("right"===n?(o.textAlign="right",m=!0):void 0!==n&&"left"!==n&&(o.textAlign=n,m=!0),r){var b="".concat(u.fontFamily," ").concat(u.baseFontStyle),y=function(e,t,n,r,i,o){var l="".concat(t,"_").concat(n,"_").concat(r,"px"),u=E.get(l);if(void 0!==u)return u;if(r<=0)return[];var s,c=[],d=t.split("\n"),f=S.get(n),h=void 0===f?t.length:r/f.size*1.5,p=i&&void 0!==f&&f.count>2e4,v=(0,a.Z)(d);try{for(v.s();!(s=v.n()).done;){var g=s.value,m=A(e,g.slice(0,Math.max(0,h)),n,p),b=Math.min(g.length,h);if(m<=r)c.push(g);else{for(;m>r;){var y=Z(e,g,r,n,m,b,p,o),w=g.slice(0,Math.max(0,y));g=g.slice(w.length),c.push(w),m=A(e,g.slice(0,Math.max(0,h)),n,p),b=Math.min(g.length,h)}m>0&&c.push(g)}}}catch(x){v.e(x)}finally{v.f()}return c=c.map((function(e,t){return 0===t?e.trimEnd():e.trim()})),E.set(l,c),E.size>500&&E.delete(E.keys().next().value),c}(o,t,b,d-2*u.cellHorizontalPadding,null!=i&&i),w=Ut(o,b),x=u.lineHeight*w,k=w+x*(y.length-1),D=k+u.cellVerticalPadding>f;D&&(o.save(),o.rect(s,c,d,f),o.clip());var C,F=c+f/2-k/2,M=Math.max(c+u.cellVerticalPadding,F),R=(0,a.Z)(y);try{for(R.s();!(C=R.n()).done;){if(jt(o,C.value,s,M,d,w,v,u,n),(M+=x)>c+f)break}}catch(I){R.e(I)}finally{R.f()}D&&o.restore()}else jt(o,t,s,c,d,f,v,u,n);m&&(o.textAlign="start"),g&&(o.direction="inherit")}}function Yt(e,t,n,r,i,o,a,l){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:-20,s=arguments.length>9&&void 0!==arguments[9]?arguments[9]:-20,c=r+o/2,d=i+a/2,f=a/1.89,h=a/2,p=a/3.4,v=Math.abs(u-o/2)<p&&Math.abs(s-a/2)<p,g=4,m=a/4.25,b=a/4,y=a/8.5;switch(n){case!0:e.beginPath(),$t(e,c-f/2,d-f/2,f,f,g),e.fillStyle=l?t.accentColor:t.textMedium,e.fill(),e.beginPath(),e.moveTo(c-m+a/9.31,d-m+a/4.33),e.lineTo(c-m+a/5.33,d-m+a/3.17),e.lineTo(c-m+a/2.83,d-m+a/7.16),e.strokeStyle=t.bgCell,e.lineJoin="round",e.lineCap="round",e.lineWidth=1.9,e.stroke();break;case ze:case!1:e.beginPath(),$t(e,c-b,d-b,h,h,g),e.lineWidth=1,e.strokeStyle=v?t.textDark:t.textMedium,e.stroke();break;case Be:e.beginPath(),$t(e,c-b,d-b,h,h,g),e.fillStyle=v?t.textMedium:t.textLight,e.fill(),e.beginPath(),e.moveTo(c-y,d),e.lineTo(c+y,d),e.strokeStyle=t.bgCell,e.lineCap="round",e.lineWidth=1.9,e.stroke();break;default:Ee()}}function Kt(e){e.ctx.textAlign="start"}function $t(e,t,n,r,i,o){"number"===typeof o&&(o={tl:o,tr:o,br:o,bl:o}),o={tl:Math.min(o.tl,i/2,r/2),tr:Math.min(o.tr,i/2,r/2),bl:Math.min(o.bl,i/2,r/2),br:Math.min(o.br,i/2,r/2)},e.moveTo(t+o.tl,n),e.arcTo(t+r,n,t+r,n+o.tr,o.tr),e.arcTo(t+r,n+i,t+r-o.br,n+i,o.br),e.arcTo(t,n+i,t,n+i-o.bl,o.bl),e.arcTo(t,n,t+o.tl,n,o.tl)}var Gt={};function qt(e,t){var n,r=e.rect,i=e.theme,o=e.ctx,l=e.imageLoader,s=e.col,c=e.row,d=r.x,f=r.width,h="".concat(i.baseFontStyle," ").concat(i.fontFamily),p=Ut(o,h),v=Math.min(r.height,Math.max(16,2*Math.ceil(p*i.lineHeight))),g=Math.floor(r.y+(r.height-v)/2),m=v-10,b=d+i.cellHorizontalPadding,y=function(e,t,n){var r=Math.ceil(window.devicePixelRatio),i=n-10,o=n*r,a=28*r,l="".concat(e,",").concat(t,",").concat(r,",").concat(n);if(void 0!==Gt[l])return{el:Gt[l],height:o,width:a,middleWidth:4*r,sideWidth:11*r,padding:5*r,dpr:r};var u=document.createElement("canvas"),s=u.getContext("2d");if(null===s)return null;u.width=a,u.height=o,s.scale(r,r),Gt[l]=u;var c=Math.min(6,9,i/2);return s.beginPath(),$t(s,5,5,18,i,c),s.shadowColor="rgba(24, 25, 34, 0.4)",s.shadowBlur=1,s.fillStyle=e,s.fill(),s.shadowColor="rgba(24, 25, 34, 0.3)",s.shadowOffsetY=1,s.shadowBlur=5,s.fillStyle=e,s.fill(),s.shadowOffsetY=0,s.shadowBlur=0,s.shadowBlur=0,s.beginPath(),$t(s,5.5,5.5,18,i,c),s.strokeStyle=t,s.lineWidth=1,s.stroke(),{el:u,height:o,width:a,sideWidth:11*r,middleWidth:6*r,padding:5*r,dpr:r}}(i.bgCell,i.drilldownBorder,v),w=[],x=(0,a.Z)(t);try{for(x.s();!(n=x.n()).done;){var k=n.value;if(b>d+f)break;var D=zt(k.text,o,h).width,C=0;if(void 0!==k.img)void 0!==l.loadOrGetImage(k.img,s,c)&&(C=m-8+4);var E=D+C+16;w.push({x:b,width:E}),b+=E+4}}catch(Q){x.e(Q)}finally{x.f()}if(null!==y){var S,F=y.el,M=y.height,A=y.middleWidth,Z=y.sideWidth,R=y.width,I=y.dpr,O=Z/I,P=y.padding/I,T=(0,a.Z)(w);try{for(T.s();!(S=T.n()).done;){var H=S.value,L=Math.floor(H.x),z=Math.floor(H.width);o.imageSmoothingEnabled=!1,o.drawImage(F,0,0,Z,M,L-P,g,O,v),H.width>2*Z&&o.drawImage(F,Z,0,A,M,L+(O-P),g,z-2*(O-P),v),o.drawImage(F,R-Z,0,Z,M,L+z-(O-P),g,O,v),o.imageSmoothingEnabled=!0}}catch(Q){T.e(Q)}finally{T.f()}}o.beginPath();var B,_=(0,a.Z)(w.entries());try{for(_.s();!(B=_.n()).done;){var N=(0,u.Z)(B.value,2),V=N[0],W=N[1],j=t[V],U=W.x+8;if(void 0!==j.img){var X=l.loadOrGetImage(j.img,s,c);if(void 0!==X){var Y=m-8,K=0,$=0,G=X.width,q=X.height;G>q?(K+=(G-q)/2,G=q):q>G&&($+=(q-G)/2,q=G),o.beginPath(),$t(o,U,g+v/2-Y/2,Y,Y,3),o.save(),o.clip(),o.drawImage(X,K,$,G,q,U,g+v/2-Y/2,Y,Y),o.restore(),U+=Y+4}}o.beginPath(),o.fillStyle=i.textBubble,o.fillText(j.text,U,g+v/2+Bt(o,i))}}catch(Q){_.e(Q)}finally{_.f()}}function Qt(e,t,n,r,i,o,a,l,u,s,c,d,f,h,p){var v={x:0,y:o+s,width:0,height:0},g=o-i;if(e>=d){var m=a>e?-1:1,b=It(h);v.x+=b+u;for(var y=a;y!==e;y+=m)v.x+=h[1===m?y:y-1].width*m}else for(var w=0;w<e;w++)v.x+=h[w].width;if(v.width=h[e].width+1,-1===t)v.y=i,v.height=g;else if(-2===t){v.y=0,v.height=i;for(var x=e,k=h[e].group,D=h[e].sticky;x>0&&At(h[x-1].group,k)&&h[x-1].sticky===D;){var C=h[x-1];v.x-=C.width,v.width+=C.width,x--}for(var E=e;E+1<h.length&&At(h[E+1].group,k)&&h[E+1].sticky===D;){var S=h[E+1];v.width+=S.width,E++}if(!D){var F=It(h),M=v.x-F;M<0&&(v.x-=M,v.width+=M),v.x+v.width>n&&(v.width=n-v.x)}}else if(f&&t===c-1){var A="number"===typeof p?p:p(t);v.y=r-A,v.height=A}else{var Z=l>t?-1:1;if("number"===typeof p){var R=t-l;v.y+=R*p}else for(var I=l;I!==t;I+=Z)v.y+=p(I)*Z;v.height=("number"===typeof p?p:p(t))+1}return v}var Jt='<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg">',en=function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n<path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.29 4.947a3.368 3.368 0 014.723.04 3.375 3.375 0 01.041 4.729l-.009.009-1.596 1.597a3.367 3.367 0 01-5.081-.364.71.71 0 011.136-.85 1.95 1.95 0 002.942.21l1.591-1.593a1.954 1.954 0 00-.027-2.733 1.95 1.95 0 00-2.732-.027l-.91.907a.709.709 0 11-1.001-1.007l.915-.911.007-.007z" fill="').concat(t,'"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.55 8.678a3.368 3.368 0 015.082.364.71.71 0 01-1.136.85 1.95 1.95 0 00-2.942-.21l-1.591 1.593a1.954 1.954 0 00.027 2.733 1.95 1.95 0 002.73.028l.906-.906a.709.709 0 111.003 1.004l-.91.91-.008.01a3.368 3.368 0 01-4.724-.042 3.375 3.375 0 01-.041-4.728l.009-.009L6.55 8.678z" fill="').concat(t,'"/>\n</svg>\n ')},tn={headerRowID:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'<rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/><path d="M15.75 4h-1.5a.25.25 0 0 0-.177.074L9.308 8.838a3.75 3.75 0 1 0 1.854 1.854l1.155-1.157.967.322a.5.5 0 0 0 .65-.55l-.18-1.208.363-.363.727.331a.5.5 0 0 0 .69-.59l-.254-.904.647-.647A.25.25 0 0 0 16 5.75v-1.5a.25.25 0 0 0-.25-.25zM7.5 13.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0z" fill="').concat(t,'"/></svg>')},headerNumber:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="M6.52 12.78H5.51V8.74l-1.33.47v-.87l2.29-.83h.05v5.27zm5.2 0H8.15v-.69l1.7-1.83a6.38 6.38 0 0 0 .34-.4c.09-.11.16-.22.22-.32s.1-.19.12-.27a.9.9 0 0 0 0-.56.63.63 0 0 0-.15-.23.58.58 0 0 0-.22-.15.75.75 0 0 0-.29-.05c-.27 0-.48.08-.62.23a.95.95 0 0 0-.2.65H8.03c0-.24.04-.46.13-.67a1.67 1.67 0 0 1 .97-.91c.23-.1.49-.14.77-.14.26 0 .5.04.7.11.21.08.38.18.52.32.14.13.25.3.32.48a1.74 1.74 0 0 1 .03 1.13 2.05 2.05 0 0 1-.24.47 4.16 4.16 0 0 1-.35.47l-.47.5-1 1.05h2.32v.8zm1.8-3.08h.55c.28 0 .48-.06.61-.2a.76.76 0 0 0 .2-.55.8.8 0 0 0-.05-.28.56.56 0 0 0-.13-.22.6.6 0 0 0-.23-.15.93.93 0 0 0-.32-.05.92.92 0 0 0-.29.05.72.72 0 0 0-.23.12.57.57 0 0 0-.21.46H12.4a1.3 1.3 0 0 1 .5-1.04c.15-.13.33-.23.54-.3a2.48 2.48 0 0 1 1.4 0c.2.06.4.15.55.28.15.13.27.28.36.47.08.19.13.4.13.65a1.15 1.15 0 0 1-.2.65 1.36 1.36 0 0 1-.58.49c.15.05.28.12.38.2a1.14 1.14 0 0 1 .43.62c.03.13.05.26.05.4 0 .25-.05.47-.14.66a1.42 1.42 0 0 1-.4.49c-.16.13-.35.23-.58.3a2.51 2.51 0 0 1-.73.1c-.22 0-.44-.03-.65-.09a1.8 1.8 0 0 1-.57-.28 1.43 1.43 0 0 1-.4-.47 1.41 1.41 0 0 1-.15-.66h1a.66.66 0 0 0 .22.5.87.87 0 0 0 .58.2c.25 0 .45-.07.6-.2a.71.71 0 0 0 .21-.56.97.97 0 0 0-.06-.36.61.61 0 0 0-.18-.25.74.74 0 0 0-.28-.15 1.33 1.33 0 0 0-.37-.04h-.55V9.7z" fill="').concat(t,'"/>\n </svg>')},headerCode:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'<rect x="2" y="2" width="16" height="16" rx="4" fill="').concat(n,'"/><path d="m12.223 13.314 3.052-2.826a.65.65 0 0 0 0-.984l-3.052-2.822c-.27-.25-.634-.242-.865.022-.232.263-.206.636.056.882l2.601 2.41-2.601 2.41c-.262.245-.288.619-.056.882.231.263.595.277.865.026Zm-4.444.005c.266.25.634.241.866-.027.231-.263.206-.636-.06-.882L5.983 10l2.602-2.405c.266-.25.291-.62.06-.887-.232-.263-.596-.272-.866-.022L4.723 9.51a.653.653 0 0 0 0 .983l3.056 2.827Z" fill="').concat(t,'"/></svg>')},headerString:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path d="M8.182 12.4h3.636l.655 1.6H14l-3.454-8H9.455L6 14h1.527l.655-1.6zM10 7.44l1.36 3.651H8.64L10 7.441z" fill="').concat(t,'"/>\n</svg>')},headerBoolean:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <path\n d="M16.2222 2H3.77778C2.8 2 2 2.8 2 3.77778V16.2222C2 17.2 2.8 18 3.77778 18H16.2222C17.2 18 17.9911 17.2 17.9911 16.2222L18 3.77778C18 2.8 17.2 2 16.2222 2Z"\n fill="').concat(n,'"\n />\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M7.66667 6.66669C5.73368 6.66669 4.16667 8.15907 4.16667 10C4.16667 11.841 5.73368 13.3334 7.66667 13.3334H12.3333C14.2663 13.3334 15.8333 11.841 15.8333 10C15.8333 8.15907 14.2663 6.66669 12.3333 6.66669H7.66667ZM12.5 12.5C13.8807 12.5 15 11.3807 15 10C15 8.61931 13.8807 7.50002 12.5 7.50002C11.1193 7.50002 10 8.61931 10 10C10 11.3807 11.1193 12.5 12.5 12.5Z"\n fill="').concat(t,'"\n />\n</svg>')},headerAudioUri:en,headerVideoUri:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7 13.138a.5.5 0 00.748.434l5.492-3.138a.5.5 0 000-.868L7.748 6.427A.5.5 0 007 6.862v6.276z" fill="').concat(t,'"/>\n</svg>')},headerEmoji:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'\n <path d="M10 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 9.17A4.17 4.17 0 0 1 5.83 10 4.17 4.17 0 0 1 10 5.83 4.17 4.17 0 0 1 14.17 10 4.17 4.17 0 0 1 10 14.17z" fill="').concat(t,'"/>\n <path d="M8.33 8.21a.83.83 0 1 0-.03 1.67.83.83 0 0 0 .03-1.67zm3.34 0a.83.83 0 1 0-.04 1.67.83.83 0 0 0 .04-1.67z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.53 13.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="').concat(t,'"/>\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm0 11a5 5 0 1 1 .01-10.01A5 5 0 0 1 10 15z" fill="').concat(t,'"/>\n <path d="M8 7.86a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2zm4 0a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M12.53 11.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="').concat(t,'"/>\n </svg>')},headerImage:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path opacity=".5" fill-rule="evenodd" clip-rule="evenodd" d="M12.499 10.801a.5.5 0 01.835 0l2.698 4.098a.5.5 0 01-.418.775H10.22a.5.5 0 01-.417-.775l2.697-4.098z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.07 8.934a.5.5 0 01.824 0l4.08 5.958a.5.5 0 01-.412.782h-8.16a.5.5 0 01-.413-.782l4.08-5.958zM13.75 8.333a2.083 2.083 0 100-4.166 2.083 2.083 0 000 4.166z" fill="').concat(t,'"/>\n</svg>')},headerUri:en,headerPhone:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'\n <path fill="').concat(t,'" d="M3 3h14v14H3z"/>\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2zm-7.24 9.78h1.23c.15 0 .27.06.36.18l.98 1.28a.43.43 0 0 1-.05.58l-1.2 1.21a.45.45 0 0 1-.6.04A6.72 6.72 0 0 1 7.33 10c0-.61.1-1.2.25-1.78a6.68 6.68 0 0 1 2.12-3.3.44.44 0 0 1 .6.04l1.2 1.2c.16.17.18.42.05.59l-.98 1.29a.43.43 0 0 1-.36.17H8.98A5.38 5.38 0 0 0 8.67 10c0 .62.11 1.23.3 1.79z" fill="').concat(n,'"/>\n </svg>')},headerMarkdown:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="m13.49 13.15-2.32-3.27h1.4V7h1.86v2.88h1.4l-2.34 3.27zM11 13H9v-3l-1.5 1.92L6 10v3H4V7h2l1.5 2L9 7h2v6z" fill="').concat(t,'"/>\n </svg>')},headerDate:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path d="M14.8 4.182h-.6V3H13v1.182H7V3H5.8v1.182h-.6c-.66 0-1.2.532-1.2 1.182v9.454C4 15.468 4.54 16 5.2 16h9.6c.66 0 1.2-.532 1.2-1.182V5.364c0-.65-.54-1.182-1.2-1.182zm0 10.636H5.2V7.136h9.6v7.682z" fill="').concat(t,'"/>\n</svg>')},headerTime:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="M10 4a6 6 0 0 0-6 6 6 6 0 0 0 6 6 6 6 0 0 0 6-6 6 6 0 0 0-6-6zm0 10.8A4.8 4.8 0 0 1 5.2 10a4.8 4.8 0 1 1 4.8 4.8z" fill="').concat(t,'"/>\n <path d="M10 7H9v3.93L12.5 13l.5-.8-3-1.76V7z" fill="').concat(t,'"/>\n </svg>')},headerEmail:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10 8.643a1.357 1.357 0 100 2.714 1.357 1.357 0 000-2.714zM7.357 10a2.643 2.643 0 115.286 0 2.643 2.643 0 01-5.286 0z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.589 4.898A5.643 5.643 0 0115.643 10v.5a2.143 2.143 0 01-4.286 0V8a.643.643 0 011.286 0v2.5a.857.857 0 001.714 0V10a4.357 4.357 0 10-1.708 3.46.643.643 0 01.782 1.02 5.643 5.643 0 11-5.842-9.582z" fill="').concat(t,'"/>\n</svg>')},headerReference:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'\n <rect x="2" y="8" width="10" height="8" rx="2" fill="').concat(n,'"/>\n <rect x="8" y="4" width="10" height="8" rx="2" fill="').concat(n,'"/>\n <path d="M10.68 7.73V6l2.97 3.02-2.97 3.02v-1.77c-2.13 0-3.62.7-4.68 2.2.43-2.15 1.7-4.31 4.68-4.74z" fill="').concat(t,'"/>\n </svg>')},headerIfThenElse:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <path fill="').concat(t,'" d="M4 3h12v14H4z"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.6 2A1.6 1.6 0 002 3.6v12.8A1.6 1.6 0 003.6 18h12.8a1.6 1.6 0 001.6-1.6V3.6A1.6 1.6 0 0016.4 2H3.6zm11.3 10.8a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7h-1.4a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.6-.693.117.117 0 00.1-.115V10.35a.117.117 0 00-.117-.116h-2.8a.117.117 0 00-.117.116v2.333c0 .064.053.117.117.117h.117a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7H9.3a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.117a.117.117 0 00.117-.117V10.35a.117.117 0 00-.117-.117h-2.8a.117.117 0 00-.117.117v2.342c0 .058.042.106.1.115a.7.7 0 01.6.693v1.4a.7.7 0 01-.7.7H5.1a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.35a.116.116 0 00.116-.117v-2.45c0-.515.418-.933.934-.933h2.917a.117.117 0 00.117-.117V6.85a.117.117 0 00-.117-.116h-2.45a.7.7 0 01-.7-.7V5.1a.7.7 0 01.7-.7h6.067a.7.7 0 01.7.7v.934a.7.7 0 01-.7.7h-2.45a.117.117 0 00-.118.116v2.333c0 .064.053.117.117.117H13.5c.516 0 .934.418.934.934v2.45c0 .063.052.116.116.116h.35z" fill="').concat(n,'"/>\n</svg>')},headerSingleValue:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M9.98 13.33c.45 0 .74-.3.73-.75l-.01-.1-.16-1.67 1.45 1.05a.81.81 0 0 0 .5.18c.37 0 .72-.32.72-.76 0-.3-.17-.54-.49-.68l-1.63-.77 1.63-.77c.32-.14.49-.37.49-.67 0-.45-.34-.76-.71-.76a.81.81 0 0 0-.5.18l-1.47 1.03.16-1.74.01-.08c.01-.46-.27-.76-.72-.76-.46 0-.76.32-.75.76l.01.08.16 1.74-1.47-1.03a.77.77 0 0 0-.5-.18.74.74 0 0 0-.72.76c0 .3.17.53.49.67l1.63.77-1.62.77c-.32.14-.5.37-.5.68 0 .44.35.75.72.75a.78.78 0 0 0 .5-.17L9.4 10.8l-.16 1.68v.09c-.02.44.28.75.74.75z" fill="').concat(t,'"/>\n </svg>')},headerLookup:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M8 5.83H5.83a.83.83 0 0 0 0 1.67h1.69A4.55 4.55 0 0 1 8 5.83zm-.33 3.34H5.83a.83.83 0 0 0 0 1.66h2.72a4.57 4.57 0 0 1-.88-1.66zM5.83 12.5a.83.83 0 0 0 0 1.67h7.5a.83.83 0 1 0 0-1.67h-7.5zm8.8-2.9a3.02 3.02 0 0 0 .46-1.6c0-1.66-1.32-3-2.94-3C10.52 5 9.2 6.34 9.2 8s1.31 3 2.93 3c.58 0 1.11-.17 1.56-.47l2.04 2.08.93-.94-2.04-2.08zm-2.48.07c-.9 0-1.63-.75-1.63-1.67s.73-1.67 1.63-1.67c.9 0 1.63.75 1.63 1.67s-.73 1.67-1.63 1.67z" fill="').concat(t,'"/>\n </svg>')},headerTextTemplate:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M7.676 4.726V3l2.976 3.021-2.976 3.022v-1.77c-2.125 0-3.613.69-4.676 2.201.425-2.158 1.7-4.316 4.676-4.748zM10.182 14.4h3.636l.655 1.6H16l-3.454-8h-1.091L8 16h1.527l.655-1.6zM12 9.44l1.36 3.65h-2.72L12 9.44z" fill="').concat(t,'"/>\n</svg>')},headerMath:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.167 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666H4.167z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.083 4.167a.833.833 0 10-1.666 0v4.166a.833.833 0 101.666 0V4.167zM11.667 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666h-4.166zM5.367 11.688a.833.833 0 00-1.179 1.179l2.947 2.946a.833.833 0 001.178-1.178l-2.946-2.947z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.313 12.867a.833.833 0 10-1.178-1.179l-2.947 2.947a.833.833 0 101.179 1.178l2.946-2.946z" fill="').concat(t,'"/>\n <path d="M10.833 12.5c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833zM10.833 15c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833z" fill="').concat(t,'"/>\n</svg>')},headerRollup:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="M10 8.84a1.16 1.16 0 1 0 0 2.32 1.16 1.16 0 0 0 0-2.32zm3.02 3.61a3.92 3.92 0 0 0 .78-3.28.49.49 0 1 0-.95.2c.19.87-.02 1.78-.58 2.47a2.92 2.92 0 1 1-4.13-4.08 2.94 2.94 0 0 1 2.43-.62.49.49 0 1 0 .17-.96 3.89 3.89 0 1 0 2.28 6.27zM10 4.17a5.84 5.84 0 0 0-5.44 7.93.49.49 0 1 0 .9-.35 4.86 4.86 0 1 1 2.5 2.67.49.49 0 1 0-.4.88c.76.35 1.6.54 2.44.53a5.83 5.83 0 0 0 0-11.66zm3.02 3.5a.7.7 0 1 0-1.4 0 .7.7 0 0 0 1.4 0zm-6.97 5.35a.7.7 0 1 1 0 1.4.7.7 0 0 1 0-1.4z" fill="').concat(t,'"/>\n </svg>')},headerJoinStrings:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M12.4 13.565c1.865-.545 3.645-2.083 3.645-4.396 0-1.514-.787-2.604-2.071-2.604C12.69 6.565 12 7.63 12 8.939c1.114.072 1.865.726 1.865 1.683 0 .933-.8 1.647-1.84 2.023l.375.92zM4 5h6v2H4zM4 9h5v2H4zM4 13h4v2H4z" fill="').concat(t,'"/>\n</svg>')},headerSplitString:function(e){var t=e.fgColor,n=e.bgColor;return"\n ".concat(Jt,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M12.4 13.56c1.86-.54 3.65-2.08 3.65-4.4 0-1.5-.8-2.6-2.08-2.6S12 7.64 12 8.95c1.11.07 1.86.73 1.86 1.68 0 .94-.8 1.65-1.83 2.03l.37.91zM4 5h6v2H4zm0 4h5v2H4zm0 4h4v2H4z" fill="').concat(t,'"/>\n </svg>')},headerGeoDistance:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path d="M10 7a1 1 0 100-2v2zm0 6a1 1 0 100 2v-2zm0-8H7v2h3V5zm-3 6h5V9H7v2zm5 2h-2v2h2v-2zm1-1a1 1 0 01-1 1v2a3 3 0 003-3h-2zm-1-1a1 1 0 011 1h2a3 3 0 00-3-3v2zM4 8a3 3 0 003 3V9a1 1 0 01-1-1H4zm3-3a3 3 0 00-3 3h2a1 1 0 011-1V5z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.856 12.014a.5.5 0 00-.712.702L5.409 14l-1.265 1.284a.5.5 0 00.712.702l1.255-1.274 1.255 1.274a.5.5 0 00.712-.702L6.813 14l1.265-1.284a.5.5 0 00-.712-.702L6.11 13.288l-1.255-1.274zM12.856 4.014a.5.5 0 00-.712.702L13.409 6l-1.265 1.284a.5.5 0 10.712.702l1.255-1.274 1.255 1.274a.5.5 0 10.712-.702L14.813 6l1.265-1.284a.5.5 0 00-.712-.702L14.11 5.288l-1.255-1.274z" fill="').concat(t,'"/>\n</svg>')},headerArray:function(e){var t=e.fgColor,n=e.bgColor;return"".concat(Jt,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 7.25a.75.75 0 000-1.5h-6.5a.75.75 0 100 1.5h6.5zM15 10a.75.75 0 01-.75.75h-6.5a.75.75 0 010-1.5h6.5A.75.75 0 0115 10zm-.75 4.25a.75.75 0 000-1.5h-6.5a.75.75 0 000 1.5h6.5zm-8.987-7a.75.75 0 100-1.5.75.75 0 000 1.5zm.75 2.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm-.75 4.25a.75.75 0 100-1.5.75.75 0 000 1.5z" fill="').concat(t,'"/>\n</svg>')},rowOwnerOverlay:function(e){var t=e.fgColor,n=e.bgColor;return'\n <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M2 15v1h14v-2.5c0-.87-.44-1.55-.98-2.04a6.19 6.19 0 0 0-1.9-1.14 12.1 12.1 0 0 0-2.48-.67A4 4 0 1 0 5 6a4 4 0 0 0 2.36 3.65c-.82.13-1.7.36-2.48.67-.69.28-1.37.65-1.9 1.13A2.8 2.8 0 0 0 2 13.5V15z" fill="'.concat(n,'" stroke="').concat(t,'" stroke-width="2"/>\n </svg>')},protectedColumnOverlay:function(e){var t=e.fgColor,n=e.bgColor;return'\n <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12.43 6.04v-.18a3.86 3.86 0 0 0-7.72 0v.18A2.15 2.15 0 0 0 3 8.14v5.72C3 15.04 3.96 16 5.14 16H12c1.18 0 2.14-.96 2.14-2.14V8.14c0-1.03-.73-1.9-1.71-2.1zM7.86 6v-.14a.71.71 0 1 1 1.43 0V6H7.86z" fill="'.concat(n,'" stroke="').concat(t,'" stroke-width="2"/>\n </svg>\n')},renameIcon:function(e){var t=e.bgColor;return"".concat(Jt,'\n <path stroke="').concat(t,'" stroke-width="2" d="M12 3v14"/>\n <path stroke="').concat(t,'" stroke-width="2" stroke-linecap="round" d="M10 4h4m-4 12h4"/>\n <path d="M11 14h4a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-4v2h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-4v2ZM9.5 8H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h4.5v2H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h4.5v2Z" fill="').concat(t,'"/>\n </svg>\n')}};function nn(e,t){return"normal"===e?[t.bgIconHeader,t.fgIconHeader]:"selected"===e?["white",t.accentColor]:[t.accentColor,t.bgHeader]}var rn=function(){function e(t,n){(0,d.Z)(this,e),this.onSettled=n,this.spriteMap=new Map,this.inFlight=0,this.headerIcons=(0,s.Z)((0,s.Z)({},tn),t)}return(0,f.Z)(e,[{key:"drawSprite",value:function(e,t,n,r,i,o,a){var l=this,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=nn(t,a),d=(0,u.Z)(c,2),f=d[0],h=d[1],p=o*Math.ceil(window.devicePixelRatio),v="".concat(f,"_").concat(h,"_").concat(p,"_").concat(e),g=this.spriteMap.get(v);if(void 0===g){var m=this.headerIcons[e];if(void 0===m)return;var b=(g=document.createElement("canvas")).getContext("2d");if(null===b)return;var y=new Image;y.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(m({fgColor:h,bgColor:f}))),this.spriteMap.set(v,g);var w=y.decode();if(void 0===w)return;this.inFlight++,w.then((function(){b.drawImage(y,0,0,p,p)})).finally((function(){l.inFlight--,0===l.inFlight&&l.onSettled()}))}else s<1&&(n.globalAlpha=s),n.drawImage(g,0,0,p,p,r,i,o,o),s<1&&(n.globalAlpha=1)}}]),e}(),on={},an=null;function ln(e){var t=e.toLowerCase().trim();if(void 0!==on[t])return on[t];an=an||function(){var e=document.createElement("div");return e.style.opacity="0",e.style.pointerEvents="none",e.style.position="fixed",document.body.append(e),e}(),an.style.color="#000",an.style.color=t;var n=getComputedStyle(an).color;an.style.color="#fff",an.style.color=t;var r=getComputedStyle(an).color;if(r!==n)throw new Error("Could not parse color");var i=r.replace(/[^\d.,]/g,"").split(",").map(Number.parseFloat);return i.length<4&&i.push(1),on[t]=i,i}function un(e,t){var n=ln(e),r=(0,u.Z)(n,3),i=r[0],o=r[1],a=r[2];return"rgba(".concat(i,", ").concat(o,", ").concat(a,", ").concat(t,")")}function sn(e,t){if(void 0===t)return e;var n=ln(e),r=(0,u.Z)(n,4),i=r[0],o=r[1],a=r[2],l=r[3];if(1===l)return e;var s=ln(t),c=(0,u.Z)(s,4),d=c[0],f=c[1],h=c[2],p=c[3],v=l+p*(1-l),g=(l*o+p*f*(1-l))/v,m=(l*a+p*h*(1-l))/v;return"rgba(".concat((l*i+p*d*(1-l))/v,", ").concat(g,", ").concat(m,", ").concat(v,")")}function cn(e,t,n){if(n<=0)return e;if(n>=1)return t;var r=(0,l.Z)(ln(e));r[0]=r[0]*r[3],r[1]=r[1]*r[3],r[2]=r[2]*r[3];var i=(0,l.Z)(ln(t));i[0]=i[0]*i[3],i[1]=i[1]*i[3],i[2]=i[2]*i[3];var o=n,a=1-n,u=r[3]*a+i[3]*o,s=Math.floor((r[0]*a+i[0]*o)/u),c=Math.floor((r[1]*a+i[1]*o)/u),d=Math.floor((r[2]*a+i[2]*o)/u);return"rgba(".concat(s,", ").concat(c,", ").concat(d,", ").concat(u,")")}var dn={kind:Pe.Loading,allowOverlay:!1};function fn(e,t,n,r,i,o,a,l,u,s,c,d,f,h,p,v,g,m,b,y){var w,x;void 0!==p&&p[0][0]===r&&p[0][1]===t&&(w=p[1][0],x=p[1][1]);var k=void 0,D={ctx:e,theme:s,col:r,row:t,cell:n,rect:{x:i,y:o,width:a,height:l},highlighted:u,hoverAmount:h,hoverX:w,hoverY:x,imageLoader:d,spriteManager:f,hyperWrapping:v,requestAnimationFrame:function(){C=!0}},C=!1,E=function(e,t,n,r,i){var o=e.ctx,a=e.rect,l=e.theme,u=Number.MAX_SAFE_INTEGER;if(void 0!==t&&(u=n-t)<500){var s=1-u/500;o.globalAlpha=s,o.fillStyle=l.bgSearchResult,o.fillRect(a.x,a.y,a.width,a.height),o.globalAlpha=1,void 0!==r&&(r.fillStyle=l.bgSearchResult)}return i(),u<500}(D,n.lastUpdated,g,m,(function(){var e,t;if(!(!et(n)&&!0===(null==c?void 0:c(D)))){var r=y(n);if(void 0!==r){(null==m?void 0:m.renderer)!==r&&(null==(e=null==m?void 0:m.deprep)||e.call(m,D),m=void 0);var i=null==(t=r.drawPrep)?void 0:t.call(r,D,m);r.draw(D,n),k={deprep:null==i?void 0:i.deprep,fillStyle:null==i?void 0:i.fillStyle,font:null==i?void 0:i.font,renderer:r}}}}));return(E||C)&&(null==b||b([r,t])),k}function hn(e,t,n,r,i,o,l,u,s,c,d,f,h,p,v,g,m){var b,y,w,x=arguments.length>17&&void 0!==arguments[17]&&arguments[17];if(void 0!==s){e.beginPath(),e.save(),e.rect(0,0,o,l);var k,D=(0,a.Z)(s);try{for(D.s();!(k=D.n()).done;){var C=k.value;e.rect(C.x+1,C.y+1,C.width-1,C.height-1)}}catch(te){D.e(te)}finally{D.f()}e.clip("evenodd")}var E=null!=(b=m.horizontalBorderColor)?b:m.borderColor,S=m.borderColor,F=0,M=o,A=0,Z=l;if(void 0!==u&&u.length>0){F=Number.MAX_SAFE_INTEGER,A=Number.MAX_SAFE_INTEGER,M=Number.MIN_SAFE_INTEGER,Z=Number.MIN_SAFE_INTEGER;var I,O=(0,a.Z)(u);try{for(O.s();!(I=O.n()).done;){var P=I.value;F=Math.min(F,P.x-1),M=Math.max(M,P.x+P.width+1),A=Math.min(A,P.y-1),Z=Math.max(Z,P.y+P.height+1)}}catch(te){O.e(te)}finally{O.f()}}var T=[];e.beginPath();for(var H=.5,L=0;L<t.length;L++){var z=t[L];if(0!==z.width){H+=z.width;var B=z.sticky?H:H+r;B>=F&&B<=M&&p(L+1)&&T.push({x1:B,y1:Math.max(c,A),x2:B,y2:Math.min(l,Z),color:S})}}var _=f(g-1),N=l-_+.5,V="sticky"===v;if(V&&T.push({x1:F,y1:N,x2:M,y2:N,color:E}),!0!==x)for(var W=d+.5,j=n,U=V?l-_:l;W+i<=U;){var X=W+i;if(X>=A&&X<=Z-1&&(!V||j!==g-1||Math.abs(X-N)>1)){var Y=null==h?void 0:h(j);T.push({x1:F,y1:X,x2:M,y2:X,color:null!=(w=null!=(y=null==Y?void 0:Y.horizontalBorderColor)?y:null==Y?void 0:Y.borderColor)?w:E})}W+=f(j),j++}for(var K=R(T,(function(e){return e.color})),$=0,G=Object.keys(K);$<G.length;$++){var q=G[$];e.strokeStyle=q;var Q,J=(0,a.Z)(K[q]);try{for(J.s();!(Q=J.n()).done;){var ee=Q.value;e.moveTo(ee.x1,ee.y1),e.lineTo(ee.x2,ee.y2)}}catch(te){J.e(te)}finally{J.f()}e.stroke(),e.beginPath()}void 0!==s&&e.restore()}function pn(e,t){for(var n=[],r=e.x+e.width-26*t.length,i=e.y+e.height/2-13,o=0;o<t.length;o++)n.push({x:r,y:i,width:26,height:26}),r+=26;return n}function vn(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function gn(e,t,n,r){return{x:e+n-30,y:Math.max(t,t+r/2-15),width:30,height:Math.min(30,r)}}function mn(e,t,n,r,i,o,a,l,u,c,d,f,h,p){var v=o.title.startsWith(Xe),g=gn(t,n,r,i);if(void 0!==h){var m=o;if(v&&(m=(0,s.Z)((0,s.Z)({},o),{},{title:""})),h({ctx:e,theme:l,rect:{x:t,y:n,width:r,height:i},column:m,columnIndex:m.sourceIndex,isSelected:a,hoverAmount:d,isHovered:u,hasSelectedCell:c,spriteManager:f,menuBounds:g}))return}if(v){var b=void 0;return o.title===Ye&&(b=!0),o.title===Ke&&(b=!1),!0!==b&&(e.globalAlpha=d),Yt(e,l,b,t,n,r,i,!1,void 0,void 0),void(!0!==b&&(e.globalAlpha=1))}var y=l.cellHorizontalPadding,w=a?l.textHeaderSelected:l.textHeader,x=!0===o.hasMenu&&(u||p&&a),k=t+y;if(void 0!==o.icon){var D=a?"selected":"normal";"highlight"===o.style&&(D=a?"selected":"special");var C=l.headerIconSize;f.drawSprite(o.icon,D,e,k,n+(i-C)/2,C,l),void 0!==o.overlayIcon&&f.drawSprite(o.overlayIcon,a?"selected":"special",e,k+9,n+((i-18)/2+6),18,l),k+=Math.ceil(1.3*C)}if(x&&!0===o.hasMenu&&r>35){var E=(r-35)/r,S=(r-24.5)/r,F=e.createLinearGradient(t,0,t+r,0),M=un(w,0);F.addColorStop(0,w),F.addColorStop(E,w),F.addColorStop(S,M),F.addColorStop(1,M),e.fillStyle=F}else e.fillStyle=w;if(e.fillText(o.title,k,n+i/2+Bt(e,"".concat(l.headerFontStyle," ").concat(l.fontFamily))),x&&!0===o.hasMenu){e.beginPath();var A=g.x+g.width/2-5.5,Z=g.y+g.height/2-3;!function(e,t,n){for(var r,i=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=n/i,a=r/i;return{x:n,y:t.y-e.y,len:i,nx:o,ny:a,ang:Math.atan2(a,o)}},o=t.length,a=t[o-1],l=0;l<o;l++){var u=t[l%o],s=t[(l+1)%o],c=i(u,a),d=i(u,s),f=c.nx*d.ny-c.ny*d.nx,h=c.nx*d.nx-c.ny*-d.ny,p=Math.asin(f<-1?-1:f>1?1:f),v=1,g=!1;h<0?p<0?p=Math.PI+p:(p=Math.PI-p,v=-1,g=!0):p>0&&(v=-1,g=!0),r=void 0!==u.radius?u.radius:n;var m=p/2,b=Math.abs(Math.cos(m)*r/Math.sin(m)),y=void 0;b>Math.min(c.len/2,d.len/2)?(b=Math.min(c.len/2,d.len/2),y=Math.abs(b*Math.sin(m)/Math.cos(m))):y=r;var w=u.x+d.nx*b,x=u.y+d.ny*b;w+=-d.ny*y*v,x+=d.nx*y*v,e.arc(w,x,y,c.ang+Math.PI/2*v,d.ang-Math.PI/2*v,g),a=u,u=s}e.closePath()}(e,[{x:A,y:Z},{x:A+11,y:Z},{x:A+5.5,y:Z+6}],1),e.fillStyle=w,e.fill()}}function bn(e,t,n,r,i,o,a,l,c,d,f,h,p,v,g,m,b,y,w){var x,k=a+l;if(!(k<=0)){e.fillStyle=h.bgHeader,e.fillRect(0,0,i,k);var D=null!=(x=null==r?void 0:r[0])?x:[],C=(0,u.Z)(D,2),E=C[0],S=C[1],F="".concat(h.headerFontStyle," ").concat(h.fontFamily);e.font=F,Sn(t,0,o,0,k,(function(t,r,i,o){var u,g,x;if(void 0===b||b.some((function(e){return-1===e[1]&&e[0]===t.sourceIndex}))){var k=Math.max(0,o-r);e.save(),e.beginPath(),e.rect(r+k,l,t.width-k,a),e.clip();var D=m(null!=(u=t.group)?u:"").overrideTheme,C=void 0===t.themeOverride&&void 0===D?h:(0,s.Z)((0,s.Z)((0,s.Z)({},h),D),t.themeOverride);C.bgHeader!==h.bgHeader&&(e.fillStyle=C.bgHeader,e.fill());var M="".concat(C.headerFontStyle," ").concat(C.fontFamily);F!==M&&(e.font=M);var A=f.columns.hasIndex(t.sourceIndex),Z=void 0!==c||d,R=!Z&&-1===S&&E===t.sourceIndex,I=Z?0:null!=(x=null==(g=v.find((function(e){return e.item[0]===t.sourceIndex&&-1===e.item[1]})))?void 0:g.hoverAmount)?x:0,O=void 0!==(null==f?void 0:f.current)&&f.current.cell[0]===t.sourceIndex,P=A?C.accentColor:O?C.bgHeaderHasFocus:C.bgHeader,T=n?l:0,H=0===t.sourceIndex?0:1;A?(e.fillStyle=P,e.fillRect(r+H,T,t.width-H,a)):(O||I>0)&&(e.beginPath(),e.rect(r+H,T,t.width-H,a),O&&(e.fillStyle=C.bgHeaderHasFocus,e.fill()),I>0&&(e.globalAlpha=I,e.fillStyle=C.bgHeaderHovered,e.fill(),e.globalAlpha=1)),mn(e,r,T,t.width,a,t,A,C,R,O,I,p,y,w),e.restore()}})),n&&function(e,t,n,r,i,o,a,l,c,d,f,h){var p,v=null!=(p=null==o?void 0:o[0])?p:[],g=(0,u.Z)(v,2),m=g[0],b=g[1],y=0;Fn(t,n,r,i,(function(t,n,r,c,p,v){var g,w;if(void 0===h||h.some((function(e){return-2===e[1]&&e[0]>=t[0]&&e[0]<=t[1]}))){e.save(),e.beginPath(),e.rect(r,c,p,v),e.clip();var x=f(n),k=void 0===(null==x?void 0:x.overrideTheme)?a:(0,s.Z)((0,s.Z)({},a),x.overrideTheme),D=-2===b&&void 0!==m&&m>=t[0]&&m<=t[1],C=D?k.bgHeaderHovered:k.bgHeader;if(C!==a.bgHeader&&(e.fillStyle=C,e.fill()),e.fillStyle=null!=(g=k.textGroupHeader)?g:k.textHeader,void 0!==x){var E=r;if(void 0!==x.icon&&(l.drawSprite(x.icon,"normal",e,E+8,(i-20)/2,20,k),E+=26),e.fillText(x.name,E+8,i/2+Bt(e,"".concat(a.headerFontStyle," ").concat(a.fontFamily))),void 0!==x.actions&&D){var S=pn({x:r,y:c,width:p,height:v},x.actions);e.beginPath();var F=S[0].x-10,M=r+p-F;e.rect(F,0,M,i);var A=e.createLinearGradient(F,0,F+M,0),Z=un(C,0);A.addColorStop(0,Z),A.addColorStop(10/M,C),A.addColorStop(1,C),e.fillStyle=A,e.fill(),e.globalAlpha=.6;for(var R=null!=(w=null==o?void 0:o[1])?w:[-1,-1],I=(0,u.Z)(R,2),O=I[0],P=I[1],T=0;T<x.actions.length;T++){var H=x.actions[T],L=S[T],z=vn(L,O+r,P);z&&(e.globalAlpha=1),l.drawSprite(H.icon,"normal",e,L.x+L.width/2-10,L.y+L.height/2-10,20,k),z&&(e.globalAlpha=.6)}e.globalAlpha=1}}0!==r&&d(t[0])&&(e.beginPath(),e.moveTo(r+.5,0),e.lineTo(r+.5,i),e.strokeStyle=a.borderColor,e.lineWidth=1,e.stroke()),e.restore(),y=r+p}})),e.beginPath(),e.moveTo(y+.5,0),e.lineTo(y+.5,i),e.moveTo(0,i+.5),e.lineTo(n,i+.5),e.strokeStyle=a.borderColor,e.lineWidth=1,e.stroke()}(e,t,i,o,l,r,h,p,0,g,m,b)}}function yn(e,t,n,r,i,o,a,l){return e<=i+a&&i<=e+n&&t<=o+l&&o<=t+r}function wn(e,t,n,r,i,o,a,l,u,s,c,d,f,h){if(void 0!==f&&0!==f.length){var p="sticky"===d?c(s-1):0;e.beginPath(),Fn(t,n,a,i,(function(t,n,r,i,o,a){for(var l=0;l<f.length;l++){var u=f[l];if(-2===u[1]&&u[0]>=t[0]&&u[0]<=t[1]){e.rect(r,i,o,a);break}}})),Sn(t,u,a,l,o,(function(t,n,a,l,u){for(var v=Math.max(0,l-n),g=n+v+1,m=t.width-v-1,b=0;b<f.length;b++){var y=f[b];if(y[0]===t.sourceIndex&&(-1===y[1]||void 0===y[1])){e.rect(g,i,m,o-i);break}}h&&En(u,a,r,s,c,d,(function(n,i,o,a){for(var l=!1,u=0;u<f.length;u++){var s=f[u];if(s[0]===t.sourceIndex&&s[1]===i){l=!0;break}}if(l){var c=n+1,d=(a?c+o-1:Math.min(c+o-1,r-p))-c;d>0&&e.rect(g,c,m,d)}}))})),e.clip()}}function xn(e,t,n,r,i,o,a){var l,s,c,d,f=(0,u.Z)(e,2),h=f[0],p=f[1],v=null!=(s=null==(l=a.find((function(e){return!e.sticky})))?void 0:l.sourceIndex)?s:0;if(p>v){for(var g=Math.max(h,v),m=t,b=r,y=o.sourceIndex-1;y>=g;y--)m-=a[y].width,b+=a[y].width;for(var w=o.sourceIndex+1;w<=p;w++)b+=a[w].width;d={x:m,y:n,width:b,height:i}}if(v>h){for(var x=Math.min(p,v-1),k=t,D=r,C=o.sourceIndex-1;C>=h;C--)k-=a[C].width,D+=a[C].width;for(var E=o.sourceIndex+1;E<=x;E++)D+=a[E].width;c={x:k,y:n,width:D,height:i}}return[c,d]}function kn(e,t,n,r,i,o,l,c,d,f,h,p,v,g,m,b,y,w,x,k,D,C,E,S,F,M,A,Z,R,I,O){var P,T,H=null!=(P=null==x?void 0:x.length)?P:Number.MAX_SAFE_INTEGER,L=performance.now(),z="".concat(R.baseFontStyle," ").concat(R.fontFamily);e.font=z;var B=new Set;return Sn(t,c,o,l,i,(function(t,o,l,c,P){var _,N=Math.max(0,c-o),V=o+N,W=i+1,j=t.width-N,U=r-i-1;if(w.length>0){for(var X=!1,Y=0;Y<w.length;Y++){var K=w[Y];if(yn(V,W,j,U,K.x,K.y,K.width,K.height)){X=!0;break}}if(!X)return}var $=function(){e.save(),e.beginPath(),e.rect(V,W,j,U),e.clip()},G=k.columns.hasIndex(t.sourceIndex),q=p(null!=(_=t.group)?_:"").overrideTheme,Q=void 0===t.themeOverride&&void 0===q?R:(0,s.Z)((0,s.Z)((0,s.Z)({},R),q),t.themeOverride),J="".concat(Q.baseFontStyle," ").concat(Q.fontFamily);J!==z&&(z=J,e.font=J),$();var ee=void 0;return En(P,l,r,d,f,y,(function(r,i,l,f,p){var y,P,_,N;if(!(i<0)){if(void 0!==x){for(var V=!1,W=0;W<x.length;W++){var j=x[W];if(j[0]===t.sourceIndex&&j[1]===i){V=!0;break}}if(!V)return}if(w.length>0){for(var U=!1,X=0;X<w.length;X++){var Y=w[X];if(yn(o,r,t.width,l,Y.x,Y.y,Y.width,Y.height)){U=!0;break}}if(!U)return}var K=k.rows.hasIndex(i),q=g.hasIndex(i),te=i<d?h([t.sourceIndex,i]):dn,ne=o,re=t.width,ie=!1,oe=!1;if(void 0!==te.span){var ae=(0,u.Z)(te.span,2),le=ae[0],ue=ae[1],se="".concat(i,",").concat(le,",").concat(ue,",").concat(t.sticky);if(B.has(se))return void H--;var ce=xn(te.span,o,r,t.width,l,t,n),de=t.sticky?ce[0]:ce[1];if(t.sticky||void 0===ce[0]||(oe=!0),void 0!==de){ne=de.x,re=de.width,B.add(se),e.restore(),ee=void 0,e.save(),e.beginPath();var fe=Math.max(0,c-de.x);e.rect(de.x+fe,r,de.width-fe,l),void 0===T&&(T=[]),T.push({x:de.x+fe,y:r,width:de.width-fe,height:l}),e.clip(),ie=!0}}var he=null==v?void 0:v(i),pe=p&&void 0!==(null==(y=t.trailingRowOptions)?void 0:y.themeOverride)?null==(P=t.trailingRowOptions)?void 0:P.themeOverride:void 0,ve=void 0===te.themeOverride&&void 0===he&&void 0===pe?Q:(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},Q),he),pe),te.themeOverride);e.beginPath();var ge=[t.sourceIndex,i],me=function(e,t,n){if(void 0===(null==n?void 0:n.current))return!1;var r=(0,u.Z)(n.current.cell,2),i=r[0],o=r[1],a=(0,u.Z)(e,2),l=a[0];return a[1]===o&&(void 0===t.span?i===l:i>=t.span[0]&&i<=t.span[1])}(ge,te,k),be=function(e,t,n){var r=0;if(void 0===n.current)return r;Zt(e,t,n.current.range)&&r++;var i,o=(0,a.Z)(n.current.rangeStack);try{for(o.s();!(i=o.n()).done;)Zt(e,t,i.value)&&r++}catch(l){o.e(l)}finally{o.f()}return r}(ge,te,k),ye=void 0!==te.span&&k.columns.some((function(e){return void 0!==te.span&&e>=te.span[0]&&e<=te.span[1]}));me&&!m&&b?be=0:me&&(be=Math.max(be,1)),ye&&be++,me||(K&&be++,G&&!f&&be++);var we,xe=te.kind===Pe.Protected?ve.bgCellMedium:ve.bgCell;if((f||xe!==R.bgCell)&&(we=sn(xe,we)),be>0||q){q&&(we=sn(ve.bgHeader,we));for(var ke=0;ke<be;ke++)we=sn(ve.accentLight,we)}else!0===(null==D?void 0:D.some((function(e){return e[0]===t.sourceIndex&&e[1]===i})))&&(we=sn(ve.bgSearchResult,we));if(void 0!==C){var De,Ce=(0,a.Z)(C);try{for(Ce.s();!(De=Ce.n()).done;){var Ee=De.value,Se=Ee.range;Se.x<=t.sourceIndex&&t.sourceIndex<Se.x+Se.width&&Se.y<=i&&i<Se.y+Se.height&&(we=sn(Ee.color,we))}}catch(Ae){Ce.e(Ae)}finally{Ce.f()}}void 0!==we&&(e.fillStyle=we,void 0!==ee&&(ee.fillStyle=we),e.fillRect(ne,r,re,l)),"faded"===te.style&&(e.globalAlpha=.6);var Fe=M.find((function(e){return e.item[0]===t.sourceIndex&&e.item[1]===i}));if(re>10&&!oe){var Me="".concat(ve.baseFontStyle," ").concat(ve.fontFamily);Me!==z&&(e.font=Me,z=Me),ee=fn(e,i,te,t.sourceIndex,ne,r,re,l,be>0,ve,E,S,F,null!=(_=null==Fe?void 0:Fe.hoverAmount)?_:0,A,Z,L,ee,I,O)}return"faded"===te.style&&(e.globalAlpha=1),H--,ie&&(e.restore(),null==(N=null==ee?void 0:ee.deprep)||N.call(ee,{ctx:e}),ee=void 0,$(),z=J,e.font=J),H<=0}})),e.restore(),H<=0})),T}function Dn(e,t,n,r,i,o,a,l,s,c,d,f,h,p,v,g){var m;if(void 0!==d.current&&a.some((function(e){var t;return e.sourceIndex===(null==(t=d.current)?void 0:t.cell[0])}))){var b=(0,u.Z)(d.current.cell,2),y=b[0],w=b[1],x=h(d.current.cell),k=null!=(m=x.span)?m:[y,y],D="sticky"!==p||"sticky"===p&&w===g-1?0:f(g-1)-1,C=void 0;if(Sn(a,r,i,o,c,(function(r,i,o,a,u){if(!(r.sticky&&y>r.sourceIndex)&&!(r.sourceIndex<k[0]||r.sourceIndex>k[1]))return En(u,o,n,g,f,p,(function(o,u,c){if(u===w){var d=i,f=r.width;if(void 0!==x.span){var h=xn(x.span,i,o,r.width,c,r,l),p=r.sticky?h[0]:h[1];void 0!==p&&(d=p.x,f=p.width)}return C=function(){var i,l,u,h;a>d&&!r.sticky&&(e.beginPath(),e.rect(a,0,t-a,n),e.clip()),e.beginPath(),e.rect(d+.5,o+.5,f,c),e.strokeStyle=null!=(l=null==(i=r.themeOverride)?void 0:i.accentColor)?l:s.accentColor,e.lineWidth=1,e.stroke(),v&&(e.beginPath(),e.rect(d+f-4,o+c-4,4,4),e.fillStyle=null!=(h=null==(u=r.themeOverride)?void 0:u.accentColor)?h:s.accentColor,e.fill())},!0}})),!0})),void 0!==C){var E=function(){e.save(),e.beginPath(),e.rect(0,c,t,n-c-D),e.clip(),null==C||C(),e.restore()};return E(),E}}}function Cn(e,t){var n,r,i=e.canvas,o=e.headerCanvas,l=e.width,d=e.height,f=e.cellXOffset,h=e.cellYOffset,p=e.translateX,v=e.translateY,g=e.mappedColumns,m=e.enableGroups,b=e.freezeColumns,y=e.dragAndDropState,w=e.theme,x=e.drawFocus,k=e.headerHeight,D=e.groupHeaderHeight,C=e.disabledRows,E=e.rowHeight,S=e.verticalBorder,F=e.isResizing,M=e.selection,A=e.fillHandle,Z=e.lastRowSticky,R=e.rows,I=e.getCellContent,O=e.getGroupDetails,P=e.getRowThemeOverride,T=e.isFocused,H=e.drawCustomCell,L=e.drawHeaderCallback,z=e.prelightCells,B=e.highlightRegions,_=e.imageLoader,N=e.lastBlitData,V=e.hoverValues,W=e.hyperWrapping,j=e.hoverInfo,U=e.spriteManager,X=e.scrolling,Y=e.touchMode,K=e.enqueue,$=e.getCellRenderer,G=e.renderStrategy,q=e.bufferA,Q=e.bufferB,J=e.damage;if(0!==l&&0!==d){var ee="double-buffer"===G,te=X?1:Math.ceil(null!=(n=window.devicePixelRatio)?n:1),ne="direct"!==G&&function(e,t){if(void 0===t)return!1;if(e.width!==t.width||e.height!==t.height||e.theme!==t.theme||e.headerHeight!==t.headerHeight||e.rowHeight!==t.rowHeight||e.rows!==t.rows||e.getRowThemeOverride!==t.getRowThemeOverride||e.isFocused!==t.isFocused||e.isResizing!==t.isResizing||e.verticalBorder!==t.verticalBorder||e.getCellContent!==t.getCellContent||e.highlightRegions!==t.highlightRegions||e.selection!==t.selection||e.dragAndDropState!==t.dragAndDropState||e.prelightCells!==t.prelightCells||e.touchMode!==t.touchMode||e.scrolling!==t.scrolling)return!1;if(e.mappedColumns!==t.mappedColumns){if(e.mappedColumns.length>100||e.mappedColumns.length!==t.mappedColumns.length)return!1;for(var n,r=0;r<e.mappedColumns.length;r++){var i=e.mappedColumns[r],o=t.mappedColumns[r];if(!Fe(i,o)){if(void 0!==n)return!1;if(i.width===o.width)return!1;i.width;var a=(0,c.Z)(i,ye);if(o.width,!Fe(a,(0,c.Z)(o,we)))return!1;n=r}}return void 0===n||n}return!0}(e,t);i.width===l*te&&i.height===d*te||(i.width=l*te,i.height=d*te,i.style.width=l+"px",i.style.height=d+"px");var re=o,ie=m?D+k:k,oe=ie+1;re.width===l*te&&re.height===oe*te||(re.width=l*te,re.height=oe*te,re.style.width=l+"px",re.style.height=oe+"px"),!ee||q.width===l*te&&q.height===d*te||(q.width=l*te,q.height=d*te),!ee||Q.width===l*te&&Q.height===d*te||(Q.width=l*te,Q.height=d*te);var ae=N.current;if(!0!==ne||f!==(null==ae?void 0:ae.cellXOffset)||h!==(null==ae?void 0:ae.cellYOffset)||p!==(null==ae?void 0:ae.translateX)||v!==(null==ae?void 0:ae.translateY)){var le=null;ee&&(le=i.getContext("2d",{alpha:!1}));var ue,se=re.getContext("2d",{alpha:!1}),ce=(ue=ee?void 0!==J?"b"===(null==ae?void 0:ae.lastBuffer)?Q:q:"b"===(null==ae?void 0:ae.lastBuffer)?q:Q:i).getContext("2d",{alpha:!1}),de=ee?ue===q?Q:q:i;if(null!==se&&null!==ce){var fe="number"===typeof E?function(){return E}:E;se.save(),se.beginPath(),ce.save(),ce.beginPath(),se.textBaseline="middle",ce.textBaseline="middle",1!==te&&(se.scale(te,te),ce.scale(te,te));var he=Ot(g,f,l,y,p),pe=[],ve=x&&(null==(r=M.current)?void 0:r.cell[1])===h&&0===v,ge=function(){var e,t;bn(se,he,m,j,l,p,k,D,y,F,M,w,U,V,S,O,J,L,Y),hn(se,he,h,p,v,l,d,void 0,void 0,D,ie,fe,P,S,Z,R,w,!0),se.beginPath(),se.moveTo(0,oe-.5),se.lineTo(l,oe-.5),se.strokeStyle=sn(null!=(t=null!=(e=w.headerBottomBorderColor)?e:w.horizontalBorderColor)?t:w.borderColor,w.bgHeader),se.stroke(),ve&&Dn(se,l,d,h,p,v,he,g,w,ie,M,fe,I,Z,A,R)};if(void 0!==J){var me=!1;return(J=J.filter((function(e){return me=me||e[1]<0,e[1]<0||yn(f,h,he.length,300,e[0],e[1],1,1)||yn(0,h,b,300,e[0],e[1],1,1)||Z&&yn(f,R-1,he.length,1,e[0],e[1],1,1)}))).length>0&&(wn(ce,he,l,d,D,ie,p,v,h,R,fe,Z,J,!0),ce.fillStyle=w.bgCell,ce.fillRect(0,ie+1,l,d-ie-1),kn(ce,he,g,d,ie,p,v,h,R,fe,I,O,P,C,T,x,Z,pe,J,M,z,B,H,_,U,V,j,W,w,K,$),A&&x&&void 0!==M.current&&J.some((function(e){var t,n;return e[0]===(null==(t=M.current)?void 0:t.cell[0])&&e[1]===(null==(n=M.current)?void 0:n.cell[1])}))&&Dn(ce,l,d,h,p,v,he,g,w,ie,M,fe,I,Z,A,R)),me&&(wn(se,he,l,ie,D,ie,p,v,h,R,fe,Z,J,!1),ge()),ce.restore(),se.restore(),void(null!==le&&(le.fillStyle=w.bgCell,le.fillRect(0,0,l,d),le.drawImage(ce.canvas,0,0)))}if(!0===ne&&f===(null==ae?void 0:ae.cellXOffset)&&p===(null==ae?void 0:ae.translateX)&&ve===(null==ae?void 0:ae.mustDrawFocusOnHeader)||ge(),!0===ne){Ce(void 0!==de&&void 0!==ae);var be=function(e,t,n,r,i,o,a,l,u,s,c,d,f,h,p,v,g){var m=[],b=!1;e.imageSmoothingEnabled=!1;var y=Math.min(n.cellYOffset,i),w=Math.max(n.cellYOffset,i),x=0;if("number"===typeof v)x+=(w-y)*v;else for(var k=y;k<w;k++)x+=v(k);i>n.cellYOffset&&(x=-x),x+=a-n.translateY;for(var D=Math.min(n.cellXOffset,r),C=Math.max(n.cellXOffset,r),E=0,S=D;S<C;S++)E+=h[S].width;r>n.cellXOffset&&(E=-E),E+=o-n.translateX;var F=It(p);if(F>0&&F++,0!==E&&0!==x)return{regions:[],yOnly:!1};var M=l?"number"===typeof v?v:v(c-1):0,A=u-F-Math.abs(E),Z=s-d-M-Math.abs(x)-1;if(A>150&&Z>150){b=0===E;var R={sx:0,sy:0,sw:u*f,sh:s*f,dx:0,dy:0,dw:u*f,dh:s*f};x>0?(R.sy=(d+1)*f,R.sh=Z*f,R.dy=(x+d+1)*f,R.dh=Z*f,m.push({x:0,y:d,width:u,height:x+1})):x<0&&(R.sy=(-x+d+1)*f,R.sh=Z*f,R.dy=(d+1)*f,R.dh=Z*f,m.push({x:0,y:s+x-M,width:u,height:-x+M})),E>0?(R.sx=F*f,R.sw=A*f,R.dx=(E+F)*f,R.dw=A*f,m.push({x:F-1,y:0,width:E+2,height:s})):E<0&&(R.sx=(F-E)*f,R.sw=A*f,R.dx=F*f,R.dw=A*f,m.push({x:u+E,y:0,width:-E,height:s})),e.setTransform(1,0,0,1,0,0),F>0&&0!==E&&0===x&&g&&e.drawImage(t,0,0,F*f,s*f,0,0,F*f,s*f),e.drawImage(t,R.sx,R.sy,R.sw,R.sh,R.dx,R.dy,R.dw,R.dh),e.scale(f,f)}return e.imageSmoothingEnabled=!0,{regions:m,yOnly:b}}(ce,de,ae,f,h,p,v,"sticky"===Z,l,d,R,ie,te,g,he,E,ee);pe=be.regions}else if(!1!==ne){Ce(void 0!==ae),pe=function(e,t,n,r,i,o,a,l,u,s){var c=[];return t!==e.cellXOffset||n!==e.cellYOffset||r!==e.translateX||i!==e.translateY||Sn(u,n,r,i,l,(function(e,t,n,r){if(e.sourceIndex===s){var i=Math.max(t,r)+1;return c.push({x:i,y:0,width:o-i,height:a}),!0}})),c}(ae,f,h,p,v,l,d,ie,he,ne)}!function(e,t,n,r,i,o,l,u,s){var c,d,f=!1,h=(0,a.Z)(t);try{for(h.s();!(d=h.n()).done;){var p=d.value;if(!p.sticky){f=l(p.sourceIndex);break}}}catch(y){h.e(y)}finally{h.f()}var v=null!=(c=s.horizontalBorderColor)?c:s.borderColor,g=s.borderColor,m=f?It(t):0;if(0!==m&&(e.beginPath(),e.moveTo(m+.5,0),e.lineTo(m+.5,r),e.strokeStyle=sn(g,s.bgCell),e.stroke()),i){var b=u(o-1);e.beginPath(),e.moveTo(0,r-b+.5),e.lineTo(n,r-b+.5),e.strokeStyle=sn(v,s.bgCell),e.stroke()}}(ce,he,l,d,"sticky"===Z,R,S,fe,w);var xe=x?Dn(ce,l,d,h,p,v,he,g,w,ie,M,fe,I,Z,A,R):void 0,ke=function(e,t,n,r,i,o,l,s,c,d,f,h,p,v,g){var m=null==g?void 0:g.filter((function(e){return"no-outline"!==e.style}));if(void 0!==m&&0!==m.length){var b=m.map((function(e){var a,u,g,m,b,y=e.range,w=Qt(y.x,y.y,t,n,f,d+f,r,i,o,l,v,c,p,s,h);if(1===y.width&&1===y.height)return y.x<c?[{color:e.color,style:null!=(a=e.style)?a:"dashed",rect:w},void 0]:[void 0,{color:e.color,style:null!=(u=e.style)?u:"dashed",rect:w}];var x=Qt(y.x+y.width-1,y.y+y.height-1,t,n,f,d+f,r,i,o,l,v,c,p,s,h);if(y.x<c&&y.x+y.width>=c){var k=Qt(c-1,y.y+y.height-1,t,n,f,d+f,r,i,o,l,v,c,p,s,h),D=Qt(c,y.y+y.height-1,t,n,f,d+f,r,i,o,l,v,c,p,s,h);return[{color:e.color,style:null!=(g=e.style)?g:"dashed",rect:{x:w.x,y:w.y,width:k.x+k.width-w.x,height:k.y+k.height-w.y}},{color:e.color,style:null!=(m=e.style)?m:"dashed",rect:{x:D.x,y:D.y,width:x.x+x.width-D.x,height:x.y+x.height-D.y}}]}return[void 0,{color:e.color,style:null!=(b=e.style)?b:"dashed",rect:{x:w.x,y:w.y,width:x.x+x.width-w.x,height:x.y+x.height-w.y}}]})),y=It(s),w=function(){e.beginPath(),e.save();var r=!1,i=function(t){r!==t&&(e.setLineDash(t?[5,3]:[]),r=t)};e.lineWidth=1;var o,l=(0,a.Z)(b);try{for(l.s();!(o=l.n()).done;){var s=o.value,c=(0,u.Z)(s,1)[0];void 0!==c&&yn(0,0,t,n,c.rect.x,c.rect.y,c.rect.width,c.rect.height)&&(i("dashed"===c.style),e.strokeStyle=un(c.color,1),e.strokeRect(c.rect.x+1,c.rect.y+1,c.rect.width-2,c.rect.height-2))}}catch(g){l.e(g)}finally{l.f()}var d,f=!1,h=(0,a.Z)(b);try{for(h.s();!(d=h.n()).done;){var p=d.value,v=(0,u.Z)(p,2)[1];void 0!==v&&yn(0,0,t,n,v.rect.x,v.rect.y,v.rect.width,v.rect.height)&&(i("dashed"===v.style),!f&&v.rect.x<y&&(e.rect(y,0,t,n),e.clip(),f=!0),e.strokeStyle=un(v.color,1),e.strokeRect(v.rect.x+1,v.rect.y+1,v.rect.width-2,v.rect.height-2))}}catch(g){h.e(g)}finally{h.f()}e.restore()};return w(),w}}(ce,l,d,f,h,p,v,g,b,k,D,E,"sticky"===Z,R,B);if(ce.fillStyle=w.bgCell,pe.length>0){ce.beginPath();var De,Ee=(0,a.Z)(pe);try{for(Ee.s();!(De=Ee.n()).done;){var Se=De.value;ce.rect(Se.x,Se.y,Se.width,Se.height)}}catch(Ze){Ee.e(Ze)}finally{Ee.f()}ce.clip(),ce.fill(),ce.beginPath()}else ce.fillRect(0,0,l,d);var Me=kn(ce,he,g,d,ie,p,v,h,R,fe,I,O,P,C,T,x,Z,pe,J,M,z,B,H,_,U,V,j,W,w,K,$);!function(e,t,n,r,i,o,a,l,u,c,d,f,h,p,v,g,m,b){void 0===m&&t[t.length-1]===n[t.length-1]&&Sn(t,u,a,l,o,(function(n,a,l,u,m){if(n===t[t.length-1]){a+=n.width;var y=Math.max(a,u);y>r||(e.save(),e.beginPath(),e.rect(y,o+1,1e4,i-o-1),e.clip(),En(m,l,i,c,d,v,(function(t,n,r,i){if(i||!(g.length>0)||g.some((function(e){return yn(a,t,1e4,r,e.x,e.y,e.width,e.height)}))){var o=h.hasIndex(n),l=p.hasIndex(n);e.beginPath();var u=null==f?void 0:f(n),c=void 0===u?b:(0,s.Z)((0,s.Z)({},b),u);c.bgCell!==b.bgCell&&(e.fillStyle=c.bgCell,e.fillRect(a,t,1e4,r)),l&&(e.fillStyle=c.bgHeader,e.fillRect(a,t,1e4,r)),o&&(e.fillStyle=c.accentLight,e.fillRect(a,t,1e4,r))}})),e.restore())}}))}(ce,he,g,l,d,ie,p,v,h,R,fe,P,M.rows,C,Z,pe,J,w),hn(ce,he,h,p,v,l,d,pe,Me,D,ie,fe,P,S,Z,R,w),null==xe||xe(),null==ke||ke(),null!==le&&(le.fillStyle=w.bgCell,le.fillRect(0,0,l,d),le.drawImage(ce.canvas,0,0));var Ae=function(e,t,n,r,i,o,a,l,u){var s=0;return Sn(e,o,r,i,n,(function(e,n,r,i,o){return En(o,r,t,a,l,u,(function(e,t,n,r){r||(s=Math.max(t,s))})),!0})),s}(he,d,ie,p,v,h,R,fe,Z);null==_||_.setWindow({x:f,y:h,width:he.length,height:Ae-h},b),N.current={cellXOffset:f,cellYOffset:h,translateX:p,translateY:v,mustDrawFocusOnHeader:ve,lastBuffer:ee?ue===q?"a":"b":void 0},ce.restore(),se.restore()}}}}function En(e,t,n,r,i,o,a){for(var l=t,u=e,s="sticky"===o;l<n||s;){var c=s&&l>=n;c&&(s=!1,u=r-1);var d=i(u);if(c&&(l=n-d),!(s&&u===r-1)&&!0===a(l,u,d,c,"none"!==o&&u===r-1))break;if(c)break;l+=d,u++}}function Sn(e,t,n,r,i,o){var l,u=0,s=0,c=i+r,d=(0,a.Z)(e);try{for(d.s();!(l=d.n()).done;){var f=l.value;if(!0===o(f,f.sticky?s:u+n,c,s,t))break;u+=f.width,s+=f.sticky?f.width:0}}catch(h){d.e(h)}finally{d.f()}}function Fn(e,t,n,r,i){for(var o,a=0,l=0,u=0;u<e.length;u++){var s=e[u],c=u+1,d=s.width;for(s.sticky&&(l+=d);c<e.length&&At(e[c].group,s.group)&&e[c].sticky===e[u].sticky;){var f=e[c];d+=f.width,c++,u++,f.sticky&&(l+=f.width)}var h=a+(s.sticky?0:n),p=s.sticky?0:Math.max(0,l-h),v=Math.min(d-p,t-(h+p));i([s.sourceIndex,e[c-1].sourceIndex],null!=(o=s.group)?o:"",h+p,0,v,r),a+=d}}function Mn(e){var t=e-1;return t*t*t+1}var An=(0,f.Z)((function e(t){var n=this;(0,d.Z)(this,e),this.callback=t,this.currentHoveredItem=void 0,this.leavingItems=[],this.areSameItems=function(e,t){return(null==e?void 0:e[0])===(null==t?void 0:t[0])&&(null==e?void 0:e[1])===(null==t?void 0:t[1])},this.addToLeavingItems=function(e){n.leavingItems.some((function(t){return n.areSameItems(t.item,e.item)}))||n.leavingItems.push(e)},this.removeFromLeavingItems=function(e){var t,r=n.leavingItems.find((function(t){return n.areSameItems(t.item,e)}));return n.leavingItems=n.leavingItems.filter((function(e){return e!==r})),null!=(t=null==r?void 0:r.hoverAmount)?t:0},this.cleanUpLeavingElements=function(){n.leavingItems=n.leavingItems.filter((function(e){return e.hoverAmount>0}))},this.shouldStep=function(){var e=n.leavingItems.length>0,t=void 0!==n.currentHoveredItem&&n.currentHoveredItem.hoverAmount<1;return e||t},this.getAnimatingItems=function(){return void 0!==n.currentHoveredItem?[].concat((0,l.Z)(n.leavingItems),[n.currentHoveredItem]):n.leavingItems.map((function(e){return(0,s.Z)((0,s.Z)({},e),{},{hoverAmount:Mn(e.hoverAmount)})}))},this.step=function(e){if(void 0===n.lastAnimationTime)n.lastAnimationTime=e;else{var t,r=(e-n.lastAnimationTime)/80,i=(0,a.Z)(n.leavingItems);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.hoverAmount=m(o.hoverAmount-r,0,1)}}catch(u){i.e(u)}finally{i.f()}void 0!==n.currentHoveredItem&&(n.currentHoveredItem.hoverAmount=m(n.currentHoveredItem.hoverAmount+r,0,1));var l=n.getAnimatingItems();n.callback(l),n.cleanUpLeavingElements()}n.shouldStep()?(n.lastAnimationTime=e,window.requestAnimationFrame(n.step)):n.lastAnimationTime=void 0},this.setHovered=function(e){var t;if(!n.areSameItems(null==(t=n.currentHoveredItem)?void 0:t.item,e)){if(void 0!==n.currentHoveredItem&&n.addToLeavingItems(n.currentHoveredItem),void 0!==e){var r=n.removeFromLeavingItems(e);n.currentHoveredItem={item:e,hoverAmount:r}}else n.currentHoveredItem=void 0;void 0===n.lastAnimationTime&&window.requestAnimationFrame(n.step)}}})),Zn=function(){function e(t){(0,d.Z)(this,e),this.fn=t}return(0,f.Z)(e,[{key:"value",get:function(){var e;return null!=(e=this.val)?e:this.val=this.fn()}}]),e}();function Rn(e){return new Zn(e)}var In=Rn((function(){return window.navigator.userAgent.includes("Firefox")})),On=Rn((function(){return window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")})),Pn=Rn((function(){return window.navigator.platform.toLowerCase().startsWith("mac")}));function Tn(e){var t=g.useRef([]),n=g.useRef(0),r=g.useRef(e);r.current=e;var i=g.useCallback((function(){var e=function(){var e=t.current;t.current=[],r.current(e),t.current.length>0?n.current++:n.current=0};window.requestAnimationFrame(n.current>600?function(){return window.requestAnimationFrame(e)}:e)}),[]);return g.useCallback((function(e){(function(e,t){var n,r=(0,a.Z)(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i[0]===t[0]&&i[1]===t[1])return!0}}catch(o){r.e(o)}finally{r.f()}return!1})(t.current,e)||(0===t.current.length&&i(),t.current.push(e))}),[i])}var Hn=g.memo(g.forwardRef((function(e,t){var n,r,l,c,d,f,h,p,v=e.width,b=e.height,y=e.accessibilityHeight,k=e.columns,D=e.cellXOffset,C=e.cellYOffset,E=e.headerHeight,S=e.fillHandle,F=void 0!==S&&S,M=e.groupHeaderHeight,A=e.rowHeight,Z=e.rows,R=e.getCellContent,I=e.getRowThemeOverride,O=e.onHeaderMenuClick,P=e.enableGroups,T=e.isFilling,H=e.onCanvasFocused,L=e.onCanvasBlur,z=e.isFocused,B=e.selection,_=e.freezeColumns,N=e.onContextMenu,V=e.trailingRowType,W=e.fixedShadowX,j=void 0===W||W,U=e.fixedShadowY,X=void 0===U||U,Y=e.drawFocusRing,K=void 0===Y||Y,$=e.onMouseDown,G=e.onMouseUp,q=e.onMouseMoveRaw,Q=e.onMouseMove,J=e.onItemHovered,ee=e.dragAndDropState,te=e.firstColAccessible,ne=e.onKeyDown,re=e.onKeyUp,ie=e.highlightRegions,oe=e.canvasRef,ae=e.onDragStart,le=e.onDragEnd,ue=e.eventTargetRef,se=e.isResizing,ce=e.isDragging,de=e.isDraggable,fe=void 0!==de&&de,he=e.allowResize,pe=e.disabledRows,ve=e.getGroupDetails,ge=e.theme,me=e.prelightCells,be=e.headerIcons,ye=e.verticalBorder,we=e.drawHeader,xe=e.drawCustomCell,ke=e.onCellFocused,De=e.onDragOverCell,Ee=e.onDrop,Se=e.onDragLeave,Fe=e.imageWindowLoader,Me=e.smoothScrollX,Ae=void 0!==Me&&Me,Ze=e.smoothScrollY,Re=void 0!==Ze&&Ze,Ie=e.experimental,Oe=e.getCellRenderer,Te=null!=(n=e.translateX)?n:0,He=null!=(r=e.translateY)?r:0,Le=Math.max(_,Math.min(k.length-1,D)),ze=g.useRef(null),Be=g.useMemo((function(){return new gt}),[]),je=null!=Fe?Fe:Be,Ue=g.useRef(),Xe=g.useState(!1),Ye=(0,u.Z)(Xe,2),Ke=Ye[0],$e=Ye[1],Ge=g.useRef([]),qe=g.useRef(),Qe=g.useState(),Je=(0,u.Z)(Qe,2),nt=Je[0],it=Je[1],at=g.useState(),lt=(0,u.Z)(at,2),ut=lt[0],st=lt[1],ct=g.useRef(null),dt=g.useState(!1),ft=(0,u.Z)(dt,2),ht=ft[0],pt=ft[1],vt=g.useRef(ht);vt.current=ht;var bt=g.useMemo((function(){return new rn(be,(function(){Tt.current=void 0,Lt.current()}))}),[be]),yt=P?M+E:E,wt=g.useRef(-1),xt=!0!==(null==Ie?void 0:Ie.enableFirefoxRescaling);g.useLayoutEffect((function(){In.value&&1!==window.devicePixelRatio&&!xt&&(-1!==wt.current&&$e(!0),window.clearTimeout(wt.current),wt.current=window.setTimeout((function(){$e(!1),wt.current=-1}),200))}),[C,Le,Te,He,xt]);var kt=function(e,t){return g.useMemo((function(){return e.map((function(e,n){return(0,s.Z)((0,s.Z)({},e),{},{sourceIndex:n,sticky:n<t})}))}),[e,t])}(k,_),Dt=g.useCallback((function(e,t,n){var r=e.getBoundingClientRect();if(!(t>=kt.length||n>=Z)){var i=r.width/v,o=Qt(t,n,v,b,M,yt,Le,C,Te,He,Z,_,"sticky"===V,kt,A);return 1!==i&&(o.x*=i,o.y*=i,o.width*=i,o.height*=i),o.x+=r.x,o.y+=r.y,o}}),[v,b,M,yt,Le,C,Te,He,Z,_,V,kt,A]),Ct=g.useCallback((function(e,t,n,r){var i,o,l=e.getBoundingClientRect(),u=l.width/v,s=(t-l.left)/u,c=(n-l.top)/u,d=Ot(kt,Le,v,void 0,Te),f=0;r instanceof MouseEvent&&(f=r.button);var h,p=function(e,t,n){var r,i=0,o=(0,a.Z)(t);try{for(o.s();!(r=o.n()).done;){var l=r.value;if(e<=(l.sticky?i:i+(null!=n?n:0))+l.width)return l.sourceIndex;i+=l.width}}catch(u){o.e(u)}finally{o.f()}return-1}(s,d,Te),g=function(e,t,n,r,i,o,a,l,u,s){var c=r+i;if(n&&e<=i)return-2;if(e<=c)return-1;var d="number"===typeof a?a:a(o-1);if(s&&e>t-d)return o-1;var f=o-(s?1:0),h=e-(null!=u?u:0);if("number"===typeof a){var p=Math.floor((h-c)/a)+l;if(p>=f)return;return p}for(var v=c,g=l;g<f;g++){var m=a(g);if(h<=v+m)return g;v+=m}}(c,b,P,E,M,Z,A,C,He,"sticky"===V),m=!0===(null==r?void 0:r.shiftKey),y=!0===(null==r?void 0:r.ctrlKey),w=!0===(null==r?void 0:r.metaKey),x=void 0!==r&&!(r instanceof MouseEvent),k=[Math.abs(s)<20?-1:Math.abs(l.width-s)<20?1:0,Math.abs(c)<20?-1:Math.abs(l.height-c)<20?1:0];if(-1===p||c<0||s<0||void 0===g||s>v||c>b){var D=s>v?-1:s<0?1:0,S=c>b?1:c<0?-1:0,R=!1;if(-1===p&&-1===g){var I=Dt(e,kt.length-1,-1);Ce(void 0!==I),R=t<I.x+I.width+5}h={kind:Ve,location:[-1!==p?p:s<0?0:kt.length-1,null!=g?g:Z-1],direction:[D,S],shiftKey:m,ctrlKey:y,metaKey:w,isEdge:R,isTouch:x,button:f,scrollEdge:k}}else if(g<=-1){var O=Dt(e,p,g);Ce(void 0!==O);var T=void 0!==O&&O.x+O.width-t<=5,H=p-1;t-O.x<=5&&H>=0?(T=!0,Ce(void 0!==(O=Dt(e,H,g))),h={kind:P&&-2===g?Ne:_e,location:[H,g],bounds:O,group:null!=(i=kt[H].group)?i:"",isEdge:T,shiftKey:m,ctrlKey:y,metaKey:w,isTouch:x,localEventX:t-O.x,localEventY:n-O.y,button:f,scrollEdge:k}):h={kind:P&&-2===g?Ne:_e,group:null!=(o=kt[p].group)?o:"",location:[p,g],bounds:O,isEdge:T,shiftKey:m,ctrlKey:y,metaKey:w,isTouch:x,localEventX:t-O.x,localEventY:n-O.y,button:f,scrollEdge:k}}else{var L=Dt(e,p,g);Ce(void 0!==L),h={kind:"cell",location:[p,g],bounds:L,isEdge:void 0!==L&&L.x+L.width-t<5,shiftKey:m,ctrlKey:y,isFillHandle:F&&void 0!==L&&L.x+L.width-t<6&&L.y+L.height-n<6,metaKey:w,isTouch:x,localEventX:t-L.x,localEventY:n-L.y,button:f,scrollEdge:k}}return h}),[kt,Le,v,Te,b,P,E,M,Z,A,C,He,V,Dt,F]);var Et=null!=nt?nt:[],St=(0,u.Z)(Et,1)[0],Ft=g.useRef((function(e){})),Mt=g.useRef(nt);Mt.current=nt;var At=g.useMemo((function(){var e=document.createElement("canvas"),t=document.createElement("canvas");return e.style.display="none",e.style.opacity="0",e.style.position="fixed",t.style.display="none",t.style.opacity="0",t.style.position="fixed",[e,t]}),[]),Zt=(0,u.Z)(At,2),Rt=Zt[0],Pt=Zt[1];g.useLayoutEffect((function(){return document.documentElement.append(Rt),document.documentElement.append(Pt),function(){Rt.remove(),Pt.remove()}}),[Rt,Pt]);var Tt=g.useRef(),Ht=g.useCallback((function(){var e,t,n=ze.current,r=ct.current;if(null!==n&&null!==r){var i=Tt.current,o={canvas:n,bufferA:Rt,bufferB:Pt,headerCanvas:r,width:v,height:b,cellXOffset:Le,cellYOffset:C,translateX:Math.round(Te),translateY:Math.round(He),mappedColumns:kt,enableGroups:P,freezeColumns:_,dragAndDropState:ee,theme:ge,headerHeight:E,groupHeaderHeight:M,disabledRows:null!=pe?pe:ot.empty(),rowHeight:A,verticalBorder:ye,isResizing:se,isFocused:z,selection:B,fillHandle:F,lastRowSticky:V,rows:Z,drawFocus:K,getCellContent:R,getGroupDetails:null!=ve?ve:function(e){return{name:e}},getRowThemeOverride:I,drawCustomCell:xe,drawHeaderCallback:we,prelightCells:me,highlightRegions:ie,imageLoader:je,lastBlitData:qe,damage:Ue.current,hoverValues:Ge.current,hoverInfo:Mt.current,spriteManager:bt,scrolling:Ke,hyperWrapping:null!=(e=null==Ie?void 0:Ie.hyperWrapping)&&e,touchMode:ht,enqueue:Ft.current,renderStrategy:null!=(t=null==Ie?void 0:Ie.renderStrategy)?t:On.value?"double-buffer":"single-buffer",getCellRenderer:Oe};void 0===o.damage?(Tt.current=o,Cn(o,i)):Cn(o,void 0)}}),[Rt,Pt,v,b,Le,C,Te,He,kt,P,_,ee,ge,E,M,pe,A,ye,se,z,B,F,V,Z,K,R,ve,I,xe,we,me,ie,je,bt,Ke,null==Ie?void 0:Ie.hyperWrapping,null==Ie?void 0:Ie.renderStrategy,ht,Oe]),Lt=g.useRef(Ht);g.useLayoutEffect((function(){Ht(),Lt.current=Ht}),[Ht]),g.useLayoutEffect((function(){var e=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(){var t;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(null==(t=null==document?void 0:document.fonts)?void 0:t.ready)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,document.fonts.ready;case 4:Tt.current=void 0,Lt.current();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var zt=g.useCallback((function(e){Ue.current=e,Lt.current(),Ue.current=void 0}),[]),Bt=Tn(zt);Ft.current=Bt;var _t=g.useCallback((function(e){zt(e.map((function(e){return e.cell})))}),[zt]);je.setCallback(zt);var Nt,Vt=g.useState(!1),Wt=(0,u.Z)(Vt,2),jt=Wt[0],Ut=Wt[1],Xt=null!=St?St:[],Yt=(0,u.Z)(Xt,2),Kt=Yt[0],$t=Yt[1],Gt=void 0!==Kt&&-1===$t,qt=void 0!==Kt&&-2===$t,Jt=!1,en=!1;if(void 0!==Kt&&void 0!==$t&&$t>-1){var tn=R([Kt,$t]);Jt=tn.kind===We.NewRow||tn.kind===We.Marker&&"number"!==tn.markerKind,en=tn.kind===Pe.Boolean&&rt(tn),Nt=tn.cursor}var nn=ce?"grabbing":null!=ut&&ut||se?"col-resize":jt||T?"crosshair":void 0!==Nt?Nt:Gt||Jt||en||qt?"pointer":"default",on=g.useMemo((function(){return{contain:"strict",display:"block",cursor:nn}}),[nn]),an=g.useRef("default"),ln=null==ue?void 0:ue.current;null!==ln&&void 0!==ln&&an.current!==on.cursor&&(ln.style.cursor=an.current=on.cursor);var un=g.useCallback((function(e,t,n,r){if(void 0!==ve){var i=ve(e);if(void 0!==i.actions){var o,l=pn(t,i.actions),s=(0,a.Z)(l.entries());try{for(s.s();!(o=s.n()).done;){var c=(0,u.Z)(o.value,2),d=c[0],f=c[1];if(vn(f,n+t.x,r+f.y))return i.actions[d]}}catch(h){s.e(h)}finally{s.f()}}}}),[ve]),sn=g.useCallback((function(e,t,n,r){var i=k[t];if(!ce&&!se&&!0===i.hasMenu&&(null==ut||!ut)){var o=Dt(e,t,-1);Ce(void 0!==o);var a=gn(o.x,o.y,o.width,o.height);if(n>a.x&&n<a.x+a.width&&r>a.y&&r<a.y+a.height)return o}}),[k,Dt,ut,ce,se]),cn=g.useRef(0),dn=g.useRef(),hn=g.useCallback((function(e){var t=ze.current,n=null==ue?void 0:ue.current;if(null!==t&&(e.target===t||e.target===n)){var r,i;if(e instanceof MouseEvent?(r=e.clientX,i=e.clientY):(r=e.touches[0].clientX,i=e.touches[0].clientY),e.target===n&&null!==n){var o=n.getBoundingClientRect();if(r>o.left+n.clientWidth)return;if(i>o.top+n.clientHeight)return}var a=Ct(t,r,i,e);if(dn.current=a.location,a.isTouch&&(cn.current=Date.now()),vt.current!==a.isTouch&&pt(a.isTouch),a.kind!==_e||void 0===sn(t,a.location[0],r,i))a.kind===Ne&&void 0!==un(a.group,a.bounds,a.localEventX,a.localEventY)||(null==$||$(a),a.isTouch||!0===fe||fe===a.kind||e.preventDefault())}}),[ue,fe,Ct,un,sn,$]);mt("touchstart",hn,window,!1),mt("mousedown",hn,window,!1);var bn=g.useCallback((function(e){var t,n,r=ze.current;if(void 0!==G&&null!==r){var i,o,a=null==ue?void 0:ue.current,l=e.target!==r&&e.target!==a;e instanceof MouseEvent?(i=e.clientX,o=e.clientY):(i=e.changedTouches[0].clientX,o=e.changedTouches[0].clientY);var c=Ct(r,i,o,e);if(c.isTouch&&0!==cn.current&&Date.now()-cn.current>500&&(c=(0,s.Z)((0,s.Z)({},c),{},{isLongTouch:!0})),vt.current!==c.isTouch&&pt(c.isTouch),!l&&e.cancelable&&e.preventDefault(),c.kind===_e&&sn(r,c.location[0],i,o)){var d=(0,u.Z)(c.location,1)[0],f=sn(r,d,i,o);if(void 0!==f)return void(0===c.button&&(null==(t=dn.current)?void 0:t[0])===d&&-1===(null==(n=dn.current)?void 0:n[1])?null==O||O(d,f):G(c,!0))}else if(c.kind===Ne){var h=un(c.group,c.bounds,c.localEventX,c.localEventY);if(void 0!==h)return void(0===c.button&&h.onClick(c))}G(c,l)}}),[G,ue,Ct,sn,O,un]);mt("mouseup",bn,window,!1),mt("touchend",bn,window,!1),mt("contextmenu",g.useCallback((function(e){var t=ze.current;if(null!==t&&void 0!==N){var n=Ct(t,e.clientX,e.clientY,e);N(n,(function(){e.cancelable&&e.preventDefault()}))}}),[Ct,N]),null!=(l=null==ue?void 0:ue.current)?l:null,!1);var yn=g.useCallback((function(e){Ue.current=e.map((function(e){return e.item})),Ge.current=e,Lt.current(),Ue.current=void 0}),[]),wn=g.useMemo((function(){return new An(yn)}),[yn]),xn=g.useRef(wn);xn.current=wn,g.useLayoutEffect((function(){var e=xn.current;if(void 0===St||St[1]<0)e.setHovered(St);else{var t=R(St),n=Oe(t);e.setHovered(void 0===n&&t.kind===Pe.Custom||!0===(null==n?void 0:n.needsHover)?St:void 0)}}),[R,Oe,St]);var kn=g.useRef();mt("mousemove",g.useCallback((function(e){var t,n=ze.current;if(null!==n){var r,i,o=Ct(n,e.clientX,e.clientY,e);if(r=o,i=kn.current,r===i||(null==r?void 0:r.kind)===(null==i?void 0:i.kind)&&(null==r?void 0:r.location[0])===(null==i?void 0:i.location[0])&&(null==r?void 0:r.location[1])===(null==i?void 0:i.location[1])){if("cell"===o.kind||o.kind===_e||o.kind===Ne){var a=[o.location,[o.localEventX,o.localEventY]];if(it(a),Mt.current=a,"cell"===o.kind){var l=R(o.location);l.kind!==Pe.Custom&&!0!==(null==(t=Oe(l))?void 0:t.needsHoverPosition)||zt([o.location])}else o.kind===Ne&&zt([o.location])}}else null==J||J(o),it(o.kind===Ve?void 0:[o.location,[o.localEventX,o.localEventY]]),kn.current=o;if(st(o.kind===_e&&o.isEdge&&!0===he),F&&void 0!==B.current){var s=(0,u.Z)(B.current.cell,2),c=s[0],d=s[1],f=Dt(n,c,d),h=e.clientX,p=e.clientY;Ce(void 0!==f),Ut(h>=f.x+f.width-6&&h<=f.x+f.width&&p>=f.y+f.height-6&&p<=f.y+f.height)}else Ut(!1);null==q||q(e),Q(o)}}),[Ct,he,F,B,q,Q,J,R,Oe,zt,Dt]),window,!0);var Dn=g.useCallback((function(e){var t,n=ze.current;null!==n&&(void 0!==B.current&&(t=Dt(n,B.current.cell[0],B.current.cell[1])),null==ne||ne({bounds:t,stopPropagation:function(){return e.stopPropagation()},preventDefault:function(){return e.preventDefault()},cancel:function(){},ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,altKey:e.altKey,key:e.key,keyCode:e.keyCode,rawEvent:e}))}),[ne,B,Dt]),En=g.useCallback((function(e){var t,n=ze.current;null!==n&&(void 0!==B.current&&(t=Dt(n,B.current.cell[0],B.current.cell[1])),null==re||re({bounds:t,stopPropagation:function(){return e.stopPropagation()},preventDefault:function(){return e.preventDefault()},cancel:function(){},ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,altKey:e.altKey,key:e.key,keyCode:e.keyCode,rawEvent:e}))}),[re,B,Dt]),Sn=g.useCallback((function(e){ze.current=e,void 0!==oe&&(oe.current=e)}),[oe]);mt("dragstart",g.useCallback((function(e){var t=ze.current;if(null===t||!1===fe||se)e.preventDefault();else{var n,r,i=Ct(t,e.clientX,e.clientY);if(!0===fe||i.kind===fe){var o,a,l,c=!1;if(null==ae||ae((0,s.Z)((0,s.Z)({},i),{},{setData:function(e,t){n=e,r=t},setDragImage:function(e,t,n){o=e,a=t,l=n},preventDefault:function(){return c=!0},defaultPrevented:function(){return c}})),c||void 0===n||void 0===r||null===e.dataTransfer)e.preventDefault();else if(e.dataTransfer.setData(n,r),e.dataTransfer.effectAllowed="copyLink",void 0!==o&&void 0!==a&&void 0!==l)e.dataTransfer.setDragImage(o,a,l);else{var d=(0,u.Z)(i.location,2),f=d[0],h=d[1];if(void 0!==h){var p=document.createElement("canvas"),v=Dt(t,f,h);Ce(void 0!==v),p.width=v.width,p.height=v.height;var g=p.getContext("2d");null!==g&&(g.textBaseline="middle",-1===h?(g.font="".concat(ge.headerFontStyle," ").concat(ge.fontFamily),g.fillStyle=ge.bgHeader,g.fillRect(0,0,p.width,p.height),mn(g,0,0,v.width,v.height,kt[f],!1,ge,!1,!1,0,bt,we,!1)):(g.font="".concat(ge.baseFontStyle," ").concat(ge.fontFamily),g.fillStyle=ge.bgCell,g.fillRect(0,0,p.width,p.height),fn(g,h,R([f,h]),0,0,0,v.width,v.height,!1,ge,xe,je,bt,1,void 0,!1,0,void 0,void 0,Oe))),p.style.left="-100%",p.style.position="absolute",document.body.append(p),e.dataTransfer.setDragImage(p,v.width/2,v.height/2),window.setTimeout((function(){p.remove()}),0)}}}else e.preventDefault()}}),[fe,se,Ct,ae,Dt,ge,kt,bt,we,R,xe,je,Oe]),null!=(c=null==ue?void 0:ue.current)?c:null,!1,!1);var Fn=g.useRef();mt("dragover",g.useCallback((function(e){var t,n=ze.current;if(void 0!==Ee&&e.preventDefault(),null!==n&&void 0!==De){var r=Ct(n,e.clientX,e.clientY),i=(0,u.Z)(r.location,2),o=i[0],a=i[1],l=o-(te?0:1),s=null!=(t=Fn.current)?t:[],c=(0,u.Z)(s,2),d=c[0],f=c[1];d===l&&f===a||(Fn.current=[l,a],De([l,a],e.dataTransfer))}}),[te,Ct,De,Ee]),null!=(d=null==ue?void 0:ue.current)?d:null,!1,!1),mt("dragend",g.useCallback((function(){Fn.current=void 0,null==le||le()}),[le]),null!=(f=null==ue?void 0:ue.current)?f:null,!1,!1),mt("drop",g.useCallback((function(e){var t=ze.current;if(null!==t&&void 0!==Ee){e.preventDefault();var n=Ct(t,e.clientX,e.clientY),r=(0,u.Z)(n.location,2),i=r[0],o=r[1];Ee([i-(te?0:1),o],e.dataTransfer)}}),[te,Ct,Ee]),null!=(h=null==ue?void 0:ue.current)?h:null,!1,!1),mt("dragleave",g.useCallback((function(){null==Se||Se()}),[Se]),null!=(p=null==ue?void 0:ue.current)?p:null,!1,!1);var Mn=g.useRef(B);Mn.current=B;var Zn=g.useRef(null),Rn=g.useCallback((function(e){var t;null!==ze.current&&ze.current.contains(document.activeElement)&&(null===e&&void 0!==Mn.current.current?null==(t=null==oe?void 0:oe.current)||t.focus({preventScroll:!0}):null!==e&&e.focus({preventScroll:!0}),Zn.current=e)}),[oe]);g.useImperativeHandle(t,(function(){return{focus:function(){var e,t=Zn.current;null!==t&&document.contains(t)?t.focus({preventScroll:!0}):null==(e=null==oe?void 0:oe.current)||e.focus({preventScroll:!0})},getBounds:function(e,t){if(void 0!==oe&&null!==oe.current)return Dt(oe.current,e,null!=t?t:-1)},damage:_t}}),[oe,_t,Dt]);var Pn=g.useRef(),Hn=function(e,t,n){var r=g.useState(e),i=(0,u.Z)(r,2),o=i[0],a=i[1],l=g.useRef(!0);g.useEffect((function(){return function(){l.current=!1}}),[]);var s=g.useRef(x((function(e){l.current&&a(e)}),n));return g.useLayoutEffect((function(){l.current&&s.current((function(){return e()}))}),t),o}((function(){var e,t,n,r;if(v<50)return null;var i=Ot(kt,Le,v,ee,Te),o=te?0:-1;te||0!==(null==(e=i[0])?void 0:e.sourceIndex)||(i=i.slice(1));var a=null!=(n=null==(t=B.current)?void 0:t.cell)?n:[],l=(0,u.Z)(a,2),s=l[0],c=l[1],d=null==(r=B.current)?void 0:r.range,f=i.map((function(e){return e.sourceIndex})),h=w(C,Math.min(Z,C+y));return void 0===s||void 0===c||f.includes(s)&&h.includes(c)||Rn(null),g.createElement("table",{key:"access-tree",role:"grid","aria-rowcount":Z+1,"aria-multiselectable":"true","aria-colcount":kt.length+o},g.createElement("thead",{role:"rowgroup"},g.createElement("tr",{role:"row","aria-rowindex":1},i.map((function(e){return g.createElement("th",{role:"columnheader","aria-selected":B.columns.hasIndex(e.sourceIndex),"aria-colindex":e.sourceIndex+1+o,tabIndex:-1,onFocus:function(t){if(t.target!==Zn.current)return null==ke?void 0:ke([e.sourceIndex,-1])},key:e.sourceIndex},e.title)})))),g.createElement("tbody",{role:"rowgroup"},h.map((function(e){return g.createElement("tr",{role:"row","aria-selected":B.rows.hasIndex(e),key:e,"aria-rowindex":e+2},i.map((function(t){var n=t.sourceIndex,r="".concat(n,",").concat(e),i=s===n&&c===e,a=void 0!==d&&n>=d.x&&n<d.x+d.width&&e>=d.y&&e<d.y+d.height,l="glide-cell-".concat(n,"-").concat(e),u=R([n,e]);return g.createElement("td",{key:r,role:"gridcell","aria-colindex":n+1+o,"aria-selected":a,"aria-readonly":et(u)||!tt(u),id:l,"data-testid":l,onClick:function(){var t=null==oe?void 0:oe.current;if(null!==t&&void 0!==t)return null==ne?void 0:ne({bounds:Dt(t,n,e),cancel:function(){},preventDefault:function(){},stopPropagation:function(){},ctrlKey:!1,key:"Enter",keyCode:13,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0})},onFocusCapture:function(t){var r,i;if(t.target!==Zn.current&&((null==(r=Pn.current)?void 0:r[0])!==n||(null==(i=Pn.current)?void 0:i[1])!==e))return Pn.current=[n,e],null==ke?void 0:ke([n,e])},ref:i?Rn:void 0,tabIndex:-1},function(e,t){var n;if(e.kind===Pe.Custom)return e.copyData;var r=null==t?void 0:t(e);return null!=(n=null==r?void 0:r.getAccessibilityString(e))?n:""}(u,Oe))})))}))))}),[v,kt,Le,ee,Te,Z,C,y,B,Rn,R,oe,ne,Dt,ke],200),Ln=j?It(kt,ee):0,zn=0!==_&&j?Le>_?1:m(-Te/100,0,1):0,Bn=X?m(-(32*-C+He)/100,0,1):0,_n=g.useMemo((function(){if(!zn&&!Bn)return null;var e={position:"absolute",top:0,left:Ln,width:v-Ln,height:b,opacity:zn,pointerEvents:"none",transition:Ae?void 0:"opacity 0.2s",boxShadow:"inset 13px 0 10px -13px rgba(0, 0, 0, 0.2)"},t={position:"absolute",top:yt,left:0,width:v,height:b,opacity:Bn,pointerEvents:"none",transition:Re?void 0:"opacity 0.2s",boxShadow:"inset 0 13px 10px -13px rgba(0, 0, 0, 0.2)"};return g.createElement(g.Fragment,null,zn>0&&g.createElement("div",{id:"shadow-x",style:e}),Bn>0&&g.createElement("div",{id:"shadow-y",style:t}))}),[zn,Bn,Ln,v,Ae,yt,b,Re]),Nn=g.useMemo((function(){return{position:"absolute",top:0,left:0}}),[]);return g.createElement(g.Fragment,null,g.createElement("canvas",{"data-testid":"data-grid-canvas",tabIndex:0,onKeyDown:Dn,onKeyUp:En,onFocus:H,onBlur:L,ref:Sn,style:on},Hn),g.createElement("canvas",{ref:ct,style:Nn}),_n)})));function Ln(e,t,n,r){var i;return m(Math.round(t-(null!=(i=e.growOffset)?i:0)),Math.ceil(n),Math.floor(r))}var zn=function(e){var t,n=g.useState(),r=(0,u.Z)(n,2),i=r[0],o=r[1],l=g.useState(),s=(0,u.Z)(l,2),c=s[0],d=s[1],f=g.useState(),h=(0,u.Z)(f,2),p=h[0],v=h[1],m=g.useState(),b=(0,u.Z)(m,2),y=b[0],w=b[1],x=g.useState(!1),k=(0,u.Z)(x,2),D=k[0],C=k[1],E=g.useState(),S=(0,u.Z)(E,2),F=S[0],M=S[1],A=g.useState(),Z=(0,u.Z)(A,2),R=Z[0],I=Z[1],O=g.useState(),P=(0,u.Z)(O,2),T=P[0],H=P[1],L=g.useState(!1),z=(0,u.Z)(L,2),B=z[0],_=z[1],N=g.useState(),V=(0,u.Z)(N,2),W=V[0],j=V[1],U=e.onHeaderMenuClick,X=e.getCellContent,Y=e.onColumnMoved,K=e.onColumnResize,$=e.onColumnResizeStart,G=e.onColumnResizeEnd,q=e.gridRef,Q=e.maxColumnWidth,J=e.minColumnWidth,ee=e.onRowMoved,te=e.lockColumns,ne=e.onMouseDown,re=e.onMouseUp,ie=e.onItemHovered,oe=e.onDragStart,ae=void 0!==(null!=(t=null!=K?K:G)?t:$),le=e.columns,ue=e.selection.columns,se=g.useCallback((function(e){var t=(0,u.Z)(e.location,2),n=t[0],r=t[1];void 0!==p&&y!==n&&n>=te?(C(!0),w(n)):void 0!==R&&void 0!==r?(_(!0),H(Math.max(0,r))):null==ie||ie(e)}),[p,R,y,ie,te]),ce=void 0!==Y,de=g.useCallback((function(e){var t,n;if(0===e.button){var r=(0,u.Z)(e.location,2),i=r[0],a=r[1];if("out-of-bounds"===e.kind&&e.isEdge&&ae){var l=null==(t=null==q?void 0:q.current)?void 0:t.getBounds(le.length-1,-1);void 0!==l&&(o(l.x),d(le.length-1))}else"header"===e.kind&&i>=te?e.isEdge&&ae?(o(e.bounds.x),d(i),null==$||$(le[i],e.bounds.width,i,e.bounds.width+(null!=(n=le[i].growOffset)?n:0))):"header"===e.kind&&ce&&(M(e.bounds.x),v(i)):"cell"===e.kind&&te>0&&0===i&&void 0!==a&&void 0!==ee&&(j(e.bounds.y),I(a))}null==ne||ne(e)}),[ne,ae,te,ee,q,le,ce,$]),fe=g.useCallback((function(e,t){D||B||null==U||U(e,t)}),[D,B,U]),he=g.useRef(-1),pe=g.useCallback((function(){he.current=-1,I(void 0),H(void 0),j(void 0),_(!1),v(void 0),w(void 0),M(void 0),C(!1),d(void 0),o(void 0)}),[]),ve=g.useCallback((function(e,t){var n,r,i;if(0===e.button){if(void 0!==c){if(!0===(null==ue?void 0:ue.hasIndex(c))){var o,l=(0,a.Z)(ue);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(u!==c){var s=le[u],d=Ln(s,he.current,J,Q);null==K||K(s,d,u,d+(null!=(n=s.growOffset)?n:0))}}}catch(w){l.e(w)}finally{l.f()}}var f=Ln(le[c],he.current,J,Q);null==G||G(le[c],f,c,f+(null!=(r=le[c].growOffset)?r:0));var h,v=(0,a.Z)(ue);try{for(v.s();!(h=v.n()).done;){var g=h.value;if(g!==c){var m=le[g],b=Ln(m,he.current,J,Q);null==G||G(m,b,g,b+(null!=(i=m.growOffset)?i:0))}}}catch(w){v.e(w)}finally{v.f()}}pe(),void 0!==p&&void 0!==y&&(null==Y||Y(p,y)),void 0!==R&&void 0!==T&&(null==ee||ee(R,T))}null==re||re(e,t)}),[re,c,p,y,R,T,ue,G,le,J,Q,K,Y,ee,pe]),ge=g.useMemo((function(){if(void 0!==p&&void 0!==y&&p!==y)return{src:p,dest:y}}),[p,y]),me=g.useCallback((function(e){var t,n;if(void 0!==p&&void 0!==F)Math.abs(e.clientX-F)>20&&C(!0);else if(void 0!==R&&void 0!==W){Math.abs(e.clientY-W)>20&&_(!0)}else if(void 0!==c&&void 0!==i){var r=le[c],o=e.clientX-i,l=Ln(r,o,J,Q);if(null==K||K(r,l,c,l+(null!=(t=r.growOffset)?t:0)),he.current=o,(null==ue?void 0:ue.first())===c){var u,s=(0,a.Z)(ue);try{for(s.s();!(u=s.n()).done;){var d=u.value;if(d!==c){var f=le[d],h=Ln(f,he.current,J,Q);null==K||K(f,h,d,h+(null!=(n=f.growOffset)?n:0))}}}catch(v){s.e(v)}finally{s.f()}}}}),[p,F,R,W,c,i,le,J,Q,K,ue]),be=g.useCallback((function(e){if(void 0===R||void 0===T)return X(e);var t=(0,u.Z)(e,2),n=t[0],r=t[1];return r===T?r=R:(r>T&&(r-=1),r>=R&&(r+=1)),X([n,r])}),[R,T,X]),ye=g.useCallback((function(e){null==oe||oe(e),e.defaultPrevented()||pe()}),[pe,oe]);return g.createElement(Hn,{accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,drawCustomCell:e.drawCustomCell,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,enableGroups:e.enableGroups,eventTargetRef:e.eventTargetRef,experimental:e.experimental,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,headerIcons:e.headerIcons,height:e.height,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,isDraggable:e.isDraggable,isFilling:e.isFilling,isFocused:e.isFocused,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDrop:e.onDrop,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,theme:e.theme,trailingRowType:e.trailingRowType,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,width:e.width,getCellContent:be,isResizing:void 0!==c,onHeaderMenuClick:fe,isDragging:D,onItemHovered:se,onDragStart:ye,onMouseDown:de,allowResize:ae,onMouseUp:ve,dragAndDropState:ge,onMouseMoveRaw:me,ref:q})};var Bn=(0,v.d)("div")({name:"ScrollRegionStyle",class:"s1jz82f8",vars:{"s1jz82f8-0":[function(e){return e.isSafari?"scroll":"auto"}]}});function _n(e){e.stopPropagation()}var Nn=function(e){var t,n,r,i,o=e.children,l=e.clientHeight,c=e.scrollHeight,d=e.scrollWidth,f=e.update,h=e.draggable,p=e.className,v=e.preventDiagonalScrolling,m=void 0!==v&&v,b=e.paddingBottom,y=void 0===b?0:b,w=e.paddingRight,x=void 0===w?0:w,k=e.rightElement,D=e.rightElementProps,C=e.scrollRef,E=e.scrollToEnd,S=e.initialSize,F=e.minimap,M=[],A=null!=(t=null==D?void 0:D.sticky)&&t,Z=null!=(n=null==D?void 0:D.fill)&&n,R=g.useRef(0),I=g.useRef(0),O=g.useRef(null),P=window.devicePixelRatio;g.useEffect((function(){var e=O.current;null!==e&&!0===E&&(e.scrollLeft=e.scrollWidth-e.clientWidth)}),[E]);var T=g.useRef({scrollLeft:0,scrollTop:0,lockDirection:void 0}),H=g.useRef(null),L=function(e){var t=g.useState(!1),n=(0,u.Z)(t,2),r=n[0],i=n[1],o=g.useRef(0);return mt("touchstart",g.useCallback((function(){window.clearTimeout(o.current),i(!0)}),[]),window,!0,!1),mt("touchend",g.useCallback((function(t){0===t.touches.length&&(o.current=window.setTimeout((function(){return i(!1)}),e))}),[e]),window,!0,!1),r}(200),z=g.useState(!0),B=(0,u.Z)(z,2),_=B[0],N=B[1],V=g.useRef(0);g.useEffect((function(){if(_&&!L&&void 0!==T.current.lockDirection){var e=O.current;if(null!==e){var t=(0,u.Z)(T.current.lockDirection,2),n=t[0],r=t[1];void 0!==n?e.scrollLeft=n:void 0!==r&&(e.scrollTop=r),T.current.lockDirection=void 0}}}),[L,_]);var W=g.useCallback((function(){var e,t,n,r,i=O.current;if(null!==i){var o=i.scrollTop,a=i.scrollLeft,l=T.current.scrollTop,u=T.current.scrollLeft,s=a-u,d=o-l;L&&0!==s&&0!==d&&(Math.abs(s)>3||Math.abs(d)>3)&&m&&void 0===T.current.lockDirection&&(T.current.lockDirection=Math.abs(s)<Math.abs(d)?[u,void 0]:[void 0,l]);var h=T.current.lockDirection;a=null!=(e=null==h?void 0:h[0])?e:a,o=null!=(t=null==h?void 0:h[1])?t:o,T.current.scrollLeft=a,T.current.scrollTop=o;var p=o,v=I.current-p,g=i.scrollHeight-i.clientHeight;if(I.current=p,g>0&&(Math.abs(v)>2e3||0===p||p===g)&&c>i.scrollHeight+5){var b=p/g,w=(c-i.clientHeight)*b;R.current=w-p}void 0!==h&&(window.clearTimeout(V.current),N(!1),V.current=window.setTimeout((function(){return N(!0)}),200)),f({x:a,y:p+R.current,width:i.clientWidth-x,height:i.clientHeight-y,paddingRight:null!=(r=null==(n=H.current)?void 0:n.clientWidth)?r:0})}}),[y,x,c,f,m,L]),j=g.useRef(W);j.current=W;var U=g.useRef(),X=g.useRef(!1);g.useEffect((function(){X.current?W():X.current=!0}),[W,y,x]);var Y=g.useCallback((function(e){O.current=e,void 0!==C&&(C.current=e)}),[C]),K=0,$=0;for(M.push(g.createElement("div",{key:K++,style:{width:d,height:0}}));$<c;){var G=Math.min(5e6,c-$);M.push(g.createElement("div",{key:K++,style:{width:0,height:G}})),$+=G}var q=function(e){var t=(0,g.useRef)(null),n=(0,g.useState)({width:null==e?void 0:e[0],height:null==e?void 0:e[1]}),r=(0,u.Z)(n,2),i=r[0],o=r[1];return(0,g.useLayoutEffect)((function(){var e=new window.ResizeObserver((function(e){var t,n=(0,a.Z)(e);try{var r=function(){var e=t.value,n=e&&e.contentRect||{},r=n.width,i=n.height;o((function(e){return e.width===r&&e.height===i?e:{width:r,height:i}}))};for(n.s();!(t=n.n()).done;)r()}catch(i){n.e(i)}finally{n.f()}}));return t.current&&e.observe(t.current,void 0),function(){e.disconnect()}}),[t.current]),(0,s.Z)({ref:t},i)}(S),Q=q.ref,J=q.width,ee=q.height;return(null==(r=U.current)?void 0:r.height)===ee&&(null==(i=U.current)?void 0:i.width)===J||(window.setTimeout((function(){return j.current()}),0),U.current={width:J,height:ee}),0===(null!=J?J:0)||0===(null!=ee?ee:0)?g.createElement("div",{ref:Q}):g.createElement("div",{ref:Q},g.createElement(Bn,{isSafari:On.value},F,g.createElement("div",{className:"dvn-underlay"},o),g.createElement("div",{ref:Y,style:U.current,draggable:h,onDragStart:function(e){h||(e.stopPropagation(),e.preventDefault())},className:"dvn-scroller "+(null!=p?p:""),onScroll:W},g.createElement("div",{className:"dvn-scroll-inner"+(void 0===k?" hidden":"")},g.createElement("div",{className:"dvn-stack"},M),void 0!==k&&g.createElement(g.Fragment,null,!Z&&g.createElement("div",{className:"dvn-spacer"}),g.createElement("div",{ref:H,onMouseDown:_n,onMouseUp:_n,onMouseMove:_n,style:{height:ee,maxHeight:l-Math.ceil(P%1),position:"sticky",top:0,paddingLeft:1,marginBottom:-40,marginRight:x,flexGrow:Z?1:void 0,right:A?null!=x?x:0:void 0,pointerEvents:"auto"}},k))))))},Vn=(0,v.d)("div")({name:"MinimapStyle",class:"m15w2ly5"}),Wn=function(e){var t,n,r,i=e.columns,o=e.rows,l=e.rowHeight,c=e.headerHeight,d=e.groupHeaderHeight,f=e.enableGroups,h=e.freezeColumns,p=e.experimental,v=e.clientSize,b=e.className,y=e.onVisibleRegionChanged,w=e.scrollToEnd,x=e.scrollRef,k=e.preventDiagonalScrolling,D=e.rightElement,C=e.rightElementProps,E=e.overscrollX,S=e.overscrollY,F=e.showMinimap,M=void 0!==F&&F,A=e.initialSize,Z=e.smoothScrollX,R=void 0!==Z&&Z,I=e.smoothScrollY,O=void 0!==I&&I,P=e.isDraggable,T=null!=p?p:{},H=T.paddingRight,L=T.paddingBottom,z=(0,u.Z)(v,2),B=z[0],_=z[1],N=g.useRef(),V=g.useRef(),W=g.useRef(),j=g.useRef(),U=g.useMemo((function(){var e,t=Math.max(0,null!=E?E:0),n=(0,a.Z)(i);try{for(n.s();!(e=n.n()).done;){t+=e.value.width}}catch(r){n.e(r)}finally{n.f()}return t}),[i,E]),X=f?c+d:c;if("number"===typeof l)X+=o*l;else for(var Y=0;Y<o;Y++)X+=l(Y);void 0!==S&&(X+=S);var K=g.useRef(),$=g.useCallback((function(){var e,t,n;if(void 0!==K.current){var r=(0,s.Z)({},K.current),u=0,c=r.x<0?-r.x:0,d=0,f=0;r.x=r.x<0?0:r.x;for(var p=0,v=0;v<h;v++)p+=i[v].width;var g,m=(0,a.Z)(i);try{for(m.s();!(g=m.n()).done;){var b=g.value,w=u-p;if(r.x>=w+b.width)u+=b.width,f++,d++;else if(r.x>w)u+=b.width,R?c+=w-r.x:f++,d++;else{if(!(r.x+r.width>w))break;u+=b.width,d++}}}catch(Z){m.e(Z)}finally{m.f()}var x=0,k=0,D=0;if("number"===typeof l)O?x=(k=Math.floor(r.y/l))*l-r.y:k=Math.ceil(r.y/l),D=Math.ceil(r.height/l)+k,x<0&&D++;else for(var C=0,E=0;E<o;E++){var S=l(E),F=C+(O?0:S/2);if(r.y>=C+S)C+=S,k++,D++;else if(r.y>F)C+=S,O?x+=F-r.y:k++,D++;else{if(!(r.y+r.height>S/2+C))break;C+=S,D++}}var M={x:f,y:k,width:d-f,height:D-k},A=N.current;void 0!==A&&A.y===M.y&&A.x===M.x&&A.height===M.height&&A.width===M.width&&V.current===c&&W.current===x&&r.width===(null==(e=j.current)?void 0:e[0])&&r.height===(null==(t=j.current)?void 0:t[1])||(null==y||y({x:f,y:k,width:d-f,height:D-k},r.width,r.height,null!=(n=r.paddingRight)?n:0,c,x),N.current=M,V.current=c,W.current=x,j.current=[r.width,r.height])}}),[i,l,o,y,h,R,O]),G=g.useCallback((function(e){K.current=e,$()}),[$]);g.useEffect((function(){$()}),[$]);var q=null!=(t=null==x?void 0:x.current)?t:void 0,Q=m(U/X,2/3,1.5),J=200,ee=Q>1?J:Math.ceil(J*Q),te=Q>1?Math.ceil(J/Q):J,ne=ee/U,re=te/X,ie=Math.min(B*Math.max(ne,.01),ee),oe=Math.min(_*Math.max(re,.01),te),ae=(null!=(n=null==q?void 0:q.scrollLeft)?n:0)/(U-B)*(ee-ie),le=(null!=(r=null==q?void 0:q.scrollTop)?r:0)/(X-_)*(te-oe),ue=g.useMemo((function(){if(M&&0!==ie&&0!==oe){var e=function(e){if(void 0!==q){var t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.x-ie/2,r=e.clientY-t.y-oe/2,i=(U-q.clientWidth)*(n/(ee-ie)),o=(X-q.clientHeight)*(r/(te-oe));q.scrollTo({left:i,top:o,behavior:"mousemove"===e.type?"auto":"smooth"})}};return g.createElement(Vn,{style:{width:ee,height:te},"data-testid":"minimap-container",onMouseMove:function(t){1===t.buttons&&e(t)},onClick:e},g.createElement("div",{className:"header"}),g.createElement("div",{className:"locationMarker",onDragStart:function(e){return e.preventDefault()},style:{left:ae,top:le,width:ie,height:oe,borderRadius:Math.min(ie,.2*oe,9)}}))}}),[te,X,ae,q,M,le,oe,ie,ee,U]);return g.createElement(Nn,{scrollRef:x,minimap:ue,className:b,preventDiagonalScrolling:k,draggable:!0===P||"string"===typeof P,scrollWidth:U+(null!=H?H:0),scrollHeight:X+(null!=L?L:0),clientHeight:_,rightElement:D,paddingBottom:L,paddingRight:H,rightElementProps:C,update:G,initialSize:A,scrollToEnd:w},g.createElement(zn,{eventTargetRef:x,width:B,height:_,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,theme:e.theme,trailingRowType:e.trailingRowType,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,drawCustomCell:e.drawCustomCell,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY}))},jn=(0,v.d)("div")({name:"SearchWrapper",class:"sxep88s",vars:{"sxep88s-0":[function(e){return e.showSearch?0:400},"px"]}}),Un=g.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},g.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 244l144-144 144 144M256 120v292"})),Xn=g.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},g.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})),Yn=g.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},g.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368L144 144M368 144L144 368"})),Kn=function(e){var t=e.canvasRef,n=e.cellYOffset,r=e.rows,l=e.columns,c=e.searchInputRef,d=e.getCellsForSelection,f=e.onSearchResultsChanged,h=e.showSearch,p=void 0!==h&&h,v=e.onSearchClose,m=g.useState((function(){return"search-box-"+Math.round(1e3*Math.random())})),b=(0,u.Z)(m,1)[0],y=g.useState(""),w=(0,u.Z)(y,2),x=w[0],k=w[1],D=g.useState(),C=(0,u.Z)(D,2),E=C[0],S=C[1],F=g.useRef(E);F.current=E;var M=g.useRef(new AbortController),A=g.useRef(),Z=g.useState([]),R=(0,u.Z)(Z,2),I=R[0],O=R[1],P=g.useCallback((function(){void 0!==A.current&&(window.cancelAnimationFrame(A.current),A.current=void 0,M.current.abort())}),[]),T=g.useRef(n);T.current=n;var H=g.useCallback((function(e){var t=new RegExp(e.replace(/([$()*+.?[\\\]^{|}-])/g,"\\$1"),"i"),n=T.current,s=Math.min(10,r),c=0;S(void 0),O([]);var h=[],p=function(){var e=(0,o.Z)((0,i.Z)().mark((function e(){var o,v,g,m,b,y,w,x,k,D,C,E,Z,R,I,P,T,H,L,z,B,_;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==d){e.next=2;break}return e.abrupt("return");case 2:if(g=performance.now(),m=r-c,"function"!==typeof(b=d({x:0,y:n,width:l.length,height:Math.min(s,m,r-n)},M.current.signal))){e.next=9;break}return e.next=8,b();case 8:b=e.sent;case 9:y=!1,w=(0,a.Z)(b.entries()),e.prev=11,w.s();case 13:if((x=w.n()).done){e.next=47;break}k=(0,u.Z)(x.value,2),D=k[0],C=k[1],E=(0,a.Z)(C.entries()),e.prev=16,E.s();case 18:if((Z=E.n()).done){e.next=37;break}R=(0,u.Z)(Z.value,2),I=R[0],P=R[1],T=void 0,e.t0=P.kind,e.next=e.t0===Pe.Text||e.t0===Pe.Number?24:e.t0===Pe.Uri||e.t0===Pe.Markdown?26:e.t0===Pe.Boolean?28:e.t0===Pe.Image||e.t0===Pe.Bubble?30:e.t0===Pe.Custom?32:34;break;case 24:return T=P.displayData,e.abrupt("break",34);case 26:return T=P.data,e.abrupt("break",34);case 28:return T="boolean"===typeof P.data?P.data.toString():void 0,e.abrupt("break",34);case 30:return T=P.data.join("\ud83d\udc33"),e.abrupt("break",34);case 32:return T=P.copyData,e.abrupt("break",34);case 34:void 0!==T&&t.test(T)&&(h.push([I,D+n]),y=!0);case 35:e.next=18;break;case 37:e.next=42;break;case 39:e.prev=39,e.t1=e.catch(16),E.e(e.t1);case 42:return e.prev=42,E.f(),e.finish(42);case 45:e.next=13;break;case 47:e.next=52;break;case 49:e.prev=49,e.t2=e.catch(11),w.e(e.t2);case 52:return e.prev=52,w.f(),e.finish(52);case 55:H=performance.now(),y&&O([].concat(h)),Ce((c+=b.length)<=r),L=null!=(v=null==(o=F.current)?void 0:o.selectedIndex)?v:-1,S({results:h.length,rowsSearched:c,selectedIndex:L}),null==f||f(h,L),n+s>=r?n=0:n+=s,z=H-g,B=Math.max(z,1),_=10/B,s=Math.ceil(s*_),c<r&&h.length<1e3&&(A.current=window.requestAnimationFrame(p));case 68:case"end":return e.stop()}}),e,null,[[11,49,52,55],[16,39,42,45]])})));return function(){return e.apply(this,arguments)}}();P(),A.current=window.requestAnimationFrame(p)}),[P,l.length,d,f,r]),L=g.useCallback((function(){var e;null==v||v(),S(void 0),O([]),null==f||f([],-1),P(),null==(e=null==t?void 0:t.current)||e.focus()}),[P,t,v,f]),z=g.useCallback((function(e){k(e.target.value),""===e.target.value?(S(void 0),O([]),P()):H(e.target.value)}),[H,P]);g.useEffect((function(){p&&null!==c.current&&(k(""),c.current.focus({preventScroll:!0}))}),[p,c]);var B=g.useCallback((function(e){var t;if(null==(t=null==e?void 0:e.stopPropagation)||t.call(e),void 0!==E){var n=(E.selectedIndex+1)%E.results;S((0,s.Z)((0,s.Z)({},E),{},{selectedIndex:n})),null==f||f(I,n)}}),[E,f,I]),_=g.useCallback((function(e){var t;if(null==(t=null==e?void 0:e.stopPropagation)||t.call(e),void 0!==E){var n=(E.selectedIndex-1)%E.results;n<0&&(n+=E.results),S((0,s.Z)((0,s.Z)({},E),{},{selectedIndex:n})),null==f||f(I,n)}}),[f,I,E]),N=g.useCallback((function(e){(e.ctrlKey||e.metaKey)&&"KeyF"===e.nativeEvent.code||"Escape"===e.key?(L(),e.stopPropagation(),e.preventDefault()):"Enter"===e.key&&(e.shiftKey?_():B())}),[L,B,_]);g.useEffect((function(){return function(){P()}}),[P]);var V=g.useMemo((function(){var e,t,n,i;void 0!==E&&(i=E.results>=1e3?"over 1000":"".concat(E.results," result").concat(1!==E.results?"s":""),E.selectedIndex>=0&&(i="".concat(E.selectedIndex+1," of ").concat(i)));var o=function(e){e.stopPropagation()},a=Math.floor((null!=(e=null==E?void 0:E.rowsSearched)?e:0)/r*100),l={width:"".concat(a,"%")};return g.createElement(jn,{showSearch:p,onMouseDown:o,onMouseMove:o,onMouseUp:o,onClick:o},g.createElement("div",{className:"search-bar-inner"},g.createElement("input",{id:b,"aria-hidden":!p,"data-testid":"search-input",ref:c,onChange:z,value:x,tabIndex:p?void 0:-1,onKeyDownCapture:N}),g.createElement("button",{"aria-label":"Previous Result","aria-hidden":!p,tabIndex:p?void 0:-1,onClick:_,disabled:0===(null!=(t=null==E?void 0:E.results)?t:0)},Un),g.createElement("button",{"aria-label":"Next Result","aria-hidden":!p,tabIndex:p?void 0:-1,onClick:B,disabled:0===(null!=(n=null==E?void 0:E.results)?n:0)},Xn),void 0!==v&&g.createElement("button",{"aria-label":"Close Search","aria-hidden":!p,"data-testid":"search-close-button",tabIndex:p?void 0:-1,onClick:L},Yn)),void 0!==E?g.createElement(g.Fragment,null,g.createElement("div",{className:"search-status"},g.createElement("div",{"data-testid":"search-result-area"},i)),g.createElement("div",{className:"search-progress",style:l})):g.createElement("div",{className:"search-status"},g.createElement("label",{htmlFor:b},"Type to search")))}),[L,B,_,z,v,N,r,E,x,p,b,c]);return g.createElement(g.Fragment,null,g.createElement(Wn,{prelightCells:I,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,className:e.className,clientSize:e.clientSize,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,initialSize:e.initialSize,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,onVisibleRegionChanged:e.onVisibleRegionChanged,overscrollX:e.overscrollX,overscrollY:e.overscrollY,preventDiagonalScrolling:e.preventDiagonalScrolling,rightElement:e.rightElement,rightElementProps:e.rightElementProps,rowHeight:e.rowHeight,rows:e.rows,scrollRef:e.scrollRef,selection:e.selection,showMinimap:e.showMinimap,theme:e.theme,trailingRowType:e.trailingRowType,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,drawCustomCell:e.drawCustomCell,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,scrollToEnd:e.scrollToEnd}),V)},$n=(0,v.d)("input")({name:"RenameInput",class:"r1kzy40b",vars:{"r1kzy40b-0":[function(e){return Math.max(16,e.targetHeight-10)},"px"]}}),Gn=function(e){var t=e.bounds,n=e.group,r=e.onClose,i=e.canvasBounds,o=e.onFinish,a=g.useState(n),l=(0,u.Z)(a,2),s=l[0],c=l[1];return g.createElement(Me,{style:{position:"absolute",left:t.x-i.left+1,top:t.y-i.top,width:t.width-2,height:t.height},className:"c1sqdbw3",onClickOutside:r},g.createElement($n,{targetHeight:t.height,"data-testid":"group-rename-input",value:s,onBlur:r,onFocus:function(e){return e.target.setSelectionRange(0,s.length)},onChange:function(e){return c(e.target.value)},onKeyDown:function(e){"Enter"===e.key?o(s):"Escape"===e.key&&r()},autoFocus:!0}))},qn=150;function Qn(e,t,n,r,i,o,a,u,c){var d,f=[];void 0!==i&&(d=f).push.apply(d,(0,l.Z)(i.map((function(e){return e[r]})).map((function(n){return function(e,t,n,r){var i,o;if(t.kind===Pe.Custom)return qn;var a=r(t);return null!=(o=null==(i=null==a?void 0:a.measure)?void 0:i.call(a,e,t,n))?o:qn}(e,n,t,c)}))));if(f.length>5&&u){var h=f.reduce((function(e,t){return e+t}))/f.length;f=f.filter((function(e){return e<2*h}))}f.push(e.measureText(n.title).width+16+(void 0===n.icon?0:28));var p=Math.max.apply(Math,(0,l.Z)(f)),v=Math.max(Math.ceil(o),Math.min(Math.floor(a),Math.ceil(p)));return(0,s.Z)((0,s.Z)({},n),{},{width:v})}function Jn(e,t){if(0===e.length)return!1;var n=!1,r=!1,i=!1,o=!1,l=e.split("+");if(!function(e,t){if(void 0===e)return!1;if(e.length>1&&e.startsWith("_")){if(Number.parseInt(e.slice(1))!==t.keyCode)return!1}else if(e!==t.key)return!1;return!0}(l.pop(),t))return!1;var u,s=(0,a.Z)(l);try{for(s.s();!(u=s.n()).done;){switch(u.value){case"ctrl":n=!0;break;case"shift":r=!0;break;case"alt":i=!0;break;case"meta":o=!0;break;case"primary":Pn.value?o=!0:n=!0}}}catch(c){s.e(c)}finally{s.f()}return t.altKey===i&&t.ctrlKey===n&&t.shiftKey===r&&t.metaKey===o}function er(e){return e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1).replace(/""/g,'"')),e}function tr(e){var t,n;(n=t||(t={}))[n.None=0]="None",n[n.inString=1]="inString",n[n.inStringPostQuote=2]="inStringPostQuote";var r=[],i=[],o=0,l=0;e=e.replace(/\r\n/g,"\n");var u,s=0,c=(0,a.Z)(e);try{for(c.s();!(u=c.n()).done;){var d=u.value;switch(l){case 0:"\t"===d||"\n"===d?(i.push(e.slice(o,s)),o=s+1,"\n"===d&&(r.push(i),i=[])):'"'===d&&(l=1);break;case 1:'"'===d&&(l=2);break;case 2:'"'===d?l=1:"\t"===d||"\n"===d?(i.push(er(e.slice(o,s))),o=s+1,"\n"===d&&(r.push(i),i=[]),l=0):l=0}s++}}catch(f){c.e(f)}finally{c.f()}return o<e.length&&i.push(er(e.slice(o,e.length))),r.push(i),r}function nr(e){for(var t,n,r,i=[e],o=[];i.length>0;){var a=i.pop();if(void 0===a)break;a instanceof HTMLTableElement||"TBODY"===a.nodeName?i.push.apply(i,(0,l.Z)((0,l.Z)(a.children).reverse())):a instanceof HTMLTableRowElement?(void 0!==r&&o.push(r),r=[],i.push.apply(i,(0,l.Z)((0,l.Z)(a.children).reverse()))):a instanceof HTMLTableCellElement&&(null==r||r.push(null!=(n=null!=(t=a.innerText)?t:a.textContent)?n:""))}return void 0!==r&&o.push(r),o}function rr(e){return/[\t\n"]/.test(e)&&(e='"'.concat(e.replace(/"/g,'""'),'"')),e}function ir(e,t,n){var r,i,o,l,s=function(e,n,r){var i,o,a=t[n];if(void 0!==e.span&&e.span[0]!==a)return"";switch(e.kind){case Pe.Text:case Pe.Number:return rr(r?null!=(o=null==(i=e.data)?void 0:i.toString())?o:"":e.displayData);case Pe.Markdown:case Pe.RowID:case Pe.Uri:return rr(e.data);case Pe.Image:case Pe.Bubble:return e.data.reduce((function(e,t){return"".concat(rr(e),",").concat(rr(t))}));case Pe.Boolean:return function(e){switch(e){case!0:return"TRUE";case!1:return"FALSE";case Be:return"INDETERMINATE";case ze:return"";default:Ee()}}(e.data);case Pe.Loading:return r?"":"#LOADING";case Pe.Protected:return r?"":"************";case Pe.Drilldown:return e.data.map((function(e){return e.text})).reduce((function(e,t){return"".concat(rr(e),",").concat(rr(t))}));case Pe.Custom:return rr(e.copyData);default:Ee()}},c=e.map((function(e){return e.map((function(e,t){return s(e,t,!1)})).join("\t")})).join("\n");if(void 0!==(null==(r=window.navigator.clipboard)?void 0:r.write)||void 0!==n){var d,f=document.createElement("tbody"),h=(0,a.Z)(e);try{for(h.s();!(d=h.n()).done;){var p,v=d.value,g=document.createElement("tr"),m=(0,a.Z)(v.entries());try{for(m.s();!(p=m.n()).done;){var b=(0,u.Z)(p.value,2),y=b[0],w=b[1],x=document.createElement("td");if(w.kind===Pe.Uri){var k=document.createElement("a");k.href=w.data,k.innerText=w.data,x.append(k)}else x.innerText=s(w,y,!0);g.append(x)}}catch(D){m.e(D)}finally{m.f()}f.append(g)}}catch(D){h.e(D)}finally{h.f()}if(void 0!==(null==(i=window.navigator.clipboard)?void 0:i.write))window.navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([c],{type:"text/plain"}),"text/html":new Blob(["<table>".concat(f.outerHTML,"</table>")],{type:"text/html"})})]);else if(void 0!==n&&null!==(null==n?void 0:n.clipboardData))try{n.clipboardData.setData("text/plain",c),n.clipboardData.setData("text/html","<table>".concat(f.outerHTML,"</table>"))}catch(C){null==(o=window.navigator.clipboard)||o.writeText(c)}}else null==(l=window.navigator.clipboard)||l.writeText(c);null==n||n.preventDefault()}function or(e){return"string"===typeof e?e:"".concat(e,"px")}var ar=(0,v.d)("div")({name:"Wrapper",class:"wzg2m5k",vars:{"wzg2m5k-0":[function(e){return e.innerWidth}],"wzg2m5k-1":[function(e){return e.innerHeight}]}}),lr=function(e){var t=e.inWidth,n=e.inHeight,r=e.children,i=(0,c.Z)(e,xe);return g.createElement(ar,(0,s.Z)({innerHeight:or(n),innerWidth:or(t)},i),r)};function ur(e){return!0!==e}var sr={getAccessibilityString:function(e){var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:"false"},kind:Pe.Boolean,needsHover:!0,useLabel:!1,needsHoverPosition:!0,measure:function(){return 50},draw:function(e){return function(e,t,n){if(n||t!==ze){var r=e.ctx,i=e.hoverAmount,o=e.theme,a=e.rect,l=e.highlighted,u=e.hoverX,s=e.hoverY,c=a.x,d=a.y,f=a.width,h=a.height,p=n?.65+.35*i:.4;t===ze&&(p*=i),0!==p&&(r.globalAlpha=p,Yt(r,o,t,c,d,f,h,l,u,s),r.globalAlpha=1)}}(e,e.cell.data,rt(e.cell))},onDelete:function(e){return(0,s.Z)((0,s.Z)({},e),{},{data:!1})},onClick:function(e){var t=e.cell,n=e.posX,r=e.posY,i=e.bounds;if(rt(t)&&Math.abs(n-i.width/2)<=i.height/3.4&&Math.abs(r-i.height/2)<=i.height/3.4)return(0,s.Z)((0,s.Z)({},t),{},{data:ur(t.data)})},onPaste:function(e,t){var n=ze;return"true"===e.toLowerCase()?n=!0:"false"===e.toLowerCase()?n=!1:"indeterminate"===e.toLowerCase()&&(n=Be),n===t.data?void 0:(0,s.Z)((0,s.Z)({},t),{},{data:n})}};var cr=(0,v.d)("div")({name:"BubblesOverlayEditorStyle",class:"b1bqsp5z"}),dr=function(e){var t=e.bubbles;return g.createElement(cr,null,t.map((function(e,t){return g.createElement("div",{key:t,className:"boe-bubble"},e)})),g.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},fr={getAccessibilityString:function(e){var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:Pe.Bubble,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:function(e,t,n){return t.data.reduce((function(t,n){return e.measureText(n).width+t+20}),0)+2*n.cellHorizontalPadding-4},draw:function(e){return function(e,t){var n,r=e.rect,i=e.theme,o=e.ctx,l=e.highlighted,s=r.x,c=r.y,d=r.width,f=r.height,h=s+i.cellHorizontalPadding,p=[],v=(0,a.Z)(t);try{for(v.s();!(n=v.n()).done;){var g=n.value;if(h>s+d)break;var m=zt(g,o,"".concat(i.baseFontStyle," ").concat(i.fontFamily)).width;p.push({x:h,width:m}),h+=m+16+4}}catch(S){v.e(S)}finally{v.f()}o.beginPath();for(var b=0,y=p;b<y.length;b++){var w=y[b];$t(o,w.x,c+(f-20)/2,w.width+16,20,10)}o.fillStyle=l?i.bgBubbleSelected:i.bgBubble,o.fill();var x,k=(0,a.Z)(p.entries());try{for(k.s();!(x=k.n()).done;){var D=(0,u.Z)(x.value,2),C=D[0],E=D[1];o.beginPath(),o.fillStyle=i.textBubble,o.fillText(t[C],E.x+8,c+f/2+Bt(o,i))}}catch(S){k.e(S)}finally{k.f()}}(e,e.cell.data)},provideEditor:function(){return function(e){var t=e.value;return g.createElement(dr,{bubbles:t.data})}},onPaste:function(){}},hr=(0,v.d)("div")({name:"DrilldownOverlayEditorStyle",class:"df2kt4a"}),pr=function(e){var t=e.drilldowns;return g.createElement(hr,null,t.map((function(e,t){return g.createElement("div",{key:t,className:"doe-bubble"},void 0!==e.img&&g.createElement("img",{src:e.img}),g.createElement("div",null,e.text))})))},vr={getAccessibilityString:function(e){return e.data.map((function(e){return e.text})).join(", ")},kind:Pe.Drilldown,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:function(e,t,n){return t.data.reduce((function(t,n){return e.measureText(n.text).width+t+20+(void 0!==n.img?18:0)}),0)+2*n.cellHorizontalPadding-4},draw:function(e){return qt(e,e.cell.data)},provideEditor:function(){return function(e){var t=e.value;return g.createElement(pr,{drilldowns:t.data})}},onPaste:function(){}},gr=(0,v.d)("div")({name:"ImageOverlayEditorStyle",class:"i1eozt10"}),mr=function(e){var t=e.urls,n=e.canWrite,r=e.onEditClick,i=e.renderImage,o=t.filter((function(e){return""!==e}));if(0===o.length)return null;var a=o.length>1;return g.createElement(gr,{"data-testid":"GDG-default-image-overlay-editor"},g.createElement(I.lr,{showArrows:a,showThumbs:!1,swipeable:a,emulateTouch:a,infiniteLoop:a},o.map((function(e){var t,n=null!=(t=null==i?void 0:i(e))?t:g.createElement("img",{draggable:!1,src:e});return g.createElement("div",{className:"centering-container",key:e},n)}))),n&&r&&g.createElement("button",{className:"edit-icon",onClick:r},g.createElement(xt,null)))},br={getAccessibilityString:function(e){return e.data.join(", ")},kind:Pe.Image,needsHover:!1,useLabel:!1,needsHoverPosition:!1,draw:function(e){var t;return function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,i=e.rect,o=e.col,l=e.row,u=e.theme,s=e.ctx,c=e.imageLoader,d=i.x,f=i.y,h=i.height,p=d+u.cellHorizontalPadding,v=(0,a.Z)(t);try{for(v.s();!(n=v.n()).done;){var g=n.value;if(0!==g.length){var m=c.loadOrGetImage(g,o,l);if(void 0!==m){var b=h-2*u.cellVerticalPadding,y=m.width*(b/m.height);r>0&&($t(s,p,f+u.cellVerticalPadding,y,b,r),s.save(),s.clip()),s.drawImage(m,p,f+u.cellVerticalPadding,y,b),r>0&&s.restore(),p+=y+4}}}}catch(w){v.e(w)}finally{v.f()}}(e,null!=(t=e.cell.displayData)?t:e.cell.data,e.cell.rounding)},measure:function(e,t){return 50*t.data.length},onDelete:function(e){return(0,s.Z)((0,s.Z)({},e),{},{data:[]})},provideEditor:function(){return function(e){var t=e.value,n=e.onFinishedEditing,r=e.imageEditorOverride,i=null!=r?r:mr;return g.createElement(i,{urls:t.data,canWrite:t.allowAdd,onCancel:n,onChange:function(e){n((0,s.Z)((0,s.Z)({},t),{},{data:[e]}))}})}},onPaste:function(e,t){var n=(e=e.trim()).split(",").map((function(e){try{return new URL(e),e}catch(t){return}})).filter((function(e){return void 0!==e}));if(n.length!==t.data.length||!n.every((function(e,n){return e===t.data[n]})))return(0,s.Z)((0,s.Z)({},t),{},{data:n})}},yr={getAccessibilityString:function(){return""},kind:Pe.Loading,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:function(){return 120},draw:function(){},onPaste:function(){}},wr=(0,v.d)("div")({name:"MarkdownContainer",class:"mlbeo71"}),xr=function(e){(0,h.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,d.Z)(this,n),(e=t.apply(this,arguments)).targetElement=null,e.containerRefHook=function(t){e.targetElement=t,e.renderMarkdownIntoDiv()},e}return(0,f.Z)(n,[{key:"renderMarkdownIntoDiv",value:function(){var e=this.targetElement,t=this.props;if(null!==e){var n=t.contents,r=t.createNode,i=ge(n),o=document.createRange();o.selectNodeContents(e),o.deleteContents();var l=null==r?void 0:r(i);if(void 0===l){var u=document.createElement("template");u.innerHTML=i,l=u.content}e.append(l);var s,c=e.getElementsByTagName("a"),d=(0,a.Z)(c);try{for(d.s();!(s=d.n()).done;){var f=s.value;f.target="_blank",f.rel="noreferrer noopener"}}catch(h){d.e(h)}finally{d.f()}}}},{key:"render",value:function(){return this.renderMarkdownIntoDiv(),g.createElement(wr,{ref:this.containerRefHook})}}]),n}(g.PureComponent),kr=(0,v.d)("textarea")({name:"InputBox",class:"ijuk0po"}),Dr=(0,v.d)("div")({name:"ShadowBox",class:"saq3p5l"}),Cr=(0,v.d)("div")({name:"GrowingEntryStyle",class:"gf8vzix"}),Er=function(e){var t=e.placeholder,n=e.value,r=e.onKeyDown,i=e.highlight,o=e.altNewline,a=e.validatedSelection,l=(0,c.Z)(e,ke),u=l.onChange,d=l.className,f=g.useRef(null),h=null!=n?n:"";Ce(void 0!==u,"GrowingEntry must be a controlled input area"),g.useEffect((function(){var e=f.current;if(null!==e&&!e.disabled){var t=h.toString().length;e.focus(),e.setSelectionRange(i?0:t,t)}}),[]),g.useLayoutEffect((function(){var e;if(void 0!==a){var t="number"===typeof a?[a,null]:a;null==(e=f.current)||e.setSelectionRange(t[0],t[1])}}),[a]);var p=g.useCallback((function(e){"Enter"===e.key&&e.shiftKey&&!0===o||null==r||r(e)}),[o,r]);return g.createElement(Cr,{className:"gdg-growing-entry"},g.createElement(Dr,{className:d},h+"\n"),g.createElement(kr,(0,s.Z)((0,s.Z)({},l),{},{className:(null!=d?d:"")+" gdg-input",ref:f,onKeyDown:p,value:h,placeholder:t,dir:"auto"})))},Sr=(0,v.d)("div")({name:"MarkdownOverlayEditorStyle",class:"mdwzdl1",vars:{"mdwzdl1-0":[function(e){return e.targetWidth},"px"]}}),Fr=function(e){var t=e.value,n=e.onChange,r=e.forceEditMode,i=e.createNode,o=e.targetRect,a=e.onFinish,l=e.validatedSelection,s=t.data,c=!0===t.readonly,d=g.useState(""===s||r),f=(0,u.Z)(d,2),h=f[0],p=f[1],v=g.useCallback((function(){p((function(e){return!e}))}),[]),m=s?"ml-6":"";return h?g.createElement(Sr,{targetWidth:o.width-20},g.createElement(Er,{autoFocus:!0,highlight:!1,validatedSelection:l,value:s,onKeyDown:function(e){"Enter"===e.key&&e.stopPropagation()},onChange:n}),g.createElement("div",{className:"edit-icon checkmark-hover ".concat(m),onClick:function(){return a(t)}},g.createElement(kt,null))):g.createElement(Sr,{targetWidth:o.width},g.createElement(xr,{contents:s,createNode:i}),!c&&g.createElement(g.Fragment,null,g.createElement("div",{className:"spacer"}),g.createElement("div",{className:"edit-icon edit-hover ".concat(m),onClick:v},g.createElement(xt,null))),g.createElement("textarea",{className:"md-edit-textarea gdg-input",autoFocus:!0}))},Mr={getAccessibilityString:function(e){var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:Pe.Markdown,needsHover:!1,needsHoverPosition:!1,drawPrep:Vt,measure:function(e,t,n){var r=t.data.split("\n")[0];return e.measureText(r).width+2*n.cellHorizontalPadding},draw:function(e){return Xt(e,e.cell.data,e.cell.contentAlign)},onDelete:function(e){return(0,s.Z)((0,s.Z)({},e),{},{data:""})},provideEditor:function(){return function(e){var t=e.onChange,n=e.value,r=e.target,i=e.onFinishedEditing,o=e.markdownDivCreateNode,a=e.forceEditMode,l=e.validatedSelection;return g.createElement(Fr,{onFinish:i,targetRect:r,value:n,validatedSelection:l,onChange:function(e){return t((0,s.Z)((0,s.Z)({},n),{},{data:e.target.value}))},forceEditMode:a,createNode:o})}},onPaste:function(e,t){return e===t.data?void 0:(0,s.Z)((0,s.Z)({},t),{},{data:e})}},Ar={getAccessibilityString:function(e){return e.row.toString()},kind:We.Marker,needsHover:!0,needsHoverPosition:!1,drawPrep:function(e,t){var n=e.ctx,r=e.theme,i="9px ".concat(r.fontFamily),o=null!=t?t:{};return(null==o?void 0:o.font)!==i&&(n.font=i,o.font=i),o.deprep=Kt,n.textAlign="center",o},measure:function(){return 44},draw:function(e){return function(e,t,n,r,i){var o=e.ctx,a=e.rect,l=e.hoverAmount,u=e.theme,s=a.x,c=a.y,d=a.width,f=a.height,h=n?1:l;if("number"!==r&&h>0){o.globalAlpha=h;var p=7*(n?l:1);if(Yt(o,u,n,i?s+p:s,c,i?d-p:d,f,!0),i){o.globalAlpha=l,o.beginPath();for(var v=0,g=[3,6];v<g.length;v++)for(var m=g[v],b=0,y=[-5,-1,3];b<y.length;b++){var w=y[b];o.rect(s+m,c+f/2+w,2,2)}o.fillStyle=u.textLight,o.fill(),o.beginPath()}o.globalAlpha=1}if("number"===r||"both"===r&&!n){var x=t.toString(),k=s+d/2;"both"===r&&0!==l&&(o.globalAlpha=1-l),o.fillStyle=u.textLight,o.fillText(x,k,c+f/2+Bt(o,"9px ".concat(u.fontFamily))),0!==l&&(o.globalAlpha=1)}}(e,e.cell.row,e.cell.checked,e.cell.markerKind,e.cell.drawHandle)},onClick:function(e){var t=e.bounds,n=e.cell,r=e.posX,i=e.posY,o=t.width,a=t.height,l=n.drawHandle?7+(o-7)/2:o/2,u=a/2;if(Math.abs(r-l)<=10&&Math.abs(i-u)<=10)return(0,s.Z)((0,s.Z)({},n),{},{checked:!n.checked})},onPaste:function(){}},Zr={getAccessibilityString:function(){return""},kind:We.NewRow,needsHover:!0,needsHoverPosition:!1,measure:function(){return 200},draw:function(e){return function(e,t,n){var r=e.ctx,i=e.rect,o=e.hoverAmount,a=e.theme,l=e.spriteManager,u=i.x,s=i.y,c=i.width,d=i.height;r.beginPath(),r.globalAlpha=o,r.rect(u,s,c,d),r.fillStyle=a.bgHeaderHovered,r.fill(),r.globalAlpha=1,r.beginPath();var f=""!==t,h=0;if(void 0!==n){var p=d-8,v=u+4,g=s+4;l.drawSprite(n,"normal",r,v,g,p,a,f?1:o),h=p}else{h=24;var m=f?12:12*o,b=f?0:12*(1-o)*.5,y=a.cellHorizontalPadding+4;m>0&&(r.moveTo(u+y+b,s+d/2),r.lineTo(u+y+b+m,s+d/2),r.moveTo(u+y+b+.5*m,s+d/2-.5*m),r.lineTo(u+y+b+.5*m,s+d/2+.5*m),r.lineWidth=2,r.strokeStyle=a.bgIconHeader,r.lineCap="round",r.stroke())}r.fillStyle=a.textMedium,r.fillText(t,h+u+a.cellHorizontalPadding+.5,s+d/2+Bt(r,a)),r.beginPath()}(e,e.cell.hint,e.cell.icon)},onPaste:function(){}},Rr=g.lazy((0,o.Z)((0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(714).then(n.bind(n,60714));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))),Ir={getAccessibilityString:function(e){var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:Pe.Number,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:Vt,draw:function(e){return Xt(e,e.cell.displayData,e.cell.contentAlign)},measure:function(e,t){return e.measureText(t.displayData).width+16},onDelete:function(e){return(0,s.Z)((0,s.Z)({},e),{},{data:void 0})},provideEditor:function(){return function(e){var t=e.isHighlighted,n=e.onChange,r=e.value,i=e.validatedSelection;return g.createElement(g.Suspense,{fallback:null},g.createElement(Rr,{highlight:t,disabled:!0===r.readonly,value:r.data,validatedSelection:i,onChange:function(e){var t;return n((0,s.Z)((0,s.Z)({},r),{},{data:Number.isNaN(null!=(t=e.floatValue)?t:0)?0:e.floatValue}))}}))}},onPaste:function(e,t){var n=Number.parseFloat(e);if(!Number.isNaN(n)&&t.data!==n)return(0,s.Z)((0,s.Z)({},t),{},{data:n})}},Or={getAccessibilityString:function(){return""},measure:function(){return 108},kind:Pe.Protected,needsHover:!1,needsHoverPosition:!1,draw:function(e){var t=e.ctx,n=e.theme,r=e.rect,i=r.x,o=r.y,a=r.height;t.beginPath();for(var l=2.5,u=i+n.cellHorizontalPadding+l,s=o+a/2,c=Math.cos(wt(30))*l,d=Math.sin(wt(30))*l,f=0;f<12;f++)t.moveTo(u,s-l),t.lineTo(u,s+l),t.moveTo(u+c,s-d),t.lineTo(u-c,s+d),t.moveTo(u-c,s-d),t.lineTo(u+c,s+d),u+=8;t.lineWidth=1.1,t.lineCap="square",t.strokeStyle=n.textLight,t.stroke()},onPaste:function(){}},Pr={getAccessibilityString:function(e){var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:Pe.RowID,needsHover:!1,needsHoverPosition:!1,drawPrep:function(e,t){return Vt(e,t,e.theme.textLight)},draw:function(e){return Xt(e,e.cell.data,e.cell.contentAlign)},measure:function(e,t){return e.measureText(t.data).width+16},provideEditor:function(){return function(e){var t=e.isHighlighted,n=e.onChange,r=e.value,i=e.validatedSelection;return g.createElement(Er,{highlight:t,autoFocus:!0!==r.readonly,disabled:!1!==r.readonly,value:r.data,validatedSelection:i,onChange:function(e){return n((0,s.Z)((0,s.Z)({},r),{},{data:e.target.value}))}})}},onPaste:function(){}},Tr={getAccessibilityString:function(e){var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:Pe.Text,needsHover:!1,needsHoverPosition:!1,drawPrep:Vt,useLabel:!0,draw:function(e){return Xt(e,e.cell.displayData,e.cell.contentAlign,e.cell.allowWrapping,e.hyperWrapping),!0},measure:function(e,t,n){var r=t.displayData.split("\n").slice(0,!0===t.allowWrapping?void 0:1);return Math.max.apply(Math,(0,l.Z)(r.map((function(t){return e.measureText(t).width+2*n.cellHorizontalPadding}))))},onDelete:function(e){return(0,s.Z)((0,s.Z)({},e),{},{data:""})},provideEditor:function(){return function(e){var t=e.isHighlighted,n=e.onChange,r=e.value,i=e.validatedSelection;return g.createElement(Er,{highlight:t,autoFocus:!0!==r.readonly,disabled:!0===r.readonly,altNewline:!0,value:r.data,validatedSelection:i,onChange:function(e){return n((0,s.Z)((0,s.Z)({},r),{},{data:e.target.value}))}})}},onPaste:function(e,t){return e===t.data?void 0:(0,s.Z)((0,s.Z)({},t),{},{data:e})}},Hr=(0,v.d)("div")({name:"UriOverlayEditorStyle",class:"uf0sjo8"}),Lr=function(e){var t=e.uri,n=e.onChange,r=e.forceEditMode,i=e.readonly,o=e.validatedSelection,a=g.useState(""===t||r),l=(0,u.Z)(a,2),s=l[0],c=l[1],d=g.useCallback((function(){c(!0)}),[]);return s?g.createElement(Er,{validatedSelection:o,highlight:!0,autoFocus:!0,value:t,onChange:n}):g.createElement(Hr,null,g.createElement("a",{className:"link-area",href:t,target:"_blank",rel:"noopener noreferrer"},t),!i&&g.createElement("div",{className:"edit-icon",onClick:d},g.createElement(xt,null)),g.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},zr={getAccessibilityString:function(e){var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:Pe.Uri,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:Vt,draw:function(e){return Xt(e,e.cell.data,e.cell.contentAlign)},measure:function(e,t){return e.measureText(t.data).width+16},onDelete:function(e){return(0,s.Z)((0,s.Z)({},e),{},{data:""})},provideEditor:function(){return function(e){var t=e.onChange,n=e.value,r=e.forceEditMode,i=e.validatedSelection;return g.createElement(Lr,{forceEditMode:r,uri:n.data,validatedSelection:i,readonly:!0===n.readonly,onChange:function(e){return t((0,s.Z)((0,s.Z)({},n),{},{data:e.target.value}))}})}},onPaste:function(e,t){return e===t.data?void 0:(0,s.Z)((0,s.Z)({},t),{},{data:e})}},Br=(me={},(0,r.Z)(me,We.Marker,Ar),(0,r.Z)(me,We.NewRow,Zr),(0,r.Z)(me,Pe.Boolean,sr),(0,r.Z)(me,Pe.Bubble,fr),(0,r.Z)(me,Pe.Drilldown,vr),(0,r.Z)(me,Pe.Image,br),(0,r.Z)(me,Pe.Loading,yr),(0,r.Z)(me,Pe.Markdown,Mr),(0,r.Z)(me,Pe.Number,Ir),(0,r.Z)(me,Pe.Protected,Or),(0,r.Z)(me,Pe.RowID,Pr),(0,r.Z)(me,Pe.Text,Tr),(0,r.Z)(me,Pe.Uri,zr),me),_r=0;function Nr(e,t){return void 0===e||0===t||0===e.columns.length&&void 0===e.current?e:{current:void 0===e.current?void 0:{cell:[e.current.cell[0]+t,e.current.cell[1]],range:(0,s.Z)((0,s.Z)({},e.current.range),{},{x:e.current.range.x+t}),rangeStack:e.current.rangeStack.map((function(e){return(0,s.Z)((0,s.Z)({},e),{},{x:e.x+t})}))},rows:e.rows,columns:e.columns.offset(t)}}var Vr={selectAll:!0,selectRow:!0,selectColumn:!0,downFill:!1,rightFill:!1,pageUp:!1,pageDown:!1,clear:!0,copy:!0,paste:!0,search:!1,first:!0,last:!0},Wr={kind:Pe.Loading,allowOverlay:!1},jr={columns:ot.empty(),rows:ot.empty(),current:void 0},Ur=g.forwardRef((function(e,t){var n,r,c,d,f,h=g.useState(jr),p=(0,u.Z)(h,2),v=p[0],k=p[1],D=g.useState(),C=(0,u.Z)(D,2),E=C[0],S=C[1],F=g.useRef(null),M=g.useRef(null),A=g.useState(),Z=(0,u.Z)(A,2),R=Z[0],I=Z[1],O=g.useRef(null),P=g.useRef(),T=e.rowMarkers,H=void 0===T?"none":T,L=e.rowMarkerWidth,z=e.imageEditorOverride,B=e.getRowThemeOverride,_=e.markdownDivCreateNode,N=e.width,V=e.height,W=e.columns,j=e.rows,U=e.getCellContent,X=e.onCellClicked,Y=e.onCellActivated,K=e.onFinishedEditing,$=e.coercePasteValue,G=e.drawHeader,q=e.onHeaderClicked,Q=e.spanRangeBehavior,J=void 0===Q?"default":Q,ee=e.onGroupHeaderClicked,te=e.onCellContextMenu,ne=e.className,re=e.onHeaderContextMenu,ie=e.getCellsForSelection,oe=e.onGroupHeaderContextMenu,ae=e.onGroupHeaderRenamed,le=e.onCellEdited,ue=e.onCellsEdited,se=e.onKeyDown,ce=e.onKeyUp,de=e.keybindings,fe=e.onRowAppended,he=e.onColumnMoved,pe=e.validateCell,ve=e.highlightRegions,ge=e.drawCell,me=e.rangeSelect,be=void 0===me?"rect":me,ye=e.columnSelect,we=void 0===ye?"multi":ye,xe=e.rowSelect,ke=void 0===xe?"multi":xe,De=e.rangeSelectionBlending,Se=void 0===De?"exclusive":De,Fe=e.columnSelectionBlending,Me=void 0===Fe?"exclusive":Fe,Ze=e.rowSelectionBlending,Oe=void 0===Ze?"exclusive":Ze,Te=e.onDelete,He=e.onDragStart,Le=e.onMouseMove,ze=e.onPaste,Be=e.copyHeaders,je=void 0!==Be&&Be,Ue=e.freezeColumns,Xe=void 0===Ue?0:Ue,Qe=e.rowSelectionMode,rt=void 0===Qe?"auto":Qe,it=e.rowMarkerStartIndex,at=void 0===it?1:it,lt=e.rowMarkerTheme,st=e.onHeaderMenuClick,ct=e.getGroupDetails,dt=e.onSearchClose,ft=e.onItemHovered,ht=e.onSelectionCleared,pt=e.showSearch,vt=e.onVisibleRegionChanged,gt=e.gridSelection,yt=e.onGridSelectionChange,wt=e.minColumnWidth,xt=void 0===wt?50:wt,kt=e.maxColumnWidth,Dt=void 0===kt?500:kt,Ct=e.maxColumnAutoWidth,Et=e.provideEditor,St=e.trailingRowOptions,Zt=e.scrollOffsetX,Rt=e.scrollOffsetY,It=e.verticalBorder,Ot=e.onDragOverCell,Pt=e.onDrop,Tt=e.onColumnResize,Ht=e.onColumnResizeEnd,Lt=e.onColumnResizeStart,zt=e.customRenderers,Bt=e.fillHandle,_t=e.drawFocusRing,Nt=e.experimental,Vt=e.fixedShadowX,Wt=e.fixedShadowY,jt=e.headerIcons,Ut=e.imageWindowLoader,Xt=e.initialSize,Yt=e.isDraggable,Kt=e.onDragLeave,$t=e.onRowMoved,Gt=e.overscrollX,qt=e.overscrollY,Qt=e.preventDiagonalScrolling,Jt=e.rightElement,en=e.rightElementProps,tn=e.showMinimap,nn=e.smoothScrollX,rn=e.smoothScrollY,on=e.scrollToEnd,an=e.scaleToRem,ln=void 0!==an&&an,un=e.rowHeight,sn=void 0===un?34:un,cn=e.headerHeight,dn=void 0===cn?36:cn,fn=e.groupHeaderHeight,hn=void 0===fn?dn:fn,pn=e.theme,vn=Math.max(xt,20),gn=Math.max(Dt,vn),mn=Math.max(null!=Ct?Ct:gn,vn),bn=g.useMemo((function(){return"undefined"===typeof window?{fontSize:"16px"}:window.getComputedStyle(document.documentElement)}),[]).fontSize,yn=g.useMemo((function(){return Number.parseFloat(bn)}),[bn]),wn=g.useMemo((function(){var e,t,n;if(!ln||16===yn)return[sn,dn,hn,pn,Gt,qt];var r=yn/16,i=sn,o=Re();return["number"===typeof i?i*r:function(e){return Math.ceil(i(e)*r)},Math.ceil(dn*r),Math.ceil(hn*r),(0,s.Z)((0,s.Z)({},pn),{},{headerIconSize:(null!=(e=null==pn?void 0:pn.headerIconSize)?e:o.headerIconSize)*r,cellHorizontalPadding:(null!=(t=null==pn?void 0:pn.cellHorizontalPadding)?t:o.cellHorizontalPadding)*r,cellVerticalPadding:(null!=(n=null==pn?void 0:pn.cellVerticalPadding)?n:o.cellVerticalPadding)*r}),Math.ceil((null!=Gt?Gt:0)*r),Math.ceil((null!=qt?qt:0)*r)]}),[hn,dn,Gt,qt,yn,sn,ln,pn]),xn=(0,u.Z)(wn,6),kn=xn[0],Dn=xn[1],Cn=xn[2],En=xn[3],Sn=xn[4],Fn=xn[5],Mn=g.useMemo((function(){return void 0===de?Vr:(0,s.Z)((0,s.Z)({},Vr),de)}),[de]),An=null!=L?L:j>1e4?48:j>1e3?44:j>100?36:32,Zn="none"!==H,Rn=Zn?1:0,In=void 0!==fe,On=!0===(null==St?void 0:St.sticky),Tn=g.useState(!1),Hn=(0,u.Z)(Tn,2),Ln=Hn[0],zn=Hn[1],Bn=null!=pt?pt:Ln,_n=g.useCallback((function(){void 0!==dt?dt():zn(!1)}),[dt]),Nn=g.useMemo((function(){return void 0===gt?void 0:Nr(gt,Rn)}),[gt,Rn]),Vn=null!=Nn?Nn:v,Wn=g.useRef(new AbortController);g.useEffect((function(){return function(){null==Wn||Wn.current.abort()}}),[]);var jn=function(e,t,n,r){var a=g.useCallback((function(n){var i;if(!0===e){for(var o=[],a=n.y;a<n.y+n.height;a++){for(var l=[],u=n.x;u<n.x+n.width;u++)u<0?l.push({kind:Pe.Loading,allowOverlay:!1}):l.push(t([u,a]));o.push(l)}return o}return null!=(i=null==e?void 0:e(n,r.signal))?i:[]}),[r.signal,t,e]),u=void 0!==e?a:void 0,c=g.useCallback((function(e){if(void 0===u)return[];var t=(0,s.Z)((0,s.Z)({},e),{},{x:e.x-n});if(t.x<0){t.x=0,t.width--;var a=u(t,r.signal);return"function"===typeof a?(0,o.Z)((0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a();case 2:return e.abrupt("return",e.sent.map((function(e){return[{kind:Pe.Loading,allowOverlay:!1}].concat((0,l.Z)(e))})));case 3:case"end":return e.stop()}}),e)}))):a.map((function(e){return[{kind:Pe.Loading,allowOverlay:!1}].concat((0,l.Z)(e))}))}return u(t,r.signal)}),[r.signal,u,n]);return[void 0!==e?c:void 0,u]}(ie,U,Rn,Wn.current),Un=(0,u.Z)(jn,2),Xn=Un[0],Yn=Un[1],$n=g.useCallback((function(e,t,n){if(void 0===pe)return!0;var r=[e[0]-Rn,e[1]];return null==pe?void 0:pe(r,t,n)}),[Rn,pe]),er=g.useRef(gt),rr=g.useCallback((function(e,t){t&&(e=function(e,t,n,r,i){var o,u,s=e;if("allowPartial"===r||void 0===e.current)return e;if(void 0!==t){var c=!1;do{if(void 0===(null==e?void 0:e.current))break;var d=null==(o=e.current)?void 0:o.range,f=[];if(d.width>2){var h=t({x:d.x,y:d.y,width:1,height:d.height},i.signal);if("function"===typeof h)return s;f.push.apply(f,(0,l.Z)(h));var p=t({x:d.x+d.width-1,y:d.y,width:1,height:d.height},i.signal);if("function"===typeof p)return s;f.push.apply(f,(0,l.Z)(p))}else{var v=t({x:d.x,y:d.y,width:d.width,height:d.height},i.signal);if("function"===typeof v)return s;f.push.apply(f,(0,l.Z)(v))}for(var g=d.x-n,m=d.x+d.width-1-n,b=0,y=f;b<y.length;b++){var w,x=y[b],k=(0,a.Z)(x);try{for(k.s();!(w=k.n()).done;){var D=w.value;void 0!==D.span&&(g=Math.min(D.span[0],g),m=Math.max(D.span[1],m))}}catch(C){k.e(C)}finally{k.f()}}g===d.x-n&&m===d.x+d.width-1-n?c=!0:e={current:{cell:null!=(u=e.current.cell)?u:[0,0],range:{x:g+n,y:d.y,width:m-g+1,height:d.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!c)}return e}(e,Xn,Rn,J,Wn.current)),void 0!==yt?(er.current=Nr(e,-Rn),yt(er.current)):k(e)}),[yt,Xn,Rn,J]),or=bt(Tt,g.useCallback((function(e,t,n,r){null==Tt||Tt(W[n-Rn],t,n-Rn,r)}),[Tt,Rn,W])),ar=bt(Ht,g.useCallback((function(e,t,n,r){null==Ht||Ht(W[n-Rn],t,n-Rn,r)}),[Ht,Rn,W])),sr=bt(Lt,g.useCallback((function(e,t,n,r){null==Lt||Lt(W[n-Rn],t,n-Rn,r)}),[Lt,Rn,W])),cr=bt(G,g.useCallback((function(e){var t;return null!=(t=null==G?void 0:G((0,s.Z)((0,s.Z)({},e),{},{columnIndex:e.columnIndex-Rn})))&&t}),[G,Rn])),dr=g.useCallback((function(e){if(void 0!==Te){var t=Te(Nr(e,-Rn));return"boolean"===typeof t?t:Nr(t,Rn)}return!0}),[Te,Rn]),fr=function(e,t,n,r,i,o){return[g.useCallback((function(a,u,c,d){var f,h;"cell"!==o&&"multi-cell"!==o||void 0===a||(a=(0,s.Z)((0,s.Z)({},a),{},{range:{x:a.cell[0],y:a.cell[1],width:1,height:1}}));var p="mixed"===n&&(c||"drag"===d),v="mixed"===r&&p,g="mixed"===i&&p,m={current:void 0===a?void 0:(0,s.Z)((0,s.Z)({},a),{},{rangeStack:"drag"===d&&null!=(h=null==(f=e.current)?void 0:f.rangeStack)?h:[]}),columns:v?e.columns:ot.empty(),rows:g?e.rows:ot.empty()};c&&("multi-rect"===o||"multi-cell"===o)&&void 0!==m.current&&void 0!==e.current&&(m=(0,s.Z)((0,s.Z)({},m),{},{current:(0,s.Z)((0,s.Z)({},m.current),{},{rangeStack:[].concat((0,l.Z)(e.current.rangeStack),[e.current.range])})})),t(m,u)}),[r,e,n,o,i,t]),g.useCallback((function(o,a,l){var u;if(o=null!=o?o:e.rows,void 0!==a&&(o=o.add(a)),"exclusive"===i&&o.length>0)u={current:void 0,columns:ot.empty(),rows:o};else{var s=l&&"mixed"===r;u={current:l&&"mixed"===n?e.current:void 0,columns:s?e.columns:ot.empty(),rows:o}}t(u,!1)}),[r,e,n,i,t]),g.useCallback((function(o,a,l){var u;if(o=null!=o?o:e.columns,void 0!==a&&(o=o.add(a)),"exclusive"===r&&o.length>0)u={current:void 0,rows:ot.empty(),columns:o};else{var s=l&&"mixed"===i;u={current:l&&"mixed"===n?e.current:void 0,rows:s?e.rows:ot.empty(),columns:o}}t(u,!1)}),[r,e,n,i,t])]}(Vn,rr,Se,Me,Oe,be),hr=(0,u.Z)(fr,3),pr=hr[0],vr=hr[1],gr=hr[2],mr=g.useMemo((function(){return(0,s.Z)((0,s.Z)({},Re()),En)}),[En]),br=g.useState([10,10,0]),yr=(0,u.Z)(br,2),wr=yr[0],xr=yr[1],kr=g.useCallback((function(e){return e.kind!==Pe.Custom?Br[e.kind]:null==zt?void 0:zt.find((function(t){return t.isMatch(e)}))}),[zt]),Dr=function(e,t,n,r,c,d,f,h,p){var v=g.useRef(t),m=g.useRef(n),b=g.useRef(f);v.current=t,m.current=n,b.current=f;var y=g.useState((function(){if(void 0===typeof window)return null;var e=document.createElement("canvas");return e.style.display="none",e.style.opacity="0",e.style.position="fixed",document.documentElement.append(e),e.getContext("2d",{alpha:!1})})),w=(0,u.Z)(y,1)[0],x=g.useRef({}),k=g.useRef(),D=g.useState(),C=(0,u.Z)(D,2),E=C[0],S=C[1];return g.useLayoutEffect((function(){var t=m.current;if(void 0!==t&&!e.every(Ge)){var n=Math.max(1,10-Math.floor(e.length/1e4)),r=0;n<v.current&&n>1&&(n--,r=1);var a={x:0,y:0,width:e.length,height:Math.min(v.current,n)},u={x:0,y:v.current-1,width:e.length,height:1},s=function(){var n=(0,o.Z)((0,i.Z)().mark((function n(){var o,s,c;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=t(a,p.signal),s=r>0?t(u,p.signal):void 0,"object"!==typeof o){n.next=6;break}c=o,n.next=9;break;case 6:return n.next=8,qe(o);case 8:c=n.sent;case 9:if(void 0===s){n.next=22;break}if("object"!==typeof s){n.next=14;break}c=[].concat((0,l.Z)(c),(0,l.Z)(s)),n.next=22;break;case 14:return n.t0=[],n.t1=(0,l.Z)(c),n.t2=l.Z,n.next=19,qe(s);case 19:n.t3=n.sent,n.t4=(0,n.t2)(n.t3),c=n.t0.concat.call(n.t0,n.t1,n.t4);case 22:k.current=e,S(c);case 24:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();s()}}),[p.signal,e]),g.useMemo((function(){var t,n,i=e.every(Ge)?e:null===w?e.map((function(e){return Ge(e)?e:(0,s.Z)((0,s.Z)({},e),{},{width:qn})})):(w.font="".concat(b.current.baseFontStyle," ").concat(b.current.fontFamily),e.map((function(t,n){if(Ge(t))return t;if(void 0!==x.current[t.id])return(0,s.Z)((0,s.Z)({},t),{},{width:x.current[t.id]});if(void 0===E||k.current!==e||void 0===t.id)return(0,s.Z)((0,s.Z)({},t),{},{width:qn});var r=Qn(w,f,t,n,E,c,d,!0,h);return x.current[t.id]=r.width,r}))),o=0,p=0,v=[],g=(0,a.Z)(i.entries());try{for(g.s();!(n=g.n()).done;){var m=(0,u.Z)(n.value,2),y=m[0],D=m[1];o+=D.width,void 0!==D.grow&&D.grow>0&&(p+=D.grow,v.push(y))}}catch(I){g.e(I)}finally{g.f()}if(o<r&&v.length>0){for(var C=(0,l.Z)(i),S=r-o,F=S,M=0;M<v.length;M++){var A=v[M],Z=(null!=(t=i[A].grow)?t:0)/p,R=M===v.length-1?F:Math.min(F,Math.floor(S*Z));C[A]=(0,s.Z)((0,s.Z)({},i[A]),{},{growOffset:R,width:i[A].width+R}),F-=R}i=C}return i}),[r,e,w,E,f,c,d,h])}(W,j,Yn,wr[0]-(0===Rn?0:An)-wr[2],vn,mn,mr,kr,Wn.current),Cr=g.useMemo((function(){return Dr.some((function(e){return void 0!==e.group}))}),[Dr]),Er=Cr?Dn+Cn:Dn,Sr=Vn.rows.length,Fr="none"===H?"":0===Sr?Ke:Sr===j?Ye:$e,Mr=g.useMemo((function(){return"none"===H?Dr:[{title:Fr,width:An,icon:void 0,hasMenu:!1,style:"normal",themeOverride:lt}].concat((0,l.Z)(Dr))}),[Dr,An,H,Fr,lt]),Ar=g.useMemo((function(){return[void 0!==Rt&&"number"===typeof kn?Math.floor(Rt/kn):0,void 0!==Rt&&"number"===typeof kn?-Rt%kn:0]}),[Rt,kn]),Zr=(0,u.Z)(Ar,2),Rr=Zr[0],Ir=Zr[1],Or=g.useRef({height:1,width:1,x:0,y:0}),Pr=g.useMemo((function(){var e,t;return{x:Or.current.x,y:Rr,width:null!=(e=Or.current.width)?e:1,height:null!=(t=Or.current.height)?t:1,ty:Ir}}),[Ir,Rr]),Tr=g.useRef(!1),Hr=function(e){var t=g.useRef([Mt,e]);t.current[1]!==e&&(t.current[0]=e),t.current[1]=e;var n=g.useState(e),r=(0,u.Z)(n,2),i=r[0],o=r[1],a=g.useState(),l=(0,u.Z)(a,2)[1],s=g.useCallback((function(e){var n=t.current[0];n!==Mt&&(e="function"===typeof e?e(n):e)===n||(n!==Mt&&l({}),o((function(t){return"function"===typeof e?e(n===Mt?t:n):e})),t.current[0]=Mt)}),[]),c=g.useCallback((function(){t.current[0]=Mt,l({})}),[]);return[t.current[0]===Mt?i:t.current[0],s,c]}(Pr),Lr=(0,u.Z)(Hr,3),zr=Lr[0],Ur=Lr[1],Xr=Lr[2];Or.current=zr;var Yr=(null!=(n=zr.height)?n:1)>1;g.useLayoutEffect((function(){if(void 0!==Rt&&null!==O.current&&Yr){if(O.current.scrollTop===Rt)return;O.current.scrollTop=Rt,O.current.scrollTop!==Rt&&Xr(),Tr.current=!0}}),[Rt,Yr,Xr]);var Kr=(null!=(r=zr.width)?r:1)>1;g.useLayoutEffect((function(){if(void 0!==Zt&&null!==O.current&&Kr){if(O.current.scrollLeft===Zt)return;O.current.scrollLeft=Zt,O.current.scrollLeft!==Zt&&Xr(),Tr.current=!0}}),[Zt,Kr,Xr]);var $r=zr.x+Rn,Gr=zr.y,qr=g.useRef(null),Qr=g.useCallback((function(e){var t;!0===e?null==(t=qr.current)||t.focus():window.requestAnimationFrame((function(){var e;null==(e=qr.current)||e.focus()}))}),[]),Jr=In?j+1:j,ei=g.useCallback((function(e){var t=0===Rn?e:e.map((function(e){return(0,s.Z)((0,s.Z)({},e),{},{location:[e.location[0]-Rn,e.location[1]]})})),n=null==ue?void 0:ue(t);if(!0!==n){var r,i=(0,a.Z)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;null==le||le(o.location,o.value)}}catch(l){i.e(l)}finally{i.f()}}return n}),[le,ue,Rn]),ti=g.useMemo((function(){if(void 0!==ve)return 0===Rn?ve:ve.map((function(e){var t=Mr.length-e.range.x-Rn;if(!(t<=0))return{color:e.color,range:(0,s.Z)((0,s.Z)({},e.range),{},{x:e.range.x+Rn,width:Math.min(t,e.range.width)}),style:e.style}})).filter((function(e){return void 0!==e}))}),[ve,Mr.length,Rn]),ni=g.useRef(Mr);ni.current=Mr;var ri=g.useCallback((function(e){var t,n,r,i,o,a,l,c,d,f,h=(0,u.Z)(e,2),p=h[0],v=h[1],g=In&&v===Jr-1;if(0===p&&Zn)return g?Wr:{kind:We.Marker,allowOverlay:!1,checked:!0===(null==Vn?void 0:Vn.rows.hasIndex(v)),markerKind:"clickable-number"===H?"number":H,row:at+v,drawHandle:void 0!==$t};if(g){var m=p===Rn&&null!=(t=null==St?void 0:St.hint)?t:"",b=ni.current[p];if(!0===(null==(n=null==b?void 0:b.trailingRowOptions)?void 0:n.disabled))return Wr;var y=null!=(i=null==(r=null==b?void 0:b.trailingRowOptions)?void 0:r.hint)?i:m,w=null!=(a=null==(o=null==b?void 0:b.trailingRowOptions)?void 0:o.addIcon)?a:null==St?void 0:St.addIcon;return{kind:We.NewRow,hint:y,allowOverlay:!1,icon:w}}var x=p-Rn;if(!0===(null==Nt?void 0:Nt.strict)){var k=Or.current,D=k.x>x||x>k.x+k.width||k.y>v||v>k.y+k.height,C=x===(null==(c=null==(l=k.extras)?void 0:l.selected)?void 0:c[0])&&v===(null==(d=k.extras)?void 0:d.selected[1]),E=void 0===(null==(f=k.extras)?void 0:f.freezeRegion)||k.extras.freezeRegion.x>x||x>k.extras.freezeRegion.x+k.extras.freezeRegion.width||k.extras.freezeRegion.y>v||v>k.extras.freezeRegion.y+k.extras.freezeRegion.height;if(D&&!C&&E)return{kind:Pe.Loading,allowOverlay:!1}}var S=U([x,v]);return 0!==Rn&&void 0!==S.span&&(S=(0,s.Z)((0,s.Z)({},S),{},{span:[S.span[0]+Rn,S.span[1]+Rn]})),S}),[In,Jr,Zn,null==Vn?void 0:Vn.rows,$t,H,Rn,null==St?void 0:St.hint,null==St?void 0:St.addIcon,null==Nt?void 0:Nt.strict,U,at]),ii=g.useCallback((function(e){var t,n,r=null!=(t=null==ct?void 0:ct(e))?t:{name:e};return void 0!==ae&&""!==e&&(r={icon:r.icon,name:r.name,overrideTheme:r.overrideTheme,actions:[].concat((0,l.Z)(null!=(n=r.actions)?n:[]),[{title:"Rename",icon:"renameIcon",onClick:function(e){return Ei({group:r.name,bounds:e.bounds})}}])}),r}),[ct,ae]),oi=g.useCallback((function(e){var t,n=(0,u.Z)(e.cell,2),r=n[0],i=n[1],o=Mr[r],a=void 0!==(null==o?void 0:o.group)?null==(t=ii(o.group))?void 0:t.overrideTheme:void 0,l=null==o?void 0:o.themeOverride,c=null==B?void 0:B(i);S((0,s.Z)((0,s.Z)({},e),{},{theme:(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},mr),a),l),c),e.content.themeOverride)}))}),[B,Mr,ii,mr]),ai=g.useCallback((function(e,t,n){var r;if(void 0!==Vn.current){var i=(0,u.Z)(Vn.current.cell,2),o=i[0],a=i[1],l=ri([o,a]);if(l.kind!==Pe.Boolean&&l.allowOverlay){var c=l;if(void 0!==n)switch(c.kind){case Pe.Number:var d=function(e,t){try{return e()}catch(n){return t}}((function(){return"-"===n?-0:Number.parseFloat(n)}),0);c=(0,s.Z)((0,s.Z)({},c),{},{data:Number.isNaN(d)?0:d});break;case Pe.Text:case Pe.Markdown:case Pe.Uri:c=(0,s.Z)((0,s.Z)({},c),{},{data:n})}oi({target:e,content:c,initialValue:n,cell:[o,a],highlight:void 0===n,forceEditMode:void 0!==n})}else l.kind===Pe.Boolean&&t&&!0!==l.readonly&&(ei([{location:Vn.current.cell,value:(0,s.Z)((0,s.Z)({},l),{},{data:ur(l.data)})}]),null==(r=qr.current)||r.damage([{cell:Vn.current.cell}]))}}),[ri,Vn,ei,oi]),li=g.useCallback((function(e,t){var n,r=null==(n=qr.current)?void 0:n.getBounds(e,t);if(void 0!==r&&null!==O.current){var i=ri([e,t]);i.allowOverlay&&oi({target:r,content:i,initialValue:void 0,highlight:!0,cell:[e,t],forceEditMode:!0})}}),[ri,oi]),ui=g.useCallback((function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"both",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;if(null!==O.current){var l=qr.current,u=M.current,c="number"!==typeof e?"cell"===e.unit?e.amount:void 0:e,d="number"!==typeof t?"cell"===t.unit?t.amount:void 0:t,f="number"!==typeof e&&"px"===e.unit?e.amount:void 0,h="number"!==typeof t&&"px"===t.unit?t.amount:void 0;if(null!==l&&null!==u){var p={x:0,y:0,width:0,height:0},v=0,g=0;if((void 0!==c||void 0!==d)&&(0===(p=null!=(n=l.getBounds((null!=c?c:0)+Rn,null!=d?d:0))?n:p).width||0===p.height))return;var m=u.getBoundingClientRect();if(void 0!==f&&(p=(0,s.Z)((0,s.Z)({},p),{},{x:f-m.left-O.current.scrollLeft,width:1})),void 0!==h&&(p=(0,s.Z)((0,s.Z)({},p),{},{y:h+m.top-O.current.scrollTop,height:1})),void 0!==p){for(var b={x:p.x-i,y:p.y-o,width:p.width+2*i,height:p.height+2*o},y=0,w=0;w<Xe;w++)y+=Dr[w].width;var x=0;On&&(x="number"===typeof kn?kn:kn(j));var k=y+m.left+Rn*An,D=m.right,C=m.top+Er,E=m.bottom-x,S=p.width+2*i;switch(null==a?void 0:a.hAlign){case"start":D=k+S;break;case"end":k=D-S;break;case"center":D=(k=Math.floor((k+D)/2)-S/2)+S}var F=p.height+2*o;switch(null==a?void 0:a.vAlign){case"start":E=C+F;break;case"end":C=E-F;break;case"center":E=(C=Math.floor((C+E)/2)-F/2)+F}k>b.x?v=b.x-k:D<b.x+b.width&&(v=b.x+b.width-D),C>b.y?g=b.y-C:E<b.y+b.height&&(g=b.y+b.height-E),"vertical"===r||e<Xe?v=0:"horizontal"===r&&(g=0),0===v&&0===g||O.current.scrollTo(v+O.current.scrollLeft,g+O.current.scrollTop)}}}}),[Rn,An,Er,On,Xe,Dr,kn,j]),si=g.useRef(li),ci=g.useRef(U),di=g.useRef(j);si.current=li,ci.current=U,di.current=j;var fi=g.useCallback(function(){var e=(0,o.Z)((0,i.Z)().mark((function e(t){var n,r,o,a,l,u;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Mr[t],!0!==(null==(n=null==r?void 0:r.trailingRowOptions)?void 0:n.disabled)){e.next=3;break}return e.abrupt("return");case 3:if(o=null==fe?void 0:fe(),a=void 0,l=!0,void 0===o){e.next=12;break}return e.next=9,o;case 9:"top"===(a=e.sent)&&(l=!1),"number"===typeof a&&(l=!1);case 12:u=0,function e(){if(di.current<=j)return u<500&&window.setTimeout(e,u),void(u=50+2*u);var n="number"===typeof a?a:l?j:0;ui(t-Rn,n),pr({cell:[t,n],range:{x:t,y:n,width:1,height:1}},!1,!1,"edit");var r=ci.current([t-Rn,n]);r.allowOverlay&&tt(r)&&!0!==r.readonly&&window.setTimeout((function(){si.current(t,n)}),0)}();case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[Mr,fe,Rn,j,ui,pr]),hi=g.useCallback((function(e){var t,n,r,i=null!=(r=null==(n=null==(t=Dr[e])?void 0:t.trailingRowOptions)?void 0:n.targetColumn)?r:null==St?void 0:St.targetColumn;if("number"===typeof i)return i+(Zn?1:0);if("object"===typeof i){var o=W.indexOf(i);if(o>=0)return o+(Zn?1:0)}}),[Dr,W,Zn,null==St?void 0:St.targetColumn]),pi=g.useRef(),vi=g.useRef(),gi=g.useCallback((function(e,t){var n,r=(0,u.Z)(t,2),i=r[0],o=r[1];return(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},mr),null==(n=Mr[i])?void 0:n.themeOverride),null==B?void 0:B(o)),e.themeOverride)}),[B,Mr,mr]),mi=g.useCallback((function(e){var t,n,r,i,o=Pn.value?e.metaKey:e.ctrlKey,a=o&&"multi"===ke,l=o&&"multi"===we,c=(0,u.Z)(e.location,2),d=c[0],f=c[1],h=Vn.columns,p=Vn.rows,v=null!=(n=null==(t=Vn.current)?void 0:t.cell)?n:[],g=(0,u.Z)(v,2),m=g[0],b=g[1];if("cell"===e.kind){if(vi.current=void 0,bi.current=[d,f],0===d&&Zn){if(!0===In&&f===j||"number"===H||"none"===ke)return;var y=ri(e.location);if(y.kind!==We.Marker)return;if(void 0!==$t){var w=kr(y);Ce((null==w?void 0:w.kind)===We.Marker);var x=null==(r=null==w?void 0:w.onClick)?void 0:r.call(w,(0,s.Z)((0,s.Z)({},e),{},{cell:y,posX:e.localEventX,posY:e.localEventY,bounds:e.bounds,theme:gi(y,e.location),preventDefault:function(){}}));if(void 0===x||x.checked===y.checked)return}S(void 0),Qr();var k=p.hasIndex(f),D=pi.current;if("multi"===ke&&(e.shiftKey||!0===e.isLongTouch)&&void 0!==D&&p.hasIndex(D)){var C=[Math.min(D,f),Math.max(D,f)+1];a||"multi"===rt?vr(void 0,C,!0):vr(ot.fromSingleSelection(C),void 0,a)}else a||e.isTouch||"multi"===rt?k?vr(p.remove(f),void 0,!0):(vr(void 0,f,!0),pi.current=f):k&&1===p.length?vr(ot.empty(),void 0,o):(vr(ot.fromSingleSelection(f),void 0,o),pi.current=f)}else if(d>=Rn&&In&&f===j){var E=hi(d);fi(null!=E?E:d)}else if(m!==d||b!==f){var F=ri(e.location),M=kr(F);if(void 0!==(null==M?void 0:M.onSelect)){var A=!1;if(M.onSelect((0,s.Z)((0,s.Z)({},e),{},{cell:F,posX:e.localEventX,posY:e.localEventY,bounds:e.bounds,preventDefault:function(){return A=!0},theme:gi(F,e.location)})),A)return}var Z=On&&f===j,R=On&&void 0!==Vn&&(null==(i=Vn.current)?void 0:i.cell[1])===j;if(!e.shiftKey&&!0!==e.isLongTouch||void 0===m||void 0===b||void 0===Vn.current||R)pr({cell:[d,f],range:{x:d,y:f,width:1,height:1}},!0,o,"click"),pi.current=void 0,S(void 0),Qr();else{if(Z)return;var I=Math.min(d,m),O=Math.max(d,m),P=Math.min(f,b),T=Math.max(f,b);pr((0,s.Z)((0,s.Z)({},Vn.current),{},{range:{x:I,y:P,width:O-I+1,height:T-P+1}}),!0,o,"click"),pi.current=void 0,Qr()}}}else if("header"===e.kind)if(bi.current=[d,f],S(void 0),Zn&&0===d)pi.current=void 0,vi.current=void 0,"multi"===ke&&(p.length!==j?vr(ot.fromSingleSelection([0,j]),void 0,o):vr(ot.empty(),void 0,o),Qr());else{var L=vi.current;if("multi"===we&&(e.shiftKey||!0===e.isLongTouch)&&void 0!==L&&h.hasIndex(L)){var z=[Math.min(L,d),Math.max(L,d)+1];l?gr(void 0,z,o):gr(ot.fromSingleSelection(z),void 0,o)}else l?(h.hasIndex(d)?gr(h.remove(d),void 0,o):gr(void 0,d,o),vi.current=d):"none"!==we&&(gr(ot.fromSingleSelection(d),void 0,o),vi.current=d);pi.current=void 0,Qr()}else e.kind===Ne?bi.current=[d,f]:e.kind===Ve&&(rr(jr,!1),S(void 0),Qr(),null==ht||ht(),pi.current=void 0,vi.current=void 0)}),[fi,we,Qr,kr,hi,ri,Vn,Zn,On,ht,$t,Rn,H,ke,rt,j,pr,rr,gr,vr,In,gi]),bi=g.useRef(),yi=g.useRef(zr),wi=g.useRef(),xi=g.useCallback((function(e){var t,n;if(Mi.current=!1,yi.current=Or.current,0===e.button){var r=performance.now(),i=r-(null!=(n=null==(t=wi.current)?void 0:t.time)?n:-1e3)<250;wi.current={wasDoubleClick:i,time:r,location:e.location};var o="cell"===e.kind&&e.isFillHandle;!o&&"cell"!==e.kind&&e.isEdge||(I({previousSelection:Vn,fillHandle:o}),bi.current=void 0,e.isTouch||mi(e))}else wi.current=void 0}),[Vn,mi]),ki=g.useState(),Di=(0,u.Z)(ki,2),Ci=Di[0],Ei=Di[1],Si=g.useCallback((function(e){if(e.kind===Ne&&"multi"===we){var t=Pn.value?e.metaKey:e.ctrlKey,n=(0,u.Z)(e.location,1)[0],r=Vn.columns;if(!(n<Rn)){for(var i=Mr[n],o=n,a=n,l=n-1;l>=Rn&&At(i.group,Mr[l].group);l--)o--;for(var s=n+1;s<Mr.length&&At(i.group,Mr[s].group);s++)a++;if(Qr(),t)if(r.hasAll([o,a+1])){for(var c=r,d=o;d<=a;d++)c=c.remove(d);gr(c,void 0,t)}else gr(void 0,[o,a+1],t);else gr(ot.fromSingleSelection([o,a+1]),void 0,t)}}}),[we,Qr,Vn.columns,Mr,Rn,gr]),Fi=g.useCallback((function(e){var t;if(void 0!==Vn.current){for(var n=[],r=Vn.current.range,i=0;i<r.width;i++){var o=i+r.x,a=ri([o,e?r.y+r.height-1:r.y]);if(!et(a)&&tt(a))for(var l=1;l<r.height;l++){var u=[o,e?r.y+r.height-(l+1):l+r.y];n.push({location:u,value:(0,s.Z)({},a)})}}ei(n),null==(t=qr.current)||t.damage(n.map((function(e){return{cell:e.location}})))}}),[ri,Vn,ei]),Mi=g.useRef(!1),Ai=g.useCallback(function(){var e=(0,o.Z)((0,i.Z)().mark((function e(t){var n,r,o,a,l,u,s,c;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!0!==(null==(n=wi.current)?void 0:n.wasDoubleClick)||void 0===Xn||void 0===or){e.next=12;break}if(r=Or.current.y,o=Or.current.height,"object"===typeof(a=Xn({x:t,y:r,width:1,height:Math.min(o,j-r)},Wn.current.signal))){e.next=8;break}return e.next=7,a();case 7:a=e.sent;case 8:l=Dr[t-Rn],u=document.createElement("canvas"),null!==(s=u.getContext("2d",{alpha:!1}))&&(s.font="".concat(mr.baseFontStyle," ").concat(mr.fontFamily),c=Qn(s,mr,l,0,a,vn,gn,!1,kr),null==or||or(l,c.width,t,c.width));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[Dr,Xn,gn,mr,vn,or,Rn,j,kr]),Zi=g.useState(),Ri=(0,u.Z)(Zi,2),Ii=Ri[0],Oi=Ri[1],Pi=g.useCallback((function(e,t){var n,r,i,o=R;if(I(void 0),Oi(void 0),!t)if(!0!==(null==o?void 0:o.fillHandle)||void 0===Vn.current){var a=(0,u.Z)(e.location,2),l=a[0],c=a[1],d=null!=(n=bi.current)?n:[],f=(0,u.Z)(d,2),h=f[0],p=f[1],v=function(){Mi.current=!0},g=function(t){var n,r,i;if((t.isTouch||h===l&&p===c)&&(null==X||X([l-Rn,c],(0,s.Z)((0,s.Z)({},t),{},{preventDefault:v}))),!Mi.current){var a=ri(e.location),d=kr(a);if(void 0!==d&&void 0!==d.onClick){var f=d.onClick((0,s.Z)((0,s.Z)({},t),{},{cell:a,posX:t.localEventX,posY:t.localEventY,bounds:t.bounds,theme:gi(a,e.location),preventDefault:v}));void 0!==f&&!et(f)&&Je(f)&&(ei([{location:t.location,value:f}]),null==(n=qr.current)||n.damage([{cell:t.location}]))}if(!Mi.current&&void 0!==(null==(i=null==(r=null==o?void 0:o.previousSelection)?void 0:r.current)?void 0:i.cell)&&void 0!==Vn.current){var g=(0,u.Z)(Vn.current.cell,2),m=g[0],b=g[1],y=(0,u.Z)(o.previousSelection.current.cell,2),w=y[0],x=y[1];if(l===m&&l===w&&c===b&&c===x)return null==Y||Y([l-Rn,c]),ai(t.bounds,!1),!0}}return!1},m=e.location[0]-Rn;if(e.isTouch){var b=Or.current,y=yi.current;if(b.x!==y.x||b.y!==y.y)return;if(!0===e.isLongTouch){if("cell"===e.kind&&(null==(r=null==Vn?void 0:Vn.current)?void 0:r.cell[0])===l&&(null==(i=null==Vn?void 0:Vn.current)?void 0:i.cell[1])===c)return void(null==te||te([m,e.location[1]],(0,s.Z)((0,s.Z)({},e),{},{preventDefault:v})));if("header"===e.kind&&Vn.columns.hasIndex(l))return void(null==re||re(m,(0,s.Z)((0,s.Z)({},e),{},{preventDefault:v})));if(e.kind===Ne){if(m<0)return;return void(null==oe||oe(m,(0,s.Z)((0,s.Z)({},e),{},{preventDefault:v})))}}"cell"===e.kind?g(e)||mi(e):e.kind===Ne?null==ee||ee(m,(0,s.Z)((0,s.Z)({},e),{},{preventDefault:v})):(e.kind===_e&&(null==q||q(m,(0,s.Z)((0,s.Z)({},e),{},{preventDefault:v}))),mi(e))}else{if("header"===e.kind){if(m<0)return;e.isEdge?Ai(l):0===e.button&&l===h&&c===p&&(null==q||q(m,(0,s.Z)((0,s.Z)({},e),{},{preventDefault:v})))}if(e.kind===Ne){if(m<0)return;0===e.button&&l===h&&c===p&&(null==ee||ee(m,(0,s.Z)((0,s.Z)({},e),{},{preventDefault:v})),Mi.current||Si(e))}"cell"===e.kind&&0===e.button&&g(e),bi.current=void 0}}else Fi(Vn.current.cell[1]!==Vn.current.range.y)}),[R,Rn,Vn,X,Fi,ri,kr,gi,ei,Y,ai,te,re,oe,mi,ee,Ai,q,Si]),Ti=g.useCallback((function(e){var t=(0,s.Z)((0,s.Z)({},e),{},{location:[e.location[0]-Rn,e.location[1]]});null==Le||Le(t),Oi((function(t){var n,r;return e.scrollEdge[0]===(null==t?void 0:t[0])&&e.scrollEdge[1]===t[1]?t:void 0===R||(null!=(r=null==(n=wi.current)?void 0:n.location[0])?r:0)<Rn?void 0:e.scrollEdge}))}),[R,Le,Rn]);!function(e,t){var n=g.useRef(0),r=null!=e?e:[0,0],i=(0,u.Z)(r,2),o=i[0],a=i[1];g.useEffect((function(){if(0!==o||0!==a){var e=0,r=window.requestAnimationFrame((function i(l){var u;if(0===e)e=l;else{var s=l-e;n.current=Math.min(1,n.current+s/1300);var c=Math.pow(n.current,1.618)*s*2;null==(u=t.current)||u.scrollBy(o*c,a*c),e=l}r=window.requestAnimationFrame(i)}));return function(){return window.cancelAnimationFrame(r)}}n.current=0}),[t,o,a])}(Ii,O);var Hi=g.useCallback((function(e,t){null==st||st(e-Rn,t)}),[st,Rn]),Li=null==(c=null==Vn?void 0:Vn.current)?void 0:c.cell,zi=g.useCallback((function(e,t,n,r,i,o){Tr.current=!1;var a=Li;void 0!==a&&(a=[a[0]-Rn,a[1]]);var l={x:e.x-Rn,y:e.y,width:e.width,height:In&&e.y+e.height>=j?e.height-1:e.height,tx:i,ty:o,extras:{selected:a,freezeRegion:0===Xe?void 0:{x:0,y:e.y,width:Xe,height:e.height}}};xr([t,n,r]),Ur(l),null==vt||vt(l,l.tx,l.ty,l.extras)}),[Li,Rn,In,j,Xe,Ur,vt]),Bi=bt(he,g.useCallback((function(e,t){null==he||he(e-Rn,t-Rn),"none"!==we&&gr(ot.fromSingleSelection(t),void 0,!0)}),[we,he,Rn,gr])),_i=g.useRef(!1),Ni=g.useCallback((function(e){0===e.location[0]&&Rn>0?e.preventDefault():(null==He||He((0,s.Z)((0,s.Z)({},e),{},{location:[e.location[0]-Rn,e.location[1]]})),e.defaultPrevented()||(_i.current=!0),I(void 0))}),[He,Rn]),Vi=g.useCallback((function(){_i.current=!1}),[]),Wi=g.useCallback((function(e){var t;if(void 0!==R&&0===(null==(t=wi.current)?void 0:t.location[0])&&0===e.location[0]&&1===Rn&&"multi"===ke&&R.previousSelection&&!R.previousSelection.rows.hasIndex(wi.current.location[1])&&Vn.rows.hasIndex(wi.current.location[1])){var n=Math.min(wi.current.location[1],e.location[1]),r=Math.max(wi.current.location[1],e.location[1])+1;vr(ot.fromSingleSelection([n,r]),void 0,!1)}if(void 0!==R&&void 0!==Vn.current&&!_i.current&&("rect"===be||"multi-rect"===be)){var i=(0,u.Z)(Vn.current.cell,2),o=i[0],a=i[1],l=(0,u.Z)(e.location,2),c=l[0],d=l[1];if(d<0&&(d=Or.current.y),On&&a===j)return;if(On&&d===j){if(e.kind!==Ve)return;d--}var f=(c=Math.max(c,Rn))-o,h=d-a,p={x:f>=0?o:c,y:h>=0?a:d,width:Math.abs(f)+1,height:Math.abs(h)+1};pr((0,s.Z)((0,s.Z)({},Vn.current),{},{range:p}),!0,!1,"drag")}null==ft||ft((0,s.Z)((0,s.Z)({},e),{},{location:[e.location[0]-Rn,e.location[1]]}))}),[R,Rn,ke,Vn,be,ft,vr,On,j,pr]),ji=g.useCallback((function(e){if(void 0!==Vn.current){var t=(0,u.Z)(e,2),n=t[0],r=t[1],i=(0,u.Z)(Vn.current.cell,2),o=i[0],a=i[1],l=Vn.current.range,s=l.x,c=l.x+l.width,d=l.y,f=l.y+l.height;if(0!==r)switch(r){case 2:d=a,ui(0,f=j,"vertical");break;case-2:f=a+1,ui(0,d=0,"vertical");break;case 1:d<a?(d++,ui(0,d,"vertical")):(f=Math.min(j,f+1),ui(0,f,"vertical"));break;case-1:f>a+1?(f--,ui(0,f,"vertical")):(d=Math.max(0,d-1),ui(0,d,"vertical"));break;default:Ee()}if(0!==n)if(2===n)c=Mr.length,s=o,ui(c-1-Rn,0,"horizontal");else if(-2===n)c=o+1,ui((s=Rn)-Rn,0,"horizontal");else{var h=[];if(void 0!==Xn){var p=Xn({x:s,y:d,width:c-s-Rn,height:f-d},Wn.current.signal);"object"===typeof p&&(h=function(e){return b(y(y(e).filter((function(e){return void 0!==e.span})).map((function(e){var t,n,r,i;return w((null!=(n=null==(t=e.span)?void 0:t[0])?n:0)+1,(null!=(i=null==(r=e.span)?void 0:r[1])?i:0)+1)}))))}(p))}if(1===n){var v=!1;if(s<o){if(h.length>0){var g=w(s+1,o+1).find((function(e){return!h.includes(e-Rn)}));void 0!==g&&(s=g,v=!0)}else s++,v=!0;v&&ui(s,0,"horizontal")}v||(c=Math.min(Mr.length,c+1),ui(c-1-Rn,0,"horizontal"))}else if(-1===n){var m=!1;if(c>o+1){if(h.length>0){var x=w(c-1,o,-1).find((function(e){return!h.includes(e-Rn)}));void 0!==x&&(c=x,m=!0)}else c--,m=!0;m&&ui(c-Rn,0,"horizontal")}m||(s=Math.max(Rn,s-1),ui(s-Rn,0,"horizontal"))}else Ee()}pr({cell:Vn.current.cell,range:{x:s,y:d,width:c-s,height:f-d}},!0,!1,"keyboard-select")}}),[Xn,Vn,Mr.length,Rn,j,ui,pr]),Ui=g.useCallback((function(e,t,n,r){var i=Jr-(n?0:1);if(e=m(e,Rn,Dr.length-1+Rn),t=m(t,0,i),e===(null==Li?void 0:Li[0])&&t===(null==Li?void 0:Li[1]))return!1;if(r&&void 0!==Vn.current){var o=(0,l.Z)(Vn.current.rangeStack);(Vn.current.range.width>1||Vn.current.range.height>1)&&o.push(Vn.current.range),rr((0,s.Z)((0,s.Z)({},Vn),{},{current:{cell:[e,t],range:{x:e,y:t,width:1,height:1},rangeStack:o}}),!0)}else pr({cell:[e,t],range:{x:e,y:t,width:1,height:1}},!0,!1,"keyboard-nav");return void 0!==P.current&&P.current[0]===e&&P.current[1]===t&&(P.current=void 0),ui(e-Rn,t),!0}),[Jr,Rn,Dr.length,Li,Vn,ui,rr,pr]),Xi=g.useCallback((function(e,t){void 0!==(null==E?void 0:E.cell)&&void 0!==e&&Je(e)&&(ei([{location:E.cell,value:e}]),window.requestAnimationFrame((function(){var e;null==(e=qr.current)||e.damage([{cell:E.cell}])}))),Qr(!0),S(void 0);var n=(0,u.Z)(t,2),r=n[0],i=n[1];if(void 0!==Vn.current&&(0!==r||0!==i)){var o=Vn.current.cell[1]===Jr-1&&void 0!==e;Ui(m(Vn.current.cell[0]+r,0,Mr.length-1),m(Vn.current.cell[1]+i,0,Jr-1),o,!1)}null==K||K(e,t)}),[null==E?void 0:E.cell,Qr,Vn,K,ei,Jr,Ui,Mr.length]),Yi=g.useMemo((function(){return"gdg-overlay-".concat(_r++)}),[]),Ki=g.useCallback((function(e){var t=function(){var t=(0,o.Z)((0,i.Z)().mark((function t(){var n,r,o,l,c,d,f,h,p,v,g,m,b,y,w,x,k,D,C,M,A,Z,R,I,O,P,T,H,L,z,B,_,N,V,X,K,$,G,q,Q,J,ee,te,ne,re,ie,oe,ae,le;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(I=function(e){var t,n,r;Qr();for(var i=[],o=e.x;o<e.x+e.width;o++)for(var a=e.y;a<e.y+e.height;a++){var l=U([o-Rn,a]);if(l.allowOverlay||l.kind===Pe.Boolean){var u=void 0;if(l.kind===Pe.Custom){var s=null==Et?void 0:Et(l);nt(s)&&(u=null==(t=null==s?void 0:s.deletedValue)?void 0:t.call(s,l))}else if(Je(l)&&l.allowOverlay||l.kind===Pe.Boolean){var c=kr(l);u=null==(n=null==c?void 0:c.onDelete)?void 0:n.call(c,l)}void 0!==u&&!et(u)&&Je(u)&&i.push({location:[o,a],value:u})}}ei(i),null==(r=qr.current)||r.damage(i.map((function(e){return{cell:e.location}})))},d=!1,void 0!==se&&se((0,s.Z)((0,s.Z)({},e),{},{cancel:function(){d=!0}})),!d){t.next=5;break}return t.abrupt("return");case 5:if(f=function(){e.stopPropagation(),e.preventDefault()},h=void 0!==E,p=e.altKey,v=e.shiftKey,g=e.metaKey,m=e.ctrlKey,b=e.key,y=e.bounds,w=Pn.value,x=w?g:m,k="Delete"===b||w&&"Backspace"===b,D=Or.current,C=Vn.columns,M=Vn.rows,"Escape"!==b){t.next=19;break}return h?S(void 0):Mn.clear&&(rr(jr,!1),null==ht||ht()),t.abrupt("return");case 19:if(!Jn("primary+a",e)||!Mn.selectAll){t.next=25;break}return h?null!==(A=document.getElementById(Yi))&&(Z=window.getSelection(),(R=document.createRange()).selectNodeContents(A),null==Z||Z.removeAllRanges(),null==Z||Z.addRange(R)):rr({columns:ot.empty(),rows:ot.empty(),current:{cell:null!=(r=null==(n=Vn.current)?void 0:n.cell)?r:[Rn,0],range:{x:Rn,y:0,width:W.length,height:j},rangeStack:[]}},!1),f(),t.abrupt("return");case 25:Jn("primary+f",e)&&Mn.search&&(f(),null==(o=null==F?void 0:F.current)||o.focus({preventScroll:!0}),zn(!0));case 26:if(!k){t.next=31;break}if(O=null==(l=null==dr?void 0:dr(Vn))||l,f(),!1!==O){if(void 0!==(P=!0===O?Vn:O).current){I(P.current.range),T=(0,a.Z)(P.current.rangeStack);try{for(T.s();!(H=T.n()).done;)L=H.value,I(L)}catch(i){T.e(i)}finally{T.f()}}z=(0,a.Z)(P.rows);try{for(z.s();!(B=z.n()).done;)_=B.value,I({x:Rn,y:_,width:Mr.length-Rn,height:1})}catch(i){z.e(i)}finally{z.f()}N=(0,a.Z)(P.columns);try{for(N.s();!(V=N.n()).done;)X=V.value,I({x:X,y:0,width:1,height:j})}catch(i){N.e(i)}finally{N.f()}}return t.abrupt("return");case 31:if(void 0!==Vn.current){t.next=33;break}return t.abrupt("return");case 33:if(K=(0,u.Z)(Vn.current.cell,2),$=K[0],G=K[1],q=!1,!Mn.selectColumn||!Jn("ctrl+ ",e)||"none"===we){t.next=39;break}C.hasIndex($)?gr(C.remove($),void 0,!0):"single"===we?gr(ot.fromSingleSelection($),void 0,!0):gr(void 0,$,!0),t.next=136;break;case 39:if(!Mn.selectRow||!Jn("shift+ ",e)||"none"===ke){t.next=43;break}M.hasIndex(G)?vr(M.remove(G),void 0,!0):"single"===ke?vr(ot.fromSingleSelection(G),void 0,!0):vr(void 0,G,!0),t.next=136;break;case 43:if(!(Jn("Enter",e)||Jn(" ",e)||Jn("shift+Enter",e))||void 0===y){t.next=47;break}h?(S(void 0),Jn("Enter",e)?G++:Jn("shift+Enter",e)&&G--):G===j&&In?window.setTimeout((function(){var e=hi($);fi(null!=e?e:$)}),0):(null==Y||Y([$-Rn,G]),ai(y,!0),f()),t.next=136;break;case 47:if(!(Mn.downFill&&Jn("primary+_68",e)&&Vn.current.range.height>1)){t.next=52;break}Fi(!1),f(),t.next=136;break;case 52:if(!(Mn.rightFill&&Jn("primary+_82",e)&&Vn.current.range.width>1)){t.next=70;break}Q=[],J=Vn.current.range,ee=0;case 56:if(!(ee<J.height)){t.next=65;break}if(te=ee+J.y,!et(ne=ri([J.x,te]))&&tt(ne)){t.next=61;break}return t.abrupt("continue",62);case 61:for(re=1;re<J.width;re++)ie=re+J.x,oe=[ie,te],Q.push({location:oe,value:(0,s.Z)({},ne)});case 62:ee++,t.next=56;break;case 65:ei(Q),null==(c=qr.current)||c.damage(Q.map((function(e){return{cell:e.location}}))),f(),t.next=136;break;case 70:if(!Mn.pageDown||!Jn("PageDown",e)){t.next=75;break}G+=Math.max(1,Or.current.height-4),f(),t.next=136;break;case 75:if(!Mn.pageUp||!Jn("PageUp",e)){t.next=80;break}G-=Math.max(1,Or.current.height-4),f(),t.next=136;break;case 80:if(!Mn.first||!Jn("primary+Home",e)){t.next=86;break}S(void 0),G=0,$=0,t.next=136;break;case 86:if(!Mn.last||!Jn("primary+End",e)){t.next=92;break}S(void 0),G=Number.MAX_SAFE_INTEGER,$=Number.MAX_SAFE_INTEGER,t.next=136;break;case 92:if(!Mn.first||!Jn("primary+shift+Home",e)){t.next=97;break}S(void 0),ji([-2,-2]),t.next=136;break;case 97:if(!Mn.last||!Jn("primary+shift+End",e)){t.next=102;break}S(void 0),ji([2,2]),t.next=136;break;case 102:if("ArrowDown"!==b){t.next=109;break}if(!m||!p){t.next=105;break}return t.abrupt("return");case 105:S(void 0),!v||"rect"!==be&&"multi-rect"!==be?(p&&!x&&(q=!0),x&&!p?G=j-1:G+=1):ji([0,x&&!p?2:1]),t.next=136;break;case 109:if("ArrowUp"!==b&&"Home"!==b){t.next=115;break}ae="Home"===b||x,S(void 0),!v||"rect"!==be&&"multi-rect"!==be?(p&&!ae&&(q=!0),G+=ae&&!p?Number.MIN_SAFE_INTEGER:-1):ji([0,ae&&!p?-2:-1]),t.next=136;break;case 115:if("ArrowRight"!==b&&"End"!==b){t.next=121;break}le="End"===b||x,S(void 0),!v||"rect"!==be&&"multi-rect"!==be?(p&&!le&&(q=!0),$+=le&&!p?Number.MAX_SAFE_INTEGER:1):ji([le&&!p?2:1,0]),t.next=136;break;case 121:if("ArrowLeft"!==b){t.next=126;break}S(void 0),!v||"rect"!==be&&"multi-rect"!==be?(p&&!x&&(q=!0),$+=x&&!p?Number.MIN_SAFE_INTEGER:-1):ji([x&&!p?-2:-1,0]),t.next=136;break;case 126:if("Tab"!==b){t.next=131;break}S(void 0),v?$--:$++,t.next=136;break;case 131:if(g||m||void 0===Vn.current||1!==b.length||!/[ -~]/g.test(b)||void 0===y||!tt(U([$-Rn,Math.max(0,G-1)]))){t.next=136;break}if(On&&G===j||!(D.y>G||G>D.y+D.height||D.x>$||$>D.x+D.width)){t.next=134;break}return t.abrupt("return");case 134:ai(y,!0,b),f();case 136:Ui($,G,!1,q)&&f();case 138:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t()}),[se,E,Vn,Mn.selectAll,Mn.search,Mn.selectColumn,Mn.selectRow,Mn.downFill,Mn.rightFill,Mn.pageDown,Mn.pageUp,Mn.first,Mn.last,Mn.clear,we,ke,U,Rn,Ui,rr,ht,W.length,j,Yi,Qr,ei,Et,kr,dr,Mr.length,gr,vr,In,hi,fi,Y,ai,Fi,ri,ji,be,On]),$i=g.useCallback((function(e,t){var n=e.location[0]-Rn;if("header"===e.kind&&(null==re||re(n,(0,s.Z)((0,s.Z)({},e),{},{preventDefault:t}))),e.kind===Ne){if(n<0)return;null==oe||oe(n,(0,s.Z)((0,s.Z)({},e),{},{preventDefault:t}))}if("cell"===e.kind){var r=(0,u.Z)(e.location,2),i=r[0],o=r[1];null==te||te([n,o],(0,s.Z)((0,s.Z)({},e),{},{preventDefault:t})),function(e,t){var n=(0,u.Z)(t,2),r=n[0],i=n[1];if(e.columns.hasIndex(r)||e.rows.hasIndex(i))return!0;if(void 0!==e.current){if(e.current.cell[0]===r&&e.current.cell[1]===i)return!0;var o,s=[e.current.range].concat((0,l.Z)(e.current.rangeStack)),c=(0,a.Z)(s);try{for(c.s();!(o=c.n()).done;){var d=o.value;if(r>=d.x&&r<d.x+d.width&&i>=d.y&&i<d.y+d.height)return!0}}catch(f){c.e(f)}finally{c.f()}}return!1}(Vn,e.location)||Ui(i,o,!1,!1)}}),[Vn,te,oe,re,Rn,Ui]),Gi=g.useCallback(function(){var e=(0,o.Z)((0,i.Z)().mark((function e(t){var n,r,o,l,c,d,f,h,p,v,g,m,b,y,w,x,k,D,C,E,S,F,A,Z,R,I,P,T,H,L,z,B,_,N,V,W,U,X,Y,K,G,q,Q,J,ee,te,ne;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h=function(e,t,n){var r,i;if(!et(e)&&tt(e)&&!0!==e.readonly){var o=null==$?void 0:$(n,e);if(void 0!==o&&Je(o))return o.kind!==e.kind&&console.warn("Coercion should not change cell kind."),{location:t,value:o};var a=kr(e);if(void 0===a)return;if(a.kind===Pe.Custom){Ce(e.kind===Pe.Custom);var l=null==(r=a.onPaste)?void 0:r.call(a,n,e);if(void 0===l)return;return{location:t,value:(0,s.Z)((0,s.Z)({},e),{},{data:l})}}var u=null==(i=a.onPaste)?void 0:i.call(a,n,e);if(void 0===u)return;return Ce(u.kind===e.kind),{location:t,value:u}}},Mn.paste){e.next=3;break}return e.abrupt("return");case 3:if(p=Vn.columns,v=Vn.rows,g=!0===(null==(n=O.current)?void 0:n.contains(document.activeElement))||!0===(null==(r=M.current)?void 0:r.contains(document.activeElement)),void 0===(m=null==(o=Vn.current)?void 0:o.cell)&&1===p.length&&(m=[null!=(l=p.first())?l:0,0]),void 0===m&&1===v.length&&(m=[Rn,null!=(c=v.first())?c:0]),!g||void 0===m){e.next=99;break}if(w="text/plain",x="text/html",void 0===navigator.clipboard.read){e.next=52;break}return e.next=15,navigator.clipboard.read();case 15:k=e.sent,D=(0,a.Z)(k),e.prev=17,D.s();case 19:if((C=D.n()).done){e.next=42;break}if(!(E=C.value).types.includes(x)){e.next=34;break}return e.next=24,E.getType(x);case 24:return S=e.sent,e.next=27,S.text();case 27:if(F=e.sent,(A=document.createElement("html")).innerHTML=F,null===(Z=A.querySelector("table"))){e.next=34;break}return b=nr(Z),e.abrupt("break",42);case 34:if(!E.types.includes(w)){e.next=40;break}return e.next=37,E.getType(w);case 37:return e.next=39,e.sent.text();case 39:y=e.sent;case 40:e.next=19;break;case 42:e.next=47;break;case 44:e.prev=44,e.t0=e.catch(17),D.e(e.t0);case 47:return e.prev=47,D.f(),e.finish(47);case 50:e.next=64;break;case 52:if(void 0===navigator.clipboard.readText){e.next=58;break}return e.next=55,navigator.clipboard.readText();case 55:y=e.sent,e.next=64;break;case 58:if(void 0===t||null===(null==t?void 0:t.clipboardData)){e.next=63;break}t.clipboardData.types.includes(x)&&(R=t.clipboardData.getData(x),(I=document.createElement("html")).innerHTML=R,null!==(P=I.querySelector("table"))&&(b=nr(P))),void 0===b&&t.clipboardData.types.includes(w)&&(y=t.clipboardData.getData(w)),e.next=64;break;case 63:return e.abrupt("return");case 64:T=m,H=(0,u.Z)(T,2),L=H[0],z=H[1],B=[];case 66:if(void 0!==ze){e.next=71;break}return _=ri(m),void 0!==(N=h(_,m,null!=(d=null!=y?y:null==b?void 0:b.map((function(e){return e.join("\t")})).join("\t"))?d:""))&&B.push(N),e.abrupt("break",97);case 71:if(void 0!==b){e.next=75;break}if(void 0!==y){e.next=74;break}return e.abrupt("return");case 74:b=tr(y);case 75:if(!1!==ze&&("function"!==typeof ze||!0===(null==ze?void 0:ze([m[0]-Rn,m[1]],b)))){e.next=77;break}return e.abrupt("return");case 77:V=(0,a.Z)(b.entries()),e.prev=78,V.s();case 80:if((W=V.n()).done){e.next=88;break}if(U=(0,u.Z)(W.value,2),X=U[0],Y=U[1],!(X+z>=j)){e.next=84;break}return e.abrupt("break",88);case 84:K=(0,a.Z)(Y.entries());try{for(K.s();!(G=K.n()).done;)q=(0,u.Z)(G.value,2),Q=q[0],J=q[1],te=ri(ee=[Q+L,X+z]),void 0!==(ne=h(te,ee,J))&&B.push(ne)}catch(i){K.e(i)}finally{K.f()}case 86:e.next=80;break;case 88:e.next=93;break;case 90:e.prev=90,e.t1=e.catch(78),V.e(e.t1);case 93:return e.prev=93,V.f(),e.finish(93);case 96:0;case 97:ei(B),null==(f=qr.current)||f.damage(B.map((function(e){return{cell:e.location}})));case 99:case"end":return e.stop()}}),e,null,[[17,44,47,50],[78,90,93,96]])})));return function(t){return e.apply(this,arguments)}}(),[$,kr,ri,Vn,Mn.paste,ei,ze,Rn,j]);mt("paste",Gi,window,!1,!0);var qi=g.useCallback(function(){var e=(0,o.Z)((0,i.Z)().mark((function e(t,n){var r,o,u,s,c,d,f,h,p,v,g,m,b,y,x,k,D;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Mn.copy){e.next=2;break}return e.abrupt("return");case 2:if(u=!0===n||!0===(null==(r=O.current)?void 0:r.contains(document.activeElement))||!0===(null==(o=M.current)?void 0:o.contains(document.activeElement)),s=Vn.columns,c=Vn.rows,d=function(e,n){je?ir([n.map((function(e){return{kind:Pe.Text,data:W[e].title,displayData:W[e].title,allowOverlay:!1}}))].concat((0,l.Z)(e)),n,t):ir(e,n,t)},!u||void 0===Xn){e.next=55;break}if(void 0===Vn.current){e.next=16;break}if("object"===typeof(f=Xn(Vn.current.range,Wn.current.signal))){e.next=13;break}return e.next=12,f();case 12:f=e.sent;case 13:d(f,w(Vn.current.range.x-Rn,Vn.current.range.x+Vn.current.range.width-Rn)),e.next=55;break;case 16:if(!(void 0!==c&&c.length>0)){e.next=29;break}if(h=(0,l.Z)(c),p=h.map((function(e){var t=Xn({x:Rn,y:e,width:W.length-Rn,height:1},Wn.current.signal);return"object"===typeof t?t[0]:t().then((function(e){return e[0]}))})),!p.some((function(e){return e instanceof Promise}))){e.next=26;break}return e.next=22,Promise.all(p);case 22:v=e.sent,d(v,w(W.length)),e.next=27;break;case 26:d(p,w(W.length));case 27:e.next=55;break;case 29:if(!(s.length>0)){e.next=55;break}g=[],m=[],b=(0,a.Z)(s),e.prev=33,b.s();case 35:if((y=b.n()).done){e.next=46;break}if(x=y.value,"object"===typeof(k=Xn({x:x,y:0,width:1,height:j},Wn.current.signal))){e.next=42;break}return e.next=41,k();case 41:k=e.sent;case 42:g.push(k),m.push(x-Rn);case 44:e.next=35;break;case 46:e.next=51;break;case 48:e.prev=48,e.t0=e.catch(33),b.e(e.t0);case 51:return e.prev=51,b.f(),e.finish(51);case 54:1===g.length?d(g[0],m):(D=g.reduce((function(e,t){return e.map((function(e,n){return[].concat((0,l.Z)(e),(0,l.Z)(t[n]))}))})),d(D,m));case 55:case"end":return e.stop()}}),e,null,[[33,48,51,54]])})));return function(t,n){return e.apply(this,arguments)}}(),[W,Xn,Vn,Mn.copy,Rn,j,je]);mt("copy",qi,window,!1,!1);var Qi=g.useCallback((function(e,t){if(0!==e.length&&-1!==t){var n=(0,u.Z)(e[t],2),r=n[0],i=n[1];void 0!==P.current&&P.current[0]===r&&P.current[1]===i||(P.current=[r,i],Ui(r,i,!1,!1))}}),[Ui]),Ji=null!=(f=null==(d=null==gt?void 0:gt.current)?void 0:d.cell)?f:[],eo=(0,u.Z)(Ji,2),to=eo[0],no=eo[1],ro=g.useRef(ui);ro.current=ui,g.useLayoutEffect((function(){var e,t,n,r;Tr.current||void 0===to||void 0===no||to===(null==(t=null==(e=er.current)?void 0:e.current)?void 0:t.cell[0])&&no===(null==(r=null==(n=er.current)?void 0:n.current)?void 0:r.cell[1])||ro.current(to,no),Tr.current=!1}),[to,no]);var io=g.useMemo((function(){return!0===In&&!0===(null==St?void 0:St.tint)?ot.fromSingleSelection(Jr-1):ot.empty()}),[Jr,In,null==St?void 0:St.tint]),oo=g.useCallback((function(e){var t;return"boolean"===typeof It?It:null==(t=null==It?void 0:It(e-Rn))||t}),[Rn,It]),ao=g.useMemo((function(){if(void 0===Ci||null===M.current)return null;var e=Ci.bounds,t=Ci.group,n=M.current.getBoundingClientRect();return g.createElement(Gn,{bounds:e,group:t,canvasBounds:n,onClose:function(){return Ei(void 0)},onFinish:function(e){Ei(void 0),null==ae||ae(t,e)}})}),[ae,Ci]),lo=Math.min(Mr.length,Xe+(Zn?1:0));g.useImperativeHandle(t,(function(){return{appendRow:function(e){return fi(e+Rn)},updateCells:function(e){var t;return 0!==Rn&&(e=e.map((function(e){return{cell:[e.cell[0]+Rn,e.cell[1]]}}))),null==(t=qr.current)?void 0:t.damage(e)},getBounds:function(e,t){var n;return null==(n=qr.current)?void 0:n.getBounds(e+Rn,t)},focus:function(){var e;return null==(e=qr.current)?void 0:e.focus()},emit:function(){var e=(0,o.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="delete"===e.t0?3:"fill-right"===e.t0?5:"fill-down"===e.t0?7:"copy"===e.t0?9:"paste"===e.t0?12:15;break;case 3:return Ki({bounds:void 0,cancel:function(){},stopPropagation:function(){},preventDefault:function(){},ctrlKey:!1,key:"Delete",keyCode:46,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0}),e.abrupt("break",15);case 5:return Ki({bounds:void 0,cancel:function(){},stopPropagation:function(){},preventDefault:function(){},ctrlKey:!0,key:"r",keyCode:82,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0}),e.abrupt("break",15);case 7:return Ki({bounds:void 0,cancel:function(){},stopPropagation:function(){},preventDefault:function(){},ctrlKey:!0,key:"d",keyCode:68,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0}),e.abrupt("break",15);case 9:return e.next=11,qi(void 0,!0);case 11:case 14:return e.abrupt("break",15);case 12:return e.next=14,Gi();case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),scrollTo:ui}}),[fi,qi,Ki,Gi,Rn,ui]);var uo=null!=Li?Li:[],so=(0,u.Z)(uo,2),co=so[0],fo=so[1],ho=g.useCallback((function(e){var t=(0,u.Z)(e,2),n=t[0],r=t[1];-1!==r?co===n&&fo===r||(pr({cell:e,range:{x:n,y:r,width:1,height:1}},!0,!1,"keyboard-nav"),ui(n,r)):"none"!==we&&(gr(ot.fromSingleSelection(n),void 0,!1),Qr())}),[we,Qr,ui,co,fo,pr,gr]),po=g.useState(!1),vo=(0,u.Z)(po,2),go=vo[0],mo=vo[1],bo=g.useRef(x((function(e){mo(e)}),5)),yo=g.useCallback((function(){bo.current(!0),void 0===Vn.current&&0===Vn.columns.length&&0===Vn.rows.length&&void 0===R&&pr({cell:[Rn,Gr],range:{x:Rn,y:Gr,width:1,height:1}},!0,!1,"keyboard-select")}),[Gr,Vn,R,Rn,pr]),wo=g.useCallback((function(){bo.current(!1)}),[]),xo=g.useMemo((function(){var e,t,n=null!=(e=null==Nt?void 0:Nt.scrollbarWidthOverride)?e:function(){if(void 0!==Ft)return Ft;var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.id="testScrollbar",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.append(e),document.body.append(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),Ft=n-r}(),r=j+(In?1:0);if("number"===typeof kn)t=Er+r*kn;else{for(var i=0,o=Math.min(r,10),a=0;a<o;a++)i+=kn(a);i=Math.floor(i/o),t=Er+r*i}t+=n;var l=Mr.reduce((function(e,t){return t.width+e}),0)+n;return["".concat(Math.min(1e5,l),"px"),"".concat(Math.min(1e5,t),"px")]}),[Mr,null==Nt?void 0:Nt.scrollbarWidthOverride,kn,j,In,Er]),ko=(0,u.Z)(xo,2),Do=ko[0],Co=ko[1];return g.createElement(Ie.Provider,{value:mr},g.createElement(lr,{style:Ae(mr),className:ne,inWidth:null!=N?N:Do,inHeight:null!=V?V:Co},g.createElement(Kn,{fillHandle:Bt,drawFocusRing:_t,experimental:Nt,fixedShadowX:Vt,fixedShadowY:Wt,getRowThemeOverride:B,headerIcons:jt,imageWindowLoader:Ut,initialSize:Xt,isDraggable:Yt,onDragLeave:Kt,onRowMoved:$t,overscrollX:Sn,overscrollY:Fn,preventDiagonalScrolling:Qt,rightElement:Jt,rightElementProps:en,showMinimap:tn,smoothScrollX:nn,smoothScrollY:rn,className:ne,enableGroups:Cr,onCanvasFocused:yo,onCanvasBlur:wo,canvasRef:M,onContextMenu:$i,theme:mr,cellXOffset:$r,cellYOffset:Gr,accessibilityHeight:zr.height,onDragEnd:Vi,columns:Mr,drawCustomCell:ge,drawHeader:cr,disabledRows:io,freezeColumns:lo,lockColumns:Rn,firstColAccessible:0===Rn,getCellContent:ri,minColumnWidth:vn,maxColumnWidth:gn,searchInputRef:F,showSearch:Bn,onSearchClose:_n,highlightRegions:ti,getCellsForSelection:Xn,getGroupDetails:ii,headerHeight:Dn,isFocused:go,groupHeaderHeight:Cr?Cn:0,trailingRowType:In?!0===(null==St?void 0:St.sticky)?"sticky":"appended":"none",onColumnResize:or,onColumnResizeEnd:ar,onColumnResizeStart:sr,onCellFocused:ho,onColumnMoved:Bi,onDragStart:Ni,onHeaderMenuClick:Hi,onItemHovered:Wi,isFilling:!0===(null==R?void 0:R.fillHandle),onMouseMove:Ti,onKeyDown:Ki,onKeyUp:ce,onMouseDown:xi,onMouseUp:Pi,onDragOverCell:Ot,onDrop:Pt,onSearchResultsChanged:Qi,onVisibleRegionChanged:zi,clientSize:[wr[0],wr[1]],rowHeight:kn,rows:Jr,scrollRef:O,selection:Vn,translateX:zr.tx,translateY:zr.ty,verticalBorder:oo,gridRef:qr,getCellRenderer:kr,scrollToEnd:on}),ao,void 0!==E&&g.createElement(ut,(0,s.Z)((0,s.Z)({},E),{},{validateCell:$n,id:Yi,getCellRenderer:kr,className:!0===(null==Nt?void 0:Nt.isSubGrid)?"click-outside-ignore":void 0,provideEditor:Et,imageEditorOverride:z,onFinishEditing:Xi,markdownDivCreateNode:_}))))}));function Xr(e){return(0,s.Z)((0,s.Z)({},e),{},{kind:Pe.Custom})}function Yr(e){return{customRenderers:g.useMemo((function(){return e.map(Xr)}),[e])}}}}]);