text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.tweakpane=t():e.Tweakpane=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=59)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeUtil=void 0,t.TypeUtil={forceCast:function(e){return e},isEmpty:function(e){return null==e},getOrDefault:function(e,n){return t.TypeUtil.isEmpty(e)?n:e},deepEqualsArray:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassName=void 0;var o="tp",r={"":"v",input:"iv",monitor:"mv"};t.ClassName=function(e,t){var n=r[t||""];return function(t,r){return[o,"-",e,n,t?"_"+t:"",r?"-"+r:""].join("")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.View=void 0;var o=n(1),r=n(4),i=n(3),a=n(65),l=o.ClassName(""),s=function(){function e(e,t){this.onChange_=this.onChange_.bind(this),this.onDispose_=this.onDispose_.bind(this),this.model_=t.model,this.model_.emitter.on("change",this.onChange_),this.model_.emitter.on("dispose",this.onDispose_),this.doc_=e,this.elem_=this.doc_.createElement("div"),this.elem_.classList.add(l())}return Object.defineProperty(e.prototype,"document",{get:function(){if(!this.doc_)throw i.PaneError.alreadyDisposed();return this.doc_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){if(!this.elem_)throw i.PaneError.alreadyDisposed();return this.elem_},enumerable:!1,configurable:!0}),e.prototype.onDispose_=function(){this.doc_=null,this.elem_=r.disposeElement(this.elem_)},e.prototype.onChange_=function(e){var t=this.elem_;if(!t)throw i.PaneError.alreadyDisposed();if("hidden"===e.propertyName){var n=l(void 0,"hidden");this.model_.hidden?t.classList.add(n):t.classList.remove(n)}else"positions"===e.propertyName&&(a.getAll().forEach((function(e){t.classList.remove(l(void 0,e))})),this.model_.positions.forEach((function(e){t.classList.add(l(void 0,e))})))},e}();t.View=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaneError=void 0;var o=function(){function e(e){this.message=function(e){return"alreadydisposed"===e.type?"View has been already disposed":"emptyvalue"===e.type?"Value is empty for "+e.context.key:"invalidparams"===e.type?"Invalid parameters for "+e.context.name:"nomatchingcontroller"===e.type?"No matching controller for "+e.context.key:"shouldneverhappen"===e.type?"This error should never happen":"Unexpected error"}(e),this.name=this.constructor.name,this.stack=new Error(this.message).stack,this.type=e.type}return e.alreadyDisposed=function(){return new e({type:"alreadydisposed"})},e.shouldNeverHappen=function(){return new e({type:"shouldneverhappen"})},e}();t.PaneError=o,o.prototype=Object.create(Error.prototype),o.prototype.constructor=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disposeElement=void 0,t.disposeElement=function(e){return e&&e.parentElement&&e.parentElement.removeChild(e),null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberUtil=void 0,t.NumberUtil={map:function(e,t,n,o,r){return o+(e-t)/(n-t)*(r-o)},getDecimalDigits:function(e){return String(e.toFixed(10)).split(".")[1].replace(/0+$/,"").length},constrain:function(e,t,n){return Math.min(Math.max(e,t),n)},loop:function(e,t){return(e%t+t)%t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=void 0;var o=function(){function e(){this.observers_={}}return e.prototype.on=function(e,t){var n=this.observers_[e];return n||(n=this.observers_[e]=[]),n.push({handler:t}),this},e.prototype.off=function(e,t){var n=this.observers_[e];return n&&(this.observers_[e]=n.filter((function(e){return e.handler!==t}))),this},e.prototype.emit=function(e,t){var n=this.observers_[e];n&&n.forEach((function(e){e.handler(t)}))},e}();t.Emitter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBaseStepForColor=t.getSuitableMaxValueForPoint2dPad=t.getSuitableDecimalDigits=t.isArrowKey=t.isVerticalArrowKey=t.getHorizontalStepKeys=t.getVerticalStepKeys=t.getStepForKey=t.getStepForTextInput=t.findControllers=t.normalizeInputParamsOptions=void 0;var o=n(21),r=n(22),i=n(30),a=n(12),l=n(5),s=n(0),u=n(23);function p(e){var t=function(e){var t=e?a.ConstraintUtil.findConstraint(e,i.StepConstraint):null;return t?t.step:null}(e);return s.TypeUtil.getOrDefault(t,1)}function d(e){return 38===e||40===e}function c(e,t){var n=e&&a.ConstraintUtil.findConstraint(e,r.RangeConstraint);if(n)return Math.max(Math.abs(n.minValue||0),Math.abs(n.maxValue||0));var o=p(e);return Math.max(10*Math.abs(o),10*Math.abs(t))}t.normalizeInputParamsOptions=function(e,t){if(Array.isArray(e))return e.map((function(e){return{text:e.text,value:t(e.value)}}));var n=e;return Object.keys(n).reduce((function(e,o){return e.concat({text:o,value:t(n[o])})}),[])},t.findControllers=function e(t,n){return t.reduce((function(t,o){return o instanceof u.FolderController&&t.push.apply(t,e(o.uiContainer.items,n)),o instanceof n&&t.push(o),t}),[])},t.getStepForTextInput=p,t.getStepForKey=function(e,t){var n=e*(t.altKey?.1:1)*(t.shiftKey?10:1);return t.upKey?+n:t.downKey?-n:0},t.getVerticalStepKeys=function(e){return{altKey:e.altKey,downKey:40===e.keyCode,shiftKey:e.shiftKey,upKey:38===e.keyCode}},t.getHorizontalStepKeys=function(e){return{altKey:e.altKey,downKey:37===e.keyCode,shiftKey:e.shiftKey,upKey:39===e.keyCode}},t.isVerticalArrowKey=d,t.isArrowKey=function(e){return d(e)||37===e||39===e},t.getSuitableDecimalDigits=function(e,t){var n=e&&a.ConstraintUtil.findConstraint(e,i.StepConstraint);return n?l.NumberUtil.getDecimalDigits(n.step):Math.max(l.NumberUtil.getDecimalDigits(t),2)},t.getSuitableMaxValueForPoint2dPad=function(e,t){var n=e instanceof o.Point2dConstraint?e.xConstraint:void 0,r=e instanceof o.Point2dConstraint?e.yConstraint:void 0,i=c(n,t.x),a=c(r,t.y);return Math.max(i,a)},t.getBaseStepForColor=function(e){return e?.1:1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewModel=void 0;var o=n(6),r=n(0),i=n(28),a=function(){function e(){this.onDispose_=this.onDispose_.bind(this),this.emitter=new o.Emitter,this.positions_=[],this.hidden_=!1,this.disposable_=new i.Disposable,this.disposable_.emitter.on("dispose",this.onDispose_)}return Object.defineProperty(e.prototype,"hidden",{get:function(){return this.hidden_},set:function(e){this.hidden_!==e&&(this.hidden_=e,this.emitter.emit("change",{propertyName:"hidden",sender:this}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"positions",{get:function(){return this.positions_},set:function(e){r.TypeUtil.deepEqualsArray(e,this.positions_)||(this.positions_=e,this.emitter.emit("change",{propertyName:"positions",sender:this}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disposed",{get:function(){return this.disposable_.disposed},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.disposable_.dispose()},e.prototype.onDispose_=function(){this.emitter.emit("dispose",{sender:this})},e}();t.ViewModel=a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.findNextTarget=t.indexOfChildElement=t.removeElement=t.insertElementAt=t.createSvgIconElement=t.getCanvasContext=t.getWindowDocument=t.supportsTouch=t.disableTransitionTemporarily=t.forceReflow=t.SVG_NS=void 0;var o=n(0);t.SVG_NS="http://www.w3.org/2000/svg",t.forceReflow=function(e){e.offsetHeight},t.disableTransitionTemporarily=function(e,t){var n=e.style.transition;e.style.transition="none",t(),e.style.transition=n},t.supportsTouch=function(e){return void 0!==e.ontouchstart},t.getWindowDocument=function(){return o.TypeUtil.forceCast(new Function("return this")()).document},t.getCanvasContext=function(t){return e.browser?t.getContext("2d"):null};var r={p2dpad:'<path d="M8 2V14" stroke="currentColor" stroke-width="1.5"/><path d="M2 8H14" stroke="currentColor" stroke-width="1.5"/><circle cx="8" cy="8" r="2" fill="currentColor"/>'};t.createSvgIconElement=function(e,n){var o=e.createElementNS(t.SVG_NS,"svg");return o.innerHTML=r[n],o},t.insertElementAt=function(e,t,n){e.insertBefore(t,e.children[n])},t.removeElement=function(e){e.parentElement&&e.parentElement.removeChild(e)},t.indexOfChildElement=function(e){var t=e.parentElement;return t?Array.prototype.slice.call(t.children).indexOf(e):-1},t.findNextTarget=function(e){return e.relatedTarget?o.TypeUtil.forceCast(e.relatedTarget):"explicitOriginalTarget"in e?e.explicitOriginalTarget:null}}).call(this,n(69))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Color=void 0;var o=n(31),r=n(5),i=n(0),a={hsl:function(e){return[r.NumberUtil.loop(e[0],360),r.NumberUtil.constrain(e[1],0,100),r.NumberUtil.constrain(e[2],0,100),r.NumberUtil.constrain(i.TypeUtil.getOrDefault(e[3],1),0,1)]},hsv:function(e){return[r.NumberUtil.loop(e[0],360),r.NumberUtil.constrain(e[1],0,100),r.NumberUtil.constrain(e[2],0,100),r.NumberUtil.constrain(i.TypeUtil.getOrDefault(e[3],1),0,1)]},rgb:function(e){return[r.NumberUtil.constrain(e[0],0,255),r.NumberUtil.constrain(e[1],0,255),r.NumberUtil.constrain(e[2],0,255),r.NumberUtil.constrain(i.TypeUtil.getOrDefault(e[3],1),0,1)]}};function l(e,t){return"object"==typeof e&&!i.TypeUtil.isEmpty(e)&&(t in e&&"number"==typeof e[t])}var s=function(){function e(e,t){this.mode_=t,this.comps_=a[t](e)}return e.fromObject=function(t){return new e("a"in t?[t.r,t.g,t.b,t.a]:[t.r,t.g,t.b],"rgb")},e.toRgbaObject=function(e){return e.toRgbaObject()},e.isRgbColorObject=function(e){return l(e,"r")&&l(e,"g")&&l(e,"b")},e.isRgbaColorObject=function(e){return this.isRgbColorObject(e)&&l(e,"a")},e.isColorObject=function(e){return this.isRgbColorObject(e)},Object.defineProperty(e.prototype,"mode",{get:function(){return this.mode_},enumerable:!1,configurable:!0}),e.prototype.getComponents=function(e){return o.withAlpha(o.convertMode(o.withoutAlpha(this.comps_),this.mode_,e||this.mode_),this.comps_[3])},e.prototype.toRgbaObject=function(){var e=this.getComponents("rgb");return{r:e[0],g:e[1],b:e[2],a:e[3]}},e}();t.Color=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputBindingController=void 0;var o=n(40),r=function(){function e(e,t){this.binding=t.binding,this.controller=t.controller,this.view=new o.LabeledView(e,{model:this.controller.viewModel,label:t.label,view:this.controller.view})}return Object.defineProperty(e.prototype,"viewModel",{get:function(){return this.controller.viewModel},enumerable:!1,configurable:!0}),e}();t.InputBindingController=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintUtil=void 0;var o=n(16);t.ConstraintUtil={findConstraint:function(e,t){if(e instanceof t)return e;if(e instanceof o.CompositeConstraint){var n=e.constraints.reduce((function(e,n){return e||(n instanceof t?n:null)}),null);if(n)return n}return null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputValue=void 0;var o=n(6),r=function(){function e(e,t){this.constraint_=t,this.emitter=new o.Emitter,this.rawValue_=e}return e.equalsValue=function(e,t){return e===t},Object.defineProperty(e.prototype,"constraint",{get:function(){return this.constraint_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawValue",{get:function(){return this.rawValue_},set:function(t){var n=this.constraint_?this.constraint_.constrain(t):t;!e.equalsValue(this.rawValue_,n)&&(this.rawValue_=n,this.emitter.emit("change",{rawValue:n,sender:this}))},enumerable:!1,configurable:!0}),e}();t.InputValue=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFormatter=void 0;var o=function(){function e(e){this.digits_=e}return Object.defineProperty(e.prototype,"digits",{get:function(){return this.digits_},enumerable:!1,configurable:!0}),e.prototype.format=function(e){return e.toFixed(Math.max(Math.min(this.digits_,20),0))},e}();t.NumberFormatter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputBinding=void 0;var o=n(6),r=function(){function e(e){this.onValueChange_=this.onValueChange_.bind(this),this.reader_=e.reader,this.writer_=e.writer,this.emitter=new o.Emitter,this.value=e.value,this.value.emitter.on("change",this.onValueChange_),this.target=e.target,this.read()}return e.prototype.read=function(){var e=this.target.read();void 0!==e&&(this.value.rawValue=this.reader_(e))},e.prototype.getValueToWrite=function(e){return this.writer_(e)},e.prototype.write_=function(e){this.target.write(this.getValueToWrite(e))},e.prototype.onValueChange_=function(e){this.write_(e.rawValue),this.emitter.emit("change",{rawValue:e.rawValue,sender:this})},e}();t.InputBinding=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeConstraint=void 0;var o=function(){function e(e){this.constraints_=e.constraints}return Object.defineProperty(e.prototype,"constraints",{get:function(){return this.constraints_},enumerable:!1,configurable:!0}),e.prototype.constrain=function(e){return this.constraints_.reduce((function(e,t){return t.constrain(e)}),e)},e}();t.CompositeConstraint=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point2d=void 0;var o=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.x=e,this.y=t}return e.prototype.getComponents=function(){return[this.x,this.y]},e.prototype.toObject=function(){return{x:this.x,y:this.y}},e}();t.Point2d=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonitorBindingController=void 0;var o=n(40),r=function(){function e(e,t){var n=this;this.binding=t.binding,this.controller=t.controller,this.view=new o.LabeledView(e,{label:t.label,model:this.viewModel,view:this.controller.view}),this.viewModel.emitter.on("dispose",(function(){n.binding.dispose()}))}return Object.defineProperty(e.prototype,"viewModel",{get:function(){return this.controller.viewModel},enumerable:!1,configurable:!0}),e}();t.MonitorBindingController=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PointerHandler=void 0;var o=n(9),r=n(6),i=function(){function e(e,t){this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.document=e,this.element=t,this.emitter=new r.Emitter,this.pressed_=!1,o.supportsTouch(this.document)?(t.addEventListener("touchstart",this.onTouchStart_),t.addEventListener("touchmove",this.onTouchMove_)):(t.addEventListener("mousedown",this.onMouseDown_),this.document.addEventListener("mousemove",this.onDocumentMouseMove_),this.document.addEventListener("mouseup",this.onDocumentMouseUp_))}return e.prototype.computePosition_=function(e,t){var n=this.element.getBoundingClientRect();return{px:e/n.width,py:t/n.height}},e.prototype.onMouseDown_=function(e){var t;e.preventDefault(),null===(t=e.currentTarget)||void 0===t||t.focus(),this.pressed_=!0,this.emitter.emit("down",{data:this.computePosition_(e.offsetX,e.offsetY),sender:this})},e.prototype.onDocumentMouseMove_=function(e){if(this.pressed_){var t=this.document.defaultView,n=this.element.getBoundingClientRect();this.emitter.emit("move",{data:this.computePosition_(e.pageX-((t&&t.scrollX||0)+n.left),e.pageY-((t&&t.scrollY||0)+n.top)),sender:this})}},e.prototype.onDocumentMouseUp_=function(e){if(this.pressed_){this.pressed_=!1;var t=this.document.defaultView,n=this.element.getBoundingClientRect();this.emitter.emit("up",{data:this.computePosition_(e.pageX-((t&&t.scrollX||0)+n.left),e.pageY-((t&&t.scrollY||0)+n.top)),sender:this})}},e.prototype.onTouchStart_=function(e){e.preventDefault();var t=e.targetTouches[0],n=this.element.getBoundingClientRect();this.emitter.emit("down",{data:this.computePosition_(t.clientX-n.left,t.clientY-n.top),sender:this})},e.prototype.onTouchMove_=function(e){var t=e.targetTouches[0],n=this.element.getBoundingClientRect();this.emitter.emit("move",{data:this.computePosition_(t.clientX-n.left,t.clientY-n.top),sender:this})},e}();t.PointerHandler=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListConstraint=void 0;var o=function(){function e(e){this.opts_=e.options}return Object.defineProperty(e.prototype,"options",{get:function(){return this.opts_},enumerable:!1,configurable:!0}),e.prototype.constrain=function(e){var t=this.opts_;return 0===t.length||t.filter((function(t){return t.value===e})).length>0?e:t[0].value},e}();t.ListConstraint=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point2dConstraint=void 0;var o=n(17),r=function(){function e(e){this.xConstraint=e.x,this.yConstraint=e.y}return e.prototype.constrain=function(e){return new o.Point2d(this.xConstraint?this.xConstraint.constrain(e.x):e.x,this.yConstraint?this.yConstraint.constrain(e.y):e.y)},e}();t.Point2dConstraint=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RangeConstraint=void 0;var o=n(0),r=function(){function e(e){this.maxValue=e.max,this.minValue=e.min}return e.prototype.constrain=function(e){var t=e;return o.TypeUtil.isEmpty(this.minValue)||(t=Math.max(t,this.minValue)),o.TypeUtil.isEmpty(this.maxValue)||(t=Math.min(t,this.maxValue)),t},e}();t.RangeConstraint=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FolderController=void 0;var o=n(9),r=n(0),i=n(41),a=n(42),l=n(71),s=n(43),u=function(){function e(e,t){this.onContainerTransitionEnd_=this.onContainerTransitionEnd_.bind(this),this.onFolderBeforeChange_=this.onFolderBeforeChange_.bind(this),this.onTitleClick_=this.onTitleClick_.bind(this),this.onUiContainerAdd_=this.onUiContainerAdd_.bind(this),this.onUiContainerItemLayout_=this.onUiContainerItemLayout_.bind(this),this.onUiContainerRemove_=this.onUiContainerRemove_.bind(this),this.viewModel=t.viewModel,this.folder=new i.Folder(t.title,r.TypeUtil.getOrDefault(t.expanded,!0)),this.folder.emitter.on("beforechange",this.onFolderBeforeChange_),this.ucList_=new a.UiContainer,this.ucList_.emitter.on("add",this.onUiContainerAdd_),this.ucList_.emitter.on("itemlayout",this.onUiContainerItemLayout_),this.ucList_.emitter.on("remove",this.onUiContainerRemove_),this.doc_=e,this.view=new l.FolderView(this.doc_,{folder:this.folder,model:this.viewModel}),this.view.titleElement.addEventListener("click",this.onTitleClick_),this.view.containerElement.addEventListener("transitionend",this.onContainerTransitionEnd_)}return Object.defineProperty(e.prototype,"document",{get:function(){return this.doc_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uiContainer",{get:function(){return this.ucList_},enumerable:!1,configurable:!0}),e.prototype.onFolderBeforeChange_=function(e){"expanded"===e.propertyName&&(r.TypeUtil.isEmpty(this.folder.expandedHeight)&&(this.folder.expandedHeight=s.computeExpandedFolderHeight(this.folder,this.view.containerElement)),this.folder.shouldFixHeight=!0,o.forceReflow(this.view.containerElement))},e.prototype.onTitleClick_=function(){this.folder.expanded=!this.folder.expanded},e.prototype.applyUiContainerChange_=function(){s.updateAllItemsPositions(this.uiContainer)},e.prototype.onUiContainerAdd_=function(e){o.insertElementAt(this.view.containerElement,e.uiController.view.element,e.index),this.applyUiContainerChange_()},e.prototype.onUiContainerRemove_=function(e){this.applyUiContainerChange_()},e.prototype.onUiContainerItemLayout_=function(e){this.applyUiContainerChange_()},e.prototype.onContainerTransitionEnd_=function(e){"height"===e.propertyName&&(this.folder.shouldFixHeight=!1,this.folder.expandedHeight=null)},e}();t.FolderController=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbaNumber=t.toRgbNumber=t.getStringifier=t.toFunctionalHslaString=t.toFunctionalHslString=t.toFunctionalRgbaString=t.toFunctionalRgbString=t.toHexRgbaString=t.toHexRgbString=t.fromNumberToRgba=t.fromNumberToRgb=t.fromObject=t.fromString=void 0;var o=n(14),r=n(31),i=n(5),a=n(10),l=n(44),s=n(45);function u(){return new a.Color([0,0,0],"rgb")}function p(e){var t=i.NumberUtil.constrain(Math.floor(e),0,255).toString(16);return 1===t.length?"0"+t:t}function d(e){return"#"+r.withoutAlpha(e.getComponents("rgb")).map(p).join("")}function c(e){var t=e.getComponents("rgb");return"#"+[t[0],t[1],t[2],255*t[3]].map(p).join("")}function h(e){var t=new o.NumberFormatter(0);return"rgb("+r.withoutAlpha(e.getComponents("rgb")).map((function(e){return t.format(e)})).join(", ")+")"}function f(e){var t=new o.NumberFormatter(2),n=new o.NumberFormatter(0);return"rgba("+e.getComponents("rgb").map((function(e,o){return(3===o?t:n).format(e)})).join(", ")+")"}function v(e){var t=new o.NumberFormatter(0);return"hsl("+r.withoutAlpha(e.getComponents("hsl")).map((function(e){return t.format(e)})).join(", ")+")"}function m(e){var t=new o.NumberFormatter(2),n=new o.NumberFormatter(0);return"hsla("+e.getComponents("hsl").map((function(e,o){return(3===o?t:n).format(e)})).join(", ")+")"}t.fromString=function(e){if("string"==typeof e){var t=s.CompositeParser(e);if(t)return t}return u()},t.fromObject=function(e){return a.Color.isColorObject(e)?a.Color.fromObject(e):u()},t.fromNumberToRgb=function(e){if("number"==typeof e){var t=l.RgbParser(e);if(t)return t}return u()},t.fromNumberToRgba=function(e){if("number"==typeof e){var t=l.RgbaParser(e);if(t)return t}return u()},t.toHexRgbString=d,t.toHexRgbaString=c,t.toFunctionalRgbString=h,t.toFunctionalRgbaString=f,t.toFunctionalHslString=v,t.toFunctionalHslaString=m;var _={"func.hsl":v,"func.hsla":m,"func.rgb":h,"func.rgba":f,"hex.rgb":d,"hex.rgba":c};t.getStringifier=function(e){return _[e]},t.toRgbNumber=function(e){return r.withoutAlpha(e.getComponents("rgb")).reduce((function(e,t){return e<<8|255&Math.floor(t)}),0)},t.toRgbaNumber=function(e){return e.getComponents("rgb").reduce((function(e,t,n){return e<<8|255&Math.floor(3===n?255*t:t)}),0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringNumberParser=void 0,t.StringNumberParser=function(e){var t=parseFloat(e);return isNaN(t)?null:t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.folder=t.monitor=t.input=void 0,t.input=function(e){var t=e.binding,n=e.eventName,o=e.handler;"change"===n&&t.emitter.on("change",(function(e){o(e.sender.getValueToWrite(e.rawValue))}))},t.monitor=function(e){var t=e.binding,n=e.eventName,o=e.handler;"update"===n&&t.emitter.on("update",(function(e){o(e.sender.target.read())}))},t.folder=function(e){var t=e.eventName,n=e.folder,o=e.handler,r=e.uiContainer;"change"===t&&r.emitter.on("inputchange",(function(e){o(e.inputBinding.getValueToWrite(e.value))})),"update"===t&&r.emitter.on("monitorupdate",(function(e){o(e.monitorBinding.target.read())})),"fold"===t&&(r.emitter.on("itemfold",(function(e){o(e.expanded)})),null==n||n.emitter.on("change",(function(e){"expanded"===e.propertyName&&o(e.sender.expanded)})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toString=t.fromMixed=void 0,t.fromMixed=function(e){return"false"!==e&&!!e},t.toString=function(e){return String(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0;var o=n(6),r=function(){function e(){this.emitter=new o.Emitter,this.disposed_=!1}return Object.defineProperty(e.prototype,"disposed",{get:function(){return this.disposed_},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){return!this.disposed_&&(this.disposed_=!0,this.emitter.emit("dispose",{sender:this}),!0)},e}();t.Disposable=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListInputController=void 0;var o=n(20),r=n(12),i=n(0),a=n(68);var l=function(){function e(e,t){var n,i;this.onSelectChange_=this.onSelectChange_.bind(this),this.value_=t.value,this.listItems_=(n=this.value_,((i=n.constraint?r.ConstraintUtil.findConstraint(n.constraint,o.ListConstraint):null)?i.options:null)||[]),this.viewModel=t.viewModel,this.view_=new a.ListInputView(e,{model:this.viewModel,options:this.listItems_,stringifyValue:t.stringifyValue,value:this.value_}),this.view_.selectElement.addEventListener("change",this.onSelectChange_)}return Object.defineProperty(e.prototype,"value",{get:function(){return this.value_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this.view_},enumerable:!1,configurable:!0}),e.prototype.onSelectChange_=function(e){var t=i.TypeUtil.forceCast(e.currentTarget).selectedOptions.item(0);if(t){var n=Number(t.dataset.index);this.value_.rawValue=this.listItems_[n].value,this.view_.update()}},e}();t.ListInputController=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StepConstraint=void 0;var o=function(){function e(e){this.step=e.step}return e.prototype.constrain=function(e){return(e<0?-Math.round(-e/this.step):Math.round(e/this.step))*this.step},e}();t.StepConstraint=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertMode=t.withAlpha=t.withoutAlpha=t.opaque=t.hsvToRgb=void 0;var o=n(5);function r(e,t,n){var r=o.NumberUtil.constrain(e/255,0,1),i=o.NumberUtil.constrain(t/255,0,1),a=o.NumberUtil.constrain(n/255,0,1),l=Math.max(r,i,a),s=Math.min(r,i,a),u=l-s,p=0,d=0,c=(s+l)/2;return 0!==u&&(d=c>.5?u/(2-s-l):u/(l+s),p=(p=r===l?(i-a)/u:i===l?2+(a-r)/u:4+(r-i)/u)/6+(p<0?1:0)),[360*p,100*d,100*c]}function i(e,t,n){var r,i,a,l,s,u,p,d,c,h=(e%360+360)%360,f=o.NumberUtil.constrain(t/100,0,1),v=o.NumberUtil.constrain(n/100,0,1),m=(1-Math.abs(2*v-1))*f,_=m*(1-Math.abs(h/60%2-1)),b=v-m/2;return h>=0&&h<60?(p=(r=[m,_,0])[0],d=r[1],c=r[2]):h>=60&&h<120?(p=(i=[_,m,0])[0],d=i[1],c=i[2]):h>=120&&h<180?(p=(a=[0,m,_])[0],d=a[1],c=a[2]):h>=180&&h<240?(p=(l=[0,_,m])[0],d=l[1],c=l[2]):h>=240&&h<300?(p=(s=[_,0,m])[0],d=s[1],c=s[2]):(p=(u=[m,0,_])[0],d=u[1],c=u[2]),[255*(p+b),255*(d+b),255*(c+b)]}function a(e,t,n){var r=o.NumberUtil.constrain(e/255,0,1),i=o.NumberUtil.constrain(t/255,0,1),a=o.NumberUtil.constrain(n/255,0,1),l=Math.max(r,i,a),s=l-Math.min(r,i,a);return[0===s?0:l===r?((i-a)/s%6+6)%6*60:l===i?60*((a-r)/s+2):60*((r-i)/s+4),100*(0===l?0:s/l),100*l]}function l(e,t,n){var r,i,a,l,s,u,p,d,c,h=o.NumberUtil.loop(e,360),f=o.NumberUtil.constrain(t/100,0,1),v=o.NumberUtil.constrain(n/100,0,1),m=v*f,_=m*(1-Math.abs(h/60%2-1)),b=v-m;return h>=0&&h<60?(p=(r=[m,_,0])[0],d=r[1],c=r[2]):h>=60&&h<120?(p=(i=[_,m,0])[0],d=i[1],c=i[2]):h>=120&&h<180?(p=(a=[0,m,_])[0],d=a[1],c=a[2]):h>=180&&h<240?(p=(l=[0,_,m])[0],d=l[1],c=l[2]):h>=240&&h<300?(p=(s=[_,0,m])[0],d=s[1],c=s[2]):(p=(u=[m,0,_])[0],d=u[1],c=u[2]),[255*(p+b),255*(d+b),255*(c+b)]}t.hsvToRgb=l,t.opaque=function(e){return[e[0],e[1],e[2],1]},t.withoutAlpha=function(e){return[e[0],e[1],e[2]]},t.withAlpha=function(e,t){return[e[0],e[1],e[2],t]};var s={hsl:{hsl:function(e,t,n){return[e,t,n]},hsv:function(e,t,n){var o=i(e,t,n);return a(o[0],o[1],o[2])},rgb:i},hsv:{hsl:function(e,t,n){var o=l(e,t,n);return r(o[0],o[1],o[2])},hsv:function(e,t,n){return[e,t,n]},rgb:l},rgb:{hsl:r,hsv:a,rgb:function(e,t,n){return[e,t,n]}}};t.convertMode=function(e,t,n){var o;return(o=s[t])[n].apply(o,e)}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTextInputController=void 0;var i=n(0),a=n(7),l=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.onInputKeyDown_=o.onInputKeyDown_.bind(o),o.step_=i.TypeUtil.getOrDefault(n.step,a.getStepForTextInput(o.value.constraint)),o.view.inputElement.addEventListener("keydown",o.onInputKeyDown_),o}return r(t,e),t.prototype.onInputKeyDown_=function(e){var t=a.getStepForKey(this.step_,a.getVerticalStepKeys(e));0!==t&&(this.value.rawValue+=t,this.view.update())},t}(n(33).TextInputController);t.NumberTextInputController=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextInputController=void 0;var o=n(0),r=n(88),i=function(){function e(e,t){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=t.parser,this.value=t.value,this.viewModel=t.viewModel,this.view=new r.TextInputView(e,{formatter:t.formatter,model:this.viewModel,value:this.value}),this.view.inputElement.addEventListener("change",this.onInputChange_)}return e.prototype.onInputChange_=function(e){var t=o.TypeUtil.forceCast(e.currentTarget).value,n=this.parser_(t);o.TypeUtil.isEmpty(n)||(this.value.rawValue=n),this.view.update()},e}();t.TextInputController=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonitorBinding=void 0;var o=n(6),r=function(){function e(e){this.onTick_=this.onTick_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.reader_=e.reader,this.target=e.target,this.emitter=new o.Emitter,this.value=e.value,this.value.emitter.on("update",this.onValueUpdate_),this.ticker=e.ticker,this.ticker.emitter.on("tick",this.onTick_),this.read()}return e.prototype.dispose=function(){this.ticker.disposable.dispose()},e.prototype.read=function(){var e=this.target.read();void 0!==e&&this.value.append(this.reader_(e))},e.prototype.onTick_=function(e){this.read()},e.prototype.onValueUpdate_=function(e){this.emitter.emit("update",{rawValue:e.rawValue,sender:this})},e}();t.MonitorBinding=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonitorValue=void 0;var o=n(6),r=function(){function e(e){this.emitter=new o.Emitter,this.rawValues_=[],this.totalCount_=e}return Object.defineProperty(e.prototype,"rawValues",{get:function(){return this.rawValues_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalCount",{get:function(){return this.totalCount_},enumerable:!1,configurable:!0}),e.prototype.append=function(e){this.rawValues_.push(e),this.rawValues_.length>this.totalCount_&&this.rawValues_.splice(0,this.rawValues_.length-this.totalCount_),this.emitter.emit("update",{rawValue:e,sender:this})},e}();t.MonitorValue=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiLogMonitorController=void 0;var o=n(107),r=function(e,t){this.value=t.value,this.viewModel=t.viewModel,this.view=new o.MultiLogMonitorView(e,{formatter:t.formatter,model:this.viewModel,value:this.value})};t.MultiLogMonitorController=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleLogMonitorController=void 0;var o=n(108),r=function(e,t){this.value=t.value,this.viewModel=t.viewModel,this.view=new o.SingleLogMonitorView(e,{formatter:t.formatter,model:this.viewModel,value:this.value})};t.SingleLogMonitorController=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTicker=void 0;var o=n(109),r=n(110),i=n(111),a=n(0);t.createTicker=function(e,t){return 0===t?new i.ManualTicker:new r.IntervalTicker(e,a.TypeUtil.getOrDefault(t,o.Constants.monitorDefaultInterval))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var o=n(3),r=n(0),i=n(64),a=n(72),l=n(91),s=n(96),u=n(104);t.create=function(e,t,n){var p=t.read();if(r.TypeUtil.isEmpty(p))throw new o.PaneError({context:{key:t.key},type:"emptyvalue"});var d=[i.create,a.createWithNumber,a.createWithObject,a.createWithString,l.create,u.create,s.create].reduce((function(o,r){return o||r(e,t,n)}),null);if(d)return d;throw new o.PaneError({context:{key:t.key},type:"nomatchingcontroller"})}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LabeledView=void 0;var i=n(1),a=n(2),l=i.ClassName("lbl");var s=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.label=n.label,o.element.classList.add(l());var r=t.createElement("div");r.classList.add(l("l")),r.appendChild(function(e,t){var n=e.createDocumentFragment();return t.split("\n").map((function(t){return e.createTextNode(t)})).forEach((function(t,o){o>0&&n.appendChild(e.createElement("br")),n.appendChild(t)})),n}(t,o.label)),o.element.appendChild(r);var i=t.createElement("div");return i.classList.add(l("v")),i.appendChild(n.view.element),o.element.appendChild(i),o}return r(t,e),t}(a.View);t.LabeledView=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Folder=void 0;var o=n(6),r=n(0),i=function(){function e(e,t){this.emitter=new o.Emitter,this.expanded_=t,this.expandedHeight_=null,this.temporaryExpanded_=null,this.shouldFixHeight_=!1,this.title=e}return Object.defineProperty(e.prototype,"expanded",{get:function(){return this.expanded_},set:function(e){this.expanded_!==e&&(this.emitter.emit("beforechange",{propertyName:"expanded",sender:this}),this.expanded_=e,this.emitter.emit("change",{propertyName:"expanded",sender:this}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"temporaryExpanded",{get:function(){return this.temporaryExpanded_},set:function(e){this.temporaryExpanded_!==e&&(this.emitter.emit("beforechange",{propertyName:"temporaryExpanded",sender:this}),this.temporaryExpanded_=e,this.emitter.emit("change",{propertyName:"temporaryExpanded",sender:this}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expandedHeight",{get:function(){return this.expandedHeight_},set:function(e){this.expandedHeight_!==e&&(this.emitter.emit("beforechange",{propertyName:"expandedHeight",sender:this}),this.expandedHeight_=e,this.emitter.emit("change",{propertyName:"expandedHeight",sender:this}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldFixHeight",{get:function(){return this.shouldFixHeight_},set:function(e){this.shouldFixHeight_!==e&&(this.emitter.emit("beforechange",{propertyName:"shouldFixHeight",sender:this}),this.shouldFixHeight_=e,this.emitter.emit("change",{propertyName:"shouldFixHeight",sender:this}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styleExpanded",{get:function(){return r.TypeUtil.getOrDefault(this.temporaryExpanded,this.expanded)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styleHeight",{get:function(){return this.styleExpanded?this.shouldFixHeight&&!r.TypeUtil.isEmpty(this.expandedHeight)?this.expandedHeight+"px":"auto":"0"},enumerable:!1,configurable:!0}),e}();t.Folder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UiContainer=void 0;var o=n(23),r=n(11),i=n(18),a=n(6),l=n(70),s=function(){function e(){this.onItemFolderFold_=this.onItemFolderFold_.bind(this),this.onListItemLayout_=this.onListItemLayout_.bind(this),this.onSubitemLayout_=this.onSubitemLayout_.bind(this),this.onSubitemFolderFold_=this.onSubitemFolderFold_.bind(this),this.onSubitemInputChange_=this.onSubitemInputChange_.bind(this),this.onSubitemMonitorUpdate_=this.onSubitemMonitorUpdate_.bind(this),this.onItemInputChange_=this.onItemInputChange_.bind(this),this.onListAdd_=this.onListAdd_.bind(this),this.onListItemDispose_=this.onListItemDispose_.bind(this),this.onListRemove_=this.onListRemove_.bind(this),this.onItemMonitorUpdate_=this.onItemMonitorUpdate_.bind(this),this.ucList_=new l.List,this.emitter=new a.Emitter,this.ucList_.emitter.on("add",this.onListAdd_),this.ucList_.emitter.on("remove",this.onListRemove_)}return Object.defineProperty(e.prototype,"items",{get:function(){return this.ucList_.items},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){this.ucList_.add(e,t)},e.prototype.onListAdd_=function(e){var t=e.item;if(this.emitter.emit("add",{index:e.index,sender:this,uiController:t}),t.viewModel.emitter.on("dispose",this.onListItemDispose_),t.viewModel.emitter.on("change",this.onListItemLayout_),t instanceof r.InputBindingController)(n=t.binding.emitter).on("change",this.onItemInputChange_);else if(t instanceof i.MonitorBindingController){(n=t.binding.emitter).on("update",this.onItemMonitorUpdate_)}else if(t instanceof o.FolderController){var n;t.folder.emitter.on("change",this.onItemFolderFold_),(n=t.uiContainer.emitter).on("itemfold",this.onSubitemFolderFold_),n.on("itemlayout",this.onSubitemLayout_),n.on("inputchange",this.onSubitemInputChange_),n.on("monitorupdate",this.onSubitemMonitorUpdate_)}},e.prototype.onListRemove_=function(e){this.emitter.emit("remove",{sender:this})},e.prototype.onListItemLayout_=function(e){"hidden"!==e.propertyName&&"positions"!==e.propertyName||this.emitter.emit("itemlayout",{sender:this})},e.prototype.onListItemDispose_=function(e){var t=this;this.ucList_.items.filter((function(e){return e.viewModel.disposed})).forEach((function(e){t.ucList_.remove(e)}))},e.prototype.onItemInputChange_=function(e){this.emitter.emit("inputchange",{inputBinding:e.sender,sender:this,value:e.rawValue})},e.prototype.onItemMonitorUpdate_=function(e){this.emitter.emit("monitorupdate",{monitorBinding:e.sender,sender:this,value:e.rawValue})},e.prototype.onItemFolderFold_=function(e){"expanded"===e.propertyName&&this.emitter.emit("itemfold",{expanded:e.sender.expanded,sender:this})},e.prototype.onSubitemLayout_=function(e){this.emitter.emit("itemlayout",{sender:this})},e.prototype.onSubitemInputChange_=function(e){this.emitter.emit("inputchange",{inputBinding:e.inputBinding,sender:this,value:e.value})},e.prototype.onSubitemMonitorUpdate_=function(e){this.emitter.emit("monitorupdate",{monitorBinding:e.monitorBinding,sender:this,value:e.value})},e.prototype.onSubitemFolderFold_=function(e){this.emitter.emit("itemfold",{expanded:e.expanded,sender:this})},e}();t.UiContainer=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeExpandedFolderHeight=t.updateAllItemsPositions=void 0;var o=n(9);t.updateAllItemsPositions=function(e){var t=e.items.filter((function(e){return!e.viewModel.hidden})),n=t[0],o=t[t.length-1];e.items.forEach((function(e){var t=[];e===n&&t.push("first"),e===o&&t.push("last"),e.viewModel.positions=t}))},t.computeExpandedFolderHeight=function(e,t){var n=0;return o.disableTransitionTemporarily(t,(function(){e.expandedHeight=null,e.temporaryExpanded=!0,o.forceReflow(t),n=t.clientHeight,e.temporaryExpanded=null,o.forceReflow(t)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RgbaParser=t.RgbParser=void 0;var o=n(5),r=n(10);t.RgbParser=function(e){return new r.Color([e>>16&255,e>>8&255,255&e],"rgb")},t.RgbaParser=function(e){return new r.Color([e>>24&255,e>>16&255,e>>8&255,o.NumberUtil.map(255&e,0,255,0,1)],"rgb")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasAlphaComponent=t.CompositeParser=t.getNotation=void 0;var o=n(5),r=n(10);function i(e,t){var n=e.match(/^(.+)%$/);return n?Math.min(.01*parseFloat(n[1])*t,t):Math.min(parseFloat(e),t)}var a={deg:function(e){return e},grad:function(e){return 360*e/400},rad:function(e){return 360*e/(2*Math.PI)},turn:function(e){return 360*e}};function l(e){var t=e.match(/^([0-9.]+?)(deg|grad|rad|turn)$/);if(!t)return parseFloat(e);var n=parseFloat(t[1]),o=t[2];return a[o](n)}var s={"func.rgb":function(e){var t=e.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;var n=[i(t[1],255),i(t[2],255),i(t[3],255)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:new r.Color(n,"rgb")},"func.rgba":function(e){var t=e.match(/^rgba\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;var n=[i(t[1],255),i(t[2],255),i(t[3],255),i(t[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:new r.Color(n,"rgb")},"func.hsl":function(e){var t=e.match(/^hsl\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;var n=[l(t[1]),i(t[2],100),i(t[3],100)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:new r.Color(n,"hsl")},"func.hsla":function(e){var t=e.match(/^hsla\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!t)return null;var n=[l(t[1]),i(t[2],100),i(t[3],100),i(t[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:new r.Color(n,"hsl")},"hex.rgb":function(e){var t=e.match(/^#?([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(t)return new r.Color([parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)],"rgb");var n=e.match(/^#?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?new r.Color([parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)],"rgb"):null},"hex.rgba":function(e){var t=e.match(/^#?([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(t)return new r.Color([parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),o.NumberUtil.map(parseInt(t[4]+t[4],16),0,255,0,1)],"rgb");var n=e.match(/^#?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?new r.Color([parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),o.NumberUtil.map(parseInt(n[4],16),0,255,0,1)],"rgb"):null}};function u(e){return Object.keys(s).reduce((function(t,n){return t||((0,s[n])(e)?n:null)}),null)}t.getNotation=u,t.CompositeParser=function(e){var t=u(e);return t?s[t](e):null},t.hasAlphaComponent=function(e){return"func.hsla"===e||"func.rgba"===e||"hex.rgba"===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Foldable=void 0;var o=n(6),r=function(){function e(){this.emitter=new o.Emitter,this.expanded_=!1}return Object.defineProperty(e.prototype,"expanded",{get:function(){return this.expanded_},set:function(e){this.expanded_!==e&&(this.expanded_=e,this.emitter.emit("change",{sender:this}))},enumerable:!1,configurable:!0}),e}();t.Foldable=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toString=t.fromMixed=void 0;var o=n(0),r=n(25);t.fromMixed=function(e){if("number"==typeof e)return e;if("string"==typeof e){var t=r.StringNumberParser(e);if(!o.TypeUtil.isEmpty(t))return t}return 0},t.toString=function(e){return String(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyPoint2dParser=void 0;var o=n(0),r=n(17);t.AnyPoint2dParser=function(e){if(o.TypeUtil.isEmpty(e))return null;var t=e.x,n=e.y;return"number"!=typeof t||"number"!=typeof n?null:new r.Point2d(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toString=t.fromMixed=void 0,t.fromMixed=function(e){return String(e)},t.toString=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringFormatter=void 0;var o=function(){function e(){}return e.prototype.format=function(e){return e},e}();t.StringFormatter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var o=n(3),r=n(0),i=n(105),a=n(112),l=n(116);t.create=function(e,t,n){var s=t.read();if(r.TypeUtil.isEmpty(s))throw new o.PaneError({context:{key:t.key},type:"emptyvalue"});var u=[a.create,l.create,i.create].reduce((function(o,r){return o||r(e,t,n)}),null);if(u)return u;throw new o.PaneError({context:{key:t.key},type:"nomatchingcontroller"})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonController=void 0;var o=n(117),r=n(118),i=function(){function e(e,t){this.onButtonClick_=this.onButtonClick_.bind(this),this.button=new o.Button(t.title),this.viewModel=t.viewModel,this.view=new r.ButtonView(e,{button:this.button,model:this.viewModel}),this.view.buttonElement.addEventListener("click",this.onButtonClick_)}return e.prototype.onButtonClick_=function(){this.button.click()},e}();t.ButtonController=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorController=void 0;var o=n(119),r=function(e,t){this.viewModel=t.viewModel,this.view=new o.SeparatorView(e,{model:this.viewModel})};t.SeparatorController=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Target=void 0;var o=n(0),r=function(){function e(e,t,n){this.obj_=e,this.key_=t,this.presetKey_=o.TypeUtil.getOrDefault(n,t)}return Object.defineProperty(e.prototype,"key",{get:function(){return this.key_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"presetKey",{get:function(){return this.presetKey_},enumerable:!1,configurable:!0}),e.prototype.read=function(){return this.obj_[this.key_]},e.prototype.write=function(e){this.obj_[this.key_]=e},e}();t.Target=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonApi=void 0;var o=function(){function e(e){this.controller=e}return Object.defineProperty(e.prototype,"hidden",{get:function(){return this.controller.viewModel.hidden},set:function(e){this.controller.viewModel.hidden=e},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.controller.viewModel.dispose()},e.prototype.on=function(e,t){return this.controller.button.emitter.on(e,t.bind(this)),this},e}();t.ButtonApi=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputBindingApi=void 0;var o=n(26),r=function(){function e(e){this.controller=e}return Object.defineProperty(e.prototype,"hidden",{get:function(){return this.controller.viewModel.hidden},set:function(e){this.controller.viewModel.hidden=e},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.controller.viewModel.dispose()},e.prototype.on=function(e,t){return o.input({binding:this.controller.binding,eventName:e,handler:t.bind(this)}),this},e.prototype.refresh=function(){this.controller.binding.read()},e}();t.InputBindingApi=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonitorBindingApi=void 0;var o=n(26),r=function(){function e(e){this.controller=e}return Object.defineProperty(e.prototype,"hidden",{get:function(){return this.controller.viewModel.hidden},set:function(e){this.controller.viewModel.hidden=e},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.controller.viewModel.dispose()},e.prototype.on=function(e,t){return o.monitor({binding:this.controller.binding,eventName:e,handler:t.bind(this)}),this},e.prototype.refresh=function(){this.controller.binding.read()},e}();t.MonitorBindingApi=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorApi=void 0;var o=function(){function e(e){this.controller=e}return Object.defineProperty(e.prototype,"hidden",{get:function(){return this.controller.viewModel.hidden},set:function(e){this.controller.viewModel.hidden=e},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.controller.viewModel.dispose()},e}();t.SeparatorApi=o},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(60);var a=function(e){function t(t){var n=e.call(this,t)||this;return function(e){if(!e.querySelector("style[data-for=tweakpane]")){var t=e.createElement("style");t.dataset.for="tweakpane",t.textContent=i.toString(),e.head&&e.head.appendChild(t)}}(n.document),n}return r(t,e),t}(n(62).TweakpaneWithoutStyle);t.default=a},function(e,t,n){(e.exports=n(61)(!1)).push([e.i,".tp-fldv_t,.tp-rotv_t{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--folder-background-color);color:var(--folder-foreground-color);cursor:pointer;display:block;height:24px;line-height:24px;overflow:hidden;padding-left:30px;position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-fldv_t:hover,.tp-rotv_t:hover{background-color:var(--folder-background-color-hover)}.tp-fldv_t:focus,.tp-rotv_t:focus{background-color:var(--folder-background-color-focus)}.tp-fldv_t:active,.tp-rotv_t:active{background-color:var(--folder-background-color-active)}.tp-fldv_m,.tp-rotv_m{background:linear-gradient(to left, var(--folder-foreground-color), var(--folder-foreground-color) 2px, transparent 2px, transparent 4px, var(--folder-foreground-color) 4px);border-radius:2px;bottom:0;content:'';display:block;height:6px;left:12px;margin:auto;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-fldv.tp-fldv-expanded>.tp-fldv_t>.tp-fldv_m,.tp-rotv.tp-rotv-expanded .tp-rotv_m{transform:none}.tp-fldv_c,.tp-rotv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-fldv_c>.tp-fldv.tp-v-first,.tp-rotv_c>.tp-fldv.tp-v-first{margin-top:-4px}.tp-fldv_c>.tp-fldv.tp-v-last,.tp-rotv_c>.tp-fldv.tp-v-last{margin-bottom:-4px}.tp-fldv_c>*:not(.tp-v-first),.tp-rotv_c>*:not(.tp-v-first){margin-top:4px}.tp-fldv_c>.tp-fldv:not(.tp-v-hidden)+.tp-fldv,.tp-rotv_c>.tp-fldv:not(.tp-v-hidden)+.tp-fldv{margin-top:0}.tp-fldv_c>.tp-sptv:not(.tp-v-hidden)+.tp-sptv,.tp-rotv_c>.tp-sptv:not(.tp-v-hidden)+.tp-sptv{margin-top:0}.tp-fldv.tp-fldv-expanded>.tp-fldv_c,.tp-rotv.tp-rotv-expanded .tp-rotv_c{opacity:1;padding-bottom:4px;padding-top:4px;transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-btnv{padding:0 4px}.tp-btnv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--button-background-color);border-radius:2px;color:var(--button-foreground-color);cursor:pointer;display:block;font-weight:bold;height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.tp-btnv_b:hover{background-color:var(--button-background-color-hover)}.tp-btnv_b:focus{background-color:var(--button-background-color-focus)}.tp-btnv_b:active{background-color:var(--button-background-color-active)}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv.tp-fldv-expanded .tp-fldv_t{transition:border-radius 0s}.tp-fldv_c{border-left:var(--folder-background-color) solid 4px}.tp-fldv_t:hover+.tp-fldv_c{border-left-color:var(--folder-background-color-hover)}.tp-fldv_t:focus+.tp-fldv_c{border-left-color:var(--folder-background-color-focus)}.tp-fldv_t:active+.tp-fldv_c{border-left-color:var(--folder-background-color-active)}.tp-fldv_c>.tp-fldv{margin-left:4px}.tp-fldv_c>.tp-fldv>.tp-fldv_t{border-top-left-radius:2px;border-bottom-left-radius:2px}.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_t{border-bottom-left-radius:0}.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:2px}.tp-ckbiv_l{display:block;position:relative}.tp-ckbiv_i{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background:red;left:0;opacity:0;position:absolute;top:0}.tp-ckbiv_m{background-color:var(--input-background-color);border-radius:2px;cursor:pointer;display:block;height:20px;position:relative;width:20px}.tp-ckbiv_m::before{background-color:var(--input-foreground-color);border-radius:2px;bottom:4px;content:'';display:block;left:4px;opacity:0;position:absolute;right:4px;top:4px}.tp-ckbiv_i:hover+.tp-ckbiv_m{background-color:var(--input-background-color-hover)}.tp-ckbiv_i:focus+.tp-ckbiv_m{background-color:var(--input-background-color-focus)}.tp-ckbiv_i:active+.tp-ckbiv_m{background-color:var(--input-background-color-active)}.tp-ckbiv_i:checked+.tp-ckbiv_m::before{opacity:1}.tp-cctxtsiv{display:flex;width:100%}.tp-cctxtsiv_m{margin-right:4px;position:relative}.tp-cctxtsiv_ms{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;border-radius:2px;color:var(--label-foreground-color);cursor:pointer;height:20px;line-height:20px;padding:0 18px 0 4px}.tp-cctxtsiv_ms:hover{background-color:var(--input-background-color-hover)}.tp-cctxtsiv_ms:focus{background-color:var(--input-background-color-focus)}.tp-cctxtsiv_ms:active{background-color:var(--input-background-color-active)}.tp-cctxtsiv_mm{border-color:var(--label-foreground-color) transparent transparent;border-style:solid;border-width:3px;box-sizing:border-box;height:6px;pointer-events:none;width:6px;bottom:0;margin:auto;position:absolute;right:6px;top:3px}.tp-cctxtsiv_w{display:flex;flex:1}.tp-cctxtsiv_i{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--input-background-color);border-radius:2px;box-sizing:border-box;color:var(--input-foreground-color);font-family:inherit;height:20px;line-height:20px;min-width:0;width:100%;border-radius:0;flex:1;padding:0 4px}.tp-cctxtsiv_i:hover{background-color:var(--input-background-color-hover)}.tp-cctxtsiv_i:focus{background-color:var(--input-background-color-focus)}.tp-cctxtsiv_i:active{background-color:var(--input-background-color-active)}.tp-cctxtsiv_i:first-child{border-bottom-left-radius:2px;border-top-left-radius:2px}.tp-cctxtsiv_i:last-child{border-bottom-right-radius:2px;border-top-right-radius:2px}.tp-cctxtsiv_i+.tp-cctxtsiv_i{margin-left:2px}.tp-clpiv{background-color:var(--base-background-color);border-radius:6px;box-shadow:0 2px 4px var(--base-shadow-color);display:none;padding:4px;position:relative;visibility:hidden;z-index:1000}.tp-clpiv.tp-clpiv-expanded{display:block;visibility:visible}.tp-clpiv_h,.tp-clpiv_ap{margin-left:6px;margin-right:6px}.tp-clpiv_h{margin-top:4px}.tp-clpiv_rgb{display:flex;margin-top:4px;width:100%}.tp-clpiv_a{display:flex;margin-top:4px;padding-top:8px;position:relative}.tp-clpiv_a:before{background-color:var(--separator-color);content:'';height:4px;left:-4px;position:absolute;right:-4px;top:0}.tp-clpiv_ap{flex:3}.tp-clpiv_at{flex:1;margin-left:4px}.tp-svpiv{border-radius:2px;outline:none;overflow:hidden;position:relative}.tp-svpiv_c{cursor:crosshair;display:block;height:80px;width:100%}.tp-svpiv_m{border-radius:100%;border:rgba(255,255,255,0.75) solid 2px;box-sizing:border-box;-webkit-filter:drop-shadow(0 0 1px rgba(0,0,0,0.3));filter:drop-shadow(0 0 1px rgba(0,0,0,0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpiv:focus .tp-svpiv_m{border-color:#fff}.tp-hpliv{cursor:pointer;height:20px;outline:none;position:relative}.tp-hpliv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hpliv_m{border-radius:2px;border:rgba(255,255,255,0.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,0.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;top:50%;width:12px}.tp-hpliv:focus .tp-hpliv_m{border-color:#fff}.tp-apliv{cursor:pointer;height:20px;outline:none;position:relative}.tp-apliv_b{background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;background-color:#fff;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-apliv_c{bottom:0;left:0;position:absolute;right:0;top:0}.tp-apliv_m{background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;background-color:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,0.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;pointer-events:none;position:absolute;top:50%;width:12px}.tp-apliv_p{border-radius:2px;border:rgba(255,255,255,0.75) solid 2px;box-sizing:border-box;bottom:0;left:0;position:absolute;right:0;top:0}.tp-apliv:focus .tp-apliv_p{border-color:#fff}.tp-lstiv{display:block;padding:0;position:relative}.tp-lstiv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--button-background-color);border-radius:2px;color:var(--button-foreground-color);cursor:pointer;display:block;height:20px;line-height:20px;padding:0 4px;width:100%}.tp-lstiv_s:hover{background-color:var(--button-background-color-hover)}.tp-lstiv_s:focus{background-color:var(--button-background-color-focus)}.tp-lstiv_s:active{background-color:var(--button-background-color-active)}.tp-lstiv_m{border-color:var(--button-foreground-color) transparent transparent;border-style:solid;border-width:3px;box-sizing:border-box;height:6px;pointer-events:none;width:6px;bottom:0;margin:auto;position:absolute;right:6px;top:3px}.tp-p2dpadiv{background-color:var(--base-background-color);border-radius:6px;box-shadow:0 2px 4px var(--base-shadow-color);display:none;padding:4px 4px 4px 28px;position:relative;visibility:hidden;z-index:1000}.tp-p2dpadiv.tp-p2dpadiv-expanded{display:block;visibility:visible}.tp-p2dpadiv_p{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--input-background-color);border-radius:2px;box-sizing:border-box;color:var(--input-foreground-color);font-family:inherit;height:20px;line-height:20px;min-width:0;width:100%;cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpadiv_p:hover{background-color:var(--input-background-color-hover)}.tp-p2dpadiv_p:focus{background-color:var(--input-background-color-focus)}.tp-p2dpadiv_p:active{background-color:var(--input-background-color-active)}.tp-p2dpadiv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpadiv_ax{stroke:var(--input-guide-color)}.tp-p2dpadiv_l{stroke:var(--input-foreground-color);stroke-linecap:round;stroke-dasharray:1px 3px}.tp-p2dpadiv_m{fill:var(--input-foreground-color)}.tp-p2dpadtxtiv{display:flex;position:relative}.tp-p2dpadtxtiv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--button-background-color);border-radius:2px;color:var(--button-foreground-color);cursor:pointer;display:block;font-weight:bold;height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:20px;position:relative;width:20px}.tp-p2dpadtxtiv_b:hover{background-color:var(--button-background-color-hover)}.tp-p2dpadtxtiv_b:focus{background-color:var(--button-background-color-focus)}.tp-p2dpadtxtiv_b:active{background-color:var(--button-background-color-active)}.tp-p2dpadtxtiv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dpadtxtiv_p{left:-4px;position:absolute;right:-4px;top:20px}.tp-p2dpadtxtiv_t{margin-left:4px}.tp-p2dtxtiv{display:flex}.tp-p2dtxtiv_w{align-items:center;display:flex}.tp-p2dtxtiv_w+.tp-p2dtxtiv_w{margin-left:2px}.tp-p2dtxtiv_i{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--input-background-color);border-radius:2px;box-sizing:border-box;color:var(--input-foreground-color);font-family:inherit;height:20px;line-height:20px;min-width:0;width:100%;padding:0 4px;width:100%}.tp-p2dtxtiv_i:hover{background-color:var(--input-background-color-hover)}.tp-p2dtxtiv_i:focus{background-color:var(--input-background-color-focus)}.tp-p2dtxtiv_i:active{background-color:var(--input-background-color-active)}.tp-p2dtxtiv_w:nth-child(1) .tp-p2dtxtiv_i{border-top-right-radius:0;border-bottom-right-radius:0}.tp-p2dtxtiv_w:nth-child(2) .tp-p2dtxtiv_i{border-top-left-radius:0;border-bottom-left-radius:0}.tp-sldiv{display:block;padding:0}.tp-sldiv_o{box-sizing:border-box;cursor:pointer;height:20px;margin:0 6px;outline:none;position:relative}.tp-sldiv_o::before{background-color:var(--input-background-color);border-radius:1px;bottom:0;content:'';display:block;height:2px;left:0;margin:auto;position:absolute;right:0;top:0}.tp-sldiv_i{height:100%;left:0;position:absolute;top:0}.tp-sldiv_i::before{background-color:var(--button-background-color);border-radius:2px;bottom:0;content:'';display:block;height:12px;margin:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldiv_o:hover .tp-sldiv_i::before{background-color:var(--button-background-color-hover)}.tp-sldiv_o:focus .tp-sldiv_i::before{background-color:var(--button-background-color-focus)}.tp-sldiv_o:active .tp-sldiv_i::before{background-color:var(--button-background-color-active)}.tp-txtiv{display:block;padding:0}.tp-txtiv_i{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--input-background-color);border-radius:2px;box-sizing:border-box;color:var(--input-foreground-color);font-family:inherit;height:20px;line-height:20px;min-width:0;width:100%;padding:0 4px}.tp-txtiv_i:hover{background-color:var(--input-background-color-hover)}.tp-txtiv_i:focus{background-color:var(--input-background-color-focus)}.tp-txtiv_i:active{background-color:var(--input-background-color-active)}.tp-cswiv{background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;background-color:#fff;border-radius:2px}.tp-cswiv_sw{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--input-background-color);border-radius:2px;box-sizing:border-box;color:var(--input-foreground-color);font-family:inherit;height:20px;line-height:20px;min-width:0;width:100%}.tp-cswiv_sw:hover{background-color:var(--input-background-color-hover)}.tp-cswiv_sw:focus{background-color:var(--input-background-color-focus)}.tp-cswiv_sw:active{background-color:var(--input-background-color-active)}.tp-cswiv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;cursor:pointer;display:block;height:20px;left:0;margin:0;outline:none;padding:0;position:absolute;top:0;width:20px}.tp-cswiv_b:focus::after{border:rgba(255,255,255,0.75) solid 2px;border-radius:2px;bottom:0;content:'';display:block;left:0;position:absolute;right:0;top:0}.tp-cswiv_p{left:-4px;position:absolute;right:-4px;top:20px}.tp-cswtxtiv{display:flex;position:relative}.tp-cswtxtiv_s{flex-grow:0;flex-shrink:0;width:20px}.tp-cswtxtiv_t{flex:1;margin-left:4px}.tp-sldtxtiv{display:flex}.tp-sldtxtiv_s{flex:2}.tp-sldtxtiv_t{flex:1;margin-left:4px}.tp-lblv{align-items:center;display:flex;padding-left:4px;padding-right:4px}.tp-lblv_l{color:var(--label-foreground-color);flex:1;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:160px}.tp-grpmv{display:block;padding:0;position:relative}.tp-grpmv_g{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--monitor-background-color);border-radius:2px;box-sizing:border-box;color:var(--monitor-foreground-color);height:20px;width:100%;display:block;height:60px}.tp-grpmv_g polyline{fill:none;stroke:var(--monitor-foreground-color);stroke-linejoin:round}.tp-grpmv_t{color:var(--monitor-foreground-color);font-size:0.9em;left:0;pointer-events:none;position:absolute;text-indent:4px;top:0;visibility:hidden}.tp-grpmv_t.tp-grpmv_t-valid{visibility:visible}.tp-grpmv_t::before{background-color:var(--monitor-foreground-color);border-radius:100%;content:'';display:block;height:4px;left:-2px;position:absolute;top:-2px;width:4px}.tp-sglmv_i{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--monitor-background-color);border-radius:2px;box-sizing:border-box;color:var(--monitor-foreground-color);height:20px;width:100%;padding:0 4px}.tp-mllmv_i{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--monitor-background-color);border-radius:2px;box-sizing:border-box;color:var(--monitor-foreground-color);height:20px;width:100%;display:block;height:60px;line-height:20px;padding:0 4px;resize:none;white-space:pre}.tp-cswmv_sw{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0;background-color:var(--monitor-background-color);border-radius:2px;box-sizing:border-box;color:var(--monitor-foreground-color);height:20px;width:100%}.tp-rotv{--font-family: var(--tp-font-family, Roboto Mono,Source Code Pro,Menlo,Courier,monospace);--base-background-color: var(--tp-base-background-color, #2f3137);--base-shadow-color: var(--tp-base-shadow-color, rgba(0,0,0,0.2));--button-background-color: var(--tp-button-background-color, #adafb8);--button-background-color-active: var(--tp-button-background-color-active, #d6d7db);--button-background-color-focus: var(--tp-button-background-color-focus, #c8cad0);--button-background-color-hover: var(--tp-button-background-color-hover, #bbbcc4);--button-foreground-color: var(--tp-button-foreground-color, #2f3137);--folder-background-color: var(--tp-folder-background-color, rgba(200,202,208,0.1));--folder-background-color-active: var(--tp-folder-background-color-active, rgba(200,202,208,0.25));--folder-background-color-focus: var(--tp-folder-background-color-focus, rgba(200,202,208,0.2));--folder-background-color-hover: var(--tp-folder-background-color-hover, rgba(200,202,208,0.15));--folder-foreground-color: var(--tp-folder-foreground-color, #c8cad0);--input-background-color: var(--tp-input-background-color, rgba(200,202,208,0.15));--input-background-color-active: var(--tp-input-background-color-active, rgba(200,202,208,0.35));--input-background-color-focus: var(--tp-input-background-color-focus, rgba(200,202,208,0.25));--input-background-color-hover: var(--tp-input-background-color-hover, rgba(200,202,208,0.15));--input-foreground-color: var(--tp-input-foreground-color, #c8cad0);--input-guide-color: var(--tp-input-guide-color, rgba(47,49,55,0.5));--label-foreground-color: var(--tp-label-foreground-color, rgba(200,202,208,0.8));--monitor-background-color: var(--tp-monitor-background-color, rgba(24,24,27,0.5));--monitor-foreground-color: var(--tp-monitor-foreground-color, rgba(200,202,208,0.7));--separator-color: var(--tp-separator-color, rgba(24,24,27,0.3));background-color:var(--base-background-color);border-radius:6px;box-shadow:0 2px 4px var(--base-shadow-color);font-family:var(--font-family);font-size:11px;font-weight:500;text-align:left}.tp-rotv_t{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_t{border-bottom-left-radius:0;border-bottom-right-radius:0}.tp-rotv_m{transition:none}.tp-rotv_c>.tp-fldv:last-child>.tp-fldv_c{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.tp-rotv_c>.tp-fldv:last-child:not(.tp-fldv-expanded)>.tp-fldv_t{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.tp-rotv_c>.tp-fldv:first-child>.tp-fldv_t{border-top-left-radius:6px;border-top-right-radius:6px}.tp-sptv_r{background-color:var(--separator-color);border-width:0;display:block;height:4px;margin:0;width:100%}.tp-v.tp-v-hidden{display:none}\n",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[n].concat(i).concat([r]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TweakpaneWithoutStyle=void 0;var i=n(63),a=n(122),l=n(1),s=n(9),u=n(3),p=n(0),d=n(8);var c=function(e){function t(t){var n=this,o=t||{},r=p.TypeUtil.getOrDefault(o.document,s.getWindowDocument()),i=new a.RootController(r,{expanded:o.expanded,viewModel:new d.ViewModel,title:o.title});return(n=e.call(this,i)||this).containerElem_=o.container||function(e){var t=e.createElement("div");return t.classList.add(l.ClassName("dfw")()),e.body&&e.body.appendChild(t),t}(r),n.containerElem_.appendChild(n.element),n.doc_=r,n.usesDefaultWrapper_=!o.container,n}return r(t,e),t.prototype.dispose=function(){var t=this.containerElem_;if(!t)throw u.PaneError.alreadyDisposed();if(this.usesDefaultWrapper_){var n=t.parentElement;n&&n.removeChild(t)}this.containerElem_=null,this.doc_=null,e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"document",{get:function(){if(!this.doc_)throw u.PaneError.alreadyDisposed();return this.doc_},enumerable:!1,configurable:!0}),t}(i.RootApi);t.TweakpaneWithoutStyle=c},function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.RootApi=void 0;var r=n(39),i=n(51),a=n(52),l=n(23),s=n(11),u=n(18),p=n(53),d=n(7),c=n(54),h=n(8),f=n(55),v=n(26),m=n(120),_=n(56),b=n(57),g=n(121),y=n(58),w=function(){function e(e){this.controller=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this.controller.view.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){var e=this.controller.folder;return!e||e.expanded},set:function(e){var t=this.controller.folder;t&&(t.expanded=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this.controller.viewModel.hidden},set:function(e){this.controller.viewModel.hidden=e},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.controller.viewModel.dispose()},e.prototype.addInput=function(e,t,n){var o=n||{},i=r.create(this.controller.document,new c.Target(e,t,o.presetKey),o);return this.controller.uiContainer.add(i,o.index),new _.InputBindingApi(i)},e.prototype.addMonitor=function(e,t,n){var o=n||{},r=i.create(this.controller.document,new c.Target(e,t),o);return this.controller.uiContainer.add(r,o.index),new b.MonitorBindingApi(r)},e.prototype.addButton=function(e){var t=new a.ButtonController(this.controller.document,o(o({},e),{viewModel:new h.ViewModel}));return this.controller.uiContainer.add(t,e.index),new f.ButtonApi(t)},e.prototype.addFolder=function(e){var t=new l.FolderController(this.controller.document,o(o({},e),{viewModel:new h.ViewModel}));return this.controller.uiContainer.add(t,e.index),new m.FolderApi(t)},e.prototype.addSeparator=function(e){var t=e||{},n=new p.SeparatorController(this.controller.document,{viewModel:new h.ViewModel});return this.controller.uiContainer.add(n,t.index),new y.SeparatorApi(n)},e.prototype.importPreset=function(e){var t=d.findControllers(this.controller.uiContainer.items,s.InputBindingController).map((function(e){return e.binding.target}));g.importJson(t,e),this.refresh()},e.prototype.exportPreset=function(){var e=d.findControllers(this.controller.uiContainer.items,s.InputBindingController).map((function(e){return e.binding.target}));return g.exportJson(e)},e.prototype.on=function(e,t){return v.folder({eventName:e,folder:this.controller.folder,handler:t.bind(this),uiContainer:this.controller.uiContainer}),this},e.prototype.refresh=function(){d.findControllers(this.controller.uiContainer.items,s.InputBindingController).forEach((function(e){e.binding.read()})),d.findControllers(this.controller.uiContainer.items,u.MonitorBindingController).forEach((function(e){e.binding.read()}))},e}();t.RootApi=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var o=n(15),r=n(16),i=n(20),a=n(12),l=n(27),s=n(13),u=n(8),p=n(11),d=n(66),c=n(29),h=n(7);function f(e,t){var n=t.constraint;return n&&a.ConstraintUtil.findConstraint(n,i.ListConstraint)?new c.ListInputController(e,{viewModel:new u.ViewModel,stringifyValue:l.toString,value:t}):new d.CheckboxInputController(e,{viewModel:new u.ViewModel,value:t})}t.create=function(e,t,n){if("boolean"!=typeof t.read())return null;var a=new s.InputValue(!1,function(e){var t=[];return"options"in e&&void 0!==e.options&&t.push(new i.ListConstraint({options:h.normalizeInputParamsOptions(e.options,l.fromMixed)})),new r.CompositeConstraint({constraints:t})}(n)),u=new o.InputBinding({reader:l.fromMixed,target:t,value:a,writer:function(e){return e}});return new p.InputBindingController(e,{binding:u,controller:f(e,a),label:n.label||t.key})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAll=void 0,t.getAll=function(){return["first","last"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxInputController=void 0;var o=n(0),r=n(67),i=function(){function e(e,t){this.onInputChange_=this.onInputChange_.bind(this),this.value=t.value,this.viewModel=t.viewModel,this.view=new r.CheckboxInputView(e,{model:this.viewModel,value:this.value}),this.view.inputElement.addEventListener("change",this.onInputChange_)}return e.prototype.onInputChange_=function(e){var t=o.TypeUtil.forceCast(e.currentTarget);this.value.rawValue=t.checked,this.view.update()},e}();t.CheckboxInputController=i},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxInputView=void 0;var i=n(1),a=n(4),l=n(3),s=n(2),u=i.ClassName("ckb","input"),p=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueChange_=o.onValueChange_.bind(o),o.element.classList.add(u());var r=t.createElement("label");r.classList.add(u("l")),o.element.appendChild(r);var i=t.createElement("input");i.classList.add(u("i")),i.type="checkbox",r.appendChild(i),o.inputElem_=i;var l=t.createElement("div");return l.classList.add(u("m")),r.appendChild(l),n.value.emitter.on("change",o.onValueChange_),o.value=n.value,o.update(),n.model.emitter.on("dispose",(function(){o.inputElem_=a.disposeElement(o.inputElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"inputElement",{get:function(){if(!this.inputElem_)throw l.PaneError.alreadyDisposed();return this.inputElem_},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(!this.inputElem_)throw l.PaneError.alreadyDisposed();this.inputElem_.checked=this.value.rawValue},t.prototype.onValueChange_=function(){this.update()},t}(s.View);t.CheckboxInputView=p},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ListInputView=void 0;var i=n(1),a=n(4),l=n(3),s=n(2),u=i.ClassName("lst","input"),p=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueChange_=o.onValueChange_.bind(o),o.element.classList.add(u()),o.stringifyValue_=n.stringifyValue;var r=t.createElement("select");r.classList.add(u("s")),n.options.forEach((function(e,n){var i=t.createElement("option");i.dataset.index=String(n),i.textContent=e.text,i.value=o.stringifyValue_(e.value),r.appendChild(i)})),o.element.appendChild(r),o.selectElem_=r;var i=t.createElement("div");return i.classList.add(u("m")),o.element.appendChild(i),n.value.emitter.on("change",o.onValueChange_),o.value=n.value,o.update(),n.model.emitter.on("dispose",(function(){o.selectElem_=a.disposeElement(o.selectElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"selectElement",{get:function(){if(!this.selectElem_)throw l.PaneError.alreadyDisposed();return this.selectElem_},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(!this.selectElem_)throw l.PaneError.alreadyDisposed();this.selectElem_.value=this.stringifyValue_(this.value.rawValue)},t.prototype.onValueChange_=function(){this.update()},t}(s.View);t.ListInputView=p},function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var s,u=[],p=!1,d=-1;function c(){p&&s&&(p=!1,s.length?u=s.concat(u):d=-1,u.length&&h())}function h(){if(!p){var e=l(c);p=!0;for(var t=u.length;t;){for(s=u,u=[];++d<t;)s&&s[d].run();d=-1,t=u.length}s=null,p=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function v(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||p||l(h)},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=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var o=n(6),r=function(){function e(){this.emitter=new o.Emitter,this.items_=[]}return Object.defineProperty(e.prototype,"items",{get:function(){return this.items_},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){var n=void 0!==t?t:this.items_.length;this.items_.splice(n,0,e),this.emitter.emit("add",{index:n,item:e,sender:this})},e.prototype.remove=function(e){var t=this.items_.indexOf(e);t<0||(this.items_.splice(t,1),this.emitter.emit("remove",{sender:this}))},e}();t.List=r},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FolderView=void 0;var i=n(1),a=n(4),l=n(3),s=n(2),u=i.ClassName("fld"),p=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onFolderChange_=o.onFolderChange_.bind(o),o.folder_=n.folder,o.folder_.emitter.on("change",o.onFolderChange_),o.element.classList.add(u());var r=t.createElement("button");r.classList.add(u("t")),r.textContent=o.folder_.title,o.element.appendChild(r),o.titleElem_=r;var i=t.createElement("div");i.classList.add(u("m")),o.titleElem_.appendChild(i);var l=t.createElement("div");return l.classList.add(u("c")),o.element.appendChild(l),o.containerElem_=l,o.applyModel_(),n.model.emitter.on("dispose",(function(){o.containerElem_=a.disposeElement(o.containerElem_),o.titleElem_=a.disposeElement(o.titleElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"titleElement",{get:function(){if(!this.titleElem_)throw l.PaneError.alreadyDisposed();return this.titleElem_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerElement",{get:function(){if(!this.containerElem_)throw l.PaneError.alreadyDisposed();return this.containerElem_},enumerable:!1,configurable:!0}),t.prototype.applyModel_=function(){var e=this.containerElem_;if(!e)throw l.PaneError.alreadyDisposed();var t=this.folder_.styleExpanded,n=u(void 0,"expanded");t?this.element.classList.add(n):this.element.classList.remove(n),e.style.height=this.folder_.styleHeight},t.prototype.onFolderChange_=function(){this.applyModel_()},t}(s.View);t.FolderView=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWithObject=t.createWithNumber=t.createWithString=void 0;var o=n(15),r=n(24),i=n(73),a=n(10),l=n(13),s=n(8),u=n(44),p=n(45),d=n(11),c=n(74);t.createWithString=function(e,t,n){var a=t.read();if("string"!=typeof a)return null;var u=p.getNotation(a);if(!u)return null;var h=r.fromString,f=h(a),v=new l.InputValue(f),m=r.getStringifier(u);return new d.InputBindingController(e,{binding:new o.InputBinding({reader:h,target:t,value:v,writer:m}),controller:new c.ColorSwatchTextInputController(e,{formatter:new i.ColorFormatter(m),parser:p.CompositeParser,supportsAlpha:p.hasAlphaComponent(u),value:v,viewModel:new s.ViewModel}),label:n.label||t.key})},t.createWithNumber=function(e,t,n){var a=t.read();if("number"!=typeof a)return null;if(!("input"in n))return null;if("color"!==n.input&&"color.rgb"!==n.input&&"color.rgba"!==n.input)return null;var h="color.rgba"===n.input,f=(h?u.RgbaParser:u.RgbParser)(a);if(!f)return null;var v=h?new i.ColorFormatter(r.toHexRgbaString):new i.ColorFormatter(r.toHexRgbString),m=h?r.fromNumberToRgba:r.fromNumberToRgb,_=h?r.toRgbaNumber:r.toRgbNumber,b=new l.InputValue(f);return new d.InputBindingController(e,{binding:new o.InputBinding({reader:m,target:t,value:b,writer:_}),controller:new c.ColorSwatchTextInputController(e,{formatter:v,parser:p.CompositeParser,supportsAlpha:h,value:b,viewModel:new s.ViewModel}),label:n.label||t.key})},t.createWithObject=function(e,t,n){var u=t.read();if(!a.Color.isColorObject(u))return null;var h=a.Color.fromObject(u),f=a.Color.isRgbaColorObject(u),v=f?new i.ColorFormatter(r.toHexRgbaString):new i.ColorFormatter(r.toHexRgbString),m=new l.InputValue(h);return new d.InputBindingController(e,{binding:new o.InputBinding({reader:r.fromObject,target:t,value:m,writer:a.Color.toRgbaObject}),controller:new c.ColorSwatchTextInputController(e,{viewModel:new s.ViewModel,formatter:v,parser:p.CompositeParser,supportsAlpha:f,value:m}),label:n.label||t.key})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorFormatter=void 0;var o=function(){function e(e){this.stringifier_=e}return e.prototype.format=function(e){return this.stringifier_(e)},e}();t.ColorFormatter=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSwatchTextInputController=void 0;var o=n(75),r=n(76),i=n(33),a=function(e,t){this.value=t.value,this.viewModel=t.viewModel,this.swatchIc_=new r.ColorSwatchInputController(e,{supportsAlpha:t.supportsAlpha,value:this.value,viewModel:this.viewModel}),this.textIc_=new i.TextInputController(e,{formatter:t.formatter,parser:t.parser,value:this.value,viewModel:this.viewModel}),this.view=new o.ColorSwatchTextInputView(e,{swatchInputView:this.swatchIc_.view,textInputView:this.textIc_.view,model:this.viewModel})};t.ColorSwatchTextInputController=a},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSwatchTextInputView=void 0;var i=n(1),a=n(2),l=i.ClassName("cswtxt","input"),s=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.element.classList.add(l());var r=t.createElement("div");r.classList.add(l("s")),o.swatchInputView_=n.swatchInputView,r.appendChild(o.swatchInputView_.element),o.element.appendChild(r);var i=t.createElement("div");return i.classList.add(l("t")),o.textInputView=n.textInputView,i.appendChild(o.textInputView.element),o.element.appendChild(i),o}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.textInputView.value},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.swatchInputView_.update(),this.textInputView.update()},t}(a.View);t.ColorSwatchTextInputView=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSwatchInputController=void 0;var o=n(0),r=n(77),i=n(78),a=n(79),l=function(){function e(e,t){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.value=t.value,this.viewModel=t.viewModel,this.pickerIc_=new a.ColorPickerInputController(e,{pickedColor:new r.PickedColor(this.value),supportsAlpha:t.supportsAlpha,viewModel:this.viewModel}),this.view=new i.ColorSwatchInputView(e,{model:this.viewModel,pickerInputView:this.pickerIc_.view,value:this.value}),this.view.buttonElement.addEventListener("blur",this.onButtonBlur_),this.view.buttonElement.addEventListener("click",this.onButtonClick_),this.pickerIc_.triggerElement=this.view.buttonElement}return e.prototype.onButtonBlur_=function(e){var t=this.view.element,n=o.TypeUtil.forceCast(e.relatedTarget);n&&t.contains(n)||(this.pickerIc_.foldable.expanded=!1)},e.prototype.onButtonClick_=function(){this.pickerIc_.foldable.expanded=!this.pickerIc_.foldable.expanded,this.pickerIc_.foldable.expanded&&this.pickerIc_.view.allFocusableElements[0].focus()},e}();t.ColorSwatchInputController=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PickedColor=void 0;var o=n(6),r=function(){function e(e){this.onValueChange_=this.onValueChange_.bind(this),this.mode_="rgb",this.value=e,this.value.emitter.on("change",this.onValueChange_),this.emitter=new o.Emitter}return Object.defineProperty(e.prototype,"mode",{get:function(){return this.mode_},set:function(e){this.mode_!==e&&(this.mode_=e,this.emitter.emit("change",{propertyName:"mode",sender:this}))},enumerable:!1,configurable:!0}),e.prototype.onValueChange_=function(){this.emitter.emit("change",{propertyName:"value",sender:this})},e}();t.PickedColor=r},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSwatchInputView=void 0;var i=n(24),a=n(1),l=n(4),s=n(3),u=n(2),p=a.ClassName("csw","input"),d=function(e){function t(t,n){var o=e.call(this,t,n)||this;if(null===o.element)throw s.PaneError.alreadyDisposed();o.onValueChange_=o.onValueChange_.bind(o),n.value.emitter.on("change",o.onValueChange_),o.value=n.value,o.element.classList.add(p());var r=t.createElement("div");r.classList.add(p("sw")),o.element.appendChild(r),o.swatchElem_=r;var i=t.createElement("button");i.classList.add(p("b")),o.element.appendChild(i),o.buttonElem_=i;var a=t.createElement("div");return a.classList.add(p("p")),o.pickerView_=n.pickerInputView,a.appendChild(o.pickerView_.element),o.element.appendChild(a),o.update(),n.model.emitter.on("dispose",(function(){o.buttonElem_=l.disposeElement(o.buttonElem_),o.swatchElem_=l.disposeElement(o.swatchElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"buttonElement",{get:function(){if(null===this.buttonElem_)throw s.PaneError.alreadyDisposed();return this.buttonElem_},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(!this.swatchElem_)throw s.PaneError.alreadyDisposed();var e=this.value.rawValue;this.swatchElem_.style.backgroundColor=i.toHexRgbaString(e)},t.prototype.onValueChange_=function(){this.update()},t}(u.View);t.ColorSwatchInputView=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPickerInputController=void 0;var o=n(14),r=n(9),i=n(10),a=n(46),l=n(13),s=n(80),u=n(25),p=n(81),d=n(82),c=n(84),h=n(86),f=n(32),v=n(89),m=function(){function e(e,t){var n=this;this.triggerElement=null,this.onFocusableElementBlur_=this.onFocusableElementBlur_.bind(this),this.onKeyDown_=this.onKeyDown_.bind(this),this.pickedColor=t.pickedColor,this.foldable=new a.Foldable,this.viewModel=t.viewModel,this.hPaletteIc_=new h.HPaletteInputController(e,{value:this.pickedColor.value,viewModel:this.viewModel}),this.svPaletteIc_=new v.SvPaletteInputController(e,{value:this.pickedColor.value,viewModel:this.viewModel}),this.alphaIcs_=t.supportsAlpha?{palette:new d.APaletteInputController(e,{value:this.pickedColor.value,viewModel:this.viewModel}),text:new f.NumberTextInputController(e,{formatter:new o.NumberFormatter(2),parser:u.StringNumberParser,step:.1,value:new l.InputValue(0),viewModel:this.viewModel})}:null,this.alphaIcs_&&s.connect({primary:{apply:function(e,t){t.rawValue=e.value.rawValue.getComponents()[3]},emitter:function(e){return e.value.emitter},value:this.pickedColor},secondary:{apply:function(e,t){var n=t.value.rawValue.getComponents();n[3]=e.rawValue,t.value.rawValue=new i.Color(n,t.value.rawValue.mode)},emitter:function(e){return e.emitter},value:this.alphaIcs_.text.value}}),this.compTextsIc_=new c.ColorComponentTextsInputController(e,{parser:u.StringNumberParser,pickedColor:this.pickedColor,viewModel:this.viewModel}),this.view=new p.ColorPickerInputView(e,{alphaInputViews:this.alphaIcs_?{palette:this.alphaIcs_.palette.view,text:this.alphaIcs_.text.view}:null,componentTextsView:this.compTextsIc_.view,foldable:this.foldable,hPaletteInputView:this.hPaletteIc_.view,model:this.viewModel,pickedColor:this.pickedColor,supportsAlpha:t.supportsAlpha,svPaletteInputView:this.svPaletteIc_.view}),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.allFocusableElements.forEach((function(e){e.addEventListener("blur",n.onFocusableElementBlur_)}))}return Object.defineProperty(e.prototype,"value",{get:function(){return this.pickedColor.value},enumerable:!1,configurable:!0}),e.prototype.onFocusableElementBlur_=function(e){var t=this.view.element,n=r.findNextTarget(e);n&&t.contains(n)||n&&n===this.triggerElement&&!r.supportsTouch(t.ownerDocument)||(this.foldable.expanded=!1)},e.prototype.onKeyDown_=function(e){27===e.keyCode&&(this.foldable.expanded=!1)},e}();t.ColorPickerInputController=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0,t.connect=function(e){var t=e.primary,n=e.secondary;t.emitter(t.value).on("change",(function(){t.apply(t.value,n.value)})),n.emitter(n.value).on("change",(function(){n.apply(n.value,t.value)})),t.apply(t.value,n.value)}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,r++)o[r]=i[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPickerInputView=void 0;var a=n(1),l=n(0),s=n(2),u=a.ClassName("clp","input"),p=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onFoldableChange_=o.onFoldableChange_.bind(o),o.onValueChange_=o.onValueChange_.bind(o),o.pickedColor=n.pickedColor,o.pickedColor.value.emitter.on("change",o.onValueChange_),o.foldable=n.foldable,o.foldable.emitter.on("change",o.onFoldableChange_),o.element.classList.add(u());var r=t.createElement("div");r.classList.add(u("hsv"));var i=t.createElement("div");i.classList.add(u("sv")),o.svPaletteView_=n.svPaletteInputView,i.appendChild(o.svPaletteView_.element),r.appendChild(i);var a=t.createElement("div");a.classList.add(u("h")),o.hPaletteView_=n.hPaletteInputView,a.appendChild(o.hPaletteView_.element),r.appendChild(a),o.element.appendChild(r);var l=t.createElement("div");if(l.classList.add(u("rgb")),o.compTextsView_=n.componentTextsView,l.appendChild(o.compTextsView_.element),o.element.appendChild(l),n.alphaInputViews){o.alphaViews_={palette:n.alphaInputViews.palette,text:n.alphaInputViews.text};var s=t.createElement("div");s.classList.add(u("a"));var p=t.createElement("div");p.classList.add(u("ap")),p.appendChild(o.alphaViews_.palette.element),s.appendChild(p);var d=t.createElement("div");d.classList.add(u("at")),d.appendChild(o.alphaViews_.text.element),s.appendChild(d),o.element.appendChild(s)}return o.update(),o}return r(t,e),Object.defineProperty(t.prototype,"allFocusableElements",{get:function(){var e=i([this.svPaletteView_.element,this.hPaletteView_.element],this.compTextsView_.inputElements);return this.alphaViews_&&e.push(this.alphaViews_.palette.element,this.alphaViews_.text.inputElement),l.TypeUtil.forceCast(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.pickedColor.value},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.foldable.expanded?this.element.classList.add(u(void 0,"expanded")):this.element.classList.remove(u(void 0,"expanded"))},t.prototype.onValueChange_=function(){this.update()},t.prototype.onFoldableChange_=function(){this.update()},t}(s.View);t.ColorPickerInputView=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APaletteInputController=void 0;var o=n(19),r=n(10),i=n(83),a=n(7),l=function(){function e(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewModel=t.viewModel,this.view=new i.APaletteInputView(e,{model:this.viewModel,value:this.value}),this.ptHandler_=new o.PointerHandler(e,this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_)}return e.prototype.handlePointerEvent_=function(e){var t=e.px,n=this.value.rawValue.getComponents("hsv"),o=n[0],i=n[1],a=n[2];this.value.rawValue=new r.Color([o,i,a,t],"hsv"),this.view.update()},e.prototype.onPointerDown_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerMove_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerUp_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onKeyDown_=function(e){var t=a.getStepForKey(a.getBaseStepForColor(!0),a.getHorizontalStepKeys(e)),n=this.value.rawValue.getComponents("hsv"),o=n[0],i=n[1],l=n[2],s=n[3];this.value.rawValue=new r.Color([o,i,l,s+t],"hsv")},e}();t.APaletteInputController=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.APaletteInputView=void 0;var i=n(24),a=n(1),l=n(4),s=n(5),u=n(3),p=n(10),d=n(2),c=a.ClassName("apl","input"),h=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueChange_=o.onValueChange_.bind(o),o.value=n.value,o.value.emitter.on("change",o.onValueChange_),o.element.classList.add(c()),o.element.tabIndex=0;var r=t.createElement("div");r.classList.add(c("b")),o.element.appendChild(r);var i=t.createElement("div");i.classList.add(c("c")),r.appendChild(i),o.colorElem_=i;var a=t.createElement("div");a.classList.add(c("m")),o.element.appendChild(a),o.markerElem_=a;var s=t.createElement("div");return s.classList.add(c("p")),o.markerElem_.appendChild(s),o.previewElem_=s,o.update(),n.model.emitter.on("dispose",(function(){o.colorElem_=l.disposeElement(o.colorElem_),o.markerElem_=l.disposeElement(o.markerElem_)})),o}return r(t,e),t.prototype.update=function(){if(!this.markerElem_||!this.previewElem_||!this.colorElem_)throw u.PaneError.alreadyDisposed();var e=this.value.rawValue,t=e.getComponents("rgb"),n=new p.Color([t[0],t[1],t[2],0],"rgb"),o=new p.Color([t[0],t[1],t[2],255],"rgb"),r=["to right",i.toFunctionalRgbaString(n),i.toFunctionalRgbaString(o)];this.colorElem_.style.background="linear-gradient("+r.join(",")+")",this.previewElem_.style.backgroundColor=i.toFunctionalRgbaString(e);var a=s.NumberUtil.map(t[3],0,1,0,100);this.markerElem_.style.left=a+"%"},t.prototype.onValueChange_=function(){this.update()},t}(d.View);t.APaletteInputView=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorComponentTextsInputController=void 0;var o=n(0),r=n(10),i=n(85),a=n(7),l=function(){function e(e,t){var n=this;this.onModeSelectChange_=this.onModeSelectChange_.bind(this),this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.parser_=t.parser,this.pickedColor=t.pickedColor,this.viewModel=t.viewModel,this.view=new i.ColorComponentTextsInputView(e,{model:this.viewModel,pickedColor:this.pickedColor}),this.view.inputElements.forEach((function(e){e.addEventListener("change",n.onInputChange_),e.addEventListener("keydown",n.onInputKeyDown_)})),this.view.modeSelectElement.addEventListener("change",this.onModeSelectChange_)}return Object.defineProperty(e.prototype,"value",{get:function(){return this.pickedColor.value},enumerable:!1,configurable:!0}),e.prototype.findIndexOfInputElem_=function(e){for(var t=this.view.inputElements,n=0;n<t.length;n++)if(t[n]===e)return n;return null},e.prototype.updateComponent_=function(e,t){var n=this.pickedColor.mode,o=this.value.rawValue.getComponents(n).map((function(n,o){return o===e?t:n}));this.value.rawValue=new r.Color(o,n),this.view.update()},e.prototype.onInputChange_=function(e){var t=o.TypeUtil.forceCast(e.currentTarget),n=this.parser_(t.value);if(!o.TypeUtil.isEmpty(n)){var r=this.findIndexOfInputElem_(t);o.TypeUtil.isEmpty(r)||this.updateComponent_(r,n)}},e.prototype.onInputKeyDown_=function(e){var t=this.findIndexOfInputElem_(e.currentTarget),n=a.getStepForKey(a.getBaseStepForColor(3===t),a.getVerticalStepKeys(e));if(0!==n){var r=o.TypeUtil.forceCast(e.currentTarget),i=this.parser_(r.value);o.TypeUtil.isEmpty(i)||o.TypeUtil.isEmpty(t)||this.updateComponent_(t,i+n)}},e.prototype.onModeSelectChange_=function(e){var t=e.currentTarget;this.pickedColor.mode=t.value},e}();t.ColorComponentTextsInputController=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ColorComponentTextsInputView=void 0;var i=n(14),a=n(1),l=n(4),s=n(3),u=n(2),p=a.ClassName("cctxts","input"),d=new i.NumberFormatter(0);var c=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueChange_=o.onValueChange_.bind(o),o.element.classList.add(p());var r=t.createElement("div");r.classList.add(p("m")),o.modeSelectElement=function(e){var t=e.createElement("select");return t.appendChild([{text:"RGB",value:"rgb"},{text:"HSL",value:"hsl"},{text:"HSV",value:"hsv"}].reduce((function(t,n){var o=e.createElement("option");return o.textContent=n.text,o.value=n.value,t.appendChild(o),t}),e.createDocumentFragment())),t}(t),o.modeSelectElement.classList.add(p("ms")),r.appendChild(o.modeSelectElement);var i=t.createElement("div");i.classList.add(p("mm")),r.appendChild(i),o.element.appendChild(r);var a=t.createElement("div");a.classList.add(p("w")),o.element.appendChild(a);var s=[0,1,2].map((function(){var e=t.createElement("input");return e.classList.add(p("i")),e.type="text",e}));return s.forEach((function(e){a.appendChild(e)})),o.inputElems_=[s[0],s[1],s[2]],o.pickedColor=n.pickedColor,o.pickedColor.emitter.on("change",o.onValueChange_),o.update(),n.model.emitter.on("dispose",(function(){o.inputElems_&&(o.inputElems_.forEach((function(e){l.disposeElement(e)})),o.inputElems_=null)})),o}return r(t,e),Object.defineProperty(t.prototype,"inputElements",{get:function(){if(!this.inputElems_)throw s.PaneError.alreadyDisposed();return this.inputElems_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.pickedColor.value},enumerable:!1,configurable:!0}),t.prototype.update=function(){var e=this.inputElems_;if(!e)throw s.PaneError.alreadyDisposed();this.pickedColor.value.rawValue.getComponents(this.pickedColor.mode).forEach((function(t,n){var o=e[n];o&&(o.value=d.format(t))}))},t.prototype.onValueChange_=function(){this.update()},t}(u.View);t.ColorComponentTextsInputView=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HPaletteInputController=void 0;var o=n(5),r=n(19),i=n(10),a=n(87),l=n(7),s=function(){function e(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewModel=t.viewModel,this.view=new a.HPaletteInputView(e,{model:this.viewModel,value:this.value}),this.ptHandler_=new r.PointerHandler(e,this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_)}return e.prototype.handlePointerEvent_=function(e){var t=o.NumberUtil.map(e.px,0,1,0,360),n=this.value.rawValue.getComponents("hsv"),r=n[1],a=n[2],l=n[3];this.value.rawValue=new i.Color([t,r,a,l],"hsv"),this.view.update()},e.prototype.onPointerDown_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerMove_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerUp_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onKeyDown_=function(e){var t=l.getStepForKey(l.getBaseStepForColor(!1),l.getHorizontalStepKeys(e)),n=this.value.rawValue.getComponents("hsv"),o=n[0],r=n[1],a=n[2],s=n[3];this.value.rawValue=new i.Color([o+t,r,a,s],"hsv")},e}();t.HPaletteInputController=s},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HPaletteInputView=void 0;var i=n(24),a=n(1),l=n(4),s=n(5),u=n(3),p=n(10),d=n(2),c=a.ClassName("hpl","input"),h=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueChange_=o.onValueChange_.bind(o),o.value=n.value,o.value.emitter.on("change",o.onValueChange_),o.element.classList.add(c()),o.element.tabIndex=0;var r=t.createElement("div");r.classList.add(c("c")),o.element.appendChild(r),o.colorElem_=r;var i=t.createElement("div");return i.classList.add(c("m")),o.element.appendChild(i),o.markerElem_=i,o.update(),n.model.emitter.on("dispose",(function(){o.colorElem_=l.disposeElement(o.colorElem_),o.markerElem_=l.disposeElement(o.markerElem_)})),o}return r(t,e),t.prototype.update=function(){if(!this.markerElem_)throw u.PaneError.alreadyDisposed();var e=this.value.rawValue.getComponents("hsv")[0];this.markerElem_.style.backgroundColor=i.toFunctionalRgbString(new p.Color([e,100,100],"hsv"));var t=s.NumberUtil.map(e,0,360,0,100);this.markerElem_.style.left=t+"%"},t.prototype.onValueChange_=function(){this.update()},t}(d.View);t.HPaletteInputView=h},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TextInputView=void 0;var i=n(1),a=n(4),l=n(3),s=n(2),u=i.ClassName("txt","input"),p=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueChange_=o.onValueChange_.bind(o),o.formatter_=n.formatter,o.element.classList.add(u());var r=t.createElement("input");return r.classList.add(u("i")),r.type="text",o.element.appendChild(r),o.inputElem_=r,n.value.emitter.on("change",o.onValueChange_),o.value=n.value,o.update(),n.model.emitter.on("dispose",(function(){o.inputElem_=a.disposeElement(o.inputElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"inputElement",{get:function(){if(!this.inputElem_)throw l.PaneError.alreadyDisposed();return this.inputElem_},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(!this.inputElem_)throw l.PaneError.alreadyDisposed();this.inputElem_.value=this.formatter_.format(this.value.rawValue)},t.prototype.onValueChange_=function(){this.update()},t}(s.View);t.TextInputView=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SvPaletteInputController=void 0;var o=n(5),r=n(19),i=n(10),a=n(90),l=n(7),s=function(){function e(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.viewModel=t.viewModel,this.view=new a.SvPaletteInputView(e,{model:this.viewModel,value:this.value}),this.ptHandler_=new r.PointerHandler(e,this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_)}return e.prototype.handlePointerEvent_=function(e){var t=o.NumberUtil.map(e.px,0,1,0,100),n=o.NumberUtil.map(e.py,0,1,100,0),r=this.value.rawValue.getComponents("hsv"),a=r[0],l=r[3];this.value.rawValue=new i.Color([a,t,n,l],"hsv"),this.view.update()},e.prototype.onPointerDown_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerMove_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerUp_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onKeyDown_=function(e){l.isArrowKey(e.keyCode)&&e.preventDefault();var t=this.value.rawValue.getComponents("hsv"),n=t[0],o=t[1],r=t[2],a=t[3],s=l.getBaseStepForColor(!1);this.value.rawValue=new i.Color([n,o+l.getStepForKey(s,l.getHorizontalStepKeys(e)),r+l.getStepForKey(s,l.getVerticalStepKeys(e)),a],"hsv")},e}();t.SvPaletteInputController=s},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SvPaletteInputView=void 0;var i=n(1),a=n(31),l=n(4),s=n(9),u=n(5),p=n(3),d=n(2),c=i.ClassName("svp","input"),h=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueChange_=o.onValueChange_.bind(o),o.value=n.value,o.value.emitter.on("change",o.onValueChange_),o.element.classList.add(c()),o.element.tabIndex=0;var r=t.createElement("canvas");r.height=64,r.width=64,r.classList.add(c("c")),o.element.appendChild(r),o.canvasElem_=r;var i=t.createElement("div");return i.classList.add(c("m")),o.element.appendChild(i),o.markerElem_=i,o.update(),n.model.emitter.on("dispose",(function(){o.canvasElem_=l.disposeElement(o.canvasElem_),o.markerElem_=l.disposeElement(o.markerElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"canvasElement",{get:function(){if(!this.canvasElem_)throw p.PaneError.alreadyDisposed();return this.canvasElem_},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(!this.markerElem_)throw p.PaneError.alreadyDisposed();var e=s.getCanvasContext(this.canvasElement);if(e){for(var t=this.value.rawValue.getComponents("hsv"),n=this.canvasElement.width,o=this.canvasElement.height,r=e.getImageData(0,0,n,o),i=r.data,l=0;l<o;l++)for(var d=0;d<n;d++){var c=u.NumberUtil.map(d,0,n,0,100),h=u.NumberUtil.map(l,0,o,100,0),f=a.hsvToRgb(t[0],c,h),v=4*(l*n+d);i[v]=f[0],i[v+1]=f[1],i[v+2]=f[2],i[v+3]=255}e.putImageData(r,0,0);var m=u.NumberUtil.map(t[1],0,100,0,100);this.markerElem_.style.left=m+"%";var _=u.NumberUtil.map(t[2],0,100,100,0);this.markerElem_.style.top=_+"%"}},t.prototype.onValueChange_=function(){this.update()},t}(d.View);t.SvPaletteInputView=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var o=n(15),r=n(16),i=n(20),a=n(22),l=n(30),s=n(12),u=n(47),p=n(14),d=n(0),c=n(13),h=n(8),f=n(25),v=n(11),m=n(29),_=n(32),b=n(92),g=n(7);t.create=function(e,t,n){if("number"!=typeof t.read())return null;var y=new c.InputValue(0,function(e){var t=[];return"step"in e&&!d.TypeUtil.isEmpty(e.step)&&t.push(new l.StepConstraint({step:e.step})),("max"in e&&!d.TypeUtil.isEmpty(e.max)||"min"in e&&!d.TypeUtil.isEmpty(e.min))&&t.push(new a.RangeConstraint({max:e.max,min:e.min})),"options"in e&&void 0!==e.options&&t.push(new i.ListConstraint({options:g.normalizeInputParamsOptions(e.options,u.fromMixed)})),new r.CompositeConstraint({constraints:t})}(n)),w=new o.InputBinding({reader:u.fromMixed,target:t,value:y,writer:function(e){return e}}),x=function(e,t){var n=t.constraint;return n&&s.ConstraintUtil.findConstraint(n,i.ListConstraint)?new m.ListInputController(e,{stringifyValue:u.toString,value:t,viewModel:new h.ViewModel}):n&&s.ConstraintUtil.findConstraint(n,a.RangeConstraint)?new b.SliderTextInputController(e,{formatter:new p.NumberFormatter(g.getSuitableDecimalDigits(t.constraint,t.rawValue)),parser:f.StringNumberParser,value:t,viewModel:new h.ViewModel}):new _.NumberTextInputController(e,{formatter:new p.NumberFormatter(g.getSuitableDecimalDigits(t.constraint,t.rawValue)),parser:f.StringNumberParser,value:t,viewModel:new h.ViewModel})}(e,y);return new v.InputBindingController(e,{binding:w,controller:x,label:n.label||t.key})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderTextInputController=void 0;var o=n(93),r=n(32),i=n(94),a=function(){function e(e,t){this.value_=t.value,this.viewModel=t.viewModel,this.sliderIc_=new i.SliderInputController(e,{value:t.value,viewModel:this.viewModel}),this.textIc_=new r.NumberTextInputController(e,{formatter:t.formatter,parser:t.parser,value:t.value,viewModel:this.viewModel}),this.view_=new o.SliderTextInputView(e,{model:this.viewModel,sliderInputView:this.sliderIc_.view,textInputView:this.textIc_.view})}return Object.defineProperty(e.prototype,"value",{get:function(){return this.value_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this.view_},enumerable:!1,configurable:!0}),e}();t.SliderTextInputController=a},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SliderTextInputView=void 0;var i=n(1),a=n(2),l=i.ClassName("sldtxt","input"),s=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.element.classList.add(l());var r=t.createElement("div");r.classList.add(l("s")),o.sliderInputView_=n.sliderInputView,r.appendChild(o.sliderInputView_.element),o.element.appendChild(r);var i=t.createElement("div");return i.classList.add(l("t")),o.textInputView_=n.textInputView,i.appendChild(o.textInputView_.element),o.element.appendChild(i),o}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.sliderInputView_.value},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.sliderInputView_.update(),this.textInputView_.update()},t}(a.View);t.SliderTextInputView=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderInputController=void 0;var o=n(22),r=n(12),i=n(5),a=n(19),l=n(0),s=n(95),u=n(7);function p(e){var t=function(e){var t=e.constraint?r.ConstraintUtil.findConstraint(e.constraint,o.RangeConstraint):null;return t?[t.minValue,t.maxValue]:[void 0,void 0]}(e),n=t[0],i=t[1];return[l.TypeUtil.getOrDefault(n,0),l.TypeUtil.getOrDefault(i,100)]}var d=function(){function e(e,t){this.onKeyDown_=this.onKeyDown_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.step_=u.getStepForTextInput(this.value.constraint);var n=p(this.value),o=n[0],r=n[1];this.minValue_=o,this.maxValue_=r,this.viewModel=t.viewModel,this.view=new s.SliderInputView(e,{maxValue:this.maxValue_,minValue:this.minValue_,model:this.viewModel,value:this.value}),this.ptHandler_=new a.PointerHandler(e,this.view.outerElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.outerElement.addEventListener("keydown",this.onKeyDown_)}return e.prototype.handlePointerEvent_=function(e){this.value.rawValue=i.NumberUtil.map(e.px,0,1,this.minValue_,this.maxValue_)},e.prototype.onPointerDown_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerMove_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerUp_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onKeyDown_=function(e){this.value.rawValue+=u.getStepForKey(this.step_,u.getHorizontalStepKeys(e))},e}();t.SliderInputController=d},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SliderInputView=void 0;var i=n(1),a=n(4),l=n(5),s=n(3),u=n(2),p=i.ClassName("sld","input"),d=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueChange_=o.onValueChange_.bind(o),o.minValue_=n.minValue,o.maxValue_=n.maxValue,o.element.classList.add(p());var r=t.createElement("div");r.classList.add(p("o")),r.tabIndex=0,o.element.appendChild(r),o.outerElem_=r;var i=t.createElement("div");return i.classList.add(p("i")),o.outerElem_.appendChild(i),o.innerElem_=i,n.value.emitter.on("change",o.onValueChange_),o.value=n.value,o.update(),n.model.emitter.on("dispose",(function(){o.innerElem_=a.disposeElement(o.innerElem_),o.outerElem_=a.disposeElement(o.outerElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"outerElement",{get:function(){if(!this.outerElem_)throw s.PaneError.alreadyDisposed();return this.outerElem_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerElement",{get:function(){if(!this.innerElem_)throw s.PaneError.alreadyDisposed();return this.innerElem_},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(!this.innerElem_)throw s.PaneError.alreadyDisposed();var e=l.NumberUtil.constrain(l.NumberUtil.map(this.value.rawValue,this.minValue_,this.maxValue_,0,100),0,100);this.innerElem_.style.width=e+"%"},t.prototype.onValueChange_=function(){this.update()},t}(u.View);t.SliderInputView=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var o=n(15),r=n(16),i=n(21),a=n(22),l=n(30),s=n(97),u=n(14),p=n(3),d=n(0),c=n(13),h=n(8),f=n(48),v=n(25),m=n(11),_=n(98),b=n(7);function g(e){if(e){var t=[];return d.TypeUtil.isEmpty(e.step)||t.push(new l.StepConstraint({step:e.step})),d.TypeUtil.isEmpty(e.max)&&d.TypeUtil.isEmpty(e.min)||t.push(new a.RangeConstraint({max:e.max,min:e.min})),new r.CompositeConstraint({constraints:t})}}t.create=function(e,t,n){var r=t.read(),a=f.AnyPoint2dParser(r);if(!a)return null;var l=new c.InputValue(a,function(e){return new i.Point2dConstraint({x:g("x"in e?e.x:void 0),y:g("y"in e?e.y:void 0)})}(n)),d=new o.InputBinding({reader:s.fromMixed,target:t,value:l,writer:function(e){return e.toObject()}}),y="y"in n?n.y:void 0,w=function(e,t,n){var o=t.constraint;if(!(o instanceof i.Point2dConstraint))throw p.PaneError.shouldNeverHappen();return new _.Point2dPadTextInputController(e,{invertsY:n,parser:v.StringNumberParser,value:t,viewModel:new h.ViewModel,xFormatter:new u.NumberFormatter(b.getSuitableDecimalDigits(o.xConstraint,t.rawValue.x)),yFormatter:new u.NumberFormatter(b.getSuitableDecimalDigits(o.yConstraint,t.rawValue.y))})}(e,l,!!y&&!!y.inverted);return new m.InputBindingController(e,{binding:d,controller:w,label:n.label||t.key})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMixed=void 0;var o=n(17),r=n(48);t.fromMixed=function(e){return r.AnyPoint2dParser(e)||new o.Point2d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point2dPadTextInputController=void 0;var o=n(0),r=n(99),i=n(100),a=n(102),l=function(){function e(e,t){this.onPadButtonBlur_=this.onPadButtonBlur_.bind(this),this.onPadButtonClick_=this.onPadButtonClick_.bind(this),this.value=t.value,this.viewModel=t.viewModel,this.padIc_=new i.Point2dPadInputController(e,{invertsY:t.invertsY,value:this.value,viewModel:this.viewModel}),this.textIc_=new a.Point2dTextInputController(e,{parser:t.parser,value:this.value,viewModel:this.viewModel,xFormatter:t.xFormatter,yFormatter:t.yFormatter}),this.view=new r.Point2dPadTextInputView(e,{model:this.viewModel,padInputView:this.padIc_.view,textInputView:this.textIc_.view}),this.view.padButtonElement.addEventListener("blur",this.onPadButtonBlur_),this.view.padButtonElement.addEventListener("click",this.onPadButtonClick_),this.padIc_.triggerElement=this.view.padButtonElement}return e.prototype.onPadButtonBlur_=function(e){var t=this.view.element,n=o.TypeUtil.forceCast(e.relatedTarget);n&&t.contains(n)||(this.padIc_.foldable.expanded=!1)},e.prototype.onPadButtonClick_=function(){this.padIc_.foldable.expanded=!this.padIc_.foldable.expanded,this.padIc_.foldable.expanded&&this.padIc_.view.allFocusableElements[0].focus()},e}();t.Point2dPadTextInputController=l},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Point2dPadTextInputView=void 0;var i=n(1),a=n(9),l=n(2),s=i.ClassName("p2dpadtxt","input"),u=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.element.classList.add(s());var r=t.createElement("div");r.classList.add(s("w")),o.element.appendChild(r);var i=t.createElement("button");i.classList.add(s("b")),i.appendChild(a.createSvgIconElement(t,"p2dpad")),r.appendChild(i),o.padButtonElem_=i;var l=t.createElement("div");l.classList.add(s("p")),r.appendChild(l),o.padInputView_=n.padInputView,l.appendChild(o.padInputView_.element);var u=t.createElement("div");return u.classList.add(s("t")),o.textInputView_=n.textInputView,u.appendChild(o.textInputView_.element),o.element.appendChild(u),o}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.textInputView_.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padButtonElement",{get:function(){return this.padButtonElem_},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.padInputView_.update(),this.textInputView_.update()},t}(l.View);t.Point2dPadTextInputView=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point2dPadInputController=void 0;var o=n(21),r=n(9),i=n(5),a=n(19),l=n(46),s=n(17),u=n(101),p=n(7),d=function(){function e(e,t){var n=this;this.triggerElement=null,this.onFocusableElementBlur_=this.onFocusableElementBlur_.bind(this),this.onKeyDown_=this.onKeyDown_.bind(this),this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=t.value,this.foldable=new l.Foldable,this.maxValue_=p.getSuitableMaxValueForPoint2dPad(this.value.constraint,this.value.rawValue),this.invertsY_=t.invertsY;var r=this.value.constraint;this.xStep_=p.getStepForTextInput(r instanceof o.Point2dConstraint?r.xConstraint:void 0),this.yStep_=p.getStepForTextInput(r instanceof o.Point2dConstraint?r.yConstraint:void 0),this.viewModel=t.viewModel,this.view=new u.Point2dPadInputView(e,{foldable:this.foldable,invertsY:this.invertsY_,maxValue:this.maxValue_,model:this.viewModel,value:this.value}),this.ptHandler_=new a.PointerHandler(e,this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.allFocusableElements.forEach((function(e){e.addEventListener("blur",n.onFocusableElementBlur_)}))}return e.prototype.handlePointerEvent_=function(e){var t=this.maxValue_,n=i.NumberUtil.map(e.px,0,1,-t,+t),o=i.NumberUtil.map(this.invertsY_?1-e.py:e.py,0,1,-t,+t);this.value.rawValue=new s.Point2d(n,o),this.view.update()},e.prototype.onPointerDown_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerMove_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPointerUp_=function(e){this.handlePointerEvent_(e.data)},e.prototype.onPadKeyDown_=function(e){p.isArrowKey(e.keyCode)&&e.preventDefault(),this.value.rawValue=new s.Point2d(this.value.rawValue.x+p.getStepForKey(this.xStep_,p.getHorizontalStepKeys(e)),this.value.rawValue.y+p.getStepForKey(this.yStep_,p.getVerticalStepKeys(e))*(this.invertsY_?1:-1))},e.prototype.onFocusableElementBlur_=function(e){var t=this.view.element,n=r.findNextTarget(e);n&&t.contains(n)||n&&n===this.triggerElement&&!r.supportsTouch(t.ownerDocument)||(this.foldable.expanded=!1)},e.prototype.onKeyDown_=function(e){27===e.keyCode&&(this.foldable.expanded=!1)},e}();t.Point2dPadInputController=d},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Point2dPadInputView=void 0;var i=n(1),a=n(4),l=n(9),s=n(5),u=n(3),p=n(2),d=l.SVG_NS,c=i.ClassName("p2dpad","input"),h=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onFoldableChange_=o.onFoldableChange_.bind(o),o.onValueChange_=o.onValueChange_.bind(o),o.foldable=n.foldable,o.foldable.emitter.on("change",o.onFoldableChange_),o.invertsY_=n.invertsY,o.maxValue_=n.maxValue,o.element.classList.add(c());var r=t.createElement("div");r.tabIndex=0,r.classList.add(c("p")),o.element.appendChild(r),o.padElem_=r;var i=t.createElementNS(d,"svg");i.classList.add(c("g")),o.padElem_.appendChild(i),o.svgElem_=i;var l=t.createElementNS(d,"line");l.classList.add(c("ax")),l.setAttributeNS(null,"x1","0"),l.setAttributeNS(null,"y1","50%"),l.setAttributeNS(null,"x2","100%"),l.setAttributeNS(null,"y2","50%"),o.svgElem_.appendChild(l);var s=t.createElementNS(d,"line");s.classList.add(c("ax")),s.setAttributeNS(null,"x1","50%"),s.setAttributeNS(null,"y1","0"),s.setAttributeNS(null,"x2","50%"),s.setAttributeNS(null,"y2","100%"),o.svgElem_.appendChild(s);var u=t.createElementNS(d,"line");u.classList.add(c("l")),u.setAttributeNS(null,"x1","50%"),u.setAttributeNS(null,"y1","50%"),o.svgElem_.appendChild(u),o.lineElem_=u;var p=t.createElementNS(d,"circle");return p.classList.add(c("m")),p.setAttributeNS(null,"r","2px"),o.svgElem_.appendChild(p),o.markerElem_=p,n.value.emitter.on("change",o.onValueChange_),o.value=n.value,o.update(),n.model.emitter.on("dispose",(function(){o.padElem_=a.disposeElement(o.padElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"padElement",{get:function(){if(!this.padElem_)throw u.PaneError.alreadyDisposed();return this.padElem_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allFocusableElements",{get:function(){if(!this.padElem_)throw u.PaneError.alreadyDisposed();return[this.padElem_]},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.foldable.expanded?this.element.classList.add(c(void 0,"expanded")):this.element.classList.remove(c(void 0,"expanded"));var e=this.lineElem_,t=this.markerElem_;if(!e||!t)throw u.PaneError.alreadyDisposed();var n=this.value.rawValue.getComponents(),o=n[0],r=n[1],i=this.maxValue_,a=s.NumberUtil.map(o,-i,+i,0,100),l=s.NumberUtil.map(r,-i,+i,0,100),p=this.invertsY_?100-l:l;e.setAttributeNS(null,"x2",a+"%"),e.setAttributeNS(null,"y2",p+"%"),t.setAttributeNS(null,"cx",a+"%"),t.setAttributeNS(null,"cy",p+"%")},t.prototype.onValueChange_=function(){this.update()},t.prototype.onFoldableChange_=function(){this.update()},t}(p.View);t.Point2dPadInputView=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point2dTextInputController=void 0;var o=n(21),r=n(0),i=n(17),a=n(103),l=n(7),s=function(){function e(e,t){var n=this;this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.parser_=t.parser,this.value=t.value;var r=this.value.constraint;this.xStep_=l.getStepForTextInput(r instanceof o.Point2dConstraint?r.xConstraint:void 0),this.yStep_=l.getStepForTextInput(r instanceof o.Point2dConstraint?r.yConstraint:void 0),this.viewModel=t.viewModel,this.view=new a.Point2dTextInputView(e,{model:this.viewModel,value:this.value,xFormatter:t.xFormatter,yFormatter:t.yFormatter}),this.view.inputElements.forEach((function(e){e.addEventListener("change",n.onInputChange_),e.addEventListener("keydown",n.onInputKeyDown_)}))}return e.prototype.findIndexOfInputElem_=function(e){for(var t=this.view.inputElements,n=0;n<t.length;n++)if(t[n]===e)return n;return null},e.prototype.updateComponent_=function(e,t){var n=this.value.rawValue.getComponents().map((function(n,o){return o===e?t:n}));this.value.rawValue=new i.Point2d(n[0],n[1]),this.view.update()},e.prototype.onInputChange_=function(e){var t=r.TypeUtil.forceCast(e.currentTarget),n=this.parser_(t.value);if(!r.TypeUtil.isEmpty(n)){var o=this.findIndexOfInputElem_(t);r.TypeUtil.isEmpty(o)||this.updateComponent_(o,n)}},e.prototype.onInputKeyDown_=function(e){var t=r.TypeUtil.forceCast(e.currentTarget),n=this.parser_(t.value);if(!r.TypeUtil.isEmpty(n)){var o=this.findIndexOfInputElem_(t);if(!r.TypeUtil.isEmpty(o)){var i=l.getStepForKey(0===o?this.xStep_:this.yStep_,l.getVerticalStepKeys(e));0!==i&&this.updateComponent_(o,n+i)}}},e}();t.Point2dTextInputController=s},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Point2dTextInputView=void 0;var i=n(1),a=n(4),l=n(3),s=n(2),u=["X","Y"],p=i.ClassName("p2dtxt","input"),d=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueChange_=o.onValueChange_.bind(o),o.formatters_=[n.xFormatter,n.yFormatter],o.element.classList.add(p());var r=u.map((function(){var e=t.createElement("input");return e.classList.add(p("i")),e.type="text",e}));return u.forEach((function(e,n){var i=t.createElement("div");i.classList.add(p("w")),i.appendChild(r[n]),o.element.appendChild(i)})),o.inputElems_=[r[0],r[1]],n.value.emitter.on("change",o.onValueChange_),o.value=n.value,o.update(),n.model.emitter.on("dispose",(function(){o.inputElems_&&(o.inputElems_.forEach((function(e){a.disposeElement(e)})),o.inputElems_=null)})),o}return r(t,e),Object.defineProperty(t.prototype,"inputElements",{get:function(){if(!this.inputElems_)throw l.PaneError.alreadyDisposed();return this.inputElems_},enumerable:!1,configurable:!0}),t.prototype.update=function(){var e=this,t=this.inputElems_;if(!t)throw l.PaneError.alreadyDisposed();this.value.rawValue.getComponents().forEach((function(n,o){t[o].value=e.formatters_[o].format(n)}))},t.prototype.onValueChange_=function(){this.update()},t}(s.View);t.Point2dTextInputView=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var o=n(15),r=n(16),i=n(20),a=n(12),l=n(49),s=n(50),u=n(13),p=n(8),d=n(11),c=n(29),h=n(33),f=n(7);t.create=function(e,t,n){if("string"!=typeof t.read())return null;var v=new u.InputValue("",function(e){var t=[];return"options"in e&&void 0!==e.options&&t.push(new i.ListConstraint({options:f.normalizeInputParamsOptions(e.options,l.fromMixed)})),new r.CompositeConstraint({constraints:t})}(n)),m=new o.InputBinding({reader:l.fromMixed,target:t,value:v,writer:function(e){return e}}),_=function(e,t){var n=t.constraint;return n&&a.ConstraintUtil.findConstraint(n,i.ListConstraint)?new c.ListInputController(e,{stringifyValue:l.toString,value:t,viewModel:new p.ViewModel}):new h.TextInputController(e,{formatter:new s.StringFormatter,parser:l.toString,value:t,viewModel:new p.ViewModel})}(e,v);return new d.InputBindingController(e,{binding:m,controller:_,label:n.label||t.key})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var o=n(34),r=n(27),i=n(106),a=n(0),l=n(35),s=n(8),u=n(18),p=n(36),d=n(37),c=n(38);t.create=function(e,t,n){if("boolean"!=typeof t.read())return null;var h=new l.MonitorValue(a.TypeUtil.getOrDefault(n.count,1)),f=1===h.totalCount?new d.SingleLogMonitorController(e,{viewModel:new s.ViewModel,formatter:new i.BooleanFormatter,value:h}):new p.MultiLogMonitorController(e,{viewModel:new s.ViewModel,formatter:new i.BooleanFormatter,value:h});return new u.MonitorBindingController(e,{binding:new o.MonitorBinding({reader:r.fromMixed,target:t,ticker:c.createTicker(e,n.interval),value:h}),controller:f,label:n.label||t.key})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanFormatter=void 0;var o=n(27),r=function(){function e(){}return e.prototype.format=function(e){return o.toString(e)},e}();t.BooleanFormatter=r},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultiLogMonitorView=void 0;var i=n(1),a=n(4),l=n(3),s=n(2),u=i.ClassName("mll","monitor"),p=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueUpdate_=o.onValueUpdate_.bind(o),o.formatter_=n.formatter,o.element.classList.add(u());var r=t.createElement("textarea");return r.classList.add(u("i")),r.readOnly=!0,o.element.appendChild(r),o.textareaElem_=r,n.value.emitter.on("update",o.onValueUpdate_),o.value=n.value,o.update(),n.model.emitter.on("dispose",(function(){o.textareaElem_=a.disposeElement(o.textareaElem_)})),o}return r(t,e),t.prototype.update=function(){var e=this,t=this.textareaElem_;if(!t)throw l.PaneError.alreadyDisposed();var n=t.scrollTop===t.scrollHeight-t.clientHeight;t.textContent=this.value.rawValues.map((function(t){return e.formatter_.format(t)})).join("\n"),n&&(t.scrollTop=t.scrollHeight)},t.prototype.onValueUpdate_=function(){this.update()},t}(s.View);t.MultiLogMonitorView=p},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SingleLogMonitorView=void 0;var i=n(1),a=n(4),l=n(3),s=n(2),u=i.ClassName("sgl","monitor"),p=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onValueUpdate_=o.onValueUpdate_.bind(o),o.formatter_=n.formatter,o.element.classList.add(u());var r=t.createElement("input");return r.classList.add(u("i")),r.readOnly=!0,r.type="text",o.element.appendChild(r),o.inputElem_=r,n.value.emitter.on("update",o.onValueUpdate_),o.value=n.value,o.update(),n.model.emitter.on("dispose",(function(){o.inputElem_=a.disposeElement(o.inputElem_)})),o}return r(t,e),t.prototype.update=function(){if(!this.inputElem_)throw l.PaneError.alreadyDisposed();var e=this.value.rawValues;this.inputElem_.value=e.length>0?this.formatter_.format(e[e.length-1]):""},t.prototype.onValueUpdate_=function(){this.update()},t}(s.View);t.SingleLogMonitorView=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Constants=void 0,t.Constants={monitorDefaultInterval:200}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntervalTicker=void 0;var o=n(28),r=n(6),i=function(){function e(e,t){var n=this;if(this.onTick_=this.onTick_.bind(this),this.doc_=e,this.emitter=new r.Emitter,t<=0)this.id_=null;else{var i=this.doc_.defaultView;i&&(this.id_=i.setInterval(this.onTick_,t))}this.disposable=new o.Disposable,this.disposable.emitter.on("dispose",(function(){if(null!==n.id_){var e=n.doc_.defaultView;e&&e.clearInterval(n.id_)}n.id_=null}))}return e.prototype.onTick_=function(){this.emitter.emit("tick",{sender:this})},e}();t.IntervalTicker=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ManualTicker=void 0;var o=n(28),r=n(6),i=function(){function e(){this.disposable=new o.Disposable,this.emitter=new r.Emitter}return e.prototype.tick=function(){this.emitter.emit("tick",{sender:this})},e}();t.ManualTicker=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var o=n(34),r=n(47),i=n(14),a=n(0),l=n(35),s=n(8),u=n(18),p=n(113),d=n(36),c=n(37),h=n(38);function f(){return new i.NumberFormatter(2)}t.create=function(e,t,n){return"number"!=typeof t.read()?null:"view"in n&&"graph"===n.view?function(e,t,n){var i=new l.MonitorValue(a.TypeUtil.getOrDefault(n.count,64)),d=new p.GraphMonitorController(e,{formatter:f(),maxValue:a.TypeUtil.getOrDefault("max"in n?n.max:null,100),minValue:a.TypeUtil.getOrDefault("min"in n?n.min:null,0),value:i,viewModel:new s.ViewModel});return new u.MonitorBindingController(e,{binding:new o.MonitorBinding({reader:r.fromMixed,target:t,ticker:h.createTicker(e,n.interval),value:i}),controller:d,label:n.label||t.key})}(e,t,n):function(e,t,n){var i=new l.MonitorValue(a.TypeUtil.getOrDefault(n.count,1)),p=1===i.totalCount?new c.SingleLogMonitorController(e,{formatter:f(),value:i,viewModel:new s.ViewModel}):new d.MultiLogMonitorController(e,{formatter:f(),value:i,viewModel:new s.ViewModel});return new u.MonitorBindingController(e,{binding:new o.MonitorBinding({reader:r.fromMixed,target:t,ticker:h.createTicker(e,n.interval),value:i}),controller:p,label:n.label||t.key})}(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphMonitorController=void 0;var o=n(5),r=n(114),i=n(115),a=function(){function e(e,t){this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.value=t.value,this.cursor_=new r.GraphCursor,this.viewModel=t.viewModel,this.view=new i.GraphMonitorView(e,{cursor:this.cursor_,formatter:t.formatter,maxValue:t.maxValue,minValue:t.minValue,model:this.viewModel,value:this.value}),this.view.graphElement.addEventListener("mouseleave",this.onGraphMouseLeave_),this.view.graphElement.addEventListener("mousemove",this.onGraphMouseMove_)}return e.prototype.onGraphMouseLeave_=function(){this.cursor_.index=-1},e.prototype.onGraphMouseMove_=function(e){var t=this.view.graphElement.getBoundingClientRect(),n=e.offsetX;this.cursor_.index=Math.floor(o.NumberUtil.map(n,0,t.width,0,this.value.totalCount))},e}();t.GraphMonitorController=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphCursor=void 0;var o=n(6),r=function(){function e(){this.emitter=new o.Emitter,this.index_=-1}return Object.defineProperty(e.prototype,"index",{get:function(){return this.index_},set:function(e){this.index_!==e&&(this.index_=e,this.emitter.emit("change",{index:e,sender:this}))},enumerable:!1,configurable:!0}),e}();t.GraphCursor=r},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GraphMonitorView=void 0;var i=n(1),a=n(4),l=n(9),s=n(5),u=n(3),p=n(2),d=l.SVG_NS,c=i.ClassName("grp","monitor"),h=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onCursorChange_=o.onCursorChange_.bind(o),o.onValueUpdate_=o.onValueUpdate_.bind(o),o.element.classList.add(c()),o.formatter_=n.formatter,o.minValue_=n.minValue,o.maxValue_=n.maxValue,o.cursor_=n.cursor,o.cursor_.emitter.on("change",o.onCursorChange_);var r=t.createElementNS(d,"svg");r.classList.add(c("g")),o.element.appendChild(r),o.svgElem_=r;var i=t.createElementNS(d,"polyline");o.svgElem_.appendChild(i),o.lineElem_=i;var l=t.createElement("div");return l.classList.add(c("t")),o.element.appendChild(l),o.tooltipElem_=l,n.value.emitter.on("update",o.onValueUpdate_),o.value=n.value,o.update(),n.model.emitter.on("dispose",(function(){o.lineElem_=a.disposeElement(o.lineElem_),o.svgElem_=a.disposeElement(o.svgElem_),o.tooltipElem_=a.disposeElement(o.tooltipElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"graphElement",{get:function(){if(!this.svgElem_)throw u.PaneError.alreadyDisposed();return this.svgElem_},enumerable:!1,configurable:!0}),t.prototype.update=function(){var e=this.tooltipElem_;if(!this.lineElem_||!this.svgElem_||!e)throw u.PaneError.alreadyDisposed();var t=this.svgElem_.getBoundingClientRect(),n=this.value.totalCount-1,o=this.minValue_,r=this.maxValue_;this.lineElem_.setAttributeNS(null,"points",this.value.rawValues.map((function(e,i){return[s.NumberUtil.map(i,0,n,0,t.width),s.NumberUtil.map(e,o,r,t.height,0)].join(",")})).join(" "));var i=this.value.rawValues[this.cursor_.index];if(void 0!==i){e.classList.add(c("t","valid"));var a=s.NumberUtil.map(this.cursor_.index,0,n,0,t.width),l=s.NumberUtil.map(i,o,r,t.height,0);e.style.left=a+"px",e.style.top=l+"px",e.textContent=""+this.formatter_.format(i)}else e.classList.remove(c("t","valid"))},t.prototype.onValueUpdate_=function(){this.update()},t.prototype.onCursorChange_=function(){this.update()},t}(p.View);t.GraphMonitorView=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var o=n(34),r=n(49),i=n(50),a=n(0),l=n(35),s=n(8),u=n(18),p=n(36),d=n(37),c=n(38);t.create=function(e,t,n){if("string"!=typeof t.read())return null;var h=new l.MonitorValue(a.TypeUtil.getOrDefault(n.count,1)),f=h.totalCount>1||"multiline"in n&&n.multiline?new p.MultiLogMonitorController(e,{formatter:new i.StringFormatter,value:h,viewModel:new s.ViewModel}):new d.SingleLogMonitorController(e,{formatter:new i.StringFormatter,value:h,viewModel:new s.ViewModel});return new u.MonitorBindingController(e,{binding:new o.MonitorBinding({reader:r.fromMixed,target:t,ticker:c.createTicker(e,n.interval),value:h}),controller:f,label:n.label||t.key})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Button=void 0;var o=n(6),r=function(){function e(e){this.emitter=new o.Emitter,this.title=e}return e.prototype.click=function(){this.emitter.emit("click",{sender:this})},e}();t.Button=r},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonView=void 0;var i=n(1),a=n(4),l=n(3),s=n(2),u=i.ClassName("btn"),p=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.button=n.button,o.element.classList.add(u());var r=t.createElement("button");return r.classList.add(u("b")),r.textContent=o.button.title,o.element.appendChild(r),o.buttonElem_=r,n.model.emitter.on("dispose",(function(){o.buttonElem_=a.disposeElement(o.buttonElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"buttonElement",{get:function(){if(!this.buttonElem_)throw l.PaneError.alreadyDisposed();return this.buttonElem_},enumerable:!1,configurable:!0}),t}(s.View);t.ButtonView=p},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorView=void 0;var i=n(1),a=n(2),l=i.ClassName("spt"),s=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.element.classList.add(l());var r=t.createElement("hr");return r.classList.add(l("r")),o.element.appendChild(r),o}return r(t,e),t}(a.View);t.SeparatorView=s},function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderApi=void 0;var r=n(39),i=n(51),a=n(52),l=n(23),s=n(53),u=n(54),p=n(8),d=n(55),c=n(26),h=n(56),f=n(57),v=n(58),m=function(){function e(e){this.controller=e}return Object.defineProperty(e.prototype,"expanded",{get:function(){return this.controller.folder.expanded},set:function(e){this.controller.folder.expanded=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this.controller.viewModel.hidden},set:function(e){this.controller.viewModel.hidden=e},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.controller.viewModel.dispose()},e.prototype.addInput=function(e,t,n){var o=n||{},i=r.create(this.controller.document,new u.Target(e,t,o.presetKey),o);return this.controller.uiContainer.add(i,o.index),new h.InputBindingApi(i)},e.prototype.addMonitor=function(e,t,n){var o=n||{},r=i.create(this.controller.document,new u.Target(e,t),o);return this.controller.uiContainer.add(r,o.index),new f.MonitorBindingApi(r)},e.prototype.addFolder=function(t){var n=new l.FolderController(this.controller.document,o(o({},t),{viewModel:new p.ViewModel}));return this.controller.uiContainer.add(n,t.index),new e(n)},e.prototype.addButton=function(e){var t=new a.ButtonController(this.controller.document,o(o({},e),{viewModel:new p.ViewModel}));return this.controller.uiContainer.add(t,e.index),new d.ButtonApi(t)},e.prototype.addSeparator=function(e){var t=e||{},n=new s.SeparatorController(this.controller.document,{viewModel:new p.ViewModel});return this.controller.uiContainer.add(n,t.index),new v.SeparatorApi(n)},e.prototype.on=function(e,t){return c.folder({eventName:e,folder:this.controller.folder,handler:t.bind(this),uiContainer:this.controller.uiContainer}),this},e}();t.FolderApi=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.importJson=t.exportJson=void 0,t.exportJson=function(e){return e.reduce((function(e,t){var n;return Object.assign(e,((n={})[t.presetKey]=t.read(),n))}),{})},t.importJson=function(e,t){e.forEach((function(e){var n=t[e.presetKey];void 0!==n&&e.write(n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RootController=void 0;var o=n(9),r=n(0),i=n(41),a=n(42),l=n(123),s=n(43);var u=function(){function e(e,t){this.onContainerTransitionEnd_=this.onContainerTransitionEnd_.bind(this),this.onFolderBeforeChange_=this.onFolderBeforeChange_.bind(this),this.onTitleClick_=this.onTitleClick_.bind(this),this.onUiContainerAdd_=this.onUiContainerAdd_.bind(this),this.onUiContainerItemLayout_=this.onUiContainerItemLayout_.bind(this),this.onUiContainerRemove_=this.onUiContainerRemove_.bind(this),this.folder=function(e){return e.title?new i.Folder(e.title,r.TypeUtil.getOrDefault(e.expanded,!0)):null}(t),this.folder&&this.folder.emitter.on("beforechange",this.onFolderBeforeChange_),this.ucList_=new a.UiContainer,this.ucList_.emitter.on("add",this.onUiContainerAdd_),this.ucList_.emitter.on("itemlayout",this.onUiContainerItemLayout_),this.ucList_.emitter.on("remove",this.onUiContainerRemove_),this.doc_=e,this.viewModel=t.viewModel,this.view=new l.RootView(this.doc_,{folder:this.folder,model:this.viewModel}),this.view.titleElement&&this.view.titleElement.addEventListener("click",this.onTitleClick_),this.view.containerElement.addEventListener("transitionend",this.onContainerTransitionEnd_)}return Object.defineProperty(e.prototype,"document",{get:function(){return this.doc_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uiContainer",{get:function(){return this.ucList_},enumerable:!1,configurable:!0}),e.prototype.onFolderBeforeChange_=function(e){if("expanded"===e.propertyName){var t=this.folder;t&&(r.TypeUtil.isEmpty(t.expandedHeight)&&(t.expandedHeight=s.computeExpandedFolderHeight(t,this.view.containerElement)),t.shouldFixHeight=!0,o.forceReflow(this.view.containerElement))}},e.prototype.applyUiContainerChange_=function(){s.updateAllItemsPositions(this.uiContainer)},e.prototype.onUiContainerAdd_=function(e){o.insertElementAt(this.view.containerElement,e.uiController.view.element,e.index),this.applyUiContainerChange_()},e.prototype.onUiContainerRemove_=function(e){this.applyUiContainerChange_()},e.prototype.onUiContainerItemLayout_=function(e){this.applyUiContainerChange_()},e.prototype.onTitleClick_=function(){this.folder&&(this.folder.expanded=!this.folder.expanded)},e.prototype.onContainerTransitionEnd_=function(e){"height"===e.propertyName&&this.folder&&(this.folder.shouldFixHeight=!1,this.folder.expandedHeight=null)},e}();t.RootController=u},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RootView=void 0;var i=n(1),a=n(4),l=n(3),s=n(2),u=i.ClassName("rot"),p=function(e){function t(t,n){var o=e.call(this,t,n)||this;o.onFolderChange_=o.onFolderChange_.bind(o),o.folder_=n.folder,o.folder_&&o.folder_.emitter.on("change",o.onFolderChange_),o.element.classList.add(u());var r=o.folder_;if(r){var i=t.createElement("button");i.classList.add(u("t")),i.textContent=r.title,o.element.appendChild(i);var l=t.createElement("div");l.classList.add(u("m")),i.appendChild(l),o.titleElem_=i}var s=t.createElement("div");return s.classList.add(u("c")),o.element.appendChild(s),o.containerElem_=s,o.applyModel_(),n.model.emitter.on("dispose",(function(){o.containerElem_=a.disposeElement(o.containerElem_),o.folder_=null,o.titleElem_=a.disposeElement(o.titleElem_)})),o}return r(t,e),Object.defineProperty(t.prototype,"titleElement",{get:function(){return this.titleElem_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerElement",{get:function(){if(!this.containerElem_)throw l.PaneError.alreadyDisposed();return this.containerElem_},enumerable:!1,configurable:!0}),t.prototype.applyModel_=function(){var e=this.containerElem_;if(!e)throw l.PaneError.alreadyDisposed();var t=!this.folder_||this.folder_.styleExpanded,n=u(void 0,"expanded");t?this.element.classList.add(n):this.element.classList.remove(n),e.style.height=this.folder_?this.folder_.styleHeight:"auto"},t.prototype.onFolderChange_=function(){this.applyModel_()},t}(s.View);t.RootView=p}]).default}));