2022-05-23 00:16:32 +04:00

88 lines
632 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

define((function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=48)}([function(t,e,n){"use strict";var i;function r(t){return"function"==typeof t.iter?t.iter():new u(t)}function o(t,e){for(var n,i=0,o=r(t);void 0!==(n=o.next());)if(!1===e(n,i++))return}function s(t,e){for(var n,i=0,o=r(t);void 0!==(n=o.next());)if(!e(n,i++))return!1;return!0}function a(t,e){for(var n,i=0,o=r(t);void 0!==(n=o.next());)if(e(n,i++))return!0;return!1}function l(t){for(var e,n=0,i=[],o=r(t);void 0!==(e=o.next());)i[n++]=e;return i}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return s})),n.d(e,"h",(function(){return f})),n.d(e,"i",(function(){return g})),n.d(e,"j",(function(){return r})),n.d(e,"k",(function(){return y})),n.d(e,"l",(function(){return v})),n.d(e,"m",(function(){return x})),n.d(e,"n",(function(){return w})),n.d(e,"o",(function(){return j})),n.d(e,"p",(function(){return a})),n.d(e,"q",(function(){return l})),function(t){function e(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r,o=t.length;if(0===o)return-1;n=n<0?Math.max(0,n+o):Math.min(n,o-1),r=(i=i<0?Math.max(0,i+o):Math.min(i,o-1))<n?i+1+(o-n):i-n+1;for(var s=0;s<r;++s){var a=(n+s)%o;if(t[a]===e)return a}return-1}function n(t,e,n,i){void 0===n&&(n=-1),void 0===i&&(i=0);var r,o=t.length;if(0===o)return-1;r=(n=n<0?Math.max(0,n+o):Math.min(n,o-1))<(i=i<0?Math.max(0,i+o):Math.min(i,o-1))?n+1+(o-i):n-i+1;for(var s=0;s<r;++s){var a=(n-s+o)%o;if(t[a]===e)return a}return-1}function i(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r,o=t.length;if(0===o)return-1;n=n<0?Math.max(0,n+o):Math.min(n,o-1),r=(i=i<0?Math.max(0,i+o):Math.min(i,o-1))<n?i+1+(o-n):i-n+1;for(var s=0;s<r;++s){var a=(n+s)%o;if(e(t[a],a))return a}return-1}function r(t,e,n,i){void 0===n&&(n=-1),void 0===i&&(i=0);var r,o=t.length;if(0===o)return-1;r=(n=n<0?Math.max(0,n+o):Math.min(n,o-1))<(i=i<0?Math.max(0,i+o):Math.min(i,o-1))?n+1+(o-i):n-i+1;for(var s=0;s<r;++s){var a=(n-s+o)%o;if(e(t[a],a))return a}return-1}function o(t,e,n){void 0===e&&(e=0),void 0===n&&(n=-1);var i=t.length;if(!(i<=1))for(e=e<0?Math.max(0,e+i):Math.min(e,i-1),n=n<0?Math.max(0,n+i):Math.min(n,i-1);e<n;){var r=t[e],o=t[n];t[e++]=o,t[n--]=r}}function s(t,e){var n=t.length;if(e<0&&(e+=n),!(e<0||e>=n)){for(var i=t[e],r=e+1;r<n;++r)t[r-1]=t[r];return t.length=n-1,i}}t.firstIndexOf=e,t.lastIndexOf=n,t.findFirstIndex=i,t.findLastIndex=r,t.findFirstValue=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=-1);var o=i(t,e,n,r);return-1!==o?t[o]:void 0},t.findLastValue=function(t,e,n,i){void 0===n&&(n=-1),void 0===i&&(i=0);var o=r(t,e,n,i);return-1!==o?t[o]:void 0},t.lowerBound=function(t,e,n,i,r){void 0===i&&(i=0),void 0===r&&(r=-1);var o=t.length;if(0===o)return 0;for(var s=i=i<0?Math.max(0,i+o):Math.min(i,o-1),a=(r=r<0?Math.max(0,r+o):Math.min(r,o-1))-i+1;a>0;){var l=a>>1,u=s+l;n(t[u],e)<0?(s=u+1,a-=l+1):a=l}return s},t.upperBound=function(t,e,n,i,r){void 0===i&&(i=0),void 0===r&&(r=-1);var o=t.length;if(0===o)return 0;for(var s=i=i<0?Math.max(0,i+o):Math.min(i,o-1),a=(r=r<0?Math.max(0,r+o):Math.min(r,o-1))-i+1;a>0;){var l=a>>1,u=s+l;n(t[u],e)>0?a=l:(s=u+1,a-=l+1)}return s},t.shallowEqual=function(t,e,n){if(t===e)return!0;if(t.length!==e.length)return!1;for(var i=0,r=t.length;i<r;++i)if(n?!n(t[i],e[i]):t[i]!==e[i])return!1;return!0},t.slice=function(t,e){void 0===e&&(e={});var n=e.start,i=e.stop,r=e.step;if(void 0===r&&(r=1),0===r)throw new Error("Slice `step` cannot be zero.");var o,s=t.length;void 0===n?n=r<0?s-1:0:n<0?n=Math.max(n+s,r<0?-1:0):n>=s&&(n=r<0?s-1:s),void 0===i?i=r<0?-1:s:i<0?i=Math.max(i+s,r<0?-1:0):i>=s&&(i=r<0?s-1:s),o=r<0&&i>=n||r>0&&n>=i?0:r<0?Math.floor((i-n+1)/r+1):Math.floor((i-n-1)/r+1);for(var a=[],l=0;l<o;++l)a[l]=t[n+l*r];return a},t.move=function(t,e,n){var i=t.length;if(!(i<=1)&&(e=e<0?Math.max(0,e+i):Math.min(e,i-1))!==(n=n<0?Math.max(0,n+i):Math.min(n,i-1))){for(var r=t[e],o=e<n?1:-1,s=e;s!==n;s+=o)t[s]=t[s+o];t[n]=r}},t.reverse=o,t.rotate=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(!(r<=1||(n=n<0?Math.max(0,n+r):Math.min(n,r-1))>=(i=i<0?Math.max(0,i+r):Math.min(i,r-1)))){var s=i-n+1;if(e>0?e%=s:e<0&&(e=(e%s+s)%s),0!==e){var a=n+e;o(t,n,a-1),o(t,a,i),o(t,n,i)}}},t.fill=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(0!==r){var o;n=n<0?Math.max(0,n+r):Math.min(n,r-1),o=(i=i<0?Math.max(0,i+r):Math.min(i,r-1))<n?i+1+(r-n):i-n+1;for(var s=0;s<o;++s)t[(n+s)%r]=e}},t.insert=function(t,e,n){var i=t.length;e=e<0?Math.max(0,e+i):Math.min(e,i);for(var r=i;r>e;--r)t[r]=t[r-1];t[e]=n},t.removeAt=s,t.removeFirstOf=function(t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=-1);var o=e(t,n,i,r);return-1!==o&&s(t,o),o},t.removeLastOf=function(t,e,i,r){void 0===i&&(i=-1),void 0===r&&(r=0);var o=n(t,e,i,r);return-1!==o&&s(t,o),o},t.removeAllOf=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(0===r)return 0;n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1);for(var o=0,s=0;s<r;++s)n<=i&&s>=n&&s<=i&&t[s]===e||i<n&&(s<=i||s>=n)&&t[s]===e?o++:o>0&&(t[s-o]=t[s]);return o>0&&(t.length=r-o),o},t.removeFirstWhere=function(t,e,n,r){var o;void 0===n&&(n=0),void 0===r&&(r=-1);var a=i(t,e,n,r);return-1!==a&&(o=s(t,a)),{index:a,value:o}},t.removeLastWhere=function(t,e,n,i){var o;void 0===n&&(n=-1),void 0===i&&(i=0);var a=r(t,e,n,i);return-1!==a&&(o=s(t,a)),{index:a,value:o}},t.removeAllWhere=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(0===r)return 0;n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1);for(var o=0,s=0;s<r;++s)n<=i&&s>=n&&s<=i&&e(t[s],s)||i<n&&(s<=i||s>=n)&&e(t[s],s)?o++:o>0&&(t[s-o]=t[s]);return o>0&&(t.length=r-o),o}}(i||(i={}));var u=function(){function t(t){this._index=0,this._source=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},t}();(function(){function t(t,e){void 0===e&&(e=Object.keys(t)),this._index=0,this._source=t,this._keys=e}t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source,this._keys);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._keys.length)){var t=this._keys[this._index++];return t in this._source?t:this.next()}}})(),function(){function t(t,e){void 0===e&&(e=Object.keys(t)),this._index=0,this._source=t,this._keys=e}t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source,this._keys);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._keys.length)){var t=this._keys[this._index++];return t in this._source?this._source[t]:this.next()}}}(),function(){function t(t,e){void 0===e&&(e=Object.keys(t)),this._index=0,this._source=t,this._keys=e}t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source,this._keys);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._keys.length)){var t=this._keys[this._index++];return t in this._source?[t,this._source[t]]:this.next()}}}(),function(){function t(t){this._fn=t}t.prototype.iter=function(){return this},t.prototype.clone=function(){throw new Error("An `FnIterator` cannot be cloned.")},t.prototype.next=function(){return this._fn.call(void 0)}}();function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new d(r(t.map(r)))}var d=function(){function t(t){this._cloned=!1,this._source=t,this._active=void 0}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone());return e._active=this._active&&this._active.clone(),e._cloned=!0,this._cloned=!0,e},t.prototype.next=function(){if(void 0===this._active){var t=this._source.next();if(void 0===t)return;this._active=this._cloned?t.clone():t}var e=this._active.next();return void 0!==e?e:(this._active=void 0,this.next())},t}();function h(){return new p}var p=function(){function t(){}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t},t.prototype.next=function(){},t}();!function(){function t(t,e){this._source=t,this._index=e}t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.clone(),this._index)},t.prototype.next=function(){var t=this._source.next();if(void 0!==t)return[this._index++,t]}}();function f(t,e){return new m(r(t),e)}var m=function(){function t(t,e){this._index=0,this._source=t,this._fn=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone(),this._fn);return e._index=this._index,e},t.prototype.next=function(){for(var t,e=this._fn,n=this._source;void 0!==(t=n.next());)if(e(t,this._index++))return t},t}();function g(t,e){for(var n,i=0,o=r(t);void 0!==(n=o.next());)if(e(n,i++))return n}function v(t,e){var n=r(t),i=n.next();if(void 0!==i){for(var o=i;void 0!==(i=n.next());)e(i,o)>0&&(o=i);return o}}function y(t,e){return new b(r(t),e)}var b=function(){function t(t,e){this._index=0,this._source=t,this._fn=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone(),this._fn);return e._index=this._index,e},t.prototype.next=function(){var t=this._source.next();if(void 0!==t)return this._fn.call(void 0,t,this._index++)},t}();var _;!function(){function t(t,e,n){this._index=0,this._start=t,this._stop=e,this._step=n,this._length=_.rangeLength(t,e,n)}t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._start,this._stop,this._step);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._length))return this._start+this._step*this._index++}}();function w(t,e,n){var i=0,o=r(t),s=o.next();if(void 0===s&&void 0===n)throw new TypeError("Reduce of empty iterable with no initial value.");if(void 0===s)return n;var a,l,u=o.next();if(void 0===u&&void 0===n)return s;if(void 0===u)return e(n,s,i++);for(a=e(void 0===n?s:e(n,s,i++),u,i++);void 0!==(l=o.next());)a=e(a,l,i++);return a}function x(t){return new C(t,1)}!function(t){t.rangeLength=function(t,e,n){return 0===n?1/0:t>e&&n>0||t<e&&n<0?0:Math.ceil((e-t)/n)}}(_||(_={}));var C=function(){function t(t,e){this._value=t,this._count=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._value,this._count)},t.prototype.next=function(){if(!(this._count<=0))return this._count--,this._value},t}();function j(t){return"function"==typeof t.retro?t.retro():new E(t)}var E=function(){function t(t){this._source=t,this._index=t.length-1}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index<0||this._index>=this._source.length))return this._source[this._index--]},t}();var T;!function(){function t(t,e){this._source=t,this._step=e}t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.clone(),this._step)},t.prototype.next=function(){for(var t=this._source.next(),e=this._step-1;e>0;--e)this._source.next();return t}}();!function(t){function e(t,e,n){void 0===n&&(n=0);for(var i=new Array(e.length),r=0,o=n,s=e.length;r<s;++r,++o){if(-1===(o=t.indexOf(e[r],o)))return null;i[r]=o}return i}t.findIndices=e,t.matchSumOfSquares=function(t,n,i){void 0===i&&(i=0);var r=e(t,n,i);if(!r)return null;for(var o=0,s=0,a=r.length;s<a;++s){var l=r[s]-i;o+=l*l}return{score:o,indices:r}},t.matchSumOfDeltas=function(t,n,i){void 0===i&&(i=0);var r=e(t,n,i);if(!r)return null;for(var o=0,s=i-1,a=0,l=r.length;a<l;++a){var u=r[a];o+=u-s-1,s=u}return{score:o,indices:r}},t.highlight=function(t,e,n){for(var i=[],r=0,o=0,s=e.length;r<s;){for(var a=e[r],l=e[r];++r<s&&e[r]===l+1;)l++;o<a&&i.push(t.slice(o,a)),a<l+1&&i.push(n(t.slice(a,l+1))),o=l+1}return o<t.length&&i.push(t.slice(o)),i},t.cmp=function(t,e){return t<e?-1:t>e?1:0}}(T||(T={}));!function(){function t(t,e){this._source=t,this._count=e}t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.clone(),this._count)},t.prototype.next=function(){if(!(this._count<=0)){var t=this._source.next();if(void 0!==t)return this._count--,t}}}();!function(){function t(t){this._source=t}t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.map((function(t){return t.clone()})))},t.prototype.next=function(){for(var t=new Array(this._source.length),e=0,n=this._source.length;e<n;++e){var i=this._source[e].next();if(void 0===i)return;t[e]=i}return t}}()},function(t,e,n){"use strict";(function(t,i){n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return a}));var r=n(0),o=n(46),s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var a,l=function(){function t(t){this.type=t}return Object.defineProperty(t.prototype,"isConflatable",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.conflate=function(t){return!1},t}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e.prototype,"isConflatable",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.conflate=function(t){return!0},e}(l);!function(e){function n(t,e){var n=a.get(t);n&&0!==n.length?Object(r.g)(Object(r.o)(n),(function(n){return!n||function(t,e,n){var i=!0;try{i="function"==typeof t?t(e,n):t.messageHook(e,n)}catch(t){u(t)}return i}(n,t,e)}))&&f(t,e):f(t,e)}e.sendMessage=n,e.postMessage=function(t,e){e.isConflatable&&Object(r.p)(s,(function(n){return n.handler===t&&(!!n.msg&&(n.msg.type===e.type&&(!!n.msg.isConflatable&&n.msg.conflate(e))))}))||m(t,e)},e.installMessageHook=function(t,e){var n=a.get(t);n&&-1!==n.indexOf(e)||(n?n.push(e):a.set(t,[e]))},e.removeMessageHook=function(t,e){var n=a.get(t);if(n){var i=n.indexOf(e);-1!==i&&(n[i]=null,v(n))}},e.clearData=function(t){var e=a.get(t);e&&e.length>0&&(r.a.fill(e,null),v(e)),Object(r.e)(s,(function(e){e.handler===t&&(e.handler=null,e.msg=null)}))},e.flush=function(){d||0===c||(p(c),d=!0,g(),d=!1)},e.getExceptionHandler=function(){return u},e.setExceptionHandler=function(t){var e=u;return u=t,e};var s=new o.a,a=new WeakMap,l=new Set,u=function(t){console.error(t)},c=0,d=!1,h="function"==typeof requestAnimationFrame?requestAnimationFrame:t,p="function"==typeof cancelAnimationFrame?cancelAnimationFrame:i;function f(t,e){try{t.processMessage(e)}catch(t){u(t)}}function m(t,e){s.addLast({handler:t,msg:e}),0===c&&(c=h(g))}function g(){if(c=0,!s.isEmpty){var t={handler:null,msg:null};for(s.addLast(t);;){var e=s.removeFirst();if(e===t)return;e.handler&&e.msg&&n(e.handler,e.msg)}}}function v(t){0===l.size&&h(y),l.add(t)}function y(){l.forEach(b),l.clear()}function b(t){r.a.removeAllWhere(t,_)}function _(t){return null===t}}(a||(a={}))}).call(this,n(26).setImmediate,n(26).clearImmediate)},function(t,e,n){(function(t,n){var i;!function(){var r="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this||{},o=r._,s=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,u=s.push,c=s.slice,d=a.toString,h=a.hasOwnProperty,p=Array.isArray,f=Object.keys,m=Object.create,g=function(){},v=function(t){return t instanceof v?t:this instanceof v?void(this._wrapped=t):new v(t)};e.nodeType?r._=v:(!n.nodeType&&n.exports&&(e=n.exports=v),e._=v),v.VERSION="1.9.1";var y,b=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,o){return t.call(e,n,i,r,o)}}return function(){return t.apply(e,arguments)}},_=function(t,e,n){return v.iteratee!==y?v.iteratee(t,e):null==t?v.identity:v.isFunction(t)?b(t,e,n):v.isObject(t)&&!v.isArray(t)?v.matcher(t):v.property(t)};v.iteratee=y=function(t,e){return _(t,e,1/0)};var w=function(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+e];switch(e){case 0:return t.call(this,i);case 1:return t.call(this,arguments[0],i);case 2:return t.call(this,arguments[0],arguments[1],i)}var o=Array(e+1);for(r=0;r<e;r++)o[r]=arguments[r];return o[e]=i,t.apply(this,o)}},x=function(t){if(!v.isObject(t))return{};if(m)return m(t);g.prototype=t;var e=new g;return g.prototype=null,e},C=function(t){return function(e){return null==e?void 0:e[t]}},j=function(t,e){return null!=t&&h.call(t,e)},E=function(t,e){for(var n=e.length,i=0;i<n;i++){if(null==t)return;t=t[e[i]]}return n?t:void 0},T=Math.pow(2,53)-1,M=C("length"),k=function(t){var e=M(t);return"number"==typeof e&&e>=0&&e<=T};v.each=v.forEach=function(t,e,n){var i,r;if(e=b(e,n),k(t))for(i=0,r=t.length;i<r;i++)e(t[i],i,t);else{var o=v.keys(t);for(i=0,r=o.length;i<r;i++)e(t[o[i]],o[i],t)}return t},v.map=v.collect=function(t,e,n){e=_(e,n);for(var i=!k(t)&&v.keys(t),r=(i||t).length,o=Array(r),s=0;s<r;s++){var a=i?i[s]:s;o[s]=e(t[a],a,t)}return o};var A=function(t){var e=function(e,n,i,r){var o=!k(e)&&v.keys(e),s=(o||e).length,a=t>0?0:s-1;for(r||(i=e[o?o[a]:a],a+=t);a>=0&&a<s;a+=t){var l=o?o[a]:a;i=n(i,e[l],l,e)}return i};return function(t,n,i,r){var o=arguments.length>=3;return e(t,b(n,r,4),i,o)}};v.reduce=v.foldl=v.inject=A(1),v.reduceRight=v.foldr=A(-1),v.find=v.detect=function(t,e,n){var i=(k(t)?v.findIndex:v.findKey)(t,e,n);if(void 0!==i&&-1!==i)return t[i]},v.filter=v.select=function(t,e,n){var i=[];return e=_(e,n),v.each(t,(function(t,n,r){e(t,n,r)&&i.push(t)})),i},v.reject=function(t,e,n){return v.filter(t,v.negate(_(e)),n)},v.every=v.all=function(t,e,n){e=_(e,n);for(var i=!k(t)&&v.keys(t),r=(i||t).length,o=0;o<r;o++){var s=i?i[o]:o;if(!e(t[s],s,t))return!1}return!0},v.some=v.any=function(t,e,n){e=_(e,n);for(var i=!k(t)&&v.keys(t),r=(i||t).length,o=0;o<r;o++){var s=i?i[o]:o;if(e(t[s],s,t))return!0}return!1},v.contains=v.includes=v.include=function(t,e,n,i){return k(t)||(t=v.values(t)),("number"!=typeof n||i)&&(n=0),v.indexOf(t,e,n)>=0},v.invoke=w((function(t,e,n){var i,r;return v.isFunction(e)?r=e:v.isArray(e)&&(i=e.slice(0,-1),e=e[e.length-1]),v.map(t,(function(t){var o=r;if(!o){if(i&&i.length&&(t=E(t,i)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)}))})),v.pluck=function(t,e){return v.map(t,v.property(e))},v.where=function(t,e){return v.filter(t,v.matcher(e))},v.findWhere=function(t,e){return v.find(t,v.matcher(e))},v.max=function(t,e,n){var i,r,o=-1/0,s=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,l=(t=k(t)?t:v.values(t)).length;a<l;a++)null!=(i=t[a])&&i>o&&(o=i);else e=_(e,n),v.each(t,(function(t,n,i){((r=e(t,n,i))>s||r===-1/0&&o===-1/0)&&(o=t,s=r)}));return o},v.min=function(t,e,n){var i,r,o=1/0,s=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,l=(t=k(t)?t:v.values(t)).length;a<l;a++)null!=(i=t[a])&&i<o&&(o=i);else e=_(e,n),v.each(t,(function(t,n,i){((r=e(t,n,i))<s||r===1/0&&o===1/0)&&(o=t,s=r)}));return o},v.shuffle=function(t){return v.sample(t,1/0)},v.sample=function(t,e,n){if(null==e||n)return k(t)||(t=v.values(t)),t[v.random(t.length-1)];var i=k(t)?v.clone(t):v.values(t),r=M(i);e=Math.max(Math.min(e,r),0);for(var o=r-1,s=0;s<e;s++){var a=v.random(s,o),l=i[s];i[s]=i[a],i[a]=l}return i.slice(0,e)},v.sortBy=function(t,e,n){var i=0;return e=_(e,n),v.pluck(v.map(t,(function(t,n,r){return{value:t,index:i++,criteria:e(t,n,r)}})).sort((function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return t.index-e.index})),"value")};var S=function(t,e){return function(n,i,r){var o=e?[[],[]]:{};return i=_(i,r),v.each(n,(function(e,r){var s=i(e,r,n);t(o,e,s)})),o}};v.groupBy=S((function(t,e,n){j(t,n)?t[n].push(e):t[n]=[e]})),v.indexBy=S((function(t,e,n){t[n]=e})),v.countBy=S((function(t,e,n){j(t,n)?t[n]++:t[n]=1}));var D=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;v.toArray=function(t){return t?v.isArray(t)?c.call(t):v.isString(t)?t.match(D):k(t)?v.map(t,v.identity):v.values(t):[]},v.size=function(t){return null==t?0:k(t)?t.length:v.keys(t).length},v.partition=S((function(t,e,n){t[n?0:1].push(e)}),!0),v.first=v.head=v.take=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[0]:v.initial(t,t.length-e)},v.initial=function(t,e,n){return c.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},v.last=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[t.length-1]:v.rest(t,Math.max(0,t.length-e))},v.rest=v.tail=v.drop=function(t,e,n){return c.call(t,null==e||n?1:e)},v.compact=function(t){return v.filter(t,Boolean)};var O=function(t,e,n,i){for(var r=(i=i||[]).length,o=0,s=M(t);o<s;o++){var a=t[o];if(k(a)&&(v.isArray(a)||v.isArguments(a)))if(e)for(var l=0,u=a.length;l<u;)i[r++]=a[l++];else O(a,e,n,i),r=i.length;else n||(i[r++]=a)}return i};v.flatten=function(t,e){return O(t,e,!1)},v.without=w((function(t,e){return v.difference(t,e)})),v.uniq=v.unique=function(t,e,n,i){v.isBoolean(e)||(i=n,n=e,e=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],s=0,a=M(t);s<a;s++){var l=t[s],u=n?n(l,s,t):l;e&&!n?(s&&o===u||r.push(l),o=u):n?v.contains(o,u)||(o.push(u),r.push(l)):v.contains(r,l)||r.push(l)}return r},v.union=w((function(t){return v.uniq(O(t,!0,!0))})),v.intersection=function(t){for(var e=[],n=arguments.length,i=0,r=M(t);i<r;i++){var o=t[i];if(!v.contains(e,o)){var s;for(s=1;s<n&&v.contains(arguments[s],o);s++);s===n&&e.push(o)}}return e},v.difference=w((function(t,e){return e=O(e,!0,!0),v.filter(t,(function(t){return!v.contains(e,t)}))})),v.unzip=function(t){for(var e=t&&v.max(t,M).length||0,n=Array(e),i=0;i<e;i++)n[i]=v.pluck(t,i);return n},v.zip=w(v.unzip),v.object=function(t,e){for(var n={},i=0,r=M(t);i<r;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n};var P=function(t){return function(e,n,i){n=_(n,i);for(var r=M(e),o=t>0?0:r-1;o>=0&&o<r;o+=t)if(n(e[o],o,e))return o;return-1}};v.findIndex=P(1),v.findLastIndex=P(-1),v.sortedIndex=function(t,e,n,i){for(var r=(n=_(n,i,1))(e),o=0,s=M(t);o<s;){var a=Math.floor((o+s)/2);n(t[a])<r?o=a+1:s=a}return o};var L=function(t,e,n){return function(i,r,o){var s=0,a=M(i);if("number"==typeof o)t>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return i[o=n(i,r)]===r?o:-1;if(r!=r)return(o=e(c.call(i,s,a),v.isNaN))>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&o<a;o+=t)if(i[o]===r)return o;return-1}};v.indexOf=L(1,v.findIndex,v.sortedIndex),v.lastIndexOf=L(-1,v.findLastIndex),v.range=function(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var i=Math.max(Math.ceil((e-t)/n),0),r=Array(i),o=0;o<i;o++,t+=n)r[o]=t;return r},v.chunk=function(t,e){if(null==e||e<1)return[];for(var n=[],i=0,r=t.length;i<r;)n.push(c.call(t,i,i+=e));return n};var I=function(t,e,n,i,r){if(!(i instanceof e))return t.apply(n,r);var o=x(t.prototype),s=t.apply(o,r);return v.isObject(s)?s:o};v.bind=w((function(t,e,n){if(!v.isFunction(t))throw new TypeError("Bind must be called on a function");var i=w((function(r){return I(t,i,e,this,n.concat(r))}));return i})),v.partial=w((function(t,e){var n=v.partial.placeholder,i=function(){for(var r=0,o=e.length,s=Array(o),a=0;a<o;a++)s[a]=e[a]===n?arguments[r++]:e[a];for(;r<arguments.length;)s.push(arguments[r++]);return I(t,i,this,this,s)};return i})),v.partial.placeholder=v,v.bindAll=w((function(t,e){var n=(e=O(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=e[n];t[i]=v.bind(t[i],t)}})),v.memoize=function(t,e){var n=function(i){var r=n.cache,o=""+(e?e.apply(this,arguments):i);return j(r,o)||(r[o]=t.apply(this,arguments)),r[o]};return n.cache={},n},v.delay=w((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),v.defer=v.partial(v.delay,v,1),v.throttle=function(t,e,n){var i,r,o,s,a=0;n||(n={});var l=function(){a=!1===n.leading?0:v.now(),i=null,s=t.apply(r,o),i||(r=o=null)},u=function(){var u=v.now();a||!1!==n.leading||(a=u);var c=e-(u-a);return r=this,o=arguments,c<=0||c>e?(i&&(clearTimeout(i),i=null),a=u,s=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,c)),s};return u.cancel=function(){clearTimeout(i),a=0,i=r=o=null},u},v.debounce=function(t,e,n){var i,r,o=function(e,n){i=null,n&&(r=t.apply(e,n))},s=w((function(s){if(i&&clearTimeout(i),n){var a=!i;i=setTimeout(o,e),a&&(r=t.apply(this,s))}else i=v.delay(o,e,this,s);return r}));return s.cancel=function(){clearTimeout(i),i=null},s},v.wrap=function(t,e){return v.partial(e,t)},v.negate=function(t){return function(){return!t.apply(this,arguments)}},v.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},v.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},v.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},v.once=v.partial(v.before,2),v.restArguments=w;var z=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(t,e){var n=B.length,i=t.constructor,r=v.isFunction(i)&&i.prototype||a,o="constructor";for(j(t,o)&&!v.contains(e,o)&&e.push(o);n--;)(o=B[n])in t&&t[o]!==r[o]&&!v.contains(e,o)&&e.push(o)};v.keys=function(t){if(!v.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)j(t,n)&&e.push(n);return z&&R(t,e),e},v.allKeys=function(t){if(!v.isObject(t))return[];var e=[];for(var n in t)e.push(n);return z&&R(t,e),e},v.values=function(t){for(var e=v.keys(t),n=e.length,i=Array(n),r=0;r<n;r++)i[r]=t[e[r]];return i},v.mapObject=function(t,e,n){e=_(e,n);for(var i=v.keys(t),r=i.length,o={},s=0;s<r;s++){var a=i[s];o[a]=e(t[a],a,t)}return o},v.pairs=function(t){for(var e=v.keys(t),n=e.length,i=Array(n),r=0;r<n;r++)i[r]=[e[r],t[e[r]]];return i},v.invert=function(t){for(var e={},n=v.keys(t),i=0,r=n.length;i<r;i++)e[t[n[i]]]=n[i];return e},v.functions=v.methods=function(t){var e=[];for(var n in t)v.isFunction(t[n])&&e.push(n);return e.sort()};var F=function(t,e){return function(n){var i=arguments.length;if(e&&(n=Object(n)),i<2||null==n)return n;for(var r=1;r<i;r++)for(var o=arguments[r],s=t(o),a=s.length,l=0;l<a;l++){var u=s[l];e&&void 0!==n[u]||(n[u]=o[u])}return n}};v.extend=F(v.allKeys),v.extendOwn=v.assign=F(v.keys),v.findKey=function(t,e,n){e=_(e,n);for(var i,r=v.keys(t),o=0,s=r.length;o<s;o++)if(e(t[i=r[o]],i,t))return i};var N,W,H=function(t,e,n){return e in n};v.pick=w((function(t,e){var n={},i=e[0];if(null==t)return n;v.isFunction(i)?(e.length>1&&(i=b(i,e[1])),e=v.allKeys(t)):(i=H,e=O(e,!1,!1),t=Object(t));for(var r=0,o=e.length;r<o;r++){var s=e[r],a=t[s];i(a,s,t)&&(n[s]=a)}return n})),v.omit=w((function(t,e){var n,i=e[0];return v.isFunction(i)?(i=v.negate(i),e.length>1&&(n=e[1])):(e=v.map(O(e,!1,!1),String),i=function(t,n){return!v.contains(e,n)}),v.pick(t,i,n)})),v.defaults=F(v.allKeys,!0),v.create=function(t,e){var n=x(t);return e&&v.extendOwn(n,e),n},v.clone=function(t){return v.isObject(t)?v.isArray(t)?t.slice():v.extend({},t):t},v.tap=function(t,e){return e(t),t},v.isMatch=function(t,e){var n=v.keys(e),i=n.length;if(null==t)return!i;for(var r=Object(t),o=0;o<i;o++){var s=n[o];if(e[s]!==r[s]||!(s in r))return!1}return!0},N=function(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var r=typeof t;return("function"===r||"object"===r||"object"==typeof e)&&W(t,e,n,i)},W=function(t,e,n,i){t instanceof v&&(t=t._wrapped),e instanceof v&&(e=e._wrapped);var r=d.call(t);if(r!==d.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e)}var o="[object Array]"===r;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var s=t.constructor,a=e.constructor;if(s!==a&&!(v.isFunction(s)&&s instanceof s&&v.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}i=i||[];for(var u=(n=n||[]).length;u--;)if(n[u]===t)return i[u]===e;if(n.push(t),i.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],n,i))return!1}else{var c,h=v.keys(t);if(u=h.length,v.keys(e).length!==u)return!1;for(;u--;)if(c=h[u],!j(e,c)||!N(t[c],e[c],n,i))return!1}return n.pop(),i.pop(),!0},v.isEqual=function(t,e){return N(t,e)},v.isEmpty=function(t){return null==t||(k(t)&&(v.isArray(t)||v.isString(t)||v.isArguments(t))?0===t.length:0===v.keys(t).length)},v.isElement=function(t){return!(!t||1!==t.nodeType)},v.isArray=p||function(t){return"[object Array]"===d.call(t)},v.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},v.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],(function(t){v["is"+t]=function(e){return d.call(e)==="[object "+t+"]"}})),v.isArguments(arguments)||(v.isArguments=function(t){return j(t,"callee")});var V=r.document&&r.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof V&&(v.isFunction=function(t){return"function"==typeof t||!1}),v.isFinite=function(t){return!v.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},v.isNaN=function(t){return v.isNumber(t)&&isNaN(t)},v.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===d.call(t)},v.isNull=function(t){return null===t},v.isUndefined=function(t){return void 0===t},v.has=function(t,e){if(!v.isArray(e))return j(t,e);for(var n=e.length,i=0;i<n;i++){var r=e[i];if(null==t||!h.call(t,r))return!1;t=t[r]}return!!n},v.noConflict=function(){return r._=o,this},v.identity=function(t){return t},v.constant=function(t){return function(){return t}},v.noop=function(){},v.property=function(t){return v.isArray(t)?function(e){return E(e,t)}:C(t)},v.propertyOf=function(t){return null==t?function(){}:function(e){return v.isArray(e)?E(t,e):t[e]}},v.matcher=v.matches=function(t){return t=v.extendOwn({},t),function(e){return v.isMatch(e,t)}},v.times=function(t,e,n){var i=Array(Math.max(0,t));e=b(e,n,1);for(var r=0;r<t;r++)i[r]=e(r);return i},v.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},v.now=Date.now||function(){return(new Date).getTime()};var q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},U=v.invert(q),K=function(t){var e=function(e){return t[e]},n="(?:"+v.keys(t).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(r,e):t}};v.escape=K(q),v.unescape=K(U),v.result=function(t,e,n){v.isArray(e)||(e=[e]);var i=e.length;if(!i)return v.isFunction(n)?n.call(t):n;for(var r=0;r<i;r++){var o=null==t?void 0:t[e[r]];void 0===o&&(o=n,r=i),t=v.isFunction(o)?o.call(t):o}return t};var $=0;v.uniqueId=function(t){var e=++$+"";return t?t+e:e},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var J=/(.)^/,Y={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},G=/\\|'|\r|\n|\u2028|\u2029/g,X=function(t){return"\\"+Y[t]};v.template=function(t,e,n){!e&&n&&(e=n),e=v.defaults({},e,v.templateSettings);var i,r=RegExp([(e.escape||J).source,(e.interpolate||J).source,(e.evaluate||J).source].join("|")+"|$","g"),o=0,s="__p+='";t.replace(r,(function(e,n,i,r,a){return s+=t.slice(o,a).replace(G,X),o=a+e.length,n?s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?s+="'+\n((__t=("+i+"))==null?'':__t)+\n'":r&&(s+="';\n"+r+"\n__p+='"),e})),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{i=new Function(e.variable||"obj","_",s)}catch(t){throw t.source=s,t}var a=function(t){return i.call(this,t,v)},l=e.variable||"obj";return a.source="function("+l+"){\n"+s+"}",a},v.chain=function(t){var e=v(t);return e._chain=!0,e};var Z=function(t,e){return t._chain?v(e).chain():e};v.mixin=function(t){return v.each(v.functions(t),(function(e){var n=v[e]=t[e];v.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),Z(this,n.apply(v,t))}})),v},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=s[t];v.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],Z(this,n)}})),v.each(["concat","join","slice"],(function(t){var e=s[t];v.prototype[t]=function(){return Z(this,e.apply(this._wrapped,arguments))}})),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return String(this._wrapped)},void 0===(i=function(){return v}.apply(e,[]))||(n.exports=i)}()}).call(this,n(12),n(22)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"CONTROL_COMM_TARGET",(function(){return O})),n.d(e,"CONTROL_COMM_PROTOCOL_VERSION",(function(){return P})),n.d(e,"CONTROL_COMM_TIMEOUT",(function(){return L})),n.d(e,"ManagerBase",(function(){return I})),n.d(e,"serialize_state",(function(){return z})),n.d(e,"unpack_models",(function(){return G})),n.d(e,"WidgetModel",(function(){return Z})),n.d(e,"DOMWidgetModel",(function(){return Q})),n.d(e,"WidgetView",(function(){return tt})),n.d(e,"JupyterPhosphorWidget",(function(){return et})),n.d(e,"JupyterPhosphorPanelWidget",(function(){return nt})),n.d(e,"DOMWidgetView",(function(){return it})),n.d(e,"LayoutModel",(function(){return st})),n.d(e,"LayoutView",(function(){return at})),n.d(e,"StyleModel",(function(){return ut})),n.d(e,"StyleView",(function(){return ct})),n.d(e,"shims",(function(){return X})),n.d(e,"ViewList",(function(){return pt})),n.d(e,"JUPYTER_WIDGETS_VERSION",(function(){return T})),n.d(e,"PROTOCOL_VERSION",(function(){return M})),n.d(e,"difference",(function(){return h})),n.d(e,"isEqual",(function(){return p})),n.d(e,"assign",(function(){return f})),n.d(e,"uuid",(function(){return m})),n.d(e,"WrappedError",(function(){return g})),n.d(e,"resolvePromisesDict",(function(){return v})),n.d(e,"reject",(function(){return y})),n.d(e,"put_buffers",(function(){return b})),n.d(e,"remove_buffers",(function(){return _})),n.d(e,"bufferToHex",(function(){return x})),n.d(e,"hexToBuffer",(function(){return C})),n.d(e,"bufferToBase64",(function(){return j})),n.d(e,"base64ToBuffer",(function(){return E})),n.d(e,"IJupyterWidgetRegistry",(function(){return ft}));var i,r=n(28),o=n(7),s=n(44),a=n.n(s),l=n(45),u=n.n(l),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=function(){return(d=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function h(t,e){return t.filter((function(t){return-1===e.indexOf(t)}))}function p(t,e){return a()(t,e)}var f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function m(){return o.e.uuid4()}var g=function(t){function e(n,i){var r=t.call(this,n)||this;return console.warn("WrappedError has been deprecated!"),r.error_stack=i instanceof e?i.error_stack:[i],r.error_stack.push(r),r}return c(e,t),e}(Error);function v(t){var e=Object.keys(t),n=[];return e.forEach((function(e){n.push(t[e])})),Promise.all(n).then((function(t){for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}))}function y(t,e){return function(n){throw e&&console.error(new Error(t)),n}}function b(t,e,n){for(var i=0;i<e.length;i++){for(var r=e[i],o=t,s=0;s<r.length-1;s++)o=o[r[s]];o[r[r.length-1]]=n[i]}}function _(t){var e=[],n=[];return{state:function t(i,r){if(i.toJSON&&(i=i.toJSON()),Array.isArray(i))for(var o=!1,s=0;s<i.length;s++){if(l=i[s])if(l instanceof ArrayBuffer||ArrayBuffer.isView(l))o||(i=i.slice(),o=!0),e.push(ArrayBuffer.isView(l)?l.buffer:l),n.push(r.concat([s])),i[s]=null;else(c=t(l,r.concat([s])))!==l&&(o||(i=i.slice(),o=!0),i[s]=c)}else if(u()(i))for(var a in i){var l,c;o=!1;if(i.hasOwnProperty(a))if(l=i[a])if(l instanceof ArrayBuffer||ArrayBuffer.isView(l))o||(i=d({},i),o=!0),e.push(ArrayBuffer.isView(l)?l.buffer:l),n.push(r.concat([a])),delete i[a];else(c=t(l,r.concat([a])))!==l&&(o||(i=d({},i),o=!0),i[a]=c)}return i}(t,[]),buffers:e,buffer_paths:n}}var w=["00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F","10","11","12","13","14","15","16","17","18","19","1A","1B","1C","1D","1E","1F","20","21","22","23","24","25","26","27","28","29","2A","2B","2C","2D","2E","2F","30","31","32","33","34","35","36","37","38","39","3A","3B","3C","3D","3E","3F","40","41","42","43","44","45","46","47","48","49","4A","4B","4C","4D","4E","4F","50","51","52","53","54","55","56","57","58","59","5A","5B","5C","5D","5E","5F","60","61","62","63","64","65","66","67","68","69","6A","6B","6C","6D","6E","6F","70","71","72","73","74","75","76","77","78","79","7A","7B","7C","7D","7E","7F","80","81","82","83","84","85","86","87","88","89","8A","8B","8C","8D","8E","8F","90","91","92","93","94","95","96","97","98","99","9A","9B","9C","9D","9E","9F","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AC","AD","AE","AF","B0","B1","B2","B3","B4","B5","B6","B7","B8","B9","BA","BB","BC","BD","BE","BF","C0","C1","C2","C3","C4","C5","C6","C7","C8","C9","CA","CB","CC","CD","CE","CF","D0","D1","D2","D3","D4","D5","D6","D7","D8","D9","DA","DB","DC","DD","DE","DF","E0","E1","E2","E3","E4","E5","E6","E7","E8","E9","EA","EB","EC","ED","EE","EF","F0","F1","F2","F3","F4","F5","F6","F7","F8","F9","FA","FB","FC","FD","FE","FF"];function x(t){for(var e=new Uint8Array(t),n=[],i=0;i<e.length;i++)n.push(w[e[i]]);return n.join("")}function C(t){for(var e=new Uint8Array(t.length/2),n=0;n<t.length;n+=2)e[n/2]=parseInt(t.slice(n,n+2),16);return e.buffer}function j(t){return Object(r.fromByteArray)(new Uint8Array(t))}function E(t){return Object(r.toByteArray)(t).buffer}var T="1.2.0",M="2.1.0",k=function(){return(k=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},A=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((i=i.apply(t,e||[])).next())}))},S=function(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},D=M.split(".",1)[0],O="jupyter.widget.control",P="1.0.0",L=4e3,I=function(){function t(){this.comm_target_name="jupyter.widget",this._models=Object.create(null)}return t.prototype.display_model=function(t,e,n){var i=this;return void 0===n&&(n={}),this.create_view(e,n).then((function(e){return i.display_view(t,e,n)})).catch(y("Could not create view",!0))},t.prototype.setViewOptions=function(t){return void 0===t&&(t={}),t},t.prototype.create_view=function(t,e){var n=this;void 0===e&&(e={});var i=t.state_change=t.state_change.then((function(){return n.loadClass(t.get("_view_name"),t.get("_view_module"),t.get("_view_module_version")).then((function(i){var r=new i({model:t,options:n.setViewOptions(e)});return r.listenTo(t,"destroy",r.remove),Promise.resolve(r.render()).then((function(){return r}))})).catch(y("Could not create a view for model id "+t.model_id,!0))})),r=m();return t.views[r]=i,i.then((function(t){t.once("remove",(function(){delete t.model.views[r]}),n)})),t.state_change},t.prototype.callbacks=function(t){return{}},t.prototype.get_model=function(t){return this._models[t]},t.prototype.has_model=function(t){return void 0!==this._models[t]},t.prototype.handle_comm_open=function(t,e){var n=(e.metadata||{}).version||"";if(n.split(".",1)[0]!==D){var i="Wrong widget protocol version: received protocol version '"+n+"', but was expecting major version '"+D+"'";return console.error(i),Promise.reject(i)}var r=e.content.data,o=r.buffer_paths||[],s=(e.buffers||[]).map((function(t){return t instanceof DataView?t:new DataView(t instanceof ArrayBuffer?t:t.buffer)}));return b(r.state,o,s),this.new_model({model_name:r.state._model_name,model_module:r.state._model_module,model_module_version:r.state._model_module_version,comm:t},r.state).catch(y("Could not create a model.",!0))},t.prototype.new_widget=function(t,e){var n,i=this;if(void 0===e&&(e={}),void 0===t.view_name||void 0===t.view_module||void 0===t.view_module_version)return Promise.reject("new_widget(...) must be given view information in the options.");n=t.comm?Promise.resolve(t.comm):this._create_comm(this.comm_target_name,t.model_id,{state:{_model_module:t.model_module,_model_module_version:t.model_module_version,_model_name:t.model_name,_view_module:t.view_module,_view_module_version:t.view_module_version,_view_name:t.view_name}},{version:M});var r=k({},t);return n.then((function(t){return r.comm=t,i.new_model(r,e).then((function(t){return t.sync("create",t),t}))}),(function(){return r.model_id||(r.model_id=m()),i.new_model(r,e)}))},t.prototype.register_model=function(t,e){var n=this;this._models[t]=e,e.then((function(e){e.once("comm:close",(function(){delete n._models[t]}))}))},t.prototype.new_model=function(t,e){return void 0===e&&(e={}),A(this,void 0,void 0,(function(){var n,i;return S(this,(function(r){switch(r.label){case 0:if(t.model_id)n=t.model_id;else{if(!t.comm)throw new Error("Neither comm nor model_id provided in options object. At least one must exist.");n=t.model_id=t.comm.comm_id}return i=this._make_model(t,e),this.register_model(n,i),[4,i];case 1:return[2,r.sent()]}}))}))},t.prototype._make_model=function(t,e){return void 0===e&&(e={}),A(this,void 0,void 0,(function(){var n,i,r,o,s,a,l;return S(this,(function(u){switch(u.label){case 0:n=t.model_id,i=this.loadClass(t.model_name,t.model_module,t.model_module_version),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,i];case 2:return r=u.sent(),[3,4];case 3:throw o=u.sent(),console.error("Could not instantiate widget"),o;case 4:if(!r)throw new Error("Cannot find model module "+t.model_module+"@"+t.model_module_version+", "+t.model_name);return[4,r._deserialize_state(e,this)];case 5:return s=u.sent(),a={widget_manager:this,model_id:n,comm:t.comm},(l=new r(s,a)).name=t.model_name,l.module=t.model_module,[2,l]}}))}))},t.prototype._loadFromKernel=function(){return A(this,void 0,void 0,(function(){var t,e,n,i,r,o,s,a,l,u,c,d,h,p=this;return S(this,(function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),[4,this._create_comm(O,m(),{},{version:P})];case 1:return n=f.sent(),[4,new Promise((function(i,r){n.on_msg((function(n){"update_states"===(t=n.content.data).method?(e=(n.buffers||[]).map((function(t){return t instanceof DataView?t:new DataView(t instanceof ArrayBuffer?t:t.buffer)})),i(null)):console.warn("\n Unknown "+t.method+" message on the Control channel\n ")})),n.on_close((function(){return r("Control comm was closed too early")})),n.send({method:"request_states"},{}),setTimeout((function(){return r("Control comm did not respond in time")}),L)}))];case 2:return f.sent(),n.close(),[3,4];case 3:return i=f.sent(),console.warn('Failed to fetch ipywidgets through the "jupyter.widget.control" comm channel, fallback to fetching individual model state. Reason:',i),[2,this._loadFromKernelModels()];case 4:for(r=t.states,o={},s={},a=0;a<t.buffer_paths.length;a++)l=t.buffer_paths[a],u=l[0],c=l.slice(1),d=e[a],o[u]||(o[u]=[],s[u]=[]),o[u].push(c),s[u].push(d);return[4,Promise.all(Object.keys(r).map((function(t){return A(p,void 0,void 0,(function(){var e;return S(this,(function(n){switch(n.label){case 0:return this.has_model(t)?(e=void 0,[3,3]):[3,1];case 1:return[4,this._create_comm("jupyter.widget",t)];case 2:e=n.sent(),n.label=3;case 3:return[2,{widget_id:t,comm:e}]}}))}))})))];case 5:return h=f.sent(),[4,Promise.all(h.map((function(t){var e=t.widget_id,n=t.comm;return A(p,void 0,void 0,(function(){var t,i;return S(this,(function(a){switch(a.label){case 0:t=r[e],e in o&&b(t,o[e],s[e]),a.label=1;case 1:return a.trys.push([1,6,,7]),n?[4,this.new_model({model_name:t.model_name,model_module:t.model_module,model_module_version:t.model_module_version,model_id:e,comm:n},t.state)]:[3,3];case 2:return a.sent(),[3,5];case 3:return[4,this.get_model(e)];case 4:a.sent().set_state(t.state),a.label=5;case 5:return[3,7];case 6:return i=a.sent(),console.error(i),[3,7];case 7:return[2]}}))}))})))];case 6:return f.sent(),[2]}}))}))},t.prototype._loadFromKernelModels=function(){return A(this,void 0,void 0,(function(){var t,e,n=this;return S(this,(function(i){switch(i.label){case 0:return[4,this._get_comm_info()];case 1:return t=i.sent(),[4,Promise.all(Object.keys(t).map((function(t){return A(n,void 0,void 0,(function(){var e,n,i;return S(this,(function(r){switch(r.label){case 0:return this.has_model(t)?[2]:[4,this._create_comm(this.comm_target_name,t)];case 1:return e=r.sent(),n="",i=new o.c,e.on_msg((function(t){if(t.parent_header.msg_id===n&&"comm_msg"===t.header.msg_type&&"update"===t.content.data.method){var r=t.content.data,o=r.buffer_paths||[],s=t.buffers||[];b(r.state,o,s),i.resolve({comm:e,msg:t})}})),n=e.send({method:"request_state"},this.callbacks(void 0)),[2,i.promise]}}))}))})))];case 2:return e=i.sent(),[4,Promise.all(e.map((function(t){return A(n,void 0,void 0,(function(){var e;return S(this,(function(n){switch(n.label){case 0:return t?(e=t.msg.content,[4,this.new_model({model_name:e.data.state._model_name,model_module:e.data.state._model_module,model_module_version:e.data.state._model_module_version,comm:t.comm},e.data.state)]):[2];case 1:return n.sent(),[2]}}))}))})))];case 3:return i.sent(),[2]}}))}))},t.prototype.clear_state=function(){var t=this;return v(this._models).then((function(e){Object.keys(e).forEach((function(t){return e[t].close()})),t._models=Object.create(null)}))},t.prototype.get_state=function(t){var e=this;void 0===t&&(t={});var n=Object.keys(this._models).map((function(t){return e._models[t]}));return Promise.all(n).then((function(e){return z(e,t)}))},t.prototype.set_state=function(t){var e=this;if(!(t.version_major&&t.version_major<=2))throw"Unsupported widget state format";var n=t.state;return this._get_comm_info().then((function(t){return Promise.all(Object.keys(n).map((function(i){var r={base64:E,hex:C},o=n[i],s=o.state;if(o.buffers){var a=o.buffers.map((function(t){return t.path})),l=o.buffers.map((function(t){return new DataView(r[t.encoding](t.data))}));b(o.state,a,l)}if(e.has_model(i))return e.get_model(i).then((function(t){return t.constructor._deserialize_state(s||{},e).then((function(e){return t.set_state(e),t}))}));var u={model_id:i,model_name:o.model_name,model_module:o.model_module,model_module_version:o.model_module_version};return t.hasOwnProperty(i)?e._create_comm(e.comm_target_name,i).then((function(t){return u.comm=t,e.new_model(u)})):e.new_model(u,s)})))}))},t.prototype.disconnect=function(){var t=this;Object.keys(this._models).forEach((function(e){t._models[e].then((function(t){t.comm_live=!1}))}))},t.prototype.resolveUrl=function(t){return Promise.resolve(t)},t.prototype.filterExistingModelState=function(t){var e=this,n=t.state;return n=Object.keys(n).filter((function(t){return!e.has_model(t)})).reduce((function(t,e){return t[e]=n[e],t}),{}),k(k({},t),{state:n})},t}();function z(t,e){void 0===e&&(e={});var n={};return t.forEach((function(t){var i=t.model_id,r=_(t.serialize(t.get_state(e.drop_defaults))),o=r.buffers.map((function(t,e){return{data:j(t),path:r.buffer_paths[e],encoding:"base64"}}));n[i]={model_name:t.name,model_module:t.module,model_module_version:t.get("_model_module_version"),state:r.state},o.length>0&&(n[i].buffers=o)})),{version_major:2,version_minor:0,state:n}}var B=function(){return(B=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function R(t,e,n){if(null==t)return this;var i;if("object"==typeof t?(i=t,n=e):(i={})[t]=e,n||(n={}),!this._validate(i,n))return!1;var r=n.unset,o=n.silent,s=[],a=this._changing;this._changing=!0,a||(this._previousAttributes=B({},this.attributes),this.changed={});var l=this.attributes,u=this.changed,c=this._previousAttributes;for(var d in i)e=i[d],p(l[d],e)||s.push(d),p(c[d],e)?delete u[d]:u[d]=e,r?delete l[d]:l[d]=e;if(this.id=this.get(this.idAttribute),!o){s.length&&(this._pending=n);for(var h=0;h<s.length;h++)this.trigger("change:"+s[h],this,l[s[h]],n)}if(a)return this;if(!o)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this}var F=n(21),N=n(8),W=n.n(N),H=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),V=Element.prototype,q=V.matches||V.webkitMatchesSelector||V.mozMatchesSelector||V.msMatchesSelector||V.oMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1},U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype._removeElement=function(){this.undelegateEvents(),this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype._setElement=function(t){this.el=t},e.prototype._setAttributes=function(t){for(var e in t)e in this.el?this.el[e]=t[e]:this.el.setAttribute(e,t[e])},e.prototype.delegate=function(t,e,n){"string"!=typeof e&&(n=e,e=null),void 0===this._domEvents&&(this._domEvents=[]);var i=this.el,r=e?function(t){for(var r=t.target||t.srcElement;r&&r!==i;r=r.parentNode)if(q.call(r,e))return t.delegateTarget=r,n.handleEvent?n.handleEvent(t):n(t)}:n;return this.el.addEventListener(t,r,!1),this._domEvents.push({eventName:t,handler:r,listener:n,selector:e}),r},e.prototype.undelegate=function(t,e,n){if("function"==typeof e&&(n=e,e=null),this.el&&this._domEvents)for(var i=this._domEvents.slice(),r=i.length;r--;){var o=i[r];!(o.eventName!==t||n&&o.listener!==n||e&&o.selector!==e)&&(this.el.removeEventListener(o.eventName,o.handler,!1),this._domEvents.splice(r,1))}return this},e.prototype.undelegateEvents=function(){if(this.el&&this._domEvents){for(var t=this._domEvents.length,e=0;e<t;e++){var n=this._domEvents[e];this.el.removeEventListener(n.eventName,n.handler,!1)}this._domEvents.length=0}return this},e}(F.View),K=n(6),$=n(1),J=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y=function(){return(Y=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function G(t,e){if(Array.isArray(t)){var n=[];return t.forEach((function(t,i){n.push(G(t,e))})),Promise.all(n)}if(t instanceof Object){var i={};return Object.keys(t).forEach((function(n){i[n]=G(t[n],e)})),v(i)}return"string"==typeof t&&"IPY_MODEL_"===t.slice(0,10)?e.get_model(t.slice(10,t.length)):Promise.resolve(t)}var X,Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return J(e,t),e.prototype.defaults=function(){return{_model_module:"@jupyter-widgets/base",_model_name:"WidgetModel",_model_module_version:T,_view_module:"@jupyter-widgets/base",_view_name:null,_view_module_version:T,_view_count:null}},e.prototype.isNew=function(){return!1},e.prototype.initialize=function(e,n){this._expectedEchoMsgIds={},this._attrsToUpdate={},t.prototype.initialize.call(this,e,n),this.widget_manager=n.widget_manager,this.model_id=n.model_id;var i=n.comm;this.views=Object.create(null),this.state_change=Promise.resolve(),this._closed=!1,this._state_lock=null,this._msg_buffer=null,this._msg_buffer_callbacks=null,this._pending_msgs=0,this._buffered_state_diff={},i?(this.comm=i,i.on_close(this._handle_comm_closed.bind(this)),i.on_msg(this._handle_comm_msg.bind(this)),this.comm_live=!0):this.comm_live=!1},Object.defineProperty(e.prototype,"comm_live",{get:function(){return this._comm_live},set:function(t){this._comm_live=t,this.trigger("comm_live_update")},enumerable:!0,configurable:!0}),e.prototype.send=function(t,e,n){if(void 0!==this.comm){var i={method:"custom",content:t};this.comm.send(i,e,{},n)}},e.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),!this._closed){this._closed=!0,this.comm&&!t&&this.comm.close(),this.stopListening(),this.trigger("destroy",this),this.comm&&delete this.comm;var n=Object.keys(this.views).map((function(t){return e.views[t].then((function(t){return t.remove()}))}));return delete this.views,Promise.all(n).then((function(){}))}},e.prototype._handle_comm_closed=function(t){this.trigger("comm:close"),this.close(!0)},e.prototype._handle_comm_msg=function(t){var e=this,n=t.content.data,i=n.method;switch(i){case"update":case"echo_update":return this.state_change=this.state_change.then((function(){var r,o,s,a=n.state,l=null!=(r=n.buffer_paths)?r:[],u=(s=null===(o=t.buffers)||void 0===o?void 0:o.slice(0,l.length),null!=s?s:[]).map((function(t){return t instanceof DataView?t:new DataView(t instanceof ArrayBuffer?t:t.buffer)}));if(b(a,l,u),t.parent_header&&"echo_update"===i){var c=t.parent_header.msg_id;Object.keys(a).filter((function(t){return e._expectedEchoMsgIds.hasOwnProperty(t)})).forEach((function(t){e._expectedEchoMsgIds[t]!==c?delete a[t]:(delete e._expectedEchoMsgIds[t],null!==e._msg_buffer&&Object.prototype.hasOwnProperty.call(e._msg_buffer,t)&&delete a[t])}))}return e.constructor._deserialize_state(a,e.widget_manager)})).then((function(t){e.set_state(t)})).catch(y("Could not process update msg for model id: "+this.model_id,!0)),this.state_change;case"custom":return this.trigger("msg:custom",n.content,t.buffers),Promise.resolve()}},e.prototype.set_state=function(t){this._state_lock=t;try{this.set(t)}catch(t){console.error("Error setting state: "+t.message)}finally{this._state_lock=null}},e.prototype.get_state=function(t){var e=this.attributes;if(t){var n=this.defaults,i="function"==typeof n?n.call(this):n,r={};return Object.keys(e).forEach((function(t){p(e[t],i[t])||(r[t]=e[t])})),r}return Y({},e)},e.prototype._handle_status=function(t){if(void 0!==this.comm&&"idle"===t.content.execution_state&&(this._pending_msgs--,null!==this._msg_buffer&&this._pending_msgs<1)){var e=this.send_sync_message(this._msg_buffer,this._msg_buffer_callbacks);this.rememberLastUpdateFor(e),this._msg_buffer=null,this._msg_buffer_callbacks=null}},e.prototype.callbacks=function(t){return this.widget_manager.callbacks(t)},e.prototype.set=function(t,e,n){var i=R.call(this,t,e,n);if(void 0!==this._buffered_state_diff){var r=this.changedAttributes()||{};if(this._state_lock)for(var o=0,s=Object.keys(this._state_lock);o<s.length;o++){var a=s[o];r[a]===this._state_lock[a]&&delete r[a]}this._buffered_state_diff=f(this._buffered_state_diff,r)}return i},e.prototype.sync=function(t,e,n){var i=this;if(void 0===n&&(n={}),void 0===this.comm)throw"Syncing error: no comm channel defined";var r="patch"===t?n.attrs:e.get_state(n.drop_defaults);if(this._state_lock)for(var o=0,s=Object.keys(this._state_lock);o<s.length;o++){var a=s[o];r[a]===this._state_lock[a]&&delete r[a]}Object.keys(r).forEach((function(t){i._attrsToUpdate[t]=!0}));var l=this.serialize(r);if(Object.keys(l).length>0){var u=n.callbacks||this.callbacks();if(this._pending_msgs>=1){switch(t){case"patch":this._msg_buffer=f(this._msg_buffer||{},l);break;case"update":case"create":this._msg_buffer=l;break;default:throw"unrecognized syncing method"}this._msg_buffer_callbacks=u}else{var c=this.send_sync_message(r,u);this.rememberLastUpdateFor(c)}}},e.prototype.rememberLastUpdateFor=function(t){var e=this;Object.keys(this._attrsToUpdate).forEach((function(n){e._expectedEchoMsgIds[n]=t})),this._attrsToUpdate={}},e.prototype.serialize=function(t){for(var e=this.constructor.serializers||{},n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];try{e[r]&&e[r].serialize?t[r]=e[r].serialize(t[r],this):t[r]=JSON.parse(JSON.stringify(t[r])),t[r]&&t[r].toJSON&&(t[r]=t[r].toJSON())}catch(t){throw console.error("Error serializing widget state attribute: ",r),t}}return t},e.prototype.send_sync_message=function(t,e){var n=this;if(void 0===e&&(e={}),!this.comm)return"";try{e.iopub=e.iopub||{};var i=e.iopub.status;e.iopub.status=function(t){n._handle_status(t),i&&i(t)};var r=_(t),o=this.comm.send({method:"update",state:r.state,buffer_paths:r.buffer_paths},e,{},r.buffers);return this._pending_msgs++,o}catch(t){console.error("Could not send widget sync message",t)}return""},e.prototype.save_changes=function(t){if(this.comm_live){var e={patch:!0};t&&(e.callbacks=t),this.save(this._buffered_state_diff,e),this._buffered_state_diff={}}},e.prototype.on_some_change=function(t,e,n){var i=this;this.on("change",(function(){t.some(i.hasChanged,i)&&e.apply(n,arguments)}),this)},e.prototype.toJSON=function(t){return"IPY_MODEL_"+this.model_id},e._deserialize_state=function(t,e){var n,i=this.serializers;if(i)for(var r in n={},t)i[r]&&i[r].deserialize?n[r]=i[r].deserialize(t[r],e):n[r]=t[r];else n=t;return v(n)},e}(F.Model),Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return J(e,t),e.prototype.defaults=function(){return f(t.prototype.defaults.call(this),{_dom_classes:[]})},e.serializers=Y(Y({},Z.serializers),{layout:{deserialize:G},style:{deserialize:G}}),e}(Z),tt=function(t){function e(e){return t.call(this,e)||this}return J(e,t),e.prototype.initialize=function(t){var e=this;this.listenTo(this.model,"change",(function(){var t=Object.keys(e.model.changedAttributes()||{});"_view_count"===t[0]&&1===t.length||e.update()})),this.options=t.options,this.once("remove",(function(){"number"==typeof e.model.get("_view_count")&&(e.model.set("_view_count",e.model.get("_view_count")-1),e.model.save_changes())})),this.once("displayed",(function(){"number"==typeof e.model.get("_view_count")&&(e.model.set("_view_count",e.model.get("_view_count")+1),e.model.save_changes())})),this.displayed=new Promise((function(t,n){e.once("displayed",t)}))},e.prototype.update=function(t){},e.prototype.render=function(){},e.prototype.create_child_view=function(t,e){return void 0===e&&(e={}),e=Y({parent:this},e),this.model.widget_manager.create_view(t,e).catch(y("Could not create child view",!0))},e.prototype.callbacks=function(){return this.model.callbacks(this)},e.prototype.send=function(t,e){this.model.send(t,this.callbacks(),e)},e.prototype.touch=function(){this.model.save_changes(this.callbacks())},e.prototype.remove=function(){return t.prototype.remove.call(this),this.trigger("remove"),this},e}(U),et=function(t){function e(e){var n=this,i=e.view;return delete e.view,(n=t.call(this,e)||this)._view=i,n}return J(e,t),e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},e.prototype.processMessage=function(e){t.prototype.processMessage.call(this,e),this._view.processPhosphorMessage(e)},e}(K.Widget),nt=function(t){function e(e){var n=this,i=e.view;return delete e.view,(n=t.call(this,e)||this)._view=i,n}return J(e,t),e.prototype.processMessage=function(e){t.prototype.processMessage.call(this,e),this._view.processPhosphorMessage(e)},e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},e}(K.Panel),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return J(e,t),e.prototype.initialize=function(e){var n=this;t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:_dom_classes",(function(t,e){var i=t.previous("_dom_classes");n.update_classes(i,e)})),this.layoutPromise=Promise.resolve(),this.listenTo(this.model,"change:layout",(function(t,e){n.setLayout(e,t.previous("layout"))})),this.stylePromise=Promise.resolve(),this.listenTo(this.model,"change:style",(function(t,e){n.setStyle(e,t.previous("style"))})),this.displayed.then((function(){n.update_classes([],n.model.get("_dom_classes")),n.setLayout(n.model.get("layout")),n.setStyle(n.model.get("style"))})),this._comm_live_update(),this.listenTo(this.model,"comm_live_update",(function(){n._comm_live_update()}))},e.prototype.setLayout=function(t,e){var n=this;t&&(this.layoutPromise=this.layoutPromise.then((function(e){return e&&(e.unlayout(),n.stopListening(e.model),e.remove()),n.create_child_view(t).then((function(t){return n.displayed.then((function(){return t.trigger("displayed"),n.listenTo(t.model,"change",(function(){$.c.postMessage(n.pWidget,K.Widget.ResizeMessage.UnknownSize)})),$.c.postMessage(n.pWidget,K.Widget.ResizeMessage.UnknownSize),t}))})).catch(y("Could not add LayoutView to DOMWidgetView",!0))})))},e.prototype.setStyle=function(t,e){var n=this;t&&(this.stylePromise=this.stylePromise.then((function(e){return e&&(e.unstyle(),n.stopListening(e.model),e.remove()),n.create_child_view(t).then((function(t){return n.displayed.then((function(){return t.trigger("displayed"),t}))})).catch(y("Could not add styleView to DOMWidgetView",!0))})))},e.prototype.update_classes=function(t,e,n){void 0===n&&(n=this.el),h(t,e).map((function(t){n.classList?n.classList.remove(t):n.setAttribute("class",n.getAttribute("class").replace(t,""))})),h(e,t).map((function(t){n.classList?n.classList.add(t):n.setAttribute("class",n.getAttribute("class").concat(" ",t))}))},e.prototype.update_mapped_classes=function(t,e,n){var i=this.model.previous(e),r=t[i]?t[i]:[],o=t[i=this.model.get(e)]?t[i]:[];this.update_classes(r,o,n||this.el)},e.prototype.set_mapped_classes=function(t,e,n){var i=this.model.get(e),r=t[i]?t[i]:[];this.update_classes([],r,n||this.el)},e.prototype._setElement=function(t){this.pWidget&&this.pWidget.dispose(),this.$el=t instanceof W.a?t:W()(t),this.el=this.$el[0],this.pWidget=new et({node:t,view:this})},e.prototype.remove=function(){return this.pWidget&&this.pWidget.dispose(),t.prototype.remove.call(this)},e.prototype.processPhosphorMessage=function(t){switch(t.type){case"after-attach":this.trigger("displayed")}},e.prototype._comm_live_update=function(){this.model.comm_live?this.pWidget.removeClass("jupyter-widgets-disconnected"):this.pWidget.addClass("jupyter-widgets-disconnected")},e}(tt),rt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ot={align_content:null,align_items:null,align_self:null,border:null,bottom:null,display:null,flex:null,flex_flow:null,height:null,justify_content:null,justify_items:null,left:null,margin:null,max_height:null,max_width:null,min_height:null,min_width:null,overflow:null,overflow_x:null,overflow_y:null,order:null,padding:null,right:null,top:null,visibility:null,width:null,object_fit:null,object_position:null,grid_auto_columns:null,grid_auto_flow:null,grid_auto_rows:null,grid_gap:null,grid_template_rows:null,grid_template_columns:null,grid_template_areas:null,grid_row:null,grid_column:null,grid_area:null},st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rt(e,t),e.prototype.defaults=function(){return f(t.prototype.defaults.call(this),{_model_name:"LayoutModel",_view_name:"LayoutView"},ot)},e}(Z),at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rt(e,t),e.prototype.initialize=function(e){this._traitNames=[],t.prototype.initialize.call(this,e);for(var n=0,i=Object.keys(ot);n<i.length;n++){var r=i[n];this.registerTrait(r)}},e.prototype.registerTrait=function(t){var e=this;if(this._traitNames.push(t),"overflow_x"===t||"overflow_y"===t)return this.listenTo(this.model,"change:"+t,(function(n,i){e.handleOverflowChange(t,i)})),void this.handleOverflowChange(t,this.model.get(t));this.listenTo(this.model,"change:"+t,(function(n,i){e.handleChange(t,i)})),this.handleChange(t,this.model.get(t))},e.prototype.css_name=function(t){return t.replace(/_/g,"-")},e.prototype.handleChange=function(t,e){var n=this.options.parent;n?null===e?n.el.style.removeProperty(this.css_name(t)):n.el.style[this.css_name(t)]=e:console.warn("Style not applied because a parent view does not exist")},e.prototype.handleOverflowChange=function(t,e){var n=this.options.parent;n?null===e?null===this.model.get("overflow")&&n.el.style.removeProperty(this.css_name(t)):n.el.style[this.css_name(t)]=e:console.warn("Style not applied because a parent view does not exist")},e.prototype.unlayout=function(){var t=this,e=this.options.parent;this._traitNames.forEach((function(n){e?e.el.style.removeProperty(t.css_name(n)):console.warn("Style not removed because a parent view does not exist")}),this)},e}(tt),lt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.defaults=function(){var e=this.constructor;return f(t.prototype.defaults.call(this),{_model_name:"StyleModel",_view_name:"StyleView"},Object.keys(e.styleProperties).reduce((function(t,n){return t[n]=e.styleProperties[n].default,t}),{}))},e.styleProperties={},e}(Z),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lt(e,t),e.prototype.initialize=function(e){this._traitNames=[],t.prototype.initialize.call(this,e);for(var n=this.model.constructor,i=0,r=Object.keys(n.styleProperties);i<r.length;i++){var o=r[i];this.registerTrait(o)}this.style()},e.prototype.registerTrait=function(t){var e=this;this._traitNames.push(t),this.listenTo(this.model,"change:"+t,(function(n,i){e.handleChange(t,i)}))},e.prototype.handleChange=function(t,e){var n=this.options.parent;if(n){var i=this.model.constructor.styleProperties,r=i[t].attribute,o=i[t].selector,s=o?n.el.querySelectorAll(o):[n.el];if(null===e)for(var a=0;a!==s.length;++a)s[a].style.removeProperty(r);else for(a=0;a!==s.length;++a)s[a].style[r]=e}else console.warn("Style not applied because a parent view does not exist")},e.prototype.style=function(){for(var t=0,e=this._traitNames;t<e.length;t++){var n=e[t];this.handleChange(n,this.model.get(n))}},e.prototype.unstyle=function(){var t=this.options.parent,e=this.model.constructor.styleProperties;this._traitNames.forEach((function(n){if(t)for(var i=e[n].attribute,r=e[n].selector,o=r?t.el.querySelectorAll(r):[t.el],s=0;s!==o.length;++s)o[s].style.removeProperty(i);else console.warn("Style not removed because a parent view does not exist")}),this)},e}(tt),dt=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((i=i.apply(t,e||[])).next())}))},ht=function(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};!function(t){!function(t){var e=function(){function t(t){this.targets=Object.create(null),this.comms=Object.create(null),this.kernel=null,this.jsServicesKernel=null,this.init_kernel(t)}return t.prototype.init_kernel=function(t){this.kernel=t,this.jsServicesKernel=t},t.prototype.new_comm=function(t,e,i,r,o,s){return dt(this,void 0,void 0,(function(){var a,l;return ht(this,(function(u){return a=this.jsServicesKernel.createComm(t,o),l=new n(a),this.register_comm(l),l.open(e,i,r,s),[2,l]}))}))},t.prototype.register_target=function(t,e){var i=this,r=this.jsServicesKernel.registerCommTarget(t,(function(t,r){var o=new n(t);i.register_comm(o);try{return e(o,r)}catch(t){o.close(),console.error(t),console.error(new Error("Exception opening new comm"))}}));this.targets[t]=r},t.prototype.unregister_target=function(t,e){this.targets[t].dispose(),delete this.targets[t]},t.prototype.register_comm=function(t){return this.comms[t.comm_id]=Promise.resolve(t),t.kernel=this.kernel,t.comm_id},t}();t.CommManager=e;var n=function(){function t(t){this.jsServicesComm=null,this.kernel=null,this.jsServicesComm=t}return Object.defineProperty(t.prototype,"comm_id",{get:function(){return this.jsServicesComm.commId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target_name",{get:function(){return this.jsServicesComm.targetName},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e,n,i){var r=this.jsServicesComm.open(t,n,i);return this._hookupCallbacks(r,e),r.msg.header.msg_id},t.prototype.send=function(t,e,n,i){var r=this.jsServicesComm.send(t,n,i);return this._hookupCallbacks(r,e),r.msg.header.msg_id},t.prototype.close=function(t,e,n,i){var r=this.jsServicesComm.close(t,n,i);return this._hookupCallbacks(r,e),r.msg.header.msg_id},t.prototype.on_msg=function(t){this.jsServicesComm.onMsg=t.bind(this)},t.prototype.on_close=function(t){this.jsServicesComm.onClose=t.bind(this)},t.prototype._hookupCallbacks=function(t,e){e&&(t.onReply=function(t){e.shell&&e.shell.reply&&e.shell.reply(t)},t.onStdin=function(t){e.input&&e.input(t)},t.onIOPub=function(t){if(e.iopub)if(e.iopub.status&&"status"===t.header.msg_type)e.iopub.status(t);else if(e.iopub.clear_output&&"clear_output"===t.header.msg_type)e.iopub.clear_output(t);else if(e.iopub.output)switch(t.header.msg_type){case"display_data":case"execute_result":case"stream":case"error":e.iopub.output(t)}})},t}();t.Comm=n}(t.services||(t.services={}))}(X||(X={}));var pt=function(){function t(t,e,n){this.initialize(t,e,n)}return t.prototype.initialize=function(t,e,n){this._handler_context=n||this,this._models=[],this.views=[],this._create_view=t,this._remove_view=e||function(t){t.remove()}},t.prototype.update=function(t,e,n,i){var r=n||this._remove_view,o=e||this._create_view;i=i||this._handler_context;for(var s=0;s<t.length&&!(s>=this._models.length||t[s]!==this._models[s]);s++);for(var a=s,l=this.views.splice(a,this.views.length-a),u=0;u<l.length;u++)l[u].then((function(t){r.call(i,t)}));for(;s<t.length;s++)this.views.push(Promise.resolve(o.call(i,t[s],s)));return this._models=t.slice(),Promise.all(this.views)},t.prototype.remove=function(){var t=this;return Promise.all(this.views).then((function(e){e.forEach((function(e){return t._remove_view.call(t._handler_context,e)})),t.views=[],t._models=[]}))},t.prototype.dispose=function(){this.views=null,this._models=null},t}(),ft=new o.d("jupyter.extensions.jupyterWidgetRegistry")},function(t,e,n){"use strict";var i,r,o,s,a;n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),function(t){t.copyText=function(t){var e=document.body,n=function(i){i.preventDefault(),i.stopPropagation(),i.clipboardData.setData("text",t),e.removeEventListener("copy",n,!0)};e.addEventListener("copy",n,!0),document.execCommand("copy")}}(i||(i={})),function(t){t.boxSizing=function(t){var e=window.getComputedStyle(t),n=parseFloat(e.borderTopWidth)||0,i=parseFloat(e.borderLeftWidth)||0,r=parseFloat(e.borderRightWidth)||0,o=parseFloat(e.borderBottomWidth)||0,s=parseFloat(e.paddingTop)||0,a=parseFloat(e.paddingLeft)||0,l=parseFloat(e.paddingRight)||0,u=parseFloat(e.paddingBottom)||0;return{borderTop:n,borderLeft:i,borderRight:r,borderBottom:o,paddingTop:s,paddingLeft:a,paddingRight:l,paddingBottom:u,horizontalSum:i+a+l+r,verticalSum:n+s+u+o}},t.sizeLimits=function(t){var e=window.getComputedStyle(t),n=parseFloat(e.minWidth)||0,i=parseFloat(e.minHeight)||0,r=parseFloat(e.maxWidth)||1/0,o=parseFloat(e.maxHeight)||1/0;return{minWidth:n,minHeight:i,maxWidth:r=Math.max(n,r),maxHeight:o=Math.max(i,o)}},t.hitTest=function(t,e,n){var i=t.getBoundingClientRect();return e>=i.left&&e<i.right&&n>=i.top&&n<i.bottom},t.scrollIntoViewIfNeeded=function(t,e){var n=t.getBoundingClientRect(),i=e.getBoundingClientRect();i.top<=n.top&&i.bottom>=n.bottom||(i.top<n.top&&i.height<=n.height||i.bottom>n.bottom&&i.height>=n.height?t.scrollTop-=n.top-i.top:(i.top<n.top&&i.height>n.height||i.bottom>n.bottom&&i.height<n.height)&&(t.scrollTop-=n.bottom-i.bottom))}}(r||(r={})),function(t){t.IS_MAC=!!navigator.platform.match(/Mac/i),t.IS_WIN=!!navigator.platform.match(/Win/i),t.IS_IE=/Trident/.test(navigator.userAgent),t.IS_EDGE=/Edge/.test(navigator.userAgent),t.accelKey=function(e){return t.IS_MAC?e.metaKey:e.ctrlKey}}(o||(o={})),function(t){t.calculateSpecificity=function(t){if(t in a.specificityCache)return a.specificityCache[t];var e=a.calculateSingle(t);return a.specificityCache[t]=e},t.isValid=function(t){if(t in a.validityCache)return a.validityCache[t];var e=!0;try{a.testElem.querySelector(t)}catch(t){e=!1}return a.validityCache[t]=e},t.matches=function(t,e){return a.protoMatchFunc.call(t,e)}}(s||(s={})),function(t){var e;t.specificityCache=Object.create(null),t.validityCache=Object.create(null),t.testElem=document.createElement("div"),t.protoMatchFunc=(e=Element.prototype).matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var e=this.ownerDocument?this.ownerDocument.querySelectorAll(t):[];return-1!==Array.prototype.indexOf.call(e,this)},t.calculateSingle=function(t){var e=0,c=0,d=0;function h(e){var n=t.match(e);return null!==n&&(t=t.slice(n[0].length),!0)}for(t=(t=t.split(",",1)[0]).replace(u," $1 ");t.length>0;)if(h(n))e++;else if(h(i))c++;else if(h(r))c++;else if(h(s))d++;else if(h(a))c++;else if(h(o))d++;else if(!h(l))return 0;return(e=Math.min(e,255))<<16|(c=Math.min(c,255))<<8|(d=Math.min(d,255))};var n=/^#[^\s\+>~#\.\[:]+/,i=/^\.[^\s\+>~#\.\[:]+/,r=/^\[[^\]]+\]/,o=/^[^\s\+>~#\.\[:]+/,s=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,a=/^:[^\s\+>~#\.\[:]+/,l=/^[\s\+>~\*]+/,u=/:not\(([^\)]+)\)/g}(a||(a={}))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var i,r=n(0),o=function(){function t(t){this.sender=t}return t.prototype.connect=function(t,e){return i.connect(this,t,e)},t.prototype.disconnect=function(t,e){return i.disconnect(this,t,e)},t.prototype.emit=function(t){i.emit(this,t)},t}();!function(t){t.disconnectBetween=function(t,e){i.disconnectBetween(t,e)},t.disconnectSender=function(t){i.disconnectSender(t)},t.disconnectReceiver=function(t){i.disconnectReceiver(t)},t.disconnectAll=function(t){i.disconnectAll(t)},t.clearData=function(t){i.disconnectAll(t)},t.getExceptionHandler=function(){return i.exceptionHandler},t.setExceptionHandler=function(t){var e=i.exceptionHandler;return i.exceptionHandler=t,e}}(o||(o={})),function(e){function n(t){var e=o.get(t);e&&0!==e.length&&(Object(r.e)(e,(function(t){if(t.signal){var e=t.thisArg||t.slot;t.signal=null,d(s.get(e))}})),d(e))}function i(t){var e=s.get(t);e&&0!==e.length&&(Object(r.e)(e,(function(t){if(t.signal){var e=t.signal.sender;t.signal=null,d(o.get(e))}})),d(e))}e.exceptionHandler=function(t){console.error(t)},e.connect=function(t,e,n){n=n||void 0;var i=o.get(t.sender);if(i||(i=[],o.set(t.sender,i)),u(i,t,e,n))return!1;var r=n||e,a=s.get(r);a||(a=[],s.set(r,a));var l={signal:t,slot:e,thisArg:n};return i.push(l),a.push(l),!0},e.disconnect=function(t,e,n){n=n||void 0;var i=o.get(t.sender);if(!i||0===i.length)return!1;var r=u(i,t,e,n);if(!r)return!1;var a=n||e,l=s.get(a);return r.signal=null,d(i),d(l),!0},e.disconnectBetween=function(t,e){var n=o.get(t);if(n&&0!==n.length){var i=s.get(e);i&&0!==i.length&&(Object(r.e)(i,(function(e){e.signal&&e.signal.sender===t&&(e.signal=null)})),d(n),d(i))}},e.disconnectSender=n,e.disconnectReceiver=i,e.disconnectAll=function(t){n(t),i(t)},e.emit=function(t,e){var n=o.get(t.sender);if(n&&0!==n.length)for(var i=0,r=n.length;i<r;++i){var s=n[i];s.signal===t&&c(s,e)}};var o=new WeakMap,s=new WeakMap,a=new Set,l="function"==typeof requestAnimationFrame?requestAnimationFrame:t;function u(t,e,n,i){return Object(r.i)(t,(function(t){return t.signal===e&&t.slot===n&&t.thisArg===i}))}function c(t,n){var i=t.signal,r=t.slot,o=t.thisArg;try{r.call(o,i.sender,n)}catch(t){e.exceptionHandler(t)}}function d(t){0===a.size&&l(h),a.add(t)}function h(){a.forEach(p),a.clear()}function p(t){r.a.removeAllWhere(t,f)}function f(t){return null===t.signal}}(i||(i={}))}).call(this,n(26).setImmediate)},function(t,e,n){"use strict";n.r(e),n.d(e,"BoxEngine",(function(){return L})),n.d(e,"BoxLayout",(function(){return Y})),n.d(e,"BoxPanel",(function(){return Q})),n.d(e,"BoxSizer",(function(){return I})),n.d(e,"CommandPalette",(function(){return it})),n.d(e,"ContextMenu",(function(){return at})),n.d(e,"DockLayout",(function(){return ut})),n.d(e,"DockPanel",(function(){return pt})),n.d(e,"FocusTracker",(function(){return gt})),n.d(e,"GridLayout",(function(){return vt})),n.d(e,"Layout",(function(){return V})),n.d(e,"LayoutItem",(function(){return U})),n.d(e,"Menu",(function(){return ot})),n.d(e,"MenuBar",(function(){return bt})),n.d(e,"Panel",(function(){return X})),n.d(e,"PanelLayout",(function(){return J})),n.d(e,"ScrollBar",(function(){return wt})),n.d(e,"SingletonLayout",(function(){return jt})),n.d(e,"SplitLayout",(function(){return Et})),n.d(e,"SplitPanel",(function(){return Mt})),n.d(e,"StackedLayout",(function(){return At})),n.d(e,"StackedPanel",(function(){return St})),n.d(e,"TabBar",(function(){return dt})),n.d(e,"TabPanel",(function(){return Ot})),n.d(e,"Title",(function(){return N})),n.d(e,"Widget",(function(){return W}));var i,r,o,s=n(0),a=n(4),l=n(1),u=function(){function t(t){this._pid=i.nextPID(),this.name=t.name,this._create=t.create,this._coerce=t.coerce||null,this._compare=t.compare||null,this._changed=t.changed||null}return t.prototype.get=function(t){var e=i.ensureMap(t);return this._pid in e?e[this._pid]:e[this._pid]=this._createValue(t)},t.prototype.set=function(t,e){var n,r=i.ensureMap(t);n=this._pid in r?r[this._pid]:r[this._pid]=this._createValue(t);var o=this._coerceValue(t,e);this._maybeNotify(t,n,r[this._pid]=o)},t.prototype.coerce=function(t){var e,n=i.ensureMap(t);e=this._pid in n?n[this._pid]:n[this._pid]=this._createValue(t);var r=this._coerceValue(t,e);this._maybeNotify(t,e,n[this._pid]=r)},t.prototype._createValue=function(t){return(0,this._create)(t)},t.prototype._coerceValue=function(t,e){var n=this._coerce;return n?n(t,e):e},t.prototype._compareValue=function(t,e){var n=this._compare;return n?n(t,e):t===e},t.prototype._maybeNotify=function(t,e,n){var i=this._changed;i&&!this._compareValue(e,n)&&i(t,e,n)},t}();!function(t){t.clearData=function(t){i.ownerData.delete(t)}}(u||(u={})),(r=i||(i={})).ownerData=new WeakMap,r.nextPID=(o=0,function(){return"pid-"+(""+Math.random()).slice(2)+"-"+o++}),r.ensureMap=function(t){var e=r.ownerData.get(t);return e||(e=Object.create(null),r.ownerData.set(t,e),e)};var c=n(5),d=n(7),h=function(t,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function p(t,e){function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var f,m=function(){function t(t){this._fn=t}return Object.defineProperty(t.prototype,"isDisposed",{get:function(){return!this._fn},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){if(this._fn){var t=this._fn;this._fn=null,t()}},t}(),g=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._disposed=new c.a(e),e}p(e,t),Object.defineProperty(e.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._disposed.emit(void 0),c.a.clearData(this))}}(m),function(){function t(){this._isDisposed=!1,this._items=new Set}return Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._items.forEach((function(t){t.dispose()})),this._items.clear())},t.prototype.contains=function(t){return this._items.has(t)},t.prototype.add=function(t){this._items.add(t)},t.prototype.remove=function(t){this._items.delete(t)},t.prototype.clear=function(){this._items.clear()},t}());(f=g||(g={})).from=function(t){var e=new f;return Object(s.e)(t,(function(t){e.add(t)})),e};var v,y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._disposed=new c.a(e),e}return p(e,t),Object.defineProperty(e.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._disposed.emit(void 0),c.a.clearData(this))},e}(g);function b(){return w.keyboardLayout}(v=y||(y={})).from=function(t){var e=new v;return Object(s.e)(t,(function(t){e.add(t)})),e};var _=function(){function t(e,n){this.name=e,this._codes=n,this._keys=t.extractKeys(n)}return t.prototype.keys=function(){return Object.keys(this._keys)},t.prototype.isValidKey=function(t){return t in this._keys},t.prototype.keyForKeydownEvent=function(t){return this._codes[t.keyCode]||""},t}();!function(t){t.extractKeys=function(t){var e=Object.create(null);for(var n in t)e[t[n]]=!0;return e}}(_||(_={}));var w,x=new _("en-us",{8:"Backspace",9:"Tab",13:"Enter",19:"Pause",27:"Escape",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",93:"ContextMenu",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"});!function(t){t.keyboardLayout=x}(w||(w={}));var C,j=function(){function t(){this._timerID=0,this._replaying=!1,this._keystrokes=[],this._keydownEvents=[],this._keyBindings=[],this._exactKeyMatch=null,this._commands=Object.create(null),this._commandChanged=new c.a(this),this._commandExecuted=new c.a(this),this._keyBindingChanged=new c.a(this)}return Object.defineProperty(t.prototype,"commandChanged",{get:function(){return this._commandChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commandExecuted",{get:function(){return this._commandExecuted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyBindingChanged",{get:function(){return this._keyBindingChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyBindings",{get:function(){return this._keyBindings},enumerable:!0,configurable:!0}),t.prototype.listCommands=function(){return Object.keys(this._commands)},t.prototype.hasCommand=function(t){return t in this._commands},t.prototype.addCommand=function(t,e){var n=this;if(t in this._commands)throw new Error("Command '"+t+"' already registered.");return this._commands[t]=C.createCommand(e),this._commandChanged.emit({id:t,type:"added"}),new m((function(){delete n._commands[t],n._commandChanged.emit({id:t,type:"removed"})}))},t.prototype.notifyCommandChanged=function(t){if(void 0!==t&&!(t in this._commands))throw new Error("Command '"+t+"' is not registered.");this._commandChanged.emit({id:t,type:t?"changed":"many-changed"})},t.prototype.label=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return n?n.label.call(void 0,e):""},t.prototype.mnemonic=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return n?n.mnemonic.call(void 0,e):-1},t.prototype.icon=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return n?n.icon.call(void 0,e):""},t.prototype.iconClass=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return n?n.iconClass.call(void 0,e):""},t.prototype.iconLabel=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return n?n.iconLabel.call(void 0,e):""},t.prototype.caption=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return n?n.caption.call(void 0,e):""},t.prototype.usage=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return n?n.usage.call(void 0,e):""},t.prototype.className=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return n?n.className.call(void 0,e):""},t.prototype.dataset=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return n?n.dataset.call(void 0,e):{}},t.prototype.isEnabled=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return!!n&&n.isEnabled.call(void 0,e)},t.prototype.isToggled=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return!!n&&n.isToggled.call(void 0,e)},t.prototype.isToggleable=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return!!n&&n.isToggleable},t.prototype.isVisible=function(t,e){void 0===e&&(e=d.a.emptyObject);var n=this._commands[t];return!!n&&n.isVisible.call(void 0,e)},t.prototype.execute=function(t,e){void 0===e&&(e=d.a.emptyObject);var n,i=this._commands[t];if(!i)return Promise.reject(new Error("Command '"+t+"' not registered."));try{n=i.execute.call(void 0,e)}catch(t){n=Promise.reject(t)}var r=Promise.resolve(n);return this._commandExecuted.emit({id:t,args:e,result:r}),r},t.prototype.addKeyBinding=function(t){var e=this,n=C.createKeyBinding(t);return this._keyBindings.push(n),this._keyBindingChanged.emit({binding:n,type:"added"}),new m((function(){s.a.removeFirstOf(e._keyBindings,n),e._keyBindingChanged.emit({binding:n,type:"removed"})}))},t.prototype.processKeydownEvent=function(e){if(!this._replaying){var n=t.keystrokeForKeydownEvent(e);if(!n)return this._replayKeydownEvents(),void this._clearPendingState();this._keystrokes.push(n);var i=C.matchKeyBinding(this._keyBindings,this._keystrokes,e),r=i.exact,o=i.partial;if(!r&&!o)return this._replayKeydownEvents(),void this._clearPendingState();if(e.preventDefault(),e.stopPropagation(),r&&!o)return this._executeKeyBinding(r),void this._clearPendingState();r&&(this._exactKeyMatch=r),this._keydownEvents.push(e),this._startTimer()}},t.prototype._startTimer=function(){var t=this;this._clearTimer(),this._timerID=window.setTimeout((function(){t._onPendingTimeout()}),C.CHORD_TIMEOUT)},t.prototype._clearTimer=function(){0!==this._timerID&&(clearTimeout(this._timerID),this._timerID=0)},t.prototype._replayKeydownEvents=function(){0!==this._keydownEvents.length&&(this._replaying=!0,this._keydownEvents.forEach(C.replayKeyEvent),this._replaying=!1)},t.prototype._executeKeyBinding=function(t){var e=t.command,n=t.args;if(this.hasCommand(e)&&this.isEnabled(e,n))this.execute(e,n);else{var i=this.hasCommand(e)?"enabled":"registered",r="Cannot execute key binding '"+t.keys.join(", ")+"':",o="command '"+e+"' is not "+i+".";console.warn(r+" "+o)}},t.prototype._clearPendingState=function(){this._clearTimer(),this._exactKeyMatch=null,this._keystrokes.length=0,this._keydownEvents.length=0},t.prototype._onPendingTimeout=function(){this._timerID=0,this._exactKeyMatch?this._executeKeyBinding(this._exactKeyMatch):this._replayKeydownEvents(),this._clearPendingState()},t}();!function(t){function e(t){for(var e="",n=!1,i=!1,r=!1,o=!1,s=0,l=t.split(/\s+/);s<l.length;s++){var u=l[s];"Accel"===u?a.b.IS_MAC?i=!0:r=!0:"Alt"===u?n=!0:"Cmd"===u?i=!0:"Ctrl"===u?r=!0:"Shift"===u?o=!0:u.length>0&&(e=u)}return{cmd:i,ctrl:r,alt:n,shift:o,key:e}}function n(t){var n="",i=e(t);return i.ctrl&&(n+="Ctrl "),i.alt&&(n+="Alt "),i.shift&&(n+="Shift "),i.cmd&&a.b.IS_MAC&&(n+="Cmd "),n+i.key}t.parseKeystroke=e,t.normalizeKeystroke=n,t.normalizeKeys=function(t){return(a.b.IS_WIN?t.winKeys||t.keys:a.b.IS_MAC?t.macKeys||t.keys:t.linuxKeys||t.keys).map(n)},t.formatKeystroke=function(t){var n="",i=e(t);return a.b.IS_MAC?(i.ctrl&&(n+="⌃ "),i.alt&&(n+="⌥ "),i.shift&&(n+="⇧ "),i.cmd&&(n+="⌘ ")):(i.ctrl&&(n+="Ctrl+"),i.alt&&(n+="Alt+"),i.shift&&(n+="Shift+")),n+i.key},t.keystrokeForKeydownEvent=function(t){var e=b().keyForKeydownEvent(t);if(!e)return"";var n="";return t.ctrlKey&&(n+="Ctrl "),t.altKey&&(n+="Alt "),t.shiftKey&&(n+="Shift "),t.metaKey&&a.b.IS_MAC&&(n+="Cmd "),n+e}}(j||(j={})),function(t){t.CHORD_TIMEOUT=1e3,t.createCommand=function(t){var a,u;return t.icon&&"string"!=typeof t.icon?(u=l(t.iconClass,e),a=l(t.icon,s)):a=u=l(t.iconClass||t.icon,e),{execute:t.execute,label:l(t.label,e),mnemonic:l(t.mnemonic,n),icon:a,iconClass:u,iconLabel:l(t.iconLabel,e),caption:l(t.caption,e),usage:l(t.usage,e),className:l(t.className,e),dataset:l(t.dataset,o),isEnabled:t.isEnabled||i,isToggled:t.isToggled||r,isToggleable:t.isToggleable||!!t.isToggled,isVisible:t.isVisible||i}},t.createKeyBinding=function(t){return{keys:j.normalizeKeys(t),selector:u(t),command:t.command,args:t.args||d.a.emptyObject}},t.matchKeyBinding=function(t,e,n){for(var i=null,r=!1,o=1/0,s=0,l=0,u=t.length;l<u;++l){var d=t[l],p=c(d.keys,e);if(0!==p)if(2!==p){var f=h(d.selector,n);if(!(-1===f||f>o)){var m=a.c.calculateSpecificity(d.selector);(!i||f<o||m>=s)&&(i=d,o=f,s=m)}}else r||-1===h(d.selector,n)||(r=!0)}return{exact:i,partial:r}},t.replayKeyEvent=function(t){t.target.dispatchEvent(function(t){var e=document.createEvent("Event"),n=t.bubbles||!0,i=t.cancelable||!0;return e.initEvent(t.type||"keydown",n,i),e.key=t.key||"",e.keyCode=t.keyCode||0,e.which=t.keyCode||0,e.ctrlKey=t.ctrlKey||!1,e.altKey=t.altKey||!1,e.shiftKey=t.shiftKey||!1,e.metaKey=t.metaKey||!1,e.view=t.view||window,e}(t))};var e=function(){return""},n=function(){return-1},i=function(){return!0},r=function(){return!1},o=function(){return{}},s=function(){};function l(t,e){return void 0===t?e:"function"==typeof t?t:function(){return t}}function u(t){if(-1!==t.selector.indexOf(","))throw new Error("Selector cannot contain commas: "+t.selector);if(!a.c.isValid(t.selector))throw new Error("Invalid selector: "+t.selector);return t.selector}function c(t,e){if(t.length<e.length)return 0;for(var n=0,i=e.length;n<i;++n)if(t[n]!==e[n])return 0;return t.length>e.length?2:1}function h(t,e){for(var n=e.target,i=e.currentTarget,r=0;null!==n;n=n.parentElement,++r){if(n.hasAttribute("data-lm-suppress-shortcuts"))return-1;if(n.hasAttribute("data-p-suppress-shortcuts"))return-1;if(a.c.matches(n,t))return r;if(n===i)return-1}return-1}}(C||(C={}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var E=function(t,e){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var T,M,k,A=function(t){this.type="text",this.content=t},S=function(t,e,n,i){this.type="element",this.tag=t,this.attrs=e,this.children=n,this.renderer=i};!function(t){function e(e,n,i){return t.call(this,e,n,[],i||void 0)||this}(function(t,e){function n(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(e,t)}(S);function D(t){for(var e,n={},i=[],r=1,o=arguments.length;r<o;++r){var s=arguments[r];"string"==typeof s?i.push(new A(s)):s instanceof A||s instanceof S?i.push(s):s instanceof Array?a(i,s):1!==r&&2!==r||!s||"object"!=typeof s||("render"in s?e=s:n=s)}return new S(t,n,i,e);function a(t,e){for(var n=0,i=e;n<i.length;n++){var r=i[n];"string"==typeof r?t.push(new A(r)):(r instanceof A||r instanceof S)&&t.push(r)}}}(T=D||(D={})).a=T.bind(void 0,"a"),T.abbr=T.bind(void 0,"abbr"),T.address=T.bind(void 0,"address"),T.area=T.bind(void 0,"area"),T.article=T.bind(void 0,"article"),T.aside=T.bind(void 0,"aside"),T.audio=T.bind(void 0,"audio"),T.b=T.bind(void 0,"b"),T.bdi=T.bind(void 0,"bdi"),T.bdo=T.bind(void 0,"bdo"),T.blockquote=T.bind(void 0,"blockquote"),T.br=T.bind(void 0,"br"),T.button=T.bind(void 0,"button"),T.canvas=T.bind(void 0,"canvas"),T.caption=T.bind(void 0,"caption"),T.cite=T.bind(void 0,"cite"),T.code=T.bind(void 0,"code"),T.col=T.bind(void 0,"col"),T.colgroup=T.bind(void 0,"colgroup"),T.data=T.bind(void 0,"data"),T.datalist=T.bind(void 0,"datalist"),T.dd=T.bind(void 0,"dd"),T.del=T.bind(void 0,"del"),T.dfn=T.bind(void 0,"dfn"),T.div=T.bind(void 0,"div"),T.dl=T.bind(void 0,"dl"),T.dt=T.bind(void 0,"dt"),T.em=T.bind(void 0,"em"),T.embed=T.bind(void 0,"embed"),T.fieldset=T.bind(void 0,"fieldset"),T.figcaption=T.bind(void 0,"figcaption"),T.figure=T.bind(void 0,"figure"),T.footer=T.bind(void 0,"footer"),T.form=T.bind(void 0,"form"),T.h1=T.bind(void 0,"h1"),T.h2=T.bind(void 0,"h2"),T.h3=T.bind(void 0,"h3"),T.h4=T.bind(void 0,"h4"),T.h5=T.bind(void 0,"h5"),T.h6=T.bind(void 0,"h6"),T.header=T.bind(void 0,"header"),T.hr=T.bind(void 0,"hr"),T.i=T.bind(void 0,"i"),T.iframe=T.bind(void 0,"iframe"),T.img=T.bind(void 0,"img"),T.input=T.bind(void 0,"input"),T.ins=T.bind(void 0,"ins"),T.kbd=T.bind(void 0,"kbd"),T.label=T.bind(void 0,"label"),T.legend=T.bind(void 0,"legend"),T.li=T.bind(void 0,"li"),T.main=T.bind(void 0,"main"),T.map=T.bind(void 0,"map"),T.mark=T.bind(void 0,"mark"),T.meter=T.bind(void 0,"meter"),T.nav=T.bind(void 0,"nav"),T.noscript=T.bind(void 0,"noscript"),T.object=T.bind(void 0,"object"),T.ol=T.bind(void 0,"ol"),T.optgroup=T.bind(void 0,"optgroup"),T.option=T.bind(void 0,"option"),T.output=T.bind(void 0,"output"),T.p=T.bind(void 0,"p"),T.param=T.bind(void 0,"param"),T.pre=T.bind(void 0,"pre"),T.progress=T.bind(void 0,"progress"),T.q=T.bind(void 0,"q"),T.rp=T.bind(void 0,"rp"),T.rt=T.bind(void 0,"rt"),T.ruby=T.bind(void 0,"ruby"),T.s=T.bind(void 0,"s"),T.samp=T.bind(void 0,"samp"),T.section=T.bind(void 0,"section"),T.select=T.bind(void 0,"select"),T.small=T.bind(void 0,"small"),T.source=T.bind(void 0,"source"),T.span=T.bind(void 0,"span"),T.strong=T.bind(void 0,"strong"),T.sub=T.bind(void 0,"sub"),T.summary=T.bind(void 0,"summary"),T.sup=T.bind(void 0,"sup"),T.table=T.bind(void 0,"table"),T.tbody=T.bind(void 0,"tbody"),T.td=T.bind(void 0,"td"),T.textarea=T.bind(void 0,"textarea"),T.tfoot=T.bind(void 0,"tfoot"),T.th=T.bind(void 0,"th"),T.thead=T.bind(void 0,"thead"),T.time=T.bind(void 0,"time"),T.title=T.bind(void 0,"title"),T.tr=T.bind(void 0,"tr"),T.track=T.bind(void 0,"track"),T.u=T.bind(void 0,"u"),T.ul=T.bind(void 0,"ul"),T.var_=T.bind(void 0,"var"),T.video=T.bind(void 0,"video"),T.wbr=T.bind(void 0,"wbr"),function(t){t.realize=function(t){return k.createDOMNode(t)},t.render=function(t,e){var n=k.hostMap.get(e)||[],i=k.asContentArray(t);k.hostMap.set(e,i),k.updateContent(e,n,i)}}(M||(M={})),function(t){function e(t){var n=arguments[1]||null,r=arguments[2]||null;if(n)n.insertBefore(e(t),r);else{if("text"===t.type)return document.createTextNode(t.content);if(i(n=document.createElement(t.tag),t.attrs),t.renderer)return t.renderer.render(n,{attrs:t.attrs,children:t.children}),n;for(var o=0,s=t.children.length;o<s;++o)e(t.children[o],n)}return n}t.hostMap=new WeakMap,t.asContentArray=function(t){return t?t instanceof Array?t:[t]:[]},t.createDOMNode=e,t.updateContent=function t(n,i,o){if(i!==o){for(var a=function(t,e){for(var n=t.firstChild,i=Object.create(null),r=0,o=e;r<o.length;r++){var s=o[r];"element"===s.type&&s.attrs.key&&(i[s.attrs.key]={vNode:s,element:n}),n=n.nextSibling}return i}(n,i),l=i.slice(),u=n.firstChild,c=o.length,d=0;d<c;++d)if(d>=l.length)e(o[d],n);else{var h=l[d],p=o[d];if(h!==p)if("text"!==h.type||"text"!==p.type)if("text"!==h.type&&"text"!==p.type)if(!h.renderer==!p.renderer){var f=p.attrs.key;if(f&&f in a){var m=a[f];m.vNode!==h&&(s.a.move(l,l.indexOf(m.vNode,d+1),d),n.insertBefore(m.element,u),h=m.vNode,u=m.element)}if(h!==p){var g=h.attrs.key;g&&g!==f?(s.a.insert(l,d,p),e(p,n,u)):h.tag===p.tag?(r(u,h.attrs,p.attrs),p.renderer?p.renderer.render(u,{attrs:p.attrs,children:p.children}):t(u,h.children,p.children),u=u.nextSibling):(s.a.insert(l,d,p),e(p,n,u))}else u=u.nextSibling}else s.a.insert(l,d,p),e(p,n,u);else s.a.insert(l,d,p),e(p,n,u);else u.textContent=p.content,u=u.nextSibling;else u=u.nextSibling}!function t(e,n,i,r){for(var o=n.length-1;o>=i;--o){var s=n[o],a=r?e.lastChild:e.childNodes[o];"text"===s.type||(s.renderer&&s.renderer.unrender?s.renderer.unrender(a,{attrs:s.attrs,children:s.children}):t(a,s.children,0,!1)),r&&e.removeChild(a)}}(n,l,c,!0)}};var n={key:!0,className:!0,htmlFor:!0,dataset:!0,style:!0};function i(t,e){for(var i in e)i in n||("on"===i.substr(0,2)?t[i]=e[i]:t.setAttribute(i,e[i]));void 0!==e.className&&t.setAttribute("class",e.className),void 0!==e.htmlFor&&t.setAttribute("for",e.htmlFor),e.dataset&&function(t,e){for(var n in e)t.setAttribute("data-"+n,e[n])}(t,e.dataset),e.style&&function(t,e){var n,i=t.style;for(n in e)i[n]=e[n]}(t,e.style)}function r(t,e,i){if(e!==i){var r;for(r in e)r in n||r in i||("on"===r.substr(0,2)?t[r]=null:t.removeAttribute(r));for(r in i)r in n||e[r]===i[r]||("on"===r.substr(0,2)?t[r]=i[r]:t.setAttribute(r,i[r]));e.className!==i.className&&(void 0!==i.className?t.setAttribute("class",i.className):t.removeAttribute("class")),e.htmlFor!==i.htmlFor&&(void 0!==i.htmlFor?t.setAttribute("for",i.htmlFor):t.removeAttribute("for")),e.dataset!==i.dataset&&function(t,e,n){for(var i in e)i in n||t.removeAttribute("data-"+i);for(var r in n)e[r]!==n[r]&&t.setAttribute("data-"+r,n[r])}(t,e.dataset||{},i.dataset||{}),e.style!==i.style&&function(t,e,n){var i,r=t.style;for(i in e)i in n||(r[i]="");for(i in n)e[i]!==n[i]&&(r[i]=n[i])}(t,e.style||{},i.style||{})}}}(k||(k={}));var O,P=function(){function t(t){var e=this;this._onScrollFrame=function(){if(e._scrollTarget){var t=e._scrollTarget,n=t.element,i=t.edge,r=t.distance,o=O.SCROLL_EDGE_SIZE-r,s=Math.pow(o/O.SCROLL_EDGE_SIZE,2),a=Math.max(1,Math.round(s*O.SCROLL_EDGE_SIZE));switch(i){case"top":n.scrollTop-=a;break;case"left":n.scrollLeft-=a;break;case"right":n.scrollLeft+=a;break;case"bottom":n.scrollTop+=a}requestAnimationFrame(e._onScrollFrame)}},this._disposed=!1,this._dropAction="none",this._override=null,this._currentTarget=null,this._currentElement=null,this._promise=null,this._scrollTarget=null,this._resolve=null,this.mimeData=t.mimeData,this.dragImage=t.dragImage||null,this.proposedAction=t.proposedAction||"copy",this.supportedActions=t.supportedActions||"all",this.source=t.source||null}return t.prototype.dispose=function(){if(!this._disposed){if(this._disposed=!0,this._currentTarget){var t=O.createMouseEvent("mouseup",-1,-1);O.dispatchDragLeave(this,this._currentTarget,null,t)}this._finalize("none")}},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),t.prototype.start=function(t,e){var n=this;if(this._disposed)return Promise.resolve("none");if(this._promise)return this._promise;this._addListeners(),this._attachDragImage(t,e),this._promise=new Promise((function(t,e){n._resolve=t}));var i=O.createMouseEvent("mousemove",t,e);return document.dispatchEvent(i),this._promise},t.prototype.handleEvent=function(t){switch(t.type){case"mousemove":this._evtMouseMove(t);break;case"mouseup":this._evtMouseUp(t);break;case"keydown":this._evtKeyDown(t);break;default:t.preventDefault(),t.stopPropagation()}},t.prototype.moveDragImage=function(t,e){if(this.dragImage){var n=this.dragImage.style;n.top=e+"px",n.left=t+"px"}},t.prototype._evtMouseMove=function(t){t.preventDefault(),t.stopPropagation(),this._updateCurrentTarget(t),this._updateDragScroll(t),this.moveDragImage(t.clientX,t.clientY)},t.prototype._evtMouseUp=function(t){if(t.preventDefault(),t.stopPropagation(),0===t.button)if(this._updateCurrentTarget(t),this._currentTarget){if("none"===this._dropAction)return O.dispatchDragLeave(this,this._currentTarget,null,t),void this._finalize("none");var e=O.dispatchDrop(this,this._currentTarget,t);this._finalize(e)}else this._finalize("none")},t.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation(),27===t.keyCode&&this.dispose()},t.prototype._addListeners=function(){document.addEventListener("mousedown",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("mouseup",this,!0),document.addEventListener("mouseenter",this,!0),document.addEventListener("mouseleave",this,!0),document.addEventListener("mouseover",this,!0),document.addEventListener("mouseout",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("keyup",this,!0),document.addEventListener("keypress",this,!0),document.addEventListener("contextmenu",this,!0)},t.prototype._removeListeners=function(){document.removeEventListener("mousedown",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("mouseenter",this,!0),document.removeEventListener("mouseleave",this,!0),document.removeEventListener("mouseover",this,!0),document.removeEventListener("mouseout",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("keyup",this,!0),document.removeEventListener("keypress",this,!0),document.removeEventListener("contextmenu",this,!0)},t.prototype._updateDragScroll=function(t){var e=O.findScrollTarget(t);(this._scrollTarget||e)&&(this._scrollTarget||setTimeout(this._onScrollFrame,500),this._scrollTarget=e)},t.prototype._updateCurrentTarget=function(t){var e=this._currentTarget,n=this._currentTarget,i=this._currentElement,r=document.elementFromPoint(t.clientX,t.clientY);this._currentElement=r,r!==i&&r!==n&&O.dispatchDragExit(this,n,r,t),r!==i&&r!==n&&(n=O.dispatchDragEnter(this,r,n,t)),n!==e&&(this._currentTarget=n,O.dispatchDragLeave(this,e,n,t));var o=O.dispatchDragOver(this,n,t);this._setDropAction(o)},t.prototype._attachDragImage=function(t,e){if(this.dragImage){this.dragImage.classList.add("lm-mod-drag-image"),this.dragImage.classList.add("p-mod-drag-image");var n=this.dragImage.style;n.pointerEvents="none",n.position="fixed",n.top=e+"px",n.left=t+"px",document.body.appendChild(this.dragImage)}},t.prototype._detachDragImage=function(){if(this.dragImage){var t=this.dragImage.parentNode;t&&t.removeChild(this.dragImage)}},t.prototype._setDropAction=function(e){if(e=O.validateAction(e,this.supportedActions),!this._override||this._dropAction!==e)switch(e){case"none":this._dropAction=e,this._override=t.overrideCursor("no-drop");break;case"copy":this._dropAction=e,this._override=t.overrideCursor("copy");break;case"link":this._dropAction=e,this._override=t.overrideCursor("alias");break;case"move":this._dropAction=e,this._override=t.overrideCursor("move")}},t.prototype._finalize=function(t){var e=this._resolve;this._removeListeners(),this._detachDragImage(),this._override&&(this._override.dispose(),this._override=null),this.mimeData.clear(),this._disposed=!0,this._dropAction="none",this._currentTarget=null,this._currentElement=null,this._scrollTarget=null,this._promise=null,this._resolve=null,e&&e(t)},t}();!function(t){t.overrideCursor=function(t){var n=++e;return document.body.style.cursor=t,document.body.classList.add("lm-mod-override-cursor"),document.body.classList.add("p-mod-override-cursor"),new m((function(){n===e&&(document.body.style.cursor="",document.body.classList.remove("lm-mod-override-cursor"),document.body.classList.remove("p-mod-override-cursor"))}))};var e=0}(P||(P={})),function(t){t.SCROLL_EDGE_SIZE=20,t.validateAction=function(t,i){return e[t]&n[i]?t:"none"},t.createMouseEvent=function(t,e,n){var i=document.createEvent("MouseEvent");return i.initMouseEvent(t,!0,!0,window,0,0,0,e,n,!1,!1,!1,!1,0,null),i},t.findScrollTarget=function(e){for(var n=e.clientX,i=e.clientY,r=document.elementFromPoint(n,i);r;r=r.parentElement){var o=r.hasAttribute("data-lm-dragscroll");if(o=o||r.hasAttribute("data-p-dragscroll")){var s=0,a=0;r===document.body&&(s=window.pageXOffset,a=window.pageYOffset);var l=r.getBoundingClientRect(),u=l.top+a,c=l.left+s,d=c+l.width,h=u+l.height;if(!(n<c||n>=d||i<u||i>=h)){var p=n-c+1,f=i-u+1,m=d-n,g=h-i,v=Math.min(p,f,m,g);if(!(v>t.SCROLL_EDGE_SIZE)){var y=void 0;switch(v){case g:y="bottom";break;case f:y="top";break;case m:y="right";break;case p:y="left";break;default:throw"unreachable"}var b=r.scrollWidth-r.clientWidth,_=r.scrollHeight-r.clientHeight,w=void 0;switch(y){case"top":w=_>0&&r.scrollTop>0;break;case"left":w=b>0&&r.scrollLeft>0;break;case"right":w=b>0&&r.scrollLeft<b;break;case"bottom":w=_>0&&r.scrollTop<_;break;default:throw"unreachable"}if(w)return{element:r,edge:y,distance:v}}}}}return null},t.dispatchDragEnter=function(t,e,n,r){if(!e)return null;var o=i("lm-dragenter",t,r,n),s=!e.dispatchEvent(o);return s?e:(o=i("p-dragenter",t,r,n),(s=!e.dispatchEvent(o))?e:e===document.body?n:(o=i("lm-dragenter",t,r,n),document.body.dispatchEvent(o),o=i("p-dragenter",t,r,n),document.body.dispatchEvent(o),document.body))},t.dispatchDragExit=function(t,e,n,r){if(e){var o=i("lm-dragexit",t,r,n);e.dispatchEvent(o),o=i("p-dragexit",t,r,n),e.dispatchEvent(o)}},t.dispatchDragLeave=function(t,e,n,r){if(e){var o=i("lm-dragleave",t,r,n);e.dispatchEvent(o),o=i("p-dragleave",t,r,n),e.dispatchEvent(o)}},t.dispatchDragOver=function(t,e,n){if(!e)return"none";var r=i("lm-dragover",t,n,null),o=!e.dispatchEvent(r);return o?r.dropAction:(r=i("p-dragover",t,n,null),(o=!e.dispatchEvent(r))?r.dropAction:"none")},t.dispatchDrop=function(t,e,n){if(!e)return"none";var r=i("lm-drop",t,n,null),o=!e.dispatchEvent(r);return o?r.dropAction:(r=i("p-drop",t,n,null),(o=!e.dispatchEvent(r))?r.dropAction:"none")};var e={none:0,copy:1,link:2,move:4},n={none:e.none,copy:e.copy,link:e.link,move:e.move,"copy-link":e.copy|e.link,"copy-move":e.copy|e.move,"link-move":e.link|e.move,all:e.copy|e.link|e.move};function i(t,e,n,i){var r=document.createEvent("MouseEvent");return r.initMouseEvent(t,!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,i),r.dropAction="none",r.mimeData=e.mimeData,r.proposedAction=e.proposedAction,r.supportedActions=e.supportedActions,r.source=e.source,r}}(O||(O={}));var L,I=function(){this.sizeHint=0,this.minSize=0,this.maxSize=1/0,this.stretch=1,this.size=0,this.done=!1};!function(t){t.calc=function(t,e){var n=t.length;if(0===n)return e;for(var i=0,r=0,o=0,s=0,a=0,l=0;l<n;++l){var u=(v=t[l]).minSize,c=v.maxSize,d=v.sizeHint;v.done=!1,v.size=Math.max(u,Math.min(d,c)),o+=v.size,i+=u,r+=c,v.stretch>0&&(s+=v.stretch,a++)}if(e===o)return 0;if(e<=i){for(l=0;l<n;++l){(v=t[l]).size=v.minSize}return e-i}if(e>=r){for(l=0;l<n;++l){(v=t[l]).size=v.maxSize}return e-r}var h=n;if(e<o){for(var p=o-e;a>0&&p>.01;){var f=p,m=s;for(l=0;l<n;++l){if(!(v=t[l]).done&&0!==v.stretch){var g=v.stretch*f/m;v.size-g<=v.minSize?(p-=v.size-v.minSize,s-=v.stretch,v.size=v.minSize,v.done=!0,h--,a--):(p-=g,v.size-=g)}}}for(;h>0&&p>.01;)for(g=p/h,l=0;l<n;++l){(v=t[l]).done||(v.size-g<=v.minSize?(p-=v.size-v.minSize,v.size=v.minSize,v.done=!0,h--):(p-=g,v.size-=g))}}else{for(p=e-o;a>0&&p>.01;)for(f=p,m=s,l=0;l<n;++l){if(!(v=t[l]).done&&0!==v.stretch){g=v.stretch*f/m;v.size+g>=v.maxSize?(p-=v.maxSize-v.size,s-=v.stretch,v.size=v.maxSize,v.done=!0,h--,a--):(p-=g,v.size+=g)}}for(;h>0&&p>.01;)for(g=p/h,l=0;l<n;++l){var v;(v=t[l]).done||(v.size+g>=v.maxSize?(p-=v.maxSize-v.size,v.size=v.maxSize,v.done=!0,h--):(p-=g,v.size+=g))}}return 0},t.adjust=function(t,e,n){0!==t.length&&0!==n&&(n>0?function(t,e,n){for(var i=0,r=0;r<=e;++r){var o=t[r];i+=o.maxSize-o.size}for(var s=0,a=(r=e+1,t.length);r<a;++r){o=t[r];s+=o.size-o.minSize}var l=n=Math.min(n,i,s);for(r=e;r>=0&&l>0;--r){o=t[r];(c=o.maxSize-o.size)>=l?(o.sizeHint=o.size+l,l=0):(o.sizeHint=o.size+c,l-=c)}var u=n;for(r=e+1,a=t.length;r<a&&u>0;++r){var c;o=t[r];(c=o.size-o.minSize)>=u?(o.sizeHint=o.size-u,u=0):(o.sizeHint=o.size-c,u-=c)}}(t,e,n):function(t,e,n){for(var i=0,r=e+1,o=t.length;r<o;++r){var s=t[r];i+=s.maxSize-s.size}var a=0;for(r=0;r<=e;++r){s=t[r];a+=s.size-s.minSize}var l=n=Math.min(n,i,a);for(r=e+1,o=t.length;r<o&&l>0;++r){s=t[r];(c=s.maxSize-s.size)>=l?(s.sizeHint=s.size+l,l=0):(s.sizeHint=s.size+c,l-=c)}var u=n;for(r=e;r>=0&&u>0;--r){var c;s=t[r];(c=s.size-s.minSize)>=u?(s.sizeHint=s.size-u,u=0):(s.sizeHint=s.size-c,u-=c)}}(t,e,-n))}}(L||(L={}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var z=function(t,e){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function B(t,e){function n(){this.constructor=t}z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var R,F=function(){return(F=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},N=function(){function t(t){this._label="",this._caption="",this._mnemonic=-1,this._iconClass="",this._iconLabel="",this._className="",this._closable=!1,this._changed=new c.a(this),this.owner=t.owner,void 0!==t.label&&(this._label=t.label),void 0!==t.mnemonic&&(this._mnemonic=t.mnemonic),void 0!==t.icon?"string"==typeof t.icon?(this._icon=null,this._iconClass=t.icon):this._icon=t.icon:this._icon=null,void 0!==t.iconClass&&(this._iconClass=t.iconClass),void 0!==t.iconLabel&&(this._iconLabel=t.iconLabel),void 0!==t.iconRenderer&&(this._icon=t.iconRenderer),void 0!==t.caption&&(this._caption=t.caption),void 0!==t.className&&(this._className=t.className),void 0!==t.closable&&(this._closable=t.closable),this._dataset=t.dataset||{}}return Object.defineProperty(t.prototype,"changed",{get:function(){return this._changed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(t){this._label!==t&&(this._label=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mnemonic",{get:function(){return this._mnemonic},set:function(t){this._mnemonic!==t&&(this._mnemonic=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return null===this._icon?this.iconClass:this._icon},set:function(t){if("string"==typeof t)this._icon=null,this.iconClass=t;else{if(this._icon===t)return;this._icon=t,this._changed.emit(void 0)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{get:function(){return this._iconClass},set:function(t){this._iconClass!==t&&(this._iconClass=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconLabel",{get:function(){return this._iconLabel},set:function(t){this._iconLabel!==t&&(this._iconLabel=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconRenderer",{get:function(){return this._icon||void 0},set:function(t){this.icon=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this._caption},set:function(t){this._caption!==t&&(this._caption=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this._className},set:function(t){this._className!==t&&(this._className=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closable",{get:function(){return this._closable},set:function(t){this._closable!==t&&(this._closable=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataset",{get:function(){return this._dataset},set:function(t){this._dataset!==t&&(this._dataset=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),t}(),W=function(){function t(t){void 0===t&&(t={}),this._flags=0,this._layout=null,this._parent=null,this._disposed=new c.a(this),this.node=R.createNode(t),this.addClass("lm-Widget"),this.addClass("p-Widget")}return t.prototype.dispose=function(){this.isDisposed||(this.setFlag(t.Flag.IsDisposed),this._disposed.emit(void 0),this.parent?this.parent=null:this.isAttached&&t.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),c.a.clearData(this),l.c.clearData(this),u.clearData(this))},Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this.testFlag(t.Flag.IsDisposed)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAttached",{get:function(){return this.testFlag(t.Flag.IsAttached)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHidden",{get:function(){return this.testFlag(t.Flag.IsHidden)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.testFlag(t.Flag.IsVisible)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return R.titleProperty.get(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.node.id},set:function(t){this.node.id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataset",{get:function(){return this.node.dataset},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(e){if(this._parent!==e){if(e&&this.contains(e))throw new Error("Invalid parent widget.");if(this._parent&&!this._parent.isDisposed){var n=new t.ChildMessage("child-removed",this);l.c.sendMessage(this._parent,n)}if(this._parent=e,this._parent&&!this._parent.isDisposed){n=new t.ChildMessage("child-added",this);l.c.sendMessage(this._parent,n)}this.isDisposed||l.c.sendMessage(this,t.Msg.ParentChanged)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){if(this._layout!==e){if(this.testFlag(t.Flag.DisallowLayout))throw new Error("Cannot set widget layout.");if(this._layout)throw new Error("Cannot change widget layout.");if(e.parent)throw new Error("Cannot change layout parent.");this._layout=e,e.parent=this}},enumerable:!0,configurable:!0}),t.prototype.children=function(){return this._layout?this._layout.iter():Object(s.f)()},t.prototype.contains=function(t){for(var e=t;e;e=e._parent)if(e===this)return!0;return!1},t.prototype.hasClass=function(t){return this.node.classList.contains(t)},t.prototype.addClass=function(t){this.node.classList.add(t)},t.prototype.removeClass=function(t){this.node.classList.remove(t)},t.prototype.toggleClass=function(t,e){return!0===e?(this.node.classList.add(t),!0):!1===e?(this.node.classList.remove(t),!1):this.node.classList.toggle(t)},t.prototype.update=function(){l.c.postMessage(this,t.Msg.UpdateRequest)},t.prototype.fit=function(){l.c.postMessage(this,t.Msg.FitRequest)},t.prototype.activate=function(){l.c.postMessage(this,t.Msg.ActivateRequest)},t.prototype.close=function(){l.c.sendMessage(this,t.Msg.CloseRequest)},t.prototype.show=function(){if(this.testFlag(t.Flag.IsHidden)&&(!this.isAttached||this.parent&&!this.parent.isVisible||l.c.sendMessage(this,t.Msg.BeforeShow),this.clearFlag(t.Flag.IsHidden),this.removeClass("lm-mod-hidden"),this.removeClass("p-mod-hidden"),!this.isAttached||this.parent&&!this.parent.isVisible||l.c.sendMessage(this,t.Msg.AfterShow),this.parent)){var e=new t.ChildMessage("child-shown",this);l.c.sendMessage(this.parent,e)}},t.prototype.hide=function(){if(!this.testFlag(t.Flag.IsHidden)&&(!this.isAttached||this.parent&&!this.parent.isVisible||l.c.sendMessage(this,t.Msg.BeforeHide),this.setFlag(t.Flag.IsHidden),this.addClass("lm-mod-hidden"),this.addClass("p-mod-hidden"),!this.isAttached||this.parent&&!this.parent.isVisible||l.c.sendMessage(this,t.Msg.AfterHide),this.parent)){var e=new t.ChildMessage("child-hidden",this);l.c.sendMessage(this.parent,e)}},t.prototype.setHidden=function(t){t?this.hide():this.show()},t.prototype.testFlag=function(t){return 0!=(this._flags&t)},t.prototype.setFlag=function(t){this._flags|=t},t.prototype.clearFlag=function(t){this._flags&=~t},t.prototype.processMessage=function(e){switch(e.type){case"resize":this.notifyLayout(e),this.onResize(e);break;case"update-request":this.notifyLayout(e),this.onUpdateRequest(e);break;case"fit-request":this.notifyLayout(e),this.onFitRequest(e);break;case"before-show":this.notifyLayout(e),this.onBeforeShow(e);break;case"after-show":this.setFlag(t.Flag.IsVisible),this.notifyLayout(e),this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e),this.onBeforeHide(e);break;case"after-hide":this.clearFlag(t.Flag.IsVisible),this.notifyLayout(e),this.onAfterHide(e);break;case"before-attach":this.notifyLayout(e),this.onBeforeAttach(e);break;case"after-attach":this.isHidden||this.parent&&!this.parent.isVisible||this.setFlag(t.Flag.IsVisible),this.setFlag(t.Flag.IsAttached),this.notifyLayout(e),this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e),this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(t.Flag.IsVisible),this.clearFlag(t.Flag.IsAttached),this.notifyLayout(e),this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e),this.onActivateRequest(e);break;case"close-request":this.notifyLayout(e),this.onCloseRequest(e);break;case"child-added":this.notifyLayout(e),this.onChildAdded(e);break;case"child-removed":this.notifyLayout(e),this.onChildRemoved(e);break;default:this.notifyLayout(e)}},t.prototype.notifyLayout=function(t){this._layout&&this._layout.processParentMessage(t)},t.prototype.onCloseRequest=function(e){this.parent?this.parent=null:this.isAttached&&t.detach(this)},t.prototype.onResize=function(t){},t.prototype.onUpdateRequest=function(t){},t.prototype.onFitRequest=function(t){},t.prototype.onActivateRequest=function(t){},t.prototype.onBeforeShow=function(t){},t.prototype.onAfterShow=function(t){},t.prototype.onBeforeHide=function(t){},t.prototype.onAfterHide=function(t){},t.prototype.onBeforeAttach=function(t){},t.prototype.onAfterAttach=function(t){},t.prototype.onBeforeDetach=function(t){},t.prototype.onAfterDetach=function(t){},t.prototype.onChildAdded=function(t){},t.prototype.onChildRemoved=function(t){},t}();!function(t){!function(t){t[t.IsDisposed=1]="IsDisposed",t[t.IsAttached=2]="IsAttached",t[t.IsHidden=4]="IsHidden",t[t.IsVisible=8]="IsVisible",t[t.DisallowLayout=16]="DisallowLayout"}(t.Flag||(t.Flag={})),function(t){t.BeforeShow=new l.b("before-show"),t.AfterShow=new l.b("after-show"),t.BeforeHide=new l.b("before-hide"),t.AfterHide=new l.b("after-hide"),t.BeforeAttach=new l.b("before-attach"),t.AfterAttach=new l.b("after-attach"),t.BeforeDetach=new l.b("before-detach"),t.AfterDetach=new l.b("after-detach"),t.ParentChanged=new l.b("parent-changed"),t.UpdateRequest=new l.a("update-request"),t.FitRequest=new l.a("fit-request"),t.ActivateRequest=new l.a("activate-request"),t.CloseRequest=new l.a("close-request")}(t.Msg||(t.Msg={}));var e=function(t){function e(e,n){var i=t.call(this,e)||this;return i.child=n,i}return B(e,t),e}(l.b);t.ChildMessage=e;var n=function(t){function e(e,n){var i=t.call(this,"resize")||this;return i.width=e,i.height=n,i}return B(e,t),e}(l.b);t.ResizeMessage=n,function(t){t.UnknownSize=new t(-1,-1)}(n=t.ResizeMessage||(t.ResizeMessage={})),t.attach=function(e,n,i){if(void 0===i&&(i=null),e.parent)throw new Error("Cannot attach a child widget.");if(e.isAttached||document.body.contains(e.node))throw new Error("Widget is already attached.");if(!document.body.contains(n))throw new Error("Host is not attached.");l.c.sendMessage(e,t.Msg.BeforeAttach),n.insertBefore(e.node,i),l.c.sendMessage(e,t.Msg.AfterAttach)},t.detach=function(e){if(e.parent)throw new Error("Cannot detach a child widget.");if(!e.isAttached||!document.body.contains(e.node))throw new Error("Widget is not attached.");l.c.sendMessage(e,t.Msg.BeforeDetach),e.node.parentNode.removeChild(e.node),l.c.sendMessage(e,t.Msg.AfterDetach)}}(W||(W={})),function(t){t.titleProperty=new u({name:"title",create:function(t){return new N({owner:t})}}),t.createNode=function(t){return t.node||document.createElement("div")}}(R||(R={}));var H,V=function(){function t(t){void 0===t&&(t={}),this._disposed=!1,this._parent=null,this._fitPolicy=t.fitPolicy||"set-min-size"}return t.prototype.dispose=function(){this._parent=null,this._disposed=!0,c.a.clearData(this),u.clearData(this)},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(t){if(this._parent!==t){if(this._parent)throw new Error("Cannot change parent widget.");if(t.layout!==this)throw new Error("Invalid parent widget.");this._parent=t,this.init()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fitPolicy",{get:function(){return this._fitPolicy},set:function(t){if(this._fitPolicy!==t&&(this._fitPolicy=t,this._parent)){var e=this._parent.node.style;e.minWidth="",e.minHeight="",e.maxWidth="",e.maxHeight="",this._parent.fit()}},enumerable:!0,configurable:!0}),t.prototype.processParentMessage=function(t){switch(t.type){case"resize":this.onResize(t);break;case"update-request":this.onUpdateRequest(t);break;case"fit-request":this.onFitRequest(t);break;case"before-show":this.onBeforeShow(t);break;case"after-show":this.onAfterShow(t);break;case"before-hide":this.onBeforeHide(t);break;case"after-hide":this.onAfterHide(t);break;case"before-attach":this.onBeforeAttach(t);break;case"after-attach":this.onAfterAttach(t);break;case"before-detach":this.onBeforeDetach(t);break;case"after-detach":this.onAfterDetach(t);break;case"child-removed":this.onChildRemoved(t);break;case"child-shown":this.onChildShown(t);break;case"child-hidden":this.onChildHidden(t)}},t.prototype.init=function(){var t=this;Object(s.e)(this,(function(e){e.parent=t.parent}))},t.prototype.onResize=function(t){Object(s.e)(this,(function(t){l.c.sendMessage(t,W.ResizeMessage.UnknownSize)}))},t.prototype.onUpdateRequest=function(t){Object(s.e)(this,(function(t){l.c.sendMessage(t,W.ResizeMessage.UnknownSize)}))},t.prototype.onBeforeAttach=function(t){Object(s.e)(this,(function(e){l.c.sendMessage(e,t)}))},t.prototype.onAfterAttach=function(t){Object(s.e)(this,(function(e){l.c.sendMessage(e,t)}))},t.prototype.onBeforeDetach=function(t){Object(s.e)(this,(function(e){l.c.sendMessage(e,t)}))},t.prototype.onAfterDetach=function(t){Object(s.e)(this,(function(e){l.c.sendMessage(e,t)}))},t.prototype.onBeforeShow=function(t){Object(s.e)(this,(function(e){e.isHidden||l.c.sendMessage(e,t)}))},t.prototype.onAfterShow=function(t){Object(s.e)(this,(function(e){e.isHidden||l.c.sendMessage(e,t)}))},t.prototype.onBeforeHide=function(t){Object(s.e)(this,(function(e){e.isHidden||l.c.sendMessage(e,t)}))},t.prototype.onAfterHide=function(t){Object(s.e)(this,(function(e){e.isHidden||l.c.sendMessage(e,t)}))},t.prototype.onChildRemoved=function(t){this.removeWidget(t.child)},t.prototype.onFitRequest=function(t){},t.prototype.onChildShown=function(t){},t.prototype.onChildHidden=function(t){},t}();(H=V||(V={})).getHorizontalAlignment=function(t){return q.horizontalAlignmentProperty.get(t)},H.setHorizontalAlignment=function(t,e){q.horizontalAlignmentProperty.set(t,e)},H.getVerticalAlignment=function(t){return q.verticalAlignmentProperty.get(t)},H.setVerticalAlignment=function(t,e){q.verticalAlignmentProperty.set(t,e)};var q,U=function(){function t(t){this._top=NaN,this._left=NaN,this._width=NaN,this._height=NaN,this._minWidth=0,this._minHeight=0,this._maxWidth=1/0,this._maxHeight=1/0,this._disposed=!1,this.widget=t,this.widget.node.style.position="absolute"}return t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this.widget.node.style;t.position="",t.top="",t.left="",t.width="",t.height=""}},Object.defineProperty(t.prototype,"minWidth",{get:function(){return this._minWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return this._minHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this._maxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxHeight",{get:function(){return this._maxHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHidden",{get:function(){return this.widget.isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.widget.isVisible},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAttached",{get:function(){return this.widget.isAttached},enumerable:!0,configurable:!0}),t.prototype.fit=function(){var t=a.a.sizeLimits(this.widget.node);this._minWidth=t.minWidth,this._minHeight=t.minHeight,this._maxWidth=t.maxWidth,this._maxHeight=t.maxHeight},t.prototype.update=function(t,e,n,i){var r=Math.max(this._minWidth,Math.min(n,this._maxWidth)),o=Math.max(this._minHeight,Math.min(i,this._maxHeight));if(r<n)switch(V.getHorizontalAlignment(this.widget)){case"left":break;case"center":t+=(n-r)/2;break;case"right":t+=n-r;break;default:throw"unreachable"}if(o<i)switch(V.getVerticalAlignment(this.widget)){case"top":break;case"center":e+=(i-o)/2;break;case"bottom":e+=i-o;break;default:throw"unreachable"}var s=!1,a=this.widget.node.style;if(this._top!==e&&(this._top=e,a.top=e+"px"),this._left!==t&&(this._left=t,a.left=t+"px"),this._width!==r&&(s=!0,this._width=r,a.width=r+"px"),this._height!==o&&(s=!0,this._height=o,a.height=o+"px"),s){var u=new W.ResizeMessage(r,o);l.c.sendMessage(this.widget,u)}},t}();!function(t){function e(t){t.parent&&t.parent.layout&&t.parent.update()}t.horizontalAlignmentProperty=new u({name:"horizontalAlignment",create:function(){return"center"},changed:e}),t.verticalAlignmentProperty=new u({name:"verticalAlignment",create:function(){return"top"},changed:e})}(q||(q={}));var K,$,J=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._widgets=[],e}return B(e,t),e.prototype.dispose=function(){for(;this._widgets.length>0;)this._widgets.pop().dispose();t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"widgets",{get:function(){return this._widgets},enumerable:!0,configurable:!0}),e.prototype.iter=function(){return Object(s.j)(this._widgets)},e.prototype.addWidget=function(t){this.insertWidget(this._widgets.length,t)},e.prototype.insertWidget=function(t,e){e.parent=this.parent;var n=this._widgets.indexOf(e),i=Math.max(0,Math.min(t,this._widgets.length));if(-1===n)return s.a.insert(this._widgets,i,e),void(this.parent&&this.attachWidget(i,e));i===this._widgets.length&&i--,n!==i&&(s.a.move(this._widgets,n,i),this.parent&&this.moveWidget(n,i,e))},e.prototype.removeWidget=function(t){this.removeWidgetAt(this._widgets.indexOf(t))},e.prototype.removeWidgetAt=function(t){var e=s.a.removeAt(this._widgets,t);e&&this.parent&&this.detachWidget(t,e)},e.prototype.init=function(){var e=this;t.prototype.init.call(this),Object(s.e)(this,(function(t,n){e.attachWidget(n,t)}))},e.prototype.attachWidget=function(t,e){var n=this.parent.node.children[t];this.parent.isAttached&&l.c.sendMessage(e,W.Msg.BeforeAttach),this.parent.node.insertBefore(e.node,n),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.AfterAttach)},e.prototype.moveWidget=function(t,e,n){this.parent.isAttached&&l.c.sendMessage(n,W.Msg.BeforeDetach),this.parent.node.removeChild(n.node),this.parent.isAttached&&l.c.sendMessage(n,W.Msg.AfterDetach);var i=this.parent.node.children[e];this.parent.isAttached&&l.c.sendMessage(n,W.Msg.BeforeAttach),this.parent.node.insertBefore(n.node,i),this.parent.isAttached&&l.c.sendMessage(n,W.Msg.AfterAttach)},e.prototype.detachWidget=function(t,e){this.parent.isAttached&&l.c.sendMessage(e,W.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.AfterDetach)},e}(V),Y=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;return n._fixed=0,n._spacing=4,n._dirty=!1,n._sizers=[],n._items=[],n._box=null,n._alignment="start",n._direction="top-to-bottom",void 0!==e.direction&&(n._direction=e.direction),void 0!==e.alignment&&(n._alignment=e.alignment),void 0!==e.spacing&&(n._spacing=$.clampSpacing(e.spacing)),n}return B(e,t),e.prototype.dispose=function(){Object(s.e)(this._items,(function(t){t.dispose()})),this._box=null,this._items.length=0,this._sizers.length=0,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction!==t&&(this._direction=t,this.parent&&(this.parent.dataset.direction=t,this.parent.fit()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this._alignment},set:function(t){this._alignment!==t&&(this._alignment=t,this.parent&&(this.parent.dataset.alignment=t,this.parent.update()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this._spacing},set:function(t){t=$.clampSpacing(t),this._spacing!==t&&(this._spacing=t,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.parent.dataset.direction=this.direction,this.parent.dataset.alignment=this.alignment,t.prototype.init.call(this)},e.prototype.attachWidget=function(t,e){s.a.insert(this._items,t,new U(e)),s.a.insert(this._sizers,t,new I),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.AfterAttach),this.parent.fit()},e.prototype.moveWidget=function(t,e,n){s.a.move(this._items,t,e),s.a.move(this._sizers,t,e),this.parent.update()},e.prototype.detachWidget=function(t,e){var n=s.a.removeAt(this._items,t);s.a.removeAt(this._sizers,t),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.AfterDetach),n.dispose(),this.parent.fit()},e.prototype.onBeforeShow=function(e){t.prototype.onBeforeShow.call(this,e),this.parent.update()},e.prototype.onBeforeAttach=function(e){t.prototype.onBeforeAttach.call(this,e),this.parent.fit()},e.prototype.onChildShown=function(t){this.parent.fit()},e.prototype.onChildHidden=function(t){this.parent.fit()},e.prototype.onResize=function(t){this.parent.isVisible&&this._update(t.width,t.height)},e.prototype.onUpdateRequest=function(t){this.parent.isVisible&&this._update(-1,-1)},e.prototype.onFitRequest=function(t){this.parent.isAttached&&this._fit()},e.prototype._fit=function(){for(var t=0,n=0,i=this._items.length;n<i;++n)t+=+!this._items[n].isHidden;this._fixed=this._spacing*Math.max(0,t-1);var r=$.isHorizontal(this._direction),o=r?this._fixed:0,s=r?0:this._fixed;for(n=0,i=this._items.length;n<i;++n){var u=this._items[n],c=this._sizers[n];u.isHidden?(c.minSize=0,c.maxSize=0):(u.fit(),c.sizeHint=e.getSizeBasis(u.widget),c.stretch=e.getStretch(u.widget),r?(c.minSize=u.minWidth,c.maxSize=u.maxWidth,o+=u.minWidth,s=Math.max(s,u.minHeight)):(c.minSize=u.minHeight,c.maxSize=u.maxHeight,s+=u.minHeight,o=Math.max(o,u.minWidth)))}var d=this._box=a.a.boxSizing(this.parent.node);o+=d.horizontalSum,s+=d.verticalSum;var h=this.parent.node.style;h.minWidth=o+"px",h.minHeight=s+"px",this._dirty=!0,this.parent.parent&&l.c.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&l.c.sendMessage(this.parent,W.Msg.UpdateRequest)},e.prototype._update=function(t,e){this._dirty=!1;for(var n=0,i=0,r=this._items.length;i<r;++i)n+=+!this._items[i].isHidden;if(0!==n){t<0&&(t=this.parent.node.offsetWidth),e<0&&(e=this.parent.node.offsetHeight),this._box||(this._box=a.a.boxSizing(this.parent.node));var o,s=this._box.paddingTop,l=this._box.paddingLeft,u=t-this._box.horizontalSum,c=e-this._box.verticalSum;switch(this._direction){case"left-to-right":o=L.calc(this._sizers,Math.max(0,u-this._fixed));break;case"top-to-bottom":o=L.calc(this._sizers,Math.max(0,c-this._fixed));break;case"right-to-left":o=L.calc(this._sizers,Math.max(0,u-this._fixed)),l+=u;break;case"bottom-to-top":o=L.calc(this._sizers,Math.max(0,c-this._fixed)),s+=c;break;default:throw"unreachable"}var d=0,h=0;if(o>0)switch(this._alignment){case"start":break;case"center":d=0,h=o/2;break;case"end":d=0,h=o;break;case"justify":d=o/n,h=0;break;default:throw"unreachable"}for(i=0,r=this._items.length;i<r;++i){var p=this._items[i];if(!p.isHidden){var f=this._sizers[i].size;switch(this._direction){case"left-to-right":p.update(l+h,s,f+d,c),l+=f+d+this._spacing;break;case"top-to-bottom":p.update(l,s+h,u,f+d),s+=f+d+this._spacing;break;case"right-to-left":p.update(l-h-f-d,s,f+d,c),l-=f+d+this._spacing;break;case"bottom-to-top":p.update(l,s-h-f-d,u,f+d),s-=f+d+this._spacing;break;default:throw"unreachable"}}}}},e}(J);(K=Y||(Y={})).getStretch=function(t){return $.stretchProperty.get(t)},K.setStretch=function(t,e){$.stretchProperty.set(t,e)},K.getSizeBasis=function(t){return $.sizeBasisProperty.get(t)},K.setSizeBasis=function(t,e){$.sizeBasisProperty.set(t,e)},function(t){function e(t){t.parent&&t.parent.layout instanceof Y&&t.parent.fit()}t.stretchProperty=new u({name:"stretch",create:function(){return 0},coerce:function(t,e){return Math.max(0,Math.floor(e))},changed:e}),t.sizeBasisProperty=new u({name:"sizeBasis",create:function(){return 0},coerce:function(t,e){return Math.max(0,Math.floor(e))},changed:e}),t.isHorizontal=function(t){return"left-to-right"===t||"right-to-left"===t},t.clampSpacing=function(t){return Math.max(0,Math.floor(t))}}($||($={}));var G,X=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;return n.addClass("lm-Panel"),n.addClass("p-Panel"),n.layout=G.createLayout(e),n}return B(e,t),Object.defineProperty(e.prototype,"widgets",{get:function(){return this.layout.widgets},enumerable:!0,configurable:!0}),e.prototype.addWidget=function(t){this.layout.addWidget(t)},e.prototype.insertWidget=function(t,e){this.layout.insertWidget(t,e)},e}(W);!function(t){t.createLayout=function(t){return t.layout||new J}}(G||(G={}));var Z,Q=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,{layout:Z.createLayout(e)})||this;return n.addClass("lm-BoxPanel"),n.addClass("p-BoxPanel"),n}return B(e,t),Object.defineProperty(e.prototype,"direction",{get:function(){return this.layout.direction},set:function(t){this.layout.direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this.layout.alignment},set:function(t){this.layout.alignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this.layout.spacing},set:function(t){this.layout.spacing=t},enumerable:!0,configurable:!0}),e.prototype.onChildAdded=function(t){t.child.addClass("lm-BoxPanel-child"),t.child.addClass("p-BoxPanel-child")},e.prototype.onChildRemoved=function(t){t.child.removeClass("lm-BoxPanel-child"),t.child.removeClass("p-BoxPanel-child")},e}(X);!function(t){t.getStretch=function(t){return Y.getStretch(t)},t.setStretch=function(t,e){Y.setStretch(t,e)},t.getSizeBasis=function(t){return Y.getSizeBasis(t)},t.setSizeBasis=function(t,e){Y.setSizeBasis(t,e)}}(Q||(Q={})),function(t){t.createLayout=function(t){return t.layout||new Y(t)}}(Z||(Z={}));var tt,et,nt,it=function(t){function e(n){var i=t.call(this,{node:nt.createNode()})||this;return i._activeIndex=-1,i._items=[],i._results=null,i.addClass("lm-CommandPalette"),i.addClass("p-CommandPalette"),i.setFlag(W.Flag.DisallowLayout),i.commands=n.commands,i.renderer=n.renderer||e.defaultRenderer,i.commands.commandChanged.connect(i._onGenericChange,i),i.commands.keyBindingChanged.connect(i._onGenericChange,i),i}return B(e,t),e.prototype.dispose=function(){this._items.length=0,this._results=null,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"searchNode",{get:function(){return this.node.getElementsByClassName("lm-CommandPalette-search")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputNode",{get:function(){return this.node.getElementsByClassName("lm-CommandPalette-input")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("lm-CommandPalette-content")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),e.prototype.addItem=function(t){var e=nt.createItem(this.commands,t);return this._items.push(e),this.refresh(),e},e.prototype.addItems=function(t){var e=this,n=t.map((function(t){return nt.createItem(e.commands,t)}));return n.forEach((function(t){return e._items.push(t)})),this.refresh(),n},e.prototype.removeItem=function(t){this.removeItemAt(this._items.indexOf(t))},e.prototype.removeItemAt=function(t){s.a.removeAt(this._items,t)&&this.refresh()},e.prototype.clearItems=function(){0!==this._items.length&&(this._items.length=0,this.refresh())},e.prototype.refresh=function(){(this._results=null,""!==this.inputNode.value)?this.node.getElementsByClassName("lm-close-icon")[0].style.display="inherit":this.node.getElementsByClassName("lm-close-icon")[0].style.display="none";this.update()},e.prototype.handleEvent=function(t){switch(t.type){case"click":this._evtClick(t);break;case"keydown":this._evtKeyDown(t);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),this.node.addEventListener("input",this),this.node.addEventListener("focus",this,!0),this.node.addEventListener("blur",this,!0)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this),this.node.removeEventListener("input",this),this.node.removeEventListener("focus",this,!0),this.node.removeEventListener("blur",this,!0)},e.prototype.onActivateRequest=function(t){if(this.isAttached){var e=this.inputNode;e.focus(),e.select()}},e.prototype.onUpdateRequest=function(t){var e=this.inputNode.value,n=this.contentNode,i=this._results;if(i||(i=this._results=nt.search(this._items,e),this._activeIndex=e?s.a.findFirstIndex(i,nt.canActivate):-1),e||0!==i.length)if(e&&0===i.length){var r=this.renderer.renderEmptyMessage({query:e});M.render(r,n)}else{for(var o=this.renderer,l=this._activeIndex,u=new Array(i.length),c=0,d=i.length;c<d;++c){var h=i[c];if("header"===h.type){var p=h.indices,f=h.category;u[c]=o.renderHeader({category:f,indices:p})}else{var m=h.item,g=(p=h.indices,c===l);u[c]=o.renderItem({item:m,indices:p,active:g})}}if(M.render(u,n),l<0||l>=i.length)n.scrollTop=0;else{var v=n.children[l];a.a.scrollIntoViewIfNeeded(n,v)}}else M.render(null,n)},e.prototype._evtClick=function(t){if(0===t.button){if(t.target.classList.contains("lm-close-icon"))return this.inputNode.value="",void this.refresh();var e=s.a.findFirstIndex(this.contentNode.children,(function(e){return e.contains(t.target)}));-1!==e&&(t.preventDefault(),t.stopPropagation(),this._execute(e))}},e.prototype._evtKeyDown=function(t){if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey))switch(t.keyCode){case 13:t.preventDefault(),t.stopPropagation(),this._execute(this._activeIndex);break;case 38:t.preventDefault(),t.stopPropagation(),this._activatePreviousItem();break;case 40:t.preventDefault(),t.stopPropagation(),this._activateNextItem()}},e.prototype._activateNextItem=function(){if(this._results&&0!==this._results.length){var t=this._activeIndex,e=this._results.length,n=t<e-1?t+1:0,i=0===n?e-1:n-1;this._activeIndex=s.a.findFirstIndex(this._results,nt.canActivate,n,i),this.update()}},e.prototype._activatePreviousItem=function(){if(this._results&&0!==this._results.length){var t=this._activeIndex,e=this._results.length,n=t<=0?e-1:t-1,i=n===e-1?0:n+1;this._activeIndex=s.a.findLastIndex(this._results,nt.canActivate,n,i),this.update()}},e.prototype._execute=function(t){if(this._results){var e=this._results[t];if(e){if("header"===e.type){var n=this.inputNode;return n.value=e.category.toLowerCase()+" ",n.focus(),void this.refresh()}e.item.isEnabled&&(this.commands.execute(e.item.command,e.item.args),this.inputNode.value="",this.refresh())}}},e.prototype._toggleFocused=function(){var t=document.activeElement===this.inputNode;this.toggleClass("lm-mod-focused",t),this.toggleClass("p-mod-focused",t)},e.prototype._onGenericChange=function(){this.refresh()},e}(W);tt=it||(it={}),et=function(){function t(){}return t.prototype.renderHeader=function(t){var e=this.formatHeader(t);return D.li({className:"lm-CommandPalette-header p-CommandPalette-header"},e)},t.prototype.renderItem=function(t){var e=this.createItemClass(t),n=this.createItemDataset(t);return D.li({className:e,dataset:n},this.renderItemIcon(t),this.renderItemContent(t),this.renderItemShortcut(t))},t.prototype.renderEmptyMessage=function(t){var e=this.formatEmptyMessage(t);return D.li({className:"lm-CommandPalette-emptyMessage p-CommandPalette-emptyMessage"},e)},t.prototype.renderItemIcon=function(t){var e=this.createIconClass(t);return"string"==typeof t.item.icon?D.div({className:e},t.item.iconLabel):D.div({className:e},t.item.icon,t.item.iconLabel)},t.prototype.renderItemContent=function(t){return D.div({className:"lm-CommandPalette-itemContent p-CommandPalette-itemContent"},this.renderItemLabel(t),this.renderItemCaption(t))},t.prototype.renderItemLabel=function(t){var e=this.formatItemLabel(t);return D.div({className:"lm-CommandPalette-itemLabel p-CommandPalette-itemLabel"},e)},t.prototype.renderItemCaption=function(t){var e=this.formatItemCaption(t);return D.div({className:"lm-CommandPalette-itemCaption p-CommandPalette-itemCaption"},e)},t.prototype.renderItemShortcut=function(t){var e=this.formatItemShortcut(t);return D.div({className:"lm-CommandPalette-itemShortcut p-CommandPalette-itemShortcut"},e)},t.prototype.createItemClass=function(t){var e="lm-CommandPalette-item";e+=" p-CommandPalette-item",t.item.isEnabled||(e+=" lm-mod-disabled",e+=" p-mod-disabled"),t.item.isToggled&&(e+=" lm-mod-toggled",e+=" p-mod-toggled"),t.active&&(e+=" lm-mod-active",e+=" p-mod-active");var n=t.item.className;return n&&(e+=" "+n),e},t.prototype.createItemDataset=function(t){return F(F({},t.item.dataset),{command:t.item.command})},t.prototype.createIconClass=function(t){var e="lm-CommandPalette-itemIcon";e+=" p-CommandPalette-itemIcon";var n=t.item.iconClass;return n?e+" "+n:e},t.prototype.formatHeader=function(t){return t.indices&&0!==t.indices.length?s.c.highlight(t.category,t.indices,D.mark):t.category},t.prototype.formatEmptyMessage=function(t){return"No commands found that match '"+t.query+"'"},t.prototype.formatItemShortcut=function(t){var e=t.item.keyBinding;return e?e.keys.map(j.formatKeystroke).join(", "):null},t.prototype.formatItemLabel=function(t){return t.indices&&0!==t.indices.length?s.c.highlight(t.item.label,t.indices,D.mark):t.item.label},t.prototype.formatItemCaption=function(t){return t.item.caption},t}(),tt.Renderer=et,tt.defaultRenderer=new et,function(t){function e(t,e){for(var n=t.category.toLowerCase(),i=n+" "+t.label.toLowerCase(),r=1/0,o=null,a=/\b\w/g;;){var l=a.exec(i);if(!l)break;var u=s.c.matchSumOfDeltas(i,e,l.index);if(!u)break;u&&u.score<=r&&(r=u.score,o=u.indices)}if(!o||r===1/0)return null;for(var c=n.length+1,d=s.a.lowerBound(o,c,(function(t,e){return t-e})),h=o.slice(0,d),p=o.slice(d),f=0,m=p.length;f<m;++f)p[f]-=c;return 0===h.length?{matchType:0,categoryIndices:null,labelIndices:p,score:r,item:t}:0===p.length?{matchType:1,categoryIndices:h,labelIndices:null,score:r,item:t}:{matchType:2,categoryIndices:h,labelIndices:p,score:r,item:t}}function n(t,e){var n=t.matchType-e.matchType;if(0!==n)return n;var i=t.score-e.score;if(0!==i)return i;var r=0,o=0;switch(t.matchType){case 0:r=t.labelIndices[0],o=e.labelIndices[0];break;case 1:case 2:r=t.categoryIndices[0],o=e.categoryIndices[0]}if(r!==o)return r-o;var s=t.item.category.localeCompare(e.item.category);if(0!==s)return s;var a=t.item.rank,l=e.item.rank;return a!==l?a<l?-1:1:t.item.label.localeCompare(e.item.label)}t.createNode=function(){var t=document.createElement("div"),e=document.createElement("div"),n=document.createElement("div"),i=document.createElement("input"),r=document.createElement("ul"),o=document.createElement("button");return e.className="lm-CommandPalette-search",n.className="lm-CommandPalette-wrapper",i.className="lm-CommandPalette-input",o.className="lm-close-icon",r.className="lm-CommandPalette-content",e.classList.add("p-CommandPalette-search"),n.classList.add("p-CommandPalette-wrapper"),i.classList.add("p-CommandPalette-input"),r.classList.add("p-CommandPalette-content"),i.spellcheck=!1,n.appendChild(i),n.appendChild(o),e.appendChild(n),t.appendChild(e),t.appendChild(r),t},t.createItem=function(t,e){return new i(t,e)},t.search=function(t,i){var r=function(t,n){i=n,n=i.replace(/\s+/g,"").toLowerCase();var i;for(var r=[],o=0,s=t.length;o<s;++o){var a=t[o];if(a.isVisible)if(n){var l=e(a,n);l&&(a.isEnabled||(l.score+=1e3),r.push(l))}else r.push({matchType:3,categoryIndices:null,labelIndices:null,score:0,item:a})}return r}(t,i);return r.sort(n),function(t){var e=new Array(t.length);s.a.fill(e,!1);for(var n=[],i=0,r=t.length;i<r;++i)if(!e[i]){var o=t[i],a=o.item,l=o.categoryIndices,u=a.category;n.push({type:"header",category:u,indices:l});for(var c=i;c<r;++c)if(!e[c]){var d=t[c],h=d.item,p=d.labelIndices;h.category===u&&(n.push({type:"item",item:h,indices:p}),e[c]=!0)}}return n}(r)},t.canActivate=function(t){return"item"===t.type&&t.item.isEnabled};var i=function(){function t(t,e){this._commands=t,this.category=e.category.trim().replace(/\s+/g," "),this.command=e.command,this.args=e.args||d.a.emptyObject,this.rank=void 0!==e.rank?e.rank:1/0}return Object.defineProperty(t.prototype,"label",{get:function(){return this._commands.label(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return this._commands.icon(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{get:function(){return this._commands.iconClass(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconLabel",{get:function(){return this._commands.iconLabel(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this._commands.caption(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this._commands.className(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataset",{get:function(){return this._commands.dataset(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this._commands.isEnabled(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isToggled",{get:function(){return this._commands.isToggled(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._commands.isVisible(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyBinding",{get:function(){var t=this.command,e=this.args;return s.a.findLastValue(this._commands.keyBindings,(function(n){return n.command===t&&d.a.deepEqual(n.args,e)}))||null},enumerable:!0,configurable:!0}),t}()}(nt||(nt={}));var rt,ot=function(t){function e(n){var i=t.call(this,{node:rt.createNode()})||this;return i._childIndex=-1,i._activeIndex=-1,i._openTimerID=0,i._closeTimerID=0,i._items=[],i._childMenu=null,i._parentMenu=null,i._aboutToClose=new c.a(i),i._menuRequested=new c.a(i),i.addClass("lm-Menu"),i.addClass("p-Menu"),i.setFlag(W.Flag.DisallowLayout),i.commands=n.commands,i.renderer=n.renderer||e.defaultRenderer,i}return B(e,t),e.prototype.dispose=function(){this.close(),this._items.length=0,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"aboutToClose",{get:function(){return this._aboutToClose},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menuRequested",{get:function(){return this._menuRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentMenu",{get:function(){return this._parentMenu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childMenu",{get:function(){return this._childMenu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootMenu",{get:function(){for(var t=this;t._parentMenu;)t=t._parentMenu;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leafMenu",{get:function(){for(var t=this;t._childMenu;)t=t._childMenu;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("lm-Menu-content")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this._items[this._activeIndex]||null},set:function(t){this.activeIndex=t?this._items.indexOf(t):-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(t){(t<0||t>=this._items.length)&&(t=-1),-1===t||rt.canActivate(this._items[t])||(t=-1),this._activeIndex!==t&&(this._activeIndex=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),e.prototype.activateNextItem=function(){var t=this._items.length,e=this._activeIndex,n=e<t-1?e+1:0,i=0===n?t-1:n-1;this.activeIndex=s.a.findFirstIndex(this._items,rt.canActivate,n,i)},e.prototype.activatePreviousItem=function(){var t=this._items.length,e=this._activeIndex,n=e<=0?t-1:e-1,i=n===t-1?0:n+1;this.activeIndex=s.a.findLastIndex(this._items,rt.canActivate,n,i)},e.prototype.triggerActiveItem=function(){if(this.isAttached){var t=this.activeItem;if(t)if(this._cancelOpenTimer(),this._cancelCloseTimer(),"submenu"!==t.type){this.rootMenu.close();var e=t.command,n=t.args;this.commands.isEnabled(e,n)?this.commands.execute(e,n):console.log("Command '"+e+"' is disabled.")}else this._openChildMenu(!0)}},e.prototype.addItem=function(t){return this.insertItem(this._items.length,t)},e.prototype.insertItem=function(t,e){this.isAttached&&this.close(),this.activeIndex=-1;var n=Math.max(0,Math.min(t,this._items.length)),i=rt.createItem(this,e);return s.a.insert(this._items,n,i),this.update(),i},e.prototype.removeItem=function(t){this.removeItemAt(this._items.indexOf(t))},e.prototype.removeItemAt=function(t){this.isAttached&&this.close(),this.activeIndex=-1,s.a.removeAt(this._items,t)&&this.update()},e.prototype.clearItems=function(){this.isAttached&&this.close(),this.activeIndex=-1,0!==this._items.length&&(this._items.length=0,this.update())},e.prototype.open=function(t,e,n){if(void 0===n&&(n={}),!this.isAttached){var i=n.forceX||!1,r=n.forceY||!1;rt.openRootMenu(this,t,e,i,r),this.activate()}},e.prototype.handleEvent=function(t){switch(t.type){case"keydown":this._evtKeyDown(t);break;case"mouseup":this._evtMouseUp(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseenter":this._evtMouseEnter(t);break;case"mouseleave":this._evtMouseLeave(t);break;case"mousedown":this._evtMouseDown(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("keydown",this),this.node.addEventListener("mouseup",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("mouseenter",this),this.node.addEventListener("mouseleave",this),this.node.addEventListener("contextmenu",this),document.addEventListener("mousedown",this,!0)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mouseup",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("mouseenter",this),this.node.removeEventListener("mouseleave",this),this.node.removeEventListener("contextmenu",this),document.removeEventListener("mousedown",this,!0)},e.prototype.onActivateRequest=function(t){this.isAttached&&this.node.focus()},e.prototype.onUpdateRequest=function(t){for(var e=this._items,n=this.renderer,i=this._activeIndex,r=rt.computeCollapsed(e),o=new Array(e.length),s=0,a=e.length;s<a;++s){var l=e[s],u=s===i,c=r[s];o[s]=n.renderItem({item:l,active:u,collapsed:c})}M.render(o,this.contentNode)},e.prototype.onCloseRequest=function(e){this._cancelOpenTimer(),this._cancelCloseTimer(),this.activeIndex=-1;var n=this._childMenu;n&&(this._childIndex=-1,this._childMenu=null,n._parentMenu=null,n.close());var i=this._parentMenu;i&&(this._parentMenu=null,i._childIndex=-1,i._childMenu=null,i.activate()),this.isAttached&&this._aboutToClose.emit(void 0),t.prototype.onCloseRequest.call(this,e)},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation();var e=t.keyCode;if(13!==e)if(27!==e)if(37!==e)if(38!==e)if(39!==e)if(40!==e){var n=b().keyForKeydownEvent(t);if(n){var i=this._activeIndex+1,r=rt.findMnemonic(this._items,n,i);-1===r.index||r.multiple?-1!==r.index?this.activeIndex=r.index:-1!==r.auto&&(this.activeIndex=r.auto):(this.activeIndex=r.index,this.triggerActiveItem())}}else this.activateNextItem();else{var o=this.activeItem;o&&"submenu"===o.type?this.triggerActiveItem():this.rootMenu._menuRequested.emit("next")}else this.activatePreviousItem();else this._parentMenu?this.close():this._menuRequested.emit("previous");else this.close();else this.triggerActiveItem()},e.prototype._evtMouseUp=function(t){0===t.button&&(t.preventDefault(),t.stopPropagation(),this.triggerActiveItem())},e.prototype._evtMouseMove=function(t){var e=s.a.findFirstIndex(this.contentNode.children,(function(e){return a.a.hitTest(e,t.clientX,t.clientY)}));if(e!==this._activeIndex){if(this.activeIndex=e,(e=this.activeIndex)===this._childIndex)return this._cancelOpenTimer(),void this._cancelCloseTimer();-1!==this._childIndex&&this._startCloseTimer(),this._cancelOpenTimer();var n=this.activeItem;n&&"submenu"===n.type&&n.submenu&&this._startOpenTimer()}},e.prototype._evtMouseEnter=function(t){for(var e=this._parentMenu;e;e=e._parentMenu)e._cancelOpenTimer(),e._cancelCloseTimer(),e.activeIndex=e._childIndex},e.prototype._evtMouseLeave=function(t){if(this._cancelOpenTimer(),this._childMenu){var e=t.clientX,n=t.clientY;a.a.hitTest(this._childMenu.node,e,n)?this._cancelCloseTimer():(this.activeIndex=-1,this._startCloseTimer())}else this.activeIndex=-1},e.prototype._evtMouseDown=function(t){this._parentMenu||(rt.hitTestMenus(this,t.clientX,t.clientY)?(t.preventDefault(),t.stopPropagation()):this.close())},e.prototype._openChildMenu=function(t){void 0===t&&(t=!1);var e=this.activeItem;if(e&&"submenu"===e.type&&e.submenu){var n=e.submenu;if(n!==this._childMenu){this._closeChildMenu(),this._childMenu=n,this._childIndex=this._activeIndex,n._parentMenu=this,l.c.sendMessage(this,W.Msg.UpdateRequest);var i=this.contentNode.children[this._activeIndex];rt.openSubmenu(n,i),t&&(n.activeIndex=-1,n.activateNextItem()),n.activate()}}else this._closeChildMenu()},e.prototype._closeChildMenu=function(){this._childMenu&&this._childMenu.close()},e.prototype._startOpenTimer=function(){var t=this;0===this._openTimerID&&(this._openTimerID=window.setTimeout((function(){t._openTimerID=0,t._openChildMenu()}),rt.TIMER_DELAY))},e.prototype._startCloseTimer=function(){var t=this;0===this._closeTimerID&&(this._closeTimerID=window.setTimeout((function(){t._closeTimerID=0,t._closeChildMenu()}),rt.TIMER_DELAY))},e.prototype._cancelOpenTimer=function(){0!==this._openTimerID&&(clearTimeout(this._openTimerID),this._openTimerID=0)},e.prototype._cancelCloseTimer=function(){0!==this._closeTimerID&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)},e}(W);!function(t){var e=function(){function t(){}return t.prototype.renderItem=function(t){var e=this.createItemClass(t),n=this.createItemDataset(t),i=this.createItemARIA(t);return D.li(F({className:e,dataset:n},i),this.renderIcon(t),this.renderLabel(t),this.renderShortcut(t),this.renderSubmenu(t))},t.prototype.renderIcon=function(t){var e=this.createIconClass(t);return"string"==typeof t.item.icon?D.div({className:e},t.item.iconLabel):D.div({className:e},t.item.icon,t.item.iconLabel)},t.prototype.renderLabel=function(t){var e=this.formatLabel(t);return D.div({className:"lm-Menu-itemLabel p-Menu-itemLabel"},e)},t.prototype.renderShortcut=function(t){var e=this.formatShortcut(t);return D.div({className:"lm-Menu-itemShortcut p-Menu-itemShortcut"},e)},t.prototype.renderSubmenu=function(t){return D.div({className:"lm-Menu-itemSubmenuIcon p-Menu-itemSubmenuIcon"})},t.prototype.createItemClass=function(t){var e="lm-Menu-item";e+=" p-Menu-item",t.item.isEnabled||(e+=" lm-mod-disabled",e+=" p-mod-disabled"),t.item.isToggled&&(e+=" lm-mod-toggled",e+=" p-mod-toggled"),t.item.isVisible||(e+=" lm-mod-hidden",e+=" p-mod-hidden"),t.active&&(e+=" lm-mod-active",e+=" p-mod-active"),t.collapsed&&(e+=" lm-mod-collapsed",e+=" p-mod-collapsed");var n=t.item.className;return n&&(e+=" "+n),e},t.prototype.createItemDataset=function(t){var e=t.item,n=e.type,i=e.command,r=e.dataset;return F(F({},r),"command"===n?{type:n,command:i}:{type:n})},t.prototype.createIconClass=function(t){var e="lm-Menu-itemIcon";e+=" p-Menu-itemIcon";var n=t.item.iconClass;return n?e+" "+n:e},t.prototype.createItemARIA=function(t){var e={};switch(t.item.type){case"separator":e.role="presentation";break;case"submenu":e["aria-haspopup"]="true";break;default:e.role="menuitem"}return e},t.prototype.formatLabel=function(t){var e=t.item,n=e.label,i=e.mnemonic;if(i<0||i>=n.length)return n;var r=n.slice(0,i),o=n.slice(i+1),s=n[i];return[r,D.span({className:"lm-Menu-itemMnemonic p-Menu-itemMnemonic"},s),o]},t.prototype.formatShortcut=function(t){var e=t.item.keyBinding;return e?e.keys.map(j.formatKeystroke).join(", "):null},t}();t.Renderer=e,t.defaultRenderer=new e}(ot||(ot={})),function(t){function e(t){return"separator"!==t.type&&t.isEnabled&&t.isVisible}t.TIMER_DELAY=300,t.SUBMENU_OVERLAP=3,t.createNode=function(){var t=document.createElement("div"),e=document.createElement("ul");return e.className="lm-Menu-content",e.classList.add("p-Menu-content"),t.appendChild(e),e.setAttribute("role","menu"),t.tabIndex=-1,t},t.canActivate=e,t.createItem=function(t,e){return new n(t.commands,e)},t.hitTestMenus=function(t,e,n){for(var i=t;i;i=i.childMenu)if(a.a.hitTest(i.node,e,n))return!0;return!1},t.computeCollapsed=function(t){var e=new Array(t.length);s.a.fill(e,!1);for(var n=0,i=t.length;n<i;++n){if((a=t[n]).isVisible){if("separator"!==a.type)break;e[n]=!0}}for(var r=i-1;r>=0;--r){if((a=t[r]).isVisible){if("separator"!==a.type)break;e[r]=!0}}for(var o=!1;++n<r;){var a;(a=t[n]).isVisible&&("separator"!==a.type?o=!1:o?e[n]=!0:o=!0)}return e},t.openRootMenu=function(t,e,n,i,r){l.c.sendMessage(t,W.Msg.UpdateRequest);var o=window.pageXOffset,s=window.pageYOffset,a=document.documentElement.clientWidth,u=document.documentElement.clientHeight,c=u-(r?n:0),d=t.node,h=d.style;h.top="",h.left="",h.width="",h.height="",h.visibility="hidden",h.maxHeight=c+"px",W.attach(t,document.body);var p=d.getBoundingClientRect(),f=p.width,m=p.height;!i&&e+f>o+a&&(e=o+a-f),!r&&n+m>s+u&&(n>s+u?n=s+u-m:n-=m),h.top=Math.max(0,n)+"px",h.left=Math.max(0,e)+"px",h.visibility=""},t.openSubmenu=function(e,n){l.c.sendMessage(e,W.Msg.UpdateRequest);var i=window.pageXOffset,r=window.pageYOffset,o=document.documentElement.clientWidth,s=document.documentElement.clientHeight,u=s,c=e.node,d=c.style;d.top="",d.left="",d.width="",d.height="",d.visibility="hidden",d.maxHeight=u+"px",W.attach(e,document.body);var h=c.getBoundingClientRect(),p=h.width,f=h.height,m=a.a.boxSizing(e.node),g=n.getBoundingClientRect(),v=g.right-t.SUBMENU_OVERLAP;v+p>i+o&&(v=g.left+t.SUBMENU_OVERLAP-p);var y=g.top-m.borderTop-m.paddingTop;y+f>r+s&&(y=g.bottom+m.borderBottom+m.paddingBottom-f),d.top=Math.max(0,y)+"px",d.left=Math.max(0,v)+"px",d.visibility=""},t.findMnemonic=function(t,n,i){for(var r=-1,o=-1,s=!1,a=n.toUpperCase(),l=0,u=t.length;l<u;++l){var c=(l+i)%u,d=t[c];if(e(d)){var h=d.label;if(0!==h.length){var p=d.mnemonic;p>=0&&p<h.length?h[p].toUpperCase()===a&&(-1===r?r=c:s=!0):-1===o&&h[0].toUpperCase()===a&&(o=c)}}}return{index:r,multiple:s,auto:o}};var n=function(){function t(t,e){this._commands=t,this.type=e.type||"command",this.command=e.command||"",this.args=e.args||d.a.emptyObject,this.submenu=e.submenu||null}return Object.defineProperty(t.prototype,"label",{get:function(){return"command"===this.type?this._commands.label(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.label:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mnemonic",{get:function(){return"command"===this.type?this._commands.mnemonic(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.mnemonic:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return"command"===this.type?this._commands.icon(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.icon:this.iconClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{get:function(){return"command"===this.type?this._commands.iconClass(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.iconClass:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconLabel",{get:function(){return"command"===this.type?this._commands.iconLabel(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.iconLabel:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return"command"===this.type?this._commands.caption(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.caption:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return"command"===this.type?this._commands.className(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.className:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataset",{get:function(){return"command"===this.type?this._commands.dataset(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.dataset:{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return"command"===this.type?this._commands.isEnabled(this.command,this.args):"submenu"!==this.type||null!==this.submenu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isToggled",{get:function(){return"command"===this.type&&this._commands.isToggled(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return"command"===this.type?this._commands.isVisible(this.command,this.args):"submenu"!==this.type||null!==this.submenu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyBinding",{get:function(){if("command"===this.type){var t=this.command,e=this.args;return s.a.findLastValue(this._commands.keyBindings,(function(n){return n.command===t&&d.a.deepEqual(n.args,e)}))||null}return null},enumerable:!0,configurable:!0}),t}()}(rt||(rt={}));var st,at=function(){function t(t){this._idTick=0,this._items=[],this.menu=new ot(t)}return t.prototype.addItem=function(t){var e=this,n=st.createItem(t,this._idTick++);return this._items.push(n),new m((function(){s.a.removeFirstOf(e._items,n)}))},t.prototype.open=function(t){var e=this;if(this.menu.clearItems(),0===this._items.length)return!1;var n=st.matchItems(this._items,t);return!(!n||0===n.length)&&(Object(s.e)(n,(function(t){e.menu.addItem(t)})),this.menu.open(t.clientX,t.clientY),!0)},t}();!function(t){function e(t,e){var n=a.c.calculateSpecificity(t.selector),i=a.c.calculateSpecificity(e.selector);if(n!==i)return i-n;var r=t.rank,o=e.rank;return r!==o?r<o?-1:1:t.id-e.id}t.createItem=function(t,e){var n=function(t){if(-1!==t.indexOf(","))throw new Error("Selector cannot contain commas: "+t);if(!a.c.isValid(t))throw new Error("Invalid selector: "+t);return t}(t.selector),i=void 0!==t.rank?t.rank:1/0;return F(F({},t),{selector:n,rank:i,id:e})},t.matchItems=function(t,n){var i=n.target;if(!i)return null;var r=n.currentTarget;if(!r)return null;if(!(r.contains(i)||(i=document.elementFromPoint(n.clientX,n.clientY))&&r.contains(i)))return null;for(var o=[],s=t.slice();null!==i;){for(var l=[],u=0,c=s.length;u<c;++u){var d=s[u];d&&(a.c.matches(i,d.selector)&&(l.push(d),s[u]=null))}if(0!==l.length&&(l.sort(e),o.push.apply(o,l)),i===r)break;i=i.parentElement}return o}}(st||(st={}));var lt,ut=function(t){function e(e){var n=t.call(this)||this;return n._spacing=4,n._dirty=!1,n._root=null,n._box=null,n._items=new Map,n.renderer=e.renderer,void 0!==e.spacing&&(n._spacing=lt.clampSpacing(e.spacing)),n}return B(e,t),e.prototype.dispose=function(){var e=this.iter();this._items.forEach((function(t){t.dispose()})),this._box=null,this._root=null,this._items.clear(),Object(s.e)(e,(function(t){t.dispose()})),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"spacing",{get:function(){return this._spacing},set:function(t){t=lt.clampSpacing(t),this._spacing!==t&&(this._spacing=t,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return null===this._root},enumerable:!0,configurable:!0}),e.prototype.iter=function(){return this._root?this._root.iterAllWidgets():Object(s.f)()},e.prototype.widgets=function(){return this._root?this._root.iterUserWidgets():Object(s.f)()},e.prototype.selectedWidgets=function(){return this._root?this._root.iterSelectedWidgets():Object(s.f)()},e.prototype.tabBars=function(){return this._root?this._root.iterTabBars():Object(s.f)()},e.prototype.handles=function(){return this._root?this._root.iterHandles():Object(s.f)()},e.prototype.moveHandle=function(t,e,n){var i=t.classList.contains("lm-mod-hidden");if(i=i||t.classList.contains("p-mod-hidden"),this._root&&!i){var r,o=this._root.findSplitNode(t);if(o)0!==(r="horizontal"===o.node.orientation?e-t.offsetLeft:n-t.offsetTop)&&(o.node.holdSizes(),L.adjust(o.node.sizers,o.index,r),this.parent&&this.parent.update())}},e.prototype.saveLayout=function(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}},e.prototype.restoreLayout=function(t){var e,n=this,i=new Set;e=t.main?lt.normalizeAreaConfig(t.main,i):null;var r=this.widgets(),o=this.tabBars(),a=this.handles();this._root=null,Object(s.e)(r,(function(t){i.has(t)||(t.parent=null)})),Object(s.e)(o,(function(t){t.dispose()})),Object(s.e)(a,(function(t){t.parentNode&&t.parentNode.removeChild(t)})),i.forEach((function(t){t.parent=n.parent})),this._root=e?lt.realizeAreaConfig(e,{createTabBar:function(){return n._createTabBar()},createHandle:function(){return n._createHandle()}}):null,this.parent&&(i.forEach((function(t){n.attachWidget(t)})),this.parent.fit())},e.prototype.addWidget=function(t,e){void 0===e&&(e={});var n=e.ref||null,i=e.mode||"tab-after",r=null;if(this._root&&n&&(r=this._root.findTabNode(n)),n&&!r)throw new Error("Reference widget is not in the layout.");switch(t.parent=this.parent,i){case"tab-after":this._insertTab(t,n,r,!0);break;case"tab-before":this._insertTab(t,n,r,!1);break;case"split-top":this._insertSplit(t,n,r,"vertical",!1);break;case"split-left":this._insertSplit(t,n,r,"horizontal",!1);break;case"split-right":this._insertSplit(t,n,r,"horizontal",!0);break;case"split-bottom":this._insertSplit(t,n,r,"vertical",!0)}this.parent&&(this.attachWidget(t),this.parent.fit())},e.prototype.removeWidget=function(t){this._removeWidget(t),this.parent&&(this.detachWidget(t),this.parent.fit())},e.prototype.hitTestTabAreas=function(t,e){if(!this._root||!this.parent||!this.parent.isVisible)return null;this._box||(this._box=a.a.boxSizing(this.parent.node));var n=this.parent.node.getBoundingClientRect(),i=t-n.left-this._box.borderLeft,r=e-n.top-this._box.borderTop,o=this._root.hitTestTabNodes(i,r);if(!o)return null;var s=o.tabBar,l=o.top,u=o.left,c=o.width,d=o.height,h=this._box.borderLeft+this._box.borderRight,p=this._box.borderTop+this._box.borderBottom;return{tabBar:s,x:i,y:r,top:l,left:u,right:n.width-h-(u+c),bottom:n.height-p-(l+d),width:c,height:d}},e.prototype.init=function(){var e=this;t.prototype.init.call(this),Object(s.e)(this,(function(t){e.attachWidget(t)})),Object(s.e)(this.handles(),(function(t){e.parent.node.appendChild(t)})),this.parent.fit()},e.prototype.attachWidget=function(t){this.parent.node!==t.node.parentNode&&(this._items.set(t,new U(t)),this.parent.isAttached&&l.c.sendMessage(t,W.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&l.c.sendMessage(t,W.Msg.AfterAttach))},e.prototype.detachWidget=function(t){if(this.parent.node===t.node.parentNode){this.parent.isAttached&&l.c.sendMessage(t,W.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&l.c.sendMessage(t,W.Msg.AfterDetach);var e=this._items.get(t);e&&(this._items.delete(t),e.dispose())}},e.prototype.onBeforeShow=function(e){t.prototype.onBeforeShow.call(this,e),this.parent.update()},e.prototype.onBeforeAttach=function(e){t.prototype.onBeforeAttach.call(this,e),this.parent.fit()},e.prototype.onChildShown=function(t){this.parent.fit()},e.prototype.onChildHidden=function(t){this.parent.fit()},e.prototype.onResize=function(t){this.parent.isVisible&&this._update(t.width,t.height)},e.prototype.onUpdateRequest=function(t){this.parent.isVisible&&this._update(-1,-1)},e.prototype.onFitRequest=function(t){this.parent.isAttached&&this._fit()},e.prototype._removeWidget=function(t){if(this._root){var e=this._root.findTabNode(t);if(e)if(e.tabBar.titles.length>1)e.tabBar.removeTab(t.title);else if(e.tabBar.dispose(),this._root!==e){this._root.holdAllSizes();var n=e.parent;e.parent=null;var i=s.a.removeFirstOf(n.children,e),r=s.a.removeAt(n.handles,i);if(s.a.removeAt(n.sizers,i),r.parentNode&&r.parentNode.removeChild(r),n.children.length>1)n.syncHandles();else{var o=n.parent;n.parent=null;var a=n.children[0],l=n.handles[0];if(n.children.length=0,n.handles.length=0,n.sizers.length=0,l.parentNode&&l.parentNode.removeChild(l),this._root===n)return a.parent=null,void(this._root=a);var u=o,c=u.children.indexOf(n);if(a instanceof lt.TabLayoutNode)return a.parent=u,void(u.children[c]=a);var d=s.a.removeAt(u.handles,c);s.a.removeAt(u.children,c),s.a.removeAt(u.sizers,c),d.parentNode&&d.parentNode.removeChild(d);for(var h=0,p=a.children.length;h<p;++h){var f=a.children[h],m=a.handles[h],g=a.sizers[h];s.a.insert(u.children,c+h,f),s.a.insert(u.handles,c+h,m),s.a.insert(u.sizers,c+h,g),f.parent=u}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,u.syncHandles()}}else this._root=null}},e.prototype._insertTab=function(t,e,n,i){if(t!==e){if(!this._root){var r=new lt.TabLayoutNode(this._createTabBar());return r.tabBar.addTab(t.title),void(this._root=r)}var o;n||(n=this._root.findFirstTabNode()),-1===n.tabBar.titles.indexOf(t.title)&&(this._removeWidget(t),t.hide()),o=e?n.tabBar.titles.indexOf(e.title):n.tabBar.currentIndex,n.tabBar.insertTab(o+(i?1:0),t.title)}},e.prototype._insertSplit=function(t,e,n,i,r){if(t!==e||!n||1!==n.tabBar.titles.length){this._removeWidget(t);var o=new lt.TabLayoutNode(this._createTabBar());if(o.tabBar.addTab(t.title),this._root){if(!n||!n.parent){var a=this._splitRoot(i),l=r?a.children.length:0;a.normalizeSizes();var u=lt.createSizer(n?1:lt.GOLDEN_RATIO);return s.a.insert(a.children,l,o),s.a.insert(a.sizers,l,u),s.a.insert(a.handles,l,this._createHandle()),o.parent=a,a.normalizeSizes(),void a.syncHandles()}var c=n.parent;if(c.orientation===i){var d=c.children.indexOf(n);c.normalizeSizes();var h=c.sizers[d].sizeHint/=2,p=d+(r?1:0);return s.a.insert(c.children,p,o),s.a.insert(c.sizers,p,lt.createSizer(h)),s.a.insert(c.handles,p,this._createHandle()),o.parent=c,void c.syncHandles()}var f=s.a.removeFirstOf(c.children,n),m=new lt.SplitLayoutNode(i);m.normalized=!0,m.children.push(n),m.sizers.push(lt.createSizer(.5)),m.handles.push(this._createHandle()),n.parent=m;var g=r?1:0;s.a.insert(m.children,g,o),s.a.insert(m.sizers,g,lt.createSizer(.5)),s.a.insert(m.handles,g,this._createHandle()),o.parent=m,m.syncHandles(),s.a.insert(c.children,f,m),m.parent=c}else this._root=o}},e.prototype._splitRoot=function(t){var e=this._root;if(e instanceof lt.SplitLayoutNode&&e.orientation===t)return e;var n=this._root=new lt.SplitLayoutNode(t);return e&&(n.children.push(e),n.sizers.push(lt.createSizer(0)),n.handles.push(this._createHandle()),e.parent=n),n},e.prototype._fit=function(){var t=0,e=0;if(this._root){var n=this._root.fit(this._spacing,this._items);t=n.minWidth,e=n.minHeight}var i=this._box=a.a.boxSizing(this.parent.node);t+=i.horizontalSum,e+=i.verticalSum;var r=this.parent.node.style;r.minWidth=t+"px",r.minHeight=e+"px",this._dirty=!0,this.parent.parent&&l.c.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&l.c.sendMessage(this.parent,W.Msg.UpdateRequest)},e.prototype._update=function(t,e){if(this._dirty=!1,this._root){t<0&&(t=this.parent.node.offsetWidth),e<0&&(e=this.parent.node.offsetHeight),this._box||(this._box=a.a.boxSizing(this.parent.node));var n=this._box.paddingTop,i=this._box.paddingLeft,r=t-this._box.horizontalSum,o=e-this._box.verticalSum;this._root.update(n,i,r,o,this._spacing,this._items)}},e.prototype._createTabBar=function(){var t=this.renderer.createTabBar();return t.orientation="horizontal",this.parent&&(t.parent=this.parent,this.attachWidget(t)),t},e.prototype._createHandle=function(){var t=this.renderer.createHandle(),e=t.style;return e.position="absolute",e.top="0",e.left="0",e.width="0",e.height="0",this.parent&&this.parent.node.appendChild(t),t},e}(V);!function(t){function e(t){var e=new I;return e.sizeHint=t,e.size=t,e}function n(t,e){return"tab-area"===t.type?function(t,e){if(0===t.widgets.length)return null;var n=[];if(Object(s.e)(t.widgets,(function(t){e.has(t)||(e.add(t),n.push(t))})),0===n.length)return null;var i=t.currentIndex;-1!==i&&(i<0||i>=n.length)&&(i=0);return{type:"tab-area",widgets:n,currentIndex:i}}(t,e):function(t,e){for(var i=t.orientation,r=[],o=[],s=0,a=t.children.length;s<a;++s){var l=n(t.children[s],e);l&&("tab-area"===l.type||l.orientation!==i?(r.push(l),o.push(Math.abs(t.sizes[s]||0))):(r.push.apply(r,l.children),o.push.apply(o,l.sizes)))}if(0===r.length)return null;if(1===r.length)return r[0];return{type:"split-area",orientation:i,children:r,sizes:o}}(t,e)}function i(t,n){return"tab-area"===t.type?function(t,e){var n=e.createTabBar();return Object(s.e)(t.widgets,(function(t){t.hide(),n.addTab(t.title)})),n.currentIndex=t.currentIndex,new r(n)}(t,n):function(t,n){var r=new o(t.orientation);return Object(s.e)(t.children,(function(o,s){var a=i(o,n),l=e(t.sizes[s]),u=n.createHandle();r.children.push(a),r.handles.push(u),r.sizers.push(l),a.parent=r})),r.syncHandles(),r.normalizeSizes(),r}(t,n)}t.GOLDEN_RATIO=.618,t.clampSpacing=function(t){return Math.max(0,Math.floor(t))},t.createSizer=e,t.normalizeAreaConfig=n,t.realizeAreaConfig=i;var r=function(){function t(t){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;var e=new I,n=new I;e.stretch=0,n.stretch=1,this.tabBar=t,this.sizers=[e,n]}return Object.defineProperty(t.prototype,"top",{get:function(){return this._top},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this._left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),t.prototype.iterAllWidgets=function(){return Object(s.d)(Object(s.m)(this.tabBar),this.iterUserWidgets())},t.prototype.iterUserWidgets=function(){return Object(s.k)(this.tabBar.titles,(function(t){return t.owner}))},t.prototype.iterSelectedWidgets=function(){var t=this.tabBar.currentTitle;return t?Object(s.m)(t.owner):Object(s.f)()},t.prototype.iterTabBars=function(){return Object(s.m)(this.tabBar)},t.prototype.iterHandles=function(){return Object(s.f)()},t.prototype.findTabNode=function(t){return-1!==this.tabBar.titles.indexOf(t.title)?this:null},t.prototype.findSplitNode=function(t){return null},t.prototype.findFirstTabNode=function(){return this},t.prototype.hitTestTabNodes=function(t,e){return t<this._left||t>=this._left+this._width||e<this._top||e>=this._top+this._height?null:this},t.prototype.createConfig=function(){return{type:"tab-area",widgets:this.tabBar.titles.map((function(t){return t.owner})),currentIndex:this.tabBar.currentIndex}},t.prototype.holdAllSizes=function(){},t.prototype.fit=function(t,e){var n=0,i=0,r=e.get(this.tabBar),o=this.tabBar.currentTitle,s=o?e.get(o.owner):void 0,a=this.sizers,l=a[0],u=a[1];return r&&r.fit(),s&&s.fit(),r&&!r.isHidden?(n=Math.max(n,r.minWidth),i+=r.minHeight,l.minSize=r.minHeight,l.maxSize=r.maxHeight):(l.minSize=0,l.maxSize=0),s&&!s.isHidden?(n=Math.max(n,s.minWidth),i+=s.minHeight,u.minSize=s.minHeight,u.maxSize=1/0):(u.minSize=0,u.maxSize=1/0),{minWidth:n,minHeight:i,maxWidth:1/0,maxHeight:1/0}},t.prototype.update=function(t,e,n,i,r,o){this._top=e,this._left=t,this._width=n,this._height=i;var s=o.get(this.tabBar),a=this.tabBar.currentTitle,l=a?o.get(a.owner):void 0;if(L.calc(this.sizers,i),s&&!s.isHidden){var u=this.sizers[0].size;s.update(t,e,n,u),e+=u}if(l&&!l.isHidden){u=this.sizers[1].size;l.update(t,e,n,u)}},t}();t.TabLayoutNode=r;var o=function(){function t(t){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=t}return t.prototype.iterAllWidgets=function(){var t=Object(s.k)(this.children,(function(t){return t.iterAllWidgets()}));return new s.b(t)},t.prototype.iterUserWidgets=function(){var t=Object(s.k)(this.children,(function(t){return t.iterUserWidgets()}));return new s.b(t)},t.prototype.iterSelectedWidgets=function(){var t=Object(s.k)(this.children,(function(t){return t.iterSelectedWidgets()}));return new s.b(t)},t.prototype.iterTabBars=function(){var t=Object(s.k)(this.children,(function(t){return t.iterTabBars()}));return new s.b(t)},t.prototype.iterHandles=function(){var t=Object(s.k)(this.children,(function(t){return t.iterHandles()}));return Object(s.d)(this.handles,new s.b(t))},t.prototype.findTabNode=function(t){for(var e=0,n=this.children.length;e<n;++e){var i=this.children[e].findTabNode(t);if(i)return i}return null},t.prototype.findSplitNode=function(t){var e=this.handles.indexOf(t);if(-1!==e)return{index:e,node:this};for(var n=0,i=this.children.length;n<i;++n){var r=this.children[n].findSplitNode(t);if(r)return r}return null},t.prototype.findFirstTabNode=function(){return 0===this.children.length?null:this.children[0].findFirstTabNode()},t.prototype.hitTestTabNodes=function(t,e){for(var n=0,i=this.children.length;n<i;++n){var r=this.children[n].hitTestTabNodes(t,e);if(r)return r}return null},t.prototype.createConfig=function(){var t=this.orientation,e=this.createNormalizedSizes();return{type:"split-area",orientation:t,children:this.children.map((function(t){return t.createConfig()})),sizes:e}},t.prototype.syncHandles=function(){var t=this;Object(s.e)(this.handles,(function(e,n){e.setAttribute("data-orientation",t.orientation),n===t.handles.length-1?(e.classList.add("lm-mod-hidden"),e.classList.add("p-mod-hidden")):(e.classList.remove("lm-mod-hidden"),e.classList.remove("p-mod-hidden"))}))},t.prototype.holdSizes=function(){Object(s.e)(this.sizers,(function(t){t.sizeHint=t.size}))},t.prototype.holdAllSizes=function(){Object(s.e)(this.children,(function(t){return t.holdAllSizes()})),this.holdSizes()},t.prototype.normalizeSizes=function(){var t=this.sizers.length;if(0!==t){this.holdSizes();var e=Object(s.n)(this.sizers,(function(t,e){return t+e.sizeHint}),0);0===e?Object(s.e)(this.sizers,(function(e){e.size=e.sizeHint=1/t})):Object(s.e)(this.sizers,(function(t){t.size=t.sizeHint/=e})),this.normalized=!0}},t.prototype.createNormalizedSizes=function(){var t=this.sizers.length;if(0===t)return[];var e=this.sizers.map((function(t){return t.size})),n=Object(s.n)(e,(function(t,e){return t+e}),0);return 0===n?Object(s.e)(e,(function(n,i){e[i]=1/t})):Object(s.e)(e,(function(t,i){e[i]=t/n})),e},t.prototype.fit=function(t,e){for(var n="horizontal"===this.orientation,i=Math.max(0,this.children.length-1)*t,r=n?i:0,o=n?0:i,s=0,a=this.children.length;s<a;++s){var l=this.children[s].fit(t,e);n?(o=Math.max(o,l.minHeight),r+=l.minWidth,this.sizers[s].minSize=l.minWidth):(r=Math.max(r,l.minWidth),o+=l.minHeight,this.sizers[s].minSize=l.minHeight)}return{minWidth:r,minHeight:o,maxWidth:1/0,maxHeight:1/0}},t.prototype.update=function(t,e,n,i,r,o){var a="horizontal"===this.orientation,l=Math.max(0,this.children.length-1)*r,u=Math.max(0,(a?n:i)-l);this.normalized&&(Object(s.e)(this.sizers,(function(t){t.sizeHint*=u})),this.normalized=!1),L.calc(this.sizers,u);for(var c=0,d=this.children.length;c<d;++c){var h=this.children[c],p=this.sizers[c].size,f=this.handles[c].style;a?(h.update(t,e,p,i,r,o),t+=p,f.top=e+"px",f.left=t+"px",f.width=r+"px",f.height=i+"px",t+=r):(h.update(t,e,n,p,r,o),e+=p,f.top=e+"px",f.left=t+"px",f.width=n+"px",f.height=r+"px",e+=r)}},t}();t.SplitLayoutNode=o}(lt||(lt={}));var ct,dt=function(t){function e(n){void 0===n&&(n={});var i=t.call(this,{node:ct.createNode()})||this;return i._currentIndex=-1,i._titles=[],i._titlesEditable=!1,i._previousTitle=null,i._dragData=null,i._tabMoved=new c.a(i),i._currentChanged=new c.a(i),i._tabCloseRequested=new c.a(i),i._tabDetachRequested=new c.a(i),i._tabActivateRequested=new c.a(i),i.addClass("lm-TabBar"),i.addClass("p-TabBar"),i.setFlag(W.Flag.DisallowLayout),i.tabsMovable=n.tabsMovable||!1,i.titlesEditable=n.titlesEditable||!1,i.allowDeselect=n.allowDeselect||!1,i.insertBehavior=n.insertBehavior||"select-tab-if-needed",i.removeBehavior=n.removeBehavior||"select-tab-after",i.renderer=n.renderer||e.defaultRenderer,i._orientation=n.orientation||"horizontal",i.dataset.orientation=i._orientation,i}return B(e,t),e.prototype.dispose=function(){this._releaseMouse(),this._titles.length=0,this._previousTitle=null,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabMoved",{get:function(){return this._tabMoved},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabActivateRequested",{get:function(){return this._tabActivateRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabCloseRequested",{get:function(){return this._tabCloseRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabDetachRequested",{get:function(){return this._tabDetachRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titlesEditable",{get:function(){return this._titlesEditable},set:function(t){this._titlesEditable=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTitle",{get:function(){return this._titles[this._currentIndex]||null},set:function(t){this.currentIndex=t?this._titles.indexOf(t):-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentIndex",{get:function(){return this._currentIndex},set:function(t){if((t<0||t>=this._titles.length)&&(t=-1),this._currentIndex!==t){var e=this._currentIndex,n=this._titles[e]||null,i=t,r=this._titles[i]||null;this._currentIndex=i,this._previousTitle=n,this.update(),this._currentChanged.emit({previousIndex:e,previousTitle:n,currentIndex:i,currentTitle:r})}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._releaseMouse(),this._orientation=t,this.dataset.orientation=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titles",{get:function(){return this._titles},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("lm-TabBar-content")[0]},enumerable:!0,configurable:!0}),e.prototype.addTab=function(t){return this.insertTab(this._titles.length,t)},e.prototype.insertTab=function(t,e){this._releaseMouse();var n=ct.asTitle(e),i=this._titles.indexOf(n),r=Math.max(0,Math.min(t,this._titles.length));return-1===i?(s.a.insert(this._titles,r,n),n.changed.connect(this._onTitleChanged,this),this.update(),this._adjustCurrentForInsert(r,n),n):(r===this._titles.length&&r--,i===r||(s.a.move(this._titles,i,r),this.update(),this._adjustCurrentForMove(i,r)),n)},e.prototype.removeTab=function(t){this.removeTabAt(this._titles.indexOf(t))},e.prototype.removeTabAt=function(t){this._releaseMouse();var e=s.a.removeAt(this._titles,t);e&&(e.changed.disconnect(this._onTitleChanged,this),e===this._previousTitle&&(this._previousTitle=null),this.update(),this._adjustCurrentForRemove(t,e))},e.prototype.clearTabs=function(){if(0!==this._titles.length){this._releaseMouse();for(var t=0,e=this._titles;t<e.length;t++){e[t].changed.disconnect(this._onTitleChanged,this)}var n=this.currentIndex,i=this.currentTitle;this._currentIndex=-1,this._previousTitle=null,this._titles.length=0,this.update(),-1!==n&&this._currentChanged.emit({previousIndex:n,previousTitle:i,currentIndex:-1,currentTitle:null})}},e.prototype.releaseMouse=function(){this._releaseMouse()},e.prototype.handleEvent=function(t){switch(t.type){case"mousedown":this._evtMouseDown(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseup":this._evtMouseUp(t);break;case"dblclick":this._evtDblClick(t);break;case"keydown":this._evtKeyDown(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("mousedown",this),this.node.addEventListener("dblclick",this)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("mousedown",this),this.node.removeEventListener("dblclick",this),this._releaseMouse()},e.prototype.onUpdateRequest=function(t){for(var e=this._titles,n=this.renderer,i=this.currentTitle,r=new Array(e.length),o=0,s=e.length;o<s;++o){var a=e[o],l=a===i,u=l?s:s-o-1;r[o]=n.renderTab({title:a,current:l,zIndex:u})}M.render(r,this.contentNode)},e.prototype._evtDblClick=function(t){if(this.titlesEditable){var e=this.contentNode.children,n=s.a.findFirstIndex(e,(function(e){return a.a.hitTest(e,t.clientX,t.clientY)}));if(-1!==n){var i=this.titles[n],r=e[n].querySelector(".lm-TabBar-tabLabel");if(r&&r.contains(t.target)){var o=i.label||"",l=r.innerHTML;r.innerHTML="";var u=document.createElement("input");u.classList.add("lm-TabBar-tabInput"),u.value=o,r.appendChild(u);var c=function(){u.removeEventListener("blur",c),r.innerHTML=l};u.addEventListener("dblclick",(function(t){return t.stopPropagation()})),u.addEventListener("blur",c),u.addEventListener("keydown",(function(t){"Enter"===t.key?(""!==u.value&&(i.label=i.caption=u.value),c()):"Escape"===t.key&&c()})),u.select(),u.focus(),r.children.length>0&&r.children[0].focus()}}}},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation(),27===t.keyCode&&this._releaseMouse()},e.prototype._evtMouseDown=function(t){if((0===t.button||1===t.button)&&!this._dragData){var e=this.contentNode.children,n=s.a.findFirstIndex(e,(function(e){return a.a.hitTest(e,t.clientX,t.clientY)}));if(-1!==n&&(t.preventDefault(),t.stopPropagation(),this._dragData={tab:e[n],index:n,pressX:t.clientX,pressY:t.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:!1,dragAborted:!1,detachRequested:!1},document.addEventListener("mouseup",this,!0),1!==t.button)){var i=e[n].querySelector(this.renderer.closeIconSelector);i&&i.contains(t.target)||(this.tabsMovable&&(document.addEventListener("mousemove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0)),this.allowDeselect&&this.currentIndex===n?this.currentIndex=-1:this.currentIndex=n,-1!==this.currentIndex&&this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle}))}}},e.prototype._evtMouseMove=function(t){var e=this._dragData;if(e){t.preventDefault(),t.stopPropagation();var n=this.contentNode.children;if(e.dragActive||ct.dragExceeded(e,t)){if(!e.dragActive){var i=e.tab.getBoundingClientRect();"horizontal"===this._orientation?(e.tabPos=e.tab.offsetLeft,e.tabSize=i.width,e.tabPressPos=e.pressX-i.left):(e.tabPos=e.tab.offsetTop,e.tabSize=i.height,e.tabPressPos=e.pressY-i.top),e.tabLayout=ct.snapTabLayout(n,this._orientation),e.contentRect=this.contentNode.getBoundingClientRect(),e.override=P.overrideCursor("default"),e.tab.classList.add("lm-mod-dragging"),this.addClass("lm-mod-dragging"),e.tab.classList.add("p-mod-dragging"),this.addClass("p-mod-dragging"),e.dragActive=!0}if(!e.detachRequested&&ct.detachExceeded(e,t)){e.detachRequested=!0;var r=e.index,o=t.clientX,s=t.clientY,a=n[r],l=this._titles[r];if(this._tabDetachRequested.emit({index:r,title:l,tab:a,clientX:o,clientY:s}),e.dragAborted)return}ct.layoutTabs(n,e,t,this._orientation)}}},e.prototype._evtMouseUp=function(t){var e=this;if(0===t.button||1===t.button){var n=this._dragData;if(n){if(t.preventDefault(),t.stopPropagation(),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0),!n.dragActive){this._dragData=null;var i=this.contentNode.children,r=s.a.findFirstIndex(i,(function(e){return a.a.hitTest(e,t.clientX,t.clientY)}));if(r!==n.index)return;var o=this._titles[r];if(!o.closable)return;if(1===t.button)return void this._tabCloseRequested.emit({index:r,title:o});var u=i[r].querySelector(this.renderer.closeIconSelector);return u&&u.contains(t.target)?void this._tabCloseRequested.emit({index:r,title:o}):void 0}if(0===t.button){ct.finalizeTabPosition(n,this._orientation),n.tab.classList.remove("lm-mod-dragging"),n.tab.classList.remove("p-mod-dragging");var c=ct.parseTransitionDuration(n.tab);setTimeout((function(){if(!n.dragAborted){e._dragData=null,ct.resetTabPositions(e.contentNode.children,e._orientation),n.override.dispose(),e.removeClass("lm-mod-dragging"),e.removeClass("p-mod-dragging");var t=n.index,i=n.targetIndex;-1!==i&&t!==i&&(s.a.move(e._titles,t,i),e._adjustCurrentForMove(t,i),e._tabMoved.emit({fromIndex:t,toIndex:i,title:e._titles[i]}),l.c.sendMessage(e,W.Msg.UpdateRequest))}}),c)}}}},e.prototype._releaseMouse=function(){var t=this._dragData;t&&(this._dragData=null,document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0),t.dragAborted=!0,t.dragActive&&(ct.resetTabPositions(this.contentNode.children,this._orientation),t.override.dispose(),t.tab.classList.remove("lm-mod-dragging"),this.removeClass("lm-mod-dragging"),t.tab.classList.remove("p-mod-dragging"),this.removeClass("p-mod-dragging")))},e.prototype._adjustCurrentForInsert=function(t,e){var n=this.currentTitle,i=this._currentIndex,r=this.insertBehavior;if("select-tab"===r||"select-tab-if-needed"===r&&-1===i)return this._currentIndex=t,this._previousTitle=n,void this._currentChanged.emit({previousIndex:i,previousTitle:n,currentIndex:t,currentTitle:e});i>=t&&this._currentIndex++},e.prototype._adjustCurrentForMove=function(t,e){this._currentIndex===t?this._currentIndex=e:this._currentIndex<t&&this._currentIndex>=e?this._currentIndex++:this._currentIndex>t&&this._currentIndex<=e&&this._currentIndex--},e.prototype._adjustCurrentForRemove=function(t,e){var n=this._currentIndex,i=this.removeBehavior;if(n===t){if(0===this._titles.length)return this._currentIndex=-1,void this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:-1,currentTitle:null});if("select-tab-after"===i)return this._currentIndex=Math.min(t,this._titles.length-1),void this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:this._currentIndex,currentTitle:this.currentTitle});if("select-tab-before"===i)return this._currentIndex=Math.max(0,t-1),void this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:this._currentIndex,currentTitle:this.currentTitle});if("select-previous-tab"===i)return this._previousTitle?(this._currentIndex=this._titles.indexOf(this._previousTitle),this._previousTitle=null):this._currentIndex=Math.min(t,this._titles.length-1),void this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:this._currentIndex,currentTitle:this.currentTitle});this._currentIndex=-1,this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:-1,currentTitle:null})}else n>t&&this._currentIndex--},e.prototype._onTitleChanged=function(t){this.update()},e}(W);!function(t){var e=function(){function t(){this.closeIconSelector=".lm-TabBar-tabCloseIcon",this._tabID=0,this._tabKeys=new WeakMap}return t.prototype.renderTab=function(t){var e=t.title.caption,n=this.createTabKey(t),i=this.createTabStyle(t),r=this.createTabClass(t),o=this.createTabDataset(t);return D.li({key:n,className:r,title:e,style:i,dataset:o},this.renderIcon(t),this.renderLabel(t),this.renderCloseIcon(t))},t.prototype.renderIcon=function(t){var e=t.title,n=this.createIconClass(t);return"string"==typeof e.icon?D.div({className:n},e.iconLabel):D.div({className:n},e.icon,e.iconLabel)},t.prototype.renderLabel=function(t){return D.div({className:"lm-TabBar-tabLabel p-TabBar-tabLabel"},t.title.label)},t.prototype.renderCloseIcon=function(t){return D.div({className:"lm-TabBar-tabCloseIcon p-TabBar-tabCloseIcon"})},t.prototype.createTabKey=function(t){var e=this._tabKeys.get(t.title);return void 0===e&&(e="tab-key-"+this._tabID++,this._tabKeys.set(t.title,e)),e},t.prototype.createTabStyle=function(t){return{zIndex:""+t.zIndex}},t.prototype.createTabClass=function(t){var e="lm-TabBar-tab";return e+=" p-TabBar-tab",t.title.className&&(e+=" "+t.title.className),t.title.closable&&(e+=" lm-mod-closable",e+=" p-mod-closable"),t.current&&(e+=" lm-mod-current",e+=" p-mod-current"),e},t.prototype.createTabDataset=function(t){return t.title.dataset},t.prototype.createIconClass=function(t){var e="lm-TabBar-tabIcon";e+=" p-TabBar-tabIcon";var n=t.title.iconClass;return n?e+" "+n:e},t}();t.Renderer=e,t.defaultRenderer=new e}(dt||(dt={})),function(t){t.DRAG_THRESHOLD=5,t.DETACH_THRESHOLD=20,t.createNode=function(){var t=document.createElement("div"),e=document.createElement("ul");return e.className="lm-TabBar-content",e.classList.add("p-TabBar-content"),t.appendChild(e),t},t.asTitle=function(t){return t instanceof N?t:new N(t)},t.parseTransitionDuration=function(t){var e=window.getComputedStyle(t);return 1e3*(parseFloat(e.transitionDuration)||0)},t.snapTabLayout=function(t,e){for(var n=new Array(t.length),i=0,r=t.length;i<r;++i){var o=t[i],s=window.getComputedStyle(o);n[i]="horizontal"===e?{pos:o.offsetLeft,size:o.offsetWidth,margin:parseFloat(s.marginLeft)||0}:{pos:o.offsetTop,size:o.offsetHeight,margin:parseFloat(s.marginTop)||0}}return n},t.dragExceeded=function(e,n){var i=Math.abs(n.clientX-e.pressX),r=Math.abs(n.clientY-e.pressY);return i>=t.DRAG_THRESHOLD||r>=t.DRAG_THRESHOLD},t.detachExceeded=function(e,n){var i=e.contentRect;return n.clientX<i.left-t.DETACH_THRESHOLD||n.clientX>=i.right+t.DETACH_THRESHOLD||n.clientY<i.top-t.DETACH_THRESHOLD||n.clientY>=i.bottom+t.DETACH_THRESHOLD},t.layoutTabs=function(t,e,n,i){var r,o,s,a;"horizontal"===i?(r=e.pressX,o=n.clientX-e.contentRect.left,s=n.clientX,a=e.contentRect.width):(r=e.pressY,o=n.clientY-e.contentRect.top,s=n.clientY,a=e.contentRect.height);for(var l=e.index,u=o-e.tabPressPos,c=u+e.tabSize,d=0,h=t.length;d<h;++d){var p=void 0,f=e.tabLayout[d],m=f.pos+(f.size>>1);if(d<e.index&&u<m)p=e.tabSize+e.tabLayout[d+1].margin+"px",l=Math.min(l,d);else if(d>e.index&&c>m)p=-e.tabSize-f.margin+"px",l=Math.max(l,d);else if(d===e.index){var g=s-r,v=a-(e.tabPos+e.tabSize);p=Math.max(-e.tabPos,Math.min(g,v))+"px"}else p="";"horizontal"===i?t[d].style.left=p:t[d].style.top=p}e.targetIndex=l},t.finalizeTabPosition=function(t,e){var n,i;if(n="horizontal"===e?t.contentRect.width:t.contentRect.height,t.targetIndex===t.index)i=0;else if(t.targetIndex>t.index){i=(r=t.tabLayout[t.targetIndex]).pos+r.size-t.tabSize-t.tabPos}else{var r;i=(r=t.tabLayout[t.targetIndex]).pos-t.tabPos}var o=n-(t.tabPos+t.tabSize),s=Math.max(-t.tabPos,Math.min(i,o));"horizontal"===e?t.tab.style.left=s+"px":t.tab.style.top=s+"px"},t.resetTabPositions=function(t,e){Object(s.e)(t,(function(t){"horizontal"===e?t.style.left="":t.style.top=""}))}}(ct||(ct={}));var ht,pt=function(t){function e(n){void 0===n&&(n={});var i=t.call(this)||this;i._drag=null,i._tabsMovable=!0,i._tabsConstrained=!1,i._pressData=null,i._layoutModified=new c.a(i),i.addClass("lm-DockPanel"),i.addClass("p-DockPanel"),i._mode=n.mode||"multiple-document",i._renderer=n.renderer||e.defaultRenderer,i._edges=n.edges||ht.DEFAULT_EDGES,void 0!==n.tabsMovable&&(i._tabsMovable=n.tabsMovable),void 0!==n.tabsConstrained&&(i._tabsConstrained=n.tabsConstrained),i.dataset.mode=i._mode;var r={createTabBar:function(){return i._createTabBar()},createHandle:function(){return i._createHandle()}};return i.layout=new ut({renderer:r,spacing:n.spacing}),i.overlay=n.overlay||new e.Overlay,i.node.appendChild(i.overlay.node),i}return B(e,t),e.prototype.dispose=function(){this._releaseMouse(),this.overlay.hide(0),this._drag&&this._drag.dispose(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"layoutModified",{get:function(){return this._layoutModified},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this.layout.renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this.layout.spacing},set:function(t){this.layout.spacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(t){if(this._mode!==t){this._mode=t,this.dataset.mode=t;var e=this.layout;switch(t){case"multiple-document":Object(s.e)(e.tabBars(),(function(t){t.show()}));break;case"single-document":e.restoreLayout(ht.createSingleDocumentConfig(this));break;default:throw"unreachable"}l.c.postMessage(this,ht.LayoutModified)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabsMovable",{get:function(){return this._tabsMovable},set:function(t){this._tabsMovable=t,Object(s.e)(this.tabBars(),(function(e){e.tabsMovable=t}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabsConstrained",{get:function(){return this._tabsConstrained},set:function(t){this._tabsConstrained=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.layout.isEmpty},enumerable:!0,configurable:!0}),e.prototype.widgets=function(){return this.layout.widgets()},e.prototype.selectedWidgets=function(){return this.layout.selectedWidgets()},e.prototype.tabBars=function(){return this.layout.tabBars()},e.prototype.handles=function(){return this.layout.handles()},e.prototype.selectWidget=function(t){var e=Object(s.i)(this.tabBars(),(function(e){return-1!==e.titles.indexOf(t.title)}));if(!e)throw new Error("Widget is not contained in the dock panel.");e.currentTitle=t.title},e.prototype.activateWidget=function(t){this.selectWidget(t),t.activate()},e.prototype.saveLayout=function(){return this.layout.saveLayout()},e.prototype.restoreLayout=function(t){this._mode="multiple-document",this.layout.restoreLayout(t),(a.b.IS_EDGE||a.b.IS_IE)&&l.c.flush(),l.c.postMessage(this,ht.LayoutModified)},e.prototype.addWidget=function(t,e){void 0===e&&(e={}),"single-document"===this._mode?this.layout.addWidget(t):this.layout.addWidget(t,e),l.c.postMessage(this,ht.LayoutModified)},e.prototype.processMessage=function(e){"layout-modified"===e.type?this._layoutModified.emit(void 0):t.prototype.processMessage.call(this,e)},e.prototype.handleEvent=function(t){switch(t.type){case"lm-dragenter":this._evtDragEnter(t);break;case"lm-dragleave":this._evtDragLeave(t);break;case"lm-dragover":this._evtDragOver(t);break;case"lm-drop":this._evtDrop(t);break;case"mousedown":this._evtMouseDown(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseup":this._evtMouseUp(t);break;case"keydown":this._evtKeyDown(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("lm-dragenter",this),this.node.addEventListener("lm-dragleave",this),this.node.addEventListener("lm-dragover",this),this.node.addEventListener("lm-drop",this),this.node.addEventListener("mousedown",this)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("lm-dragenter",this),this.node.removeEventListener("lm-dragleave",this),this.node.removeEventListener("lm-dragover",this),this.node.removeEventListener("lm-drop",this),this.node.removeEventListener("mousedown",this),this._releaseMouse()},e.prototype.onChildAdded=function(t){ht.isGeneratedTabBarProperty.get(t.child)||(t.child.addClass("lm-DockPanel-widget"),t.child.addClass("p-DockPanel-widget"))},e.prototype.onChildRemoved=function(t){ht.isGeneratedTabBarProperty.get(t.child)||(t.child.removeClass("lm-DockPanel-widget"),t.child.removeClass("p-DockPanel-widget"),l.c.postMessage(this,ht.LayoutModified))},e.prototype._evtDragEnter=function(t){t.mimeData.hasData("application/vnd.lumino.widget-factory")&&(t.preventDefault(),t.stopPropagation())},e.prototype._evtDragLeave=function(t){t.preventDefault(),t.stopPropagation(),this.overlay.hide(1)},e.prototype._evtDragOver=function(t){t.preventDefault(),t.stopPropagation(),this._tabsConstrained&&t.source!==this||"invalid"===this._showOverlay(t.clientX,t.clientY)?t.dropAction="none":t.dropAction=t.proposedAction},e.prototype._evtDrop=function(t){if(t.preventDefault(),t.stopPropagation(),this.overlay.hide(0),"none"!==t.proposedAction){var e=t.clientX,n=t.clientY,i=ht.findDropTarget(this,e,n,this._edges),r=i.zone,o=i.target;if("invalid"!==r){var s=t.mimeData.getData("application/vnd.lumino.widget-factory");if("function"==typeof s){var a=s();if(a instanceof W)if(a.contains(this))t.dropAction="none";else{var l=o?ht.getDropRef(o.tabBar):null;switch(r){case"root-all":this.addWidget(a);break;case"root-top":this.addWidget(a,{mode:"split-top"});break;case"root-left":this.addWidget(a,{mode:"split-left"});break;case"root-right":this.addWidget(a,{mode:"split-right"});break;case"root-bottom":this.addWidget(a,{mode:"split-bottom"});break;case"widget-all":this.addWidget(a,{mode:"tab-after",ref:l});break;case"widget-top":this.addWidget(a,{mode:"split-top",ref:l});break;case"widget-left":this.addWidget(a,{mode:"split-left",ref:l});break;case"widget-right":this.addWidget(a,{mode:"split-right",ref:l});break;case"widget-bottom":this.addWidget(a,{mode:"split-bottom",ref:l});break;case"widget-tab":this.addWidget(a,{mode:"tab-after",ref:l});break;default:throw"unreachable"}t.dropAction=t.proposedAction,this.activateWidget(a)}else t.dropAction="none"}else t.dropAction="none"}else t.dropAction="none"}else t.dropAction="none"},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation(),27===t.keyCode&&(this._releaseMouse(),l.c.postMessage(this,ht.LayoutModified))},e.prototype._evtMouseDown=function(t){if(0===t.button){var e=this.layout,n=t.target,i=Object(s.i)(e.handles(),(function(t){return t.contains(n)}));if(i){t.preventDefault(),t.stopPropagation(),document.addEventListener("keydown",this,!0),document.addEventListener("mouseup",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("contextmenu",this,!0);var r=i.getBoundingClientRect(),o=t.clientX-r.left,a=t.clientY-r.top,l=window.getComputedStyle(i),u=P.overrideCursor(l.cursor);this._pressData={handle:i,deltaX:o,deltaY:a,override:u}}}},e.prototype._evtMouseMove=function(t){if(this._pressData){t.preventDefault(),t.stopPropagation();var e=this.node.getBoundingClientRect(),n=t.clientX-e.left-this._pressData.deltaX,i=t.clientY-e.top-this._pressData.deltaY;this.layout.moveHandle(this._pressData.handle,n,i)}},e.prototype._evtMouseUp=function(t){0===t.button&&(t.preventDefault(),t.stopPropagation(),this._releaseMouse(),l.c.postMessage(this,ht.LayoutModified))},e.prototype._releaseMouse=function(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,document.removeEventListener("keydown",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("contextmenu",this,!0))},e.prototype._showOverlay=function(t,e){var n,i,r,o,s=ht.findDropTarget(this,t,e,this._edges),l=s.zone,u=s.target;if("invalid"===l)return this.overlay.hide(100),l;var c=a.a.boxSizing(this.node),d=this.node.getBoundingClientRect();switch(l){case"root-all":n=c.paddingTop,i=c.paddingLeft,r=c.paddingRight,o=c.paddingBottom;break;case"root-top":n=c.paddingTop,i=c.paddingLeft,r=c.paddingRight,o=d.height*ht.GOLDEN_RATIO;break;case"root-left":n=c.paddingTop,i=c.paddingLeft,r=d.width*ht.GOLDEN_RATIO,o=c.paddingBottom;break;case"root-right":n=c.paddingTop,i=d.width*ht.GOLDEN_RATIO,r=c.paddingRight,o=c.paddingBottom;break;case"root-bottom":n=d.height*ht.GOLDEN_RATIO,i=c.paddingLeft,r=c.paddingRight,o=c.paddingBottom;break;case"widget-all":n=u.top,i=u.left,r=u.right,o=u.bottom;break;case"widget-top":n=u.top,i=u.left,r=u.right,o=u.bottom+u.height/2;break;case"widget-left":n=u.top,i=u.left,r=u.right+u.width/2,o=u.bottom;break;case"widget-right":n=u.top,i=u.left+u.width/2,r=u.right,o=u.bottom;break;case"widget-bottom":n=u.top+u.height/2,i=u.left,r=u.right,o=u.bottom;break;case"widget-tab":var h=u.tabBar.node.getBoundingClientRect().height;n=u.top,i=u.left,r=u.right,o=u.bottom+u.height-h;break;default:throw"unreachable"}return this.overlay.show({top:n,left:i,right:r,bottom:o}),l},e.prototype._createTabBar=function(){var t=this._renderer.createTabBar();return ht.isGeneratedTabBarProperty.set(t,!0),"single-document"===this._mode&&t.hide(),t.tabsMovable=this._tabsMovable,t.allowDeselect=!1,t.removeBehavior="select-previous-tab",t.insertBehavior="select-tab-if-needed",t.tabMoved.connect(this._onTabMoved,this),t.currentChanged.connect(this._onCurrentChanged,this),t.tabCloseRequested.connect(this._onTabCloseRequested,this),t.tabDetachRequested.connect(this._onTabDetachRequested,this),t.tabActivateRequested.connect(this._onTabActivateRequested,this),t},e.prototype._createHandle=function(){return this._renderer.createHandle()},e.prototype._onTabMoved=function(){l.c.postMessage(this,ht.LayoutModified)},e.prototype._onCurrentChanged=function(t,e){var n=e.previousTitle,i=e.currentTitle;n&&n.owner.hide(),i&&i.owner.show(),(a.b.IS_EDGE||a.b.IS_IE)&&l.c.flush(),l.c.postMessage(this,ht.LayoutModified)},e.prototype._onTabActivateRequested=function(t,e){e.title.owner.activate()},e.prototype._onTabCloseRequested=function(t,e){e.title.owner.close()},e.prototype._onTabDetachRequested=function(t,e){var n=this;if(!this._drag){t.releaseMouse();var i=e.title,r=e.tab,o=e.clientX,s=e.clientY,a=new d.b;a.setData("application/vnd.lumino.widget-factory",(function(){return i.owner}));var l=r.cloneNode(!0);this._drag=new P({mimeData:a,dragImage:l,proposedAction:"move",supportedActions:"move",source:this}),r.classList.add("lm-mod-hidden"),r.classList.add("p-mod-hidden");this._drag.start(o,s).then((function(){n._drag=null,r.classList.remove("lm-mod-hidden"),r.classList.remove("p-mod-hidden")}))}},e}(W);!function(t){var e=function(){function t(){this._timer=-1,this._hidden=!0,this.node=document.createElement("div"),this.node.classList.add("lm-DockPanel-overlay"),this.node.classList.add("lm-mod-hidden"),this.node.classList.add("p-DockPanel-overlay"),this.node.classList.add("p-mod-hidden"),this.node.style.position="absolute"}return t.prototype.show=function(t){var e=this.node.style;e.top=t.top+"px",e.left=t.left+"px",e.right=t.right+"px",e.bottom=t.bottom+"px",clearTimeout(this._timer),this._timer=-1,this._hidden&&(this._hidden=!1,this.node.classList.remove("lm-mod-hidden"),this.node.classList.remove("p-mod-hidden"))},t.prototype.hide=function(t){var e=this;if(!this._hidden)return t<=0?(clearTimeout(this._timer),this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden"),void this.node.classList.add("p-mod-hidden")):void(-1===this._timer&&(this._timer=window.setTimeout((function(){e._timer=-1,e._hidden=!0,e.node.classList.add("lm-mod-hidden"),e.node.classList.add("p-mod-hidden")}),t)))},t}();t.Overlay=e;var n=function(){function t(){}return t.prototype.createTabBar=function(){var t=new dt;return t.addClass("lm-DockPanel-tabBar"),t.addClass("p-DockPanel-tabBar"),t},t.prototype.createHandle=function(){var t=document.createElement("div");return t.className="lm-DockPanel-handle",t.classList.add("p-DockPanel-handle"),t},t}();t.Renderer=n,t.defaultRenderer=new n}(pt||(pt={})),function(t){t.GOLDEN_RATIO=.618,t.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40},t.LayoutModified=new l.a("layout-modified"),t.isGeneratedTabBarProperty=new u({name:"isGeneratedTabBar",create:function(){return!1}}),t.createSingleDocumentConfig=function(t){if(t.isEmpty)return{main:null};var e=Object(s.q)(t.widgets()),n=t.selectedWidgets().next(),i=n?e.indexOf(n):-1;return{main:{type:"tab-area",widgets:e,currentIndex:i}}},t.findDropTarget=function(t,e,n,i){if(!a.a.hitTest(t.node,e,n))return{zone:"invalid",target:null};var r=t.layout;if(r.isEmpty)return{zone:"root-all",target:null};if("multiple-document"===t.mode){var o=t.node.getBoundingClientRect(),s=e-o.left+1,l=n-o.top+1,u=o.right-e,c=o.bottom-n;switch(Math.min(l,u,c,s)){case l:if(l<i.top)return{zone:"root-top",target:null};break;case u:if(u<i.right)return{zone:"root-right",target:null};break;case c:if(c<i.bottom)return{zone:"root-bottom",target:null};break;case s:if(s<i.left)return{zone:"root-left",target:null};break;default:throw"unreachable"}}var d=r.hitTestTabAreas(e,n);if(!d)return{zone:"invalid",target:null};if("single-document"===t.mode)return{zone:"widget-all",target:d};var h=d.x-d.left+1,p=d.y-d.top+1,f=d.left+d.width-d.x,m=d.top+d.height-d.y;if(p<d.tabBar.node.getBoundingClientRect().height)return{zone:"widget-tab",target:d};var g,v=Math.round(d.width/3),y=Math.round(d.height/3);if(h>v&&f>v&&p>y&&m>y)return{zone:"widget-all",target:d};switch(h/=v,p/=y,f/=v,m/=y,Math.min(h,p,f,m)){case h:g="widget-left";break;case p:g="widget-top";break;case f:g="widget-right";break;case m:g="widget-bottom";break;default:throw"unreachable"}return{zone:g,target:d}},t.getDropRef=function(t){return 0===t.titles.length?null:t.currentTitle?t.currentTitle.owner:t.titles[t.titles.length-1].owner}}(ht||(ht={}));var ft,mt,gt=function(){function t(){this._counter=0,this._widgets=[],this._activeWidget=null,this._currentWidget=null,this._numbers=new Map,this._nodes=new Map,this._activeChanged=new c.a(this),this._currentChanged=new c.a(this)}return t.prototype.dispose=function(){var t=this;this._counter<0||(this._counter=-1,c.a.clearData(this),Object(s.e)(this._widgets,(function(e){e.node.removeEventListener("focus",t,!0),e.node.removeEventListener("blur",t,!0)})),this._activeWidget=null,this._currentWidget=null,this._nodes.clear(),this._numbers.clear(),this._widgets.length=0)},Object.defineProperty(t.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeChanged",{get:function(){return this._activeChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._counter<0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentWidget",{get:function(){return this._currentWidget},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeWidget",{get:function(){return this._activeWidget},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgets",{get:function(){return this._widgets},enumerable:!0,configurable:!0}),t.prototype.focusNumber=function(t){var e=this._numbers.get(t);return void 0===e?-1:e},t.prototype.has=function(t){return this._numbers.has(t)},t.prototype.add=function(t){if(!this._numbers.has(t)){var e=t.node.contains(document.activeElement),n=e?this._counter++:-1;this._widgets.push(t),this._numbers.set(t,n),this._nodes.set(t.node,t),t.node.addEventListener("focus",this,!0),t.node.addEventListener("blur",this,!0),t.disposed.connect(this._onWidgetDisposed,this),e&&this._setWidgets(t,t)}},t.prototype.remove=function(t){var e=this;if(this._numbers.has(t)&&(t.disposed.disconnect(this._onWidgetDisposed,this),t.node.removeEventListener("focus",this,!0),t.node.removeEventListener("blur",this,!0),s.a.removeFirstOf(this._widgets,t),this._nodes.delete(t.node),this._numbers.delete(t),this._currentWidget===t)){var n=Object(s.h)(this._widgets,(function(t){return-1!==e._numbers.get(t)})),i=Object(s.l)(n,(function(t,n){return e._numbers.get(t)-e._numbers.get(n)}))||null;this._setWidgets(i,null)}},t.prototype.handleEvent=function(t){switch(t.type){case"focus":this._evtFocus(t);break;case"blur":this._evtBlur(t)}},t.prototype._setWidgets=function(t,e){var n=this._currentWidget;this._currentWidget=t;var i=this._activeWidget;this._activeWidget=e,n!==t&&this._currentChanged.emit({oldValue:n,newValue:t}),i!==e&&this._activeChanged.emit({oldValue:i,newValue:e})},t.prototype._evtFocus=function(t){var e=this._nodes.get(t.currentTarget);e!==this._currentWidget&&this._numbers.set(e,this._counter++),this._setWidgets(e,e)},t.prototype._evtBlur=function(t){var e=this._nodes.get(t.currentTarget),n=t.relatedTarget;n&&(e.node.contains(n)||Object(s.i)(this._widgets,(function(t){return t.node.contains(n)})))||this._setWidgets(this._currentWidget,null)},t.prototype._onWidgetDisposed=function(t){this.remove(t)},t}(),vt=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n._dirty=!1,n._rowSpacing=4,n._columnSpacing=4,n._items=[],n._rowStarts=[],n._columnStarts=[],n._rowSizers=[new I],n._columnSizers=[new I],n._box=null,void 0!==e.rowCount&&mt.reallocSizers(n._rowSizers,e.rowCount),void 0!==e.columnCount&&mt.reallocSizers(n._columnSizers,e.columnCount),void 0!==e.rowSpacing&&(n._rowSpacing=mt.clampValue(e.rowSpacing)),void 0!==e.columnSpacing&&(n._columnSpacing=mt.clampValue(e.columnSpacing)),n}return B(e,t),e.prototype.dispose=function(){Object(s.e)(this._items,(function(t){var e=t.widget;t.dispose(),e.dispose()})),this._box=null,this._items.length=0,this._rowStarts.length=0,this._rowSizers.length=0,this._columnStarts.length=0,this._columnSizers.length=0,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rowSizers.length},set:function(t){t!==this.rowCount&&(mt.reallocSizers(this._rowSizers,t),this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnCount",{get:function(){return this._columnSizers.length},set:function(t){t!==this.columnCount&&(mt.reallocSizers(this._columnSizers,t),this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowSpacing",{get:function(){return this._rowSpacing},set:function(t){t=mt.clampValue(t),this._rowSpacing!==t&&(this._rowSpacing=t,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnSpacing",{get:function(){return this._columnSpacing},set:function(t){t=mt.clampValue(t),this._columnSpacing!==t&&(this._columnSpacing=t,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),e.prototype.rowStretch=function(t){var e=this._rowSizers[t];return e?e.stretch:-1},e.prototype.setRowStretch=function(t,e){var n=this._rowSizers[t];n&&(e=mt.clampValue(e),n.stretch!==e&&(n.stretch=e,this.parent&&this.parent.update()))},e.prototype.columnStretch=function(t){var e=this._columnSizers[t];return e?e.stretch:-1},e.prototype.setColumnStretch=function(t,e){var n=this._columnSizers[t];n&&(e=mt.clampValue(e),n.stretch!==e&&(n.stretch=e,this.parent&&this.parent.update()))},e.prototype.iter=function(){return Object(s.k)(this._items,(function(t){return t.widget}))},e.prototype.addWidget=function(t){-1===s.a.findFirstIndex(this._items,(function(e){return e.widget===t}))&&(this._items.push(new U(t)),this.parent&&this.attachWidget(t))},e.prototype.removeWidget=function(t){var e=s.a.findFirstIndex(this._items,(function(e){return e.widget===t}));if(-1!==e){var n=s.a.removeAt(this._items,e);this.parent&&this.detachWidget(t),n.dispose()}},e.prototype.init=function(){var e=this;t.prototype.init.call(this),Object(s.e)(this,(function(t){e.attachWidget(t)}))},e.prototype.attachWidget=function(t){this.parent.isAttached&&l.c.sendMessage(t,W.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&l.c.sendMessage(t,W.Msg.AfterAttach),this.parent.fit()},e.prototype.detachWidget=function(t){this.parent.isAttached&&l.c.sendMessage(t,W.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&l.c.sendMessage(t,W.Msg.AfterDetach),this.parent.fit()},e.prototype.onBeforeShow=function(e){t.prototype.onBeforeShow.call(this,e),this.parent.update()},e.prototype.onBeforeAttach=function(e){t.prototype.onBeforeAttach.call(this,e),this.parent.fit()},e.prototype.onChildShown=function(t){this.parent.fit()},e.prototype.onChildHidden=function(t){this.parent.fit()},e.prototype.onResize=function(t){this.parent.isVisible&&this._update(t.width,t.height)},e.prototype.onUpdateRequest=function(t){this.parent.isVisible&&this._update(-1,-1)},e.prototype.onFitRequest=function(t){this.parent.isAttached&&this._fit()},e.prototype._fit=function(){for(var t=0,n=this.rowCount;t<n;++t)this._rowSizers[t].minSize=0;for(t=0,n=this.columnCount;t<n;++t)this._columnSizers[t].minSize=0;var i=this._items.filter((function(t){return!t.isHidden}));for(t=0,n=i.length;t<n;++t)i[t].fit();var r=this.rowCount-1,o=this.columnCount-1;i.sort(mt.rowSpanCmp);for(t=0,n=i.length;t<n;++t){var s=i[t],u=e.getCellConfig(s.widget),c=Math.min(u.row,r),d=Math.min(u.row+u.rowSpan-1,r);mt.distributeMin(this._rowSizers,c,d,s.minHeight)}i.sort(mt.columnSpanCmp);for(t=0,n=i.length;t<n;++t){s=i[t],u=e.getCellConfig(s.widget);var h=Math.min(u.column,o),p=Math.min(u.column+u.columnSpan-1,o);mt.distributeMin(this._columnSizers,h,p,s.minWidth)}if("set-no-constraint"!==this.fitPolicy){var f=r*this._rowSpacing,m=o*this._columnSpacing;for(t=0,n=this.rowCount;t<n;++t)f+=this._rowSizers[t].minSize;for(t=0,n=this.columnCount;t<n;++t)m+=this._columnSizers[t].minSize;var g=this._box=a.a.boxSizing(this.parent.node);m+=g.horizontalSum,f+=g.verticalSum;var v=this.parent.node.style;v.minWidth=m+"px",v.minHeight=f+"px",this._dirty=!0,this.parent.parent&&l.c.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&l.c.sendMessage(this.parent,W.Msg.UpdateRequest)}else l.c.sendMessage(this.parent,W.Msg.UpdateRequest)},e.prototype._update=function(t,n){this._dirty=!1,t<0&&(t=this.parent.node.offsetWidth),n<0&&(n=this.parent.node.offsetHeight),this._box||(this._box=a.a.boxSizing(this.parent.node));var i=this._box.paddingTop,r=this._box.paddingLeft,o=t-this._box.horizontalSum,s=n-this._box.verticalSum,l=this.rowCount-1,u=this.columnCount-1,c=l*this._rowSpacing,d=u*this._columnSpacing;L.calc(this._rowSizers,Math.max(0,s-c)),L.calc(this._columnSizers,Math.max(0,o-d));for(var h=0,p=i,f=this.rowCount;h<f;++h)this._rowStarts[h]=p,p+=this._rowSizers[h].size+this._rowSpacing;for(h=0,p=r,f=this.columnCount;h<f;++h)this._columnStarts[h]=p,p+=this._columnSizers[h].size+this._columnSpacing;for(h=0,f=this._items.length;h<f;++h){var m=this._items[h];if(!m.isHidden){var g=e.getCellConfig(m.widget),v=Math.min(g.row,l),y=Math.min(g.column,u),b=Math.min(g.row+g.rowSpan-1,l),_=Math.min(g.column+g.columnSpan-1,u),w=this._columnStarts[y],x=this._rowStarts[v],C=this._columnStarts[_]+this._columnSizers[_].size-w,j=this._rowStarts[b]+this._rowSizers[b].size-x;m.update(w,x,C,j)}}},e}(V);(ft=vt||(vt={})).getCellConfig=function(t){return mt.cellConfigProperty.get(t)},ft.setCellConfig=function(t,e){mt.cellConfigProperty.set(t,mt.normalizeConfig(e))},function(t){t.cellConfigProperty=new u({name:"cellConfig",create:function(){return{row:0,column:0,rowSpan:1,columnSpan:1}},changed:function(t){t.parent&&t.parent.layout instanceof vt&&t.parent.fit()}}),t.normalizeConfig=function(t){return{row:Math.max(0,Math.floor(t.row||0)),column:Math.max(0,Math.floor(t.column||0)),rowSpan:Math.max(1,Math.floor(t.rowSpan||0)),columnSpan:Math.max(1,Math.floor(t.columnSpan||0))}},t.clampValue=function(t){return Math.max(0,Math.floor(t))},t.rowSpanCmp=function(e,n){var i=t.cellConfigProperty.get(e.widget),r=t.cellConfigProperty.get(n.widget);return i.rowSpan-r.rowSpan},t.columnSpanCmp=function(e,n){var i=t.cellConfigProperty.get(e.widget),r=t.cellConfigProperty.get(n.widget);return i.columnSpan-r.columnSpan},t.reallocSizers=function(t,e){for(e=Math.max(1,Math.floor(e));t.length<e;)t.push(new I);t.length>e&&(t.length=e)},t.distributeMin=function(t,e,n,i){if(!(n<e))if(e!==n){for(var r=0,o=e;o<=n;++o)r+=t[o].minSize;if(!(r>=i)){var s=(i-r)/(n-e+1);for(o=e;o<=n;++o)t[o].minSize+=s}}else{var a=t[e];a.minSize=Math.max(a.minSize,i)}}}(mt||(mt={}));var yt,bt=function(t){function e(n){void 0===n&&(n={});var i=t.call(this,{node:yt.createNode()})||this;return i._activeIndex=-1,i._menus=[],i._childMenu=null,i.addClass("lm-MenuBar"),i.addClass("p-MenuBar"),i.setFlag(W.Flag.DisallowLayout),i.renderer=n.renderer||e.defaultRenderer,i}return B(e,t),e.prototype.dispose=function(){this._closeChildMenu(),this._menus.length=0,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"childMenu",{get:function(){return this._childMenu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("lm-MenuBar-content")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeMenu",{get:function(){return this._menus[this._activeIndex]||null},set:function(t){this.activeIndex=t?this._menus.indexOf(t):-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(t){(t<0||t>=this._menus.length)&&(t=-1),this._activeIndex!==t&&(this._activeIndex=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menus",{get:function(){return this._menus},enumerable:!0,configurable:!0}),e.prototype.openActiveMenu=function(){-1!==this._activeIndex&&(this._openChildMenu(),this._childMenu&&(this._childMenu.activeIndex=-1,this._childMenu.activateNextItem()))},e.prototype.addMenu=function(t){this.insertMenu(this._menus.length,t)},e.prototype.insertMenu=function(t,e){this._closeChildMenu();var n=this._menus.indexOf(e),i=Math.max(0,Math.min(t,this._menus.length));if(-1===n)return s.a.insert(this._menus,i,e),e.addClass("lm-MenuBar-menu"),e.addClass("p-MenuBar-menu"),e.aboutToClose.connect(this._onMenuAboutToClose,this),e.menuRequested.connect(this._onMenuMenuRequested,this),e.title.changed.connect(this._onTitleChanged,this),void this.update();i===this._menus.length&&i--,n!==i&&(s.a.move(this._menus,n,i),this.update())},e.prototype.removeMenu=function(t){this.removeMenuAt(this._menus.indexOf(t))},e.prototype.removeMenuAt=function(t){this._closeChildMenu();var e=s.a.removeAt(this._menus,t);e&&(e.aboutToClose.disconnect(this._onMenuAboutToClose,this),e.menuRequested.disconnect(this._onMenuMenuRequested,this),e.title.changed.disconnect(this._onTitleChanged,this),e.removeClass("lm-MenuBar-menu"),e.removeClass("p-MenuBar-menu"),this.update())},e.prototype.clearMenus=function(){if(0!==this._menus.length){this._closeChildMenu();for(var t=0,e=this._menus;t<e.length;t++){var n=e[t];n.aboutToClose.disconnect(this._onMenuAboutToClose,this),n.menuRequested.disconnect(this._onMenuMenuRequested,this),n.title.changed.disconnect(this._onTitleChanged,this),n.removeClass("lm-MenuBar-menu"),n.removeClass("p-MenuBar-menu")}this._menus.length=0,this.update()}},e.prototype.handleEvent=function(t){switch(t.type){case"keydown":this._evtKeyDown(t);break;case"mousedown":this._evtMouseDown(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseleave":this._evtMouseLeave(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("keydown",this),this.node.addEventListener("mousedown",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("mouseleave",this),this.node.addEventListener("contextmenu",this)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mousedown",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("mouseleave",this),this.node.removeEventListener("contextmenu",this),this._closeChildMenu()},e.prototype.onActivateRequest=function(t){this.isAttached&&this.node.focus()},e.prototype.onUpdateRequest=function(t){for(var e=this._menus,n=this.renderer,i=this._activeIndex,r=new Array(e.length),o=0,s=e.length;o<s;++o){var a=e[o].title,l=o===i;r[o]=n.renderItem({title:a,active:l})}M.render(r,this.contentNode)},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation();var e=t.keyCode;if(13!==e&&38!==e&&40!==e){if(27===e)return this._closeChildMenu(),this.activeIndex=-1,void this.node.blur();if(37!==e)if(39!==e){var n=b().keyForKeydownEvent(t);if(n){var i=this._activeIndex+1,r=yt.findMnemonic(this._menus,n,i);-1===r.index||r.multiple?-1!==r.index?this.activeIndex=r.index:-1!==r.auto&&(this.activeIndex=r.auto):(this.activeIndex=r.index,this.openActiveMenu())}}else{o=this._activeIndex,s=this._menus.length;this.activeIndex=o===s-1?0:o+1}else{var o=this._activeIndex,s=this._menus.length;this.activeIndex=0===o?s-1:o-1}}else this.openActiveMenu()},e.prototype._evtMouseDown=function(t){if(a.a.hitTest(this.node,t.clientX,t.clientY)){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var e=s.a.findFirstIndex(this.contentNode.children,(function(e){return a.a.hitTest(e,t.clientX,t.clientY)}));-1!==e?0===t.button&&(this._childMenu?(this._closeChildMenu(),this.activeIndex=e):(this.activeIndex=e,this._openChildMenu())):this._closeChildMenu()}},e.prototype._evtMouseMove=function(t){var e=s.a.findFirstIndex(this.contentNode.children,(function(e){return a.a.hitTest(e,t.clientX,t.clientY)}));e!==this._activeIndex&&(-1===e&&this._childMenu||(this.activeIndex=e,this._childMenu&&this._openChildMenu()))},e.prototype._evtMouseLeave=function(t){this._childMenu||(this.activeIndex=-1)},e.prototype._openChildMenu=function(){var t=this.activeMenu;if(t){var e=this._childMenu;if(e!==t){this._childMenu=t,e?e.close():(this.addClass("lm-mod-active"),this.addClass("p-mod-active"),document.addEventListener("mousedown",this,!0)),l.c.sendMessage(this,W.Msg.UpdateRequest);var n=this.contentNode.children[this._activeIndex].getBoundingClientRect(),i=n.left,r=n.bottom;t.open(i,r,{forceX:!0,forceY:!0})}}else this._closeChildMenu()},e.prototype._closeChildMenu=function(){if(this._childMenu){this.removeClass("lm-mod-active"),this.removeClass("p-mod-active"),document.removeEventListener("mousedown",this,!0);var t=this._childMenu;this._childMenu=null,t.close(),this.activeIndex=-1}},e.prototype._onMenuAboutToClose=function(t){t===this._childMenu&&(this.removeClass("lm-mod-active"),this.removeClass("p-mod-active"),document.removeEventListener("mousedown",this,!0),this._childMenu=null,this.activeIndex=-1)},e.prototype._onMenuMenuRequested=function(t,e){if(t===this._childMenu){var n=this._activeIndex,i=this._menus.length;switch(e){case"next":this.activeIndex=n===i-1?0:n+1;break;case"previous":this.activeIndex=0===n?i-1:n-1}this.openActiveMenu()}},e.prototype._onTitleChanged=function(){this.update()},e}(W);!function(t){var e=function(){function t(){}return t.prototype.renderItem=function(t){var e=this.createItemClass(t),n=this.createItemDataset(t),i=this.createItemARIA(t);return D.li(F({className:e,dataset:n},i),this.renderIcon(t),this.renderLabel(t))},t.prototype.renderIcon=function(t){var e=this.createIconClass(t);return"string"==typeof t.title.icon?D.div({className:e},t.title.iconLabel):D.div({className:e},t.title.icon,t.title.iconLabel)},t.prototype.renderLabel=function(t){var e=this.formatLabel(t);return D.div({className:"lm-MenuBar-itemLabel p-MenuBar-itemLabel"},e)},t.prototype.createItemClass=function(t){var e="lm-MenuBar-item";return e+=" p-MenuBar-item",t.title.className&&(e+=" "+t.title.className),t.active&&(e+=" lm-mod-active",e+=" p-mod-active"),e},t.prototype.createItemDataset=function(t){return t.title.dataset},t.prototype.createItemARIA=function(t){return{role:"menuitem","aria-haspopup":"true"}},t.prototype.createIconClass=function(t){var e="lm-MenuBar-itemIcon";e+=" p-MenuBar-itemIcon";var n=t.title.iconClass;return n?e+" "+n:e},t.prototype.formatLabel=function(t){var e=t.title,n=e.label,i=e.mnemonic;if(i<0||i>=n.length)return n;var r=n.slice(0,i),o=n.slice(i+1),s=n[i];return[r,D.span({className:"lm-MenuBar-itemMnemonic p-MenuBar-itemMnemonic"},s),o]},t}();t.Renderer=e,t.defaultRenderer=new e}(bt||(bt={})),function(t){t.createNode=function(){var t=document.createElement("div"),e=document.createElement("ul");return e.className="lm-MenuBar-content",e.classList.add("p-MenuBar-content"),t.appendChild(e),e.setAttribute("role","menubar"),t.tabIndex=-1,t},t.findMnemonic=function(t,e,n){for(var i=-1,r=-1,o=!1,s=e.toUpperCase(),a=0,l=t.length;a<l;++a){var u=(a+n)%l,c=t[u].title;if(0!==c.label.length){var d=c.mnemonic;d>=0&&d<c.label.length?c.label[d].toUpperCase()===s&&(-1===i?i=u:o=!0):-1===r&&c.label[0].toUpperCase()===s&&(r=u)}}return{index:i,multiple:o,auto:r}}}(yt||(yt={}));var _t,wt=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,{node:_t.createNode()})||this;return n._onRepeat=function(){if(n._repeatTimer=-1,n._pressData){var t=n._pressData.part;if("thumb"!==t){n._repeatTimer=window.setTimeout(n._onRepeat,20);var e=n._pressData.mouseX,i=n._pressData.mouseY;if("decrement"!==t)if("increment"!==t){if("track"===t){if(!a.a.hitTest(n.trackNode,e,i))return;var r=n.thumbNode;if(a.a.hitTest(r,e,i))return;var o=r.getBoundingClientRect(),s=void 0;return s="horizontal"===n._orientation?e<o.left?"decrement":"increment":i<o.top?"decrement":"increment",void n._pageRequested.emit(s)}}else{if(!a.a.hitTest(n.incrementNode,e,i))return;n._stepRequested.emit("increment")}else{if(!a.a.hitTest(n.decrementNode,e,i))return;n._stepRequested.emit("decrement")}}}},n._value=0,n._page=10,n._maximum=100,n._repeatTimer=-1,n._pressData=null,n._thumbMoved=new c.a(n),n._stepRequested=new c.a(n),n._pageRequested=new c.a(n),n.addClass("lm-ScrollBar"),n.addClass("p-ScrollBar"),n.setFlag(W.Flag.DisallowLayout),n._orientation=e.orientation||"vertical",n.dataset.orientation=n._orientation,void 0!==e.maximum&&(n._maximum=Math.max(0,e.maximum)),void 0!==e.page&&(n._page=Math.max(0,e.page)),void 0!==e.value&&(n._value=Math.max(0,Math.min(e.value,n._maximum))),n}return B(e,t),Object.defineProperty(e.prototype,"thumbMoved",{get:function(){return this._thumbMoved},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stepRequested",{get:function(){return this._stepRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageRequested",{get:function(){return this._pageRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._releaseMouse(),this._orientation=t,this.dataset.orientation=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t=Math.max(0,Math.min(t,this._maximum)),this._value!==t&&(this._value=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this._page},set:function(t){t=Math.max(0,t),this._page!==t&&(this._page=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximum",{get:function(){return this._maximum},set:function(t){t=Math.max(0,t),this._maximum!==t&&(this._maximum=t,this._value=Math.min(this._value,t),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementNode",{get:function(){return this.node.getElementsByClassName("lm-ScrollBar-button")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incrementNode",{get:function(){return this.node.getElementsByClassName("lm-ScrollBar-button")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackNode",{get:function(){return this.node.getElementsByClassName("lm-ScrollBar-track")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbNode",{get:function(){return this.node.getElementsByClassName("lm-ScrollBar-thumb")[0]},enumerable:!0,configurable:!0}),e.prototype.handleEvent=function(t){switch(t.type){case"mousedown":this._evtMouseDown(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseup":this._evtMouseUp(t);break;case"keydown":this._evtKeyDown(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("mousedown",this),this.update()},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("mousedown",this),this._releaseMouse()},e.prototype.onUpdateRequest=function(t){var e=100*this._value/this._maximum,n=100*this._page/(this._page+this._maximum);e=Math.max(0,Math.min(e,100)),n=Math.max(0,Math.min(n,100));var i=this.thumbNode.style;"horizontal"===this._orientation?(i.top="",i.height="",i.left=e+"%",i.width=n+"%",i.transform="translate("+-e+"%, 0%)"):(i.left="",i.width="",i.top=e+"%",i.height=n+"%",i.transform="translate(0%, "+-e+"%)")},e.prototype._evtKeyDown=function(t){if(t.preventDefault(),t.stopPropagation(),27===t.keyCode){var e=this._pressData?this._pressData.value:-1;this._releaseMouse(),-1!==e&&this._moveThumb(e)}},e.prototype._evtMouseDown=function(t){if(0===t.button&&(this.activate(),!this._pressData)){var e=_t.findPart(this,t.target);if(e){t.preventDefault(),t.stopPropagation();var n=P.overrideCursor("default");if(this._pressData={part:e,override:n,delta:-1,value:-1,mouseX:t.clientX,mouseY:t.clientY},document.addEventListener("mousemove",this,!0),document.addEventListener("mouseup",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0),"thumb"===e){var i=this.thumbNode,r=i.getBoundingClientRect();return"horizontal"===this._orientation?this._pressData.delta=t.clientX-r.left:this._pressData.delta=t.clientY-r.top,i.classList.add("lm-mod-active"),i.classList.add("p-mod-active"),void(this._pressData.value=this._value)}if("track"===e){r=this.thumbNode.getBoundingClientRect();var o=void 0;return o="horizontal"===this._orientation?t.clientX<r.left?"decrement":"increment":t.clientY<r.top?"decrement":"increment",this._repeatTimer=window.setTimeout(this._onRepeat,350),void this._pageRequested.emit(o)}return"decrement"===e?(this.decrementNode.classList.add("lm-mod-active"),this.decrementNode.classList.add("p-mod-active"),this._repeatTimer=window.setTimeout(this._onRepeat,350),void this._stepRequested.emit("decrement")):"increment"===e?(this.incrementNode.classList.add("lm-mod-active"),this.incrementNode.classList.add("p-mod-active"),this._repeatTimer=window.setTimeout(this._onRepeat,350),void this._stepRequested.emit("increment")):void 0}}},e.prototype._evtMouseMove=function(t){if(this._pressData&&(t.preventDefault(),t.stopPropagation(),this._pressData.mouseX=t.clientX,this._pressData.mouseY=t.clientY,"thumb"===this._pressData.part)){var e,n,i=this.thumbNode.getBoundingClientRect(),r=this.trackNode.getBoundingClientRect();"horizontal"===this._orientation?(e=t.clientX-r.left-this._pressData.delta,n=r.width-i.width):(e=t.clientY-r.top-this._pressData.delta,n=r.height-i.height);var o=0===n?0:e*this._maximum/n;this._moveThumb(o)}},e.prototype._evtMouseUp=function(t){0===t.button&&(t.preventDefault(),t.stopPropagation(),this._releaseMouse())},e.prototype._releaseMouse=function(){this._pressData&&(clearTimeout(this._repeatTimer),this._repeatTimer=-1,this._pressData.override.dispose(),this._pressData=null,document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0),this.thumbNode.classList.remove("lm-mod-active"),this.decrementNode.classList.remove("lm-mod-active"),this.incrementNode.classList.remove("lm-mod-active"),this.thumbNode.classList.remove("p-mod-active"),this.decrementNode.classList.remove("p-mod-active"),this.incrementNode.classList.remove("p-mod-active"))},e.prototype._moveThumb=function(t){t=Math.max(0,Math.min(t,this._maximum)),this._value!==t&&(this._value=t,this.update(),this._thumbMoved.emit(t))},e}(W);!function(t){t.createNode=function(){var t=document.createElement("div"),e=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div"),r=document.createElement("div");return e.className="lm-ScrollBar-button",n.className="lm-ScrollBar-button",e.dataset.action="decrement",n.dataset.action="increment",i.className="lm-ScrollBar-track",r.className="lm-ScrollBar-thumb",e.classList.add("p-ScrollBar-button"),n.classList.add("p-ScrollBar-button"),i.classList.add("p-ScrollBar-track"),r.classList.add("p-ScrollBar-thumb"),i.appendChild(r),t.appendChild(e),t.appendChild(i),t.appendChild(n),t},t.findPart=function(t,e){return t.thumbNode.contains(e)?"thumb":t.trackNode.contains(e)?"track":t.decrementNode.contains(e)?"decrement":t.incrementNode.contains(e)?"increment":null}}(_t||(_t={}));var xt,Ct,jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._widget=null,e}return B(e,t),e.prototype.dispose=function(){if(this._widget){var e=this._widget;this._widget=null,e.dispose()}t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"widget",{get:function(){return this._widget},set:function(t){t&&(t.parent=this.parent),this._widget!==t&&(this._widget&&this._widget.dispose(),this._widget=t,this.parent&&t&&this.attachWidget(t))},enumerable:!0,configurable:!0}),e.prototype.iter=function(){return this._widget?Object(s.m)(this._widget):Object(s.f)()},e.prototype.removeWidget=function(t){this._widget===t&&(this._widget=null,this.parent&&this.detachWidget(t))},e.prototype.init=function(){var e=this;t.prototype.init.call(this),Object(s.e)(this,(function(t){e.attachWidget(t)}))},e.prototype.attachWidget=function(t){this.parent.isAttached&&l.c.sendMessage(t,W.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&l.c.sendMessage(t,W.Msg.AfterAttach)},e.prototype.detachWidget=function(t){this.parent.isAttached&&l.c.sendMessage(t,W.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&l.c.sendMessage(t,W.Msg.AfterDetach)},e}(V),Et=function(t){function e(e){var n=t.call(this)||this;return n._fixed=0,n._spacing=4,n._dirty=!1,n._hasNormedSizes=!1,n._sizers=[],n._items=[],n._handles=[],n._box=null,n._alignment="start",n._orientation="horizontal",n.renderer=e.renderer,void 0!==e.orientation&&(n._orientation=e.orientation),void 0!==e.alignment&&(n._alignment=e.alignment),void 0!==e.spacing&&(n._spacing=Ct.clampSpacing(e.spacing)),n}return B(e,t),e.prototype.dispose=function(){Object(s.e)(this._items,(function(t){t.dispose()})),this._box=null,this._items.length=0,this._sizers.length=0,this._handles.length=0,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._orientation=t,this.parent&&(this.parent.dataset.orientation=t,this.parent.fit()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this._alignment},set:function(t){this._alignment!==t&&(this._alignment=t,this.parent&&(this.parent.dataset.alignment=t,this.parent.update()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this._spacing},set:function(t){t=Ct.clampSpacing(t),this._spacing!==t&&(this._spacing=t,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handles",{get:function(){return this._handles},enumerable:!0,configurable:!0}),e.prototype.relativeSizes=function(){return Ct.normalize(this._sizers.map((function(t){return t.size})))},e.prototype.setRelativeSizes=function(t){for(var e=this._sizers.length,n=t.slice(0,e);n.length<e;)n.push(0);for(var i=Ct.normalize(n),r=0;r<e;++r){var o=this._sizers[r];o.sizeHint=i[r],o.size=i[r]}this._hasNormedSizes=!0,this.parent&&this.parent.update()},e.prototype.moveHandle=function(t,e){var n,i=this._handles[t];if(i&&!i.classList.contains("lm-mod-hidden")&&0!==(n="horizontal"===this._orientation?e-i.offsetLeft:e-i.offsetTop)){for(var r=0,o=this._sizers;r<o.length;r++){var s=o[r];s.size>0&&(s.sizeHint=s.size)}L.adjust(this._sizers,t,n),this.parent&&this.parent.update()}},e.prototype.init=function(){this.parent.dataset.orientation=this.orientation,this.parent.dataset.alignment=this.alignment,t.prototype.init.call(this)},e.prototype.attachWidget=function(t,e){var n=new U(e),i=Ct.createHandle(this.renderer),r=Ct.averageSize(this._sizers),o=Ct.createSizer(r);s.a.insert(this._items,t,n),s.a.insert(this._sizers,t,o),s.a.insert(this._handles,t,i),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.node.appendChild(i),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.AfterAttach),this.parent.fit()},e.prototype.moveWidget=function(t,e,n){s.a.move(this._items,t,e),s.a.move(this._sizers,t,e),s.a.move(this._handles,t,e),this.parent.fit()},e.prototype.detachWidget=function(t,e){var n=s.a.removeAt(this._items,t),i=s.a.removeAt(this._handles,t);s.a.removeAt(this._sizers,t),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.node.removeChild(i),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.AfterDetach),n.dispose(),this.parent.fit()},e.prototype.onBeforeShow=function(e){t.prototype.onBeforeShow.call(this,e),this.parent.update()},e.prototype.onBeforeAttach=function(e){t.prototype.onBeforeAttach.call(this,e),this.parent.fit()},e.prototype.onChildShown=function(t){this.parent.fit()},e.prototype.onChildHidden=function(t){this.parent.fit()},e.prototype.onResize=function(t){this.parent.isVisible&&this._update(t.width,t.height)},e.prototype.onUpdateRequest=function(t){this.parent.isVisible&&this._update(-1,-1)},e.prototype.onFitRequest=function(t){this.parent.isAttached&&this._fit()},e.prototype._fit=function(){for(var t=0,n=-1,i=0,r=this._items.length;i<r;++i)this._items[i].isHidden?(this._handles[i].classList.add("lm-mod-hidden"),this._handles[i].classList.add("p-mod-hidden")):(this._handles[i].classList.remove("lm-mod-hidden"),this._handles[i].classList.remove("p-mod-hidden"),n=i,t++);-1!==n&&(this._handles[n].classList.add("lm-mod-hidden"),this._handles[n].classList.add("p-mod-hidden")),this._fixed=this._spacing*Math.max(0,t-1);var o="horizontal"===this._orientation,s=o?this._fixed:0,u=o?0:this._fixed;for(i=0,r=this._items.length;i<r;++i){var c=this._items[i],d=this._sizers[i];d.size>0&&(d.sizeHint=d.size),c.isHidden?(d.minSize=0,d.maxSize=0):(c.fit(),d.stretch=e.getStretch(c.widget),o?(d.minSize=c.minWidth,d.maxSize=c.maxWidth,s+=c.minWidth,u=Math.max(u,c.minHeight)):(d.minSize=c.minHeight,d.maxSize=c.maxHeight,u+=c.minHeight,s=Math.max(s,c.minWidth)))}var h=this._box=a.a.boxSizing(this.parent.node);s+=h.horizontalSum,u+=h.verticalSum;var p=this.parent.node.style;p.minWidth=s+"px",p.minHeight=u+"px",this._dirty=!0,this.parent.parent&&l.c.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&l.c.sendMessage(this.parent,W.Msg.UpdateRequest)},e.prototype._update=function(t,e){this._dirty=!1;for(var n=0,i=0,r=this._items.length;i<r;++i)n+=+!this._items[i].isHidden;if(0!==n){t<0&&(t=this.parent.node.offsetWidth),e<0&&(e=this.parent.node.offsetHeight),this._box||(this._box=a.a.boxSizing(this.parent.node));var o,s=this._box.paddingTop,l=this._box.paddingLeft,u=t-this._box.horizontalSum,c=e-this._box.verticalSum,d="horizontal"===this._orientation;if(o=d?Math.max(0,u-this._fixed):Math.max(0,c-this._fixed),this._hasNormedSizes){for(var h=0,p=this._sizers;h<p.length;h++){p[h].sizeHint*=o}this._hasNormedSizes=!1}var f=L.calc(this._sizers,o),m=0,g=0;if(f>0)switch(this._alignment){case"start":break;case"center":m=0,g=f/2;break;case"end":m=0,g=f;break;case"justify":m=f/n,g=0;break;default:throw"unreachable"}for(i=0,r=this._items.length;i<r;++i){var v=this._items[i];if(!v.isHidden){var y=this._sizers[i].size,b=this._handles[i].style;d?(v.update(l+g,s,y+m,c),l+=y+m,b.top=s+"px",b.left=l+g+"px",b.width=this._spacing+"px",b.height=c+"px",l+=this._spacing):(v.update(l,s+g,u,y+m),s+=y+m,b.top=s+g+"px",b.left=l+"px",b.width=u+"px",b.height=this._spacing+"px",s+=this._spacing)}}}},e}(J);(xt=Et||(Et={})).getStretch=function(t){return Ct.stretchProperty.get(t)},xt.setStretch=function(t,e){Ct.stretchProperty.set(t,e)},function(t){t.stretchProperty=new u({name:"stretch",create:function(){return 0},coerce:function(t,e){return Math.max(0,Math.floor(e))},changed:function(t){t.parent&&t.parent.layout instanceof Et&&t.parent.fit()}}),t.createSizer=function(t){var e=new I;return e.sizeHint=Math.floor(t),e},t.createHandle=function(t){var e=t.createHandle();return e.style.position="absolute",e},t.clampSpacing=function(t){return Math.max(0,Math.floor(t))},t.averageSize=function(t){return t.reduce((function(t,e){return t+e.size}),0)/t.length||0},t.normalize=function(t){var e=t.length;if(0===e)return[];var n=t.reduce((function(t,e){return t+Math.abs(e)}),0);return 0===n?t.map((function(t){return 1/e})):t.map((function(t){return t/n}))}}(Ct||(Ct={}));var Tt,Mt=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,{layout:Tt.createLayout(e)})||this;return n._pressData=null,n.addClass("lm-SplitPanel"),n.addClass("p-SplitPanel"),n}return B(e,t),e.prototype.dispose=function(){this._releaseMouse(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.layout.orientation},set:function(t){this.layout.orientation=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this.layout.alignment},set:function(t){this.layout.alignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this.layout.spacing},set:function(t){this.layout.spacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this.layout.renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handles",{get:function(){return this.layout.handles},enumerable:!0,configurable:!0}),e.prototype.relativeSizes=function(){return this.layout.relativeSizes()},e.prototype.setRelativeSizes=function(t){this.layout.setRelativeSizes(t)},e.prototype.handleEvent=function(t){switch(t.type){case"mousedown":this._evtMouseDown(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseup":this._evtMouseUp(t);break;case"keydown":this._evtKeyDown(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("mousedown",this)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("mousedown",this),this._releaseMouse()},e.prototype.onChildAdded=function(t){t.child.addClass("lm-SplitPanel-child"),t.child.addClass("p-SplitPanel-child"),this._releaseMouse()},e.prototype.onChildRemoved=function(t){t.child.removeClass("lm-SplitPanel-child"),t.child.removeClass("p-SplitPanel-child"),this._releaseMouse()},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation(),27===t.keyCode&&this._releaseMouse()},e.prototype._evtMouseDown=function(t){if(0===t.button){var e=this.layout,n=s.a.findFirstIndex(e.handles,(function(e){return e.contains(t.target)}));if(-1!==n){var i;t.preventDefault(),t.stopPropagation(),document.addEventListener("mouseup",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0);var r=e.handles[n],o=r.getBoundingClientRect();i="horizontal"===e.orientation?t.clientX-o.left:t.clientY-o.top;var a=window.getComputedStyle(r),l=P.overrideCursor(a.cursor);this._pressData={index:n,delta:i,override:l}}}},e.prototype._evtMouseMove=function(t){var e;t.preventDefault(),t.stopPropagation();var n=this.layout,i=this.node.getBoundingClientRect();e="horizontal"===n.orientation?t.clientX-i.left-this._pressData.delta:t.clientY-i.top-this._pressData.delta,n.moveHandle(this._pressData.index,e)},e.prototype._evtMouseUp=function(t){0===t.button&&(t.preventDefault(),t.stopPropagation(),this._releaseMouse())},e.prototype._releaseMouse=function(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,document.removeEventListener("mouseup",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0))},e}(X);!function(t){var e=function(){function t(){}return t.prototype.createHandle=function(){var t=document.createElement("div");return t.className="lm-SplitPanel-handle",t.classList.add("p-SplitPanel-handle"),t},t}();t.Renderer=e,t.defaultRenderer=new e,t.getStretch=function(t){return Et.getStretch(t)},t.setStretch=function(t,e){Et.setStretch(t,e)}}(Mt||(Mt={})),function(t){t.createLayout=function(t){return t.layout||new Et({renderer:t.renderer||Mt.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing})}}(Tt||(Tt={}));var kt,At=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._dirty=!1,e._items=[],e._box=null,e}return B(e,t),e.prototype.dispose=function(){Object(s.e)(this._items,(function(t){t.dispose()})),this._box=null,this._items.length=0,t.prototype.dispose.call(this)},e.prototype.attachWidget=function(t,e){s.a.insert(this._items,t,new U(e)),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.AfterAttach),this.parent.fit()},e.prototype.moveWidget=function(t,e,n){s.a.move(this._items,t,e),this.parent.update()},e.prototype.detachWidget=function(t,e){var n=s.a.removeAt(this._items,t);this.parent.isAttached&&l.c.sendMessage(e,W.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&l.c.sendMessage(e,W.Msg.AfterDetach),n.widget.node.style.zIndex="",n.dispose(),this.parent.fit()},e.prototype.onBeforeShow=function(e){t.prototype.onBeforeShow.call(this,e),this.parent.update()},e.prototype.onBeforeAttach=function(e){t.prototype.onBeforeAttach.call(this,e),this.parent.fit()},e.prototype.onChildShown=function(t){this.parent.fit()},e.prototype.onChildHidden=function(t){this.parent.fit()},e.prototype.onResize=function(t){this.parent.isVisible&&this._update(t.width,t.height)},e.prototype.onUpdateRequest=function(t){this.parent.isVisible&&this._update(-1,-1)},e.prototype.onFitRequest=function(t){this.parent.isAttached&&this._fit()},e.prototype._fit=function(){for(var t=0,e=0,n=0,i=this._items.length;n<i;++n){var r=this._items[n];r.isHidden||(r.fit(),t=Math.max(t,r.minWidth),e=Math.max(e,r.minHeight))}var o=this._box=a.a.boxSizing(this.parent.node);t+=o.horizontalSum,e+=o.verticalSum;var s=this.parent.node.style;s.minWidth=t+"px",s.minHeight=e+"px",this._dirty=!0,this.parent.parent&&l.c.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&l.c.sendMessage(this.parent,W.Msg.UpdateRequest)},e.prototype._update=function(t,e){this._dirty=!1;for(var n=0,i=0,r=this._items.length;i<r;++i)n+=+!this._items[i].isHidden;if(0!==n){t<0&&(t=this.parent.node.offsetWidth),e<0&&(e=this.parent.node.offsetHeight),this._box||(this._box=a.a.boxSizing(this.parent.node));var o=this._box.paddingTop,s=this._box.paddingLeft,l=t-this._box.horizontalSum,u=e-this._box.verticalSum;for(i=0,r=this._items.length;i<r;++i){var c=this._items[i];c.isHidden||(c.widget.node.style.zIndex=""+i,c.update(s,o,l,u))}}},e}(J),St=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,{layout:kt.createLayout(e)})||this;return n._widgetRemoved=new c.a(n),n.addClass("lm-StackedPanel"),n.addClass("p-StackedPanel"),n}return B(e,t),Object.defineProperty(e.prototype,"widgetRemoved",{get:function(){return this._widgetRemoved},enumerable:!0,configurable:!0}),e.prototype.onChildAdded=function(t){t.child.addClass("lm-StackedPanel-child"),t.child.addClass("p-StackedPanel-child")},e.prototype.onChildRemoved=function(t){t.child.removeClass("lm-StackedPanel-child"),t.child.removeClass("p-StackedPanel-child"),this._widgetRemoved.emit(t.child)},e}(X);!function(t){t.createLayout=function(t){return t.layout||new At}}(kt||(kt={}));var Dt,Ot=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;n._currentChanged=new c.a(n),n.addClass("lm-TabPanel"),n.addClass("p-TabPanel"),n.tabBar=new dt(e),n.tabBar.addClass("lm-TabPanel-tabBar"),n.stackedPanel=new St,n.stackedPanel.addClass("lm-TabPanel-stackedPanel"),n.tabBar.addClass("p-TabPanel-tabBar"),n.stackedPanel.addClass("p-TabPanel-stackedPanel"),n.tabBar.tabMoved.connect(n._onTabMoved,n),n.tabBar.currentChanged.connect(n._onCurrentChanged,n),n.tabBar.tabCloseRequested.connect(n._onTabCloseRequested,n),n.tabBar.tabActivateRequested.connect(n._onTabActivateRequested,n),n.stackedPanel.widgetRemoved.connect(n._onWidgetRemoved,n),n._tabPlacement=e.tabPlacement||"top";var i=Dt.directionFromPlacement(n._tabPlacement),r=Dt.orientationFromPlacement(n._tabPlacement);n.tabBar.orientation=r,n.tabBar.dataset.placement=n._tabPlacement;var o=new Y({direction:i,spacing:0});return Y.setStretch(n.tabBar,0),Y.setStretch(n.stackedPanel,1),o.addWidget(n.tabBar),o.addWidget(n.stackedPanel),n.layout=o,n}return B(e,t),Object.defineProperty(e.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentIndex",{get:function(){return this.tabBar.currentIndex},set:function(t){this.tabBar.currentIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentWidget",{get:function(){var t=this.tabBar.currentTitle;return t?t.owner:null},set:function(t){this.tabBar.currentTitle=t?t.title:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabsMovable",{get:function(){return this.tabBar.tabsMovable},set:function(t){this.tabBar.tabsMovable=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabPlacement",{get:function(){return this._tabPlacement},set:function(t){if(this._tabPlacement!==t){this._tabPlacement=t;var e=Dt.directionFromPlacement(t),n=Dt.orientationFromPlacement(t);this.tabBar.orientation=n,this.tabBar.dataset.placement=t,this.layout.direction=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgets",{get:function(){return this.stackedPanel.widgets},enumerable:!0,configurable:!0}),e.prototype.addWidget=function(t){this.insertWidget(this.widgets.length,t)},e.prototype.insertWidget=function(t,e){e!==this.currentWidget&&e.hide(),this.stackedPanel.insertWidget(t,e),this.tabBar.insertTab(t,e.title)},e.prototype._onCurrentChanged=function(t,e){var n=e.previousIndex,i=e.previousTitle,r=e.currentIndex,o=e.currentTitle,s=i?i.owner:null,u=o?o.owner:null;s&&s.hide(),u&&u.show(),this._currentChanged.emit({previousIndex:n,previousWidget:s,currentIndex:r,currentWidget:u}),(a.b.IS_EDGE||a.b.IS_IE)&&l.c.flush()},e.prototype._onTabActivateRequested=function(t,e){e.title.owner.activate()},e.prototype._onTabCloseRequested=function(t,e){e.title.owner.close()},e.prototype._onTabMoved=function(t,e){this.stackedPanel.insertWidget(e.toIndex,e.title.owner)},e.prototype._onWidgetRemoved=function(t,e){this.tabBar.removeTab(e.title)},e}(W);!function(t){t.orientationFromPlacement=function(t){return e[t]},t.directionFromPlacement=function(t){return n[t]};var e={top:"horizontal",left:"vertical",right:"vertical",bottom:"horizontal"},n={top:"top-to-bottom",left:"left-to-right",right:"right-to-left",bottom:"bottom-to-top"}}(Dt||(Dt={}))},function(t,e,n){"use strict";var i;n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return a})),function(t){function e(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t}function n(t){return Array.isArray(t)}function i(t,r){if(t===r)return!0;if(e(t)||e(r))return!1;var o=n(t),s=n(r);return o===s&&(o&&s?function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;++n)if(!i(t[n],e[n]))return!1;return!0}(t,r):function(t,e){if(t===e)return!0;for(var n in t)if(void 0!==t[n]&&!(n in e))return!1;for(var n in e)if(void 0!==e[n]&&!(n in t))return!1;for(var n in t){var r=t[n],o=e[n];if(void 0!==r||void 0!==o){if(void 0===r||void 0===o)return!1;if(!i(r,o))return!1}}return!0}(t,r))}function r(t){return e(t)?t:n(t)?function(t){for(var e=new Array(t.length),n=0,i=t.length;n<i;++n)e[n]=r(t[n]);return e}(t):function(t){var e={};for(var n in t){var i=t[n];void 0!==i&&(e[n]=r(i))}return e}(t)}t.emptyObject=Object.freeze({}),t.emptyArray=Object.freeze([]),t.isPrimitive=e,t.isArray=n,t.isObject=function(t){return!e(t)&&!n(t)},t.deepEqual=i,t.deepCopy=r}(i||(i={}));var r,o=function(){function t(){this._types=[],this._values=[]}return t.prototype.types=function(){return this._types.slice()},t.prototype.hasData=function(t){return-1!==this._types.indexOf(t)},t.prototype.getData=function(t){var e=this._types.indexOf(t);return-1!==e?this._values[e]:void 0},t.prototype.setData=function(t,e){this.clearData(t),this._types.push(t),this._values.push(e)},t.prototype.clearData=function(t){var e=this._types.indexOf(t);-1!==e&&(this._types.splice(e,1),this._values.splice(e,1))},t.prototype.clear=function(){this._types.length=0,this._values.length=0},t}(),s=function(){function t(){var t=this;this.promise=new Promise((function(e,n){t._resolve=e,t._reject=n}))}return t.prototype.resolve=function(t){(0,this._resolve)(t)},t.prototype.reject=function(t){(0,this._reject)(t)},t}();!function(t){var e;t.getRandomValues=(e="undefined"!=typeof window&&(window.crypto||window.msCrypto)||n(50)||null)&&"function"==typeof e.getRandomValues?function(t){return e.getRandomValues(t)}:e&&"function"==typeof e.randomFillSync?function(t){return e.randomFillSync(t)}:e&&"function"==typeof e.randomBytes?function(t){for(var n=e.randomBytes(t.length),i=0,r=n.length;i<r;++i)t[i]=n[i]}:function(t){for(var e=0,n=0,i=t.length;n<i;++n)n%4==0&&(e=4294967295*Math.random()>>>0),t[n]=255&e,e>>>=8}}(r||(r={}));var a,l=function(t){this.name=t,this._tokenStructuralPropertyT=null};!function(t){t.uuid4=function(){for(var t=new Uint8Array(16),e=new Array(256),n=0;n<16;++n)e[n]="0"+n.toString(16);for(n=16;n<256;++n)e[n]=n.toString(16);return function(){return r.getRandomValues(t),t[6]=64|15&t[6],t[8]=128|63&t[8],e[t[0]]+e[t[1]]+e[t[2]]+e[t[3]]+"-"+e[t[4]]+e[t[5]]+"-"+e[t[6]]+e[t[7]]+"-"+e[t[8]]+e[t[9]]+"-"+e[t[10]]+e[t[11]]+e[t[12]]+e[t[13]]+e[t[14]]+e[t[15]]}}()}(a||(a={}))},function(t,e,n){var i;
/*!
* jQuery JavaScript Library v3.4.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2019-05-01T21:04Z
*/!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],s=n.document,a=Object.getPrototypeOf,l=o.slice,u=o.concat,c=o.push,d=o.indexOf,h={},p=h.toString,f=h.hasOwnProperty,m=f.toString,g=m.call(Object),v={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},b=function(t){return null!=t&&t===t.window},_={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var i,r,o=(n=n||s).createElement("script");if(o.text=t,e)for(i in _)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?h[p.call(t)]||"object":typeof t}var C=function(t,e){return new C.fn.init(t,e)},j=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function E(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!y(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}C.fn=C.prototype={jquery:"3.4.1",constructor:C,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=C.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return C.each(this,t)},map:function(t){return this.pushStack(C.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},C.extend=C.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(u&&i&&(C.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||C.isPlainObject(n)?n:{},r=!1,s[e]=C.extend(u,o,i)):void 0!==i&&(s[e]=i));return s},C.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==p.call(t))&&(!(e=a(t))||"function"==typeof(n=f.call(e,"constructor")&&e.constructor)&&m.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e){w(t,{nonce:e&&e.nonce})},each:function(t,e){var n,i=0;if(E(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(j,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(E(Object(t))?C.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:d.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,s=[];if(E(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&s.push(r);return u.apply([],s)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=o[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){h["[object "+e+"]"]=e.toLowerCase()}));var T=
/*!
* Sizzle CSS Selector Engine v2.3.4
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2019-04-08
*/
function(t){var e,n,i,r,o,s,a,l,u,c,d,h,p,f,m,g,v,y,b,_="sizzle"+1*new Date,w=t.document,x=0,C=0,j=lt(),E=lt(),T=lt(),M=lt(),k=function(t,e){return t===e&&(d=!0),0},A={}.hasOwnProperty,S=[],D=S.pop,O=S.push,P=S.push,L=S.slice,I=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+B+"*("+R+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+B+"*\\]",N=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",W=new RegExp(B+"+","g"),H=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),V=new RegExp("^"+B+"*,"+B+"*"),q=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),U=new RegExp(B+"|>"),K=new RegExp(N),$=new RegExp("^"+R+"$"),J={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),nt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},st=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(S=L.call(w.childNodes),w.childNodes),S[w.childNodes.length].nodeType}catch(t){P={apply:S.length?function(t,e){O.apply(t,L.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function at(t,e,i,r){var o,a,u,c,d,f,v,y=e&&e.ownerDocument,x=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return i;if(!r&&((e?e.ownerDocument||e:w)!==p&&h(e),e=e||p,m)){if(11!==x&&(d=Q.exec(t)))if(o=d[1]){if(9===x){if(!(u=e.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(y&&(u=y.getElementById(o))&&b(e,u)&&u.id===o)return i.push(u),i}else{if(d[2])return P.apply(i,e.getElementsByTagName(t)),i;if((o=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return P.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!M[t+" "]&&(!g||!g.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===x&&U.test(t)){for((c=e.getAttribute("id"))?c=c.replace(it,rt):e.setAttribute("id",c=_),a=(f=s(t)).length;a--;)f[a]="#"+c+" "+bt(f[a]);v=f.join(","),y=tt.test(t)&&vt(e.parentNode)||e}try{return P.apply(i,y.querySelectorAll(v)),i}catch(e){M(t,!0)}finally{c===_&&e.removeAttribute("id")}}}return l(t.replace(H,"$1"),e,i,r)}function lt(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function ut(t){return t[_]=!0,t}function ct(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function mt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ut((function(e){return e=+e,ut((function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=at.support={},o=at.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!Y.test(e||n&&n.nodeName||"HTML")},h=at.setDocument=function(t){var e,r,s=t?t.ownerDocument||t:w;return s!==p&&9===s.nodeType&&s.documentElement?(f=(p=s).documentElement,m=!o(p),w!==p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ct((function(t){return f.appendChild(t).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(n.qsa=Z.test(p.querySelectorAll))&&(ct((function(t){f.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+B+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+B+"*(?:value|"+z+")"),t.querySelectorAll("[id~="+_+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+B+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Z.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",N)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=Z.test(f.compareDocumentPosition),b=e||Z.test(f.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},k=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t===p||t.ownerDocument===w&&b(w,t)?-1:e===p||e.ownerDocument===w&&b(w,e)?1:c?I(c,t)-I(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!r||!o)return t===p?-1:e===p?1:r?-1:o?1:c?I(c,t)-I(c,e):0;if(r===o)return ht(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ht(s[i],a[i]):s[i]===w?-1:a[i]===w?1:0},p):p},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&h(t),n.matchesSelector&&m&&!M[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){M(e,!0)}return at(e,p,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!==p&&h(t),b(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!==p&&h(t);var r=i.attrHandle[e.toLowerCase()],o=r&&A.call(i.attrHandle,e.toLowerCase())?r(t,e,!m):void 0;return void 0!==o?o:n.attributes||!m?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},at.escape=function(t){return(t+"").replace(it,rt)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(k),d){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return c=null,t},r=at.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(i=at.selectors={cacheLength:50,createPseudo:ut,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return J.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&K.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=j[t+" "];return e||(e=new RegExp("(^|"+B+")"+t+"("+B+"|$)"))&&j(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=at.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(W," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,p,f,m=o!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(o){for(;m;){for(h=e;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(b=(p=(u=(c=(d=(h=g)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&u[1])&&u[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(b=p=0)||f.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[x,p,b];break}}else if(y&&(b=p=(u=(c=(d=(h=e)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&u[1]),!1===b)for(;(h=++p&&h&&h[m]||(b=p=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((c=(d=h[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[x,b]),h!==e)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return r[_]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ut((function(t,n){for(var i,o=r(t,e),s=o.length;s--;)t[i=I(t,o[s])]=!(n[i]=o[s])})):function(t){return r(t,0,n)}):r}},pseudos:{not:ut((function(t){var e=[],n=[],i=a(t.replace(H,"$1"));return i[_]?ut((function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:ut((function(t){return function(e){return at(t,e).length>0}})),contains:ut((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),lang:ut((function(t){return $.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,n){return[n<0?n+e:n]})),even:gt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:gt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:gt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:gt((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=ft(e);function yt(){}function bt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function _t(t,e,n){var i=e.dir,r=e.next,o=r||i,s=n&&"parentNode"===o,a=C++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r);return!1}:function(e,n,l){var u,c,d,h=[x,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(c=(d=e[_]||(e[_]={}))[e.uniqueID]||(d[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((u=c[o])&&u[0]===x&&u[1]===a)return h[2]=u[2];if(c[o]=h,h[2]=t(e,n,l))return!0}return!1}}function wt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),u&&e.push(a)));return s}function Ct(t,e,n,i,r,o){return i&&!i[_]&&(i=Ct(i)),r&&!r[_]&&(r=Ct(r,o)),ut((function(o,s,a,l){var u,c,d,h=[],p=[],f=s.length,m=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)at(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),g=!t||!o&&e?m:xt(m,h,t,a,l),v=n?r||(o?t:f||i)?[]:s:g;if(n&&n(g,v,a,l),i)for(u=xt(v,p),i(u,[],a,l),c=u.length;c--;)(d=u[c])&&(v[p[c]]=!(g[p[c]]=d));if(o){if(r||t){if(r){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(g[c]=d);r(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=r?I(o,d):h[c])>-1&&(o[u]=!(s[u]=d))}}else v=xt(v===s?v.splice(f,v.length):v),r?r(null,s,v,l):P.apply(s,v)}))}function jt(t){for(var e,n,r,o=t.length,s=i.relative[t[0].type],a=s||i.relative[" "],l=s?1:0,c=_t((function(t){return t===e}),a,!0),d=_t((function(t){return I(e,t)>-1}),a,!0),h=[function(t,n,i){var r=!s&&(i||n!==u)||((e=n).nodeType?c(t,n,i):d(t,n,i));return e=null,r}];l<o;l++)if(n=i.relative[t[l].type])h=[_t(wt(h),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[_]){for(r=++l;r<o&&!i.relative[t[r].type];r++);return Ct(l>1&&wt(h),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(H,"$1"),n,l<r&&jt(t.slice(l,r)),r<o&&jt(t=t.slice(r)),r<o&&bt(t))}h.push(n)}return wt(h)}return yt.prototype=i.filters=i.pseudos,i.setFilters=new yt,s=at.tokenize=function(t,e){var n,r,o,s,a,l,u,c=E[t+" "];if(c)return e?0:c.slice(0);for(a=t,l=[],u=i.preFilter;a;){for(s in n&&!(r=V.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=q.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(H," ")}),a=a.slice(n.length)),i.filter)!(r=J[s].exec(a))||u[s]&&!(r=u[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return e?a.length:a?at.error(t):E(t,l).slice(0)},a=at.compile=function(t,e){var n,r=[],o=[],a=T[t+" "];if(!a){for(e||(e=s(t)),n=e.length;n--;)(a=jt(e[n]))[_]?r.push(a):o.push(a);(a=T(t,function(t,e){var n=e.length>0,r=t.length>0,o=function(o,s,a,l,c){var d,f,g,v=0,y="0",b=o&&[],_=[],w=u,C=o||r&&i.find.TAG("*",c),j=x+=null==w?1:Math.random()||.1,E=C.length;for(c&&(u=s===p||s||c);y!==E&&null!=(d=C[y]);y++){if(r&&d){for(f=0,s||d.ownerDocument===p||(h(d),a=!m);g=t[f++];)if(g(d,s||p,a)){l.push(d);break}c&&(x=j)}n&&((d=!g&&d)&&v--,o&&b.push(d))}if(v+=y,n&&y!==v){for(f=0;g=e[f++];)g(b,_,s,a);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=D.call(l));_=xt(_)}P.apply(l,_),c&&!o&&_.length>0&&v+e.length>1&&at.uniqueSort(l)}return c&&(x=j,u=w),b};return n?ut(o):o}(o,r))).selector=t}return a},l=at.select=function(t,e,n,r){var o,l,u,c,d,h="function"==typeof t&&t,p=!r&&s(t=h.selector||t);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===e.nodeType&&m&&i.relative[l[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=J.needsContext.test(t)?0:l.length;o--&&(u=l[o],!i.relative[c=u.type]);)if((d=i.find[c])&&(r=d(u.matches[0].replace(et,nt),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&bt(l)))return P.apply(n,r),n;break}}return(h||a(t,p))(r,e,!m,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=_.split("").sort(k).join("")===_,n.detectDuplicates=!!d,h(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||dt(z,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),at}(n);C.find=T,C.expr=T.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=T.uniqueSort,C.text=T.getText,C.isXMLDoc=T.isXML,C.contains=T.contains,C.escapeSelector=T.escape;var M=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&C(t).is(n))break;i.push(t)}return i},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},A=C.expr.match.needsContext;function S(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,e,n){return y(e)?C.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?C.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?C.grep(t,(function(t){return d.call(e,t)>-1!==n})):C.filter(e,t,n)}C.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?C.find.matchesSelector(i,t)?[i]:[]:C.find.matches(t,C.grep(e,(function(t){return 1===t.nodeType})))},C.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(C(t).filter((function(){for(e=0;e<i;e++)if(C.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)C.find(t,r[e],n);return i>1?C.uniqueSort(n):n},filter:function(t){return this.pushStack(O(this,t||[],!1))},not:function(t){return this.pushStack(O(this,t||[],!0))},is:function(t){return!!O(this,"string"==typeof t&&A.test(t)?C(t):t||[],!1).length}});var P,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||P,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:L.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:s,!0)),D.test(i[1])&&C.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=s.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(C):C.makeArray(t,this)}).prototype=C.fn,P=C(s);var I=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};function B(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(C.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&C(t);if(!A.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?d.call(C(t),this[0]):d.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return M(t,"parentNode")},parentsUntil:function(t,e,n){return M(t,"parentNode",n)},next:function(t){return B(t,"nextSibling")},prev:function(t){return B(t,"previousSibling")},nextAll:function(t){return M(t,"nextSibling")},prevAll:function(t){return M(t,"previousSibling")},nextUntil:function(t,e,n){return M(t,"nextSibling",n)},prevUntil:function(t,e,n){return M(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return void 0!==t.contentDocument?t.contentDocument:(S(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},(function(t,e){C.fn[t]=function(n,i){var r=C.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=C.filter(i,r)),this.length>1&&(z[t]||C.uniqueSort(r),I.test(t)&&r.reverse()),this.pushStack(r)}}));var R=/[^\x20\t\r\n\f]+/g;function F(t){return t}function N(t){throw t}function W(t,e,n,i){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(n):t&&y(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}C.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return C.each(t.match(R)||[],(function(t,n){e[n]=!0})),e}(t):C.extend({},t);var e,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){C.each(n,(function(n,i){y(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==x(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return C.each(arguments,(function(t,e){for(var n;(n=C.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?C.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},C.extend({Deferred:function(t){var e=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return C.Deferred((function(n){C.each(e,(function(e,i){var r=y(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,r){var o=0;function s(t,e,i,r){return function(){var a=this,l=arguments,u=function(){var n,u;if(!(t<o)){if((n=i.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(u)?r?u.call(n,s(o,e,F,r),s(o,e,N,r)):(o++,u.call(n,s(o,e,F,r),s(o,e,N,r),s(o,e,F,e.notifyWith))):(i!==F&&(a=void 0,l=[n]),(r||e.resolveWith)(a,l))}},c=r?u:function(){try{u()}catch(n){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(n,c.stackTrace),t+1>=o&&(i!==N&&(a=void 0,l=[n]),e.rejectWith(a,l))}};t?c():(C.Deferred.getStackHook&&(c.stackTrace=C.Deferred.getStackHook()),n.setTimeout(c))}}return C.Deferred((function(n){e[0][3].add(s(0,n,y(r)?r:F,n.notifyWith)),e[1][3].add(s(0,n,y(t)?t:F)),e[2][3].add(s(0,n,y(i)?i:N))})).promise()},promise:function(t){return null!=t?C.extend(t,r):r}},o={};return C.each(e,(function(t,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add((function(){i=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=l.call(arguments),o=C.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?l.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(W(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||y(r[n]&&r[n].then)))return o.then();for(;n--;)W(r[n],s(n),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&H.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){n.setTimeout((function(){throw t}))};var V=C.Deferred();function q(){s.removeEventListener("DOMContentLoaded",q),n.removeEventListener("load",q),C.ready()}C.fn.ready=function(t){return V.then(t).catch((function(t){C.readyException(t)})),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==t&&--C.readyWait>0||V.resolveWith(s,[C]))}}),C.ready.then=V.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(C.ready):(s.addEventListener("DOMContentLoaded",q),n.addEventListener("load",q));var U=function(t,e,n,i,r,o,s){var a=0,l=t.length,u=null==n;if("object"===x(n))for(a in r=!0,n)U(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,y(i)||(s=!0),u&&(s?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(C(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:u?e.call(t):l?e(t[0],n):o},K=/^-ms-/,$=/-([a-z])/g;function J(t,e){return e.toUpperCase()}function Y(t){return t.replace(K,"ms-").replace($,J)}var G=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function X(){this.expando=C.expando+X.uid++}X.uid=1,X.prototype={cache:function(t){var e=t[this.expando];return e||(e={},G(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[Y(e)]=n;else for(i in e)r[Y(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Y(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(Y):(e=Y(e))in i?[e]:e.match(R)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||C.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!C.isEmptyObject(e)}};var Z=new X,Q=new X,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function nt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(n)}catch(t){}Q.set(t,e,n)}else n=void 0;return n}C.extend({hasData:function(t){return Q.hasData(t)||Z.hasData(t)},data:function(t,e,n){return Q.access(t,e,n)},removeData:function(t,e){Q.remove(t,e)},_data:function(t,e,n){return Z.access(t,e,n)},_removeData:function(t,e){Z.remove(t,e)}}),C.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=Q.get(o),1===o.nodeType&&!Z.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=Y(i.slice(5)),nt(o,i,r[i]));Z.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){Q.set(this,t)})):U(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=Q.get(o,t))||void 0!==(n=nt(o,t))?n:void 0;this.each((function(){Q.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Q.remove(this,t)}))}}),C.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Z.get(t,e),n&&(!i||Array.isArray(n)?i=Z.access(t,e,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),i=n.length,r=n.shift(),o=C._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){C.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Z.get(t,n)||Z.access(t,n,{empty:C.Callbacks("once memory").add((function(){Z.remove(t,[e+"queue",n])}))})}}),C.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?C.queue(this[0],t):void 0===e?this:this.each((function(){var n=C.queue(this,t,e);C._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&C.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){C.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=C.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=Z.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],st=s.documentElement,at=function(t){return C.contains(t.ownerDocument,t)},lt={composed:!0};st.getRootNode&&(at=function(t){return C.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var ut=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===C.css(t,"display")},ct=function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in r=n.apply(t,i||[]),e)t.style[o]=s[o];return r};function dt(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return C.css(t,e,"")},l=a(),u=n&&n[3]||(C.cssNumber[e]?"":"px"),c=t.nodeType&&(C.cssNumber[e]||"px"!==u&&+l)&&rt.exec(C.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)C.style(t,e,c+u),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c*=2,C.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var ht={};function pt(t){var e,n=t.ownerDocument,i=t.nodeName,r=ht[i];return r||(e=n.body.appendChild(n.createElement(i)),r=C.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),ht[i]=r,r)}function ft(t,e){for(var n,i,r=[],o=0,s=t.length;o<s;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=Z.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ut(i)&&(r[o]=pt(i))):"none"!==n&&(r[o]="none",Z.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}C.fn.extend({show:function(){return ft(this,!0)},hide:function(){return ft(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ut(this)?C(this).show():C(this).hide()}))}});var mt=/^(?:checkbox|radio)$/i,gt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,vt=/^$|^module$|\/(?:java|ecma)script/i,yt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function bt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&S(t,e)?C.merge([t],n):n}function _t(t,e){for(var n=0,i=t.length;n<i;n++)Z.set(t[n],"globalEval",!e||Z.get(e[n],"globalEval"))}yt.optgroup=yt.option,yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td;var wt,xt,Ct=/<|&#?\w+;/;function jt(t,e,n,i,r){for(var o,s,a,l,u,c,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===x(o))C.merge(h,o.nodeType?[o]:o);else if(Ct.test(o)){for(s=s||d.appendChild(e.createElement("div")),a=(gt.exec(o)||["",""])[1].toLowerCase(),l=yt[a]||yt._default,s.innerHTML=l[1]+C.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;C.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(i&&C.inArray(o,i)>-1)r&&r.push(o);else if(u=at(o),s=bt(d.appendChild(o),"script"),u&&_t(s),n)for(c=0;o=s[c++];)vt.test(o.type||"")&&n.push(o);return d}wt=s.createDocumentFragment().appendChild(s.createElement("div")),(xt=s.createElement("input")).setAttribute("type","radio"),xt.setAttribute("checked","checked"),xt.setAttribute("name","t"),wt.appendChild(xt),v.checkClone=wt.cloneNode(!0).cloneNode(!0).lastChild.checked,wt.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!wt.cloneNode(!0).lastChild.defaultValue;var Et=/^key/,Tt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function At(){return!1}function St(t,e){return t===function(){try{return s.activeElement}catch(t){}}()==("focus"===e)}function Dt(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Dt(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=At;else if(!r)return t;return 1===o&&(s=r,(r=function(t){return C().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=C.guid++)),t.each((function(){C.event.add(this,e,r,i,n)}))}function Ot(t,e,n){n?(Z.set(t,e,!1),C.event.add(t,e,{namespace:!1,handler:function(t){var i,r,o=Z.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(C.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=l.call(arguments),Z.set(this,e,o),i=n(this,e),this[e](),o!==(r=Z.get(this,e))||i?Z.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r.value}else o.length&&(Z.set(this,e,{value:C.event.trigger(C.extend(o[0],C.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Z.get(t,e)&&C.event.add(t,e,kt)}C.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,d,h,p,f,m,g=Z.get(t);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&C.find.matchesSelector(st,r),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(R)||[""]).length;u--;)p=m=(a=Mt.exec(e[u])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=C.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=C.event.special[p]||{},c=C.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&C.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,s)||t.addEventListener&&t.addEventListener(p,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),C.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,u,c,d,h,p,f,m,g=Z.hasData(t)&&Z.get(t);if(g&&(l=g.events)){for(u=(e=(e||"").match(R)||[""]).length;u--;)if(p=m=(a=Mt.exec(e[u])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=C.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||C.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)C.event.remove(t,p+e[u],n,i,!0);C.isEmptyObject(l)&&Z.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=C.event.fix(t),l=new Array(arguments.length),u=(Z.get(this,"events")||{})[a.type]||[],c=C.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=C.event.handlers.call(this,a,u),e=0;(r=s[e++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(i=((C.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,i,r,o,s,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?C(r,this).index(u)>-1:C.find(r,this,null,[u]).length),s[r]&&o.push(i);o.length&&a.push({elem:u,handlers:o})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[C.expando]?t:new C.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return mt.test(e.type)&&e.click&&S(e,"input")&&Ot(e,"click",kt),!1},trigger:function(t){var e=this||t;return mt.test(e.type)&&e.click&&S(e,"input")&&Ot(e,"click"),!0},_default:function(t){var e=t.target;return mt.test(e.type)&&e.click&&S(e,"input")&&Z.get(e,"click")||S(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},C.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?kt:At,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:At,isPropagationStopped:At,isImmediatePropagationStopped:At,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=kt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=kt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=kt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Et.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Tt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(t,e){C.event.special[t]={setup:function(){return Ot(this,t,St),!1},trigger:function(){return Ot(this,t),!0},delegateType:e}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){C.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||C.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),C.fn.extend({on:function(t,e,n,i){return Dt(this,t,e,n,i)},one:function(t,e,n,i){return Dt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,C(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=At),this.each((function(){C.event.remove(this,t,n,e)}))}});var Pt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Lt=/<script|<style|<link/i,It=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Bt(t,e){return S(t,"table")&&S(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function Rt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ft(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var n,i,r,o,s,a,l,u;if(1===e.nodeType){if(Z.hasData(t)&&(o=Z.access(t),s=Z.set(e,o),u=o.events))for(r in delete s.handle,s.events={},u)for(n=0,i=u[r].length;n<i;n++)C.event.add(e,r,u[r][n]);Q.hasData(t)&&(a=Q.access(t),l=C.extend({},a),Q.set(e,l))}}function Wt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&mt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ht(t,e,n,i){e=u.apply([],e);var r,o,s,a,l,c,d=0,h=t.length,p=h-1,f=e[0],m=y(f);if(m||h>1&&"string"==typeof f&&!v.checkClone&&It.test(f))return t.each((function(r){var o=t.eq(r);m&&(e[0]=f.call(this,r,o.html())),Ht(o,e,n,i)}));if(h&&(o=(r=jt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=C.map(bt(r,"script"),Rt)).length;d<h;d++)l=r,d!==p&&(l=C.clone(l,!0,!0),a&&C.merge(s,bt(l,"script"))),n.call(t[d],l,d);if(a)for(c=s[s.length-1].ownerDocument,C.map(s,Ft),d=0;d<a;d++)l=s[d],vt.test(l.type||"")&&!Z.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):w(l.textContent.replace(zt,""),l,c))}return t}function Vt(t,e,n){for(var i,r=e?C.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||C.cleanData(bt(i)),i.parentNode&&(n&&at(i)&&_t(bt(i,"script")),i.parentNode.removeChild(i));return t}C.extend({htmlPrefilter:function(t){return t.replace(Pt,"<$1></$2>")},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=at(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(s=bt(a),i=0,r=(o=bt(t)).length;i<r;i++)Wt(o[i],s[i]);if(e)if(n)for(o=o||bt(t),s=s||bt(a),i=0,r=o.length;i<r;i++)Nt(o[i],s[i]);else Nt(t,a);return(s=bt(a,"script")).length>0&&_t(s,!l&&bt(t,"script")),a},cleanData:function(t){for(var e,n,i,r=C.event.special,o=0;void 0!==(n=t[o]);o++)if(G(n)){if(e=n[Z.expando]){if(e.events)for(i in e.events)r[i]?C.event.remove(n,i):C.removeEvent(n,i,e.handle);n[Z.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),C.fn.extend({detach:function(t){return Vt(this,t,!0)},remove:function(t){return Vt(this,t)},text:function(t){return U(this,(function(t){return void 0===t?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ht(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)}))},prepend:function(){return Ht(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ht(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ht(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return C.clone(this,t,e)}))},html:function(t){return U(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Lt.test(t)&&!yt[(gt.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(C.cleanData(bt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ht(this,arguments,(function(e){var n=this.parentNode;C.inArray(this,t)<0&&(C.cleanData(bt(this)),n&&n.replaceChild(e,this))}),t)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){C.fn[t]=function(t){for(var n,i=[],r=C(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),C(r[s])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var qt=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),Ut=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Kt=new RegExp(ot.join("|"),"i");function $t(t,e,n){var i,r,o,s,a=t.style;return(n=n||Ut(t))&&(""!==(s=n.getPropertyValue(e)||n[e])||at(t)||(s=C.style(t,e)),!v.pixelBoxStyles()&&qt.test(s)&&Kt.test(e)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function Jt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",st.appendChild(u).appendChild(c);var t=n.getComputedStyle(c);i="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),st.removeChild(u),c=null}}function e(t){return Math.round(parseFloat(t))}var i,r,o,a,l,u=s.createElement("div"),c=s.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o}}))}();var Yt=["Webkit","Moz","ms"],Gt=s.createElement("div").style,Xt={};function Zt(t){var e=C.cssProps[t]||Xt[t];return e||(t in Gt?t:Xt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Yt.length;n--;)if((t=Yt[n]+e)in Gt)return t}(t)||t)}var Qt=/^(none|table(?!-c[ea]).+)/,te=/^--/,ee={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"};function ie(t,e,n){var i=rt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function re(t,e,n,i,r,o){var s="width"===e?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=C.css(t,n+ot[s],!0,r)),i?("content"===n&&(l-=C.css(t,"padding"+ot[s],!0,r)),"margin"!==n&&(l-=C.css(t,"border"+ot[s]+"Width",!0,r))):(l+=C.css(t,"padding"+ot[s],!0,r),"padding"!==n?l+=C.css(t,"border"+ot[s]+"Width",!0,r):a+=C.css(t,"border"+ot[s]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l}function oe(t,e,n){var i=Ut(t),r=(!v.boxSizingReliable()||n)&&"border-box"===C.css(t,"boxSizing",!1,i),o=r,s=$t(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(qt.test(s)){if(!n)return s;s="auto"}return(!v.boxSizingReliable()&&r||"auto"===s||!parseFloat(s)&&"inline"===C.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===C.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+re(t,e,n||(r?"border":"content"),o,i,s)+"px"}function se(t,e,n,i,r){return new se.prototype.init(t,e,n,i,r)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$t(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=Y(e),l=te.test(e),u=t.style;if(l||(e=Zt(a)),s=C.cssHooks[e]||C.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:u[e];"string"===(o=typeof n)&&(r=rt.exec(n))&&r[1]&&(n=dt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(C.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,s,a=Y(e);return te.test(e)||(e=Zt(a)),(s=C.cssHooks[e]||C.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=$t(t,e,i)),"normal"===r&&e in ne&&(r=ne[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),C.each(["height","width"],(function(t,e){C.cssHooks[e]={get:function(t,n,i){if(n)return!Qt.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?oe(t,e,i):ct(t,ee,(function(){return oe(t,e,i)}))},set:function(t,n,i){var r,o=Ut(t),s=!v.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===C.css(t,"boxSizing",!1,o),l=i?re(t,e,i,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-re(t,e,"border",!1,o)-.5)),l&&(r=rt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=C.css(t,e)),ie(0,n,l)}}})),C.cssHooks.marginLeft=Jt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat($t(t,"marginLeft"))||t.getBoundingClientRect().left-ct(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(t,e){C.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ot[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(C.cssHooks[t+e].set=ie)})),C.fn.extend({css:function(t,e){return U(this,(function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Ut(t),r=e.length;s<r;s++)o[e[s]]=C.css(t,e[s],!1,i);return o}return void 0!==n?C.style(t,e,n):C.css(t,e)}),t,e,arguments.length>1)}}),C.Tween=se,se.prototype={constructor:se,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var t=se.propHooks[this.prop];return t&&t.get?t.get(this):se.propHooks._default.get(this)},run:function(t){var e,n=se.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):se.propHooks._default.set(this),this}},se.prototype.init.prototype=se.prototype,se.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=C.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||!C.cssHooks[t.prop]&&null==t.elem.style[Zt(t.prop)]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}},se.propHooks.scrollTop=se.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=se.prototype.init,C.fx.step={};var ae,le,ue=/^(?:toggle|show|hide)$/,ce=/queueHooks$/;function de(){le&&(!1===s.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(de):n.setTimeout(de,C.fx.interval),C.fx.tick())}function he(){return n.setTimeout((function(){ae=void 0})),ae=Date.now()}function pe(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ot[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function fe(t,e,n){for(var i,r=(me.tweeners[e]||[]).concat(me.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function me(t,e,n){var i,r,o=0,s=me.prefilters.length,a=C.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=ae||he(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,s=u.tweens.length;o<s;o++)u.tweens[o].run(i);return a.notifyWith(t,[u,i,n]),i<1&&s?n:(s||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:e,originalOptions:n,startTime:ae||he(),duration:n.duration,tweens:[],createTween:function(e,n){var i=C.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=Y(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=C.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,u.opts.specialEasing);o<s;o++)if(i=me.prefilters[o].call(u,t,c,u.opts))return y(i.stop)&&(C._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return C.map(c,fe,u),y(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),C.fx.timer(C.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}C.Animation=C.extend(me,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return dt(n.elem,t,rt.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(R);for(var n,i=0,r=t.length;i<r;i++)n=t[i],me.tweeners[n]=me.tweeners[n]||[],me.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,l,u,c,d="width"in e||"height"in e,h=this,p={},f=t.style,m=t.nodeType&&ut(t),g=Z.get(t,"fxshow");for(i in n.queue||(null==(s=C._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,C.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[i],ue.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||C.style(t,i)}if((l=!C.isEmptyObject(e))||!C.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=g&&g.display)&&(u=Z.get(t,"display")),"none"===(c=C.css(t,"display"))&&(u?c=u:(ft([t],!0),u=t.style.display||u,c=C.css(t,"display"),ft([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===C.css(t,"float")&&(l||(h.done((function(){f.display=u})),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Z.access(t,"fxshow",{display:u}),o&&(g.hidden=!m),m&&ft([t],!0),h.done((function(){for(i in m||ft([t]),Z.remove(t,"fxshow"),p)C.style(t,i,p[i])}))),l=fe(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?me.prefilters.unshift(t):me.prefilters.push(t)}}),C.speed=function(t,e,n){var i=t&&"object"==typeof t?C.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ut).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=C.isEmptyObject(t),o=C.speed(e,n,i),s=function(){var e=me(this,C.extend({},t),o);(r||Z.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=C.timers,s=Z.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&ce.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||C.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=Z.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=C.timers,s=i?i.length:0;for(n.finish=!0,C.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(t,e){var n=C.fn[e];C.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(pe(e,!0),t,i,r)}})),C.each({slideDown:pe("show"),slideUp:pe("hide"),slideToggle:pe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){C.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),C.timers=[],C.fx.tick=function(){var t,e=0,n=C.timers;for(ae=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||C.fx.stop(),ae=void 0},C.fx.timer=function(t){C.timers.push(t),C.fx.start()},C.fx.interval=13,C.fx.start=function(){le||(le=!0,de())},C.fx.stop=function(){le=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(t,e){return t=C.fx&&C.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))},function(){var t=s.createElement("input"),e=s.createElement("select").appendChild(s.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=s.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var ge,ve=C.expr.attrHandle;C.fn.extend({attr:function(t,e){return U(this,C.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){C.removeAttr(this,t)}))}}),C.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?C.prop(t,e,n):(1===o&&C.isXMLDoc(t)||(r=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?ge:void 0)),void 0!==n?null===n?void C.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=C.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&S(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(R);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),ge={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ve[e]||C.find.attr;ve[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=ve[s],ve[s]=r,r=null!=n(t,e,i)?s:null,ve[s]=o),r}}));var ye=/^(?:input|select|textarea|button)$/i,be=/^(?:a|area)$/i;function _e(t){return(t.match(R)||[]).join(" ")}function we(t){return t.getAttribute&&t.getAttribute("class")||""}function xe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(R)||[]}C.fn.extend({prop:function(t,e){return U(this,C.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[C.propFix[t]||t]}))}}),C.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(t)||(e=C.propFix[e]||e,r=C.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):ye.test(t.nodeName)||be.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,l=0;if(y(t))return this.each((function(e){C(this).addClass(t.call(this,e,we(this)))}));if((e=xe(t)).length)for(;n=this[l++];)if(r=we(n),i=1===n.nodeType&&" "+_e(r)+" "){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=_e(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,l=0;if(y(t))return this.each((function(e){C(this).removeClass(t.call(this,e,we(this)))}));if(!arguments.length)return this.attr("class","");if((e=xe(t)).length)for(;n=this[l++];)if(r=we(n),i=1===n.nodeType&&" "+_e(r)+" "){for(s=0;o=e[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=_e(i))&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):y(t)?this.each((function(n){C(this).toggleClass(t.call(this,n,we(this),e),e)})):this.each((function(){var e,r,o,s;if(i)for(r=0,o=C(this),s=xe(t);e=s[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=we(this))&&Z.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Z.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+_e(we(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;C.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=y(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,C(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=C.map(r,(function(t){return null==t?"":t+""}))),(e=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=C.valHooks[r.type]||C.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ce,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:_e(C.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(e=C(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=C.makeArray(e),s=r.length;s--;)((i=r[s]).selected=C.inArray(C.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=C.inArray(C(t).val(),e)>-1}},v.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in n;var je=/^(?:focusinfocus|focusoutblur)$/,Ee=function(t){t.stopPropagation()};C.extend(C.event,{trigger:function(t,e,i,r){var o,a,l,u,c,d,h,p,m=[i||s],g=f.call(t,"type")?t.type:t,v=f.call(t,"namespace")?t.namespace.split("."):[];if(a=p=l=i=i||s,3!==i.nodeType&&8!==i.nodeType&&!je.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[C.expando]?t:new C.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:C.makeArray(e,[t]),h=C.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(i,e))){if(!r&&!h.noBubble&&!b(i)){for(u=h.delegateType||g,je.test(u+g)||(a=a.parentNode);a;a=a.parentNode)m.push(a),l=a;l===(i.ownerDocument||s)&&m.push(l.defaultView||l.parentWindow||n)}for(o=0;(a=m[o++])&&!t.isPropagationStopped();)p=a,t.type=o>1?u:h.bindType||g,(d=(Z.get(a,"events")||{})[t.type]&&Z.get(a,"handle"))&&d.apply(a,e),(d=c&&a[c])&&d.apply&&G(a)&&(t.result=d.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),e)||!G(i)||c&&y(i[g])&&!b(i)&&((l=i[c])&&(i[c]=null),C.event.triggered=g,t.isPropagationStopped()&&p.addEventListener(g,Ee),i[g](),t.isPropagationStopped()&&p.removeEventListener(g,Ee),C.event.triggered=void 0,l&&(i[c]=l)),t.result}},simulate:function(t,e,n){var i=C.extend(new C.Event,n,{type:t,isSimulated:!0});C.event.trigger(i,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each((function(){C.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return C.event.trigger(t,e,n,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){C.event.simulate(e,t.target,C.event.fix(t))};C.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=Z.access(i,e);r||i.addEventListener(t,n,!0),Z.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Z.access(i,e)-1;r?Z.access(i,e,r):(i.removeEventListener(t,n,!0),Z.remove(i,e))}}}));var Te=n.location,Me=Date.now(),ke=/\?/;C.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+t),e};var Ae=/\[\]$/,Se=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;function Pe(t,e,n,i){var r;if(Array.isArray(e))C.each(e,(function(e,r){n||Ae.test(t)?i(t,r):Pe(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==x(e))i(t,e);else for(r in e)Pe(t+"["+r+"]",e[r],n,i)}C.param=function(t,e){var n,i=[],r=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,(function(){r(this.name,this.value)}));else for(n in t)Pe(n,t[n],e,r);return i.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&Oe.test(this.nodeName)&&!De.test(t)&&(this.checked||!mt.test(t))})).map((function(t,e){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(t){return{name:e.name,value:t.replace(Se,"\r\n")}})):{name:e.name,value:n.replace(Se,"\r\n")}})).get()}});var Le=/%20/g,Ie=/#.*$/,ze=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)$/gm,Re=/^(?:GET|HEAD)$/,Fe=/^\/\//,Ne={},We={},He="*/".concat("*"),Ve=s.createElement("a");function qe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(R)||[];if(y(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ue(t,e,n,i){var r={},o=t===We;function s(a){var l;return r[a]=!0,C.each(t[a]||[],(function(t,a){var u=a(e,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),s(u),!1)})),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function Ke(t,e){var n,i,r=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&C.extend(!0,t,i),t}Ve.href=Te.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":He,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ke(Ke(t,C.ajaxSettings),e):Ke(C.ajaxSettings,t)},ajaxPrefilter:qe(Ne),ajaxTransport:qe(We),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,a,l,u,c,d,h,p,f=C.ajaxSetup({},e),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?C(m):C.event,v=C.Deferred(),y=C.Callbacks("once memory"),b=f.statusCode||{},_={},w={},x="canceled",j={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Be.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)j.always(t[j.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return i&&i.abort(e),E(0,e),this}};if(v.promise(j),f.url=((t||f.url||Te.href)+"").replace(Fe,Te.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(R)||[""],null==f.crossDomain){u=s.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Ve.protocol+"//"+Ve.host!=u.protocol+"//"+u.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Ue(Ne,f,e,j),c)return j;for(h in(d=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Re.test(f.type),r=f.url.replace(Ie,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Le,"+")):(p=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(ke.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(ze,"$1"),p=(ke.test(r)?"&":"?")+"_="+Me+++p),f.url=r+p),f.ifModified&&(C.lastModified[r]&&j.setRequestHeader("If-Modified-Since",C.lastModified[r]),C.etag[r]&&j.setRequestHeader("If-None-Match",C.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&j.setRequestHeader("Content-Type",f.contentType),j.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+He+"; q=0.01":""):f.accepts["*"]),f.headers)j.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(m,j,f)||c))return j.abort();if(x="abort",y.add(f.complete),j.done(f.success),j.fail(f.error),i=Ue(We,f,e,j)){if(j.readyState=1,d&&g.trigger("ajaxSend",[j,f]),c)return j;f.async&&f.timeout>0&&(l=n.setTimeout((function(){j.abort("timeout")}),f.timeout));try{c=!1,i.send(_,E)}catch(t){if(c)throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,e,s,a){var u,h,p,_,w,x=e;c||(c=!0,l&&n.clearTimeout(l),i=void 0,o=a||"",j.readyState=t>0?4:0,u=t>=200&&t<300||304===t,s&&(_=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,j,s)),_=function(t,e,n,i){var r,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,_,j,u),u?(f.ifModified&&((w=j.getResponseHeader("Last-Modified"))&&(C.lastModified[r]=w),(w=j.getResponseHeader("etag"))&&(C.etag[r]=w)),204===t||"HEAD"===f.type?x="nocontent":304===t?x="notmodified":(x=_.state,h=_.data,u=!(p=_.error))):(p=x,!t&&x||(x="error",t<0&&(t=0))),j.status=t,j.statusText=(e||x)+"",u?v.resolveWith(m,[h,x,j]):v.rejectWith(m,[j,x,p]),j.statusCode(b),b=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[j,f,u?h:p]),y.fireWith(m,[j,x]),d&&(g.trigger("ajaxComplete",[j,f]),--C.active||C.event.trigger("ajaxStop")))}return j},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],(function(t,e){C[e]=function(t,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),C.ajax(C.extend({url:t,type:e,dataType:r,data:n,success:i},C.isPlainObject(t)&&t))}})),C._evalUrl=function(t,e){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){C.globalEval(t,e)}})},C.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){C(this).wrapInner(t.call(this,e))})):this.each((function(){var e=C(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){C(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var $e={0:200,1223:204},Je=C.ajaxSettings.xhr();v.cors=!!Je&&"withCredentials"in Je,v.ajax=Je=!!Je,C.ajaxTransport((function(t){var e,i;if(v.cors||Je&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o($e[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),C.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),C.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=C("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),s.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Ye,Ge=[],Xe=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||C.expando+"_"+Me++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",(function(t,e,i){var r,o,s,a=!1!==t.jsonp&&(Xe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xe.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Xe,"$1"+r):!1!==t.jsonp&&(t.url+=(ke.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||C.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always((function(){void 0===o?C(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,Ge.push(r)),s&&y(o)&&o(s[0]),s=o=void 0})),"script"})),v.createHTMLDocument=((Ye=s.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ye.childNodes.length),C.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((i=(e=s.implementation.createHTMLDocument("")).createElement("base")).href=s.location.href,e.head.appendChild(i)):e=s),o=!n&&[],(r=D.exec(t))?[e.createElement(r[1])]:(r=jt([t],e,o),o&&o.length&&C(o).remove(),C.merge([],r.childNodes)));var i,r,o},C.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=_e(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&C.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?C("<div>").append(C.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){C.fn[e]=function(t){return this.on(e,t)}})),C.expr.pseudos.animated=function(t){return C.grep(C.timers,(function(e){return t===e.elem})).length},C.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,u=C.css(t,"position"),c=C(t),d={};"static"===u&&(t.style.position="relative"),a=c.offset(),o=C.css(t,"top"),l=C.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),y(e)&&(e=e.call(t,n,C.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):c.css(d)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){C.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===C.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),r.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-C.css(i,"marginTop",!0),left:e.left-r.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||st}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;C.fn[t]=function(i){return U(this,(function(t,i,r){var o;if(b(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),C.each(["top","left"],(function(t,e){C.cssHooks[e]=Jt(v.pixelPosition,(function(t,n){if(n)return n=$t(t,e),qt.test(n)?C(t).position()[e]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(t,e){C.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){C.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return U(this,(function(e,n,r){var o;return b(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?C.css(e,n,a):C.style(e,n,r,a)}),e,s?r:void 0,s)}}))})),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){C.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}})),C.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),C.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),C.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=l.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(l.call(arguments)))}).guid=t.guid=t.guid||C.guid++,r},C.holdReady=function(t){t?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=S,C.isFunction=y,C.isWindow=b,C.camelCase=Y,C.type=x,C.now=Date.now,C.isNumeric=function(t){var e=C.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},void 0===(i=function(){return C}.apply(e,[]))||(t.exports=i);var Ze=n.jQuery,Qe=n.$;return C.noConflict=function(t){return n.$===C&&(n.$=Qe),t&&n.jQuery===C&&(n.jQuery=Ze),C},r||(n.jQuery=n.$=C),C}))},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot).concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}var s,a,l;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i=0;i<t.length;i++){var r=[].concat(t[i]);n&&(r[2]?r[2]="".concat(n," and ").concat(r[2]):r[2]=n),e.push(r)}},e}},function(t,e,n){var i=n(31),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},function(t,e,n){var i=n(64),r=n(69);t.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(24),r=n(65),o=n(66),s=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?r(t):o(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var i,r,o;r=[n(8)],void 0===(o="function"==typeof(i=function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})?i.apply(e,r):i)||(t.exports=o)},function(t,e,n){var i=n(54),r=n(55),o=n(56),s=n(57),a=n(58);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},function(t,e,n){var i=n(29);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},function(t,e,n){var i=n(11)(Object,"create");t.exports=i},function(t,e,n){var i=n(78);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s={};function a(t,e,n){for(var i=0;i<e.length;i++){var r={css:e[i][1],media:e[i][2],sourceMap:e[i][3]};s[t][i]?s[t][i](r):s[t].push(m(r,n))}}function l(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,c=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=c(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function h(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var p=null,f=0;function m(t,e){var n,i,r;if(e.singleton){var o=f++;n=p||(p=l(e)),i=d.bind(null,n,o,!1),r=d.bind(null,n,o,!0)}else n=l(e),i=h.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e,n){return(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=r()),t=n.base?t+n.base:t,e=e||[],s[t]||(s[t]=[]),a(t,e,n),function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){s[t]||(s[t]=[]),a(t,e,n);for(var i=e.length;i<s[t].length;i++)s[t][i]();s[t].length=e.length,0===s[t].length&&delete s[t]}}}},function(t,e,n){(function(i){var r,o,s;s="object"==typeof self&&self.self==self&&self||"object"==typeof i&&i.global==i&&i,r=[n(2),n(8),e],void 0===(o=function(t,e,n){s.Backbone=function(t,e,n,i){var r=t.Backbone,o=Array.prototype.slice;e.VERSION="1.2.3",e.$=i,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var s=function(t,e,i){n.each(e,(function(e,r){n[r]&&(t.prototype[r]=function(t,e,i){switch(t){case 1:return function(){return n[e](this[i])};case 2:return function(t){return n[e](this[i],t)};case 3:return function(t,r){return n[e](this[i],a(t,this),r)};case 4:return function(t,r,o){return n[e](this[i],a(t,this),r,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[i]),n[e].apply(n,t)}}}(e,r,i))}))},a=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?l(t):n.isString(t)?function(e){return e.get(t)}:t},l=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}},u=e.Events={},c=/\s+/,d=function(t,e,i,r,o){var s,a=0;if(i&&"object"==typeof i){void 0!==r&&"context"in o&&void 0===o.context&&(o.context=r);for(s=n.keys(i);a<s.length;a++)e=d(t,e,s[a],i[s[a]],o)}else if(i&&c.test(i))for(s=i.split(c);a<s.length;a++)e=t(e,s[a],r,o);else e=t(e,i,r,o);return e};u.on=function(t,e,n){return h(this,t,e,n)};var h=function(t,e,n,i,r){return t._events=d(p,t._events||{},e,n,{context:i,ctx:t,listening:r}),r&&((t._listeners||(t._listeners={}))[r.id]=r),t};u.listenTo=function(t,e,i){if(!t)return this;var r=t._listenId||(t._listenId=n.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),s=o[r];if(!s){var a=this._listenId||(this._listenId=n.uniqueId("l"));s=o[r]={obj:t,objId:r,id:a,listeningTo:o,count:0}}return h(t,e,i,this,s),this};var p=function(t,e,n,i){if(n){var r=t[e]||(t[e]=[]),o=i.context,s=i.ctx,a=i.listening;a&&a.count++,r.push({callback:n,context:o,ctx:o||s,listening:a})}return t};u.off=function(t,e,n){return this._events?(this._events=d(f,this._events,t,e,{context:n,listeners:this._listeners}),this):this},u.stopListening=function(t,e,i){var r=this._listeningTo;if(!r)return this;for(var o=t?[t._listenId]:n.keys(r),s=0;s<o.length;s++){var a=r[o[s]];if(!a)break;a.obj.off(e,i,this)}return n.isEmpty(r)&&(this._listeningTo=void 0),this};var f=function(t,e,i,r){if(t){var o,s=0,a=r.context,l=r.listeners;if(e||i||a){for(var u=e?[e]:n.keys(t);s<u.length;s++){var c=t[e=u[s]];if(!c)break;for(var d=[],h=0;h<c.length;h++){var p=c[h];i&&i!==p.callback&&i!==p.callback._callback||a&&a!==p.context?d.push(p):(o=p.listening)&&0==--o.count&&(delete l[o.id],delete o.listeningTo[o.objId])}d.length?t[e]=d:delete t[e]}return n.size(t)?t:void 0}for(var f=n.keys(l);s<f.length;s++)delete l[(o=l[f[s]]).id],delete o.listeningTo[o.objId]}};u.once=function(t,e,i){var r=d(m,{},t,e,n.bind(this.off,this));return this.on(r,void 0,i)},u.listenToOnce=function(t,e,i){var r=d(m,{},e,i,n.bind(this.stopListening,this,t));return this.listenTo(t,r)};var m=function(t,e,i,r){if(i){var o=t[e]=n.once((function(){r(e,o),i.apply(this,arguments)}));o._callback=i}return t};u.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),i=0;i<e;i++)n[i]=arguments[i+1];return d(g,this._events,t,void 0,n),this};var g=function(t,e,n,i){if(t){var r=t[e],o=t.all;r&&o&&(o=o.slice()),r&&v(r,i),o&&v(o,[e].concat(i))}return t},v=function(t,e){var n,i=-1,r=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s,a);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}};u.bind=u.on,u.unbind=u.off,n.extend(e,u);var y=e.Model=function(t,e){var i=t||{};e||(e={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),i=n.defaults({},i,n.result(this,"defaults")),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(y.prototype,u,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null==t)return this;var r;if("object"==typeof t?(r=t,i=e):(r={})[t]=e,i||(i={}),!this._validate(r,i))return!1;var o=i.unset,s=i.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var u=this.attributes,c=this.changed,d=this._previousAttributes;for(var h in r)e=r[h],n.isEqual(u[h],e)||a.push(h),n.isEqual(d[h],e)?delete c[h]:c[h]=e,o?delete u[h]:u[h]=e;if(this.id=this.get(this.idAttribute),!s){a.length&&(this._pending=i);for(var p=0;p<a.length;p++)this.trigger("change:"+a[p],this,u[a[p]],i)}if(l)return this;if(!s)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,i={};for(var r in t){var o=t[r];n.isEqual(e[r],o)||(i[r]=o)}return!!n.size(i)&&i},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,i=t.success;return t.success=function(n){var r=t.parse?e.parse(n,t):n;if(!e.set(r,t))return!1;i&&i.call(t.context,e,n,t),e.trigger("sync",e,n,t)},B(this,t),this.sync("read",this,t)},save:function(t,e,i){var r;null==t||"object"==typeof t?(r=t,i=e):(r={})[t]=e;var o=(i=n.extend({validate:!0,parse:!0},i)).wait;if(r&&!o){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;var s=this,a=i.success,l=this.attributes;i.success=function(t){s.attributes=l;var e=i.parse?s.parse(t,i):t;if(o&&(e=n.extend({},r,e)),e&&!s.set(e,i))return!1;a&&a.call(i.context,s,t,i),s.trigger("sync",s,t,i)},B(this,i),r&&o&&(this.attributes=n.extend({},l,r));var u=this.isNew()?"create":i.patch?"patch":"update";"patch"!==u||i.attrs||(i.attrs=r);var c=this.sync(u,this,i);return this.attributes=l,c},destroy:function(t){t=t?n.clone(t):{};var e=this,i=t.success,r=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){r&&o(),i&&i.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var s=!1;return this.isNew()?n.defer(t.success):(B(this,t),s=this.sync("delete",this,t)),r||o(),s},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||z();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.defaults({validate:!0},t))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;return!i||(this.trigger("invalid",this,i,n.extend(e,{validationError:i})),!1)}}),s(y,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes");var b=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},_={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},x=function(t,e,n){n=Math.min(Math.max(n,0),t.length);for(var i=Array(t.length-n),r=e.length,o=0;o<i.length;o++)i[o]=t[o+n];for(o=0;o<r;o++)t[o+n]=e[o];for(o=0;o<i.length;o++)t[o+r+n]=i[o]};n.extend(b.prototype,u,{model:y,initialize:function(){},toJSON:function(t){return this.map((function(e){return e.toJSON(t)}))},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,w))},remove:function(t,e){e=n.extend({},e);var i=!n.isArray(t);t=i?[t]:n.clone(t);var r=this._removeModels(t,e);return!e.silent&&r&&this.trigger("update",this,e),i?r[0]:r},set:function(t,e){if(null!=t){(e=n.defaults({},e,_)).parse&&!this._isModel(t)&&(t=this.parse(t,e));var i=!n.isArray(t);t=i?[t]:t.slice();var r=e.at;null!=r&&(r=+r),r<0&&(r+=this.length+1);for(var o,s=[],a=[],l=[],u={},c=e.add,d=e.merge,h=e.remove,p=!1,f=this.comparator&&null==r&&!1!==e.sort,m=n.isString(this.comparator)?this.comparator:null,g=0;g<t.length;g++){o=t[g];var v=this.get(o);if(v){if(d&&o!==v){var y=this._isModel(o)?o.attributes:o;e.parse&&(y=v.parse(y,e)),v.set(y,e),f&&!p&&(p=v.hasChanged(m))}u[v.cid]||(u[v.cid]=!0,s.push(v)),t[g]=v}else c&&(o=t[g]=this._prepareModel(o,e))&&(a.push(o),this._addReference(o,e),u[o.cid]=!0,s.push(o))}if(h){for(g=0;g<this.length;g++)u[(o=this.models[g]).cid]||l.push(o);l.length&&this._removeModels(l,e)}var b=!1,w=!f&&c&&h;if(s.length&&w?(b=this.length!=s.length||n.some(this.models,(function(t,e){return t!==s[e]})),this.models.length=0,x(this.models,s,0),this.length=this.models.length):a.length&&(f&&(p=!0),x(this.models,a,null==r?this.length:r),this.length=this.models.length),p&&this.sort({silent:!0}),!e.silent){for(g=0;g<a.length;g++)null!=r&&(e.index=r+g),(o=a[g]).trigger("add",o,this,e);(p||b)&&this.trigger("sort",this,e),(a.length||l.length)&&this.trigger("update",this,e)}return i?t[0]:t}},reset:function(t,e){e=e?n.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t){var e=this.modelId(this._isModel(t)?t.attributes:t);return this._byId[t]||this._byId[e]||this._byId[t.cid]}},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var i=e.length;return n.isFunction(e)&&(e=n.bind(e,this)),1===i||n.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){var e=(t=n.extend({parse:!0},t)).success,i=this;return t.success=function(n){var r=t.reset?"reset":"set";i[r](n,t),e&&e.call(t.context,i,n,t),i.trigger("sync",i,n,t)},B(this,t),this.sync("read",this,t)},create:function(t,e){var i=(e=e?n.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;i||this.add(t,e);var r=this,o=e.success;return e.success=function(t,e,n){i&&r.add(t,n),o&&o.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;(e=e?n.clone(e):{}).collection=this;var i=new this.model(t,e);return i.validationError?(this.trigger("invalid",this,i.validationError,e),!1):i},_removeModels:function(t,e){for(var n=[],i=0;i<t.length;i++){var r=this.get(t[i]);if(r){var o=this.indexOf(r);this.models.splice(o,1),this.length--,e.silent||(e.index=o,r.trigger("remove",r,this,e)),n.push(r),this._removeReference(r,e)}}return!!n.length&&n},_isModel:function(t){return t instanceof y},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){if("add"!==t&&"remove"!==t||n===this){if("destroy"===t&&this.remove(e,i),"change"===t){var r=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);r!==o&&(null!=r&&delete this._byId[r],null!=o&&(this._byId[o]=e))}this.trigger.apply(this,arguments)}}}),s(b,{forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3},"models");var C=e.View=function(t){this.cid=n.uniqueId("view"),n.extend(this,n.pick(t,E)),this._ensureElement(),this.initialize.apply(this,arguments)},j=/^(\S+)\s*(.*)$/,E=["model","collection","el","id","attributes","className","tagName","events"];n.extend(C.prototype,u,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var i=t[e];if(n.isFunction(i)||(i=this[i]),i){var r=e.match(j);this.delegate(r[1],r[2],n.bind(i,this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,i,r){var o=T[t];n.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(r.url||(s.url=n.result(i,"url")||z()),null!=r.data||!i||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),r.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",r.emulateJSON&&(s.data._method=o);var a=r.beforeSend;r.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||r.emulateJSON||(s.processData=!1);var l=r.error;r.error=function(t,e,n){r.textStatus=e,r.errorThrown=n,l&&l.call(r.context,t,e,n)};var u=r.xhr=e.ajax(n.extend(s,r));return i.trigger("request",i,u,r),u};var T={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var M=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},k=/\((.*?)\)/g,A=/(\(\?)?:\w+/g,S=/\*\w+/g,D=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(M.prototype,u,{initialize:function(){},route:function(t,i,r){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var o=this;return e.history.route(t,(function(n){var s=o._extractParameters(t,n);!1!==o.execute(r,s,i)&&(o.trigger.apply(o,["route:"+i].concat(s)),o.trigger("route",i,s),e.history.trigger("route",o,i,s))})),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(D,"\\$&").replace(k,"(?:$1)?").replace(A,(function(t,e){return e?t:"([^/?]+)"})).replace(S,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return n.map(i,(function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null}))}});var O=e.History=function(){this.handlers=[],this.checkUrl=n.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},P=/^[#\/]|\s+$/g,L=/^\/+|\/+$/g,I=/#.*$/;O.started=!1,n.extend(O.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(P,"")},start:function(t){if(O.started)throw new Error("Backbone.history has already been started");if(O.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(L,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,r=i.insertBefore(this.iframe,i.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),O.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!O.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var i=n+t;if(t=this.decodeFragment(t.replace(I,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;e.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),e.history=new O,y.extend=b.extend=M.extend=C.extend=O.extend=function(t,e){var i,r=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i};var z=function(){throw new Error('A "url" property or function must be specified')},B=function(t,e){var n=e.error;e.error=function(i){n&&n.call(e.context,t,i,e),t.trigger("error",t,i,e)}};return e}(s,n,t,e)}.apply(e,r))||(t.exports=o)}).call(this,n(12))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var i=n(11)(n(10),"Map");t.exports=i},function(t,e,n){var i=n(10).Symbol;t.exports=i},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(118),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(12))},function(t,e,n){"use strict";n.r(e),n.d(e,"uuid",(function(){return i.uuid})),n.d(e,"WrappedError",(function(){return i.WrappedError})),n.d(e,"resolvePromisesDict",(function(){return i.resolvePromisesDict})),n.d(e,"reject",(function(){return r})),n.d(e,"typeset",(function(){return o})),n.d(e,"escape_html",(function(){return s})),n.d(e,"JUPYTER_CONTROLS_VERSION",(function(){return l})),n.d(e,"DirectionalLinkModel",(function(){return C})),n.d(e,"LinkModel",(function(){return j})),n.d(e,"BoolModel",(function(){return T})),n.d(e,"CheckboxModel",(function(){return M})),n.d(e,"CheckboxView",(function(){return k})),n.d(e,"ToggleButtonModel",(function(){return A})),n.d(e,"ToggleButtonView",(function(){return S})),n.d(e,"ValidModel",(function(){return D})),n.d(e,"ValidView",(function(){return O})),n.d(e,"ButtonStyleModel",(function(){return L})),n.d(e,"ButtonModel",(function(){return I})),n.d(e,"ButtonView",(function(){return z})),n.d(e,"BoxModel",(function(){return q})),n.d(e,"HBoxModel",(function(){return U})),n.d(e,"VBoxModel",(function(){return K})),n.d(e,"BoxView",(function(){return $})),n.d(e,"HBoxView",(function(){return J})),n.d(e,"VBoxView",(function(){return Y})),n.d(e,"GridBoxView",(function(){return G})),n.d(e,"GridBoxModel",(function(){return X})),n.d(e,"ImageModel",(function(){return tt})),n.d(e,"ImageView",(function(){return et})),n.d(e,"VideoModel",(function(){return rt})),n.d(e,"VideoView",(function(){return ot})),n.d(e,"AudioModel",(function(){return lt})),n.d(e,"AudioView",(function(){return ut})),n.d(e,"ColorPickerModel",(function(){return dt})),n.d(e,"ColorPickerView",(function(){return ht})),n.d(e,"serialize_date",(function(){return gt})),n.d(e,"deserialize_date",(function(){return vt})),n.d(e,"DatePickerModel",(function(){return yt})),n.d(e,"DatePickerView",(function(){return bt})),n.d(e,"IntModel",(function(){return Lt})),n.d(e,"BoundedIntModel",(function(){return It})),n.d(e,"SliderStyleModel",(function(){return zt})),n.d(e,"IntSliderModel",(function(){return Bt})),n.d(e,"IntRangeSliderModel",(function(){return Rt})),n.d(e,"BaseIntSliderView",(function(){return Ft})),n.d(e,"IntRangeSliderView",(function(){return Nt})),n.d(e,"IntSliderView",(function(){return Wt})),n.d(e,"IntTextModel",(function(){return Ht})),n.d(e,"BoundedIntTextModel",(function(){return Vt})),n.d(e,"IntTextView",(function(){return qt})),n.d(e,"ProgressStyleModel",(function(){return Ut})),n.d(e,"IntProgressModel",(function(){return Kt})),n.d(e,"ProgressView",(function(){return $t})),n.d(e,"PlayModel",(function(){return Jt})),n.d(e,"PlayView",(function(){return Yt})),n.d(e,"FloatModel",(function(){return Xt})),n.d(e,"BoundedFloatModel",(function(){return Zt})),n.d(e,"FloatSliderModel",(function(){return Qt})),n.d(e,"FloatLogSliderModel",(function(){return te})),n.d(e,"FloatRangeSliderModel",(function(){return ee})),n.d(e,"FloatSliderView",(function(){return ne})),n.d(e,"FloatLogSliderView",(function(){return ie})),n.d(e,"FloatRangeSliderView",(function(){return re})),n.d(e,"FloatTextModel",(function(){return oe})),n.d(e,"BoundedFloatTextModel",(function(){return se})),n.d(e,"FloatTextView",(function(){return ae})),n.d(e,"FloatProgressModel",(function(){return le})),n.d(e,"ControllerButtonModel",(function(){return de})),n.d(e,"ControllerButtonView",(function(){return he})),n.d(e,"ControllerAxisModel",(function(){return pe})),n.d(e,"ControllerAxisView",(function(){return fe})),n.d(e,"ControllerModel",(function(){return me})),n.d(e,"ControllerView",(function(){return ge})),n.d(e,"SelectionModel",(function(){return be})),n.d(e,"DropdownModel",(function(){return _e})),n.d(e,"DropdownView",(function(){return we})),n.d(e,"SelectModel",(function(){return xe})),n.d(e,"SelectView",(function(){return Ce})),n.d(e,"RadioButtonsModel",(function(){return je})),n.d(e,"RadioButtonsView",(function(){return Ee})),n.d(e,"ToggleButtonsStyleModel",(function(){return Te})),n.d(e,"ToggleButtonsModel",(function(){return Me})),n.d(e,"ToggleButtonsView",(function(){return ke})),n.d(e,"SelectionSliderModel",(function(){return Ae})),n.d(e,"SelectionSliderView",(function(){return Se})),n.d(e,"MultipleSelectionModel",(function(){return De})),n.d(e,"SelectMultipleModel",(function(){return Oe})),n.d(e,"SelectMultipleView",(function(){return Pe})),n.d(e,"SelectionRangeSliderModel",(function(){return Le})),n.d(e,"SelectionRangeSliderView",(function(){return Ie})),n.d(e,"SelectionContainerModel",(function(){return Ke})),n.d(e,"AccordionModel",(function(){return $e})),n.d(e,"JupyterPhosphorAccordionWidget",(function(){return Je})),n.d(e,"AccordionView",(function(){return Ye})),n.d(e,"TabModel",(function(){return Ge})),n.d(e,"JupyterPhosphorTabPanelWidget",(function(){return Xe})),n.d(e,"TabView",(function(){return Ze})),n.d(e,"StringModel",(function(){return en})),n.d(e,"HTMLModel",(function(){return nn})),n.d(e,"HTMLView",(function(){return rn})),n.d(e,"HTMLMathModel",(function(){return on})),n.d(e,"HTMLMathView",(function(){return sn})),n.d(e,"LabelModel",(function(){return an})),n.d(e,"LabelView",(function(){return ln})),n.d(e,"TextareaModel",(function(){return un})),n.d(e,"TextareaView",(function(){return cn})),n.d(e,"TextModel",(function(){return dn})),n.d(e,"TextView",(function(){return hn})),n.d(e,"PasswordModel",(function(){return pn})),n.d(e,"PasswordView",(function(){return fn})),n.d(e,"ComboboxModel",(function(){return mn})),n.d(e,"ComboboxView",(function(){return gn})),n.d(e,"DescriptionStyleModel",(function(){return d})),n.d(e,"DescriptionModel",(function(){return h})),n.d(e,"DescriptionView",(function(){return p})),n.d(e,"LabeledDOMWidgetModel",(function(){return f})),n.d(e,"LabeledDOMWidgetView",(function(){return m})),n.d(e,"FileUploadModel",(function(){return _n})),n.d(e,"FileUploadView",(function(){return wn})),n.d(e,"version",(function(){return xn}));var i=n(3);function r(t,e){return function(n){var r=new i.WrappedError(t,n);return e&&console.error(r),Promise.reject(r)}}function o(t,e){void 0!==e&&(t.textContent=e),void 0!==window.MathJax&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,t])}function s(t){var e=document.createElement("div");return e.textContent=t,e.innerHTML}var a,l="1.5.0",u=(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(){return(c=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.defaults=function(){return c(c({},t.prototype.defaults.call(this)),{_model_name:"DescriptionStyleModel",_model_module:"@jupyter-widgets/controls",_model_module_version:l})},e.styleProperties={description_width:{selector:".widget-label",attribute:"width",default:null}},e}(i.StyleModel),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.defaults=function(){return c(c({},t.prototype.defaults.call(this)),{_model_name:"DescriptionModel",_view_name:"DescriptionView",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:l,_model_module_version:l,description:"",description_tooltip:null})},e}(i.DOMWidgetModel),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.render=function(){this.label=document.createElement("label"),this.el.appendChild(this.label),this.label.className="widget-label",this.label.style.display="none",this.listenTo(this.model,"change:description",this.updateDescription),this.listenTo(this.model,"change:description_tooltip",this.updateDescription),this.updateDescription()},e.prototype.typeset=function(t,e){this.displayed.then((function(){return o(t,e)}))},e.prototype.updateDescription=function(){var t=this.model.get("description"),e=this.model.get("description_tooltip");null===e&&(e=t),0===t.length?this.label.style.display="none":(this.label.innerHTML=t,this.typeset(this.label),this.label.style.display=""),this.label.title=e},e}(i.DOMWidgetView),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e}(h),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e}(p),g=n(2),v=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"CoreWidgetModel",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:l,_model_module_version:l})},e}(i.WidgetModel),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"CoreDOMWidgetModel",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:l,_model_module_version:l})},e}(i.DOMWidgetModel),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"CoreDescriptionModel",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:l,_model_module_version:l})},e}(h),w=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(){return(x=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{target:void 0,source:void 0,_model_name:"DirectionalLinkModel"})},e.prototype.initialize=function(e,n){t.prototype.initialize.call(this,e,n),this.on("change",this.updateBindings,this),this.updateBindings()},e.prototype.updateValue=function(t,e,n,i){if(!this._updating){this._updating=!0;try{n&&(n.set(i,t.get(e)),n.save_changes())}finally{this._updating=!1}}},e.prototype.updateBindings=function(){var t,e,n=this;this.cleanup(),t=this.get("source")||[null,null],this.sourceModel=t[0],this.sourceAttr=t[1],e=this.get("target")||[null,null],this.targetModel=e[0],this.targetAttr=e[1],this.sourceModel&&(this.listenTo(this.sourceModel,"change:"+this.sourceAttr,(function(){n.updateValue(n.sourceModel,n.sourceAttr,n.targetModel,n.targetAttr)})),this.updateValue(this.sourceModel,this.sourceAttr,this.targetModel,this.targetAttr),this.listenToOnce(this.sourceModel,"destroy",this.cleanup)),this.targetModel&&this.listenToOnce(this.targetModel,"destroy",this.cleanup)},e.prototype.cleanup=function(){this.sourceModel&&(this.stopListening(this.sourceModel,"change:"+this.sourceAttr,null),this.stopListening(this.sourceModel,"destroy",null)),this.targetModel&&this.stopListening(this.targetModel,"destroy",null)},e.serializers=x(x({},y.serializers),{target:{deserialize:i.unpack_models},source:{deserialize:i.unpack_models}}),e}(y),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"LinkModel"})},e.prototype.updateBindings=function(){var e=this;t.prototype.updateBindings.call(this),this.targetModel&&this.listenTo(this.targetModel,"change:"+this.targetAttr,(function(){e.updateValue(e.targetModel,e.targetAttr,e.sourceModel,e.sourceAttr)}))},e.prototype.cleanup=function(){t.prototype.cleanup.call(this),this.targetModel&&this.stopListening(this.targetModel,"change:"+this.targetAttr,null)},e}(C),E=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{value:!1,disabled:!1,_model_name:"BoolModel"})},e}(_),M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{indent:!0,_view_name:"CheckboxView",_model_name:"CheckboxModel"})},e}(_),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-checkbox"),this.label.innerHTML="&#8203;",this.checkboxLabel=document.createElement("label"),this.checkboxLabel.classList.add("widget-label-basic"),this.el.appendChild(this.checkboxLabel),this.checkbox=document.createElement("input"),this.checkbox.setAttribute("type","checkbox"),this.checkboxLabel.appendChild(this.checkbox),this.descriptionSpan=document.createElement("span"),this.checkboxLabel.appendChild(this.descriptionSpan),this.listenTo(this.model,"change:indent",this.updateIndent),this.update(),this.updateDescription(),this.updateIndent()},e.prototype.updateDescription=function(){if(null!=this.checkboxLabel){var t=this.model.get("description");this.descriptionSpan.innerHTML=t,this.typeset(this.descriptionSpan),this.descriptionSpan.title=t,this.checkbox.title=t}},e.prototype.updateIndent=function(){var t=this.model.get("indent");this.label.style.display=t?"":"none"},e.prototype.events=function(){return{'click input[type="checkbox"]':"_handle_click"}},e.prototype._handle_click=function(){var t=this.model.get("value");this.model.set("value",!t,{updated_view:this}),this.touch()},e.prototype.update=function(e){return this.checkbox.checked=this.model.get("value"),void 0!==e&&e.updated_view==this||(this.checkbox.disabled=this.model.get("disabled")),t.prototype.update.call(this)},e}(p),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"ToggleButtonView",_model_name:"ToggleButtonModel",tooltip:"",icon:"",button_style:""})},e}(T),S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("jupyter-button"),this.el.classList.add("widget-toggle-button"),this.listenTo(this.model,"change:button_style",this.update_button_style),this.set_button_style(),this.update()},e.prototype.update_button_style=function(){this.update_mapped_classes(e.class_map,"button_style")},e.prototype.set_button_style=function(){this.set_mapped_classes(e.class_map,"button_style")},e.prototype.update=function(e){if(this.model.get("value")?this.el.classList.add("mod-active"):this.el.classList.remove("mod-active"),void 0===e||e.updated_view!==this){this.el.disabled=this.model.get("disabled"),this.el.setAttribute("title",this.model.get("tooltip"));var n=this.model.get("description"),i=this.model.get("icon");if(0===n.trim().length&&0===i.trim().length)this.el.innerHTML="&nbsp;";else{if(this.el.textContent="",i.trim().length){var r=document.createElement("i");this.el.appendChild(r),r.classList.add("fa"),r.classList.add("fa-"+i)}this.el.appendChild(document.createTextNode(n))}}return t.prototype.update.call(this)},e.prototype.events=function(){return{click:"_handle_click"}},e.prototype._handle_click=function(t){t.preventDefault();var e=this.model.get("value");this.model.set("value",!e,{updated_view:this}),this.touch()},Object.defineProperty(e.prototype,"tagName",{get:function(){return"button"},enumerable:!0,configurable:!0}),e.class_map={primary:["mod-primary"],success:["mod-success"],info:["mod-info"],warning:["mod-warning"],danger:["mod-danger"]},e}(i.DOMWidgetView),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{readout:"Invalid",_view_name:"ValidView",_model_name:"ValidModel"})},e}(T),O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-valid"),this.el.classList.add("widget-inline-hbox"),this.icon=document.createElement("i"),this.icon.classList.add("fa","fa-fw"),this.el.appendChild(this.icon),this.readout=document.createElement("span"),this.readout.classList.add("widget-valid-readout"),this.readout.classList.add("widget-readout"),this.el.appendChild(this.readout),this.update()},e.prototype.update=function(){this.el.classList.remove("mod-valid"),this.el.classList.remove("mod-invalid"),this.icon.classList.remove("fa-check"),this.icon.classList.remove("fa-times"),this.readout.textContent=this.model.get("readout"),this.model.get("value")?(this.el.classList.add("mod-valid"),this.icon.classList.add("fa-check")):(this.el.classList.add("mod-invalid"),this.icon.classList.add("fa-times"))},e}(p),P=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"ButtonStyleModel",_model_module:"@jupyter-widgets/controls",_model_module_version:l})},e.styleProperties={button_color:{selector:"",attribute:"background-color",default:null},font_weight:{selector:"",attribute:"font-weight",default:""}},e}(i.StyleModel),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{description:"",tooltip:"",disabled:!1,icon:"",button_style:"",_view_name:"ButtonView",_model_name:"ButtonModel",style:null})},e}(b),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("jupyter-button"),this.el.classList.add("widget-button"),this.listenTo(this.model,"change:button_style",this.update_button_style),this.set_button_style(),this.update()},e.prototype.update=function(){this.el.disabled=this.model.get("disabled"),this.el.setAttribute("title",this.model.get("tooltip"));var e=this.model.get("description"),n=this.model.get("icon");if(e.length||n.length){if(this.el.textContent="",n.length){var i=document.createElement("i");i.classList.add("fa"),i.classList.add("fa-"+n),0===e.length&&i.classList.add("center"),this.el.appendChild(i)}this.el.appendChild(document.createTextNode(e))}return t.prototype.update.call(this)},e.prototype.update_button_style=function(){this.update_mapped_classes(e.class_map,"button_style")},e.prototype.set_button_style=function(){this.set_mapped_classes(e.class_map,"button_style")},e.prototype.events=function(){return{click:"_handle_click"}},e.prototype._handle_click=function(t){t.preventDefault(),this.send({event:"click"})},Object.defineProperty(e.prototype,"tagName",{get:function(){return"button"},enumerable:!0,configurable:!0}),e.class_map={primary:["mod-primary"],success:["mod-success"],info:["mod-info"],warning:["mod-warning"],danger:["mod-danger"]},e}(i.DOMWidgetView),B=n(0),R=n(1),F=n(6),N=n(8),W=n.n(N),H=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),V=function(){return(V=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"BoxView",_model_name:"BoxModel",children:[],box_style:""})},e.serializers=V(V({},b.serializers),{children:{deserialize:i.unpack_models}}),e}(b),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"HBoxView",_model_name:"HBoxModel"})},e}(q),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"VBoxView",_model_name:"VBoxModel"})},e}(q),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype._createElement=function(t){return this.pWidget=new i.JupyterPhosphorPanelWidget({view:this}),this.pWidget.node},e.prototype._setElement=function(t){if(this.el||t!==this.pWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.pWidget.node,this.$el=W()(this.pWidget.node)},e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.children_views=new i.ViewList(this.add_child_model,null,this),this.listenTo(this.model,"change:children",this.update_children),this.listenTo(this.model,"change:box_style",this.update_box_style),this.pWidget.addClass("jupyter-widgets"),this.pWidget.addClass("widget-container"),this.pWidget.addClass("widget-box")},e.prototype.render=function(){t.prototype.render.call(this),this.update_children(),this.set_box_style()},e.prototype.update_children=function(){this.children_views.update(this.model.get("children")).then((function(t){t.forEach((function(t){R.c.postMessage(t.pWidget,F.Widget.ResizeMessage.UnknownSize)}))}))},e.prototype.update_box_style=function(){this.update_mapped_classes(e.class_map,"box_style")},e.prototype.set_box_style=function(){this.set_mapped_classes(e.class_map,"box_style")},e.prototype.add_child_model=function(t){var e=this,n=new F.Widget;return this.pWidget.addWidget(n),this.create_child_view(t).then((function(t){var i=B.a.firstIndexOf(e.pWidget.widgets,n);return e.pWidget.insertWidget(i,t.pWidget),n.dispose(),t})).catch(r("Could not add child view to box",!0))},e.prototype.remove=function(){this.children_views=null,t.prototype.remove.call(this)},e.class_map={success:["alert","alert-success"],info:["alert","alert-info"],warning:["alert","alert-warning"],danger:["alert","alert-danger"]},e}(i.DOMWidgetView),J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.pWidget.addClass("widget-hbox")},e}($),Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.pWidget.addClass("widget-vbox")},e}($),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.pWidget.addClass("widget-gridbox"),this.pWidget.removeClass("widget-box")},e}($),X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"GridBoxView",_model_name:"GridBoxModel"})},e}(q),Z=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Q=function(){return(Q=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Z(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"ImageModel",_view_name:"ImageView",format:"png",width:"",height:"",value:new DataView(new ArrayBuffer(0))})},e.serializers=Q(Q({},b.serializers),{value:{serialize:function(t){return new DataView(t.buffer.slice(0))}}}),e}(b),et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Z(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.pWidget.addClass("jupyter-widgets"),this.pWidget.addClass("widget-image"),this.update()},e.prototype.update=function(){var e,n=this.model.get("format"),i=this.model.get("value");if("url"!==n){var r=new Blob([i],{type:"image/"+this.model.get("format")});e=URL.createObjectURL(r)}else e=new TextDecoder("utf-8").decode(i.buffer);var o=this.el.src;this.el.src=e,o&&"string"!=typeof o&&URL.revokeObjectURL(o);var s=this.model.get("width");void 0!==s&&s.length>0?this.el.setAttribute("width",s):this.el.removeAttribute("width");var a=this.model.get("height");return void 0!==a&&a.length>0?this.el.setAttribute("height",a):this.el.removeAttribute("height"),t.prototype.update.call(this)},e.prototype.remove=function(){this.el.src&&URL.revokeObjectURL(this.el.src),t.prototype.remove.call(this)},Object.defineProperty(e.prototype,"tagName",{get:function(){return"img"},enumerable:!0,configurable:!0}),e}(i.DOMWidgetView),nt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),it=function(){return(it=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nt(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"VideoModel",_view_name:"VideoView",format:"mp4",width:"",height:"",autoplay:!0,loop:!0,controls:!0,value:new DataView(new ArrayBuffer(0))})},e.serializers=it(it({},b.serializers),{value:{serialize:function(t){return new DataView(t.buffer.slice(0))}}}),e}(b),ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nt(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.pWidget.addClass("jupyter-widgets"),this.pWidget.addClass("widget-image"),this.update()},e.prototype.update=function(){var e,n=this.model.get("format"),i=this.model.get("value");if("url"!==n){var r=new Blob([i],{type:"video/"+this.model.get("format")});e=URL.createObjectURL(r)}else e=new TextDecoder("utf-8").decode(i.buffer);var o=this.el.src;this.el.src=e,o&&"string"!=typeof o&&URL.revokeObjectURL(o);var s=this.model.get("width");void 0!==s&&s.length>0?this.el.setAttribute("width",s):this.el.removeAttribute("width");var a=this.model.get("height");return void 0!==a&&a.length>0?this.el.setAttribute("height",a):this.el.removeAttribute("height"),this.el.loop=this.model.get("loop"),this.el.autoplay=this.model.get("autoplay"),this.el.controls=this.model.get("controls"),t.prototype.update.call(this)},e.prototype.remove=function(){this.el.src&&URL.revokeObjectURL(this.el.src),t.prototype.remove.call(this)},Object.defineProperty(e.prototype,"tagName",{get:function(){return"video"},enumerable:!0,configurable:!0}),e}(i.DOMWidgetView),st=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),at=function(){return(at=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return st(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"AudioModel",_view_name:"AudioView",format:"mp3",autoplay:!0,loop:!0,controls:!0,value:new DataView(new ArrayBuffer(0))})},e.serializers=at(at({},b.serializers),{value:{serialize:function(t){return new DataView(t.buffer.slice(0))}}}),e}(b),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return st(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.pWidget.addClass("jupyter-widgets"),this.update()},e.prototype.update=function(){var e,n=this.model.get("format"),i=this.model.get("value");if("url"!==n){var r=new Blob([i],{type:"audio/"+this.model.get("format")});e=URL.createObjectURL(r)}else e=new TextDecoder("utf-8").decode(i.buffer);var o=this.el.src;return this.el.src=e,o&&"string"!=typeof o&&URL.revokeObjectURL(o),this.el.loop=this.model.get("loop"),this.el.autoplay=this.model.get("autoplay"),this.el.controls=this.model.get("controls"),t.prototype.update.call(this)},e.prototype.remove=function(){this.el.src&&URL.revokeObjectURL(this.el.src),t.prototype.remove.call(this)},Object.defineProperty(e.prototype,"tagName",{get:function(){return"audio"},enumerable:!0,configurable:!0}),e}(i.DOMWidgetView),ct=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ct(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{value:"black",concise:!1,_model_name:"ColorPickerModel",_view_name:"ColorPickerView"})},e}(_),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ct(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-colorpicker"),this._color_container=document.createElement("div"),this._color_container.className="widget-inline-hbox widget-colorpicker-input",this.el.appendChild(this._color_container),this._textbox=document.createElement("input"),this._textbox.setAttribute("type","text"),this._textbox.id=this.label.htmlFor=Object(i.uuid)(),this._color_container.appendChild(this._textbox),this._textbox.value=this.model.get("value"),this._colorpicker=document.createElement("input"),this._colorpicker.setAttribute("type","color"),this._color_container.appendChild(this._colorpicker),this.listenTo(this.model,"change:value",this._update_value),this.listenTo(this.model,"change:concise",this._update_concise),this._update_concise(),this._update_value(),this.update()},e.prototype.update=function(e){if(void 0===e||e.updated_view!=this){var n=this.model.get("disabled");this._textbox.disabled=n,this._colorpicker.disabled=n}return t.prototype.update.call(this)},e.prototype.events=function(){return this._picker_change,this._text_change,{'change [type="color"]':"_picker_change",'change [type="text"]':"_text_change"}},e.prototype._update_value=function(){var t,e,n=this.model.get("value");this._colorpicker.value=pt[(t=n).toLowerCase()]||(7===(e=t).length?e:"#"+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2)+e.charAt(3)+e.charAt(3)),this._textbox.value=n},e.prototype._update_concise=function(){this.model.get("concise")?(this.el.classList.add("concise"),this._textbox.style.display="none"):(this.el.classList.remove("concise"),this._textbox.style.display="")},e.prototype._picker_change=function(){this.model.set("value",this._colorpicker.value),this.touch()},e.prototype._text_change=function(){var t=this._validate_color(this._textbox.value,this.model.get("value"));this.model.set("value",t),this.touch()},e.prototype._validate_color=function(t,e){return t.match(/#[a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?$/)||pt[t.toLowerCase()]?t:e},e}(p),pt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgreen:"#90ee90",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var ft=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mt=function(){return(mt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function gt(t){return null===t?null:{year:t.getUTCFullYear(),month:t.getUTCMonth(),date:t.getUTCDate()}}function vt(t){if(null===t)return null;var e=new Date;return e.setUTCFullYear(t.year,t.month,t.date),e.setUTCHours(0,0,0,0),e}var yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ft(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{value:null,_model_name:"DatePickerModel",_view_name:"DatePickerView"})},e.serializers=mt(mt({},_.serializers),{value:{serialize:gt,deserialize:vt}}),e}(_),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ft(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-datepicker"),this._datepicker=document.createElement("input"),this._datepicker.setAttribute("type","date"),this._datepicker.id=this.label.htmlFor=Object(i.uuid)(),this.el.appendChild(this._datepicker),this.listenTo(this.model,"change:value",this._update_value),this._update_value(),this.update()},e.prototype.update=function(e){return void 0!==e&&e.updated_view===this||(this._datepicker.disabled=this.model.get("disabled")),t.prototype.update.call(this)},e.prototype.events=function(){return this._picker_change,this._picker_focusout,{'change [type="date"]':"_picker_change",'focusout [type="date"]':"_picker_focusout"}},e.prototype._update_value=function(){var t=this.model.get("value");this._datepicker.valueAsDate=t},e.prototype._picker_change=function(){this._datepicker.validity.badInput||(this.model.set("value",this._datepicker.valueAsDate),this.touch())},e.prototype._picker_focusout=function(){this._datepicker.validity.badInput&&(this.model.set("value",null),this.touch())},e}(p),_t=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]},wt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xt(t){if(!(e=wt.exec(t)))throw new Error("invalid format: "+t);var e;return new Ct({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ct(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}xt.prototype=Ct.prototype,Ct.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var jt,Et,Tt,Mt=function(t,e){var n=_t(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},kt={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Mt(100*t,e)},r:Mt,s:function(t,e){var n=_t(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(jt=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+_t(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},At=function(t){return t},St=Array.prototype.map,Dt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Et=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?At:(e=St.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,o=[],s=0,a=e[0],l=0;r>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(t.substring(r-=a,r+a)),!((l+=a+1)>i));)a=e[s=(s+1)%e.length];return o.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?At:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(St.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function d(t){var e=(t=xt(t)).fill,n=t.align,d=t.sign,h=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,y=t.type;"n"===y?(m=!0,y="g"):kt[y]||(void 0===g&&(g=12),v=!0,y="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_="$"===h?o:/[%p]/.test(y)?l:"",w=kt[y],x=/[defgprs%]/.test(y);function C(t){var r,o,l,h=b,C=_;if("c"===y)C=w(t)+C,t="";else{var j=(t=+t)<0;if(t=isNaN(t)?c:w(Math.abs(t),g),v&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),j&&0==+t&&(j=!1),h=(j?"("===d?d:u:"-"===d||"("===d?"":d)+h,C=("s"===y?Dt[8+jt/3]:"")+C+(j&&"("===d?")":""),x)for(r=-1,o=t.length;++r<o;)if(48>(l=t.charCodeAt(r))||l>57){C=(46===l?s+t.slice(r+1):t.slice(r))+C,t=t.slice(0,r);break}}m&&!p&&(t=i(t,1/0));var E=h.length+t.length+C.length,T=E<f?new Array(f-E+1).join(e):"";switch(m&&p&&(t=i(T+t,T.length?f-C.length:1/0),T=""),n){case"<":t=h+t+C+T;break;case"=":t=h+T+t+C;break;case"^":t=T.slice(0,E=T.length>>1)+h+t+C+T.slice(E);break;default:t=T+h+t+C}return a(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return t+""},C}return{format:d,formatPrefix:function(t,e){var n,i=d(((t=xt(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((n=e,((n=_t(Math.abs(n)))?n[1]:NaN)/3)))),o=Math.pow(10,-r),s=Dt[8+r/3];return function(t){return i(o*t)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Tt=Et.format,Et.formatPrefix;n(120);var Ot=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pt=function(){return(Pt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"IntModel",value:0})},e}(_),It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"BoundedIntModel",max:100,min:0})},e}(Lt),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.defaults=function(){return Pt(Pt({},t.prototype.defaults.call(this)),{_model_name:"SliderStyleModel"})},e.styleProperties=Pt(Pt({},d.styleProperties),{handle_color:{selector:".ui-slider-handle",attribute:"background-color",default:null}}),e}(d),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"IntSliderModel",_view_name:"IntSliderView",step:1,orientation:"horizontal",readout:!0,readout_format:"d",continuous_update:!0,style:null,disabled:!1})},e.prototype.initialize=function(e,n){t.prototype.initialize.call(this,e,n),this.on("change:readout_format",this.update_readout_format,this),this.update_readout_format()},e.prototype.update_readout_format=function(){this.readout_formatter=Tt(this.get("readout_format"))},e}(It),Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e}(Bt),Ft=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parse_value=parseInt,e}return Ot(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-slider"),this.el.classList.add("widget-hslider"),(this.$slider=W()("<div />")).slider({slide:this.handleSliderChange.bind(this),stop:this.handleSliderChanged.bind(this)}).addClass("slider"),this.slider_container=document.createElement("div"),this.slider_container.classList.add("slider-container"),this.slider_container.appendChild(this.$slider[0]),this.el.appendChild(this.slider_container),this.readout=document.createElement("div"),this.el.appendChild(this.readout),this.readout.classList.add("widget-readout"),this.readout.contentEditable="true",this.readout.style.display="none",this.update()},e.prototype.update=function(e){if(void 0===e||e.updated_view!==this){var n=this;n.$slider.slider({}),["step","disabled"].forEach((function(t){var e=n.model.get(t);void 0!==e&&n.$slider.slider("option",t,e)})),this.model.get("disabled")?this.readout.contentEditable="false":this.readout.contentEditable="true";var i=this.model.get("max"),r=this.model.get("min");r<=i&&(void 0!==i&&this.$slider.slider("option","max",i),void 0!==r&&this.$slider.slider("option","min",r));var o=this.model.get("orientation");this.$slider.slider("option","orientation",o),"vertical"===o?(this.el.classList.remove("widget-hslider"),this.el.classList.add("widget-vslider"),this.el.classList.remove("widget-inline-hbox"),this.el.classList.add("widget-inline-vbox")):(this.el.classList.remove("widget-vslider"),this.el.classList.add("widget-hslider"),this.el.classList.remove("widget-inline-vbox"),this.el.classList.add("widget-inline-hbox")),this.model.get("readout")?(this.readout.style.display="",this.displayed.then((function(){n.readout_overflow()?n.readout.classList.add("overflow"):n.readout.classList.remove("overflow")}))):this.readout.style.display="none"}return t.prototype.update.call(this)},e.prototype.readout_overflow=function(){return this.readout.scrollWidth>this.readout.clientWidth},e.prototype.events=function(){return{slide:"handleSliderChange",slidestop:"handleSliderChanged","blur [contentEditable=true]":"handleTextChange","keydown [contentEditable=true]":"handleKeyDown"}},e.prototype.handleKeyDown=function(t){13===t.keyCode&&(t.preventDefault(),this.handleTextChange())},e.prototype._validate_slide_value=function(t){return Math.floor(t)},e}(p),Nt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._range_regex=/^\s*([+-]?\d+)\s*[-:]\s*([+-]?\d+)/,e}return Ot(e,t),e.prototype.update=function(e){t.prototype.update.call(this,e),this.$slider.slider("option","range",!0);var n=this.model.get("value");this.$slider.slider("option","values",n.slice()),this.readout.textContent=this.valueToString(n),this.model.get("value")!==n&&(this.model.set("value",n,{updated_view:this}),this.touch())},e.prototype.valueToString=function(t){var e=this.model.readout_formatter;return t.map((function(t){return e(t)})).join(" ")},e.prototype.stringToValue=function(t){var e=this._range_regex.exec(t);return e?[this._parse_value(e[1]),this._parse_value(e[2])]:null},e.prototype.handleTextChange=function(){var t=this.stringToValue(this.readout.textContent),e=this.model.get("min"),n=this.model.get("max");null===t||isNaN(t[0])||isNaN(t[1])||t[0]>t[1]?this.readout.textContent=this.valueToString(this.model.get("value")):(t=[Math.max(Math.min(t[0],n),e),Math.max(Math.min(t[1],n),e)])[0]!==this.model.get("value")[0]||t[1]!==this.model.get("value")[1]?(this.readout.textContent=this.valueToString(t),this.model.set("value",t,{updated_view:this}),this.touch()):this.readout.textContent=this.valueToString(this.model.get("value"))},e.prototype.handleSliderChange=function(t,e){var n=e.values.map(this._validate_slide_value);this.readout.textContent=this.valueToString(n),this.model.get("continuous_update")&&this.handleSliderChanged(t,e)},e.prototype.handleSliderChanged=function(t,e){var n=e.values.map(this._validate_slide_value);this.model.set("value",n,{updated_view:this}),this.touch()},e}(Ft),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.update=function(e){t.prototype.update.call(this,e);var n=this.model.get("min"),i=this.model.get("max"),r=this.model.get("value");r>i?r=i:r<n&&(r=n),this.$slider.slider("option","value",r),this.readout.textContent=this.valueToString(r),this.model.get("value")!==r&&(this.model.set("value",r,{updated_view:this}),this.touch())},e.prototype.valueToString=function(t){return(0,this.model.readout_formatter)(t)},e.prototype.stringToValue=function(t){return this._parse_value(t)},e.prototype.handleTextChange=function(){var t=this.stringToValue(this.readout.textContent),e=this.model.get("min"),n=this.model.get("max");isNaN(t)?this.readout.textContent=this.valueToString(this.model.get("value")):(t=Math.max(Math.min(t,n),e))!==this.model.get("value")?(this.readout.textContent=this.valueToString(t),this.model.set("value",t,{updated_view:this}),this.touch()):this.readout.textContent=this.valueToString(this.model.get("value"))},e.prototype.handleSliderChange=function(t,e){var n=this._validate_slide_value(e.value);this.readout.textContent=this.valueToString(n),this.model.get("continuous_update")&&this.handleSliderChanged(t,e)},e.prototype.handleSliderChanged=function(t,e){var n=this._validate_slide_value(e.value);this.model.set("value",n,{updated_view:this}),this.touch()},e}(Ft),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"IntTextModel",_view_name:"IntTextView",disabled:!1,continuous_update:!1})},e}(Lt),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"BoundedIntTextModel",_view_name:"IntTextView",disabled:!1,continuous_update:!1,step:1})},e}(It),qt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parse_value=parseInt,e._default_step="1",e}return Ot(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-text"),this.textbox=document.createElement("input"),this.textbox.type="number",this.textbox.required=!0,this.textbox.id=this.label.htmlFor=Object(i.uuid)(),this.el.appendChild(this.textbox),this.update()},e.prototype.update=function(e){if(void 0===e||e.updated_view!==this){var n=this.model.get("value");this._parse_value(this.textbox.value)!==n&&(this.textbox.value=n.toString()),void 0!==this.model.get("min")&&(this.textbox.min=this.model.get("min")),void 0!==this.model.get("max")&&(this.textbox.max=this.model.get("max")),void 0!==this.model.get("step")&&null!==this.model.get("step")?this.textbox.step=this.model.get("step"):this.textbox.step=this._default_step,this.textbox.disabled=this.model.get("disabled")}return t.prototype.update.call(this)},e.prototype.events=function(){return{"keydown input":"handleKeyDown","keypress input":"handleKeypress","keyup input":"handleKeyUp","input input":"handleChanging","change input":"handleChanged"}},e.prototype.handleKeyDown=function(t){t.stopPropagation()},e.prototype.handleKeypress=function(t){/[e,. ]/.test(String.fromCharCode(t.keyCode))&&t.preventDefault()},e.prototype.handleKeyUp=function(t){if(!t.altKey&&!t.ctrlKey){var e=t.target,n=e.value;if((n=n.replace(/[e,.\s]/g,"")).length>=1){var i=n.substr(1);n=n[0]+i.replace(/[+-]/g,"")}e.value!=n&&(t.preventDefault(),e.value=n)}},e.prototype.handleChanging=function(t){var e=t.target.value.trim();""===e||["-","-.",".","+.","+"].indexOf(e)>=0||this.model.get("continuous_update")&&this.handleChanged(t)},e.prototype.handleChanged=function(t){var e=t.target,n=this._parse_value(e.value);if(isNaN(n))e.value=this.model.get("value");else{var i=n;void 0!==this.model.get("max")&&(i=Math.min(this.model.get("max"),i)),void 0!==this.model.get("min")&&(i=Math.max(this.model.get("min"),i)),i!==n&&(e.value=i,n=i),n!==this.model.get("value")&&(this.model.set("value",n,{updated_view:this}),this.touch())}},e}(p),Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.defaults=function(){return Pt(Pt({},t.prototype.defaults.call(this)),{_model_name:"ProgressStyleModel"})},e.styleProperties=Pt(Pt({},d.styleProperties),{bar_color:{selector:".progress-bar",attribute:"background-color",default:null}}),e}(d),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"IntProgressModel",_view_name:"ProgressView",orientation:"horizontal",bar_style:"",style:null})},e}(It),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:bar_style",this.update_bar_style),this.pWidget.addClass("jupyter-widgets")},e.prototype.render=function(){t.prototype.render.call(this);var e="horizontal"===this.model.get("orientation")?"widget-hprogress":"widget-vprogress";this.el.classList.add(e),this.progress=document.createElement("div"),this.progress.classList.add("progress"),this.progress.style.position="relative",this.el.appendChild(this.progress),this.bar=document.createElement("div"),this.bar.classList.add("progress-bar"),this.bar.style.position="absolute",this.bar.style.bottom="0px",this.bar.style.left="0px",this.progress.appendChild(this.bar),this.update(),this.set_bar_style()},e.prototype.update=function(){var e=this.model.get("value"),n=this.model.get("max"),i=this.model.get("min"),r=100*(e-i)/(n-i);return"horizontal"===this.model.get("orientation")?(this.el.classList.remove("widget-inline-vbox"),this.el.classList.remove("widget-vprogress"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-hprogress"),this.bar.style.width=r+"%",this.bar.style.height="100%"):(this.el.classList.remove("widget-inline-hbox"),this.el.classList.remove("widget-hprogress"),this.el.classList.add("widget-inline-vbox"),this.el.classList.add("widget-vprogress"),this.bar.style.width="100%",this.bar.style.height=r+"%"),t.prototype.update.call(this)},e.prototype.update_bar_style=function(){this.update_mapped_classes(e.class_map,"bar_style",this.bar)},e.prototype.set_bar_style=function(){this.set_mapped_classes(e.class_map,"bar_style",this.bar)},e.class_map={success:["progress-bar-success"],info:["progress-bar-info"],warning:["progress-bar-warning"],danger:["progress-bar-danger"]},e}(p),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"PlayModel",_view_name:"PlayView",_playing:!1,_repeat:!1,show_repeat:!0,interval:100,step:1,disabled:!1})},e.prototype.initialize=function(e,n){t.prototype.initialize.call(this,e,n)},e.prototype.loop=function(){if(this.get("_playing")){var t=this.get("value")+this.get("step");t<=this.get("max")?(this.set("value",t),this.schedule_next()):this.get("_repeat")?(this.set("value",this.get("min")),this.schedule_next()):this.set("_playing",!1),this.save_changes()}},e.prototype.schedule_next=function(){window.setTimeout(this.loop.bind(this),this.get("interval"))},e.prototype.stop=function(){this.set("_playing",!1),this.set("value",this.get("min")),this.save_changes()},e.prototype.pause=function(){this.set("_playing",!1),this.save_changes()},e.prototype.play=function(){this.set("_playing",!0),this.get("value")==this.get("max")?(this.set("value",this.get("min")),this.schedule_next(),this.save_changes()):this.loop()},e.prototype.repeat=function(){this.set("_repeat",!this.get("_repeat")),this.save_changes()},e}(It),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-play"),this.playButton=document.createElement("button"),this.pauseButton=document.createElement("button"),this.stopButton=document.createElement("button"),this.repeatButton=document.createElement("button"),this.playButton.className="jupyter-button",this.pauseButton.className="jupyter-button",this.stopButton.className="jupyter-button",this.repeatButton.className="jupyter-button",this.el.appendChild(this.playButton),this.el.appendChild(this.pauseButton),this.el.appendChild(this.stopButton),this.el.appendChild(this.repeatButton);var e=document.createElement("i");e.className="fa fa-play",this.playButton.appendChild(e);var n=document.createElement("i");n.className="fa fa-pause",this.pauseButton.appendChild(n);var i=document.createElement("i");i.className="fa fa-stop",this.stopButton.appendChild(i);var r=document.createElement("i");r.className="fa fa-retweet",this.repeatButton.appendChild(r),this.playButton.onclick=this.model.play.bind(this.model),this.pauseButton.onclick=this.model.pause.bind(this.model),this.stopButton.onclick=this.model.stop.bind(this.model),this.repeatButton.onclick=this.model.repeat.bind(this.model),this.listenTo(this.model,"change:_playing",this.update_playing),this.listenTo(this.model,"change:_repeat",this.update_repeat),this.listenTo(this.model,"change:show_repeat",this.update_repeat),this.update_playing(),this.update_repeat(),this.update()},e.prototype.update=function(){var t=this.model.get("disabled");this.playButton.disabled=t,this.pauseButton.disabled=t,this.stopButton.disabled=t,this.repeatButton.disabled=t,this.update_playing()},e.prototype.update_playing=function(){var t=this.model.get("_playing"),e=this.model.get("disabled");t?(e||(this.pauseButton.disabled=!1),this.playButton.classList.add("mod-active")):(e||(this.pauseButton.disabled=!0),this.playButton.classList.remove("mod-active"))},e.prototype.update_repeat=function(){var t=this.model.get("_repeat");this.repeatButton.style.display=this.model.get("show_repeat")?this.playButton.style.display:"none",t?this.repeatButton.classList.add("mod-active"):this.repeatButton.classList.remove("mod-active")},e}(i.DOMWidgetView),Gt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"FloatModel",value:0})},e}(_),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"BoundedFloatModel",max:100,min:0})},e}(Xt),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"FloatSliderModel",_view_name:"FloatSliderView",step:1,orientation:"horizontal",_range:!1,readout:!0,readout_format:".2f",slider_color:null,continuous_update:!0,disabled:!1})},e.prototype.initialize=function(e,n){t.prototype.initialize.call(this,e,n),this.on("change:readout_format",this.update_readout_format,this),this.update_readout_format()},e.prototype.update_readout_format=function(){this.readout_formatter=Tt(this.get("readout_format"))},e}(Zt),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"FloatLogSliderModel",_view_name:"FloatLogSliderView",step:.1,orientation:"horizontal",_range:!1,readout:!0,readout_format:".3g",slider_color:null,continuous_update:!0,disabled:!1,base:10,value:1,min:0,max:4})},e.prototype.initialize=function(e,n){t.prototype.initialize.call(this,e,n),this.on("change:readout_format",this.update_readout_format,this),this.update_readout_format()},e.prototype.update_readout_format=function(){this.readout_formatter=Tt(this.get("readout_format"))},e}(Zt),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e}(Qt),ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parse_value=parseFloat,e}return Gt(e,t),e.prototype._validate_slide_value=function(t){return t},e}(Wt),ie=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parse_value=parseFloat,e}return Gt(e,t),e.prototype.update=function(e){t.prototype.update.call(this,e);var n=this.model.get("min"),i=this.model.get("max"),r=this.model.get("value"),o=this.model.get("base"),s=Math.log(r)/Math.log(o);s>i?s=i:s<n&&(s=n),this.$slider.slider("option","value",s),this.readout.textContent=this.valueToString(r),this.model.get("value")!==r&&(this.model.set("value",r,{updated_view:this}),this.touch())},e.prototype.valueToString=function(t){return(0,this.model.readout_formatter)(t)},e.prototype.stringToValue=function(t){return this._parse_value(t)},e.prototype.handleTextChange=function(){var t=this.stringToValue(this.readout.textContent),e=this.model.get("min"),n=this.model.get("max"),i=this.model.get("base");isNaN(t)?this.readout.textContent=this.valueToString(this.model.get("value")):(t=Math.max(Math.min(t,Math.pow(i,n)),Math.pow(i,e)))!==this.model.get("value")?(this.readout.textContent=this.valueToString(t),this.model.set("value",t,{updated_view:this}),this.touch()):this.readout.textContent=this.valueToString(this.model.get("value"))},e.prototype.handleSliderChange=function(t,e){var n=this.model.get("base"),i=Math.pow(n,this._validate_slide_value(e.value));this.readout.textContent=this.valueToString(i),this.model.get("continuous_update")&&this.handleSliderChanged(t,e)},e.prototype.handleSliderChanged=function(t,e){var n=this.model.get("base"),i=Math.pow(n,this._validate_slide_value(e.value));this.model.set("value",i,{updated_view:this}),this.touch()},e.prototype._validate_slide_value=function(t){return t},e}(Ft),re=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parse_value=parseFloat,e._range_regex=/^\s*([+-]?(?:\d*\.?\d+|\d+\.)(?:[eE][-:]?\d+)?)\s*[-:]\s*([+-]?(?:\d*\.?\d+|\d+\.)(?:[eE][+-]?\d+)?)/,e}return Gt(e,t),e.prototype._validate_slide_value=function(t){return t},e}(Nt),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"FloatTextModel",_view_name:"FloatTextView",disabled:!1,continuous_update:!1})},e}(Xt),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"BoundedFloatTextModel",_view_name:"FloatTextView",disabled:!1,continuous_update:!1,step:.1})},e}(Zt),ae=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parse_value=parseFloat,e._default_step="any",e}return Gt(e,t),e.prototype.handleKeypress=function(t){t.stopPropagation()},e.prototype.handleKeyUp=function(t){},e}(qt),le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gt(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"FloatProgressModel",_view_name:"ProgressView",orientation:"horizontal",bar_style:"",style:null})},e}(Zt),ue=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ce=function(){return(ce=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},de=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ue(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"ControllerButtonModel",_view_name:"ControllerButtonView",value:0,pressed:!1})},e}(b),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ue(e,t),e.prototype.render=function(){this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-controller-button"),this.el.style.width="fit-content",this.support=document.createElement("div"),this.support.style.position="relative",this.support.style.margin="1px",this.support.style.width="16px",this.support.style.height="16px",this.support.style.border="1px solid black",this.support.style.background="lightgray",this.el.appendChild(this.support),this.bar=document.createElement("div"),this.bar.style.position="absolute",this.bar.style.width="100%",this.bar.style.bottom="0px",this.bar.style.background="gray",this.support.appendChild(this.bar),this.update(),this.label=document.createElement("div"),this.label.textContent=this.model.get("description"),this.label.style.textAlign="center",this.el.appendChild(this.label)},e.prototype.update=function(){this.bar.style.height=100*this.model.get("value")+"%"},e}(i.DOMWidgetView),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ue(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"ControllerAxisModel",_view_name:"ControllerAxisView",value:0})},e}(b),fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ue(e,t),e.prototype.render=function(){this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-controller-axis"),this.el.style.width="16px",this.el.style.padding="4px",this.support=document.createElement("div"),this.support.style.position="relative",this.support.style.margin="1px",this.support.style.width="4px",this.support.style.height="64px",this.support.style.border="1px solid black",this.support.style.background="lightgray",this.bullet=document.createElement("div"),this.bullet.style.position="absolute",this.bullet.style.margin="-3px",this.bullet.style.boxSizing="unset",this.bullet.style.width="10px",this.bullet.style.height="10px",this.bullet.style.background="gray",this.label=document.createElement("div"),this.label.textContent=this.model.get("description"),this.label.style.textAlign="center",this.support.appendChild(this.bullet),this.el.appendChild(this.support),this.el.appendChild(this.label),this.update()},e.prototype.update=function(){this.bullet.style.top=50*(this.model.get("value")+1)+"%"},e}(i.DOMWidgetView),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ue(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"ControllerModel",_view_name:"ControllerView",index:0,name:"",mapping:"",connected:!1,timestamp:0,buttons:[],axes:[]})},e.prototype.initialize=function(e,n){t.prototype.initialize.call(this,e,n),void 0===navigator.getGamepads?(this.readout="This browser does not support gamepads.",console.error(this.readout)):(this.readout="Connect gamepad and press any button.",this.get("connected")?this.update_loop():this.wait_loop())},e.prototype.wait_loop=function(){var t=this.get("index"),e=navigator.getGamepads()[t];if(e){var n=this;this.setup(e).then((function(t){n.set(t),n.save_changes(),window.requestAnimationFrame(n.update_loop.bind(n))}))}else window.requestAnimationFrame(this.wait_loop.bind(this))},e.prototype.setup=function(t){this.set({name:t.id,mapping:t.mapping,connected:t.connected,timestamp:t.timestamp});var e=this;return i.resolvePromisesDict({buttons:Promise.all(t.buttons.map((function(t,n){return e._create_button_model(n)}))),axes:Promise.all(t.axes.map((function(t,n){return e._create_axis_model(n)})))})},e.prototype.update_loop=function(){var t=this.get("index"),e=this.get("name"),n=navigator.getGamepads()[t];n&&t===n.index&&e===n.id?(this.set({timestamp:n.timestamp,connected:n.connected}),this.save_changes(),this.get("buttons").forEach((function(t,e){t.set({value:n.buttons[e].value,pressed:n.buttons[e].pressed}),t.save_changes()})),this.get("axes").forEach((function(t,e){t.set("value",n.axes[e]),t.save_changes()})),window.requestAnimationFrame(this.update_loop.bind(this))):this.reset_gamepad()},e.prototype.reset_gamepad=function(){this.get("buttons").forEach((function(t){t.close()})),this.get("axes").forEach((function(t){t.close()})),this.set({name:"",mapping:"",connected:!1,timestamp:0,buttons:[],axes:[]}),this.save_changes(),window.requestAnimationFrame(this.wait_loop.bind(this))},e.prototype._create_button_model=function(t){return this.widget_manager.new_widget({model_name:"ControllerButtonModel",model_module:"@jupyter-widgets/controls",model_module_version:this.get("_model_module_version"),view_name:"ControllerButtonView",view_module:"@jupyter-widgets/controls",view_module_version:this.get("_view_module_version")}).then((function(e){return e.set("description",t),e}))},e.prototype._create_axis_model=function(t){return this.widget_manager.new_widget({model_name:"ControllerAxisModel",model_module:"@jupyter-widgets/controls",model_module_version:this.get("_model_module_version"),view_name:"ControllerAxisView",view_module:"@jupyter-widgets/controls",view_module_version:this.get("_view_module_version")}).then((function(e){return e.set("description",t),e}))},e.serializers=ce(ce({},b.serializers),{buttons:{deserialize:i.unpack_models},axes:{deserialize:i.unpack_models}}),e}(b),ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ue(e,t),e.prototype._createElement=function(t){return this.pWidget=new i.JupyterPhosphorPanelWidget({view:this}),this.pWidget.node},e.prototype._setElement=function(t){if(this.el||t!==this.pWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.pWidget.node,this.$el=W()(this.pWidget.node)},e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.button_views=new i.ViewList(this.add_button,null,this),this.listenTo(this.model,"change:buttons",(function(t,e){this.button_views.update(e)})),this.axis_views=new i.ViewList(this.add_axis,null,this),this.listenTo(this.model,"change:axes",(function(t,e){this.axis_views.update(e)})),this.listenTo(this.model,"change:name",this.update_label)},e.prototype.render=function(){this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-controller"),this.label=document.createElement("div"),this.el.appendChild(this.label),this.axis_box=new F.Panel,this.axis_box.node.style.display="flex",this.pWidget.addWidget(this.axis_box),this.button_box=new F.Panel,this.button_box.node.style.display="flex",this.pWidget.addWidget(this.button_box),this.button_views.update(this.model.get("buttons")),this.axis_views.update(this.model.get("axes")),this.update_label()},e.prototype.update_label=function(){this.label.textContent=this.model.get("name")||this.model.readout},e.prototype.add_button=function(t){var e=this,n=new F.Widget;return this.button_box.addWidget(n),this.create_child_view(t).then((function(t){var i=B.a.firstIndexOf(e.button_box.widgets,n);return e.button_box.insertWidget(i,t.pWidget),n.dispose(),t})).catch(r("Could not add child button view to controller",!0))},e.prototype.add_axis=function(t){var e=this,n=new F.Widget;return this.axis_box.addWidget(n),this.create_child_view(t).then((function(t){var i=B.a.firstIndexOf(e.axis_box.widgets,n);return e.axis_box.insertWidget(i,t.pWidget),n.dispose(),t})).catch(r("Could not add child axis view to controller",!0))},e.prototype.remove=function(){t.prototype.remove.call(this),this.button_views.remove(),this.axis_views.remove()},e}(i.DOMWidgetView),ve=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ye=function(){return(ye=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},be=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return ye(ye({},t.prototype.defaults.call(this)),{_model_name:"SelectionModel",index:"",_options_labels:[],disabled:!1})},e}(_),_e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return ye(ye({},t.prototype.defaults.call(this)),{_model_name:"DropdownModel",_view_name:"DropdownView",button_style:""})},e}(be),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.initialize=function(e){var n=this;t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:_options_labels",(function(){return n._updateOptions()}))},e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-dropdown"),this.listbox=document.createElement("select"),this.listbox.id=this.label.htmlFor=Object(i.uuid)(),this.el.appendChild(this.listbox),this._updateOptions(),this.update()},e.prototype.update=function(){this.listbox.disabled=this.model.get("disabled");var e=this.model.get("index");return this.listbox.selectedIndex=null===e?-1:e,t.prototype.update.call(this)},e.prototype._updateOptions=function(){this.listbox.textContent="";for(var t=this.model.get("_options_labels"),e=0;e<t.length;e++){var n=t[e],i=document.createElement("option");i.textContent=n.replace(/ /g," "),i.setAttribute("data-value",encodeURIComponent(n)),i.value=n,this.listbox.appendChild(i)}},e.prototype.events=function(){return{"change select":"_handle_change"}},e.prototype._handle_change=function(){this.model.set("index",-1===this.listbox.selectedIndex?null:this.listbox.selectedIndex),this.touch()},e}(p),xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return ye(ye({},t.prototype.defaults.call(this)),{_model_name:"SelectModel",_view_name:"SelectView",rows:5})},e}(be),Ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.initialize=function(e){var n=this;t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:_options_labels",(function(){return n._updateOptions()})),this.listenTo(this.model,"change:index",(function(t,e,i){return n.updateSelection(i)})),this.listbox=document.createElement("select")},e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-select"),this.listbox.id=this.label.htmlFor=Object(i.uuid)(),this.el.appendChild(this.listbox),this._updateOptions(),this.update(),this.updateSelection()},e.prototype.update=function(){t.prototype.update.call(this),this.listbox.disabled=this.model.get("disabled");var e=this.model.get("rows");null===e&&(e=""),this.listbox.setAttribute("size",e)},e.prototype.updateSelection=function(t){if(void 0===t&&(t={}),t.updated_view!==this){var e=this.model.get("index");this.listbox.selectedIndex=null===e?-1:e}},e.prototype._updateOptions=function(){this.listbox.textContent="";for(var t=this.model.get("_options_labels"),e=0;e<t.length;e++){var n=t[e],i=document.createElement("option");i.textContent=n.replace(/ /g," "),i.setAttribute("data-value",encodeURIComponent(n)),i.value=n,this.listbox.appendChild(i)}},e.prototype.events=function(){return{"change select":"_handle_change"}},e.prototype._handle_change=function(){this.model.set("index",this.listbox.selectedIndex,{updated_view:this}),this.touch()},e}(p),je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return ye(ye({},t.prototype.defaults.call(this)),{_model_name:"RadioButtonsModel",_view_name:"RadioButtonsView",tooltips:[],icons:[],button_style:""})},e}(be),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-radio"),this.container=document.createElement("div"),this.el.appendChild(this.container),this.container.classList.add("widget-radio-box"),this.update()},e.prototype.update=function(e){var n=this,i=this.model.get("_options_labels"),r=g.pluck(this.container.querySelectorAll('input[type="radio"]'),"value"),o=i.length!=r.length;if(!o)for(var s=0,a=i.length;s<a;++s)if(r[s]!==i[s]){o=!0;break}return!o||void 0!==e&&e.updated_view===this||(this.container.textContent="",i.forEach((function(t,e){var i=document.createElement("label");i.textContent=t,n.container.appendChild(i);var r=document.createElement("input");r.setAttribute("type","radio"),r.value=e.toString(),r.setAttribute("data-value",encodeURIComponent(t)),i.appendChild(r)}))),i.forEach((function(t,e){var i='input[data-value="'+encodeURIComponent(t)+'"]',r=n.container.querySelectorAll(i);if(r.length>0){var o=r[0];o.checked=n.model.get("index")===e,o.disabled=n.model.get("disabled")}})),setTimeout(this.adjustPadding,0,this),t.prototype.update.call(this,e)},e.prototype.adjustPadding=function(t){var e=window.getComputedStyle(t.el),n=parseInt(e.marginTop,10)+parseInt(e.marginBottom,10),i=t.label.offsetHeight+n,r=window.getComputedStyle(t.container),o=parseInt(r.marginBottom),s=(t.el.offsetHeight+n-o)%i,a=0==s?0:i-s;t.container.style.marginBottom=a+"px"},e.prototype.events=function(){return{'click input[type="radio"]':"_handle_click"}},e.prototype._handle_click=function(t){var e=t.target;this.model.set("index",parseInt(e.value),{updated_view:this}),this.touch()},e}(p),Te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"ToggleButtonsStyleModel"})},e.styleProperties=ye(ye({},d.styleProperties),{button_width:{selector:".widget-toggle-button",attribute:"width",default:null},font_weight:{selector:".widget-toggle-button",attribute:"font-weight",default:""}}),e}(d),Me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return ye(ye({},t.prototype.defaults.call(this)),{_model_name:"ToggleButtonsModel",_view_name:"ToggleButtonsView"})},e}(be),ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.initialize=function(e){this._css_state={},t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:button_style",this.update_button_style)},e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-toggle-buttons"),this.buttongroup=document.createElement("div"),this.el.appendChild(this.buttongroup),this.update(),this.set_button_style()},e.prototype.update=function(n){for(var i=this,r=this.model.get("_options_labels"),o=this.model.get("icons")||[],a=this.model.previous("icons")||[],l=e.classMap[this.model.previous("button_style")]||"",u=i.model.get("tooltips")||[],c=this.model.get("disabled"),d=this.buttongroup.querySelectorAll("button"),h=g.pluck(d,"value"),p=!1,f=0,m=r.length;f<m;++f)if(h[f]!==r[f]||o[f]!==a[f]){p=!0;break}return!p||void 0!==n&&n.updated_view===this||(this.buttongroup.textContent="",r.forEach((function(t,e){var n;n=0===t.trim().length&&(!o[e]||0===o[e].trim().length)?"&nbsp;":s(t);var r=document.createElement("i"),a=document.createElement("button");o[e]&&(r.className="fa fa-"+o[e]),a.setAttribute("type","button"),a.className="widget-toggle-button jupyter-button",l&&a.classList.add(l),a.innerHTML=n,a.setAttribute("data-value",encodeURIComponent(t)),a.setAttribute("value",e.toString()),a.appendChild(r),a.disabled=c,u[e]&&a.setAttribute("title",u[e]),i.update_style_traits(a),i.buttongroup.appendChild(a)}))),r.forEach((function(t,e){var n='[data-value="'+encodeURIComponent(t)+'"]',r=i.buttongroup.querySelector(n);i.model.get("index")===e?r.classList.add("mod-active"):r.classList.remove("mod-active")})),this.stylePromise.then((function(t){t&&t.style()})),t.prototype.update.call(this,n)},e.prototype.update_style_traits=function(t){for(var e in this._css_state)if(this._css_state.hasOwnProperty(e))if("margin"===e)this.buttongroup.style[e]=this._css_state[e];else if("width"!==e)if(t)t.style[e]=this._css_state[e];else{var n=this.buttongroup.querySelectorAll("button");n.length&&(n[0].style[e]=this._css_state[e])}},e.prototype.update_button_style=function(){for(var t=this.buttongroup.querySelectorAll("button"),n=0;n<t.length;n++)this.update_mapped_classes(e.classMap,"button_style",t[n])},e.prototype.set_button_style=function(){for(var t=this.buttongroup.querySelectorAll("button"),n=0;n<t.length;n++)this.set_mapped_classes(e.classMap,"button_style",t[n])},e.prototype.events=function(){return{"click button":"_handle_click"}},e.prototype._handle_click=function(t){var e=t.target;this.model.set("index",parseInt(e.value,10),{updated_view:this}),this.touch(),this.send({event:"click"})},e}(p);(ke||(ke={})).classMap={primary:["mod-primary"],success:["mod-success"],info:["mod-info"],warning:["mod-warning"],danger:["mod-danger"]};var Ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return ye(ye({},t.prototype.defaults.call(this)),{_model_name:"SelectionSliderModel",_view_name:"SelectionSliderView",orientation:"horizontal",readout:!0,continuous_update:!0})},e}(be),Se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.render=function(){var e=this;t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-hslider"),this.el.classList.add("widget-slider"),(this.$slider=W()("<div />")).slider({slide:this.handleSliderChange.bind(this),stop:this.handleSliderChanged.bind(this)}).addClass("slider"),this.slider_container=document.createElement("div"),this.slider_container.classList.add("slider-container"),this.slider_container.appendChild(this.$slider[0]),this.el.appendChild(this.slider_container),this.readout=document.createElement("div"),this.el.appendChild(this.readout),this.readout.classList.add("widget-readout"),this.readout.style.display="none",this.listenTo(this.model,"change:slider_color",(function(t,n){e.$slider.find("a").css("background",n)})),this.$slider.find("a").css("background",this.model.get("slider_color")),this.update()},e.prototype.update=function(e){if(void 0===e||e.updated_view!==this){var n=this.model.get("_options_labels").length-1;this.$slider.slider("option","step",1),this.$slider.slider("option","max",n),this.$slider.slider("option","min",0);var i=this.model.get("orientation");this.$slider.slider("option","value",0),this.$slider.slider("option","orientation",i);var r=this.model.get("disabled");this.$slider.slider("option","disabled",r),this.readout.contentEditable=r?"false":"true","vertical"===i?(this.el.classList.remove("widget-hslider"),this.el.classList.remove("widget-inline-hbox"),this.el.classList.add("widget-vslider"),this.el.classList.add("widget-inline-vbox")):(this.el.classList.remove("widget-vslider"),this.el.classList.remove("widget-inline-vbox"),this.el.classList.add("widget-hslider"),this.el.classList.add("widget-inline-hbox"));var o=this.model.get("readout");this.readout.style.display=o?"":"none",this.updateSelection()}return t.prototype.update.call(this,e)},e.prototype.events=function(){return{slide:"handleSliderChange",slidestop:"handleSliderChanged"}},e.prototype.updateSelection=function(){var t=this.model.get("index");this.$slider.slider("option","value",t),this.updateReadout(t)},e.prototype.updateReadout=function(t){var e=this.model.get("_options_labels")[t];this.readout.textContent=e},e.prototype.handleSliderChange=function(t,e){this.updateReadout(e.value),this.model.get("continuous_update")&&this.handleSliderChanged(t,e)},e.prototype.handleSliderChanged=function(t,e){this.updateReadout(e.value),this.model.set("index",e.value,{updated_view:this}),this.touch()},e}(p),De=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return ye(ye({},t.prototype.defaults.call(this)),{_model_name:"MultipleSelectionModel"})},e}(be),Oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return ye(ye({},t.prototype.defaults.call(this)),{_model_name:"SelectMultipleModel",_view_name:"SelectMultipleView",rows:null})},e}(De),Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.listbox.multiple=!0},e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("widget-select-multiple")},e.prototype.updateSelection=function(t){if(void 0===t&&(t={}),t.updated_view!==this){var e=this.model.get("index")||[],n=this.listbox.options;this.listbox.selectedIndex=-1,e.forEach((function(t){n[t].selected=!0}))}},e.prototype._handle_change=function(){var t=Array.prototype.map.call(this.listbox.selectedOptions||[],(function(t){return t.index}));this.model.set("index",t,{updated_view:this}),this.touch()},e}(Ce),Le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.defaults=function(){return ye(ye({},t.prototype.defaults.call(this)),{_model_name:"SelectionSliderModel",_view_name:"SelectionSliderView",orientation:"horizontal",readout:!0,continuous_update:!0})},e}(De),Ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.$slider.slider("option","range",!0)},e.prototype.updateSelection=function(){var t=this.model.get("index");this.$slider.slider("option","values",t.slice()),this.updateReadout(t)},e.prototype.updateReadout=function(t){var e=this.model.get("_options_labels"),n=e[t[0]],i=e[t[1]];this.readout.textContent=n+"-"+i},e.prototype.handleSliderChange=function(t,e){this.updateReadout(e.values),this.model.get("continuous_update")&&this.handleSliderChanged(t,e)},e.prototype.handleSliderChanged=function(t,e){this.updateReadout(e.values),this.model.set("index",e.values.slice(),{updated_view:this}),this.touch()},e}(Se),ze=n(5),Be=n(4),Re=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Fe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._widgetRemoved=new ze.a(e),e}return Re(e,t),Object.defineProperty(e.prototype,"widgetRemoved",{get:function(){return this._widgetRemoved},enumerable:!0,configurable:!0}),e.prototype.onChildRemoved=function(t){this._widgetRemoved.emit(t.child)},e}(F.Panel),Ne=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;n._currentChanged=new ze.a(n),n.addClass("p-TabPanel"),n.tabBar=new F.TabBar(e),n.tabBar.addClass("p-TabPanel-tabBar"),n.tabContents=new Fe,n.tabContents.addClass("p-TabPanel-tabContents"),n.tabBar.tabMoved.connect(n._onTabMoved,n),n.tabBar.currentChanged.connect(n._onCurrentChanged,n),n.tabBar.tabCloseRequested.connect(n._onTabCloseRequested,n),n.tabBar.tabActivateRequested.connect(n._onTabActivateRequested,n),n.tabContents.widgetRemoved.connect(n._onWidgetRemoved,n);var i=new F.PanelLayout;return i.addWidget(n.tabBar),i.addWidget(n.tabContents),n.layout=i,n}return Re(e,t),Object.defineProperty(e.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentIndex",{get:function(){var t=this.tabBar.currentIndex;return-1===t?null:t},set:function(t){this.tabBar.currentIndex=null===t?-1:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentWidget",{get:function(){var t=this.tabBar.currentTitle;return t?t.owner:null},set:function(t){this.tabBar.currentTitle=t?t.title:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabsMovable",{get:function(){return this.tabBar.tabsMovable},set:function(t){this.tabBar.tabsMovable=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgets",{get:function(){return this.tabContents.widgets},enumerable:!0,configurable:!0}),e.prototype.addWidget=function(t){this.insertWidget(this.widgets.length,t)},e.prototype.insertWidget=function(t,e){e!==this.currentWidget&&e.hide(),this.tabContents.insertWidget(t,e),this.tabBar.insertTab(t,e.title)},e.prototype._onCurrentChanged=function(t,e){var n=e.previousIndex,i=e.previousTitle,r=e.currentIndex,o=e.currentTitle,s=i?i.owner:null,a=o?o.owner:null;s&&s.hide(),a&&a.show(),this._currentChanged.emit({previousIndex:n,previousWidget:s,currentIndex:r,currentWidget:a}),(Be.b.IS_EDGE||Be.b.IS_IE)&&R.c.flush()},e.prototype._onTabActivateRequested=function(t,e){e.title.owner.activate()},e.prototype._onTabCloseRequested=function(t,e){e.title.owner.close()},e.prototype._onTabMoved=function(t,e){this.tabContents.insertWidget(e.toIndex,e.title.owner)},e.prototype._onWidgetRemoved=function(t,e){this.tabBar.removeTab(e.title)},e}(F.Widget),We=function(){function t(t,e){void 0===e&&(e={}),this._array=null,this._value=null,this._previousValue=null,this._selectionChanged=new ze.a(this),this._array=t,this._insertBehavior=e.insertBehavior||"select-item-if-needed",this._removeBehavior=e.removeBehavior||"select-item-after"}return Object.defineProperty(t.prototype,"selectionChanged",{get:function(){return this._selectionChanged},enumerable:!0,configurable:!0}),t.prototype.adjustSelectionForSet=function(t){var e=this.index,n=this.value;if(t===e){this._updateSelectedValue();var i=this.value;this._previousValue=null,n!==i&&this._selectionChanged.emit({previousIndex:e,previousValue:n,currentIndex:e,currentValue:i})}},Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.index=null===t?null:B.a.firstIndexOf(this._array,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this._index},set:function(t){var e;if(null!==t?((e=Math.floor(t))<0||e>=this._array.length)&&(e=null):e=null,this._index!==e){var n=this._index,i=this._value;this._index=e,this._updateSelectedValue(),this._previousValue=i,this._selectionChanged.emit({previousIndex:n,previousValue:i,currentIndex:e,currentValue:this._value})}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"insertBehavior",{get:function(){return this._insertBehavior},set:function(t){this._insertBehavior=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeBehavior",{get:function(){return this._removeBehavior},set:function(t){this._removeBehavior=t},enumerable:!0,configurable:!0}),t.prototype.adjustSelectionForInsert=function(t,e){var n=this._value,i=this._index,r=this._insertBehavior;if("select-item"===r||"select-item-if-needed"===r&&null===i)return this._index=t,this._value=e,this._previousValue=n,void this._selectionChanged.emit({previousIndex:i,previousValue:n,currentIndex:t,currentValue:e});i>=t&&this._index++},t.prototype.adjustSelectionForMove=function(t,e){this._index===t?this._index=e:this._index<t&&this._index>=e?this._index++:this._index>t&&this._index<=e&&this._index--},t.prototype.clearSelection=function(){var t=this._index,e=this._value;this._index=null,this._value=null,this._previousValue=null,null!==t&&this._selectionChanged.emit({previousIndex:t,previousValue:e,currentIndex:this._index,currentValue:this._value})},t.prototype.adjustSelectionForRemove=function(t,e){var n=this._index,i=this._removeBehavior;if(n===t){if(0===this._array.length)return this._index=null,this._value=null,this._previousValue=null,void this._selectionChanged.emit({previousIndex:t,previousValue:e,currentIndex:this._index,currentValue:this._value});if("select-item-after"===i)return this._index=Math.min(t,this._array.length-1),this._updateSelectedValue(),this._previousValue=null,void this._selectionChanged.emit({previousIndex:t,previousValue:e,currentIndex:this._index,currentValue:this._value});if("select-item-before"===i)return this._index=Math.max(0,t-1),this._updateSelectedValue(),this._previousValue=null,void this._selectionChanged.emit({previousIndex:t,previousValue:e,currentIndex:this._index,currentValue:this._value});if("select-previous-item"===i)return this._previousValue?this.value=this._previousValue:(this._index=Math.min(t,this._array.length-1),this._updateSelectedValue()),this._previousValue=null,void this._selectionChanged.emit({previousIndex:t,previousValue:e,currentIndex:this._index,currentValue:this.value});this._index=null,this._value=null,this._previousValue=null,this._selectionChanged.emit({previousIndex:t,previousValue:e,currentIndex:this._index,currentValue:this._value})}else n>t&&this._index--},t.prototype._updateSelectedValue=function(){var t=this._index;this._value=null!==t?this._array[t]:null},t}(),He=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ve=function(t){function e(e){var n=t.call(this,e)||this;n._collapseChanged=new ze.a(n),n.addClass("p-Collapse"),n._header=new F.Widget,n._header.addClass("p-Collapse-header"),n._header.node.addEventListener("click",n);var i=document.createElement("i");i.classList.add("fa","fa-fw","fa-caret-right"),n._header.node.appendChild(i),n._header.node.appendChild(document.createElement("span")),n._content=new F.Panel,n._content.addClass("p-Collapse-contents");var r=new F.PanelLayout;return n.layout=r,r.addWidget(n._header),r.addWidget(n._content),e.widget&&(n.widget=e.widget),n.collapsed=!1,n}return He(e,t),e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._header=null,this._widget=null,this._content=null)},Object.defineProperty(e.prototype,"widget",{get:function(){return this._widget},set:function(t){var e=this._widget;e&&(e.disposed.disconnect(this._onChildDisposed,this),e.title.changed.disconnect(this._onTitleChanged,this),e.parent=null),this._widget=t,t.disposed.connect(this._onChildDisposed,this),t.title.changed.connect(this._onTitleChanged,this),this._onTitleChanged(t.title),this._content.addWidget(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this._collapsed},set:function(t){t!==this._collapsed&&(t?this._collapse():this._uncollapse())},enumerable:!0,configurable:!0}),e.prototype.toggle=function(){this.collapsed=!this.collapsed},Object.defineProperty(e.prototype,"collapseChanged",{get:function(){return this._collapseChanged},enumerable:!0,configurable:!0}),e.prototype._collapse=function(){this._collapsed=!0,this._content&&this._content.hide(),this.removeClass("p-Collapse-open"),this._header.node.children[0].classList.add("fa-caret-right"),this._header.node.children[0].classList.remove("fa-caret-down"),this._collapseChanged.emit(void 0)},e.prototype._uncollapse=function(){this._collapsed=!1,this._content&&this._content.show(),this.addClass("p-Collapse-open"),this._header.node.children[0].classList.add("fa-caret-down"),this._header.node.children[0].classList.remove("fa-caret-right"),this._collapseChanged.emit(void 0)},e.prototype.handleEvent=function(t){switch(t.type){case"click":this._evtClick(t)}},e.prototype._evtClick=function(t){this.toggle()},e.prototype._onTitleChanged=function(t){this._header.node.children[1].textContent=this._widget.title.label},e.prototype._onChildDisposed=function(t){this.dispose()},e}(F.Widget),qe=function(t){function e(e){var n=t.call(this,e)||this;return n._selection=new We(n.widgets),n._selection.selectionChanged.connect(n._onSelectionChanged,n),n.addClass("p-Accordion"),n}return He(e,t),Object.defineProperty(e.prototype,"collapseWidgets",{get:function(){return this.layout.widgets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){return this._selection},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(t){return B.a.findFirstIndex(this.collapseWidgets,(function(e){return e.widget===t}))},e.prototype.addWidget=function(e){var n=this._wrapWidget(e);return n.collapsed=!0,t.prototype.addWidget.call(this,n),this._selection.adjustSelectionForInsert(this.widgets.length-1,n),n},e.prototype.insertWidget=function(e,n){var i=this._wrapWidget(n);i.collapsed=!0,t.prototype.insertWidget.call(this,e,i),this._selection.adjustSelectionForInsert(e,i)},e.prototype.removeWidget=function(t){var e=this.indexOf(t);if(e>=0){var n=this.collapseWidgets[e];t.parent=null,n.dispose(),this._selection.adjustSelectionForRemove(e,null)}},e.prototype._wrapWidget=function(t){var e=new Ve({widget:t});return e.addClass("p-Accordion-child"),e.collapseChanged.connect(this._onCollapseChange,this),e},e.prototype._onCollapseChange=function(t){t.collapsed?this._selection.value===t&&t.collapsed&&(this._selection.value=null):this._selection.value=t},e.prototype._onSelectionChanged=function(t,e){var n=e.previousValue,i=e.currentValue;n&&(n.collapsed=!0,n.removeClass("p-Accordion-child-active")),i&&(i.collapsed=!1,i.addClass("p-Accordion-child-active"))},e}(F.Panel),Ue=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ue(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"SelectionContainerModel",selected_index:0,_titles:{}})},e}(q),$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ue(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"AccordionModel",_view_name:"AccordionView"})},e}(Ke),Je=function(t){function e(e){var n=this,i=e.view;return delete e.view,(n=t.call(this,e)||this)._view=i,n}return Ue(e,t),e.prototype.processMessage=function(e){t.prototype.processMessage.call(this,e),this._view.processPhosphorMessage(e)},e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},e}(qe),Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ue(e,t),e.prototype._createElement=function(t){return this.pWidget=new Je({view:this}),this.pWidget.node},e.prototype._setElement=function(t){if(this.el||t!==this.pWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.pWidget.node,this.$el=W()(this.pWidget.node)},e.prototype.initialize=function(e){var n=this;t.prototype.initialize.call(this,e),this.children_views=new i.ViewList(this.add_child_view,this.remove_child_view,this),this.listenTo(this.model,"change:children",(function(){return n.updateChildren()})),this.listenTo(this.model,"change:selected_index",(function(){return n.update_selected_index()})),this.listenTo(this.model,"change:_titles",(function(){return n.update_titles()}))},e.prototype.render=function(){var e=this;t.prototype.render.call(this);var n=this.pWidget;n.addClass("jupyter-widgets"),n.addClass("widget-accordion"),n.addClass("widget-container"),n.selection.selectionChanged.connect((function(t){e.updatingChildren||(e.model.set("selected_index",n.selection.index),e.touch())})),this.children_views.update(this.model.get("children")),this.update_titles(),this.update_selected_index()},e.prototype.updateChildren=function(){this.updatingChildren=!0,this.pWidget.selection.index=null,this.children_views.update(this.model.get("children")),this.update_selected_index(),this.updatingChildren=!1},e.prototype.update_titles=function(){for(var t=this.pWidget.collapseWidgets,e=this.model.get("_titles"),n=0;n<t.length;n++)void 0!==e[n]&&(t[n].widget.title.label=e[n])},e.prototype.update_selected_index=function(){this.pWidget.selection.index=this.model.get("selected_index")},e.prototype.remove_child_view=function(t){this.pWidget.removeWidget(t.pWidget),t.remove()},e.prototype.add_child_view=function(t,e){var n=this.pWidget,i=new F.Widget;return i.title.label=this.model.get("_titles")[e]||"",n.addWidget(i),this.create_child_view(t).then((function(t){var e=t.pWidget;return e.title.label=i.title.label,n.collapseWidgets[n.indexOf(i)].widget=e,i.dispose(),t})).catch(r("Could not add child view to box",!0))},e.prototype.remove=function(){this.children_views=null,t.prototype.remove.call(this)},e}(i.DOMWidgetView),Ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ue(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"TabModel",_view_name:"TabView"})},e}(Ke),Xe=function(t){function e(e){var n=this,i=e.view;return delete e.view,(n=t.call(this,e)||this)._view=i,R.c.installMessageHook(n.tabContents,(function(t,e){return n._view.processPhosphorMessage(e),!0})),n}return Ue(e,t),e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},e}(Ne),Ze=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.updatingTabs=!1,e}return Ue(e,t),e.prototype._createElement=function(t){return this.pWidget=new Xe({view:this}),this.pWidget.node},e.prototype._setElement=function(t){if(this.el||t!==this.pWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.pWidget.node,this.$el=W()(this.pWidget.node)},e.prototype.initialize=function(e){var n=this;t.prototype.initialize.call(this,e),this.childrenViews=new i.ViewList(this.addChildView,(function(t){t.remove()}),this),this.listenTo(this.model,"change:children",(function(){return n.updateTabs()})),this.listenTo(this.model,"change:_titles",(function(){return n.updateTitles()}))},e.prototype.render=function(){t.prototype.render.call(this);var e=this.pWidget;e.addClass("jupyter-widgets"),e.addClass("widget-container"),e.addClass("widget-tab"),e.tabsMovable=!0,e.tabBar.insertBehavior="none",e.tabBar.currentChanged.connect(this._onTabChanged,this),e.tabBar.tabMoved.connect(this._onTabMoved,this),e.tabBar.addClass("widget-tab-bar"),e.tabContents.addClass("widget-tab-contents"),e.tabBar.tabsMovable=!1,this.updateTabs(),this.update()},e.prototype.updateTabs=function(){this.updatingTabs=!0,this.pWidget.currentIndex=null,this.childrenViews.update(this.model.get("children")),this.pWidget.currentIndex=this.model.get("selected_index"),this.updatingTabs=!1},e.prototype.addChildView=function(t,e){var n=this.model.get("_titles")[e]||"",i=this.pWidget,o=new F.Widget;return o.title.label=n,i.addWidget(o),this.create_child_view(t).then((function(t){var e=t.pWidget;e.title.label=o.title.label,e.title.closable=!1;var n=B.a.firstIndexOf(i.widgets,o);return i.insertWidget(n+1,e),o.dispose(),t})).catch(r("Could not add child view to box",!0))},e.prototype.update=function(){return this.updateSelectedIndex(),t.prototype.update.call(this)},e.prototype.updateTitles=function(){var t=this.model.get("_titles")||{};Object(B.e)(this.pWidget.widgets,(function(e,n){e.title.label=t[n]||""}))},e.prototype.updateSelectedIndex=function(){this.pWidget.currentIndex=this.model.get("selected_index")},e.prototype.remove=function(){this.childrenViews=null,t.prototype.remove.call(this)},e.prototype._onTabChanged=function(t,e){if(!this.updatingTabs){var n=e.currentIndex;this.model.set("selected_index",-1===n?null:n),this.touch()}},e.prototype._onTabMoved=function(t,e){var n=this.model.get("children").slice();B.a.move(n,e.fromIndex,e.toIndex),this.model.set("children",n),this.touch()},e}(i.DOMWidgetView),Qe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),tn=function(){return(tn=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},en=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{value:"",disabled:!1,placeholder:"",_model_name:"StringModel"})},e}(_),nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"HTMLView",_model_name:"HTMLModel"})},e}(en),rn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-html"),this.content=document.createElement("div"),this.content.classList.add("widget-html-content"),this.el.appendChild(this.content),this.update()},e.prototype.update=function(){return this.content.innerHTML=this.model.get("value"),t.prototype.update.call(this)},e}(p),on=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"HTMLMathView",_model_name:"HTMLMathModel"})},e}(en),sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-htmlmath"),this.content=document.createElement("div"),this.content.classList.add("widget-htmlmath-content"),this.el.appendChild(this.content),this.update()},e.prototype.update=function(){return this.content.innerHTML=this.model.get("value"),this.typeset(this.content),t.prototype.update.call(this)},e}(p),an=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"LabelView",_model_name:"LabelModel"})},e}(en),ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-label"),this.update()},e.prototype.update=function(){return this.typeset(this.el,this.model.get("value")),t.prototype.update.call(this)},e}(p),un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"TextareaView",_model_name:"TextareaModel",rows:null,continuous_update:!0})},e}(en),cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.render=function(){var e=this;t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-textarea"),this.textbox=document.createElement("textarea"),this.textbox.setAttribute("rows","5"),this.textbox.id=this.label.htmlFor=Object(i.uuid)(),this.el.appendChild(this.textbox),this.update(),this.listenTo(this.model,"change:placeholder",(function(t,n,i){e.update_placeholder(n)})),this.update_placeholder()},e.prototype.update_placeholder=function(t){t=t||this.model.get("placeholder"),this.textbox.setAttribute("placeholder",t.toString())},e.prototype.update=function(e){if(void 0===e||e.updated_view!=this){this.textbox.value=this.model.get("value");var n=this.model.get("rows");null===n&&(n=""),this.textbox.setAttribute("rows",n),this.textbox.disabled=this.model.get("disabled")}return t.prototype.update.call(this)},e.prototype.events=function(){return{"keydown input":"handleKeyDown","keypress input":"handleKeypress","input textarea":"handleChanging","change textarea":"handleChanged"}},e.prototype.handleKeyDown=function(t){t.stopPropagation()},e.prototype.handleKeypress=function(t){t.stopPropagation()},e.prototype.handleChanging=function(t){this.model.get("continuous_update")&&this.handleChanged(t)},e.prototype.handleChanged=function(t){var e=t.target;this.model.set("value",e.value,{updated_view:this}),this.touch()},e}(p),dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"TextView",_model_name:"TextModel",continuous_update:!0})},e}(en),hn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputType="text",e}return Qe(e,t),e.prototype.render=function(){var e=this;t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-text"),this.textbox=document.createElement("input"),this.textbox.setAttribute("type",this.inputType),this.textbox.id=this.label.htmlFor=Object(i.uuid)(),this.el.appendChild(this.textbox),this.update(),this.listenTo(this.model,"change:placeholder",(function(t,n,i){e.update_placeholder(n)})),this.listenTo(this.model,"change:description_tooltip",this.update_title),this.listenTo(this.model,"change:description",this.update_title),this.update_placeholder(),this.update_title()},e.prototype.update_placeholder=function(t){this.textbox.setAttribute("placeholder",t||this.model.get("placeholder"))},e.prototype.update_title=function(){var t=this.model.get("description_tooltip");t?0===this.model.get("description").length&&this.textbox.setAttribute("title",t):this.textbox.removeAttribute("title")},e.prototype.update=function(e){return void 0!==e&&e.updated_view===this||(this.textbox.value!==this.model.get("value")&&(this.textbox.value=this.model.get("value")),this.textbox.disabled=this.model.get("disabled")),t.prototype.update.call(this)},e.prototype.events=function(){return{"keydown input":"handleKeyDown","keypress input":"handleKeypress","input input":"handleChanging","change input":"handleChanged"}},e.prototype.handleKeyDown=function(t){t.stopPropagation()},e.prototype.handleKeypress=function(t){t.stopPropagation(),13===t.keyCode&&this.send({event:"submit"})},e.prototype.handleChanging=function(t){this.model.get("continuous_update")&&this.handleChanged(t)},e.prototype.handleChanged=function(t){var e=t.target;this.model.set("value",e.value,{updated_view:this}),this.touch()},e}(p),pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_view_name:"PasswordView",_model_name:"PasswordModel"})},e}(dn),fn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputType="password",e}return Qe(e,t),e}(hn),mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.defaults=function(){return tn(tn({},t.prototype.defaults.call(this)),{_model_name:"ComboboxModel",_view_name:"ComboboxView",options:[],ensure_options:!1})},e}(dn),gn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isInitialRender=!0,e}return Qe(e,t),e.prototype.render=function(){this.datalist=document.createElement("datalist"),this.datalist.id=Object(i.uuid)(),t.prototype.render.call(this),this.textbox.setAttribute("list",this.datalist.id),this.el.appendChild(this.datalist)},e.prototype.update=function(e){if(t.prototype.update.call(this,e),this.datalist){var n=this.isValid(this.model.get("value"));if(this.highlightValidState(n),!(void 0!==e&&e.updated_view||!this.model.hasChanged("options")&&!this.isInitialRender)){this.isInitialRender=!1;var i=this.model.get("options").map((function(t){return'<option value="'+t+'"></option>'}));this.datalist.innerHTML=i.join("\n")}}},e.prototype.isValid=function(t){if(!0===this.model.get("ensure_option")&&-1===this.model.get("options").indexOf(t))return!1;return!0},e.prototype.handleChanging=function(e){var n=e.target,i=this.isValid(n.value);this.highlightValidState(i),i&&t.prototype.handleChanging.call(this,e)},e.prototype.handleChanged=function(e){var n=e.target,i=this.isValid(n.value);this.highlightValidState(i),i&&t.prototype.handleChanged.call(this,e)},e.prototype.highlightValidState=function(t){this.textbox.classList.toggle("jpwidgets-invalidComboValue",!t)},e}(hn),vn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),yn=function(){return(yn=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},bn=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},_n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vn(e,t),e.prototype.defaults=function(){return g.extend(t.prototype.defaults.call(this),{_model_name:"FileUploadModel",_view_name:"FileUploadView",_counter:0,accept:"",description:"Upload",tooltip:"",disabled:!1,icon:"upload",button_style:"",multiple:!1,metadata:[],data:[],error:"",style:null})},e.serializers=yn(yn({},b.serializers),{data:{serialize:function(t){return bn(t)}}}),e}(b),wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vn(e,t),Object.defineProperty(e.prototype,"tagName",{get:function(){return"button"},enumerable:!0,configurable:!0}),e.prototype.render=function(){var e=this;t.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-upload"),this.el.classList.add("jupyter-button"),this.fileInput=document.createElement("input"),this.fileInput.type="file",this.fileInput.style.display="none",this.el.appendChild(this.fileInput),this.el.addEventListener("click",(function(){e.fileInput.click()})),this.fileInput.addEventListener("click",(function(){e.fileInput.value=""})),this.fileInput.addEventListener("change",(function(){var t=[];Array.from(e.fileInput.files).forEach((function(n){t.push(new Promise((function(t,i){var r={name:n.name,type:n.type,size:n.size,lastModified:n.lastModified};e.fileReader=new FileReader,e.fileReader.onload=function(e){var n=e.target.result;t({buffer:n,metadata:r,error:""})},e.fileReader.onerror=function(){i()},e.fileReader.onabort=e.fileReader.onerror,e.fileReader.readAsArrayBuffer(n)})))})),Promise.all(t).then((function(t){var n=[],i=[];t.forEach((function(t){n.push(t.metadata),i.push(t.buffer)}));var r=e.model.get("_counter");e.model.set({_counter:r+t.length,metadata:n,data:i,error:""}),e.touch()})).catch((function(t){console.error("error in file upload: %o",t),e.model.set({error:t}),e.touch()}))})),this.listenTo(this.model,"change:button_style",this.update_button_style),this.set_button_style(),this.update()},e.prototype.update=function(){this.el.disabled=this.model.get("disabled"),this.el.setAttribute("title",this.model.get("tooltip"));var e=this.model.get("description")+" ("+this.model.get("_counter")+")",n=this.model.get("icon");if(e.length||n.length){if(this.el.textContent="",n.length){var i=document.createElement("i");i.classList.add("fa"),i.classList.add("fa-"+n),0===e.length&&i.classList.add("center"),this.el.appendChild(i)}this.el.appendChild(document.createTextNode(e))}return this.fileInput.accept=this.model.get("accept"),this.fileInput.multiple=this.model.get("multiple"),t.prototype.update.call(this)},e.prototype.update_button_style=function(){this.update_mapped_classes(e.class_map,"button_style",this.el)},e.prototype.set_button_style=function(){this.set_mapped_classes(e.class_map,"button_style",this.el)},e.class_map={primary:["mod-primary"],success:["mod-success"],info:["mod-info"],warning:["mod-warning"],danger:["mod-danger"]},e}(i.DOMWidgetView),xn=n(124).version},function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=u(t),s=i[0],a=i[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),c=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[c++]=255&e);1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],s=0,a=n-r;s<a;s+=16383)o.push(c(t,s,s+16383>a?a:s+16383));1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var r,o,s=[],a=e;a<n;a+=3)r=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var i=n(13),r=n(32);t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(12))},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var i=n(70),r=n(77),o=n(79),s=n(80),a=n(81);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},function(t,e,n){var i=n(82),r=n(85),o=n(86);t.exports=function(t,e,n,s,a,l){var u=1&n,c=t.length,d=e.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(t);if(h&&l.get(e))return h==e;var p=-1,f=!0,m=2&n?new i:void 0;for(l.set(t,e),l.set(e,t);++p<c;){var g=t[p],v=e[p];if(s)var y=u?s(v,g,p,e,t,l):s(g,v,p,t,e,l);if(void 0!==y){if(y)continue;f=!1;break}if(m){if(!r(e,(function(t,e){if(!o(m,e)&&(g===t||a(g,t,n,s,l)))return m.push(e)}))){f=!1;break}}else if(g!==v&&!a(g,v,n,s,l)){f=!1;break}}return l.delete(t),l.delete(e),f}},function(t,e,n){(function(t){var i=n(10),r=n(103),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;t.exports=l}).call(this,n(22)(t))},function(t,e,n){var i=n(105),r=n(106),o=n(107),s=o&&o.isTypedArray,a=s?r(s):i;t.exports=a},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i,r,o;
/*!
* jQuery UI Widget 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/r=[n(8),n(15)],void 0===(o="function"==typeof(i=function(t){var e,n=0,i=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(n){var i,r,o;for(o=0;null!=(r=n[o]);o++)try{(i=t._data(r,"events"))&&i.remove&&t(r).triggerHandler("remove")}catch(t){}e(n)}),t.widget=function(e,n,i){var r,o,s,a={},l=e.split(".")[0],u=l+"-"+(e=e.split(".")[1]);return i||(i=n,n=t.Widget),t.isArray(i)&&(i=t.extend.apply(null,[{}].concat(i))),t.expr[":"][u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),(s=new n).options=t.widget.extend({},s.options),t.each(i,(function(e,i){t.isFunction(i)?a[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function r(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=r,e=i.apply(this,arguments),this._super=n,this._superApply=o,e}}():a[e]=i})),o.prototype=t.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||e},a,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),r?(t.each(r._childConstructors,(function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,o,n._proto)})),delete r._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,r,o=i.call(arguments,1),s=0,a=o.length;s<a;s++)for(n in o[s])r=o[s][n],o[s].hasOwnProperty(n)&&void 0!==r&&(t.isPlainObject(r)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],r):t.widget.extend({},r):e[n]=r);return e},t.widget.bridge=function(e,n){var r=n.prototype.widgetFullName||e;t.fn[e]=function(o){var s="string"==typeof o,a=i.call(arguments,1),l=this;return s?this.length||"instance"!==o?this.each((function(){var n,i=t.data(this,r);return"instance"===o?(l=i,!1):i?t.isFunction(i[o])&&"_"!==o.charAt(0)?(n=i[o].apply(i,a))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(a.length&&(o=t.widget.extend.apply(null,[o].concat(a))),this.each((function(){var e=t.data(this,r);e?(e.option(o||{}),e._init&&e._init()):t.data(this,r,new n(o,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,r,o,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},i=e.split("."),e=i.shift(),i.length){for(r=s[e]=t.widget.extend({},this.options[e]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(e=i.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=n}return this._setOptions(s),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,i,r;for(n in e)r=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&r&&r.length&&(i=t(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],i=this;function r(r,o){var s,a;for(a=0;a<r.length;a++)s=i.classesElementLookup[r[a]]||t(),s=e.add?t(t.unique(s.get().concat(e.element.get()))):t(s.not(e.element).get()),i.classesElementLookup[r[a]]=s,n.push(r[a]),o&&e.classes[r[a]]&&n.push(e.classes[r[a]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&r(e.keys.match(/\S+/g)||[],!0),e.extra&&r(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,(function(i,r){-1!==t.inArray(e.target,r)&&(n.classesElementLookup[i]=t(r.not(e.target).get()))}))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof t||null===t,o={extra:r?e:n,keys:r?t:e,element:r?this.element:t,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(e,n,i){var r,o=this;"boolean"!=typeof e&&(i=n,n=e,e=!1),i?(n=r=t(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),t.each(i,(function(i,s){function a(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof s?o[s]:s).apply(o,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||t.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,c=l[2];c?r.on(u,c,a):n.on(u,a)}))},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout((function(){return("string"==typeof t?n[t]:t).apply(n,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,i){var r,o,s=this.options[e];if(i=i||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!(t.isFunction(s)&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(i,r,o){var s;"string"==typeof r&&(r={effect:r});var a=r?!0===r||"number"==typeof r?n:r.effect||n:e;"number"==typeof(r=r||{})&&(r={duration:r}),s=!t.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),s&&t.effects&&t.effects.effect[a]?i[e](r):a!==e&&i[a]?i[a](r.duration,r.easing,o):i.queue((function(n){t(this)[e](),o&&o.call(i[0]),n()}))}})),t.widget})?i.apply(e,r):i)||(t.exports=o)},function(t,e,n){"use strict";n(27);var i=n(147),r=n(2);n(125);var o=new Promise((function(t,e){requirejs(["notebook/js/outputarea"],t,e)})),s=i.OutputModel.extend({defaults:r.extend({},i.OutputModel.prototype.defaults(),{msg_id:"",outputs:[]}),initialize:function(t,e){s.__super__.initialize.apply(this,arguments),this.listenTo(this,"change:msg_id",this.reset_msg_id),this.comm&&this.comm.kernel&&(this.kernel=this.comm.kernel,this.kernel.set_callbacks_for_msg(this.model_id,this.callbacks(),!1));var n=this;o.then((function(t){n.output_area=new t.OutputArea({selector:document.createElement("div"),config:{data:{OutputArea:{}}},prompt_area:!1,events:n.widget_manager.notebook.events,keyboard_manager:n.widget_manager.keyboard_manager}),n.listenTo(n,"new_message",(function(t){n.output_area.handle_output(t),n.set("outputs",n.output_area.toJSON(),{newMessage:!0}),n.save_changes()}),n),n.listenTo(n,"clear_output",(function(t){n.output_area.handle_clear_output(t),n.set("outputs",n.output_area.toJSON(),{newMessage:!0}),n.save_changes()})),n.listenTo(n,"change:outputs",n.setOutputs),n.setOutputs()}))},callbacks:function(){var t=s.__super__.callbacks.apply(this,arguments),e=t.iopub||{},n=r.extend({},e,{output:function(t){this.trigger("new_message",t),e.output&&e.output.apply(this,arguments)}.bind(this),clear_output:function(t){this.trigger("clear_output",t),e.clear_output&&e.clear_output.apply(this,arguments)}.bind(this)});return r.extend({},t,{iopub:n})},reset_msg_id:function(){var t=this.kernel,e=this.previous("msg_id");if(e&&t){var n=t.output_callback_overrides_pop(e);n!==this.model_id&&console.error("Popped wrong message ("+n+" instead of "+this.model_id+") - likely the stack was not maintained in kernel.")}var i=this.get("msg_id");i&&t&&t.output_callback_overrides_push(i,this.model_id)},setOutputs:function(t,e,n){n&&n.newMessage||(this.output_area.clear_output(),this.output_area.fromJSON(JSON.parse(JSON.stringify(this.get("outputs")))))}}),a=i.OutputView.extend({render:function(){var t=this;this.el.classList.add("jupyter-widgets-output-area"),o.then((function(e){t.output_area=new e.OutputArea({selector:t.el,config:{data:{OutputArea:{}}},prompt_area:!1,events:t.model.widget_manager.notebook.events,keyboard_manager:t.model.widget_manager.keyboard_manager}),t.listenTo(t.model,"new_message",(function(e){t.output_area.handle_output(e)}),t),t.listenTo(t.model,"clear_output",(function(e){t.output_area.handle_clear_output(e),t.output_area.element.trigger("clearing",{output_area:this})})),t.listenTo(t.model,"change:outputs",t.setOutputs),t.setOutputs()})),a.__super__.render.apply(this,arguments)},setOutputs:function(t,e,n){n&&n.newMessage||(this.output_area.clear_output(),this.output_area.fromJSON(JSON.parse(JSON.stringify(this.model.get("outputs")))))}});t.exports={OutputView:a,OutputModel:s}},function(t,e,n){"use strict";var i={help:"Download the widget state as a JSON file",icon:"fa-sliders",help_index:"zz",handler:function(){return new Promise((function(t,e){requirejs(["base/js/namespace"],(function(n){var i=n.WidgetManager._managers[0];return i||e("No widget manager"),i.get_state({drop_defaults:!0}).then((function(e){var n="text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e,null," ")),i=document.createElement("a");i.download="widget_state.json",i.href="data:"+n,i.click(),t()}))}))}))}};requirejs(["base/js/namespace"],(function(t){t.notebook.keyboard_manager.actions.register(i,"save-widget-state","widgets")})),t.exports={action:i}},function(t,e,n){"use strict";var i="application/vnd.jupyter.widget-view+json",r=(n(127).version,{help:"Embed interactive widgets",icon:"fa-sliders",help_index:"zz",handler:function(){function t(t){return t.replace(/<(script|\/script|!--)/gi,"\\u003c$1")}return new Promise((function(e,n){requirejs(["base/js/namespace","base/js/dialog","@jupyter-widgets/controls"],(function(e,r,o){var s=e.WidgetManager._managers[0];s||n("No widget manager"),s.get_state({drop_defaults:!0}).then((function(n){var o=["<html><head>","","","\x3c!-- Load require.js. Delete this if your page already loads require.js --\x3e",'<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" crossorigin="anonymous"><\/script>','<script src="https://unpkg.com/@jupyter-widgets/html-manager@*/dist/embed-amd.js" crossorigin="anonymous"><\/script>','<script type="application/vnd.jupyter.widget-state+json">',t(JSON.stringify(n,null," ")),"<\/script>","</head>","<body>",""].join("\n"),s=[];e.notebook.get_cells();e.notebook.get_cells().forEach((function(e){e.output_area&&e.output_area.outputs.forEach((function(e){e.data&&e.data[i]&&n.state[e.data[i].model_id]&&s.push('\n<script type="'+i+'">\n'+t(JSON.stringify(e.data[i],null," "))+"\n<\/script>")}))})),o+=s.join("\n"),o+="\n\n</body>\n</html>\n";var a=document.createElement("textarea");a.setAttribute("readonly","true"),a.style.width="100%",a.style.minHeight="250px",a.value=o;r.modal({show:!0,title:"Embed widgets",body:a,keyboard_manager:e.notebook.keyboard_manager,notebook:e.notebook,buttons:{"Copy to Clipboard":{class:"btn-primary",click:function(t){return a.select(),document.execCommand("copy")}}}})}))}))}))}});requirejs(["base/js/namespace"],(function(t){t.notebook.keyboard_manager.actions.register(r,"embed-interactive-widgets","widgets")})),t.exports={action:r}},function(t,e,n){var i=n(51);t.exports=function(t,e){return i(t,e)}},function(t,e,n){var i=n(13),r=n(117),o=n(14),s=Function.prototype,a=Object.prototype,l=s.toString,u=a.hasOwnProperty,c=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=i(t))return!1;var e=r(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i,r=n(0),o=function(){function t(t){this._root=new i.LeafNode,this.cmp=t}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this._root.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._root.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){var t=i.firstLeaf(this._root);return t.size>0?t.items[0]:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=i.lastLeaf(this._root);return t.size>0?t.items[t.size-1]:void 0},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return i.iterItems(this._root)},t.prototype.retro=function(){return i.retroItems(this._root)},t.prototype.slice=function(t,e){return i.sliceItems(this._root,t,e)},t.prototype.retroSlice=function(t,e){return i.retroSliceItems(this._root,t,e)},t.prototype.at=function(t){return i.itemAt(this._root,t)},t.prototype.has=function(t,e){return i.hasItem(this._root,t,e)},t.prototype.indexOf=function(t,e){return i.indexOf(this._root,t,e)},t.prototype.get=function(t,e){return i.getItem(this._root,t,e)},t.prototype.assign=function(t){this.clear(),this.update(t)},t.prototype.insert=function(t){var e=i.insertItem(this._root,t,this.cmp);return this._root=i.maybeSplitRoot(this._root),e},t.prototype.update=function(t){var e=this;Object(r.e)(t,(function(t){e.insert(t)}))},t.prototype.delete=function(t,e){var n=i.deleteItem(this._root,t,e);return this._root=i.maybeExtractRoot(this._root),n},t.prototype.remove=function(t){var e=i.removeItem(this._root,t);return this._root=i.maybeExtractRoot(this._root),e},t.prototype.clear=function(){i.clear(this._root),this._root=new i.LeafNode},t}();!function(t){t.from=function(e,n){var i=new t(n);return i.assign(e),i}}(o||(o={})),function(t){var e=function(){function t(){this.items=[],this.sizes=[],this.children=[]}return Object.defineProperty(t.prototype,"type",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.sizes[this.sizes.length-1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),t}();t.BranchNode=e;var n=function(){function t(){this.next=null,this.prev=null,this.items=[]}return Object.defineProperty(t.prototype,"type",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),t}();function i(t){for(;0===t.type;)t=t.children[0];return t}function o(t){for(;0===t.type;)t=t.children[t.children.length-1];return t}function s(t){0===t.type?(Object(r.e)(t.children,s),t.children.length=0,t.sizes.length=0,t.items.length=0):(t.items.length=0,t.next=null,t.prev=null)}t.LeafNode=n,t.firstLeaf=i,t.lastLeaf=o,t.iterItems=function(t){var e=i(t);return new u(e,0,-1)},t.retroItems=function(t){var e=o(t);return new c(e,e.size-1,-1)},t.sliceItems=function(t,e,n){e=void 0===e?0:e<0?Math.max(0,e+t.size):Math.min(e,t.size),n=void 0===n?t.size:n<0?Math.max(0,n+t.size):Math.min(n,t.size);var i=Math.max(0,n-e);if(0===i)return Object(r.f)();for(;0===t.type;){var o=d(t.sizes,e);o>0&&(e-=t.sizes[o-1]),t=t.children[o]}return new u(t,e,i)},t.retroSliceItems=function(t,e,n){e=void 0===e?t.size-1:e<0?Math.max(-1,e+t.size):Math.min(e,t.size-1),n=void 0===n?-1:n<0?Math.max(-1,n+t.size):Math.min(n,t.size-1);var i=Math.max(0,e-n);if(0===i)return Object(r.f)();for(;0===t.type;){var o=d(t.sizes,e);o>0&&(e-=t.sizes[o-1]),t=t.children[o]}return new c(t,e,i)},t.itemAt=function(t,e){if(e<0&&(e+=t.size),!(e<0||e>=t.size)){for(;0===t.type;){var n=d(t.sizes,e);n>0&&(e-=t.sizes[n-1]),t=t.children[n]}return t.items[e]}},t.hasItem=function(t,e,n){for(;0===t.type;){var i=h(t.items,e,n);t=t.children[i]}return p(t.items,e,n)>=0},t.indexOf=function(t,e,n){for(var i=0;0===t.type;){var r=h(t.items,e,n);r>0&&(i+=t.sizes[r-1]),t=t.children[r]}var o=p(t.items,e,n);return o>=0?i+o:-i+o},t.getItem=function(t,e,n){for(;0===t.type;){var i=h(t.items,e,n);t=t.children[i]}var r=p(t.items,e,n);return r>=0?t.items[r]:void 0},t.insertItem=function t(e,n,i){if(1===e.type){var o,s=p(e.items,n,i);return s>=0?(o=e.items[s],e.items[s]=n):(o=void 0,r.a.insert(e.items,-s-1,n)),o}var l=h(e.items,n,i),u=e.children[l],c=u.size,d=t(u,n,i),g=u.size;if(e.items[l]=u.items[0],c===g)return d;if(u.width>a){var v=m(u);r.a.insert(e.children,l+1,v),r.a.insert(e.items,l+1,v.items[0])}return f(e,l),d},t.deleteItem=function t(e,n,i){if(1===e.type){var o=p(e.items,n,i);if(o<0)return;return r.a.removeAt(e.items,o)}var s=h(e.items,n,i),a=e.children[s],u=a.size,c=t(a,n,i);return u===a.size||(e.items[s]=a.items[0],a.width<l&&(s=g(e,s)),f(e,s)),c},t.removeItem=function t(e,n){if(n<0&&(n+=e.size),!(n<0||n>=e.size)){if(1===e.type)return r.a.removeAt(e.items,n);var i=d(e.sizes,n);i>0&&(n-=e.sizes[i]);var o=e.children[i],s=t(o,n);return e.items[i]=o.items[0],o.width<l&&(i=g(e,i)),f(e,i),s}},t.clear=s,t.maybeSplitRoot=function(t){if(t.width<=a)return t;var n=new e,i=m(t);return n.sizes[0]=t.size,n.sizes[1]=t.size+i.size,n.children[0]=t,n.children[1]=i,n.items[0]=t.items[0],n.items[1]=i.items[0],n},t.maybeExtractRoot=function(t){if(1===t.type)return t;if(t.children.length>1)return t;var e=t.children.pop();return s(t),e};var a=32,l=a>>1,u=function(){function t(t,e,n){this._node=t,this._index=e,this._count=n}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node,this._index,this._count)},t.prototype.next=function(){if(null!==this._node&&0!==this._count)return this._index>=this._node.size?(this._node=this._node.next,this._index=0,this.next()):(this._count>0&&this._count--,this._node.items[this._index++])},t}(),c=function(){function t(t,e,n){this._node=t,this._index=e,this._count=n}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node,this._index,this._count)},t.prototype.next=function(){if(null!==this._node&&0!==this._count)return this._index>=this._node.size&&(this._index=this._node.size-1),this._index<0?(this._node=this._node.prev,this._index=this._node?this._node.size-1:-1,this.next()):(this._count>0&&this._count--,this._node.items[this._index--])},t}();function d(t,e){for(var n=t.length,i=0;i<n;++i)if(t[i]>e)return i;return n-1}function h(t,e,n){for(var i=t.length,r=1;r<i;++r)if(n(t[r],e)>0)return r-1;return i-1}function p(t,e,n){for(var i=t.length,r=0;r<i;++r){var o=n(t[r],e);if(0===o)return r;if(o>0)return-r-1}return-i-1}function f(t,e){for(var n=t.sizes,i=t.children,r=e>0?n[e-1]:0,o=i.length;e<o;++e)r=n[e]=r+i[e].size;n.length=i.length}function m(t){if(1===t.type){for(var i=new n,r=t.items,o=i.items,s=l,a=r.length;s<a;++s)o.push(r[s]);return r.length=l,t.next&&(t.next.prev=i),i.next=t.next,i.prev=t,t.next=i,i}var u=new e,c=t.children,d=u.children;for(s=l,a=c.length;s<a;++s)d.push(c[s]);c.length=l;var h=t.items,p=u.items;for(s=l,a=h.length;s<a;++s)p.push(h[s]);return h.length=l,f(t,l),f(u,0),u}function g(t,e){var n,i,o,a,u,c,d=t.children[e],h=0===e?t.children[e+1]:t.children[e-1],p=0===e,m=1===d.type,g=h.width>l;if(m&&g&&p){var v=h;return(y=d).items.push(v.items.shift()),t.items[e+1]=v.items[0],e}if(m&&g&&!p){v=h;return(y=d).items.unshift(v.items.pop()),t.items[e]=y.items[0],e-1}if(m&&!g&&p){var y=d;return(n=(v=h).items).unshift.apply(n,y.items),r.a.removeAt(t.children,e),r.a.removeAt(t.items,e+1),y.prev&&(y.prev.next=v),v.prev=y.prev,s(y),e}if(m&&!g&&!p){y=d;return(i=(v=h).items).push.apply(i,y.items),r.a.removeAt(t.children,e),r.a.removeAt(t.items,e),y.next&&(y.next.prev=v),v.next=y.next,s(y),e-1}if(!m&&g&&p){v=h;return(y=d).children.push(v.children.shift()),y.items.push(v.items.shift()),t.items[e+1]=v.items[0],f(y,y.width-1),f(v,0),e}if(!m&&g&&!p){v=h;return(y=d).children.unshift(v.children.pop()),y.items.unshift(v.items.pop()),t.items[e]=y.items[0],f(y,0),f(v,v.width-1),e-1}if(!m&&!g&&p){y=d;return(o=(v=h).children).unshift.apply(o,y.children),(a=v.items).unshift.apply(a,y.items),r.a.removeAt(t.children,e),r.a.removeAt(t.items,e+1),f(v,0),y.children.length=0,s(y),e}if(!m&&!g&&!p){y=d;return(u=(v=h).children).push.apply(u,y.children),(c=v.items).push.apply(c,y.items),r.a.removeAt(t.children,e),r.a.removeAt(t.items,e),f(v,0),y.children.length=0,s(y),e-1}throw"unreachable"}}(i||(i={}));var s,a=function(){function t(){this._first=null,this._last=null,this._size=0}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._first?this._first.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._last?this._last.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstNode",{get:function(){return this._first},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastNode",{get:function(){return this._last},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return new t.ForwardValueIterator(this._first)},t.prototype.retro=function(){return new t.RetroValueIterator(this._last)},t.prototype.nodes=function(){return new t.ForwardNodeIterator(this._first)},t.prototype.retroNodes=function(){return new t.RetroNodeIterator(this._last)},t.prototype.assign=function(t){var e=this;this.clear(),Object(r.e)(t,(function(t){e.addLast(t)}))},t.prototype.push=function(t){this.addLast(t)},t.prototype.pop=function(){return this.removeLast()},t.prototype.shift=function(t){this.addFirst(t)},t.prototype.unshift=function(){return this.removeFirst()},t.prototype.addFirst=function(t){var e=new s.LinkedListNode(this,t);return this._first?(e.next=this._first,this._first.prev=e,this._first=e):(this._first=e,this._last=e),this._size++,e},t.prototype.addLast=function(t){var e=new s.LinkedListNode(this,t);return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._first=e,this._last=e),this._size++,e},t.prototype.insertBefore=function(t,e){if(!e||e===this._first)return this.addFirst(t);if(!(e instanceof s.LinkedListNode)||e.list!==this)throw new Error("Reference node is not owned by the list.");var n=new s.LinkedListNode(this,t),i=e,r=i.prev;return n.next=i,n.prev=r,i.prev=n,r.next=n,this._size++,n},t.prototype.insertAfter=function(t,e){if(!e||e===this._last)return this.addLast(t);if(!(e instanceof s.LinkedListNode)||e.list!==this)throw new Error("Reference node is not owned by the list.");var n=new s.LinkedListNode(this,t),i=e,r=i.next;return n.next=r,n.prev=i,i.next=n,r.prev=n,this._size++,n},t.prototype.removeFirst=function(){var t=this._first;if(t)return t===this._last?(this._first=null,this._last=null):(this._first=t.next,this._first.prev=null),t.list=null,t.next=null,t.prev=null,this._size--,t.value},t.prototype.removeLast=function(){var t=this._last;if(t)return t===this._first?(this._first=null,this._last=null):(this._last=t.prev,this._last.next=null),t.list=null,t.next=null,t.prev=null,this._size--,t.value},t.prototype.removeNode=function(t){if(!(t instanceof s.LinkedListNode)||t.list!==this)throw new Error("Node is not owned by the list.");var e=t;e===this._first&&e===this._last?(this._first=null,this._last=null):e===this._first?(this._first=e.next,this._first.prev=null):e===this._last?(this._last=e.prev,this._last.next=null):(e.next.prev=e.prev,e.prev.next=e.next),e.list=null,e.next=null,e.prev=null,this._size--},t.prototype.clear=function(){for(var t=this._first;t;){var e=t.next;t.list=null,t.prev=null,t.next=null,t=e}this._first=null,this._last=null,this._size=0},t}();!function(t){t.from=function(e){var n=new t;return n.assign(e),n};var e=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.next,t.value}},t}();t.ForwardValueIterator=e;var n=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.prev,t.value}},t}();t.RetroValueIterator=n;var i=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.next,t}},t}();t.ForwardNodeIterator=i;var r=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.prev,t}},t}();t.RetroNodeIterator=r}(a||(a={})),function(t){var e=function(t,e){this.list=null,this.next=null,this.prev=null,this.list=t,this.value=e};t.LinkedListNode=e}(s||(s={}))},,function(t,e,n){"use strict";window.requirejs.config({map:{"*":{"@jupyter-widgets/controls":"nbextensions/jupyter-js-widgets/extension","@jupyter-widgets/base":"nbextensions/jupyter-js-widgets/extension","@jupyter-widgets/output":"nbextensions/jupyter-js-widgets/extension"}}});var i="application/vnd.jupyter.widget-view+json",r=n(49);n(42),n(43);var o=n(6),s=Jupyter.version.split("."),a=parseInt(s[0]),l=parseInt(s[1]),u=parseInt(s[2]),c=a>6||6==a&&l>4||6==a&&4==l&&u>4,d=function(t,e){if(e.comm_manager&&void 0===e.widget_manager){t.WidgetManager&&t.WidgetManager._managers[0].clear_state();var n=new r.WidgetManager(e.comm_manager,t.notebook);t.WidgetManager=r.WidgetManager,e.widget_manager=n}};function h(t,e,n){t.notebook&&t.notebook.kernel&&d(t,t.notebook.kernel),e.on("kernel_created.Kernel kernel_created.Session",(function(e,n){d(t,n.kernel)})),e.on("kernel_killed.Session kernel_killed.Kernel kernel_restarting.Kernel",(function(t,e){var n=e.kernel;n&&n.widget_manager&&n.widget_manager.disconnect()}));var r={},s=function(t,e){var n=e.cell?e.cell.output_area:e.output_area,i=n?n._jupyterWidgetViews:void 0;i&&(i.forEach((function(t){var e=r[t];e.el.style.display="none",document.body.appendChild(e.el),e.remove(),delete r[t]})),n._jupyterWidgetViews=[])};e.on("delete.Cell",s),t.notebook.container.on("clearing",".output",s),e.on("execute.CodeCell",s),e.on("clear_output.CodeCell",s);n.OutputArea.prototype.register_mime_type(i,(function(e,n,s){var a=this.create_output_subarea(n,"jupyter-widgets-view",i);return this.keyboard_manager.register_events(a),function(e,n,i){var s=t.notebook&&t.notebook.kernel&&t.notebook.kernel.widget_manager;if(s)if(""!==n.model_id){var a=s.get_model(n.model_id);if(a)a.then((function(t){return s.display_model(void 0,t,{output:e})})).then((function(t){var s=t.cid;e._jupyterWidgetViews=e._jupyterWidgetViews||[],e._jupyterWidgetViews.push(s),r[s]=t,o.Widget.attach(t.pWidget,i),t.once("remove",()=>{n.model_id="",i.style.display="none"})}));else{l="A Jupyter widget could not be displayed because the widget state could not be found. This could happen if the kernel storing the widget is no longer available, or if the widget state was not saved in the notebook. You may be able to create the widget by running the appropriate cells.";if(c)throw new Error(l);i.textContent=l}}else{if(c)throw new Error("Jupyter Widgets model not found");i.style.display="none"}else{var l="Error rendering Jupyter widget: missing widget manager";if(c)throw new Error(l);i.textContent=l}}(this,e,a[0]),s.append(a),a}),{safe:!1,index:0})}var p=n(2);t.exports=p.extend({load_ipython_extension:function(){return new Promise((function(t){requirejs(["base/js/namespace","base/js/events","notebook/js/outputarea"],(function(e,i,r){n(128),n(139),n(141),h(e,i,r),t()}))}))}},n(27),n(3),n(41))},function(t,e,n){"use strict";n.r(e),n.d(e,"WidgetManager",(function(){return c}));var i=n(2),r=n(3),o=n(27),s=n(41),a=n(42),l=n(43);function u(t,e,n,i,r,o,s){return new Promise((function(a){requirejs(["services/kernels/comm"],(function(l){l=new l.Comm(e,o);t.register_comm(l);var u={comm_id:o,target_name:e,data:n||{}};l.kernel.send_shell_message("comm_open",u,i,r,s),a(l)}))}))}class c extends r.ManagerBase{constructor(t,e){super(),c._managers.unshift(this),this.notebook=e,this.keyboard_manager=e.keyboard_manager,this.comm_manager=t;var n=e.metadata.widgets;this.comm_manager.register_target(this.comm_target_name,i.bind(this.handle_comm_open,this));var r=this;this._loadFromKernel().then((function(){if(n&&n["application/vnd.jupyter.widget-state+json"]){var t=e.metadata.widgets["application/vnd.jupyter.widget-state+json"];return t=r.filterExistingModelState(t),r.set_state(t)}})).then((function(){r.notebook.get_cells().forEach((function(t){t.output_area&&t.output_area.outputs.find((function(t){return t.data&&t.data["application/vnd.jupyter.widget-view+json"]}))&&r.notebook.render_cell_output(t)}))})),this._init_actions(),this._init_menu()}loadClass(t,e,n){return"@jupyter-widgets/controls"===e?Promise.resolve(o[t]):"@jupyter-widgets/base"===e?Promise.resolve(r[t]):"@jupyter-widgets/output"==e?Promise.resolve(s[t]):new Promise((function(t,n){window.require([e],t,n)})).then((function(n){return n[t]?n[t]:Promise.reject("Class "+t+" not found in module "+e)}))}_init_actions(){Jupyter.notification_area.widget("widgets");this.saveWidgetsAction={handler:function(){this.get_state({drop_defaults:!0}).then((function(t){Jupyter.notebook.metadata.widgets={"application/vnd.jupyter.widget-state+json":t},Jupyter.menubar.actions.get("jupyter-notebook:save-notebook").handler({notebook:Jupyter.notebook})}))}.bind(this),icon:"fa-truck",help:"Save the notebook with the widget state information for static rendering"},Jupyter.menubar.actions.register(this.saveWidgetsAction,"save-with-widgets","widgets"),this.clearWidgetsAction={handler:function(){delete Jupyter.notebook.metadata.widgets,Jupyter.menubar.actions.get("jupyter-notebook:save-notebook").handler({notebook:Jupyter.notebook})},help:"Clear the widget state information from the notebook"},Jupyter.menubar.actions.register(this.saveWidgetsAction,"save-clear-widgets","widgets")}_init_menu(){var t=document.createElement("li");t.classList.add("dropdown");var e=document.querySelector("#help_menu").parentElement;e.parentElement.insertBefore(t,e);var n=document.createElement("a");n.setAttribute("href","#"),n.setAttribute("data-toggle","dropdown"),n.classList.add("dropdown-toggle"),n.innerText="Widgets",t.appendChild(n);var i=document.createElement("ul");i.setAttribute("id","widget-submenu"),i.classList.add("dropdown-menu"),t.appendChild(i);var r=document.createElement("ul");r.classList.add("divider"),i.appendChild(this._createMenuItem("Save Notebook Widget State",this.saveWidgetsAction)),i.appendChild(this._createMenuItem("Clear Notebook Widget State",this.clearWidgetsAction)),i.appendChild(r),i.appendChild(this._createMenuItem("Download Widget State",a.action)),i.appendChild(this._createMenuItem("Embed Widgets",l.action))}_createMenuItem(t,e){var n=document.createElement("li");n.setAttribute("title",e.help);var i=document.createElement("a");return i.setAttribute("href","#"),i.innerText=t,n.appendChild(i),n.onclick=e.handler,n}display_view(t,e,n){return Promise.resolve(e)}_create_comm(t,e,n,i,r){var o=this;return this._get_connected_kernel().then((function(s){return n||i?function(t,e,n,i,r,o,s){var a=t.new_comm.length<6;return a?u.apply(null,arguments):t.new_comm.apply(t,Array.prototype.slice.call(arguments,1))}(s.comm_manager,t,n,o.callbacks(),i,e,r):new Promise((function(n){requirejs(["services/kernels/comm"],(function(i){var r=new i.Comm(t,e);s.comm_manager.register_comm(r),n(r)}))}))}))}_get_comm_info(){return this._get_connected_kernel().then((function(t){return new Promise((function(e,n){t.comm_info("jupyter.widget",(function(t){e(t.content.comms)}))}))}))}_get_connected_kernel(){var t=this;return new Promise((function(e,n){t.comm_manager&&t.comm_manager.kernel&&t.comm_manager.kernel.is_connected()?e(t.comm_manager.kernel):t.notebook.events.on("kernel_connected.Kernel",(function(t,n){e(n.kernel)}))}))}setViewOptions(t){return!(t=t||{}).output&&t.parent&&(t.output=t.parent.options.output),t.output&&(t.iopub_callbacks={output:t.output.handle_output.bind(t.output),clear_output:t.output.handle_clear_output.bind(t.output)}),t}callbacks(t){var e=r.ManagerBase.prototype.callbacks.call(this,t);return t&&t.options.iopub_callbacks&&(e.iopub=t.options.iopub_callbacks),e}}c._managers=[]},function(t,e){},function(t,e,n){var i=n(52),r=n(14);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!r(e)&&!r(n)?e!=e&&n!=n:i(e,n,o,s,t,a))}},function(t,e,n){var i=n(53),r=n(35),o=n(87),s=n(91),a=n(112),l=n(25),u=n(36),c=n(37),d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,f,m){var g=l(t),v=l(e),y=g?"[object Array]":a(t),b=v?"[object Array]":a(e),_=(y="[object Arguments]"==y?d:y)==d,w=(b="[object Arguments]"==b?d:b)==d,x=y==b;if(x&&u(t)){if(!u(e))return!1;g=!0,_=!1}if(x&&!_)return m||(m=new i),g||c(t)?r(t,e,n,p,f,m):o(t,e,y,n,p,f,m);if(!(1&n)){var C=_&&h.call(t,"__wrapped__"),j=w&&h.call(e,"__wrapped__");if(C||j){var E=C?t.value():t,T=j?e.value():e;return m||(m=new i),f(E,T,n,p,m)}}return!!x&&(m||(m=new i),s(t,e,n,p,f,m))}},function(t,e,n){var i=n(16),r=n(59),o=n(60),s=n(61),a=n(62),l=n(63);function u(t){var e=this.__data__=new i(t);this.size=e.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=l,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(17),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},function(t,e,n){var i=n(17);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(17);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(17);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var i=n(16);t.exports=function(){this.__data__=new i,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(16),r=n(23),o=n(34);t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var i=n(30),r=n(67),o=n(32),s=n(33),a=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||r(t))&&(i(t)?h:a).test(s(t))}},function(t,e,n){var i=n(24),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(t){}var r=s.call(t);return i&&(e?t[a]=n:delete t[a]),r}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var i,r=n(68),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var i=n(10)["__core-js_shared__"];t.exports=i},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var i=n(71),r=n(16),o=n(23);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},function(t,e,n){var i=n(72),r=n(73),o=n(74),s=n(75),a=n(76);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},function(t,e,n){var i=n(18);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var i=n(18),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},function(t,e,n){var i=n(18),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:r.call(e,t)}},function(t,e,n){var i=n(18);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var i=n(19);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var i=n(19);t.exports=function(t){return i(this,t).get(t)}},function(t,e,n){var i=n(19);t.exports=function(t){return i(this,t).has(t)}},function(t,e,n){var i=n(19);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},function(t,e,n){var i=n(34),r=n(83),o=n(84);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=r,s.prototype.has=o,t.exports=s},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var i=n(24),r=n(88),o=n(29),s=n(35),a=n(89),l=n(90),u=i?i.prototype:void 0,c=u?u.valueOf:void 0;t.exports=function(t,e,n,i,u,d,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new r(t),new r(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=a;case"[object Set]":var f=1&i;if(p||(p=l),t.size!=e.size&&!f)return!1;var m=h.get(t);if(m)return m==e;i|=2,h.set(t,e);var g=s(p(t),p(e),i,u,d,h);return h.delete(t),g;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},function(t,e,n){var i=n(10).Uint8Array;t.exports=i},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var i=n(92),r=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var l=1&n,u=i(t),c=u.length;if(c!=i(e).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in e:r.call(e,h)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var f=!0;a.set(t,e),a.set(e,t);for(var m=l;++d<c;){var g=t[h=u[d]],v=e[h];if(o)var y=l?o(v,g,h,e,t,a):o(g,v,h,t,e,a);if(!(void 0===y?g===v||s(g,v,n,o,a):y)){f=!1;break}m||(m="constructor"==h)}if(f&&!m){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(f=!1)}return a.delete(t),a.delete(e),f}},function(t,e,n){var i=n(93),r=n(95),o=n(98);t.exports=function(t){return i(t,o,r)}},function(t,e,n){var i=n(94),r=n(25);t.exports=function(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}},function(t,e,n){var i=n(96),r=n(97),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),i(s(t),(function(e){return o.call(t,e)})))}:r;t.exports=a},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var i=n(99),r=n(108),o=n(111);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e,n){var i=n(100),r=n(101),o=n(25),s=n(36),a=n(104),l=n(37),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),c=!n&&r(t),d=!n&&!c&&s(t),h=!n&&!c&&!d&&l(t),p=n||c||d||h,f=p?i(t.length,String):[],m=f.length;for(var g in t)!e&&!u.call(t,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||f.push(g);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},function(t,e,n){var i=n(102),r=n(14),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(t){return r(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},function(t,e,n){var i=n(13),r=n(14);t.exports=function(t){return r(t)&&"[object Arguments]"==i(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var i=n(13),r=n(38),o=n(14),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&r(t.length)&&!!s[i(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var i=n(31),r=e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===r&&i.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n(22)(t))},function(t,e,n){var i=n(109),r=n(110),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(39)(Object.keys,Object);t.exports=i},function(t,e,n){var i=n(30),r=n(38);t.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},function(t,e,n){var i=n(113),r=n(23),o=n(114),s=n(115),a=n(116),l=n(13),u=n(33),c=u(i),d=u(r),h=u(o),p=u(s),f=u(a),m=l;(i&&"[object DataView]"!=m(new i(new ArrayBuffer(1)))||r&&"[object Map]"!=m(new r)||o&&"[object Promise]"!=m(o.resolve())||s&&"[object Set]"!=m(new s)||a&&"[object WeakMap]"!=m(new a))&&(m=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,i=n?u(n):"";if(i)switch(i){case c:return"[object DataView]";case d:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=m},function(t,e,n){var i=n(11)(n(10),"DataView");t.exports=i},function(t,e,n){var i=n(11)(n(10),"Promise");t.exports=i},function(t,e,n){var i=n(11)(n(10),"Set");t.exports=i},function(t,e,n){var i=n(11)(n(10),"WeakMap");t.exports=i},function(t,e,n){var i=n(39)(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,s,a,l=1,u={},c=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){f(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){f(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(f,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&f(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(s+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return u[l]=r,i(l),l++},h.clearImmediate=p}function p(t){delete u[t]}function f(t){if(c)setTimeout(f,0,t);else{var e=u[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),c=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(12),n(119))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var l,u=[],c=!1,d=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var t=a(h);c=!0;for(var e=u.length;e;){for(l=u,u=[];++d<e;)l&&l[d].run();d=-1,e=u.length}l=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new f(t,e)),1!==u.length||c||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){var i,r,o;
/*!
* jQuery UI Slider 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/r=[n(8),n(121),n(123),n(15),n(40)],void 0===(o="function"==typeof(i=function(t){return t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,i=this.options,r=this.element.find(".ui-slider-handle"),o=[];for(n=i.values&&i.values.length||1,r.length>n&&(r.slice(n).remove(),r=r.slice(0,n)),e=r.length;e<n;e++)o.push("<span tabindex='0'></span>");this.handles=r.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var n,i,r,o,s,a,l,u=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(n),r=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var n=Math.abs(i-u.values(e));(r>n||r===n&&(e===u._lastChangedValue||u.values(e)===c.min))&&(r=n,o=t(this),s=e)})),!1!==this._start(e,s)&&(this._mouseSliding=!0,this._handleIndex=s,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),a=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-a.left-o.width()/2,top:e.pageY-a.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,s,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,i,r,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(i=n/e)>1&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),r=this._valueMax()-this._valueMin(),o=this._valueMin()+i*r,this._trimAlignValue(o)},_uiHash:function(t,e,n){var i={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==e?e:this.values(t),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var i,r=this.value(),o=this.values();this._hasMultipleValues()&&(i=this.values(e?0:1),r=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(i,n):Math.max(i,n)),o[e]=n),n!==r&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var i,r,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,r=arguments[0],o=0;o<i.length;o+=1)i[o]=this._trimAlignValue(r[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var i,r=0;switch("range"===e&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(r=this.options.values.length),this._super(e,n),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=r-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,n,i;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),i=0;i<n.length;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,i=t-n;return 2*Math.abs(n)>=e&&(i+=n>0?e:-e),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,i,r,o,s=this.options.range,a=this.options,l=this,u=!this._animateOff&&a.animate,c={};this._hasMultipleValues()?this.handles.each((function(i){n=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[u?"animate":"css"](c,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,1)[u?"animate":"css"]({left:n+"%"},a.animate),1===i&&l.range[u?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:a.animate})):(0===i&&l.range.stop(1,1)[u?"animate":"css"]({bottom:n+"%"},a.animate),1===i&&l.range[u?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:a.animate}))),e=n})):(i=this.value(),r=this._valueMin(),o=this._valueMax(),n=o!==r?(i-r)/(o-r)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[u?"animate":"css"](c,a.animate),"min"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:n+"%"},a.animate),"max"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-n+"%"},a.animate),"min"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:n+"%"},a.animate),"max"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-n+"%"},a.animate))},_handleEvents:{keydown:function(e){var n,i,r,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,o)))return}switch(r=this.options.step,n=i=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:i=this._valueMin();break;case t.ui.keyCode.END:i=this._valueMax();break;case t.ui.keyCode.PAGE_UP:i=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;i=this._trimAlignValue(n+r);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;i=this._trimAlignValue(n-r)}this._slide(e,o,i)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),this._removeClass(t(e.target),null,"ui-state-active"))}}})})?i.apply(e,r):i)||(t.exports=o)},function(t,e,n){var i,r,o;
/*!
* jQuery UI Mouse 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/r=[n(8),n(122),n(15),n(40)],void 0===(o="function"==typeof(i=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var i=this,r=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&t(n.target).closest(this.options.cancel).length;return!(r&&!o&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?i.apply(e,r):i)||(t.exports=o)},function(t,e,n){var i,r,o;r=[n(8),n(15)],void 0===(o="function"==typeof(i=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?i.apply(e,r):i)||(t.exports=o)},function(t,e,n){var i,r,o;
/*!
* jQuery UI Keycode 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/r=[n(8),n(15)],void 0===(o="function"==typeof(i=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?i.apply(e,r):i)||(t.exports=o)},function(t){t.exports=JSON.parse('{"name":"@jupyter-widgets/controls","version":"3.1.0-rc.0","description":"Jupyter interactive widgets","repository":{"type":"git","url":"https://github.com/jupyter-widgets/ipywidgets.git"},"license":"BSD-3-Clause","author":"Project Jupyter","main":"lib/index.js","typings":"lib/index.d.ts","files":["lib/**/*.d.ts","lib/**/*.js","css/*.css","dist/"],"scripts":{"build":"npm run build:src && npm run build:css","build:css":"postcss --use postcss-import --use postcss-cssnext -o css/widgets.built.css css/widgets.css","build:src":"tsc","build:test":"tsc --project test && webpack --config test/webpack.conf.js","clean":"npm run clean:src","clean:src":"rimraf lib && rimraf tsconfig.tsbuildinfo","lint":"tslint --project tslint.json --format stylish","prepublish":"npm run clean && npm run build","test":"npm run test:unit","test:coverage":"npm run build:test && webpack --config test/webpack-cov.conf.js && karma start test/karma-cov.conf.js","test:unit":"npm run test:unit:firefox && npm run test:unit:chrome","test:unit:chrome":"npm run test:unit:default -- --browsers=Chrome","test:unit:default":"npm run build:test && karma start test/karma.conf.js --log-level debug","test:unit:firefox":"npm run test:unit:default -- --browsers=Firefox","test:unit:firefox:headless":"npm run test:unit:default -- --browsers=FirefoxHeadless","test:unit:ie":"npm run test:unit:default -- --browsers=IE"},"dependencies":{"@jupyter-widgets/base":"^4.1.0-rc.0","@lumino/algorithm":"^1.1.0","@lumino/domutils":"^1.1.0","@lumino/messaging":"^1.2.1","@lumino/signaling":"^1.2.0","@lumino/widgets":"^1.3.0","d3-format":"^1.3.0","jquery":"^3.1.1","jquery-ui":"^1.12.1","underscore":"^1.8.3"},"devDependencies":{"@jupyterlab/services":"^6.0.0","@types/d3-format":"^1.3.1","@types/expect.js":"^0.3.29","@types/mathjax":"^0.0.35","@types/mocha":"^5.2.7","@types/node":"^12.0.10","chai":"^4.0.0","css-loader":"^3.4.0","expect.js":"^0.3.1","file-loader":"^5.0.2","istanbul-instrumenter-loader":"^3.0.1","karma":"^4.1.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.2","karma-firefox-launcher":"^1.1.0","karma-ie-launcher":"^1.0.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","karma-webpack":"^4.0.2","mocha":"^6.1.4","npm-run-all":"^4.1.5","postcss-cli":"^6.1.2","postcss-cssnext":"^3.1.0","postcss-import":"^12.0.1","postcss-loader":"^3.0.0","rimraf":"^2.6.1","sinon":"^7.3.2","sinon-chai":"^3.3.0","style-loader":"^1.1.2","tslint":"^5.20.1","typescript":"~3.7.4","url-loader":"^3.0.0","webpack":"^4.41.5"}}')},function(t,e,n){var i=n(20),r=n(126);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1},s=(i(t.i,r,o),r.locals?r.locals:{});t.exports=s},function(t,e,n){(e=n(9)(!1)).push([t.i,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/* Override the correction for the prompt area in https://github.com/jupyter/notebook/blob/dd41d9fd5c4f698bd7468612d877828a7eeb0e7a/IPython/html/static/notebook/less/outputarea.less#L110 */\n.jupyter-widgets-output-area div.output_subarea {\n max-width: 100%;\n}\n\n/* Work-around for the bug fixed in https://github.com/jupyter/notebook/pull/2961 */\n.jupyter-widgets-output-area > .out_prompt_overlay {\n display: none;\n}\n",""]),t.exports=e},function(t){t.exports=JSON.parse('{"name":"@jupyter-widgets/html-manager","version":"0.20.1-rc.0","description":"Standalone package for rendering Jupyter widgets outside notebooks","homepage":"https://github.com/jupyter-widgets/ipywidgets#readme","bugs":{"url":"https://github.com/jupyter-widgets/ipywidgets/issues"},"repository":{"type":"git","url":"https://github.com/jupyter-widgets/ipywidgets.git"},"license":"BSD-3-Clause","author":"Jupyter Project","main":"lib/index.js","typings":"lib/index.d.ts","files":["lib/**/*.d.ts","lib/**/*.js","dist/","css/*.css"],"scripts":{"build":"npm run build:src && webpack && npm run build:embed-amd","build:embed-amd":"node scripts/concat-amd-build.js && rimraf dist/amd","build:src":"tsc","build:test":"tsc --project test && webpack --config test/webpack.conf.js","clean":"rimraf lib && rimraf tsconfig.tsbuildinfo && rimraf dist","lint":"tslint --project tslint.json --format stylish","prepublish":"npm run clean && npm run build","test":"npm run test:unit","test:unit":"npm run test:unit:firefox && npm run test:unit:chrome","test:unit:chrome":"npm run test:unit:default -- --browsers=Chrome","test:unit:default":"npm run build:test && karma start test/karma.conf.js --log-level debug --browsers=Firefox","test:unit:firefox":"npm run test:unit:default -- --browsers=Firefox","test:unit:firefox:headless":"npm run test:unit:default -- --browsers=FirefoxHeadless"},"dependencies":{"@jupyter-widgets/base":"^4.1.0-rc.0","@jupyter-widgets/controls":"^3.1.0-rc.0","@jupyter-widgets/output":"^4.1.0-rc.0","@jupyter-widgets/schema":"^0.4.1-rc.0","@jupyterlab/outputarea":"^3.0.0","@jupyterlab/rendermime":"^3.0.0","@jupyterlab/rendermime-interfaces":"^3.0.0","@lumino/widgets":"^1.6.0","ajv":"^6.10.0","font-awesome":"^4.7.0","jquery":"^3.1.1"},"devDependencies":{"@types/mocha":"^5.2.7","@types/requirejs":"^2.1.31","chai":"^4.0.0","css-loader":"^3.4.0","file-loader":"^5.0.2","karma":"^4.1.0","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.1.0","karma-ie-launcher":"^1.0.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.5","mocha":"^6.1.4","rimraf":"^2.6.1","style-loader":"^1.1.2","tslint":"^5.20.1","typescript":"~3.7.4","url-loader":"^3.0.0","webpack":"^4.41.5","webpack-cli":"^3.3.4"}}')},function(t,e,n){var i=n(20),r=n(129);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1},s=(i(t.i,r,o),r.locals?r.locals:{});t.exports=s},function(t,e,n){var i=n(9),r=n(130),o=n(131),s=n(132),a=n(133),l=n(134),u=n(135),c=n(136),d=n(137),h=n(138);(e=i(!1)).i(r),e.i(o),e.i(s),e.i(a),e.i(l),e.i(u),e.i(c),e.i(d),e.i(h),e.push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n",""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n\n\n/* <DEPRECATED> */ .p-Widget, /* </DEPRECATED> */\n.lm-Widget {\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n cursor: default;\n}\n\n\n/* <DEPRECATED> */ .p-Widget.p-mod-hidden, /* </DEPRECATED> */\n.lm-Widget.lm-mod-hidden {\n display: none !important;\n}\n",""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,'/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n\n\n/* <DEPRECATED> */ .p-CommandPalette, /* </DEPRECATED> */\n.lm-CommandPalette {\n display: flex;\n flex-direction: column;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n\n/* <DEPRECATED> */ .p-CommandPalette-search, /* </DEPRECATED> */\n.lm-CommandPalette-search {\n flex: 0 0 auto;\n}\n\n\n/* <DEPRECATED> */ .p-CommandPalette-content, /* </DEPRECATED> */\n.lm-CommandPalette-content {\n flex: 1 1 auto;\n margin: 0;\n padding: 0;\n min-height: 0;\n overflow: auto;\n list-style-type: none;\n}\n\n\n/* <DEPRECATED> */ .p-CommandPalette-header, /* </DEPRECATED> */\n.lm-CommandPalette-header {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n\n/* <DEPRECATED> */ .p-CommandPalette-item, /* </DEPRECATED> */\n.lm-CommandPalette-item {\n display: flex;\n flex-direction: row;\n}\n\n\n/* <DEPRECATED> */ .p-CommandPalette-itemIcon, /* </DEPRECATED> */\n.lm-CommandPalette-itemIcon {\n flex: 0 0 auto;\n}\n\n\n/* <DEPRECATED> */ .p-CommandPalette-itemContent, /* </DEPRECATED> */\n.lm-CommandPalette-itemContent {\n flex: 1 1 auto;\n overflow: hidden;\n}\n\n\n/* <DEPRECATED> */ .p-CommandPalette-itemShortcut, /* </DEPRECATED> */\n.lm-CommandPalette-itemShortcut {\n flex: 0 0 auto;\n}\n\n\n/* <DEPRECATED> */ .p-CommandPalette-itemLabel, /* </DEPRECATED> */\n.lm-CommandPalette-itemLabel {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.lm-close-icon {\n\tborder:1px solid transparent;\n background-color: transparent;\n position: absolute;\n\tz-index:1;\n\tright:3%;\n\ttop: 0;\n\tbottom: 0;\n\tmargin: auto;\n\tpadding: 7px 0;\n\tdisplay: none;\n\tvertical-align: middle;\n outline: 0;\n cursor: pointer;\n}\n.lm-close-icon:after {\n\tcontent: "X";\n\tdisplay: block;\n\twidth: 15px;\n\theight: 15px;\n\ttext-align: center;\n\tcolor:#000;\n\tfont-weight: normal;\n\tfont-size: 12px;\n\tcursor: pointer;\n}\n',""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n\n\n/* <DEPRECATED> */ .p-DockPanel, /* </DEPRECATED> */\n.lm-DockPanel {\n z-index: 0;\n}\n\n\n/* <DEPRECATED> */ .p-DockPanel-widget, /* </DEPRECATED> */\n.lm-DockPanel-widget {\n z-index: 0;\n}\n\n\n/* <DEPRECATED> */ .p-DockPanel-tabBar, /* </DEPRECATED> */\n.lm-DockPanel-tabBar {\n z-index: 1;\n}\n\n\n/* <DEPRECATED> */ .p-DockPanel-handle, /* </DEPRECATED> */\n.lm-DockPanel-handle {\n z-index: 2;\n}\n\n\n/* <DEPRECATED> */ .p-DockPanel-handle.p-mod-hidden, /* </DEPRECATED> */\n.lm-DockPanel-handle.lm-mod-hidden {\n display: none !important;\n}\n\n\n/* <DEPRECATED> */ .p-DockPanel-handle:after, /* </DEPRECATED> */\n.lm-DockPanel-handle:after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: '';\n}\n\n\n/* <DEPRECATED> */\n.p-DockPanel-handle[data-orientation='horizontal'],\n/* </DEPRECATED> */\n.lm-DockPanel-handle[data-orientation='horizontal'] {\n cursor: ew-resize;\n}\n\n\n/* <DEPRECATED> */\n.p-DockPanel-handle[data-orientation='vertical'],\n/* </DEPRECATED> */\n.lm-DockPanel-handle[data-orientation='vertical'] {\n cursor: ns-resize;\n}\n\n\n/* <DEPRECATED> */\n.p-DockPanel-handle[data-orientation='horizontal']:after,\n/* </DEPRECATED> */\n.lm-DockPanel-handle[data-orientation='horizontal']:after {\n left: 50%;\n min-width: 8px;\n transform: translateX(-50%);\n}\n\n\n/* <DEPRECATED> */\n.p-DockPanel-handle[data-orientation='vertical']:after,\n/* </DEPRECATED> */\n.lm-DockPanel-handle[data-orientation='vertical']:after {\n top: 50%;\n min-height: 8px;\n transform: translateY(-50%);\n}\n\n\n/* <DEPRECATED> */ .p-DockPanel-overlay, /* </DEPRECATED> */\n.lm-DockPanel-overlay {\n z-index: 3;\n box-sizing: border-box;\n pointer-events: none;\n}\n\n\n/* <DEPRECATED> */ .p-DockPanel-overlay.p-mod-hidden, /* </DEPRECATED> */\n.lm-DockPanel-overlay.lm-mod-hidden {\n display: none !important;\n}\n",""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n\n\n/* <DEPRECATED> */ .p-Menu, /* </DEPRECATED> */\n.lm-Menu {\n z-index: 10000;\n position: absolute;\n white-space: nowrap;\n overflow-x: hidden;\n overflow-y: auto;\n outline: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n\n/* <DEPRECATED> */ .p-Menu-content, /* </DEPRECATED> */\n.lm-Menu-content {\n margin: 0;\n padding: 0;\n display: table;\n list-style-type: none;\n}\n\n\n/* <DEPRECATED> */ .p-Menu-item, /* </DEPRECATED> */\n.lm-Menu-item {\n display: table-row;\n}\n\n\n/* <DEPRECATED> */\n.p-Menu-item.p-mod-hidden,\n.p-Menu-item.p-mod-collapsed,\n/* </DEPRECATED> */\n.lm-Menu-item.lm-mod-hidden,\n.lm-Menu-item.lm-mod-collapsed {\n display: none !important;\n}\n\n\n/* <DEPRECATED> */\n.p-Menu-itemIcon,\n.p-Menu-itemSubmenuIcon,\n/* </DEPRECATED> */\n.lm-Menu-itemIcon,\n.lm-Menu-itemSubmenuIcon {\n display: table-cell;\n text-align: center;\n}\n\n\n/* <DEPRECATED> */ .p-Menu-itemLabel, /* </DEPRECATED> */\n.lm-Menu-itemLabel {\n display: table-cell;\n text-align: left;\n}\n\n\n/* <DEPRECATED> */ .p-Menu-itemShortcut, /* </DEPRECATED> */\n.lm-Menu-itemShortcut {\n display: table-cell;\n text-align: right;\n}\n",""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n\n\n/* <DEPRECATED> */ .p-MenuBar, /* </DEPRECATED> */\n.lm-MenuBar {\n outline: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n\n/* <DEPRECATED> */ .p-MenuBar-content, /* </DEPRECATED> */\n.lm-MenuBar-content {\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: row;\n list-style-type: none;\n}\n\n\n/* <DEPRECATED> */ .p--MenuBar-item, /* </DEPRECATED> */\n.lm-MenuBar-item {\n box-sizing: border-box;\n}\n\n\n/* <DEPRECATED> */\n.p-MenuBar-itemIcon,\n.p-MenuBar-itemLabel,\n/* </DEPRECATED> */\n.lm-MenuBar-itemIcon,\n.lm-MenuBar-itemLabel {\n display: inline-block;\n}\n",""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n\n\n/* <DEPRECATED> */ .p-ScrollBar, /* </DEPRECATED> */\n.lm-ScrollBar {\n display: flex;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n\n/* <DEPRECATED> */\n.p-ScrollBar[data-orientation='horizontal'],\n/* </DEPRECATED> */\n.lm-ScrollBar[data-orientation='horizontal'] {\n flex-direction: row;\n}\n\n\n/* <DEPRECATED> */\n.p-ScrollBar[data-orientation='vertical'],\n/* </DEPRECATED> */\n.lm-ScrollBar[data-orientation='vertical'] {\n flex-direction: column;\n}\n\n\n/* <DEPRECATED> */ .p-ScrollBar-button, /* </DEPRECATED> */\n.lm-ScrollBar-button {\n box-sizing: border-box;\n flex: 0 0 auto;\n}\n\n\n/* <DEPRECATED> */ .p-ScrollBar-track, /* </DEPRECATED> */\n.lm-ScrollBar-track {\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n flex: 1 1 auto;\n}\n\n\n/* <DEPRECATED> */ .p-ScrollBar-thumb, /* </DEPRECATED> */\n.lm-ScrollBar-thumb {\n box-sizing: border-box;\n position: absolute;\n}\n",""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n\n\n/* <DEPRECATED> */ .p-SplitPanel-child, /* </DEPRECATED> */\n.lm-SplitPanel-child {\n z-index: 0;\n}\n\n\n/* <DEPRECATED> */ .p-SplitPanel-handle, /* </DEPRECATED> */\n.lm-SplitPanel-handle {\n z-index: 1;\n}\n\n\n/* <DEPRECATED> */ .p-SplitPanel-handle.p-mod-hidden, /* </DEPRECATED> */\n.lm-SplitPanel-handle.lm-mod-hidden {\n display: none !important;\n}\n\n\n/* <DEPRECATED> */ .p-SplitPanel-handle:after, /* </DEPRECATED> */\n.lm-SplitPanel-handle:after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: '';\n}\n\n\n/* <DEPRECATED> */\n.p-SplitPanel[data-orientation='horizontal'] > .p-SplitPanel-handle,\n/* </DEPRECATED> */\n.lm-SplitPanel[data-orientation='horizontal'] > .lm-SplitPanel-handle {\n cursor: ew-resize;\n}\n\n\n/* <DEPRECATED> */\n.p-SplitPanel[data-orientation='vertical'] > .p-SplitPanel-handle,\n/* </DEPRECATED> */\n.lm-SplitPanel[data-orientation='vertical'] > .lm-SplitPanel-handle {\n cursor: ns-resize;\n}\n\n\n/* <DEPRECATED> */\n.p-SplitPanel[data-orientation='horizontal'] > .p-SplitPanel-handle:after,\n/* </DEPRECATED> */\n.lm-SplitPanel[data-orientation='horizontal'] > .lm-SplitPanel-handle:after {\n left: 50%;\n min-width: 8px;\n transform: translateX(-50%);\n}\n\n\n/* <DEPRECATED> */\n.p-SplitPanel[data-orientation='vertical'] > .p-SplitPanel-handle:after,\n/* </DEPRECATED> */\n.lm-SplitPanel[data-orientation='vertical'] > .lm-SplitPanel-handle:after {\n top: 50%;\n min-height: 8px;\n transform: translateY(-50%);\n}\n",""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n\n\n/* <DEPRECATED> */ .p-TabBar, /* </DEPRECATED> */\n.lm-TabBar {\n display: flex;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n\n/* <DEPRECATED> */ .p-TabBar[data-orientation='horizontal'], /* </DEPRECATED> */\n.lm-TabBar[data-orientation='horizontal'] {\n flex-direction: row;\n}\n\n\n/* <DEPRECATED> */ .p-TabBar[data-orientation='vertical'], /* </DEPRECATED> */\n.lm-TabBar[data-orientation='vertical'] {\n flex-direction: column;\n}\n\n\n/* <DEPRECATED> */ .p-TabBar-content, /* </DEPRECATED> */\n.lm-TabBar-content {\n margin: 0;\n padding: 0;\n display: flex;\n flex: 1 1 auto;\n list-style-type: none;\n}\n\n\n/* <DEPRECATED> */\n.p-TabBar[data-orientation='horizontal'] > .p-TabBar-content,\n/* </DEPRECATED> */\n.lm-TabBar[data-orientation='horizontal'] > .lm-TabBar-content {\n flex-direction: row;\n}\n\n\n/* <DEPRECATED> */\n.p-TabBar[data-orientation='vertical'] > .p-TabBar-content,\n/* </DEPRECATED> */\n.lm-TabBar[data-orientation='vertical'] > .lm-TabBar-content {\n flex-direction: column;\n}\n\n\n/* <DEPRECATED> */ .p-TabBar-tab, /* </DEPRECATED> */\n.lm-TabBar-tab {\n display: flex;\n flex-direction: row;\n box-sizing: border-box;\n overflow: hidden;\n}\n\n\n/* <DEPRECATED> */\n.p-TabBar-tabIcon,\n.p-TabBar-tabCloseIcon,\n/* </DEPRECATED> */\n.lm-TabBar-tabIcon,\n.lm-TabBar-tabCloseIcon {\n flex: 0 0 auto;\n}\n\n\n/* <DEPRECATED> */ .p-TabBar-tabLabel, /* </DEPRECATED> */\n.lm-TabBar-tabLabel {\n flex: 1 1 auto;\n overflow: hidden;\n white-space: nowrap;\n}\n\n\n.lm-TabBar-tabInput {\n user-select: all;\n width: 100%;\n box-sizing : border-box;\n}\n\n\n/* <DEPRECATED> */ .p-TabBar-tab.p-mod-hidden, /* </DEPRECATED> */\n.lm-TabBar-tab.lm-mod-hidden {\n display: none !important;\n}\n\n\n/* <DEPRECATED> */ .p-TabBar.p-mod-dragging .p-TabBar-tab, /* </DEPRECATED> */\n.lm-TabBar.lm-mod-dragging .lm-TabBar-tab {\n position: relative;\n}\n\n\n/* <DEPRECATED> */\n.p-TabBar.p-mod-dragging[data-orientation='horizontal'] .p-TabBar-tab,\n/* </DEPRECATED> */\n.lm-TabBar.lm-mod-dragging[data-orientation='horizontal'] .lm-TabBar-tab {\n left: 0;\n transition: left 150ms ease;\n}\n\n\n/* <DEPRECATED> */\n.p-TabBar.p-mod-dragging[data-orientation='vertical'] .p-TabBar-tab,\n/* </DEPRECATED> */\n.lm-TabBar.lm-mod-dragging[data-orientation='vertical'] .lm-TabBar-tab {\n top: 0;\n transition: top 150ms ease;\n}\n\n\n/* <DEPRECATED> */\n.p-TabBar.p-mod-dragging .p-TabBar-tab.p-mod-dragging,\n/* </DEPRECATED> */\n.lm-TabBar.lm-mod-dragging .lm-TabBar-tab.lm-mod-dragging {\n transition: none;\n}\n",""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Copyright (c) 2014-2017, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\n\n\n/* <DEPRECATED> */ .p-TabPanel-tabBar, /* </DEPRECATED> */\n.lm-TabPanel-tabBar {\n z-index: 1;\n}\n\n\n/* <DEPRECATED> */ .p-TabPanel-stackedPanel, /* </DEPRECATED> */\n.lm-TabPanel-stackedPanel {\n z-index: 0;\n}\n",""]),t.exports=e},function(t,e,n){var i=n(20),r=n(140);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1},s=(i(t.i,r,o),r.locals?r.locals:{});t.exports=s},function(t,e,n){(e=n(9)(!1)).push([t.i,'/* Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n .jupyter-widgets-disconnected::before {\n content: "\\f127"; /* chain-broken */\n display: inline-block;\n font: normal normal normal 14px/1 FontAwesome;\n font-size: inherit;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n color: #d9534f;\n padding: 3px;\n align-self: flex-start;\n}\n',""]),t.exports=e},function(t,e,n){var i=n(20),r=n(142);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1},s=(i(t.i,r,o),r.locals?r.locals:{});t.exports=s},function(t,e,n){var i=n(9),r=n(143),o=n(145);(e=i(!1)).i(r),e.i(o),e.push([t.i,"/* Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n",""]),t.exports=e},function(t,e,n){var i=n(9),r=n(144);(e=i(!1)).i(r),e.push([t.i,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*\nThis file is copied from the JupyterLab project to define default styling for\nwhen the widget styling is compiled down to eliminate CSS variables. We make one\nchange - we comment out the font import below.\n*/\n\n/*\nThe following CSS variables define the main, public API for styling JupyterLab.\nThese variables should be used by all plugins wherever possible. In other\nwords, plugins should not define custom colors, sizes, etc unless absolutely\nnecessary. This enables users to change the visual theme of JupyterLab\nby changing these variables.\n\nMany variables appear in an ordered sequence (0,1,2,3). These sequences\nare designed to work well together, so for example, `--jp-border-color1` should\nbe used with `--jp-layout-color1`. The numbers have the following meanings:\n\n* 0: super-primary, reserved for special emphasis\n* 1: primary, most important under normal situations\n* 2: secondary, next most important under normal situations\n* 3: tertiary, next most important under normal situations\n\nThroughout JupyterLab, we are mostly following principles from Google's\nMaterial Design when selecting colors. We are not, however, following\nall of MD as it is not optimized for dense, information rich UIs.\n*/\n\n\n/*\n * Optional monospace font for input/output prompt.\n */\n /* Commented out in ipywidgets since we don't need it. */\n/* @import url('https://fonts.googleapis.com/css?family=Roboto+Mono'); */\n\n/*\n * Added for compabitility with output area\n */\n:root {\n --jp-icon-search: none;\n --jp-ui-select-caret: none;\n}\n\n\n:root {\n\n /* Borders\n\n The following variables, specify the visual styling of borders in JupyterLab.\n */\n\n --jp-border-width: 1px;\n --jp-border-color0: var(--md-grey-700);\n --jp-border-color1: var(--md-grey-500);\n --jp-border-color2: var(--md-grey-300);\n --jp-border-color3: var(--md-grey-100);\n\n /* UI Fonts\n\n The UI font CSS variables are used for the typography all of the JupyterLab\n user interface elements that are not directly user generated content.\n */\n\n --jp-ui-font-scale-factor: 1.2;\n --jp-ui-font-size0: calc(var(--jp-ui-font-size1)/var(--jp-ui-font-scale-factor));\n --jp-ui-font-size1: 13px; /* Base font size */\n --jp-ui-font-size2: calc(var(--jp-ui-font-size1)*var(--jp-ui-font-scale-factor));\n --jp-ui-font-size3: calc(var(--jp-ui-font-size2)*var(--jp-ui-font-scale-factor));\n --jp-ui-icon-font-size: 14px; /* Ensures px perfect FontAwesome icons */\n --jp-ui-font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n\n /* Use these font colors against the corresponding main layout colors.\n In a light theme, these go from dark to light.\n */\n\n --jp-ui-font-color0: rgba(0,0,0,1.0);\n --jp-ui-font-color1: rgba(0,0,0,0.8);\n --jp-ui-font-color2: rgba(0,0,0,0.5);\n --jp-ui-font-color3: rgba(0,0,0,0.3);\n\n /* Use these against the brand/accent/warn/error colors.\n These will typically go from light to darker, in both a dark and light theme\n */\n\n --jp-ui-inverse-font-color0: rgba(255, 255, 255, 1);\n --jp-ui-inverse-font-color1: rgba(255, 255, 255, 1);\n --jp-ui-inverse-font-color2: rgba(255, 255, 255, 0.7);\n --jp-ui-inverse-font-color3: rgba(255, 255, 255, 0.5);\n\n /* For backwards compatibility, we still define these below until ipywidgets 8.0.\n See https://github.com/jupyter-widgets/ipywidgets/pull/2801 */\n --jp-inverse-ui-font-color0: rgba(255,255,255,1);\n --jp-inverse-ui-font-color1: rgba(255,255,255,1.0);\n --jp-inverse-ui-font-color2: rgba(255,255,255,0.7);\n --jp-inverse-ui-font-color3: rgba(255,255,255,0.5);\n\n /* Content Fonts\n\n Content font variables are used for typography of user generated content.\n */\n\n --jp-content-font-size: 13px;\n --jp-content-line-height: 1.5;\n --jp-content-font-color0: black;\n --jp-content-font-color1: black;\n --jp-content-font-color2: var(--md-grey-700);\n --jp-content-font-color3: var(--md-grey-500);\n\n --jp-ui-font-scale-factor: 1.2;\n --jp-ui-font-size0: calc(var(--jp-ui-font-size1)/var(--jp-ui-font-scale-factor));\n --jp-ui-font-size1: 13px; /* Base font size */\n --jp-ui-font-size2: calc(var(--jp-ui-font-size1)*var(--jp-ui-font-scale-factor));\n --jp-ui-font-size3: calc(var(--jp-ui-font-size2)*var(--jp-ui-font-scale-factor));\n\n --jp-code-font-size: 13px;\n --jp-code-line-height: 1.307;\n --jp-code-padding: 5px;\n --jp-code-font-family: monospace;\n\n\n /* Layout\n\n The following are the main layout colors use in JupyterLab. In a light\n theme these would go from light to dark.\n */\n\n --jp-layout-color0: white;\n --jp-layout-color1: white;\n --jp-layout-color2: var(--md-grey-200);\n --jp-layout-color3: var(--md-grey-400);\n\n /* Brand/accent */\n\n --jp-brand-color0: var(--md-blue-700);\n --jp-brand-color1: var(--md-blue-500);\n --jp-brand-color2: var(--md-blue-300);\n --jp-brand-color3: var(--md-blue-100);\n\n --jp-accent-color0: var(--md-green-700);\n --jp-accent-color1: var(--md-green-500);\n --jp-accent-color2: var(--md-green-300);\n --jp-accent-color3: var(--md-green-100);\n\n /* State colors (warn, error, success, info) */\n\n --jp-warn-color0: var(--md-orange-700);\n --jp-warn-color1: var(--md-orange-500);\n --jp-warn-color2: var(--md-orange-300);\n --jp-warn-color3: var(--md-orange-100);\n\n --jp-error-color0: var(--md-red-700);\n --jp-error-color1: var(--md-red-500);\n --jp-error-color2: var(--md-red-300);\n --jp-error-color3: var(--md-red-100);\n\n --jp-success-color0: var(--md-green-700);\n --jp-success-color1: var(--md-green-500);\n --jp-success-color2: var(--md-green-300);\n --jp-success-color3: var(--md-green-100);\n\n --jp-info-color0: var(--md-cyan-700);\n --jp-info-color1: var(--md-cyan-500);\n --jp-info-color2: var(--md-cyan-300);\n --jp-info-color3: var(--md-cyan-100);\n\n /* Cell specific styles */\n\n --jp-cell-padding: 5px;\n --jp-cell-editor-background: #f7f7f7;\n --jp-cell-editor-border-color: #cfcfcf;\n --jp-cell-editor-background-edit: var(--jp-ui-layout-color1);\n --jp-cell-editor-border-color-edit: var(--jp-brand-color1);\n --jp-cell-prompt-width: 100px;\n --jp-cell-prompt-font-family: 'Roboto Mono', monospace;\n --jp-cell-prompt-letter-spacing: 0px;\n --jp-cell-prompt-opacity: 1.0;\n --jp-cell-prompt-opacity-not-active: 0.4;\n --jp-cell-prompt-font-color-not-active: var(--md-grey-700);\n /* A custom blend of MD grey and blue 600\n * See https://meyerweb.com/eric/tools/color-blend/#546E7A:1E88E5:5:hex */\n --jp-cell-inprompt-font-color: #307FC1;\n /* A custom blend of MD grey and orange 600\n * https://meyerweb.com/eric/tools/color-blend/#546E7A:F4511E:5:hex */\n --jp-cell-outprompt-font-color: #BF5B3D;\n\n /* Notebook specific styles */\n\n --jp-notebook-padding: 10px;\n --jp-notebook-scroll-padding: 100px;\n\n /* Console specific styles */\n\n --jp-console-background: var(--md-grey-100);\n\n /* Toolbar specific styles */\n\n --jp-toolbar-border-color: var(--md-grey-400);\n --jp-toolbar-micro-height: 8px;\n --jp-toolbar-background: var(--jp-layout-color0);\n --jp-toolbar-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.24);\n --jp-toolbar-header-margin: 4px 4px 0px 4px;\n --jp-toolbar-active-background: var(--md-grey-300);\n}\n",""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,'/**\n * The material design colors are adapted from google-material-color v1.2.6\n * https://github.com/danlevan/google-material-color\n * https://github.com/danlevan/google-material-color/blob/f67ca5f4028b2f1b34862f64b0ca67323f91b088/dist/palette.var.css\n *\n * The license for the material design color CSS variables is as follows (see\n * https://github.com/danlevan/google-material-color/blob/f67ca5f4028b2f1b34862f64b0ca67323f91b088/LICENSE)\n *\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 Dan Le Van\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n:root {\n --md-red-50: #FFEBEE;\n --md-red-100: #FFCDD2;\n --md-red-200: #EF9A9A;\n --md-red-300: #E57373;\n --md-red-400: #EF5350;\n --md-red-500: #F44336;\n --md-red-600: #E53935;\n --md-red-700: #D32F2F;\n --md-red-800: #C62828;\n --md-red-900: #B71C1C;\n --md-red-A100: #FF8A80;\n --md-red-A200: #FF5252;\n --md-red-A400: #FF1744;\n --md-red-A700: #D50000;\n\n --md-pink-50: #FCE4EC;\n --md-pink-100: #F8BBD0;\n --md-pink-200: #F48FB1;\n --md-pink-300: #F06292;\n --md-pink-400: #EC407A;\n --md-pink-500: #E91E63;\n --md-pink-600: #D81B60;\n --md-pink-700: #C2185B;\n --md-pink-800: #AD1457;\n --md-pink-900: #880E4F;\n --md-pink-A100: #FF80AB;\n --md-pink-A200: #FF4081;\n --md-pink-A400: #F50057;\n --md-pink-A700: #C51162;\n\n --md-purple-50: #F3E5F5;\n --md-purple-100: #E1BEE7;\n --md-purple-200: #CE93D8;\n --md-purple-300: #BA68C8;\n --md-purple-400: #AB47BC;\n --md-purple-500: #9C27B0;\n --md-purple-600: #8E24AA;\n --md-purple-700: #7B1FA2;\n --md-purple-800: #6A1B9A;\n --md-purple-900: #4A148C;\n --md-purple-A100: #EA80FC;\n --md-purple-A200: #E040FB;\n --md-purple-A400: #D500F9;\n --md-purple-A700: #AA00FF;\n\n --md-deep-purple-50: #EDE7F6;\n --md-deep-purple-100: #D1C4E9;\n --md-deep-purple-200: #B39DDB;\n --md-deep-purple-300: #9575CD;\n --md-deep-purple-400: #7E57C2;\n --md-deep-purple-500: #673AB7;\n --md-deep-purple-600: #5E35B1;\n --md-deep-purple-700: #512DA8;\n --md-deep-purple-800: #4527A0;\n --md-deep-purple-900: #311B92;\n --md-deep-purple-A100: #B388FF;\n --md-deep-purple-A200: #7C4DFF;\n --md-deep-purple-A400: #651FFF;\n --md-deep-purple-A700: #6200EA;\n\n --md-indigo-50: #E8EAF6;\n --md-indigo-100: #C5CAE9;\n --md-indigo-200: #9FA8DA;\n --md-indigo-300: #7986CB;\n --md-indigo-400: #5C6BC0;\n --md-indigo-500: #3F51B5;\n --md-indigo-600: #3949AB;\n --md-indigo-700: #303F9F;\n --md-indigo-800: #283593;\n --md-indigo-900: #1A237E;\n --md-indigo-A100: #8C9EFF;\n --md-indigo-A200: #536DFE;\n --md-indigo-A400: #3D5AFE;\n --md-indigo-A700: #304FFE;\n\n --md-blue-50: #E3F2FD;\n --md-blue-100: #BBDEFB;\n --md-blue-200: #90CAF9;\n --md-blue-300: #64B5F6;\n --md-blue-400: #42A5F5;\n --md-blue-500: #2196F3;\n --md-blue-600: #1E88E5;\n --md-blue-700: #1976D2;\n --md-blue-800: #1565C0;\n --md-blue-900: #0D47A1;\n --md-blue-A100: #82B1FF;\n --md-blue-A200: #448AFF;\n --md-blue-A400: #2979FF;\n --md-blue-A700: #2962FF;\n\n --md-light-blue-50: #E1F5FE;\n --md-light-blue-100: #B3E5FC;\n --md-light-blue-200: #81D4FA;\n --md-light-blue-300: #4FC3F7;\n --md-light-blue-400: #29B6F6;\n --md-light-blue-500: #03A9F4;\n --md-light-blue-600: #039BE5;\n --md-light-blue-700: #0288D1;\n --md-light-blue-800: #0277BD;\n --md-light-blue-900: #01579B;\n --md-light-blue-A100: #80D8FF;\n --md-light-blue-A200: #40C4FF;\n --md-light-blue-A400: #00B0FF;\n --md-light-blue-A700: #0091EA;\n\n --md-cyan-50: #E0F7FA;\n --md-cyan-100: #B2EBF2;\n --md-cyan-200: #80DEEA;\n --md-cyan-300: #4DD0E1;\n --md-cyan-400: #26C6DA;\n --md-cyan-500: #00BCD4;\n --md-cyan-600: #00ACC1;\n --md-cyan-700: #0097A7;\n --md-cyan-800: #00838F;\n --md-cyan-900: #006064;\n --md-cyan-A100: #84FFFF;\n --md-cyan-A200: #18FFFF;\n --md-cyan-A400: #00E5FF;\n --md-cyan-A700: #00B8D4;\n\n --md-teal-50: #E0F2F1;\n --md-teal-100: #B2DFDB;\n --md-teal-200: #80CBC4;\n --md-teal-300: #4DB6AC;\n --md-teal-400: #26A69A;\n --md-teal-500: #009688;\n --md-teal-600: #00897B;\n --md-teal-700: #00796B;\n --md-teal-800: #00695C;\n --md-teal-900: #004D40;\n --md-teal-A100: #A7FFEB;\n --md-teal-A200: #64FFDA;\n --md-teal-A400: #1DE9B6;\n --md-teal-A700: #00BFA5;\n\n --md-green-50: #E8F5E9;\n --md-green-100: #C8E6C9;\n --md-green-200: #A5D6A7;\n --md-green-300: #81C784;\n --md-green-400: #66BB6A;\n --md-green-500: #4CAF50;\n --md-green-600: #43A047;\n --md-green-700: #388E3C;\n --md-green-800: #2E7D32;\n --md-green-900: #1B5E20;\n --md-green-A100: #B9F6CA;\n --md-green-A200: #69F0AE;\n --md-green-A400: #00E676;\n --md-green-A700: #00C853;\n\n --md-light-green-50: #F1F8E9;\n --md-light-green-100: #DCEDC8;\n --md-light-green-200: #C5E1A5;\n --md-light-green-300: #AED581;\n --md-light-green-400: #9CCC65;\n --md-light-green-500: #8BC34A;\n --md-light-green-600: #7CB342;\n --md-light-green-700: #689F38;\n --md-light-green-800: #558B2F;\n --md-light-green-900: #33691E;\n --md-light-green-A100: #CCFF90;\n --md-light-green-A200: #B2FF59;\n --md-light-green-A400: #76FF03;\n --md-light-green-A700: #64DD17;\n\n --md-lime-50: #F9FBE7;\n --md-lime-100: #F0F4C3;\n --md-lime-200: #E6EE9C;\n --md-lime-300: #DCE775;\n --md-lime-400: #D4E157;\n --md-lime-500: #CDDC39;\n --md-lime-600: #C0CA33;\n --md-lime-700: #AFB42B;\n --md-lime-800: #9E9D24;\n --md-lime-900: #827717;\n --md-lime-A100: #F4FF81;\n --md-lime-A200: #EEFF41;\n --md-lime-A400: #C6FF00;\n --md-lime-A700: #AEEA00;\n\n --md-yellow-50: #FFFDE7;\n --md-yellow-100: #FFF9C4;\n --md-yellow-200: #FFF59D;\n --md-yellow-300: #FFF176;\n --md-yellow-400: #FFEE58;\n --md-yellow-500: #FFEB3B;\n --md-yellow-600: #FDD835;\n --md-yellow-700: #FBC02D;\n --md-yellow-800: #F9A825;\n --md-yellow-900: #F57F17;\n --md-yellow-A100: #FFFF8D;\n --md-yellow-A200: #FFFF00;\n --md-yellow-A400: #FFEA00;\n --md-yellow-A700: #FFD600;\n\n --md-amber-50: #FFF8E1;\n --md-amber-100: #FFECB3;\n --md-amber-200: #FFE082;\n --md-amber-300: #FFD54F;\n --md-amber-400: #FFCA28;\n --md-amber-500: #FFC107;\n --md-amber-600: #FFB300;\n --md-amber-700: #FFA000;\n --md-amber-800: #FF8F00;\n --md-amber-900: #FF6F00;\n --md-amber-A100: #FFE57F;\n --md-amber-A200: #FFD740;\n --md-amber-A400: #FFC400;\n --md-amber-A700: #FFAB00;\n\n --md-orange-50: #FFF3E0;\n --md-orange-100: #FFE0B2;\n --md-orange-200: #FFCC80;\n --md-orange-300: #FFB74D;\n --md-orange-400: #FFA726;\n --md-orange-500: #FF9800;\n --md-orange-600: #FB8C00;\n --md-orange-700: #F57C00;\n --md-orange-800: #EF6C00;\n --md-orange-900: #E65100;\n --md-orange-A100: #FFD180;\n --md-orange-A200: #FFAB40;\n --md-orange-A400: #FF9100;\n --md-orange-A700: #FF6D00;\n\n --md-deep-orange-50: #FBE9E7;\n --md-deep-orange-100: #FFCCBC;\n --md-deep-orange-200: #FFAB91;\n --md-deep-orange-300: #FF8A65;\n --md-deep-orange-400: #FF7043;\n --md-deep-orange-500: #FF5722;\n --md-deep-orange-600: #F4511E;\n --md-deep-orange-700: #E64A19;\n --md-deep-orange-800: #D84315;\n --md-deep-orange-900: #BF360C;\n --md-deep-orange-A100: #FF9E80;\n --md-deep-orange-A200: #FF6E40;\n --md-deep-orange-A400: #FF3D00;\n --md-deep-orange-A700: #DD2C00;\n\n --md-brown-50: #EFEBE9;\n --md-brown-100: #D7CCC8;\n --md-brown-200: #BCAAA4;\n --md-brown-300: #A1887F;\n --md-brown-400: #8D6E63;\n --md-brown-500: #795548;\n --md-brown-600: #6D4C41;\n --md-brown-700: #5D4037;\n --md-brown-800: #4E342E;\n --md-brown-900: #3E2723;\n\n --md-grey-50: #FAFAFA;\n --md-grey-100: #F5F5F5;\n --md-grey-200: #EEEEEE;\n --md-grey-300: #E0E0E0;\n --md-grey-400: #BDBDBD;\n --md-grey-500: #9E9E9E;\n --md-grey-600: #757575;\n --md-grey-700: #616161;\n --md-grey-800: #424242;\n --md-grey-900: #212121;\n\n --md-blue-grey-50: #ECEFF1;\n --md-blue-grey-100: #CFD8DC;\n --md-blue-grey-200: #B0BEC5;\n --md-blue-grey-300: #90A4AE;\n --md-blue-grey-400: #78909C;\n --md-blue-grey-500: #607D8B;\n --md-blue-grey-600: #546E7A;\n --md-blue-grey-700: #455A64;\n --md-blue-grey-800: #37474F;\n --md-blue-grey-900: #263238;\n}',""]),t.exports=e},function(t,e,n){var i=n(9),r=n(146);(e=i(!1)).i(r),e.push([t.i,'/* Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*\n * We assume that the CSS variables in\n * https://github.com/jupyterlab/jupyterlab/blob/master/src/default-theme/variables.css\n * have been defined.\n */\n\n:root {\n --jp-widgets-color: var(--jp-content-font-color1);\n --jp-widgets-label-color: var(--jp-widgets-color);\n --jp-widgets-readout-color: var(--jp-widgets-color);\n --jp-widgets-font-size: var(--jp-ui-font-size1);\n --jp-widgets-margin: 2px;\n --jp-widgets-inline-height: 28px;\n --jp-widgets-inline-width: 300px;\n --jp-widgets-inline-width-short: calc(var(--jp-widgets-inline-width) / 2 - var(--jp-widgets-margin));\n --jp-widgets-inline-width-tiny: calc(var(--jp-widgets-inline-width-short) / 2 - var(--jp-widgets-margin));\n --jp-widgets-inline-margin: 4px; /* margin between inline elements */\n --jp-widgets-inline-label-width: 80px;\n --jp-widgets-border-width: var(--jp-border-width);\n --jp-widgets-vertical-height: 200px;\n --jp-widgets-horizontal-tab-height: 24px;\n --jp-widgets-horizontal-tab-width: 144px;\n --jp-widgets-horizontal-tab-top-border: 2px;\n --jp-widgets-progress-thickness: 20px;\n --jp-widgets-container-padding: 15px;\n --jp-widgets-input-padding: 4px;\n --jp-widgets-radio-item-height-adjustment: 8px;\n --jp-widgets-radio-item-height: calc(var(--jp-widgets-inline-height) - var(--jp-widgets-radio-item-height-adjustment));\n --jp-widgets-slider-track-thickness: 4px;\n --jp-widgets-slider-border-width: var(--jp-widgets-border-width);\n --jp-widgets-slider-handle-size: 16px;\n --jp-widgets-slider-handle-border-color: var(--jp-border-color1);\n --jp-widgets-slider-handle-background-color: var(--jp-layout-color1);\n --jp-widgets-slider-active-handle-color: var(--jp-brand-color1);\n --jp-widgets-menu-item-height: 24px;\n --jp-widgets-dropdown-arrow: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxOCAxOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTggMTg7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDpub25lO30KPC9zdHlsZT4KPHBhdGggZD0iTTUuMiw1LjlMOSw5LjdsMy44LTMuOGwxLjIsMS4ybC00LjksNWwtNC45LTVMNS4yLDUuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTAtMC42aDE4djE4SDBWLTAuNnoiLz4KPC9zdmc+Cg");\n --jp-widgets-input-color: var(--jp-ui-font-color1);\n --jp-widgets-input-background-color: var(--jp-layout-color1);\n --jp-widgets-input-border-color: var(--jp-border-color1);\n --jp-widgets-input-focus-border-color: var(--jp-brand-color2);\n --jp-widgets-input-border-width: var(--jp-widgets-border-width);\n --jp-widgets-disabled-opacity: 0.6;\n\n /* From Material Design Lite */\n --md-shadow-key-umbra-opacity: 0.2;\n --md-shadow-key-penumbra-opacity: 0.14;\n --md-shadow-ambient-shadow-opacity: 0.12;\n}\n\n.jupyter-widgets {\n margin: var(--jp-widgets-margin);\n box-sizing: border-box;\n color: var(--jp-widgets-color);\n overflow: visible;\n}\n\n.jupyter-widgets.jupyter-widgets-disconnected::before {\n line-height: var(--jp-widgets-inline-height);\n height: var(--jp-widgets-inline-height);\n}\n\n.jp-Output-result > .jupyter-widgets {\n margin-left: 0;\n margin-right: 0;\n}\n\n/* vbox and hbox */\n\n.widget-inline-hbox {\n /* Horizontal widgets */\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n align-items: baseline;\n}\n\n.widget-inline-vbox {\n /* Vertical Widgets */\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.widget-box {\n box-sizing: border-box;\n display: flex;\n margin: 0;\n overflow: auto;\n}\n\n.widget-gridbox {\n box-sizing: border-box;\n display: grid;\n margin: 0;\n overflow: auto;\n}\n\n.widget-hbox {\n flex-direction: row;\n}\n\n.widget-vbox {\n flex-direction: column;\n}\n\n/* General Button Styling */\n\n.jupyter-button {\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 0px;\n padding-bottom: 0px;\n display: inline-block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: center;\n font-size: var(--jp-widgets-font-size);\n cursor: pointer;\n\n height: var(--jp-widgets-inline-height);\n border: 0px solid;\n line-height: var(--jp-widgets-inline-height);\n box-shadow: none;\n\n color: var(--jp-ui-font-color1);\n background-color: var(--jp-layout-color2);\n border-color: var(--jp-border-color2);\n border: none;\n user-select: none;\n}\n\n.jupyter-button i.fa {\n margin-right: var(--jp-widgets-inline-margin);\n pointer-events: none;\n}\n\n.jupyter-button:empty:before {\n content: "\\200b"; /* zero-width space */\n}\n\n.jupyter-widgets.jupyter-button:disabled {\n opacity: var(--jp-widgets-disabled-opacity);\n}\n\n.jupyter-button i.fa.center {\n margin-right: 0;\n}\n\n.jupyter-button:hover:enabled, .jupyter-button:focus:enabled {\n /* MD Lite 2dp shadow */\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, var(--md-shadow-key-penumbra-opacity)),\n 0 3px 1px -2px rgba(0, 0, 0, var(--md-shadow-key-umbra-opacity)),\n 0 1px 5px 0 rgba(0, 0, 0, var(--md-shadow-ambient-shadow-opacity));\n}\n\n.jupyter-button:active, .jupyter-button.mod-active {\n /* MD Lite 4dp shadow */\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, var(--md-shadow-key-penumbra-opacity)),\n 0 1px 10px 0 rgba(0, 0, 0, var(--md-shadow-ambient-shadow-opacity)),\n 0 2px 4px -1px rgba(0, 0, 0, var(--md-shadow-key-umbra-opacity));\n color: var(--jp-ui-font-color1);\n background-color: var(--jp-layout-color3);\n}\n\n.jupyter-button:focus:enabled {\n outline: 1px solid var(--jp-widgets-input-focus-border-color);\n}\n\n/* Button "Primary" Styling */\n\n.jupyter-button.mod-primary {\n color: var(--jp-ui-inverse-font-color1, var(--jp-inverse-ui-font-color1));\n background-color: var(--jp-brand-color1);\n}\n\n.jupyter-button.mod-primary.mod-active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-brand-color0);\n}\n\n.jupyter-button.mod-primary:active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-brand-color0);\n}\n\n/* Button "Success" Styling */\n\n.jupyter-button.mod-success {\n color: var(--jp-ui-inverse-font-color1, var(--jp-inverse-ui-font-color1));\n background-color: var(--jp-success-color1);\n}\n\n.jupyter-button.mod-success.mod-active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-success-color0);\n}\n\n.jupyter-button.mod-success:active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-success-color0);\n}\n\n /* Button "Info" Styling */\n\n.jupyter-button.mod-info {\n color: var(--jp-ui-inverse-font-color1, var(--jp-inverse-ui-font-color1));\n background-color: var(--jp-info-color1);\n}\n\n.jupyter-button.mod-info.mod-active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-info-color0);\n}\n\n.jupyter-button.mod-info:active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-info-color0);\n}\n\n/* Button "Warning" Styling */\n\n.jupyter-button.mod-warning {\n color: var(--jp-ui-inverse-font-color1, var(--jp-inverse-ui-font-color1));\n background-color: var(--jp-warn-color1);\n}\n\n.jupyter-button.mod-warning.mod-active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-warn-color0);\n}\n\n.jupyter-button.mod-warning:active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-warn-color0);\n}\n\n/* Button "Danger" Styling */\n\n.jupyter-button.mod-danger {\n color: var(--jp-ui-inverse-font-color1, var(--jp-inverse-ui-font-color1));\n background-color: var(--jp-error-color1);\n}\n\n.jupyter-button.mod-danger.mod-active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-error-color0);\n}\n\n.jupyter-button.mod-danger:active {\n color: var(--jp-ui-inverse-font-color0, var(--jp-inverse-ui-font-color0));\n background-color: var(--jp-error-color0);\n}\n\n/* Widget Button, Widget Toggle Button, Widget Upload */\n\n.widget-button, .widget-toggle-button, .widget-upload {\n width: var(--jp-widgets-inline-width-short);\n}\n\n/* Widget Label Styling */\n\n/* Override Bootstrap label css */\n.jupyter-widgets label {\n margin-bottom: initial;\n}\n\n.widget-label-basic {\n /* Basic Label */\n color: var(--jp-widgets-label-color);\n font-size: var(--jp-widgets-font-size);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: var(--jp-widgets-inline-height);\n}\n\n.widget-label {\n /* Label */\n color: var(--jp-widgets-label-color);\n font-size: var(--jp-widgets-font-size);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: var(--jp-widgets-inline-height);\n}\n\n.widget-inline-hbox .widget-label {\n /* Horizontal Widget Label */\n color: var(--jp-widgets-label-color);\n text-align: right;\n margin-right: calc( var(--jp-widgets-inline-margin) * 2 );\n width: var(--jp-widgets-inline-label-width);\n flex-shrink: 0;\n}\n\n.widget-inline-vbox .widget-label {\n /* Vertical Widget Label */\n color: var(--jp-widgets-label-color);\n text-align: center;\n line-height: var(--jp-widgets-inline-height);\n}\n\n/* Widget Readout Styling */\n\n.widget-readout {\n color: var(--jp-widgets-readout-color);\n font-size: var(--jp-widgets-font-size);\n height: var(--jp-widgets-inline-height);\n line-height: var(--jp-widgets-inline-height);\n overflow: hidden;\n white-space: nowrap;\n text-align: center;\n}\n\n.widget-readout.overflow {\n /* Overflowing Readout */\n\n /* From Material Design Lite\n shadow-key-umbra-opacity: 0.2;\n shadow-key-penumbra-opacity: 0.14;\n shadow-ambient-shadow-opacity: 0.12;\n */\n -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2),\n 0 3px 1px -2px rgba(0, 0, 0, 0.14),\n 0 1px 5px 0 rgba(0, 0, 0, 0.12);\n\n -moz-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2),\n 0 3px 1px -2px rgba(0, 0, 0, 0.14),\n 0 1px 5px 0 rgba(0, 0, 0, 0.12);\n\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2),\n 0 3px 1px -2px rgba(0, 0, 0, 0.14),\n 0 1px 5px 0 rgba(0, 0, 0, 0.12);\n}\n\n.widget-inline-hbox .widget-readout {\n /* Horizontal Readout */\n text-align: center;\n max-width: var(--jp-widgets-inline-width-short);\n min-width: var(--jp-widgets-inline-width-tiny);\n margin-left: var(--jp-widgets-inline-margin);\n}\n\n.widget-inline-vbox .widget-readout {\n /* Vertical Readout */\n margin-top: var(--jp-widgets-inline-margin);\n /* as wide as the widget */\n width: inherit;\n}\n\n/* Widget Checkbox Styling */\n\n.widget-checkbox {\n width: var(--jp-widgets-inline-width);\n height: var(--jp-widgets-inline-height);\n line-height: var(--jp-widgets-inline-height);\n}\n\n.widget-checkbox input[type="checkbox"] {\n margin: 0px calc( var(--jp-widgets-inline-margin) * 2 ) 0px 0px;\n line-height: var(--jp-widgets-inline-height);\n font-size: large;\n flex-grow: 1;\n flex-shrink: 0;\n align-self: center;\n}\n\n/* Widget Valid Styling */\n\n.widget-valid {\n height: var(--jp-widgets-inline-height);\n line-height: var(--jp-widgets-inline-height);\n width: var(--jp-widgets-inline-width-short);\n font-size: var(--jp-widgets-font-size);\n}\n\n.widget-valid i:before {\n line-height: var(--jp-widgets-inline-height);\n margin-right: var(--jp-widgets-inline-margin);\n margin-left: var(--jp-widgets-inline-margin);\n}\n\n.widget-valid.mod-valid i:before {\n color: green;\n}\n\n.widget-valid.mod-invalid i:before {\n color: red;\n}\n\n.widget-valid.mod-valid .widget-valid-readout {\n display: none;\n}\n\n/* Widget Text and TextArea Stying */\n\n.widget-textarea, .widget-text {\n width: var(--jp-widgets-inline-width);\n}\n\n.widget-text input[type="text"], .widget-text input[type="number"], .widget-text input[type="password"] {\n height: var(--jp-widgets-inline-height);\n}\n\n.widget-text input[type="text"]:disabled, .widget-text input[type="number"]:disabled, .widget-text input[type="password"]:disabled, .widget-textarea textarea:disabled {\n opacity: var(--jp-widgets-disabled-opacity);\n}\n\n.widget-text input[type="text"], .widget-text input[type="number"], .widget-text input[type="password"], .widget-textarea textarea {\n box-sizing: border-box;\n border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);\n background-color: var(--jp-widgets-input-background-color);\n color: var(--jp-widgets-input-color);\n font-size: var(--jp-widgets-font-size);\n flex-grow: 1;\n min-width: 0; /* This makes it possible for the flexbox to shrink this input */\n flex-shrink: 1;\n outline: none !important;\n}\n \n.widget-text input[type="text"], .widget-text input[type="password"], .widget-textarea textarea {\n padding: var(--jp-widgets-input-padding) calc( var(--jp-widgets-input-padding) * 2);\n}\n\n.widget-text input[type="number"] {\n padding: var(--jp-widgets-input-padding) 0 var(--jp-widgets-input-padding) calc(var(--jp-widgets-input-padding) * 2);\n}\n\n.widget-textarea textarea {\n height: inherit;\n width: inherit;\n}\n\n.widget-text input:focus, .widget-textarea textarea:focus {\n border-color: var(--jp-widgets-input-focus-border-color);\n}\n\n/* Widget Slider */\n\n.widget-slider .ui-slider {\n /* Slider Track */\n border: var(--jp-widgets-slider-border-width) solid var(--jp-layout-color3);\n background: var(--jp-layout-color3);\n box-sizing: border-box;\n position: relative;\n border-radius: 0px;\n}\n\n.widget-slider .ui-slider .ui-slider-handle {\n /* Slider Handle */\n outline: none !important; /* focused slider handles are colored - see below */\n position: absolute;\n background-color: var(--jp-widgets-slider-handle-background-color);\n border: var(--jp-widgets-slider-border-width) solid var(--jp-widgets-slider-handle-border-color);\n box-sizing: border-box;\n z-index: 1;\n background-image: none; /* Override jquery-ui */\n}\n\n/* Override jquery-ui */\n.widget-slider .ui-slider .ui-slider-handle:hover, .widget-slider .ui-slider .ui-slider-handle:focus {\n background-color: var(--jp-widgets-slider-active-handle-color);\n border: var(--jp-widgets-slider-border-width) solid var(--jp-widgets-slider-active-handle-color);\n}\n\n.widget-slider .ui-slider .ui-slider-handle:active {\n background-color: var(--jp-widgets-slider-active-handle-color);\n border-color: var(--jp-widgets-slider-active-handle-color);\n z-index: 2;\n transform: scale(1.2);\n}\n\n.widget-slider .ui-slider .ui-slider-range {\n /* Interval between the two specified value of a double slider */\n position: absolute;\n background: var(--jp-widgets-slider-active-handle-color);\n z-index: 0;\n}\n\n/* Shapes of Slider Handles */\n\n.widget-hslider .ui-slider .ui-slider-handle {\n width: var(--jp-widgets-slider-handle-size);\n height: var(--jp-widgets-slider-handle-size);\n margin-top: calc((var(--jp-widgets-slider-track-thickness) - var(--jp-widgets-slider-handle-size)) / 2 - var(--jp-widgets-slider-border-width));\n margin-left: calc(var(--jp-widgets-slider-handle-size) / -2 + var(--jp-widgets-slider-border-width));\n border-radius: 50%;\n top: 0;\n}\n\n.widget-vslider .ui-slider .ui-slider-handle {\n width: var(--jp-widgets-slider-handle-size);\n height: var(--jp-widgets-slider-handle-size);\n margin-bottom: calc(var(--jp-widgets-slider-handle-size) / -2 + var(--jp-widgets-slider-border-width));\n margin-left: calc((var(--jp-widgets-slider-track-thickness) - var(--jp-widgets-slider-handle-size)) / 2 - var(--jp-widgets-slider-border-width));\n border-radius: 50%;\n left: 0;\n}\n\n.widget-hslider .ui-slider .ui-slider-range {\n height: calc( var(--jp-widgets-slider-track-thickness) * 2 );\n margin-top: calc((var(--jp-widgets-slider-track-thickness) - var(--jp-widgets-slider-track-thickness) * 2 ) / 2 - var(--jp-widgets-slider-border-width));\n}\n\n.widget-vslider .ui-slider .ui-slider-range {\n width: calc( var(--jp-widgets-slider-track-thickness) * 2 );\n margin-left: calc((var(--jp-widgets-slider-track-thickness) - var(--jp-widgets-slider-track-thickness) * 2 ) / 2 - var(--jp-widgets-slider-border-width));\n}\n\n/* Horizontal Slider */\n\n.widget-hslider {\n width: var(--jp-widgets-inline-width);\n height: var(--jp-widgets-inline-height);\n line-height: var(--jp-widgets-inline-height);\n\n /* Override the align-items baseline. This way, the description and readout\n still seem to align their baseline properly, and we don\'t have to have\n align-self: stretch in the .slider-container. */\n align-items: center;\n}\n\n.widgets-slider .slider-container {\n overflow: visible;\n}\n\n.widget-hslider .slider-container {\n height: var(--jp-widgets-inline-height);\n margin-left: calc(var(--jp-widgets-slider-handle-size) / 2 - 2 * var(--jp-widgets-slider-border-width));\n margin-right: calc(var(--jp-widgets-slider-handle-size) / 2 - 2 * var(--jp-widgets-slider-border-width));\n flex: 1 1 var(--jp-widgets-inline-width-short);\n}\n\n.widget-hslider .ui-slider {\n /* Inner, invisible slide div */\n height: var(--jp-widgets-slider-track-thickness);\n margin-top: calc((var(--jp-widgets-inline-height) - var(--jp-widgets-slider-track-thickness)) / 2);\n width: 100%;\n}\n\n/* Vertical Slider */\n\n.widget-vbox .widget-label {\n height: var(--jp-widgets-inline-height);\n line-height: var(--jp-widgets-inline-height);\n}\n\n.widget-vslider {\n /* Vertical Slider */\n height: var(--jp-widgets-vertical-height);\n width: var(--jp-widgets-inline-width-tiny);\n}\n\n.widget-vslider .slider-container {\n flex: 1 1 var(--jp-widgets-inline-width-short);\n margin-left: auto;\n margin-right: auto;\n margin-bottom: calc(var(--jp-widgets-slider-handle-size) / 2 - 2 * var(--jp-widgets-slider-border-width));\n margin-top: calc(var(--jp-widgets-slider-handle-size) / 2 - 2 * var(--jp-widgets-slider-border-width));\n display: flex;\n flex-direction: column;\n}\n\n.widget-vslider .ui-slider-vertical {\n /* Inner, invisible slide div */\n width: var(--jp-widgets-slider-track-thickness);\n flex-grow: 1;\n margin-left: auto;\n margin-right: auto;\n}\n\n/* Widget Progress Styling */\n\n.progress-bar {\n -webkit-transition: none;\n -moz-transition: none;\n -ms-transition: none;\n -o-transition: none;\n transition: none;\n}\n\n.progress-bar {\n height: var(--jp-widgets-inline-height);\n}\n\n.progress-bar {\n background-color: var(--jp-brand-color1);\n}\n\n.progress-bar-success {\n background-color: var(--jp-success-color1);\n}\n\n.progress-bar-info {\n background-color: var(--jp-info-color1);\n}\n\n.progress-bar-warning {\n background-color: var(--jp-warn-color1);\n}\n\n.progress-bar-danger {\n background-color: var(--jp-error-color1);\n}\n\n.progress {\n background-color: var(--jp-layout-color2);\n border: none;\n box-shadow: none;\n}\n\n/* Horisontal Progress */\n\n.widget-hprogress {\n /* Progress Bar */\n height: var(--jp-widgets-inline-height);\n line-height: var(--jp-widgets-inline-height);\n width: var(--jp-widgets-inline-width);\n align-items: center;\n\n}\n\n.widget-hprogress .progress {\n flex-grow: 1;\n margin-top: var(--jp-widgets-input-padding);\n margin-bottom: var(--jp-widgets-input-padding);\n align-self: stretch;\n /* Override bootstrap style */\n height: initial;\n}\n\n/* Vertical Progress */\n\n.widget-vprogress {\n height: var(--jp-widgets-vertical-height);\n width: var(--jp-widgets-inline-width-tiny);\n}\n\n.widget-vprogress .progress {\n flex-grow: 1;\n width: var(--jp-widgets-progress-thickness);\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 0;\n}\n\n/* Select Widget Styling */\n\n.widget-dropdown {\n height: var(--jp-widgets-inline-height);\n width: var(--jp-widgets-inline-width);\n line-height: var(--jp-widgets-inline-height);\n}\n\n.widget-dropdown > select {\n padding-right: 20px;\n border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);\n border-radius: 0;\n height: inherit;\n flex: 1 1 var(--jp-widgets-inline-width-short);\n min-width: 0; /* This makes it possible for the flexbox to shrink this input */\n box-sizing: border-box;\n outline: none !important;\n box-shadow: none;\n background-color: var(--jp-widgets-input-background-color);\n color: var(--jp-widgets-input-color);\n font-size: var(--jp-widgets-font-size);\n vertical-align: top;\n padding-left: calc( var(--jp-widgets-input-padding) * 2);\n\tappearance: none;\n\t-webkit-appearance: none;\n\t-moz-appearance: none;\n background-repeat: no-repeat;\n\tbackground-size: 20px;\n\tbackground-position: right center;\n background-image: var(--jp-widgets-dropdown-arrow);\n}\n.widget-dropdown > select:focus {\n border-color: var(--jp-widgets-input-focus-border-color);\n}\n\n.widget-dropdown > select:disabled {\n opacity: var(--jp-widgets-disabled-opacity);\n}\n\n/* To disable the dotted border in Firefox around select controls.\n See http://stackoverflow.com/a/18853002 */\n.widget-dropdown > select:-moz-focusring {\n color: transparent;\n text-shadow: 0 0 0 #000;\n}\n\n/* Select and SelectMultiple */\n\n.widget-select {\n width: var(--jp-widgets-inline-width);\n line-height: var(--jp-widgets-inline-height);\n\n /* Because Firefox defines the baseline of a select as the bottom of the\n control, we align the entire control to the top and add padding to the\n select to get an approximate first line baseline alignment. */\n align-items: flex-start;\n}\n\n.widget-select > select {\n border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);\n background-color: var(--jp-widgets-input-background-color);\n color: var(--jp-widgets-input-color);\n font-size: var(--jp-widgets-font-size);\n flex: 1 1 var(--jp-widgets-inline-width-short);\n outline: none !important;\n overflow: auto;\n height: inherit;\n\n /* Because Firefox defines the baseline of a select as the bottom of the\n control, we align the entire control to the top and add padding to the\n select to get an approximate first line baseline alignment. */\n padding-top: 5px;\n}\n\n.widget-select > select:focus {\n border-color: var(--jp-widgets-input-focus-border-color);\n}\n\n.wiget-select > select > option {\n padding-left: var(--jp-widgets-input-padding);\n line-height: var(--jp-widgets-inline-height);\n /* line-height doesn\'t work on some browsers for select options */\n padding-top: calc(var(--jp-widgets-inline-height)-var(--jp-widgets-font-size)/2);\n padding-bottom: calc(var(--jp-widgets-inline-height)-var(--jp-widgets-font-size)/2);\n}\n\n\n\n/* Toggle Buttons Styling */\n\n.widget-toggle-buttons {\n line-height: var(--jp-widgets-inline-height);\n}\n\n.widget-toggle-buttons .widget-toggle-button {\n margin-left: var(--jp-widgets-margin);\n margin-right: var(--jp-widgets-margin);\n}\n\n.widget-toggle-buttons .jupyter-button:disabled {\n opacity: var(--jp-widgets-disabled-opacity);\n}\n\n/* Radio Buttons Styling */\n\n.widget-radio {\n width: var(--jp-widgets-inline-width);\n line-height: var(--jp-widgets-inline-height);\n}\n\n.widget-radio-box {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n box-sizing: border-box;\n flex-grow: 1;\n margin-bottom: var(--jp-widgets-radio-item-height-adjustment);\n}\n\n.widget-radio-box label {\n height: var(--jp-widgets-radio-item-height);\n line-height: var(--jp-widgets-radio-item-height);\n font-size: var(--jp-widgets-font-size);\n}\n\n.widget-radio-box input {\n height: var(--jp-widgets-radio-item-height);\n line-height: var(--jp-widgets-radio-item-height);\n margin: 0 calc( var(--jp-widgets-input-padding) * 2 ) 0 1px;\n float: left;\n}\n\n/* Color Picker Styling */\n\n.widget-colorpicker {\n width: var(--jp-widgets-inline-width);\n height: var(--jp-widgets-inline-height);\n line-height: var(--jp-widgets-inline-height);\n}\n\n.widget-colorpicker > .widget-colorpicker-input {\n flex-grow: 1;\n flex-shrink: 1;\n min-width: var(--jp-widgets-inline-width-tiny);\n}\n\n.widget-colorpicker input[type="color"] {\n width: var(--jp-widgets-inline-height);\n height: var(--jp-widgets-inline-height);\n padding: 0 2px; /* make the color square actually square on Chrome on OS X */\n background: var(--jp-widgets-input-background-color);\n color: var(--jp-widgets-input-color);\n border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);\n border-left: none;\n flex-grow: 0;\n flex-shrink: 0;\n box-sizing: border-box;\n align-self: stretch;\n outline: none !important;\n}\n\n.widget-colorpicker.concise input[type="color"] {\n border-left: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);\n}\n\n.widget-colorpicker input[type="color"]:focus, .widget-colorpicker input[type="text"]:focus {\n border-color: var(--jp-widgets-input-focus-border-color);\n}\n\n.widget-colorpicker input[type="text"] {\n flex-grow: 1;\n outline: none !important;\n height: var(--jp-widgets-inline-height);\n line-height: var(--jp-widgets-inline-height);\n background: var(--jp-widgets-input-background-color);\n color: var(--jp-widgets-input-color);\n border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);\n font-size: var(--jp-widgets-font-size);\n padding: var(--jp-widgets-input-padding) calc( var(--jp-widgets-input-padding) * 2 );\n min-width: 0; /* This makes it possible for the flexbox to shrink this input */\n flex-shrink: 1;\n box-sizing: border-box;\n}\n\n.widget-colorpicker input[type="text"]:disabled {\n opacity: var(--jp-widgets-disabled-opacity);\n}\n\n/* Date Picker Styling */\n\n.widget-datepicker {\n width: var(--jp-widgets-inline-width);\n height: var(--jp-widgets-inline-height);\n line-height: var(--jp-widgets-inline-height);\n}\n\n.widget-datepicker input[type="date"] {\n flex-grow: 1;\n flex-shrink: 1;\n min-width: 0; /* This makes it possible for the flexbox to shrink this input */\n outline: none !important;\n height: var(--jp-widgets-inline-height);\n border: var(--jp-widgets-input-border-width) solid var(--jp-widgets-input-border-color);\n background-color: var(--jp-widgets-input-background-color);\n color: var(--jp-widgets-input-color);\n font-size: var(--jp-widgets-font-size);\n padding: var(--jp-widgets-input-padding) calc( var(--jp-widgets-input-padding) * 2 );\n box-sizing: border-box;\n}\n\n.widget-datepicker input[type="date"]:focus {\n border-color: var(--jp-widgets-input-focus-border-color);\n}\n\n.widget-datepicker input[type="date"]:invalid {\n border-color: var(--jp-warn-color1);\n}\n\n.widget-datepicker input[type="date"]:disabled {\n opacity: var(--jp-widgets-disabled-opacity);\n}\n\n/* Play Widget */\n\n.widget-play {\n width: var(--jp-widgets-inline-width-short);\n display: flex;\n align-items: stretch;\n}\n\n.widget-play .jupyter-button {\n flex-grow: 1;\n height: auto;\n}\n\n.widget-play .jupyter-button:disabled {\n opacity: var(--jp-widgets-disabled-opacity);\n}\n\n/* Tab Widget */\n\n.jupyter-widgets.widget-tab {\n display: flex;\n flex-direction: column;\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar {\n /* Necessary so that a tab can be shifted down to overlay the border of the box below. */\n overflow-x: visible;\n overflow-y: visible;\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar > .p-TabBar-content {\n /* Make sure that the tab grows from bottom up */\n align-items: flex-end;\n min-width: 0;\n min-height: 0;\n}\n\n.jupyter-widgets.widget-tab > .widget-tab-contents {\n width: 100%;\n box-sizing: border-box;\n margin: 0;\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n padding: var(--jp-widgets-container-padding);\n flex-grow: 1;\n overflow: auto;\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar {\n font: var(--jp-widgets-font-size) Helvetica, Arial, sans-serif;\n min-height: calc(var(--jp-widgets-horizontal-tab-height) + var(--jp-border-width));\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab {\n flex: 0 1 var(--jp-widgets-horizontal-tab-width);\n min-width: 35px;\n min-height: calc(var(--jp-widgets-horizontal-tab-height) + var(--jp-border-width));\n line-height: var(--jp-widgets-horizontal-tab-height);\n margin-left: calc(-1 * var(--jp-border-width));\n padding: 0px 10px;\n background: var(--jp-layout-color2);\n color: var(--jp-ui-font-color2);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: none;\n position: relative;\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current {\n color: var(--jp-ui-font-color0);\n /* We want the background to match the tab content background */\n background: var(--jp-layout-color1);\n min-height: calc(var(--jp-widgets-horizontal-tab-height) + 2 * var(--jp-border-width));\n transform: translateY(var(--jp-border-width));\n overflow: visible;\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab.p-mod-current:before {\n position: absolute;\n top: calc(-1 * var(--jp-border-width));\n left: calc(-1 * var(--jp-border-width));\n content: \'\';\n height: var(--jp-widgets-horizontal-tab-top-border);\n width: calc(100% + 2 * var(--jp-border-width));\n background: var(--jp-brand-color1);\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab:first-child {\n margin-left: 0;\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab:hover:not(.p-mod-current) {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-mod-closable > .p-TabBar-tabCloseIcon {\n margin-left: 4px;\n}\n\n/* This font-awesome strategy may not work across FA4 and FA5, but we don\'t\nactually support closable tabs, so it really doesn\'t matter */\n.jupyter-widgets.widget-tab > .p-TabBar .p-mod-closable > .p-TabBar-tabCloseIcon:before {\n font-family: FontAwesome;\n content: \'\\f00d\'; /* close */\n}\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabIcon,\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabLabel,\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabCloseIcon {\n line-height: var(--jp-widgets-horizontal-tab-height);\n}\n\n/* Accordion Widget */\n\n.p-Collapse {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.p-Collapse-header {\n padding: var(--jp-widgets-input-padding);\n cursor: pointer;\n color: var(--jp-ui-font-color2);\n background-color: var(--jp-layout-color2);\n border: var(--jp-widgets-border-width) solid var(--jp-border-color1);\n padding: calc(var(--jp-widgets-container-padding) * 2 / 3) var(--jp-widgets-container-padding);\n font-weight: bold;\n}\n\n.p-Collapse-header:hover {\n background-color: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.p-Collapse-open > .p-Collapse-header {\n background-color: var(--jp-layout-color1);\n color: var(--jp-ui-font-color0);\n cursor: default;\n border-bottom: none;\n}\n\n.p-Collapse-contents {\n padding: var(--jp-widgets-container-padding);\n background-color: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n border-left: var(--jp-widgets-border-width) solid var(--jp-border-color1);\n border-right: var(--jp-widgets-border-width) solid var(--jp-border-color1);\n border-bottom: var(--jp-widgets-border-width) solid var(--jp-border-color1);\n overflow: auto;\n}\n\n.p-Accordion {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.p-Accordion .p-Collapse {\n margin-bottom: 0;\n}\n\n.p-Accordion .p-Collapse + .p-Collapse {\n margin-top: 4px;\n}\n\n\n\n/* HTML widget */\n\n.widget-html, .widget-htmlmath {\n font-size: var(--jp-widgets-font-size);\n}\n\n.widget-html > .widget-html-content, .widget-htmlmath > .widget-html-content {\n /* Fill out the area in the HTML widget */\n align-self: stretch;\n flex-grow: 1;\n flex-shrink: 1;\n /* Makes sure the baseline is still aligned with other elements */\n line-height: var(--jp-widgets-inline-height);\n /* Make it possible to have absolutely-positioned elements in the html */\n position: relative;\n}\n\n\n/* Image widget */\n\n.widget-image {\n max-width: 100%;\n height: auto;\n}\n',""]),t.exports=e},function(t,e,n){(e=n(9)(!1)).push([t.i,"/* This file has code derived from PhosphorJS CSS files, as noted below. The license for this PhosphorJS code is:\n\nCopyright (c) 2014-2017, PhosphorJS Contributors\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n*/\n\n/*\n * The following section is derived from https://github.com/phosphorjs/phosphor/blob/23b9d075ebc5b73ab148b6ebfc20af97f85714c4/packages/widgets/style/tabbar.css \n * We've scoped the rules so that they are consistent with exactly our code.\n */\n\n.jupyter-widgets.widget-tab > .p-TabBar {\n display: flex;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar[data-orientation='horizontal'] {\n flex-direction: row;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar[data-orientation='vertical'] {\n flex-direction: column;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar > .p-TabBar-content {\n margin: 0;\n padding: 0;\n display: flex;\n flex: 1 1 auto;\n list-style-type: none;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar[data-orientation='horizontal'] > .p-TabBar-content {\n flex-direction: row;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar[data-orientation='vertical'] > .p-TabBar-content {\n flex-direction: column;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab {\n display: flex;\n flex-direction: row;\n box-sizing: border-box;\n overflow: hidden;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabIcon,\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabCloseIcon {\n flex: 0 0 auto;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tabLabel {\n flex: 1 1 auto;\n overflow: hidden;\n white-space: nowrap;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar .p-TabBar-tab.p-mod-hidden {\n display: none !important;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar.p-mod-dragging .p-TabBar-tab {\n position: relative;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar.p-mod-dragging[data-orientation='horizontal'] .p-TabBar-tab {\n left: 0;\n transition: left 150ms ease;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar.p-mod-dragging[data-orientation='vertical'] .p-TabBar-tab {\n top: 0;\n transition: top 150ms ease;\n}\n\n\n.jupyter-widgets.widget-tab > .p-TabBar.p-mod-dragging .p-TabBar-tab.p-mod-dragging {\n transition: none;\n}\n\n/* End tabbar.css */\n",""]),t.exports=e},function(t,e,n){"use strict";n.r(e),n.d(e,"OUTPUT_WIDGET_VERSION",(function(){return a})),n.d(e,"OutputModel",(function(){return l})),n.d(e,"OutputView",(function(){return u}));var i,r=n(3),o=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(){return(s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},a="1.0.0",l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.defaults=function(){return s(s({},t.prototype.defaults.call(this)),{_model_name:"OutputModel",_view_name:"OutputView",_model_module:"@jupyter-widgets/output",_view_module:"@jupyter-widgets/output",_model_module_version:a,_view_module_version:a})},e}(r.DOMWidgetModel),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(r.DOMWidgetView)}])}));
//# sourceMappingURL=extension.js.map