-
Notifications
You must be signed in to change notification settings - Fork 0
/
tracker.js
9 lines (9 loc) · 276 KB
/
tracker.js
1
2
3
4
5
6
7
8
9
!function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var i=e.slice(1),n=t[e[0]];return function(t,e,r){n.apply(this,[t,e,r].concat(i))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,i){"use strict";i(11),i(12),i(13),i(14);var n=i(15),r=i(37),o=i(60),s=i(182),a=i(188),l=(i(135),i(124),i(220));window.Tracker=function(t,e){this.model=new r(t,e),this.view=new n(t,this.model),this.video=new a(this.view.sections.video,this.model),this.header=new l(this.view.sections.header,t,this.model),this.alert=new s(this.view.node),new o(t,this.model,this.view,this.video,this.alert)}},,,,,,,,,,,function(t,e){"use strict";Math.toRadians=function(t){return t*Math.PI/180},Math.toDegrees=function(t){return 180*t/Math.PI},Math.sign=Math.sign||function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1}},function(t,e){"use strict";Node.prototype.show=Node.prototype.show||function(){this.style.display=""},Node.prototype.hide=Node.prototype.hide||function(){this.style.display="none"},Node.prototype.remove=Node.prototype.remove||function(){this.parentNode&&this.parentNode.removeChild(this)},Node.prototype.insert=Node.prototype.insert||function(t){t.appendChild(this)},Node.prototype.attr=Node.prototype.attr||function(t,e){return 2!==arguments.length?this.getAttribute(t):void this.setAttribute(t,e)},Node.prototype.bind=Node.prototype.bind||function(t,e,i){this.addEventListener(t,e,i)},Node.prototype.attrDel=Node.prototype.attrDel||function(t){this.removeAttribute(t)}},function(t,e){"use-strict";NodeList.prototype.attr=NodeList.prototype.attr||function(t,e){for(var i=this.length;i--;){if(2!==arguments.length)return this[i].getAttribute(t);this[i].setAttribute(t,e)}},NodeList.prototype.show=NodeList.prototype.show||function(){for(var t=this.length;t--;)this[t].style.display=""},NodeList.prototype.hide=NodeList.prototype.hide||function(){for(var t=this.length;t--;)this[t].style.display="none"}},function(t,e){"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var t,e=/\s+/g,i=this,n=function(){return i.className.baseVal.trim().split(e)},r=function(e){return function(r){var o=n(),s=o.indexOf(r);e(o,s,r),i.className=o.join(" "),t.length=o.length}};return t={length:function(){return n().length}(),add:r(function(t,e,i){~e||t.push(i)}),remove:r(function(t,e){~e&&t.splice(e,1)}),toggle:r(function(t,e,i){~e?t.splice(e,1):t.push(i)}),contains:function(t){return!!~n().indexOf(t)},item:function(t){return n()[t]||null}}}})},function(t,e,i){"use strict";var n=i(16);i(17);var r=i(24),o=n(i(35)),s=8,a=34,l=34,c=420,h=300,d=140,p=(i(36),"mode-without-right-frames"),u="mode-without-bottom-frames",f=function(t,e){var i=Math.max(c,e.video.bbox.width||0)+"px",n=e.video.bbox.height+a+"px",r=s+"px",o=t.rightT.visible||t.rightB.visible,l=t.bottomL.visible||t.bottomR.visible;this.sections.video.style.width=i,this.sections.bottom.style.width=i,l||o||(this.splitter.LR.style.display="none"),l||(this.sections.video.style.width=i,this.sections.bottomL.parentNode.style.display="none",this.sections.video.style.height="100%",this.splitter.L_TB.style.display="none"),o||(this.sections.right.style.display="none",this.sections.video.style.width="100%",this.sections.video.parentNode.style.width="100%",this.splitter.LR.style.display="none",this.splitter.R_TB.style.display="none",this.sections.video.style.height=n,this.sections.bottom.style.height="calc(100% - "+n+" - "+r+")"),l&&(this.sections.video.style.height=n,this.sections.bottom.style.height="calc(100% - "+n+" - "+r+")",t.bottomL.visible&&!t.bottomR.visible&&(this.splitter.L_B_LR.style.display="none",this.sections.bottomL.style.width="100%"),!t.bottomL.visible&&t.bottomR.visible&&(this.splitter.L_B_LR.style.display="none",this.sections.bottomR.style.width="100%"),t.bottomL.visible&&t.bottomR.visible&&(this.sections.bottomL.style.width="50%",this.sections.bottomR.style.width="calc(50% - "+r+")")),o&&(this.sections.right.style.width="calc(100% - "+i+" - "+r+")",t.rightT.visible&&!t.rightB.visible&&(this.splitter.R_TB.style.display="none",this.sections.rightT.style.height="100%",this.sections.rightB.style.display="none"),!t.rightT.visible&&t.rightB.visible&&(this.splitter.R_TB.style.display="none",this.sections.rightB.style.height="100%",this.sections.rightT.style.display="none"))},A=function(t,e){var i,n,o,s,a=["bottomL","bottomR","rightT","rightB"];for(s=a.length;s--;)i=this.sections[a[s]],n=t[a[s]],n.visible&&(n.table&&(o="table"),n.graph&&(o="graph"),this.panels.push(new r(i,e,{id:a[s],data:n.data,object:n.object,view:n.data?n.data.view:""})))},b=function(t){var e="",i=t.videoWrapper;i.style.webkitTransform=e,i.style.MozTransform=e,i.style.msTransform=e,i.style.OTransform=e,i.style.transform=e,i.style.webkitTransformOrigin=e,i.style.MozTransformOrigin=e,i.style.msTransformOrigin=e,i.style.OTransformOrigin=e,i.style.transformOrigin=e,this.node.classList.remove(p),this.node.classList.remove(u),t.node.removeAttribute("style"),t.videoWrapper.removeAttribute("style")},m=function(t,e,i){var n=e.view,r=s+"px",o=n.videoWrapper,l=i.width/t.width,c="scale("+l+", "+l+")",h="0 0 0";e.model.updateScale(l),o.style.webkitTransform=c,o.style.MozTransform=c,o.style.msTransform=c,o.style.OTransform=c,o.style.transform=c,o.style.webkitTransformOrigin=h,o.style.MozTransformOrigin=h,o.style.msTransformOrigin=h,o.style.OTransformOrigin=h,o.style.transformOrigin=h,this.node.classList.add(p);var d=t.width*l+"px",u=t.height*l+a+"px";this.sections.bottom.style.width=d,this.sections.right.style.width="calc(100% - "+d+" - "+r+")",this.sections.bottom.style.height="calc(100% - "+u+" - "+r+")",n.node.style.width=d,n.node.style.height=u,n.holder.style.width=d,n.holder.style.height=u,n.videoWrapper.style.width=t.width+"px",n.videoWrapper.style.height=t.height+"px"},x=function(t,e,i){var n=e.view,r=s+"px",o=n.videoWrapper,h=(i.height-a-l)/t.height,d="scale("+h+", "+h+")",p="0 0 0";e.model.updateScale(h),o.style.webkitTransform=d,o.style.MozTransform=d,o.style.msTransform=d,o.style.OTransform=d,o.style.transform=d,o.style.webkitTransformOrigin=p,o.style.MozTransformOrigin=p,o.style.msTransformOrigin=p,o.style.OTransformOrigin=p,o.style.transformOrigin=p,this.node.classList.add(u);var f=Math.max(t.width*h,c)+"px",A=t.height*h+a+"px";this.sections.bottom.style.width=f,this.sections.right.style.width="calc(100% - "+f+" - "+r+")",this.sections.bottom.style.height="calc(100% - "+A+" - "+r+")",n.node.style.width=f,n.node.style.height=A,n.holder.style.width=f,n.holder.style.height=A,n.videoWrapper.style.width=Math.max(t.width,c/h)+"px",n.videoWrapper.style.height=t.height+"px"},g=function(){this.node.classList.add(p)},v=function(){this.node.classList.add(u)},y=function(t){return{width:t.offsetWidth,height:t.offsetHeight}},w=function(t,e){this.holder=document.body||document.querySelector("body"),this.node=o.querySelector("div").cloneNode(!0),this.sections={header:this.node.querySelector(".tracker > .section-h"),video:this.node.querySelector(".tracker > .section-l > .section-t"),right:this.node.querySelector(".tracker > .section-r"),rightT:this.node.querySelector(".tracker > .section-r > .section-t"),rightB:this.node.querySelector(".tracker > .section-r > .section-b"),bottom:this.node.querySelector(".tracker > .section-l > .section-b"),bottomL:this.node.querySelector(".tracker > .section-l > .section-b > .section-l"),bottomR:this.node.querySelector(".tracker > .section-l > .section-b > .section-r")},this.splitter={LR:this.node.querySelector(".tracker > .splitter.vertical"),L_TB:this.node.querySelector(".tracker > .section-l > .splitter.horizontal"),R_TB:this.node.querySelector(".tracker > .section-r > .splitter.horizontal"),L_B_LR:this.node.querySelector(".tracker > .section-l > .section-b > .splitter.vertical")},this.mainChilds=[this.node.querySelector(".tracker > .section-h"),this.node.querySelector(".tracker > .section-r"),this.node.querySelector(".tracker > .section-l"),this.node.querySelector(".tracker > .splitter.vertical")],this.panels=[],f.call(this,t,e),A.call(this,t,e)};w.prototype.draw=function(){this.holder.appendChild(this.node)},w.prototype.hide=function(){for(var t=this.mainChilds.length;t--;)this.mainChilds[t].style.display="none"},w.prototype.show=function(){for(var t=this.mainChilds.length;t--;)this.mainChilds[t].style.display=""},w.prototype.updateLayout=function(t,e,i,n){i.model.clearScale(),b.call(this,i.view),f.call(this,t,e);var r=y(this.sections.right),o=y(this.sections.bottom);e.video.bbox.width>n.width&&m.call(this,e.video.bbox,i,n),e.video.bbox.height+a+l>n.height&&x.call(this,e.video.bbox,i,n),r.width<h&&g.call(this),o.height<d&&v.call(this)},t.exports=w},function(t,e){"use strict";var i=document.createElement("div");t.exports=function(t){var e=document.createDocumentFragment();for(t=t.replace(/>\s*</gm,"><"),i.innerHTML=t.replace(/>\s*</gm,"><");i.firstChild;)e.appendChild(i.firstChild);return e}},function(t,e,i){var n=i(18);"string"==typeof n&&(n=[[t.id,n,""]]);i(23)(n,{});n.locals&&(t.exports=n.locals)},function(t,e,i){e=t.exports=i(19)(),e.push([t.id,"@font-face{font-family:Tracker Icons;src:url("+i(20)+") format('woff')}.tracker{width:100%;height:100%;overflow:auto;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tracker>.section-l{position:relative;float:left;height:calc(100% - 34px)}.tracker>.section-r{float:right;height:calc(100% - 34px)}.tracker>.section-l>.section-b,.tracker>.section-l>.section-t{position:relative}.tracker>.section-l>.section-b>.section-l{position:relative;float:left;height:100%}.tracker>.section-l>.section-b>.section-r{float:right;height:100%}.tracker>.section-r>.section-t{position:relative;height:calc(50% - 8px)}.tracker>.section-r>.section-b{height:50%}.splitter{position:relative;margin:0;border:0;padding:0}.splitter.horizontal{width:100%;height:8px;background-image:url("+i(21)+");background-position:center center;cursor:s-resize}.splitter.vertical{height:100%;float:left;width:8px;background-image:url("+i(22)+");background-position:center center;cursor:e-resize}.tracker>.splitter.vertical{height:calc(100% - 34px)}.tracker.mode-without-bottom-frames>.section-l>.section-b,.tracker.mode-without-bottom-frames>.section-l>.splitter.horizontal,.tracker.mode-without-right-frames>.section-r,.tracker.mode-without-right-frames>.splitter.vertical{display:none}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var i=this[e];i[2]?t.push("@media "+i[2]+"{"+i[1]+"}"):t.push(i[1])}return t.join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(n[o]=!0)}for(r=0;r<e.length;r++){var s=e[r];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}},function(t,e){t.exports="data:application/x-font-woff;base64,d09GRk9UVE8AAAQcAAsAAAAABigAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAABCAAAAQIAAAEm0hKn/UZGVE0AAAIMAAAAGgAAABxxFP/gR0RFRgAAAigAAAAdAAAAIAAwAARPUy8yAAACSAAAAEUAAABgUB1eyGNtYXAAAAKQAAAAQAAAAUoC1QJXaGVhZAAAAtAAAAApAAAANgX1ng1oaGVhAAAC/AAAABgAAAAkBC8CA2htdHgAAAMUAAAACgAAAAoEYAAAbWF4cAAAAyAAAAAGAAAABgADUABuYW1lAAADKAAAAOQAAAHLO2DsPnBvc3QAAAQMAAAAEAAAACAAAwABeJxVjb9Kw1AYxb8vf2op4arBQIVYxztot5I5nTI4ugdLDChKAqm0j6Dw6RZwEXyNvEOG0OW+hEOWwL1wB71dhP7OcM5yzkFwHEBE9lKtsqe8mj9mZbEGtABhqS4sNbPV1Hn3kDybPGc2gfNb/5foP3hHRKpWtRvC53EIcBLC12kILMSpD85+ZgQ+XMJ19lyu8+wh31RlMb8vt8XB4+E9AL7iG9iI1mrDhAh6LiPqDSQj3vNeR8QNpKOej+VO7gIRk2axQTOKRSxImp4QkpGIx/pOfwRd1yVNkxhLmyRJujTtjLlMDnII2hu92Esu2vbnymWqPqNg+y0HGpE3+QPxM3A6AAB4nGNgYGBkAIIztovOg+hL2es6YDQATkEHYgAAeJxjYGRgYOADYgkGEGBiYARCEMkC5jEAAARgADUAAAB4nGNgZmJgnMDAysDB6MOYxsDA4A6lvzJIMrQwMDAxsHIywAAjAxIISHNNYXBgSGRIYnzw/wGDHhOSGjBbAQgZAc/XCYwAAAB4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZGZiArKT//8EqEkH0/wVQ9UDAyMaA4NAKMDLR2gaKAADbUgcreJxjYGRgYADiGY8TH8bz23xl4GZiAIFL2es6kGkmBrA4B4QCADX8CWAAAAB4nGNgZGBgYgACPTAJYjMyoAImAAXQADkCAAAAAgAAAABgAAAAAFAAAAMAAHiclY7BSgMxEIa/tLsFrb16KB5yKwhZki16KJ77BNJ7WZayFDaQ3Sfx4Nv4ID6Bj6GT7Rz0IGhCmG9m/vkzwA2vGPIxrLhTnlHyqDznnhflQjTvyiVLPpUXrMxGlKa4ksp6mso841qmLzznmSflQjRvyiW3fCgvWJslI4kjDWdaIUcnHOkZYEzH5twm1zWxl/RbRyv7KR+nmDiJg6Wmwkvcyfvd+9IPbKUa5DqZ8xIfxDT24z6mU2vrytud/bGF5GHrQnC1D6L9+/KHSTGIIvfz13lNDm0autjbUPl/uH0BJQtKjHicY2BmQAaMDGgAAACOAAU="},function(t,e){t.exports="data:image/gif;base64,R0lGODlhAQAIAJEAAEBAQP///4CAgNTQyCwAAAAAAQAIAAACBFSGI1AAOw=="},function(t,e){t.exports="data:image/gif;base64,R0lGODlhCAABAJEAAEBAQP///4CAgNTQyCwAAAAACAABAAACBFSGI1AAOw=="},function(t,e,i){function n(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=d[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(a(n.parts[o],e))}else{for(var s=[],o=0;o<n.parts.length;o++)s.push(a(n.parts[o],e));d[n.id]={id:n.id,refs:1,parts:s}}}}function r(t){for(var e=[],i={},n=0;n<t.length;n++){var r=t[n],o=r[0],s=r[1],a=r[2],l=r[3],c={css:s,media:a,sourceMap:l};i[o]?i[o].parts.push(c):e.push(i[o]={id:o,parts:[c]})}return e}function o(){var t=document.createElement("style"),e=f();return t.type="text/css",e.appendChild(t),t}function s(){var t=document.createElement("link"),e=f();return t.rel="stylesheet",e.appendChild(t),t}function a(t,e){var i,n,r;if(e.singleton){var a=b++;i=A||(A=o()),n=l.bind(null,i,a,!1),r=l.bind(null,i,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=s(),n=h.bind(null,i),r=function(){i.parentNode.removeChild(i),i.href&&URL.revokeObjectURL(i.href)}):(i=o(),n=c.bind(null,i),r=function(){i.parentNode.removeChild(i)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}function l(t,e,i,n){var r=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function c(t,e){var i=e.css,n=e.media;e.sourceMap;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}function h(t,e){var i=e.css,n=(e.media,e.sourceMap);n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var r=new Blob([i],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(r),o&&URL.revokeObjectURL(o)}var d={},p=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},u=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),f=p(function(){return document.head||document.getElementsByTagName("head")[0]}),A=null,b=0;t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=u());var i=r(t);return n(i,e),function(t){for(var o=[],s=0;s<i.length;s++){var a=i[s],l=d[a.id];l.refs--,o.push(l)}if(t){var c=r(t);n(c,e)}for(var s=0;s<o.length;s++){var l=o[s];if(0===l.refs){for(var h=0;h<l.parts.length;h++)l.parts[h]();delete d[l.id]}}}};var m=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}()},function(t,e,i){"use strict";var n=i(25),r=i(32),o=function(t,e,i){this.view=new n(t,e,i),new r(this.view,e,i)};t.exports=o},function(t,e,i){"use strict";var n=i(16);document.body||document.querySelector("body");i(26);var r=n(i(29)),o={graph:"Plot",table:"Table",blank:"Page"},s=i(30),a=i(31),l=function(){for(var t=this.node.querySelectorAll(".select-view > .bttn-view-option"),e=0,i=t.length;e<i;e++)this.bttnsOptionView.push(new s(t[e]))},c=function(t,e){var i=t.object?e.objects.find(t.object):e.objects[0],n=this.node.querySelector(".frame-panel-header .bttn-object-current");this.bttnCurrentObject=new a(n,i);var r=this.selectObjectMenu.querySelector(".bttn-object-select");this.selectObjectMenu.removeChild(r);for(var o=0,s=e.objects.length;o<s;o++)i=e.objects[o],n=r.cloneNode(!0),this.selectObjectMenu.appendChild(n),this.bttnsOptionObject.push(new a(n,i));this.bttnObjectTemplate=r},h=function(t,e,i){this.node=r.querySelector("div").cloneNode(!0),this.name=t.getAttribute("name"),this.holder=t,this.id=i.id,this.contentHolder=this.node.querySelector(".frame-panel-content"),this.contentNode=null,this.title=this.node.querySelector(".frame-panel-title > span"),this.title.textContent=this.name,this.currentView="",this.bttnCurrentView=this.node.querySelector(".frame-panel-header .bttn-view-current"),this.bttnViewParameters=this.node.querySelector(".frame-panel-header .bttn-view-parameters"),this.bttnViewParametersText=this.node.querySelector(".frame-panel-header .bttn-view-parameters > span"),this.optionViewMenu=this.node.querySelector(".frame-panel-header .select-view"),this.bttnsOptionView=[],this.selectObjectBox=this.node.querySelector(".frame-panel-header > .menu-object-current"),this.selectObjectMenu=this.node.querySelector(".frame-panel-header > .menu-object-current > .select-object"),this.bttnCurrentObject=null,this.bttnsOptionObject=[],this.bttnObjectTemplate=null,l.call(this),c.call(this,i,e),this.setCurrentView(i.view,e),this.hideObjectOptions(),this.hideViewOptions(),this.draw()};h.prototype.draw=function(){this.holder.appendChild(this.node)},h.prototype.setCurrentView=function(t,e){return t&&""!==t?this.currentView!==t&&(this.currentView=t,this.selectObjectBox.style.display="",this.selectObjectMenu.style.display="",this.bttnViewParameters.style.display="",this.bttnViewParametersText.textContent=o[t],this.bttnCurrentView.setAttribute("current",t),this.bttnViewParameters.setAttribute("current",t),this.setCurrentObject(e,this.bttnCurrentObject.name),this.currentView):(this.selectObjectBox.style.display="none",this.selectObjectMenu.style.display="none",this.bttnViewParameters.style.display="none",this.bttnCurrentView.setAttribute("current","default"),!1)},h.prototype.setCurrentObject=function(t,e){if(this.bttnCurrentObject.name===e)return!1;var i=t.objects.find(e);return this.bttnCurrentObject.update(i),this.bttnCurrentObject.name},h.prototype.showViewOptions=function(){this.optionViewMenu.style.display=""},h.prototype.hideViewOptions=function(){this.optionViewMenu.style.display="none"},h.prototype.showObjectOptions=function(){this.selectObjectMenu.style.display=""},h.prototype.hideObjectOptions=function(){this.selectObjectMenu.style.display="none"},h.prototype.clear=function(t){for(;this.contentHolder.firstChild;)this.contentHolder.removeChild(this.contentHolder.firstChild)},h.prototype.addNewCreatedObject=function(t){var e=this.bttnObjectTemplate.cloneNode(!0),i=new a(e,t);return this.selectObjectMenu.appendChild(e),this.bttnsOptionObject.push(i),i},h.prototype.updateColor=function(t){this.bttnCurrentObject.name===t.name&&this.bttnCurrentObject.updateColor(t.color.value);for(var e=this.bttnsOptionObject.length;e--;)if(this.bttnsOptionObject[e].name===t.name){this.bttnsOptionObject[e].updateColor(t.color.value);break}},t.exports=h},[233,27],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,"@font-face{font-family:Panel Controls Icon;src:url("+i(28)+") format('woff')}.frame-panel-header>.menu-view-curent{display:inline-block;white-space:nowrap;position:relative}.frame-panel-header>.menu-view-curent>.bttn-view-current{width:30px;height:30px;background:none;padding:0;margin:1px;outline:0;border:none;vertical-align:middle;cursor:pointer}.frame-panel-header>.menu-view-curent>.bttn-view-current:before{font-family:Panel Controls Icon;font-size:20px;color:#3c3c3c;position:relative}.frame-panel-header>.menu-view-curent>.bttn-view-current:hover:before{color:#fd7f7f}.frame-panel-header>.menu-view-curent>.bttn-view-current[current=graph]:before{content:'a';font-size:26px;top:1px}.frame-panel-header>.menu-view-curent>.bttn-view-current[current=table]:before{content:'b';top:1px}.frame-panel-header>.menu-view-curent>.bttn-view-current[current=default]:before{content:'e';top:3px}.frame-panel-header>.menu-view-curent>.select-view{background:#eee;display:inline-block;width:75pt;box-shadow:1px 1px 2px #ccc;position:absolute;top:33px;left:0;z-index:10}.frame-panel-header>.menu-view-curent>.select-view>.bttn-view-option{width:75pt;height:24px;background:none;padding:0;margin:2px 0;outline:0;border:none;vertical-align:middle;cursor:pointer;text-align:left;display:list-item;list-style:none}.frame-panel-header>.menu-view-curent>.select-view>.bttn-view-option:hover{background:#a3b8cc}.frame-panel-header>.menu-view-curent>.select-view>.bttn-view-option:before{display:inline-block;width:20px;margin-right:4px;text-align:center;position:relative;top:3px}.frame-panel-header>.menu-view-curent>.select-view>.bttn-view-option[option=graph]:before{font-family:Panel Controls Icon;font-size:18px;color:#3c3c3c;content:'a'}.frame-panel-header>.menu-view-curent>.select-view>.bttn-view-option[option=graph]:after{font-family:Arial;font-size:14px;color:#3c3c3c;content:'Plot View'}.frame-panel-header>.menu-view-curent>.select-view>.bttn-view-option[option=table]:before{font-family:Panel Controls Icon;font-size:14px;color:#3c3c3c;content:'b'}.frame-panel-header>.menu-view-curent>.select-view>.bttn-view-option[option=table]:after{font-family:Arial;font-size:14px;color:#3c3c3c;content:'Table View'}.frame-panel-header>.menu-object-current{display:inline-block;white-space:nowrap;margin-left:6px;position:relative}.frame-panel-header>.menu-object-current>.bttn-object-current{display:inline-block;border:1px solid #7a8a99;padding:0;margin:0;height:26px;background:transparent;box-shadow:inset 0 0 2px #7a8a99;outline:0;vertical-align:middle;position:relative;overflow:hidden;line-height:9pt;cursor:pointer;color:#3c3c3c}.frame-panel-header>.menu-object-current>.bttn-object-current:hover{color:#fd7f7f}.frame-panel-header>.menu-object-current>.bttn-object-current:after{font-family:Panel Controls Icon;font-size:24px;content:'d';position:relative;vertical-align:middle}.frame-panel-header>.menu-object-current>.select-object{background:#eee;display:inline-block;min-width:100%;box-shadow:1px 1px 2px #ccc;position:absolute;top:30px;left:0;padding:2px 0;z-index:10}.frame-panel-header>.menu-object-current>.select-object>button{width:100%;display:list-item;margin:0;padding:0;text-align:left;background:none;border:0;outline:0;padding:4px 0;color:#3c3c3c;cursor:pointer;list-style:none}.frame-panel-header>.menu-object-current>.select-object>button:hover{background:#a3b8cc}.frame-panel-header>.menu-object-current>.select-object>button{margin-right:8px}.frame-panel-header>.menu-object-current>.bttn-object-current>i,.frame-panel-header>.menu-object-current>.select-object>button>i{vertical-align:middle;display:inline-block;width:20px;text-align:center}.frame-panel-header>.menu-object-current>.bttn-object-current>i:before,.frame-panel-header>.menu-object-current>.select-object>button>i:before{font-family:Panel Controls Icon;font-size:14px;font-style:normal;position:relative}.frame-panel-header>.menu-object-current>.bttn-object-current>i[element=point]:before,.frame-panel-header>.menu-object-current>.select-object>button>i[element=point]:before{content:'g'}.frame-panel-header>.menu-object-current>.bttn-object-current>i[element=vector]:before,.frame-panel-header>.menu-object-current>.select-object>button>i[element=vector]:before{content:'f';top:1px}.frame-panel{width:100%;height:100%}.frame-panel-content{width:100%;height:calc(100% - 2pc);overflow:auto}.frame-panel-header{text-align:left;width:100%;height:2pc;position:relative;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #ffffff),color-stop(100%, #dddddd));background:-webkit-linear-gradient(top,#fff 0,#ddd 100%);background:linear-gradient(to bottom,#fff 0,#ddd 100%)}.frame-panel-header>.frame-panel-title{float:right;display:inline-block;margin-right:25px;margin-top:8px;width:60px;text-align:center;font-Family:Arial;font-size:14px;font-weight:700}.frame-panel-header>.bttn-view-parameters{text-align:center;width:50px;height:26px;background:transparent;border:1px solid #7a8a99;outline:0;box-shadow:inset 0 0 2px #7a8a99;vertical-align:middle}.frame-panel-header>.bttn-view-parameters>span{display:block;padding-bottom:2px}.frame-panel-header>.bttn-view-parameters[current=table]{cursor:pointer}.frame-panel-header>.bttn-view-parameters[current=table]:hover{color:#fd7f7f}",""])},function(t,e){t.exports="data:application/x-font-woff;base64,d09GRk9UVE8AAAaAAAsAAAAACgwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAABCAAAA1EAAAUbPTe9CEZGVE0AAARcAAAAGgAAABxw5aBmR0RFRgAABHgAAAAdAAAAIAA1AARPUy8yAAAEmAAAAEcAAABgUB1eamNtYXAAAATgAAAARQAAAUoI5AZcaGVhZAAABSgAAAAsAAAANgXGPpNoaGVhAAAFVAAAABsAAAAkBB0CA2htdHgAAAVwAAAAFAAAABQE0gFcbWF4cAAABYQAAAAGAAAABgAIUABuYW1lAAAFjAAAAOEAAAGzHYiWCXBvc3QAAAZwAAAAEAAAACAAAwABeJxtk99rE1kUx+90MjPXGOMPMuBiSGVlfVn8BYurj8u+LFRBUBZBFtp1a62UNm2ibpB0k7TNzNxz50fSSTbBzbJYZbEWFLYPvqgoFNbmyX9CH3zRpzt4C+6dtGgc9wzMuffc+72f75yZkVAshiRJSmRHJkcnDo1fnJrMIWkASei74MuB4IAc7I3RhAQJGRKxTBx9cXbPe4APg4TWgaAS+Eoa3d2ZRmhXGj3cnUZ704q8B20Lj1HRdrQD7UY62of2o6/R8bGZkezl/MjPE6NXs79MXZ+cGM/lr41ezE/NZKfGJ/N9PvotISQZkilZEpFAopKNcHj4ALop75AH5WPymPwk9m0y+OGNzjfUYqnZHmQtrd1stjNsQ203S8VB3tKKpVIxM/1IZ5f4v/ySxuQl3VY98BzHw/+s/31GcRZqRp3UoeaKygu2U/EWzWbFq3hls1rBPx7JrilmrerM03lYMM0q/un7a38p87UynV/Aw2PK3AIp1ebqc02yWMd3b9+eURzDIx7gJDvJtutgEksEsYgJ+KhqgkUtSmxig4OfaWBTh1LbFgnwS9UBsWDZhIpt+FlsS2v1a+0t7VMNHGqH0k+1YguYmB3kJ7bQhIgE+Igq6pT0DviAtgVbnAL4lSqKvcUemh9kQi6wFonSKRGgUL5Jp/108j90q59uW/3mQ/Wn9IicRPsWMR95dvqZ+Si937zQ0n76Z+ZJtPMR81H6ply8NSEi0b5F0JG+bWkfPNDh92qz4lf8sjsLeCOlzkLZqIioluA3zLsazHplsVxpVFuAg5Tagobni/Aa0BJfXIYd1lkJeJwN8zgfVpJBnL3TeQmYmDFRVZJdlte73SFtiKU2M/d7uRvOmT+kcf/jKFwLR8ngQnBUt13qEpc4xDVtwzXsKpi9RuGNAT6kGJZpEnEjBq1SwzHFZbmWC5id5CdUMMKakFkuwa66GP6AdeHYD87pWciXCyLKOZiG6UauU3CslSv3zq88Xlmxnc4fjSW4g+FOeanQKXRyjWnA3dgqrN5Ynlg/DV+dOo2BK1zmKZbiCpNh8NRzeLv+fHl59eYq4Hv8G71TbBd+nS0WCq3in512u5NJBn4K9NdrbHjt1n01E5ey4+8T2yAR/w8riU2ZAAAAeJxjYGBgZACCM7aLzoPoS8H/TsNoAFNPCFgAAHicY2BkYGDgA2IJBhBgYmAEQnYgZgHzGAAElwA6AAAAeJxjYGZiYJzAwMrAwejDmMbAwOAOpb8ySDK0MDAwMbByMsAAIwMSCEhzTWFwYEhkSGd88P8Bgx4TkhrGuUBCAQgZAdXjCi0AeJxjYGBgZoBgGQZGBhBwAfIYwXwWBg0gzQakGRmYgKz0///BKhJB9P8FUPVAwMjGgODQCjAyMbOwsrHT2hpyAQDv/AdJAAAAeJxjYGRgYADiT6IeT+L5bb4ycDMxgMCl4H+n4bQQUMk7sDgHA5gCAEG7Cst4nGNgZGBgYgACPTDJwPiOgZEBFTABABdmASYAAgAAAAIAADMAEgCKAIoAQAA2AF8AAFAAAAgAAHicjY89bgIxEIW/hV2khDRpopQuUqTxymspFByAOhU9Qiu0ErLRwiE4AffIMXKAHCMHSJe3mykoUmDJ8vdm3vwYeOBCwXAK5jwbT6gIxlNeORuX8nwaV+Jv4xnz4lHOorxT5GmsGnjCPS/GU95ZGJfyfBhX4i/jmfiHAxsSLXs8HVuy1BEOm9TufbfNSeIqbpHVqE/j27NTvSNS6x+Ope7/Xf9yUZt5Gnm9OIje1DCn0yr3u9bFOrilu5ovFRe+CT6GRs5bFl4r3yvajVmnEcNqrNv+2OXkmjrc1OcXBSlEEQAAAHicY2BmQAaMDGgAAACOAAU="},function(t,e){t.exports='<div class="frame-panel">\r\n <div class="frame-panel-header">\r\n <div class="menu-view-curent">\r\n <button class="bttn-view-current"></button>\r\n <div class="select-view">\r\n <button class="bttn-view-option" option="graph"></button>\r\n <button class="bttn-view-option" option="table"></button>\r\n </div>\r\n </div>\r\n <button class="bttn-view-parameters"><span class="bttn-text">Plot</span></button>\r\n <div class="menu-object-current">\r\n <button class="bttn-object-current"><i></i><span>Object</span></button>\r\n <div class="select-object">\r\n <button class="bttn-object-select"><i></i><span></span></button>\r\n </div>\r\n </div>\r\n <label class="frame-panel-title"><span>Frame 4</span></label>\r\n </div>\r\n <div class="frame-panel-content"></div>\r\n</div>\r\n'},function(t,e){"use strict";var i=function(t){this.name=t.getAttribute("option"),this.node=t,this.isVisible=!0};i.prototype.show=function(){this.isVisible||(this.isVisible=!0,this.node.style.display="")},i.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this.node.style.display="none")},t.exports=i},function(t,e){"use strict";var i=function(t,e){this.name=e?e.name:"",this.node=t,this.isVisible=!0,this.icon=this.node.querySelector("button > i"),this.label=this.node.querySelector("button > span"),e&&this.update(e)};i.prototype.show=function(){this.isVisible||(this.isVisible=!0,this.node.style.display="")},i.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this.node.style.display="none")},i.prototype.update=function(t){this.name=t.name,this.label.textContent=this.name,this.icon.style.color=t.color.value,this.icon.setAttribute("element",t.type)},i.prototype.updateColor=function(t){this.icon.style.color=t},t.exports=i},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=(n.input.change,function(t,e){t.clear(),n.fire("FRAME_INIT_DATA_VIEW:"+t.currentView,{frame:t.name,data:e.data||{},holder:t.contentHolder,object:t.bttnCurrentObject.name})}),s=function(t,e,i,r,o){var s=t.currentView,a=t.setCurrentObject(r,e);a&&n.fire("FRAME_CHANGE_DATA:"+s+":"+t.name,{data:i.data||{},holder:t.contentHolder,object:o||r.objects.find(t.bttnCurrentObject.name)})},a=function(t,e,i){e.node.addEventListener(r,function(n){var r=t.setCurrentView(e.name);r&&o(t,i)},!1)},l=function(t,e,i,n){e.node.addEventListener(r,function(r){s(t,e.name,i,n)},!1)},c=function(t,e,i){t.bttnViewParameters.addEventListener(r,function(e){n.fire("SHOW_DATA_PARAMETERS:"+t.currentView+":"+t.name,{object:t.bttnCurrentObject.name,frameName:t.name})}),t.bttnCurrentView.addEventListener(r,function(e){t.showViewOptions(),e.preventDefault(),e.stopPropagation()},!1),t.bttnCurrentObject.node.addEventListener(r,function(e){t.showObjectOptions(),e.preventDefault(),e.stopPropagation()},!1),window.addEventListener(r,function(e){t.hideViewOptions(),t.hideObjectOptions()},!1);for(var c=t.bttnsOptionView.length;c--;)a(t,t.bttnsOptionView[c],i);for(var c=t.bttnsOptionObject.length;c--;)l(t,t.bttnsOptionObject[c],i,e);n.on("APP_VIEW_WAS_RENDERED",function(e){i.object&&o(t,i)}),n.on("NEW_OBJECT_CREATED",function(n){var r=t.addNewCreatedObject(n);l(t,r,i,e)}),n.on("NEW_OBJECT_CREATED:show:"+t.name,function(n){s(t,n.object.name,i,e,n.object)}),n.on("POINT_UPDATE:color",function(e){t.updateColor(e.object)})};t.exports=c},function(t,e,i){"use strict";var n=i(34),r=n.platform.Mobile,o={},s=1,a=function(t,e){var i,n=e?1:s,r=t.pageX,o=t.pageY;return null===t.pageX&&null!==t.clientX&&(i=document.documentElement.body||document.body||document.querySelector("body"),r=t.clientX+(i&&i.scrollLeft||0)-(i&&i.clientLeft||0),o=t.clientY+(i&&i.scrollTop||0)-(i&&i.clientTop||0)),t.changedTouches&&t.changedTouches.length&&(r=t.changedTouches[0].pageX,o=t.changedTouches[0].pageY),{x:Math.round(r/n),y:Math.round(o/n)}},l=function(t,e){o[t]||(o[t]=[]),e&&e.call&&o[t].push(e)},c=function(t,e){var i=o[t];if(i&&0!==i.length)for(var n=0,r=i.length;n<r;n++)i[n](e)},h=function(t){var e=o[t];e&&e.length>0&&(e.length=0)},d=function(t){s=t},p=function(){return s};t.exports={user:{mousedown:r?"touchstart":"mousedown",mousemove:r?"touchmove":"mousemove",mouseup:r?"touchend":"mouseup",mouseover:r?"xxx":"mouseover",mouseout:r?"xxx":"mouseout",mouseenter:"mouseenter",mouseleave:"mouseleave",position:a,touch:r},input:{change:"change",focus:"focus",blur:"blur"},on:l,fire:c,clear:h,getPointScale:p,updateScaleFactor:d}},function(t,e){"use strict";var i,n,r=parseFloat(navigator.appVersion,10)+"",o=parseInt(navigator.appVersion,10),s=navigator.appName,a=navigator.appVersion,l=navigator.userAgent;(i=l.indexOf("Opera"))>-1?(r=l.substring(i+6),i=l.indexOf("Version"),i>-1&&(r=l.substring(i+8)),s="Opera"):(i=l.indexOf("MSIE"))>-1?(r=l.substring(i+5),s="MSIE"):(i=l.indexOf("Trident"))>-1?(r=l.match(/rv:(\d+.\d+)/)[0].replace(/rv:/,""),s="MSIE"):(i=l.indexOf("Chrome"))>-1?(r=l.substring(i+7),s="Chrome"):(i=l.indexOf("Safari"))>-1?(r=l.substring(i+7),i=l.indexOf("Version"),i>-1&&(r=l.substring(i+8)),
s="Safari"):(i=l.indexOf("Firefox"))>-1&&(r=l.substring(i+8),s="Firefox"),(n=r.indexOf(";"))>-1&&(r=r.substring(0,n)),(n=r.indexOf(" "))>-1&&(r=r.substring(0,n)),r=parseFloat(r,10),o=parseInt(r,10),isNaN(o)&&(r=parseFloat(navigator.appVersion,10),o=parseInt(navigator.appVersion,10));var c=function(){this.BlackBerry=l.indexOf("BlackBerry")>-1,this.Android=l.indexOf("Android")>-1,this.Windows=a.indexOf("Win")>-1,this.Linux=a.indexOf("Linux")>-1,this.MacOS=a.indexOf("Mac")>-1,this.UNIX=a.indexOf("X11")>-1,this.iOS=l.match(/iPad|iPhone|iPod/)},h=function(){var t=navigator.language;return h.allowed[t]||(t=h.DEFAULT),h.allowed[t]};h.allowed={en:"English",es:"Spanish"},h.DEFAULT=h.allowed.en;var d=function(){this.Mobile=l.match(/(iPhone|iPod|iPad|Android|BlackBerry)/),this.PC=!this.Mobile},p=function(){this.Firefox="Firefox"===s,this.Safari="Safari"===s,this.Chrome="Chrome"===s,this.Opera="Opera"===s,this.MSIE="MSIE"===s},u=function(){this.language=new h,this.platform=new d,this.name=new p,this.os=new c,this.fullVersion=r,this.version=o};t.exports=new u},function(t,e){t.exports='<div class="tracker">\r\n <div class="section-h"></div>\r\n <div class="section-l">\r\n <div class="section-t"></div>\r\n <hr class="splitter horizontal"></hr>\r\n <div class="section-b">\r\n <div class="section-l" name="Frame 3"></div>\r\n <hr class="splitter vertical"></hr>\r\n <div class="section-r" name="Frame 4"></div>\r\n </div>\r\n </div>\r\n <hr class="splitter vertical"></hr>\r\n <div class="section-r">\r\n <div class="section-t" name="Frame 1"></div>\r\n <hr class="splitter horizontal"></hr>\r\n <div class="section-b" name="Frame 2"></div>\r\n </div>\r\n</div>'},function(t,e){"use strict";t.exports={VERTICAL:"v",HORIZONTAL:"h"}},function(t,e,i){"use strict";var n=i(38),r=i(39),o=i(40),s=i(41),a=i(42),l={point:i(43),vector:i(48),"point-model":i(49),"point-place":i(57),"point-center-of-mass":i(58)},c=i(59),h=function(t,e,i){for(var n,r=0,o=t.length;r<o;r++)n=new l[t[r].type](t[r],this.matrix,e,i),this.objects.push(n);this.objects.find=d},d=function(t){var e,i=null;for(e=this.length;e--;)if(this[e].name===t){i=this[e];break}return i},p=function(t,e){this.name=t.application.name,this.axis=new o(e.axis||{}),this.tape=new s(e.tape||{}),this.protractor=new a(e.protractor||{}),this.video=new n(e.video),this.matrix=new r(e.matrix),this.objects=[],h.call(this,e.objects,this.video.frameStep,this.video.frameStart)};p.prototype.createNewParticalModelAnalytic=function(){var t=new c(this.video.frameStart,this.video.frames.length-1),e=l[t.type],i=new e(t,this.matrix,this.video.frameStep,this.video.frameStart,e.ANALYTIC);return this.objects.push(i),i},p.prototype.createNewParticalModelDynamic=function(){var t=new c(this.video.frameStart,this.video.frames.length-1),e=l[t.type],i=new e(t,this.matrix,this.video.frameStep,this.video.frameStart,e.DYNAMIC);return this.objects.push(i),i},p.prototype.createPointCenterOfMass=function(t,e,i){var n,r=[];for(n=e.length;n--;)r.push(this.objects.find(e[n]));var o=new l["point-center-of-mass"](t,r,this.matrix,this.video.frameStep,i);return this.objects.push(o),o},p.prototype.axisChangeOrigin=function(t){var e=this.matrix.x0-t.xorigin,i=this.matrix.y0-t.yorigin,n=this.matrix.getModelVector(e,i);this.matrix.x0=t.xorigin,this.matrix.y0=t.yorigin;for(var r=this.objects.length;r--;)this.objects[r].axisChangeOrigin(n.dx,n.dy)},t.exports=p},function(t,e){"use strict";var i=function(){return{width:Math.ceil(this.magnification*this.width),height:Math.ceil(this.magnification*this.height)}},n=function(t){this.frameStart=t.frameStart,this.frameStep=t.frameStep,this.frameRate=t.frameRate,this.playRate=t.playRate,this.frameCurrent=t.frameCurrent,this.frames=t.frames,this.width=t.width,this.height=t.height,this.magnification=t.magnification||1,this.displayState=t.displayState,this.bbox=i.call(this)};t.exports=n},function(t,e){"use strict";var i=function(){var t=Math.toRadians(-1*this.ang),e=Math.cos(t),i=Math.sin(t);return[[this.sX*e,1*this.sY*i],[this.sX*i,-1*this.sY*e]]},n=function(t){var e=t[0][0]*t[1][1]-t[0][1]*t[1][0];return 0===e?null:[[t[1][1]/e,-1*t[0][1]/e],[-1*t[1][0]/e,t[0][0]/e]]},r=function(t){this.x0=t.xorigin,this.y0=t.yorigin,this.ang=t.angle,this.sX=t.xscale,this.sY=t.yscale,this.m=i.call(this)};r.prototype.getUserPoint=function(t,e){return{x:this.x0+t*this.m[0][0]+e*this.m[0][1],y:this.y0+t*this.m[1][0]+e*this.m[1][1]}},r.prototype.getModelPoint=function(t,e){var i=n(this.m);if(t-=this.x0,e-=this.y0,null!==i)return{x:i[0][0]*t+i[0][1]*e,y:i[1][0]*t+i[1][1]*e}},r.prototype.getModelVector=function(t,e){var i=n(this.m);if(null!==i)return{dx:i[0][0]*t+i[0][1]*e,dy:i[1][0]*t+i[1][1]*e}},t.exports=r},function(t,e){"use strict";var i=function(t){this.visible=t.visible,this.draggable=!0};t.exports=i},function(t,e){"use strict";var i="#0000ff",n=[{x:50,y:50},{x:150,y:50}],r=function(t){this.points=t.points||n,this.color=t.color||i,this.visible=t.visible||!1};t.exports=r},function(t,e){"use strict";var i="#00ff00",n=[{x:120,y:30},{x:50,y:100},{x:120,y:170}],r=function(t){this.points=t.points||n,this.color=t.color||i,this.visible=t.visible||!1};t.exports=r},function(t,e,i){"use strict";var n=i(44),r=function(t,e){n.call(this,t,e)};r.prototype.axisChangeOrigin=n.prototype.axisChangeOrigin,t.exports=r},function(t,e,i){"use strict";var n=i(45),r=i(46),o=i(47),s=function(t){var e,i,n;for(i=0,n=t.length;i<n;i++)e=new r(t[i],this.params),a.call(this,e),this.frames.push(e)},a=function(t){t.position=this.matrix.getUserPoint(t.x,t.y)},l=function(t,e){this.name=t.name,this.type="point",this.mass=t.mass||1,this.start=t.start,this.track=t.track,this.trackType=t.trackType||"Circle",this.trackNumber=t.trackNumber||!1,this.radius=t.radius,this.color=new n(t.color),this.params=t.params.slice(0),this.matrix=e,this.frames=[],this.hidden=t.hidden===!0,this.bounds=t.bounds||{},this.precisions=t.precisions||{},this.axisIndex=new o(t.params,t.paramsAxis||[]),s.call(this,t.frames)};l.prototype.axisChangeOrigin=function(t,e){for(var i,n=this.frames.length;n--;)i=this.frames[n],i&&(isNaN(i.x)||isNaN(i.y)||(i.x+=t,i.y+=e))},t.exports=l},function(t,e){"use strict";var i=function(t){return Math.min(Math.max(t/255,0),1)},n=function(t){var e,i,n,r="#";for(e=0,i=3;e<i;e++)n=t[e]<16?"0":"",n+=t[e].toString(16),r+=n;return r},r=function(t){this.value=n(t),this.opacity=i(t[3])};t.exports=r},function(t,e){"use strict";var i=function(t,e){for(var i=t.length;i--;)this[e[i]]=t[i];this.position={}};t.exports=i},function(t,e){"use strict";var i=function(t){for(var e=0,i=t.length;e<i;e++)this.params.push({name:t[e],used:0})},n=function(t){for(var e=0,i=t.length;e<i;e++)this.paramsAxis.push({axisX:t[e][0],axisY:t[e][1],used:0})},r=function(t,e){return t.used-e.used},o=function(){var t=this.params.slice(1).sort(r);return t[0].used+=1,t[0].name},s=function(t,e){this.params=[],this.paramsAxis=[],i.call(this,t),n.call(this,e)};s.prototype.getAxisLabels=function(){var t="t";if(this.paramsAxis.length>0){var e=this.paramsAxis.slice(0).sort(r);return 0===e[0].used?(e[0].used+=1,e[0]):{axisX:t,axisY:o.call(this)}}return{axisX:t,axisY:o.call(this)}},t.exports=s},function(t,e,i){"use strict";var n=i(45),r=i(46),o=(i(44),10),s=function(t){var e,i,n;for(i=0,n=t.length;i<n;i++)e=new r(t[i],this.params),a.call(this,e),this.frames.push(e)},a=function(t){var e=Math.toRadians(t.theta),i=t.x_tail,n=t.y_tail,r=t.x,s=t.y,a=i+r,l=n+s,c=o*Math.cos(e),h=o*Math.sin(e),d=this.matrix.getUserPoint(i,n),p=this.matrix.getUserPoint(a,l);t.position={x1:d.x,y1:d.y,x2:p.x-c,y2:p.y-h}},l=function(t,e){this.name=t.name,this.type=t.type,this.start=t.start,this.track=!1,this.color=new n(t.color),this.params=t.params.slice(0),this.matrix=e,this.frames=[],this.hidden=t.hidden===!0,this.bounds=t.bounds||{},this.precisions=t.precisions||{},s.call(this,t.frames)};l.prototype.axisChangeOrigin=function(t,e){for(var i,n=this.frames.length;n--;)i=this.frames[n],isNaN(i.x_tail)||isNaN(i.y_tail)||(i.x_tail+=t,i.y_tail+=e)},t.exports=l},function(t,e,i){"use strict";var n="DYNAMIC",r="ANALYTIC",o={},s={},a={},l=i(44);o[n]=i(50),o[r]=i(54),s[n]=i(55),s[r]=i(56),a[n]="Force Functions",a[r]="Position Functions";var c=function(t,e,i,n,r){this.dt=i,this.isModel=!0,this.end=t.end,this.modelType=r||c.DYNAMIC,this.reCalcModel=s[this.modelType],this.functionsName=a[this.modelType],this.state=new o[this.modelType](t),this.videoFrameStart=n,l.call(this,t,e)};c.DYNAMIC=n,c.ANALYTIC=r,c.prototype.axisChangeOrigin=l.prototype.axisChangeOrigin,t.exports=c},function(t,e,i){"use strict";var n=i(51),r=i(53),o=function(t){this.parameters=[new n("m",t.mass?t.mass.toString().replace(/\./g,","):0,!1)],this.initialValues=[new n("t",0,!1),new n("x",0,!1),new n("y",0,!1),new n("vx",0,!1),new n("vy",0,!1)],this.forceFunctions=[new n("fx",0,!1),new n("fy",0,!1)],this.parameters.addRecord=r.addRecord("param"),this.parameters.removeRecord=r.removeRecord,this.forceFunctions.addRecord=r.addRecord("force"),this.forceFunctions.removeRecord=r.removeRecord};o.prototype.isNameNotUsed=r.isNameNotUsed,o.prototype.isExpressionValid=r.isExpressionValid,o.prototype.isModelStateValid=r.isModelStateValid,t.exports=o},function(t,e,i){"use strict";var n=i(52),r=function(t,e,i){this.isValid=!0,this.name=t||"",this.nameIsEditable=i,this.expression=e||"0,0",this.mathExpression=e?this.getValidExpression(e):null};r.prototype.setExpression=function(t,e){return this.mathExpression=e,this.expression=t,!0},r.prototype.setName=function(t){this.name=t},r.prototype.isNameValid=function(t){return/^[a-zA-Z]([a-zA-Z0-9]*)?$/.test(t)},r.prototype.getValidExpression=function(t){t=t.replace(/,/g,".");try{return n.parse(t)}catch(t){return null}},t.exports=r},function(t,e){var i=0,n=1,r=2,o=3,s=4,a=function(t){var e=function(){};return e.prototype=t,new e},l=function(t,e,i,n){this.type=t,this.index=e||0,this.prio=i||0,this.number=isNaN(n)?0:n};l.prototype.toString=function(){switch(this.type_){case i:return this.number_;case n:case r:case o:return this.index_;case s:return"CALL";default:return"Invalid Token"}};var c=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},d=function(t){return"string"==typeof t&&(c.lastIndex=0,c.test(t)&&(t=t.replace(c,function(t){var e=h[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),"'"+t+"'"},p=function(t,e,i,n){this.tokens=t,this.ops1=e,this.ops2=i,this.functions=n};p.prototype.simplify=function(t){t=t||{};var e,s,c,h,d,u,f,A=[],b=[];for(u=0,f=this.tokens.length;u<f;u++)if(e=this.tokens[u],s=e.type,s===i)A.push(e);else if(s===o&&t[e.index])e=new l(i,0,0,t[e.index]),A.push(e);else if(s===r&&A.length>1)h=A.pop(),c=A.pop(),d=this.ops2[e.index],e=new l(i,0,0,d(c.number,h.number)),A.push(e);else if(s===n&&A.length>0)c=A.pop(),d=this.ops1[e.index],e=new l(i,0,0,d(c.number)),A.push(e);else{for(;A.length>0;)b.push(A.shift());b.push(e)}for(;A.length>0;)b.push(A.shift());return new p(b,a(this.ops1),a(this.ops2),a(this.functions))},p.prototype.substitute=function(t,e){e instanceof p||(e=(new z).parse(String(e)));var i,n,r,s,c,h,d,u,f=[];for(c=0,h=this.tokens.length;c<h;c++)if(r=this.tokens[c],s=r.type,s===o&&r.index===t)for(d=0,u=e.tokens.length;d<u;d++)i=e.tokens[d],n=new l(i.type,i.index,i.prio,i.number),f.push(n);else f.push(r);return new p(f,a(this.ops1),a(this.ops2),a(this.functions))},p.prototype.evaluate=function(t){t=t||{};var e,a,l,c,h,d,p=[];for(a=0,l=this.tokens.length;a<l;a++){e=this.tokens[a];var u=e.type;if(u===i)p.push(e.number);else if(u===r)h=p.pop(),c=p.pop(),d=this.ops2[e.index],p.push(d(c,h));else if(u===o)if(isNaN(t[e.index])){if(!this.functions[e.index])throw new Error("[Math Parser] Undefined variable: "+e.index);p.push(this.functions[e.index])}else p.push(t[e.index]);else if(u===n)c=p.pop(),d=this.ops1[e.index],p.push(d(c));else{if(u!==s)throw new Error("[Math Parser] invalid Expression");if(c=p.pop(),d=p.pop(),!d.apply||!d.call)throw new Error("[Math Parser]"+d+" is not a function");c.splice&&c.slice?p.push(d.apply(void 0,c)):p.push(d.call(void 0,c))}}if(p.length>1)throw new Error("[Math Parser]invalid Expression (parity)");return p[0]},p.prototype.variables=function(){var t,e,i,n=[];for(e=0,i=this.tokens.length;e<i;e++)t=this.tokens[e],t.type===o&&n.indexOf(t.index)===-1&&n.push(t.index);return n},p.prototype.toString=function(t){var e,a,l,c,h,p,u,f=[];for(p=0,u=this.tokens.length;p<u;p++)if(e=this.tokens[p],a=e.type,a===i)f.push(d(e.number));else if(a===r)c=f.pop(),l=f.pop(),h=e.index,t&&"^"===h?f.push("Math.pow("+l+","+c+")"):f.push("("+l+h+c+")");else if(a===o)f.push(e.index);else if(a===n)l=f.pop(),h=e.index,"-"===h?f.push("("+h+l+")"):f.push(h+"("+l+")");else{if(a!==s)throw new Error("[Math Parser] invalid Expression");l=f.pop(),h=f.pop(),f.push(h+"("+l+")")}if(f.length>1)throw new Error("[Math Parser] invalid Expression (parity)");return f[0]},p.prototype.toJSFunction=function(t,e){return new Function(t,"with( Parser.values ) { return "+this.simplify(e).toString(!0)+"; }")},p.prototype.getListOfVariables=function(){var t,e,i=[];for(t=0,e=this.tokens.length;t<e;t++)this.tokens[t].type===o&&i.push(this.tokens[t].index);return i};var u=function(t,e){return t+e},f=function(t,e){return t-e},A=function(t,e){return t*e},b=function(t,e){return t/e},m=function(t,e){return t%e},x=function(t,e){return""+t+e},g=function(t,e){return t==e},v=function(t,e){return t!==e},y=function(t,e){return t>e},w=function(t,e){return t<e},k=function(t,e){return t>=e},C=function(t,e){return t<=e},E=function(t,e){return Boolean(t&&e)},M=function(t,e){return Boolean(t||e)},S=function(t){return 0===t?1:t/Math.abs(t)},L=function(t){return Math.sinh?Math.sinh(t):(Math.exp(t)-Math.exp(-t))/2},N=function(t){return Math.cosh?Math.cosh(t):(Math.exp(t)+Math.exp(-t))/2},F=function(t){return Math.tanh?Math.tanh(t):t===+(1/0)?1:t===-(1/0)?-1:(Math.exp(t)-Math.exp(-t))/(Math.exp(t)+Math.exp(-t))},T=function(t){return Math.asinh?Math.asinh(t):t===-(1/0)?t:Math.log(t+Math.sqrt(t*t+1))},O=function(t){return Math.acosh?Math.acosh(t):Math.log(t+Math.sqrt(t*t-1))},D=function(t){return Math.atanh?Math.atanh(t):Math.log((1+t)/(1-t))/2},_=function(t){return Math.log(t)*Math.LOG10E},I=function(t){return-t},P=function(t){return Math.trunc?Math.trunc(t):t<0?Math.ceil(t):Math.floor(t)},R=function(t){return Math.random()*(t||1)},B=function(t,e){for(e=t=Math.floor(t);t>1;)e*=--t;return e},j=function(){if(Math.hypot)return Math.hypot.apply(this,arguments);var t,e,i=0;for(t=0,e=arguments.length;t<e;t++){if(arguments[t]===1/0||arguments[t]===-(1/0))return 1/0;i+=arguments[t]*arguments[t]}return Math.sqrt(i)},V=function(t,e,i){return t?e:i},q=function(t,e){return t.splice||t.slice||t.push?(t=t.slice(),t.push(e),t):[t,e]},U=function(t){var e,i,n,r,o,s=["+","-","*","/","^"],a=[],l=function(t){return s.indexOf(t)>-1},c=function(e){for(;t[e]&&t[e].match(/\s/);)e--;return t[e]},h=function(e){for(;t[e]&&t[e].match(/\s/);)e++;return t[e]};for(r=0,o=t.length;r<o;r++)e=c(r-1),n=t[r],i=h(r+1),"|"===n?!e||l(e)?a.push("abs("):a.push(")"):a.push(n);return a.join("")},H=function(t){return t.replace(/([a-zA-z][a-zA-z0-1_]*)\/abs\(\1\)/g,"sign($1)")},z=function(){this.success=!1,this.errormsg="",this.expression="",this.pos=0,this.tokennumber=0,this.tokenprio=0,this.tokenindex=0,this.tmpprio=0,this.ops1={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:L,cosh:N,tanh:F,asinh:T,acosh:O,atanh:D,sign:S,sqrt:Math.sqrt,log:Math.log,lg:_,log10:_,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:P,"-":I,exp:Math.exp},this.ops2={"+":u,"-":f,"*":A,"/":b,"%":m,"^":Math.pow,",":q,"||":x,"==":g,"!=":v,">":y,"<":w,">=":k,"<=":C,and:E,or:M},this.functions={random:R,fac:B,min:Math.min,max:Math.max,hypot:j,pyt:j,pow:Math.pow,atan2:Math.atan2,if:V},this.consts={E:Math.E,PI:Math.PI}};z.parse=function(t){return(new z).parse(t)},z.evaluate=function(t,e){return z.parse(t).evaluate(e)},z.Expression=p,z.values={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:L,cosh:N,tanh:F,asinh:T,acosh:O,atanh:D,sqrt:Math.sqrt,log:Math.log,lg:_,log10:_,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:P,random:R,fac:B,exp:Math.exp,min:Math.min,max:Math.max,hypot:j,pyt:j,pow:Math.pow,atan2:Math.atan2,if:V,E:Math.E,PI:Math.PI};var Y=1,G=2,Q=4,X=8,J=16,W=32,Z=64,K=128,$=256;z.prototype.parse=function(t){t=U(t),t=H(t),this.errormsg="",this.success=!0,this.tmpprio=0,this.expression=t,this.pos=0;for(var e,c,h,d=[],u=[],f=Y|X|Q|Z,A=0;this.pos<this.expression.length;)this.isOperator()?this.isSign()&&f&Z?(this.isNegativeSign()&&(this.tokenprio=2,this.tokenindex="-",A++,this.addfunc(u,d,n)),f=Y|X|Q|Z):this.isComment()||(0===(f&G)&&this.error_parsing(this.pos,"unexpected operator"),A+=2,this.addfunc(u,d,r),f=Y|X|Q|Z):this.isNumber()?(0===(f&Y)&&this.error_parsing(this.pos,"unexpected number"),e=new l(i,0,0,this.tokennumber),u.push(e),f=G|J|W):this.isString()?(0===(f&Y)&&this.error_parsing(this.pos,"unexpected string"),e=new l(i,0,0,this.tokennumber),u.push(e),f=G|J|W):this.isLeftParenth()?(0===(f&X)&&this.error_parsing(this.pos,'unexpected "("'),f&K&&(A+=2,this.tokenprio=-2,this.tokenindex=-1,this.addfunc(u,d,s)),f=Y|X|Q|Z|$):this.isRightParenth()?(f&$?(e=new l(i,0,0,[]),u.push(e)):0===(f&J)&&this.error_parsing(this.pos,'unexpected ")"'),f=G|J|W|X|K):this.isComma()?(0===(f&W)&&this.error_parsing(this.pos,'unexpected ","'),this.addfunc(u,d,r),A+=2,f=Y|X|Q|Z):this.isConst()?(0===(f&Y)&&this.error_parsing(this.pos,"unexpected constant"),c=new l(i,0,0,this.tokennumber),u.push(c),f=G|J|W):this.isOp2()?(0===(f&Q)&&this.error_parsing(this.pos,"unexpected function"),this.addfunc(u,d,r),A+=2,f=X):this.isOp1()?(0===(f&Q)&&this.error_parsing(this.pos,"unexpected function"),this.addfunc(u,d,n),A++,f=X):this.isVar()?(0===(f&Y)&&this.error_parsing(this.pos,"unexpected variable"),h=new l(o,this.tokenindex,0,0),u.push(h),f=G|J|W|X|K):this.isWhite()||(""===this.errormsg?this.error_parsing(this.pos,"unknown character"):this.error_parsing(this.pos,this.errormsg));for((this.tmpprio<0||this.tmpprio>=10)&&this.error_parsing(this.pos,'unmatched "()"');d.length>0;){var b=d.pop();u.push(b)}return A+1!==u.length&&this.error_parsing(this.pos,"parity"),new p(u,a(this.ops1),a(this.ops2),a(this.functions))},z.prototype.evaluate=function(t,e){return this.parse(t).evaluate(e)},z.prototype.error_parsing=function(t,e){throw this.success=!1,this.errormsg="[Math Parser] parse error [column "+t+"]: "+e,this.column=t,new Error(this.errormsg)},z.prototype.addfunc=function(t,e,i){for(var n=new l(i,this.tokenindex,this.tokenprio+this.tmpprio,0);e.length>0&&n.prio<=e[e.length-1].prio;)t.push(e.pop());e.push(n)},z.prototype.isNumber=function(){for(var t=!1,e="";this.pos<this.expression.length;){var i=this.expression.charCodeAt(this.pos);if(!(i>=48&&i<=57||46===i))break;e+=this.expression.charAt(this.pos),this.pos++,this.tokennumber=parseFloat(e),t=!0}return t},z.prototype.unescape=function(t,e){var i,n,r,o,s=[],a=!1;for(n=0,r=t.length;n<r;n++)if(o=t.charAt(n),a){switch(o){case"'":s.push("'");break;case"\\":s.push("\\");break;case"/":s.push("/");break;case"b":s.push("\b");break;case"f":s.push("\f");break;case"n":s.push("\n");break;case"r":s.push("\r");break;case"t":s.push("\t");break;case"u":i=parseInt(t.substring(n+1,n+5),16),s.push(String.fromCharCode(i)),n+=4;break;default:throw this.error_parsing(e+n,'Illegal escape sequence: "\\'+o+'"')}a=!1}else"\\"===o?a=!0:s.push(o);return s.join("")},z.prototype.isString=function(){var t,e=!1,i="",n=this.pos;if(this.pos<this.expression.length&&"'"===this.expression.charAt(this.pos))for(this.pos++;this.pos<this.expression.length;){if(t=this.expression.charAt(this.pos),"'"===t&&"\\"!==i.slice(-1)){this.pos++,this.tokennumber=this.unescape(i,n),e=!0;break}i+=this.expression.charAt(this.pos),this.pos++}return e},z.prototype.isConst=function(){var t,e,i;for(e in this.consts)if(i=e.length,t=this.expression.substr(this.pos,i),e===t)return this.tokennumber=this.consts[e],this.pos+=i,!0;return!1},z.prototype.isOperator=function(){var t=this.expression.charCodeAt(this.pos);if(43===t)this.tokenprio=2,this.tokenindex="+";else if(45===t)this.tokenprio=2,this.tokenindex="-";else if(62===t)61===this.expression.charCodeAt(this.pos+1)?(this.pos++,this.tokenprio=1,this.tokenindex=">="):(this.tokenprio=1,this.tokenindex=">");else if(60===t)61===this.expression.charCodeAt(this.pos+1)?(this.pos++,this.tokenprio=1,this.tokenindex="<="):(this.tokenprio=1,this.tokenindex="<");else if(124===t){if(124!==this.expression.charCodeAt(this.pos+1))return!1;this.pos++,this.tokenprio=1,this.tokenindex="||"}else if(61===t){if(61!==this.expression.charCodeAt(this.pos+1))return!1;this.pos++,this.tokenprio=1,this.tokenindex="=="}else if(33===t){if(61!==this.expression.charCodeAt(this.pos+1))return!1;this.pos++,this.tokenprio=1,this.tokenindex="!="}else if(97===t){if(110!==this.expression.charCodeAt(this.pos+1)||100!==this.expression.charCodeAt(this.pos+2))return!1;this.pos++,this.pos++,this.tokenprio=0,this.tokenindex="and"}else if(111===t){if(114!==this.expression.charCodeAt(this.pos+1))return!1;this.pos++,this.tokenprio=0,this.tokenindex="or"}else if(42===t||8729===t||8226===t)this.tokenprio=3,this.tokenindex="*";else if(47===t)this.tokenprio=4,this.tokenindex="/";else if(37===t)this.tokenprio=4,this.tokenindex="%";else{if(94!==t)return!1;this.tokenprio=5,this.tokenindex="^"}return this.pos++,!0},z.prototype.isSign=function(){var t=this.expression.charCodeAt(this.pos-1);return 45===t||43===t},z.prototype.isPositiveSign=function(){var t=this.expression.charCodeAt(this.pos-1);return 43===t},z.prototype.isNegativeSign=function(){var t=this.expression.charCodeAt(this.pos-1);return 45===t},z.prototype.isLeftParenth=function(){var t=this.expression.charCodeAt(this.pos);return 40===t&&(this.pos++,this.tmpprio+=10,!0)},z.prototype.isRightParenth=function(){var t=this.expression.charCodeAt(this.pos);return 41===t&&(this.pos++,this.tmpprio-=10,!0)},z.prototype.isComma=function(){var t=this.expression.charCodeAt(this.pos);return 44===t&&(this.pos++,this.tokenprio=-1,this.tokenindex=",",!0)},z.prototype.isWhite=function(){var t=this.expression.charCodeAt(this.pos);return(32===t||9===t||10===t||13===t)&&(this.pos++,!0)},z.prototype.isOp1=function(){var t,e,i,n="";for(t=this.pos,e=this.expression.length;t<e&&(i=this.expression.charAt(t),i.toUpperCase()!==i.toLowerCase()||!(t===this.pos||"_"!==i&&(i<"0"||i>"9")));t++)n+=i;return!!(n.length>0&&this.ops1[n])&&(this.tokenindex=n,this.tokenprio=5,this.pos+=n.length,!0)},z.prototype.isOp2=function(){var t,e,i,n="";for(t=this.pos,e=this.expression.length;t<e&&(i=this.expression.charAt(t),i.toUpperCase()!==i.toLowerCase()||!(t===this.pos||"_"!==i&&(i<"0"||i>"9")));t++)n+=i;return!!(n.length>0&&this.ops2[n])&&(this.tokenindex=n,this.tokenprio=5,this.pos+=n.length,!0)},z.prototype.isVar=function(){var t,e,i,n="";for(t=this.pos,e=this.expression.length;t<e&&(i=this.expression.charAt(t),i.toUpperCase()!==i.toLowerCase()||!(t===this.pos||"_"!==i&&(i<"0"||i>"9")));t++)n+=i;return n.length>0&&(this.tokenindex=n,this.tokenprio=4,this.pos+=n.length,!0)},z.prototype.isComment=function(){var t=this.expression.charCodeAt(this.pos-1);return 47===t&&42===this.expression.charCodeAt(this.pos)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(this.pos=this.expression.length),!0)},window.Parser=z,t.exports=z},function(t,e,i){"use strict";var n=i(51),r=function(t){return function(){for(var e,i=1;!s(this,t+i);)i+=1;return e=new n(t+i,"",!0),this.push(e),e}},o=function(t){var e=this.indexOf(t);e>-1&&this.splice(e,1)},s=function(t,e){var i,n=!1;for(i=t.length;i--;)if(t[i].name===e){n=!0;break}return!n},a=function(t,e){for(var i=e.length;i--;)t.push(e[i].name)},l=function(t){return s(this.parameters,t)&&s(this.initialValues,t)&&s(this.forceFunctions,t)},c=function(){var t=[];return a(t,this.initialValues),t},h=function(t,e){var i=e.getListOfVariables(),n=[],r=!0;if(i.indexOf(t)>-1)return!1;if(a(n,this.parameters),a(n,this.initialValues),a(n,this.forceFunctions),c.call(this).indexOf(t)>-1&&i.length>0)return r=!1;for(var o=i.length;o--;)if(n.indexOf(i[o])<0){r=!1;break}return r},d=function(t){for(var e=!0,i=t.length;i--;)e=e&&t[i].isValid;return e},p=function(){return d(this.parameters)&&d(this.initialValues)&&d(this.forceFunctions)};t.exports={addRecord:r,removeRecord:o,isNameNotUsed:l,isExpressionValid:h,isModelStateValid:p}},function(t,e,i){"use strict";var n=i(51),r=i(53),o=function(t){this.parameters=[new n("m",t.mass?t.mass.toString().replace(/\./g,","):0,!1)],this.initialValues=[new n("t",0,!1)],this.forceFunctions=[new n("x",0,!1),new n("y",0,!1)],this.parameters.addRecord=r.addRecord("param"),this.parameters.removeRecord=r.removeRecord,this.forceFunctions.addRecord=r.addRecord("force"),this.forceFunctions.removeRecord=r.removeRecord};o.prototype.isNameNotUsed=r.isNameNotUsed,o.prototype.isExpressionValid=r.isExpressionValid,o.prototype.isModelStateValid=r.isModelStateValid,t.exports=o},function(t,e,i){"use strict";var n=8,r=10,o=100,s=i(46),a=function(){var t,e,i,n,r={},o=[this.state.parameters,this.state.initialValues];for(i=o.length;i--;)for(n=o[i].length;n--;)t=o[i][n],e=t.mathExpression,null===e?r[t.name]=0:r[t.name]=e.evaluate(r);return r},l=function(t,e){return Math.sqrt(t*t+e*e)},c=function(t,e){var i,n,r,o=this.state.forceFunctions,s={};for(t.x=e[0],t.vx=e[1],t.y=e[2],t.vy=e[3],t.t=e[4],r=o.length;r--;)i=o[r],n=i.mathExpression,null===n?s[i.name]=0:s[i.name]=n.evaluate(t),t[i.name]=s[i.name];return s},h=function(t,e,i){var n=c.call(this,t,e);i[0]=e[1],i[1]=t.m?n.fx/t.m:0,i[2]=e[3],i[3]=t.m?n.fy/t.m:0,i[4]=1},d=function(t){var e,i=t.variables,n=t.stepSize,r=t.numEqn,o=t.state,s=t.rate1,a=t.rate2,l=t.rate3,c=t.rate4,d=t.estimated_state;for(h.call(this,i,o,s),e=0;e<r;e++)d[e]=o[e]+n*s[e]/2;for(h.call(this,i,d,a),e=0;e<r;e++)d[e]=o[e]+n*a[e]/2;for(h.call(this,i,d,l),e=0;e<r;e++)d[e]=o[e]+n*l[e];for(h.call(this,i,d,c),e=0;e<r;e++)o[e]=o[e]+n*(s[e]+2*a[e]+2*l[e]+c[e])/6},p=function(t,e,i){var r=this.frames[t];r.t=Number(this.dt*(t-this.start).toPrecision(n)),r.x=i[0],r.y=i[2]},u=function(t,e,i){var n=this.frames[t-1],r=this.frames[t],o=this.frames[t+1];n&&o&&(isNaN(n.x)||isNaN(o.x)||(r.v_x=(o.x-n.x)/(2*this.dt)),isNaN(n.y)||isNaN(o.y)||(r.v_y=(o.y-n.y)/(2*this.dt)),isNaN(r.v_x)||isNaN(r.v_y)||(r.v=l(r.v_x,r.v_y)),isNaN(r.v)||(r.K=e.m*r.v*r.v/2))},f=function(t,e,i){var n=this.frames[t-2],r=this.frames[t-1],o=this.frames[t],s=this.frames[t+1],a=this.frames[t+2];n&&r&&o&&s&&a&&(isNaN(o.v_x)||(o.a_x=e.fx/e.m),isNaN(o.v_y)||(o.a_y=e.fy/e.m),isNaN(o.a_x)||isNaN(o.a_y)||(o.a=l(o.a_x,o.a_y)))},A=function(t){t.position=this.matrix.getUserPoint(t.x,t.y)},b=function(){for(var t=this.frames.length;t--;)this.frames[t]=null};t.exports=function(){var t=a.call(this);this.mass=t.m,b.call(this);var e=this.end+1,i=r*o,l=Math.round(t.t/this.dt),c=this.start+l;if(!(l>e)){var h=Number((l*this.dt).toPrecision(n)),m=[t.x,t.vx,t.y,t.vy,0],x=m.length,g=this.dt/r,v=g/o,y=new Array(x),w=new Array(x),k=new Array(x),C=new Array(x),E=new Array(x);this.frames[c]=new s([],{}),this.frames[c].t=h,this.frames[c].x=t.x,this.frames[c].y=t.y,this.frames[c].v_x=NaN,this.frames[c].v_y=NaN,this.frames[c].a_x=NaN,this.frames[c].a_y=NaN,A.call(this,this.frames[c]);for(var M={variables:t,stepSize:v,numEqn:x,state:m,rate1:y,rate2:w,rate3:k,rate4:C,estimated_state:E},S=0;S<e;S++)if(S<c+1)S!==c&&(this.frames[S]=null);else{for(var L=0;L<i;L++)d.call(this,M);this.frames[S]=new s([],{}),p.call(this,S,t,m),u.call(this,S-1,t,m),f.call(this,S-2,t,m),A.call(this,this.frames[S])}}}},function(t,e,i){"use strict";var n=i(46),r=8,o=function(){var t,e,i,n,r={},o=[this.state.parameters,this.state.initialValues];for(i=o.length;i--;)for(n=o[i].length;n--;)t=o[i][n],e=t.mathExpression,null===e?r[t.name]=0:r[t.name]=e.evaluate(r);return r},s=function(t,e){return Math.sqrt(t*t+e*e)},a=function(t,e){var i,n,r,o=this.state.forceFunctions,s={};for(r=o.length;r--;)i=o[r],n=i.mathExpression,null===n?s[i.name]=0:s[i.name]=n.evaluate(t),t[i.name]=s[i.name];return s},l=function(t,e){var i=this.frames[t];i.t=e.t,i.x=e.x,i.y=e.y},c=function(t,e){var i=this.frames[t-1],n=this.frames[t],o=this.frames[t+1];i&&o&&(isNaN(i.x)||isNaN(o.x)||(n.v_x=(o.x-i.x)/(2*this.dt),n.v_x=Number(n.v_x.toPrecision(r))),isNaN(i.y)||isNaN(o.y)||(n.v_y=(o.y-i.y)/(2*this.dt),n.v_y=Number(n.v_y.toPrecision(r))),isNaN(n.v_x)||isNaN(n.v_y)||(n.v=s(n.v_x,n.v_y),n.v=Number(n.v.toPrecision(r))),isNaN(n.v)||(n.K=e.m*n.v*n.v/2,n.K=Number(n.K.toPrecision(r))))},h=function(t,e){var i=this.frames[t-2],n=this.frames[t-1],o=this.frames[t],a=this.frames[t+1],l=this.frames[t+2];i&&n&&o&&a&&l&&(isNaN(o.v_x)||(o.a_x=(2*i.x-n.x-2*o.x-a.x+2*l.x)/(7*this.dt*this.dt),o.a_x=Number(o.a_x.toPrecision(r))),isNaN(o.v_y)||(o.a_y=(2*i.y-n.y-2*o.y-a.y+2*l.y)/(7*this.dt*this.dt),o.a_y=Number(o.a_y.toPrecision(r))),isNaN(o.a_x)||isNaN(o.a_y)||(o.a=s(o.a_x,o.a_y),o.a=Number(o.a.toPrecision(r))))},d=function(t){t.position=this.matrix.getUserPoint(t.x,t.y)},p=function(){for(var t=this.frames.length;t--;)this.frames[t]=null};t.exports=function(){var t,e=o.call(this);this.mass=e.m,p.call(this);var i=this.end+1,s=Math.round(e.t/this.dt),u=this.start+s;if(!(s>i))for(var f=0;f<i;f++)f<u?this.frames[f]=null:(e.t=Number((this.dt*(f-this.videoFrameStart)).toPrecision(r)),this.frames[f]=new n([],{}),t=a.call(this,e),l.call(this,f,e),c.call(this,f-1,e),h.call(this,f-2,e),d.call(this,this.frames[f]))}},function(t,e,i){"use strict";var n=(i(45),i(46)),r=i(44),o=function(t){s.call(this,t-1),a.call(this,t-2)},s=function(t){var e=this.frames[t-1],i=this.frames[t],n=this.frames[t+1];e&&i&&n&&(i.v_x=(n.x-e.x)/(2*this.dt),i.v_y=(n.y-e.y)/(2*this.dt))},a=function(t){var e=this.frames[t-2],i=this.frames[t-1],n=this.frames[t],r=this.frames[t+1],o=this.frames[t+2];e&&i&&n&&r&&o&&(n.a_x=(2*e.x-i.x-2*n.x-r.x+2*o.x)/(7*this.dt*this.dt),n.a_y=(2*e.y-i.y-2*n.y-r.y+2*o.y)/(7*this.dt*this.dt))},l=function(t){t.position=this.matrix.getUserPoint(t.x,t.y)},c=function(t,e,i){this.dt=i,this.isModelPlace=!0,this.placeEnd=t.placeEnd,this.placeStart=t.placeStart,r.call(this,t,e)};c.prototype.updateFrameData=function(t,e){e=this.matrix.getModelPoint(e.x,e.y),t-=this.start;var i=null;i=this.frames[t]?this.frames[t]:this.frames[t]=new n([],{}),i.t=this.dt*(t-this.start),i.x=e.x,i.y=e.y,l.call(this,i),o.call(this,t)},c.prototype.axisChangeOrigin=r.prototype.axisChangeOrigin,t.exports=c},function(t,e,i){"use strict";var n=i(46),r=i(44),o=function(t){t.position=this.matrix.getUserPoint(t.x,t.y)},s=function(t){for(var e=0,i=t.length;i--;)e+=t[i].mass;return e},a=function(t){var e,i=0;for(e=t.length;e--;)i=Math.max(i,t[e].start);return i},l=function(t){var e,i=1/0;for(e=t.length;e--;)i=Math.min(i,t[e].frames.length);return i},c=function(t,e){return Math.sqrt(t*t+e*e)},h=function(){for(var t,e,i,r,s,a=this.start+l(this.sources),c=this.sources,h=this.start,u=this.mass,f=0!==u,A=1/c.length,b=h;b<a;b++){r=b-h,this.frames[r]||(t=this.frames[r]=new n([],{})),t.x=0,t.y=0;for(var m=c.length;m--;)e=c[m],i=b-e.start,s=f?e.mass/u:A,t.x+=s*e.frames[i].x,t.y+=s*e.frames[i].y,t.t=e.frames[i].t;o.call(this,t),d.call(this,r-1),p.call(this,r-2)}},d=function(t){var e=this.frames[t-1],i=this.frames[t],n=this.frames[t+1];e&&i&&n&&(i.v_x=(n.x-e.x)/(2*this.dt),i.v_y=(n.y-e.y)/(2*this.dt),i.v=c(i.v_x,i.v_y),i.p=this.mass*i.v,i.p_x=this.mass*i.v_x,i.p_y=this.mass*i.v_y,i.K=this.mass*i.v*i.v/2)},p=function(t){var e=this.frames[t-2],i=this.frames[t-1],n=this.frames[t],r=this.frames[t+1],o=this.frames[t+2];e&&i&&n&&r&&o&&(n.a_x=(2*e.x-i.x-2*n.x-r.x+2*o.x)/(7*this.dt*this.dt),n.a_y=(2*e.y-i.y-2*n.y-r.y+2*o.y)/(7*this.dt*this.dt),n.a=c(n.a_x,n.a_y))},u=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),255]},f=function(t,e,i,n,o){this.dt=n,
this.sources=e,this.isCenterOfMass=!0;var l=s(e),c=a(e);r.call(this,{name:t,start:c,mass:l,params:["t","x","y","v_x","v_y","a_x","a_y"],color:u(o),frames:[],track:!1},i),h.call(this)};f.prototype.axisChangeOrigin=r.prototype.axisChangeOrigin,t.exports=f},function(t,e){"use strict";var i=65,n=function(){return 255*Math.random()|0},r=function(t,e){this.name="Model "+String.fromCharCode(i++),this.color=[n(),n(),n(),255],this.start=t,this.end=e,this.track=!1,this.type="point-model",this.frames=[[0,0,0,0,0,0,0,0,0,0]],this.params=["t","x","y","v_x","v_y","v","a_x","a_y","a","K"]};t.exports=r},function(t,e,i){"use strict";var n=i(33),r=(n.user.mouseup,i(36)),o=i(61),s=i(124),a=i(135),l=i(149),c=i(153),h=i(166),d=i(172),p=function(t,e,i,o){return function(){i.updateLayout(t,e,o,{width:window.innerWidth,height:window.innerHeight,orientation:90===Math.abs(Number(window.orientation))?r.HORIZONTAL:r.VERTICAL}),n.fire("VIDEO_SIZE_UPDATED")}},u=function(t,e,i){n.fire("NEW_OBJECT_CREATED",e),n.fire("CURRENT_TRACK_CHANGE:force",e.name);for(var r=t.length;r--;)n.fire("NEW_OBJECT_CREATED:show:"+t[r].view.name,{object:e})},f=function(t,e,i,r,f){var A=null,b=null,m=null,x=null,g=null,v=function(t){m&&m.hide(),m=new c(i.node,t)};i.draw(),n.on("HELP:show",function(){return!g&&void(g=new h(i.node))}),n.on("HELP:closed",function(){g&&(g=null)},!1),n.on("ALERT:show",function(t){f.view.show(t)}),n.on("FRAME_INIT_DATA_VIEW:graph",function(t){var i=e.objects.find(t.object);new s(t.holder,t.frame,i,t.data)}),n.on("FRAME_INIT_DATA_VIEW:table",function(t){var i=e.objects.find(t.object);new a(t.holder,t.frame,i,t.data)}),n.on("MODEL_BUILDER:show",function(t){if(b)return!1;var n=e.objects.find(t);b=new c(i.node,n)},!1),n.on("MODEL_BUILDER:closed",function(t){b&&(b=null),m&&(m=null)},!1),n.on("MODEL_BUILDER:updated",function(){n.fire("UPDATE_DATA_ALL",{frame:r.model.frameCurrent})},!1),n.on("CENTER_OF_MASS_BUILDER:show",function(){return!A&&void(A=new d(i.node,e))},!1),n.on("CENTER_OF_MASS_BUILDER:closed",function(){A&&(A=null)},!1),n.on("CENTER_OF_MASS_BUILDER:create",function(t){var i=e.createPointCenterOfMass(t.name,t.points,t.color);n.fire("NEW_OBJECT_CREATED",i),A&&(A=null)}),n.on("AXIS_CHANGE_ORIGIN",function(t){e.axisChangeOrigin(t),n.fire("UPDATE_DATA_ALL",{frame:t.frame})}),n.on("DATA_TOOL:show",function(t){b&&(b=null,n.fire("MODEL_BUILDER:hide")),A&&(b=null,n.fire("CENTER_OF_MASS_BUILDER:hide")),i.hide(),x=new o(i.node,t)}),n.on("DATA_TOOL:closed",function(t){x&&(i.show(),y(),x=null)}),n.on("PARTICLE_MODEL_DYNAMIC:create",function(){var n=e.createNewParticalModelDynamic();v(n),u(i.panels,n,t)}),n.on("PARTICLE_MODEL_ANALYTIC:create",function(){var n=e.createNewParticalModelAnalytic();v(n),u(i.panels,n,t)}),n.on("COLOR_PICKER:show",function(t){new l(t)}),n.fire("APP_VIEW_WAS_RENDERED");var y=p(t,e,i,r);window.addEventListener("resize",y,!1),y()};t.exports=f},function(t,e,i){"use strict";var n=i(62),r=i(86),o=i(94),s=function(t,e){this.model=new r(e),this.view=new n(t,this.model),new o(this.model,this.view)};t.exports=s},function(t,e,i){"use strict";var n=i(16);i(63);var r=n(i(66)),o=i(67),s=i(68),a=i(83),l=i(84),c=i(85),h={axisX:{type:s.AutoScaleAxis}},d=function(t){var e=t.split("_");return 2===e.length?e[0]+"<sub>"+e[1]+"</sub>":t},p=function(){for(var t,e=this.node.querySelectorAll(".dt-panel-header .bttn-toggle"),i=e.length;i--;)t=new l(e[i]),this.bttnsToggle[t.name]=t},u=function(t){var e=d(t.x),i=d(t.y),n=t.name+" ("+e+", "+i+")";this.graphTitle.innerHTML=n,this.graphAxisX.innerHTML=e,this.graphAxisY.innerHTML=i},f=function(t){for(var e=0,i=t.fit.length;e<i;e++)A.call(this,t.fit[e])},A=function(t){var e=document.createElement("button");return e.name=t.name,e.textContent=e.name,this.fitVariantsBttns.push(e),this.fitVariantsMenu.appendChild(e),e},b=function(t){for(var e,i=this.fitVariantsBttns.length;i--;)if(this.fitVariantsBttns[i].name===t.name){e=this.fitVariantsBttns[i],this.fitVariantsBttns.splice(i,1),this.fitVariantsMenu.removeChild(e);break}},m=function(t){var e,i,n=this.fitVariantsBttns;for(i=n.length;i--;)if(n[i].name===t){e=n[i];break}return e},x=function(t,e){this.node=r.querySelector(".data-tool").cloneNode(!0),this.holder=t,this.isVisible=!1,this.bttnClose=this.node.querySelector(".dt-panel-header .bttn-data-tool-close"),this.bttnFitBuilder=this.node.querySelector('.dt-panel-feat [name="fit-builder"]'),this.bttnFitCurve=this.node.querySelector('.dt-panel-feat [name="fit-auto"]'),this.fitNameValue=this.node.querySelector(".dt-panel-feat .fit-name-value > span"),this.fitEquationValue=this.node.querySelector(".dt-panel-feat .fit-equation-value > span"),this.fitParameters=new a(this.node.querySelector(".dt-panel-feat .dt-feat-parametrs")),this.fitVariantsMenu=this.node.querySelector(".dt-panel-feat .fit-name-value > .dt-panel-row-menu"),this.fitVariantsBttns=[],this.slopeLine=document.createElement("div"),this.graphTitle=this.node.querySelector(".dt-panel-l > .dt-panel-graph > .title"),this.graphSlope=this.node.querySelector(".dt-panel-l > .dt-panel-graph > .slope"),this.graphCoords=this.node.querySelector(".dt-panel-l > .dt-panel-graph > .coords"),this.graphAxisX=this.node.querySelector(".dt-panel-l > .dt-panel-graph > .axis-x > span"),this.graphAxisY=this.node.querySelector(".dt-panel-l > .dt-panel-graph > .axis-y > span"),this.rmsDev=this.node.querySelector(".dt-panel-feat .fit-rms-value > span"),this.graphContainer=this.node.querySelector(".dt-panel-l > .dt-panel-graph > .dt-panel-graph-chart"),this.bttnGetGraphAsImage=this.node.querySelector('.dt-panel-header > h5 > a[name="get-graph-as-image"]'),this.rowData=new c(this.node.querySelector(".dt-panel-data > table")),this.panels={feat:this.node.querySelector(".dt-panel-feat")},this.chart=null,this.bttnsToggle={},this.hideFitVariants(),this.slopeHide(),this.coordsHide(),p.call(this),u.call(this,e),f.call(this,e)};x.prototype.coordsShow=function(){this.graphCoords.style.display=""},x.prototype.coordsHide=function(){this.graphCoords.style.display="none"},x.prototype.coordsUpdate=function(t,e){var i=o(t.x),n=o(t.y),r=i.label,s=n.label;i.type&&(r+="<sub>"+i.type+"</sub>"),n.type&&(s+="<sub>"+n.type+"</sub>"),e=this.chart.getCoords(e),e.x=e.x.toFixed(2),e.y=e.y.toFixed(2),this.graphCoords.innerHTML=r+": "+e.x+" "+s+": "+e.y},x.prototype.slopeShow=function(){this.slopeLine.style.display="",this.graphSlope.style.display=""},x.prototype.slopeHide=function(){this.slopeLine.style.display="none",this.graphSlope.style.display="none"},x.prototype.slopeUpdate=function(t,e){var i=(this.chart.axisX,this.chart.axisY,this.chart.getCoords(e)),n=t.getRangeIndex(i.x);if(isNaN(n))return this.slopeHide(),!1;var r=t.getSlopeLineCoords(n),o=this.chart.getPaperCoords({x:r.x1,y:r.y1}),s=this.chart.getPaperCoords({x:r.x2,y:r.y2});this.slopeLine.setAttribute("x1",o.x+3),this.slopeLine.setAttribute("y1",o.y),this.slopeLine.setAttribute("x2",s.x+3),this.slopeLine.setAttribute("y2",s.y),this.graphSlope.textContent="slope: "+r.slope,this.slopeShow()},x.prototype.chartUpdate=function(t,e){e?this.chart.update({series:[t.graph.curve]}):this.chart.update(),this.chart.grid_paper=this.chart.svg._node.querySelector(".ct-grids")},x.prototype.show=function(t){this.isVisible||(this.isVisible=!0,this.rowData.update(t.data),this.holder.appendChild(this.node),this.chart=new s.Line(this.graphContainer,{series:[t.graph.curve]},h),this.chart.grid_paper=this.chart.svg._node.querySelector(".ct-grids"),this.createSlopeLine())},x.prototype.createSlopeLine=function(){var t=this.chart.svg._node;this.slopeLine&&this.slopeLine.parentNode&&this.slopeLine.parentNode.removeChild(this.slopeLine),this.slopeLine=t.querySelector("line").cloneNode(!0),this.slopeLine.setAttribute("class","ct-slope-line"),this.slopeLine.style.display="none",t.appendChild(this.slopeLine)},x.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this.holder.removeChild(this.node))},x.prototype.togglePanelFeat=function(t){this.bttnsToggle.fit.toggle(),this.bttnsToggle.fit.isSelected?(this.updateFitView(t),this.node.classList.add("panel-feat")):(this.chartUpdate(t,!0),this.node.classList.remove("panel-feat"))},x.prototype.updateFitView=function(t){var e=t.getCurrentFit(),i=e.parameters;this.fitNameValue.textContent=e.name,this.fitEquationValue.innerHTML=e.equation,this.fitParameters.update(i)},x.prototype.showFitVariants=function(){this.fitVariantsMenu.style.display=""},x.prototype.hideFitVariants=function(){this.fitVariantsMenu.style.display="none"},x.prototype.addUserFitVariant=function(t){return A.call(this,t)},x.prototype.delUserFitVariant=function(t){b.call(this,t)},x.prototype.updateFitName=function(t,e,i){var n=t.getCurrentFit();n.name===i&&(this.fitNameValue.textContent=n.name);var r=m.call(this,e);r&&(r.name=i,r.textContent=i)},x.prototype.reDrawChartWithFitCurve=function(t){this.chart.update({series:[t.curve,t.fitCurve]}),this.chart.grid_paper=this.chart.svg._node.querySelector(".ct-grids")},x.prototype.setRMSDev=function(t){t=0===t?"0":t.toExponential(3).toString(),this.rmsDev.textContent=t.replace(/e/,"E")},x.prototype.setFitEquationValue=function(t){this.fitEquationValue.innerHTML=t.getCurrentFit().equation},t.exports=x},[233,64],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".data-tool>.dt-panel-header{width:100%;height:33px;font-family:Arial;text-align:left;position:relative;border-bottom:1px solid grey;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #ffffff),color-stop(100%, #dddddd));background:-webkit-linear-gradient(top,#fff 0,#ddd 100%);background:linear-gradient(to bottom,#fff 0,#ddd 100%)}.data-tool>.dt-panel-header>h1{vertical-align:middle;display:inline-block;padding:0;margin:0;color:#000;font-size:18px;font-weight:700;margin-left:10px;position:relative;top:8px}.data-tool>.dt-panel-header>h5{vertical-align:middle;display:inline-block;padding:0;margin:0;float:right;margin-right:10px;height:34px}.data-tool>.dt-panel-header .splitter{display:inline-block;background:url("+i(65)+");width:2px;height:20px}.data-tool>.dt-panel-header button.bttn-data-tool-close{border:0;margin:0;padding:0;outline:0;width:34px;height:34px;background:transparent;cursor:pointer;margin-left:10px}.data-tool>.dt-panel-header button.bttn-data-tool-close:before{font-family:Tracker Icons;content:'a';font-size:22px;font-weight:400;position:relative;top:1px}.data-tool>.dt-panel-header button.bttn-data-tool-close:hover:before{color:#cd5c5c}.data-tool>.dt-panel-header .bttn-toggle,.data-tool>.dt-panel-header a{background:transparent;border:0;padding:0 10px;margin:5px;outline:0;vertical-align:top;display:inline-block;height:24px;line-height:24px;cursor:pointer;color:#000;text-decoration:none;font-weight:700;font-size:14px}.data-tool>.dt-panel-header .bttn-toggle.selected:hover,.data-tool>.dt-panel-header .bttn-toggle:hover,.data-tool>.dt-panel-header a:hover{box-shadow:0 0 1px 1px grey}.data-tool>.dt-panel-header .bttn-toggle.selected{background:#face8d;box-shadow:inset 0 0 1px 1px #e09500}.data-tool .dt-panel-data{height:100%;overflow-y:auto;overflow-x:hidden}.data-tool .dt-panel-data>table{font-family:Arial;font-size:14px;width:100%;background:#eee;padding:0;cell-spacing:0;border:2px outset #7a8a99}.data-tool .dt-panel-data>table>thead>tr>td{border-bottom:1px solid #7a8a99;width:33.33333%;padding:2px 0;margin:0;text-align:center}.data-tool .dt-panel-data>table>thead>tr>td:first-child{border-right:1px solid #7a8a99;font-style:italic;font-weight:700;text-align:right;padding:0 4px 0 0}.data-tool .dt-panel-data>table>tbody>tr>td{border-bottom:1px solid blue;padding:0 4px 0 0;margin:0;background:#fff;text-align:right}.data-tool .dt-panel-data>table>tbody>tr>td:first-child{border-right:1px solid blue;font-weight:700;text-align:right;padding-right:4px;background:#eee}.data-tool>.dt-panel-l>.dt-panel-feat>.splitter.vertical{height:100%}.data-tool>.dt-panel-l>.dt-panel-feat>.dt-panel-r{float:right;height:100%;width:200px}.data-tool>.dt-panel-l>.dt-panel-feat>.dt-panel-l{float:left;height:100%;width:calc(100% - 200px - 8px);text-align:left}.data-tool>.dt-panel-l>.dt-panel-feat>.dt-panel-l>.dt-panel-row{border:1px solid #a6a6a6;width:calc('100% - 2px');height:29px;padding:0 10px;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #ffffff),color-stop(100%, #dddddd));background:-webkit-linear-gradient(top,#fff 0,#ddd 100%);background:linear-gradient(to bottom,#fff 0,#ddd 100%);position:relative}.data-tool>.dt-panel-l>.dt-panel-feat>.dt-panel-l>.dt-panel-row:not(:first-child){margin-top:1px}.data-tool .dt-panel-feat .dt-panel-row>button{margin-top:5px;padding:0;text-align:center;vertical-align:top;outline:0;border:0;height:20px;background:transparent;cursor:pointer;margin-left:10px}.data-tool .dt-panel-feat .dt-panel-row>button:hover{box-shadow:0 0 1px 1px grey}.data-tool .dt-panel-feat .dt-panel-row>button[name=fit-auto]{width:60px}.data-tool .dt-panel-feat .dt-panel-row>button[name=fit-builder]{width:5pc}.data-tool .dt-panel-feat .dt-panel-row>label{font-family:Arial;font-size:14px;vertical-align:top;margin-top:8px;display:inline-block;width:75pt}.data-tool .dt-panel-feat .dt-panel-row>label+label{display:inline-block;width:calc(100% - 75pt - 2px);height:20px;background:#fff;border:1px solid #7a8a99;vertical-align:top;margin-top:4px}.data-tool .dt-panel-feat .dt-panel-row>label+button>span,.data-tool .dt-panel-feat .dt-panel-row>label+label>span{display:inline-block;vertical-align:middle;margin-left:6px;height:14px}.data-tool .dt-panel-feat .dt-panel-row>label+.fit-name-value{width:calc(100% - 75pt - 2px - 60px - 5pc - 10px - 10px);cursor:pointer;position:relative;margin:0;margin-top:4px;background:#fff;border:1px solid #7a8a99;height:22px;text-align:left}.data-tool .dt-panel-feat .dt-panel-row>label+.fit-name-value:after{font-family:Tracker Icons;font-size:18px;float:right;content:'b'}.data-tool .dt-panel-feat .dt-feat-parametrs{font-family:Arial;font-size:9pt;width:100%;background:#eee;border-collapse:collapse}.data-tool .dt-panel-feat .dt-feat-parametrs>thead{color:blue}.data-tool .dt-panel-feat .dt-feat-parametrs>thead>tr>td{border-bottom:1px solid #7a8a99;width:50%;padding:2px 0;margin:0}.data-tool .dt-panel-feat .dt-feat-parametrs>thead>tr>td:first-child{border-right:1px solid #7a8a99}.data-tool .dt-panel-feat .dt-feat-parametrs>tbody>tr>td{border-bottom:1px solid blue;padding:0;margin:0}.data-tool .dt-panel-feat .dt-feat-parametrs>tbody>tr>td:first-child{border-right:1px solid blue}.data-tool .dt-panel-feat .dt-feat-parametrs>tbody>tr>td>input{width:calc(100% - 2px);outline:0;border:0;padding-left:4px}.data-tool .dt-panel-feat .dt-feat-parametrs>tbody>tr>td>input:disabled{background:#fff}.data-tool .dt-panel-feat .fit-name-value>.dt-panel-row-menu{position:absolute;bottom:22px;left:-1px;min-height:20px;width:100%;background:#eee;display:inline-block;box-shadow:1px 1px 2px grey;padding:2px 0;z-index:10;border:1px solid #7a8a99;cursor:default;text-align:left}.data-tool .dt-panel-feat .fit-name-value>.dt-panel-row-menu>button{width:100%;display:list-item;margin:0;padding:0;text-align:left;background:none;border:0;outline:0;padding:4px 6px;color:#3c3c3c;cursor:pointer}.data-tool .dt-panel-feat .fit-name-value>.dt-panel-row-menu>button:hover{background:#a3b8cc}.data-tool{border:0;margin:0;padding:0;width:100%;height:100%}.data-tool>.dt-panel-l{float:left;width:calc(100% - 15pc - 8px)}.data-tool>.dt-panel-l,.data-tool>.dt-panel-r,.data-tool>.splitter.vertical{height:calc(100% - 34px)}.data-tool>.dt-panel-r{float:right;width:15pc}.data-tool:not(.panel-feat)>.dt-panel-l>.dt-panel-feat,.data-tool:not(.panel-feat)>.dt-panel-l>.splitter.horizontal{display:none}.data-tool:not(.panel-feat)>.dt-panel-l>.dt-panel-graph{width:100%;height:100%;overflow:hidden}.data-tool>.dt-panel-l>.dt-panel-graph{position:relative}.data-tool>.dt-panel-l>.dt-panel-graph>.dt-panel-graph-chart{padding:15px 0 10px 10px;width:calc(100% - 10px);height:calc(100% - 15px - 10px);overflow:hidden;position:relative}.data-tool.panel-feat>.dt-panel-l>.dt-panel-graph{overflow:hidden;width:100%;height:calc(100% - 6pc - 8px)}.data-tool.panel-feat>.dt-panel-l>.dt-panel-feat{display:block;width:100%;height:6pc}.data-tool>.dt-panel-l>.dt-panel-graph>label{font-family:Arial;font-size:9pt}.data-tool>.dt-panel-l>.dt-panel-graph>.title{width:100%;padding:0;margin:0;text-align:center;position:absolute;top:0;left:0;height:30px;line-height:30px;font-size:1pc;font-weight:700}.data-tool>.dt-panel-l>.dt-panel-graph>.axis-x{width:100%;padding:0;margin:0;text-align:center;position:absolute;bottom:0;left:0;height:25px;line-height:25px}.data-tool>.dt-panel-l>.dt-panel-graph>.axis-y{height:100%;padding:0;margin:0;text-align:center;position:absolute;top:0;left:0;width:30px;display:flex;align-items:center;justify-content:center}.data-tool>.dt-panel-l>.dt-panel-graph>.coords,.data-tool>.dt-panel-l>.dt-panel-graph>.slope{position:absolute;bottom:0;background:#ff0;height:1pc;font-family:Arial;font-size:14px;display:inline-block;padding:2px 4px;border:1px solid #000}.data-tool>.dt-panel-l>.dt-panel-graph>.slope{right:0}.data-tool>.dt-panel-l>.dt-panel-graph>.coords{left:0}",""])},function(t,e){t.exports="data:image/gif;base64,R0lGODlhAgAUAKIAAP///6yomQAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAACABQAAAMIGKC83vDJ2BIAOw=="},function(t,e){t.exports='<div class="data-tool">\r\n <div class="dt-panel-header">\r\n <h1>Tracker > Data tool ></h1>\r\n <h5>\r\n <button class="bttn-toggle" name="slope">Slope</button>\r\n <button class="bttn-toggle" name="fit">Fit</button>\r\n <span class="splitter"></span>\r\n <a name="get-graph-as-image">Download graph as image</a>\r\n <span class="splitter"></span>\r\n <button class="bttn-data-tool-close"></button>\r\n </h5>\r\n </div>\r\n <div class="dt-panel-l">\r\n <div class="dt-panel-graph">\r\n <div class="dt-panel-graph-chart"></div>\r\n <label class="title"></label>\r\n <label class="slope"></label>\r\n <label class="coords"></label>\r\n <label class="axis-x"><span></span></label>\r\n <label class="axis-y"><span></span></label>\r\n </div>\r\n <hr class="splitter horizontal" />\r\n <div class="dt-panel-feat">\r\n <div class="dt-panel-l">\r\n <div class="dt-panel-row">\r\n <label class="fit-name">Fit Name: </label>\r\n <button class="fit-name-value">\r\n <span></span>\r\n <div class="dt-panel-row-menu"></div>\r\n </button>\r\n <button name="fit-auto">Autofit</button>\r\n <button name="fit-builder">Fit Builder</button>\r\n </div>\r\n <div class="dt-panel-row">\r\n <label class="fit-equation">Fit Equation: </label>\r\n <label class="fit-equation-value"><span></span></label>\r\n </div>\r\n <div class="dt-panel-row">\r\n <label class="fit-rms">RMS dev: </label>\r\n <label class="fit-rms-value"><span></span></label>\r\n </div>\r\n </div>\r\n <hr class="splitter vertical" />\r\n <div class="dt-panel-r">\r\n <table class="dt-feat-parametrs">\r\n <thead>\r\n <tr>\r\n <td>Parameter</td>\r\n <td>Value</td>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td></td>\r\n <td><input type="text" disabled="disabled"></input></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div> \r\n </div>\r\n <hr class="splitter vertical" />\r\n <div class="dt-panel-r">\r\n <div class="dt-panel-data">\r\n <table>\r\n <thead>\r\n <tr>\r\n <td>row</td>\r\n <td>y</td>\r\n <td>x</td>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td>0</td>\r\n <td>1</td>\r\n <td>2</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n</div>'},function(t,e){"use strict";t.exports=function(t){var e=t.split("_"),i=e[1]||"";return{label:e[0],type:i}}},function(t,e,i){"use strict";var n={version:"0.9.5"};i(69),i(71)(n),i(72)(n),i(73)(n),i(74)(n),i(75)(n),i(76)(n),i(77)(n),i(78)(n),i(79)(n),i(80)(n),i(81)(n),i(82)(n),t.exports=n},function(t,e,i){var n=i(70);"string"==typeof n&&(n=[[t.id,n,""]]);i(23)(n,{});n.locals&&(t.exports=n.locals)},function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".ct-series-a .ct-line,.ct-series-a .ct-point{stroke:#d70206}.ct-series-b .ct-line,.ct-series-b .ct-point{stroke:#0544d3}.ct-series-c .ct-line,.ct-series-c .ct-point{stroke:#f4c63d}.ct-series-d .ct-line,.ct-series-d .ct-point{stroke:#d17905}.ct-series-e .ct-line,.ct-series-e .ct-point{stroke:#453d3f}.ct-series-f .ct-line,.ct-series-f .ct-point{stroke:#59922b}.ct-series-g .ct-line,.ct-series-g .ct-point{stroke:#f05b4f}.ct-series-h .ct-line,.ct-series-h .ct-point{stroke:#6b0392}.ct-series-i .ct-line,.ct-series-i .ct-point{stroke:#f05b4f}.ct-series-j .ct-line,.ct-series-j .ct-point{stroke:#dda458}.ct-series-k .ct-line,.ct-series-k .ct-point{stroke:#eacf7d}.ct-series-l .ct-line,.ct-series-l .ct-point{stroke:#86797d}.ct-series-m .ct-line,.ct-series-m .ct-point{stroke:#b2c326}.ct-series-n .ct-line,.ct-series-n .ct-point{stroke:#6188e2}.ct-series-o .ct-line,.ct-series-o .ct-point{stroke:#a748ca}.ct-slope-line{stroke-width:3;stroke:#000;pointer-events:none}.ct-label{fill:rgba(0,0,0,.4);color:rgba(0,0,0,.4);font-size:.75rem;line-height:1}.ct-chart-line .ct-label{display:block;display:-webkit-box;display:-ms-flexbox;display:flex}.ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end}.ct-label.ct-horizontal.ct-end,.ct-label.ct-horizontal.ct-start{-webkit-box-pack:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:middle}.ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start}.ct-label.ct-vertical.ct-start{-webkit-box-pack:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end,.ct-label.ct-vertical.ct-start{-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end}.ct-label.ct-vertical.ct-end{-webkit-box-pack:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-grid{stroke:rgba(0,0,0,.2);stroke-width:1px;stroke-dasharray:2px}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-chart-line .ct-grids{cursor:crosshair;pointer-events:bounding-box}.ct-chart-line .ct-grids .ct-grid{shape-rendering:crispEdges}.ct-chart-line .ct-line{cursor:crosshair}.ct-chart-line .ct-point{cursor:pointer}",""])},function(t,e){"use strict";t.exports=function(t){t.noop=function(t){return t},t.alphaNumerate=function(t){return String.fromCharCode(97+t%26)},t.extend=function(e){e=e||{};var i=Array.prototype.slice.call(arguments,1);return i.forEach(function(i){for(var n in i)"object"!=typeof i[n]||null===i[n]||i[n]instanceof Array?e[n]=i[n]:e[n]=t.extend({},e[n],i[n])}),e},t.replaceAll=function(t,e,i){return t.replace(new RegExp(e,"g"),i)},t.ensureUnit=function(t,e){return"number"==typeof t&&(t+=e),t},t.quantity=function(t){if("string"==typeof t){var e=/^(\d+)\s*(.*)$/g.exec(t);return{value:+e[1],unit:e[2]||void 0}}return{value:t}},t.querySelector=function(t){return t instanceof Node?t:document.querySelector(t)},t.times=function(t){return Array.apply(null,new Array(t))},t.sum=function(t,e){return t+(e?e:0)},t.mapMultiply=function(t){return function(e){return e*t}},t.mapAdd=function(t){return function(e){return e+t}},t.serialMap=function(e,i){var n=[],r=Math.max.apply(null,e.map(function(t){return t.length}));return t.times(r).forEach(function(t,r){var o=e.map(function(t){return t[r]});n[r]=i.apply(null,o)}),n},t.roundWithPrecision=function(e,i){var n=Math.pow(10,i||t.precision);return Math.round(e*n)/n},t.precision=8,t.escapingMap={"&":"&","<":"<",">":">",'"':""","'":"'"},t.serialize=function(e){return null===e||void 0===e?e:("number"==typeof e?e=""+e:"object"==typeof e&&(e=JSON.stringify({data:e})),Object.keys(t.escapingMap).reduce(function(e,i){return t.replaceAll(e,i,t.escapingMap[i])},e))},t.deserialize=function(e){if("string"!=typeof e)return e;e=Object.keys(t.escapingMap).reduce(function(e,i){return t.replaceAll(e,t.escapingMap[i],i)},e);try{e=JSON.parse(e),e=void 0!==e.data?e.data:e}catch(t){}return e},t.createSvg=function(e,i,n,r){var o;return i=i||"100%",n=n||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter(function(e){return e.getAttributeNS("http://www.w3.org/2000/xmlns/",t.xmlNs.prefix)}).forEach(function(t){e.removeChild(t)}),o=new t.Svg("svg").attr({width:i,height:n}).addClass(r).attr({style:"width: "+i+"; height: "+n+";"}),e.appendChild(o._node),o},t.reverseData=function(t){t.labels.reverse(),t.series.reverse();for(var e=0;e<t.series.length;e++)"object"==typeof t.series[e]&&void 0!==t.series[e].data?t.series[e].data.reverse():t.series[e]instanceof Array&&t.series[e].reverse()},t.getDataArray=function(e,i,n){function r(e){if(!t.isFalseyButZero(e)){if((e.data||e)instanceof Array)return(e.data||e).map(r);if(e.hasOwnProperty("value"))return r(e.value);if(n){var i={};return"string"==typeof n?i[n]=t.getNumberOrUndefined(e):i.y=t.getNumberOrUndefined(e),i.x=e.hasOwnProperty("x")?t.getNumberOrUndefined(e.x):i.x,i.y=e.hasOwnProperty("y")?t.getNumberOrUndefined(e.y):i.y,i}return t.getNumberOrUndefined(e)}}return(i&&!e.reversed||!i&&e.reversed)&&(t.reverseData(e),e.reversed=!e.reversed),e.series.map(r)},t.normalizePadding=function(t,e){return e=e||0,"number"==typeof t?{top:t,right:t,bottom:t,left:t}:{top:"number"==typeof t.top?t.top:e,right:"number"==typeof t.right?t.right:e,bottom:"number"==typeof t.bottom?t.bottom:e,left:"number"==typeof t.left?t.left:e}},t.getMetaData=function(e,i){var n=e.data?e.data[i]:e[i];return n?t.serialize(n.meta):void 0},t.orderOfMagnitude=function(t){return Math.floor(Math.log(Math.abs(t))/Math.LN10)},t.projectLength=function(t,e,i){return e/i.range*t},t.getAvailableHeight=function(e,i){return Math.max((t.quantity(i.height).value||e.height())-(i.chartPadding.top+i.chartPadding.bottom)-i.axisX.offset,0)},t.getHighLow=function(e,i,n){function r(t){if(void 0!==t)if(t instanceof Array)for(var e=0;e<t.length;e++)r(t[e]);else{var i=n?+t[n]:+t;s&&i>o.high&&(o.high=i),a&&i<o.low&&(o.low=i)}}i=t.extend({},i,n?i["axis"+n.toUpperCase()]:{});var o={high:void 0===i.high?-Number.MAX_VALUE:+i.high,low:void 0===i.low?Number.MAX_VALUE:+i.low},s=void 0===i.high,a=void 0===i.low;if((s||a)&&r(e),(i.referenceValue||0===i.referenceValue)&&(o.high=Math.max(i.referenceValue,o.high),o.low=Math.min(i.referenceValue,o.low)),o.high===o.low){var l=o.high;o.low=l-4,o.high=l+4}else o.high<o.low&&(0===o.low?o.high=1:o.low<0?o.high=0:o.low=0);return o},t.isNum=function(t){return!isNaN(t)&&isFinite(t)},t.isFalseyButZero=function(t){return!t&&0!==t},t.getNumberOrUndefined=function(t){return isNaN(+t)?void 0:+t},t.getMultiValue=function(e,i){return t.isNum(e)?+e:e?e[i||"y"]||0:0},t.rho=function(t){function e(t,i){return t%i===0?i:e(i,t%i)}function i(t){return t*t+1}if(1===t)return t;var n,r=2,o=2;if(t%2===0)return 2;do r=i(r)%t,o=i(i(o))%t,n=e(Math.abs(r-o),t);while(1===n);return n},t.getBounds=function(e,i,n,r){var o,s,a,l=0,c={high:i.high,low:i.low};c.valueRange=c.high-c.low,c.oom=t.orderOfMagnitude(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);var h=t.projectLength(e,c.step,c),d=h<n,p=r?t.rho(c.range):0;if(r&&t.projectLength(e,1,c)>=n)c.step=1;else if(r&&p<c.step&&t.projectLength(e,p,c)>=n)c.step=p;else for(;;){if(d&&t.projectLength(e,c.step,c)<=n)c.step*=2;else{if(d||!(t.projectLength(e,c.step/2,c)>=n))break;if(c.step/=2,r&&c.step%1!==0){c.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}for(s=c.min,a=c.max;s+c.step<=c.low;)s+=c.step;for(;a-c.step>=c.high;)a-=c.step;for(c.min=s,c.max=a,c.range=c.max-c.min,c.values=[],o=c.min;o<=c.max;o+=c.step)c.values.push(t.roundWithPrecision(o));return c},t.polarToCartesian=function(t,e,i,n){var r=(n-90)*Math.PI/180;return{x:t+i*Math.cos(r),y:e+i*Math.sin(r)}},t.createChartRect=function(e,i,n){var r=!(!i.axisX&&!i.axisY),o=r?i.axisY.offset:0,s=r?i.axisX.offset:0,a=e.width()||t.quantity(i.width).value||0,l=e.height()||t.quantity(i.height).value||0,c=t.normalizePadding(i.chartPadding,n);a=Math.max(a,o+c.left+c.right),l=Math.max(l,s+c.top+c.bottom);var h={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return r?("start"===i.axisX.position?(h.y2=c.top+s,h.y1=Math.max(l-c.bottom,h.y2+1)):(h.y2=c.top,h.y1=Math.max(l-c.bottom-s,h.y2+1)),"start"===i.axisY.position?(h.x1=c.left+o,h.x2=Math.max(a-c.right,h.x1+1)):(h.x1=c.left,h.x2=Math.max(a-c.right-o,h.x1+1))):(h.x1=c.left,h.x2=Math.max(a-c.right,h.x1+1),h.y2=c.top,h.y1=Math.max(l-c.bottom,h.y2+1)),h},t.createGrid=function(e,i,n,r,o,s,a,l){var c={};c[n.units.pos+"1"]=e,c[n.units.pos+"2"]=e,c[n.counterUnits.pos+"1"]=r,c[n.counterUnits.pos+"2"]=r+o;var h=s.elem("line",c,a.join(" "));l.emit("draw",t.extend({type:"grid",axis:n,index:i,group:s,element:h},c))},t.createLabel=function(e,i,n,r,o,s,a,l,c,h,d){var p,u={};if(u[o.units.pos]=e+a[o.units.pos],u[o.counterUnits.pos]=a[o.counterUnits.pos],u[o.units.len]=i,u[o.counterUnits.len]=s-10,h){var f='<span class="'+c.join(" ")+'" style="'+o.units.len+": "+Math.round(u[o.units.len])+"px; "+o.counterUnits.len+": "+Math.round(u[o.counterUnits.len])+'px">'+r[n]+"</span>";p=l.foreignObject(f,t.extend({style:"overflow: visible;"},u))}else 0==a.x&&(u.transform="rotate(25 "+u.x+","+u.y+")"),p=l.elem("text",u,c.join(" ")).text(r[n]);d.emit("draw",t.extend({type:"label",axis:o,index:n,group:l,element:p,text:r[n]},u))},t.getSeriesOption=function(t,e,i){if(t.name&&e.series&&e.series[t.name]){var n=e.series[t.name];return n.hasOwnProperty(i)?n[i]:e[i]}return e[i]},t.optionsProvider=function(e,i,n){function r(e){var r=s;if(s=t.extend({},l),i)for(a=0;a<i.length;a++){var o=window.matchMedia(i[a][0]);o.matches&&(s=t.extend(s,i[a][1]))}n&&!e&&n.emit("optionsChanged",{previousOptions:r,currentOptions:s})}function o(){c.forEach(function(t){t.removeListener(r)})}var s,a,l=t.extend({},e),c=[];if(!window.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(i)for(a=0;a<i.length;a++){var h=window.matchMedia(i[a][0]);h.addListener(r),c.push(h)}return r(!0),{removeMediaQueryListeners:o,getCurrentOptions:function(){return t.extend({},s)}}}}},function(t,e){"use strict";t.exports=function(t){t.Interpolation={},t.Interpolation.none=function(e){var i={fillHoles:!1};return e=t.extend({},i,e),function(i,n){for(var r=new t.Svg.Path,o=!0,s=0;s<i.length;s+=2){var a=i[s],l=i[s+1],c=n[s/2];void 0!==c.value?(o?r.move(a,l,!1,c):r.line(a,l,!1,c),o=!1):e.fillHoles||(o=!0)}return r}},t.Interpolation.simple=function(e){var i={divisor:2,fillHoles:!1};e=t.extend({},i,e);var n=1/Math.max(1,e.divisor);return function(i,r){for(var o,s,a,l=new t.Svg.Path,c=0;c<i.length;c+=2){var h=i[c],d=i[c+1],p=(h-o)*n,u=r[c/2];void 0!==u.value?(void 0===a?l.move(h,d,!1,u):l.curve(o+p,s,h-p,d,h,d,!1,u),o=h,s=d,a=u):e.fillHoles||(o=h=a=void 0)}return l}},t.Interpolation.cardinal=function(e){function i(t,i){for(var n=[],r=!0,o=0;o<t.length;o+=2)void 0===i[o/2].value?e.fillHoles||(r=!0):(r&&(n.push({pathCoordinates:[],valueData:[]}),r=!1),n[n.length-1].pathCoordinates.push(t[o],t[o+1]),n[n.length-1].valueData.push(i[o/2]));return n}var n={tension:1,fillHoles:!1};e=t.extend({},n,e);var r=Math.min(1,Math.max(0,e.tension)),o=1-r;return function e(n,s){var a=i(n,s);if(a.length>1){var l=[];return a.forEach(function(t){l.push(e(t.pathCoordinates,t.valueData))}),t.Svg.Path.join(l)}if(n=a[0].pathCoordinates,s=a[0].valueData,n.length<=4)return t.Interpolation.none()(n,s);
for(var c,h=(new t.Svg.Path).move(n[0],n[1],!1,s[0]),d=0,p=n.length;p-2*!c>d;d+=2){var u=[{x:+n[d-2],y:+n[d-1]},{x:+n[d],y:+n[d+1]},{x:+n[d+2],y:+n[d+3]},{x:+n[d+4],y:+n[d+5]}];c?d?p-4===d?u[3]={x:+n[0],y:+n[1]}:p-2===d&&(u[2]={x:+n[0],y:+n[1]},u[3]={x:+n[2],y:+n[3]}):u[0]={x:+n[p-2],y:+n[p-1]}:p-4===d?u[3]=u[2]:d||(u[0]={x:+n[d],y:+n[d+1]}),h.curve(r*(-u[0].x+6*u[1].x+u[2].x)/6+o*u[2].x,r*(-u[0].y+6*u[1].y+u[2].y)/6+o*u[2].y,r*(u[1].x+6*u[2].x-u[3].x)/6+o*u[2].x,r*(u[1].y+6*u[2].y-u[3].y)/6+o*u[2].y,u[2].x,u[2].y,!1,s[(d+2)/2])}return h}},t.Interpolation.step=function(e){var i={postpone:!0,fillHoles:!1};return e=t.extend({},i,e),function(i,n){for(var r,o,s,a=new t.Svg.Path,l=0;l<i.length;l+=2){var c=i[l],h=i[l+1],d=n[l/2];void 0!==d.value?(void 0===s?a.move(c,h,!1,d):(e.postpone?a.line(c,o,!1,s):a.line(r,h,!1,d),a.line(c,h,!1,d)),r=c,o=h,s=d):e.fillHoles||(r=o=s=void 0)}return a}}}},function(t,e){"use strict";t.exports=function(t){t.EventEmitter=function(){function t(t,e){n[t]=n[t]||[],n[t].push(e)}function e(t,e){n[t]&&(e?(n[t].splice(n[t].indexOf(e),1),0===n[t].length&&delete n[t]):delete n[t])}function i(t,e){n[t]&&n[t].forEach(function(t){t(e)}),n["*"]&&n["*"].forEach(function(i){i(t,e)})}var n=[];return{addEventHandler:t,removeEventHandler:e,emit:i}}}},function(t,e){"use strict";t.exports=function(t){function e(t){var e=[];if(t.length)for(var i=0;i<t.length;i++)e.push(t[i]);return e}function i(e,i){var n=i||this.prototype||t.Class,r=Object.create(n);t.Class.cloneDefinitions(r,e);var o=function(){var e,i=r.constructor||function(){};return e=this===t?Object.create(r):this,i.apply(e,Array.prototype.slice.call(arguments,0)),e};return o.prototype=r,o.super=n,o.extend=this.extend,o}function n(){var t=e(arguments),i=t[0];return t.splice(1,t.length-1).forEach(function(t){Object.getOwnPropertyNames(t).forEach(function(e){delete i[e],Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(t,e))})}),i}t.Class={extend:i,cloneDefinitions:n}}},function(t,e){"use strict";t.exports=function(t){function e(e,i,n){return e&&(this.data=e,this.eventEmitter.emit("data",{type:"update",data:this.data})),i&&(this.options=t.extend({},n?this.options:this.defaultOptions,i),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this}function i(){return this.initializeTimeoutId?window.clearTimeout(this.initializeTimeoutId):(window.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this}function n(t,e){return this.eventEmitter.addEventHandler(t,e),this}function r(t,e){return this.eventEmitter.removeEventHandler(t,e),this}function o(){this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.options.plugins&&this.options.plugins.forEach(function(t){t instanceof Array?t[0](this,t[1]):t(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions())}function s(e,i,n,r,s){this.container=t.querySelector(e),this.data=i,this.defaultOptions=n,this.options=r,this.responsiveOptions=s,this.eventEmitter=t.EventEmitter(),this.supportsForeignObject=!1,this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),o.call(this)}t.Base=t.Class.extend({constructor:s,optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:e,detach:i,on:n,off:r,version:t.version,supportsForeignObject:!1})}},function(t,e){"use strict";t.exports=function(t){function e(e,i,n,r,o){e instanceof Element?this._node=e:(this._node=document.createElementNS(w,e),"svg"===e&&this._node.setAttributeNS(k,t.xmlNs.qualifiedName,t.xmlNs.uri)),i&&this.attr(i),n&&this.addClass(n),r&&(o&&r._node.firstChild?r._node.insertBefore(this._node,r._node.firstChild):r._node.appendChild(this._node))}function i(e,i){return"string"==typeof e?i?this._node.getAttributeNS(i,e):this._node.getAttribute(e):(Object.keys(e).forEach(function(n){void 0!==e[n]&&(i?this._node.setAttributeNS(i,[t.xmlNs.prefix,":",n].join(""),e[n]):this._node.setAttribute(n,e[n]))}.bind(this)),this)}function n(e,i,n,r){return new t.Svg(e,i,n,this,r)}function r(){return this._node.parentNode instanceof SVGElement?new t.Svg(this._node.parentNode):null}function o(){for(var e=this._node;"svg"!==e.nodeName;)e=e.parentNode;return new t.Svg(e)}function s(e){var i=this._node.querySelector(e);return i?new t.Svg(i):null}function a(e){var i=this._node.querySelectorAll(e);return i.length?new t.Svg.List(i):null}function l(t,e,i,n){if("string"==typeof t){var r=document.createElement("div");r.innerHTML=t,t=r.firstChild}t.setAttribute("xmlns",C);var o=this.elem("foreignObject",e,i,n);return o._node.appendChild(t),o}function c(t){return this._node.appendChild(document.createTextNode(t)),this}function h(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}function d(){return this._node.parentNode.removeChild(this._node),this.parent()}function p(t){return this._node.parentNode.replaceChild(t._node,this._node),t}function u(t,e){return e&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this}function f(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]}function A(t){return this._node.setAttribute("class",this.classes(this._node).concat(t.trim().split(/\s+/)).filter(function(t,e,i){return i.indexOf(t)===e}).join(" ")),this}function b(t){var e=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(t){return e.indexOf(t)===-1}).join(" ")),this}function m(){return this._node.setAttribute("class",""),this}function x(t,e){try{return t.getBBox()[e]}catch(t){}return 0}function g(){return this._node.clientHeight||Math.round(x(this._node,"height"))||this._node.parentNode.clientHeight}function v(){return this._node.clientWidth||Math.round(x(this._node,"width"))||this._node.parentNode.clientWidth}function y(e){var i=this;this.svgElements=[];for(var n=0;n<e.length;n++)this.svgElements.push(new t.Svg(e[n]));Object.keys(t.Svg.prototype).filter(function(t){return["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(t)===-1}).forEach(function(e){i[e]=function(){var n=Array.prototype.slice.call(arguments,0);return i.svgElements.forEach(function(i){t.Svg.prototype[e].apply(i,n)}),i}})}var w="http://www.w3.org/2000/svg",k="http://www.w3.org/2000/xmlns/",C="http://www.w3.org/1999/xhtml";t.xmlNs={qualifiedName:"xmlns:ct",prefix:"ct",uri:"http://gionkunz.github.com/chartist-js/ct"},t.Svg=t.Class.extend({constructor:e,attr:i,elem:n,parent:r,root:o,querySelector:s,querySelectorAll:a,foreignObject:l,text:c,empty:h,remove:d,replace:p,append:u,classes:f,addClass:A,removeClass:b,removeAllClasses:m,height:g,width:v}),t.Svg.isSupported=function(t){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+t,"1.1")};var E={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};t.Svg.Easing=E,t.Svg.List=t.Class.extend({constructor:y})}},function(t,e){"use strict";t.exports=function(t){function e(e,i,n,r,o,s){var a=t.extend({command:o?e.toLowerCase():e.toUpperCase()},i,s?{data:s}:{});n.splice(r,0,a)}function i(t,e){t.forEach(function(i,n){x[i.command.toLowerCase()].forEach(function(r,o){e(i,r,n,o,t)})})}function n(e,i){this.pathElements=[],this.pos=0,this.close=e,this.options=t.extend({},g,i)}function r(t){return void 0!==t?(this.pos=Math.max(0,Math.min(this.pathElements.length,t)),this):this.pos}function o(t){return this.pathElements.splice(this.pos,t),this}function s(t,i,n,r){return e("M",{x:+t,y:+i},this.pathElements,this.pos++,n,r),this}function a(t,i,n,r){return e("L",{x:+t,y:+i},this.pathElements,this.pos++,n,r),this}function l(t,i,n,r,o,s,a,l){return e("C",{x1:+t,y1:+i,x2:+n,y2:+r,x:+o,y:+s},this.pathElements,this.pos++,a,l),this}function c(t,i,n,r,o,s,a,l,c){return e("A",{rx:+t,ry:+i,xAr:+n,lAf:+r,sf:+o,x:+s,y:+a},this.pathElements,this.pos++,l,c),this}function h(e){var i=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(t,e){return e.match(/[A-Za-z]/)&&t.push([]),t[t.length-1].push(e),t},[]);"Z"===i[i.length-1][0].toUpperCase()&&i.pop();var n=i.map(function(e){var i=e.shift(),n=x[i.toLowerCase()];return t.extend({command:i},n.reduce(function(t,i,n){return t[i]=+e[n],t},{}))}),r=[this.pos,0];return Array.prototype.push.apply(r,n),Array.prototype.splice.apply(this.pathElements,r),this.pos+=n.length,this}function d(){var t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(e,i){var n=x[i.command.toLowerCase()].map(function(e){return this.options.accuracy?Math.round(i[e]*t)/t:i[e]}.bind(this));return e+i.command+n.join(",")}.bind(this),"")+(this.close?"Z":"")}function p(t,e){return i(this.pathElements,function(i,n){i[n]*="x"===n[0]?t:e}),this}function u(t,e){return i(this.pathElements,function(i,n){i[n]+="x"===n[0]?t:e}),this}function f(t){return i(this.pathElements,function(e,i,n,r,o){var s=t(e,i,n,r,o);(s||0===s)&&(e[i]=s)}),this}function A(e){var i=new t.Svg.Path(e||this.close);return i.pos=this.pos,i.pathElements=this.pathElements.slice().map(function(e){return t.extend({},e)}),i.options=t.extend({},this.options),i}function b(e){var i=[new t.Svg.Path];return this.pathElements.forEach(function(n){n.command===e.toUpperCase()&&0!==i[i.length-1].pathElements.length&&i.push(new t.Svg.Path),i[i.length-1].pathElements.push(n)}),i}function m(e,i,n){for(var r=new t.Svg.Path(i,n),o=0;o<e.length;o++)for(var s=e[o],a=0;a<s.pathElements.length;a++)r.pathElements.push(s.pathElements[a]);return r}var x={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},g={accuracy:3};t.Svg.Path=t.Class.extend({constructor:n,position:r,remove:o,move:s,line:a,curve:l,arc:c,scale:p,translate:u,transform:f,parse:h,stringify:d,clone:A,splitByCommand:b}),t.Svg.Path.elementDescriptions=x,t.Svg.Path.join=m}},function(t,e){"use strict";t.exports=function(t){function e(t,e,i,r){this.units=t,this.counterUnits=t===n.x?n.y:n.x,this.chartRect=e,this.axisLength=e[t.rectEnd]-e[t.rectStart],this.gridOffset=e[t.rectOffset],this.ticks=i,this.options=r}function i(e,i,n,r,o){var s=r["axis"+this.units.pos.toUpperCase()],a=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(s.labelInterpolationFnc);a.forEach(function(c,h){var d,p={x:0,y:0};d=a[h+1]?a[h+1]-c:Math.max(this.axisLength-c,30),(l[h]||0===l[h])&&("x"===this.units.pos?(c=this.chartRect.x1+c,p.x=r.axisX.labelOffset.x,"start"===r.axisX.position?p.y=this.chartRect.padding.top+r.axisX.labelOffset.y+(n?5:20):p.y=this.chartRect.y1+r.axisX.labelOffset.y+(n?5:20)):(c=this.chartRect.y1-c,p.y=r.axisY.labelOffset.y-(n?d:0),"start"===r.axisY.position?p.x=n?this.chartRect.padding.left+r.axisY.labelOffset.x:this.chartRect.x1-10:p.x=this.chartRect.x2+r.axisY.labelOffset.x+10),s.showGrid&&t.createGrid(c,h,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[r.classNames.grid,r.classNames[this.units.dir]],o),s.showLabel&&t.createLabel(c,d,h,l,this,s.offset,p,i,[r.classNames.label,r.classNames[this.units.dir],r.classNames[s.position]],n,o))}.bind(this))}var n={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};t.Axis=t.Class.extend({constructor:e,createGridAndLabels:i,projectValue:function(t,e,i){throw new Error("Base axis can't be instantiated!")}}),t.Axis.units=n}},function(t,e){"use strict";t.exports=function(t){function e(e,i,n,r){var o=r.highLow||t.getHighLow(i.normalized,r,e.pos);this.bounds=t.getBounds(n[e.rectEnd]-n[e.rectStart],o,r.scaleMinSpace||20,r.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},t.AutoScaleAxis.super.constructor.call(this,e,n,this.bounds.values,r)}function i(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}function n(t){return t*this.bounds.range/this.axisLength+this.bounds.min}t.AutoScaleAxis=t.Axis.extend({constructor:e,projectValue:i,inverseValue:n})}},function(t,e){"use strict";t.exports=function(t){function e(e,i,n,r){var o=r.highLow||t.getHighLow(i.normalized,r,e.pos);this.divisor=r.divisor||1,this.ticks=r.ticks||t.times(this.divisor).map(function(t,e){return o.low+(o.high-o.low)/this.divisor*e}.bind(this)),this.range={min:o.low,max:o.high},t.FixedScaleAxis.super.constructor.call(this,e,n,this.ticks,r),this.stepLength=this.axisLength/this.divisor}function i(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}t.FixedScaleAxis=t.Axis.extend({constructor:e,projectValue:i})}},function(t,e){"use strict";t.exports=function(t){function e(e,i,n,r){t.StepAxis.super.constructor.call(this,e,n,r.ticks,r),this.stepLength=this.axisLength/(r.ticks.length-(r.stretch?1:0))}function i(t,e){return this.stepLength*e}t.StepAxis=t.Axis.extend({constructor:e,projectValue:i})}},function(t,e){"use strict";t.exports=function(t){function e(t){return{x:this.axisX.inverseValue(t.x-this.chartRect.x1),y:this.axisY.inverseValue(this.chartRect.y1-t.y)}}function i(t){return{x:this.chartRect.x1+this.axisX.projectValue(t.x),y:this.chartRect.y1-this.axisY.projectValue(t.y)}}function n(e){var i={raw:this.data,normalized:t.getDataArray(this.data,e.reverseData,!0)};this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart);var n,r,s=this.svg.elem("g").addClass(e.classNames.gridGroup),a=this.svg.elem("g"),l=this.svg.elem("g").addClass(e.classNames.labelGroup),c=t.createChartRect(this.svg,e,o.padding);n=void 0===e.axisX.type?new t.StepAxis(t.Axis.units.x,i,c,t.extend({},e.axisX,{ticks:i.raw.labels,stretch:e.fullWidth})):e.axisX.type.call(t,t.Axis.units.x,i,c,e.axisX),r=void 0===e.axisY.type?new t.AutoScaleAxis(t.Axis.units.y,i,c,t.extend({},e.axisY,{high:t.isNum(e.high)?e.high:e.axisY.high,low:t.isNum(e.low)?e.low:e.axisY.low})):e.axisY.type.call(t,t.Axis.units.y,i,c,e.axisY),n.createGridAndLabels(s,l,this.supportsForeignObject,e,this.eventEmitter),r.createGridAndLabels(s,l,this.supportsForeignObject,e,this.eventEmitter),this.axisX=n,this.axisY=r,this.chartRect=c;var h=s._node.getBoundingClientRect(),d=this.svg._node.getBoundingClientRect(),p=this.svg.elem("rect");p._node.setAttribute("x",h.left-d.left),p._node.setAttribute("y",h.top-d.top),p._node.setAttribute("width",h.width),p._node.setAttribute("height",h.height),p._node.setAttribute("fill","#ff"),p._node.setAttribute("opacity","0"),p._node.setAttribute("stroke","none"),s._node.insertBefore(p._node,s._node.firstChild),i.raw.series.forEach(function(o,s){var l=a.elem("g");l.attr({"series-name":o.name,meta:t.serialize(o.meta)},t.xmlNs.uri),l.addClass([e.classNames.series,o.className||e.classNames.series+"-"+t.alphaNumerate(s)].join(" "));var h=[],d=[];i.normalized[s].forEach(function(e,a){var l={x:c.x1+n.projectValue(e,a,i.normalized[s]),y:c.y1-r.projectValue(e,a,i.normalized[s])};h.push(l.x,l.y),d.push({value:e,valueIndex:a,meta:t.getMetaData(o,a)})}.bind(this));var p={lineSmooth:t.getSeriesOption(o,e,"lineSmooth"),showPoint:t.getSeriesOption(o,e,"showPoint"),showLine:t.getSeriesOption(o,e,"showLine"),showArea:t.getSeriesOption(o,e,"showArea"),areaBase:t.getSeriesOption(o,e,"areaBase")},u="function"==typeof p.lineSmooth?p.lineSmooth:p.lineSmooth?t.Interpolation.cardinal():t.Interpolation.none(),f=u(h,d);if(p.showPoint&&f.pathElements.forEach(function(i){var a=l.elem("line",{x1:i.x,y1:i.y,x2:i.x+.01,y2:i.y},e.classNames.point).attr({value:[i.data.value.x,i.data.value.y].filter(function(t){return t}).join(","),meta:i.data.meta},t.xmlNs.uri);this.eventEmitter.emit("draw",{type:"point",value:i.data.value,index:i.data.valueIndex,meta:i.data.meta,series:o,seriesIndex:s,axisX:n,axisY:r,group:l,element:a,x:i.x,y:i.y})}.bind(this)),p.showLine){var A=l.elem("path",{d:f.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:i.normalized[s],path:f.clone(),chartRect:c,index:s,series:o,seriesIndex:s,axisX:n,axisY:r,group:l,element:A})}if(p.showArea&&r.range){var b=Math.max(Math.min(p.areaBase,r.range.max),r.range.min),m=c.y1-r.projectValue(b);f.splitByCommand("M").filter(function(t){return t.pathElements.length>1}).map(function(t){var e=t.pathElements[0],i=t.pathElements[t.pathElements.length-1];return t.clone(!0).position(0).remove(1).move(e.x,m).line(e.x,e.y).position(t.pathElements.length+1).line(i.x,m)}).forEach(function(a){var h=l.elem("path",{d:a.stringify()},e.classNames.area,!0).attr({values:i.normalized[s]},t.xmlNs.uri);this.eventEmitter.emit("draw",{type:"area",values:i.normalized[s],path:a.clone(),series:o,seriesIndex:s,axisX:n,axisY:r,chartRect:c,index:s,group:l,element:h})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:r.bounds,chartRect:c,axisX:n,axisY:r,svg:this.svg,options:e})}function r(e,i,n,r){t.Line.super.constructor.call(this,e,i,o,t.extend({},o,n),r)}var o={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};t.Line=t.Base.extend({constructor:r,getCoords:e,getPaperCoords:i,createChart:n})}},function(t,e){"use strict";var i=function(t){var e=t.querySelector("tbody > tr ");return e.parentNode.removeChild(e),e},n=function(){var t=this.rowTemplate.cloneNode(!0);return t.label=t.querySelector("td:first-child"),t.input=t.querySelector("td:last-child > input"),t},r=function(){for(;this.tbody.firstChild;)this.tbody.removeChild(this.tbody.firstChild);this.rows.length=0},o=function(t){for(var e,i=0,r=t.length;i<r;i++){var o=n.call(this);this.rows.push(o),o.label.textContent=t[i].name,e=t[i].value,e=0===e?"0":e.toExponential(3).toString(),o.input.value=e.replace(/e/,"E"),this.tbody.appendChild(o)}},s=function(t){this.node=t,this.tbody=this.node.querySelector("tbody"),this.rowTemplate=i(this.tbody),this.rows=[]};s.prototype.update=function(t){r.call(this),o.call(this,t)},t.exports=s},function(t,e){"use strict";var i="selected",n=function(t){this.node=t,this.isSelected=!1,this.name=this.node.getAttribute("name")};n.prototype.toggle=function(){return this.isSelected=!this.isSelected,this.isSelected?this.node.classList.add(i):this.node.classList.remove(i),this.isSelected},t.exports=n},function(t,e){"use strict";var i=function(t){var e=t.querySelector("tbody > tr ");return e.parentNode.removeChild(e),e},n=function(){var t=this.rowTemplate.cloneNode(!0),e=t.querySelectorAll("td");return t.num=e[0],t.y=e[1],t.x=e[2],t},r=function(t){return t.replace(/_x/g,"<sub>x</sub>").replace(/_y/g,"<sub>y</sub>")},o=function(){for(;this.tbody.firstChild;)this.tbody.removeChild(this.tbody.firstChild);this.rows.length=0},s=function(t){this.thead.yLabel.innerHTML=r(t.yLabel),this.thead.xLabel.innerHTML=r(t.xLabel);for(var e=0,i=t.length;e<i;e++){var o=n.call(this);this.rows.push(o),o.num.textContent=e,o.y.textContent=t[e].y,o.x.textContent=t[e].x,this.tbody.appendChild(o)}},a=function(t){this.node=t,this.thead=this.node.querySelector("thead");var e=this.thead.querySelectorAll("td");this.thead.yLabel=e[1],this.thead.xLabel=e[2],this.tbody=this.node.querySelector("tbody"),this.rowTemplate=i(this.tbody),this.rows=[]};a.prototype.update=function(t){o.call(this),s.call(this,t)},t.exports=a},function(t,e,i){"use strict";var n=i(87),r=(i(89),i(90)),o=(i(91),i(92)),s=i(93),a=[],l=i(52),c=function(t){var e,i,n,r,o=t.object.frames;for(e=0,i=o.length;e<i;e++)o[e]&&(n=o[e][this.x],r=o[e][this.y],isNaN(n)||isNaN(r)||(this.data.push({x:n.toFixed(2),y:r.toFixed(2)}),this.graph.curve.push({x:Number(n),y:Number(r)})))},h=function(){var t,e,i,n,r,o,s=this.graph.curve,a=this.graph.range;for(n=1,r=s.length-1;n<r;n++)t=s[n-1].x,i=s[n].x,e=s[n+1].x,o=[i-(i-t)/2,i+(e-i)/2].sort(),a.push({min:o[0],max:o[1],index:n})},d=function(t,e){for(var i=t.length;i--;)if(t[i].name===e)return i;return NaN},p=function(){for(var t=this.fit.map(function(t){return t.name}),e=1;t.indexOf("Fit_"+e)>-1;)e+=1;return"Fit_"+e},u=function(t,e){var i,n=!1;for(i=this.fit.length;i--;)if(this.fit[i]!==t&&this.fit[i].name===e){n=!0;break}return n},f=function(t){var e,i=this.getCurrentFit(),n=!0,r=i.parameters.map(function(t){return t.name});for(r.push(this.x),e=t.length;e--;)if(r.indexOf(t[e])===-1){n=!1;break}return n},A=function(){for(var t=0,e=a.length;t<e;t++)this.fit.push(a[t].update(this.x))},b=function(t,e){this.name=t.object.name;var i=t.axisX,s=t.axisY;this.x=i,this.y=s,this.fit=[new n(i,s),new r(i,s),new o(i,s)],this.data=[],this.data.xLabel=i,this.data.yLabel=s,this.isSlopeVisible=!1,this.graph={range:[],curve:[],fitCurve:[]},this.currentFit=0,this.currentFitUser=NaN,A.call(this),c.call(this,t),h.call(this)};b.prototype.getRangeIndex=function(t){var e,i,n=this.graph.range;for(i=n.length;i--;)if(e=n[i],t>=e.min&&t<e.max)return e.index;return NaN},b.prototype.getSlopeLineCoords=function(t){var e,i,n,r,o=this.graph.curve,s=o[t-1],a=o[t],l=o[t+1],c=l.y-s.y,h=l.x-s.x,d=NaN;return 0===h?(i=e=a.x,n=s.y,r=l.y,d="∞"):0===c?(r=n=a.y,e=s.x,i=l.x,d=0):(d=c/h,e=s.x,i=l.x,n=a.y+d*(s.x-a.x),r=a.y+d*(l.x-a.x)),{curr:a,x1:e,y1:n,x2:i,y2:r,slope:"∞"===d?d:d.toPrecision(3)}},b.prototype.calcUserFit=function(){var t,e=0;for(t=this.fit.length;t--;)e+=this.fit[t].isUserDefined;return e},b.prototype.getCurrentFit=function(){return this.fit[this.currentFit]},b.prototype.setCurrentFit=function(t){var e=d(this.fit,t);isNaN(e)||(this.currentFit=e)},b.prototype.createUserDefinedFit=function(){var t=p.call(this),e=new s(this.x,this.y,t);this.fit.push(e),a.push(e),this.currentFit=this.fit.length-1,this.currentFitUser=this.fit.length-1},b.prototype.getCurrentUserFit=function(){return this.fit[this.currentFitUser]},b.prototype.delCurrentUserFit=function(){var t=this.getCurrentUserFit(),e=this.fit.indexOf(t);return e>-1&&this.fit.splice(e,1),this.currentFit>=this.fit.length&&(this.currentFit=this.fit.length-1),this.calcUserFit()>0?this.getCurrentUserFit()||(this.currentFitUser=this.currentFit):this.currentFitUser=NaN,t},b.prototype.setCurrentUserFit=function(t){var e=d(this.fit,t);isNaN(e)||(this.currentFit=e,this.currentFitUser=e)},b.prototype.isFitNameValid=function(t,e){var i=u.call(this,t,e),n=/^[a-zA-Z]([a-zA-Z0-9_]*)?$/.test(e);return n&&!i},b.prototype.isFitExpressionValid=function(t){t=t.replace(/,/g,".");var e=!1;try{var i=l.parse(t),n=i.variables(),r=f.call(this,n);return!!i&&r}catch(t){return console.log(t),e}},b.prototype.getFitData=function(){var t,e=this.graph.curve.length,i=[],n=[];for(t=0;t<e;t++)i.push(this.graph.curve[t].x),n.push(this.graph.curve[t].y);return{x:i,y:n}},t.exports=b},function(t,e,i){"use strict";var n=0,r=0,o=i(88),s=function(t,e){this.isKnownPolynomial=!0,this.isUserDefined=!1,this.name="Line",this.degree=1,this.parameters=[{name:"a",value:n},{name:"b",value:r}],this.expression="a*"+t+" + b",this.equation=o(e+" = "+this.expression)};t.exports=s},function(t,e){"use strict";t.exports=function(t){return t.replace(/_x/g,"<sub>x</sub>").replace(/_y/g,"<sub>y</sub>")}},function(t,e,i){"use strict";var n=0,r=0,o=0,s=0,a=i(88),l=function(t,e){this.isKnownPolynomial=!0,this.isUserDefined=!1,this.name="Cubic",this.degree=3,this.parameters=[{name:"a",value:n},{name:"b",value:r},{name:"c",value:o},{name:"d",value:s}],this.expression="a*"+t+"^3 + b*"+t+"^2 + c*"+t+" + d",this.equation=a(e+" = "+this.expression)};t.exports=l},function(t,e,i){"use strict";var n=0,r=0,o=0,s=i(88),a=function(t,e){this.isKnownPolynomial=!0,this.isUserDefined=!1,this.name="Parabola",this.degree=2,this.parameters=[{name:"a",value:n},{name:"b",value:r},{name:"c",value:o}],this.expression="a*"+t+"^2 + b*"+t+" + c",this.equation=s(e+" = "+this.expression)};t.exports=a},function(t,e,i){"use strict";var n=1,r=1,o=0,s=i(88),a=function(t,e){this.isKnownPolynomial=!1,this.isUserDefined=!1,this.name="Sinusoid",this.degree=NaN,this.parameters=[{name:"a",value:n},{name:"b",value:r},{name:"c",value:o}],this.expression="a*sin(b*"+t+" + c)",this.equation=s(e+" = "+this.expression)};t.exports=a},function(t,e,i){"use strict";var n=1,r=1,o=0,s=i(88),a=function(t,e){this.isKnownPolynomial=!1,this.isUserDefined=!1,this.name="Exponential",this.degree=NaN,this.parameters=[{name:"a",value:n},{name:"b",value:r},{name:"c",value:o}],this.expression="a*exp(-1*b*("+t+" - c))",this.equation=s(e+" = "+this.expression)};t.exports=a},function(t,e,i){"use strict";var n=i(88),r=function(){for(var t=this.parameters.map(function(t){return t.name}),e=1;t.indexOf("param"+e)>-1;)e+=1;return"param"+e},o=function(t){var e=this.parameters.map(function(t){return t.name});return e.indexOf(t)>-1},s=function(t,e,i){this.isKnownPolynomial=!1,this.isUserDefined=!0,this.name=i,this.degree=NaN,this.x=t,this.y=e,this.parameters=[],this.expression="",this.equation=n(this.y+" = "+this.expression)};s.prototype.addParameter=function(){var t=r.call(this),e={name:t,value:0};return this.parameters.push(e),e},s.prototype.delParameter=function(t){var e=this.parameters.indexOf(t);e>-1&&this.parameters.splice(e,1)},s.prototype.isParameterNameValid=function(t){var e=/^[a-zA-Z]([a-zA-Z0-9_]*)?$/.test(t),i=o.call(this,t);return e&&!i&&t!==this.name},s.prototype.isParameterExpressionValid=function(t){return!isNaN(Number(t))},s.prototype.setExpression=function(t){this.expression=t,this.equation=n(this.y+" = "+this.expression)},s.prototype.hasExpression=function(){return!!this.expression},s.prototype.update=function(t){var e=new RegExp(this.x,"g");return this.expression=this.expression.replace(e,t),this.equation=n(this.equation.replace(e,t)),this},t.exports=s},function(t,e,i){"use strict";var n=i(33),r="resize",o=n.user.mouseup,s=n.user.mousedown,a=i(95),l=i(109),c=i(117),h=i(118),d=i(122),p=i(123),u=function(t,e){for(var i=e.fitVariantsBttns.length;i--;)f(e.fitVariantsBttns[i],t,e)},f=function(t,e,i){t.addEventListener(s,function(t){t.preventDefault(),t.stopPropagation()},!1),t.addEventListener(o,function(n){e.setCurrentFit(t.name),i.updateFitView(e),i.hideFitVariants(),e.getCurrentFit().isUserDefined?x(e,i):m(e,i),n.preventDefault(),n.stopPropagation()},!1)},A=function(t,e){t.chartUpdate(e)},b=function(t,e){var i=Date.now(),n=1500,r=0,o=function(i){h(t,e)};return function(t){Date.now()-i<n&&clearTimeout(r),i=Date.now(),r=setTimeout(o,500)}},m=function(t,e){var i=t.getFitData(),n=t.getCurrentFit(),r=l(n,t.x,i.x,i.y);t.graph.fitCurve=r.data,e.setRMSDev(r.rmsDev),e.reDrawChartWithFitCurve(t.graph),e.fitParameters.update(t.getCurrentFit().parameters),g(t,e,!0)},x=function(t,e){var i=t.getFitData(),n=t.getCurrentFit();if(n.hasExpression()){var r=c(n,t.x,i.x,i.y);t.graph.fitCurve=r.data,e.setRMSDev(r.rmsDev),e.reDrawChartWithFitCurve(t.graph),e.fitParameters.update(t.getCurrentFit().parameters),g(t,e,!0)}},g=function(t,e,i){i||A(e,t),e.createSlopeLine(),p({axisX:t.x,axisY:t.y},e,!0),d(t,e)},v=function(t,e){var i=b(e,t),l=function(i){g(t,e)},c=function(t){e.hideFitVariants()};e.bttnsToggle.slope.node.addEventListener(o,function(i){t.isSlopeVisible=e.bttnsToggle.slope.toggle(),i.preventDefault(),i.stopPropagation()},!1),e.bttnsToggle.fit.node.addEventListener(o,function(i){e.togglePanelFeat(t),g(t,e),i.preventDefault(),i.stopPropagation()},!1),e.bttnFitBuilder.addEventListener(o,function(i){new a(e.holder,t),i.preventDefault(),i.stopPropagation()},!1),e.bttnFitCurve.addEventListener(o,function(i){m(t,e),i.preventDefault(),i.stopPropagation()},!1),e.bttnClose.addEventListener(o,function(t){e.hide(),n.fire("DATA_TOOL:closed"),n.clear("DATA_TOOL:user-fit-list:add"),n.clear("DATA_TOOL:user-fit-list:del"),n.clear("DATA_TOOL:user-fit-list:current-changed"),n.clear("DATA_TOOL:user-fit:name-updated"),n.clear("DATA_TOOL:user-fit:expression-updated"),n.clear("DATA_TOOL:user-fit:parameters-updated"),window.removeEventListener(s,c),window.removeEventListener(r,l),window.removeEventListener(r,i),t.preventDefault(),t.stopPropagation()},!1),e.fitNameValue.parentNode.addEventListener(o,function(t){e.showFitVariants(),t.preventDefault(),t.stopPropagation()},!1),window.addEventListener(s,c,!1),e.bttnGetGraphAsImage.addEventListener(s,function(i){h(e,t)},!1),n.on("DATA_TOOL:user-fit-list:add",function(i){var n=e.addUserFitVariant(i);f(n,t,e),e.updateFitView(t)}),n.on("DATA_TOOL:user-fit-list:del",function(t){e.delUserFitVariant(t)}),n.on("DATA_TOOL:user-fit-list:current-changed",function(){e.updateFitView(t),x(t,e)}),n.on("DATA_TOOL:user-fit:name-updated",function(i){e.updateFitName(t,i.oldName,i.newName)}),n.on("DATA_TOOL:user-fit:expression-updated",function(){x(t,e),e.setFitEquationValue(t)}),n.on("DATA_TOOL:user-fit:parameters-updated",function(){x(t,e),e.fitParameters.update(t.getCurrentFit().parameters)}),e.show(t),u(t,e),h(e,t),p({axisX:t.x,axisY:t.y},e,!0),d(t,e),window.addEventListener(r,l,!1),window.addEventListener(r,i,!1)};t.exports=v},function(t,e,i){"use strict";var n=i(96),r=i(105),o=function(t,e){this.view=new n(t,e),new r(this.view,e)};t.exports=o},function(t,e,i){var n=i(16);i(97);var r=i(99),o=i(103),s=n(i(104)),a=360,l=380,c=function(t){var e,i,n,r=t.fit;for(i=0,n=r.length;i<n;i++)r[i].isUserDefined&&(e=h(r[i].name),this.userFitVariants.appendChild(e),this.userFits.push(e));var o=t.getCurrentUserFit();o&&(this.currentUserFit.textContent=o.name)},h=function(t){var e=document.createElement("button");return e.textContent=t,e.name=t,e},d=function(t){var e,i=this.userFits;for(e=i.length;e--;)if(i[e].name===t)return i[e];return null},p=function(t,e){this.node=s.querySelector("div").cloneNode(!0),this.node.style.height=l+"px",this.node.style.width=a+"px",this.holder=t,this.width=a,this.height=l,this.header=this.node.querySelector(".dtfb > .dtfb-h"),this.bttnFitNew=this.node.querySelector('.dtfb > .dtfb-c [name="new"]'),this.bttnFitDel=this.node.querySelector('.dtfb > .dtfb-c [name="del"]'),this.bttnSaveAndClose=this.node.querySelector(".dtfb > .dtfb-c > .dtfb-panel.hint > button"),this.currentUserFit=this.node.querySelector(".dtfb > .dtfb-c .dtfb-bttn-fit-current > span"),this.currentUserFitBttn=this.currentUserFit.parentNode,this.userFitVariants=this.node.querySelector(".dtfb > .dtfb-c .dtfb-bttn-fit-current > .dtfb-menu-fit-variants"),this.userFits=[],this.state={parameters:new r(this.node.querySelector('.dtfb-panel[name="Parameters"]')),function:new r(this.node.querySelector('.dtfb-panel[name="Function"]'))},this.controls={parameters:new o(this.node.querySelector('.dtfb-panel[name="Parameters"]'))},this.hint=this.node.querySelector(".dtfb > .dtfb-c > .dtfb-panel.hint"),
this.warning=this.node.querySelector(".dtfb > .dtfb-c > .dtfb-panel.warning"),this.warnings=0,this.panels={function:this.node.querySelector('.dtfb-panel-cover > [name="Function"]'),parameters:this.node.querySelector('.dtfb-panel-cover > [name="Parameters"]')},c.call(this,e),this.hideUserFitVariants(),this.update(e),this.warningHide(),this.show()};p.prototype.show=function(){this.holder.appendChild(this.node)},p.prototype.hide=function(){this.holder.removeChild(this.node)},p.prototype.update=function(t){0===t.calcUserFit()?(this.bttnFitDel.disabled=!0,this.currentUserFitBttn.disabled=!0,this.panels.function.style.display="none",this.panels.parameters.style.display="none"):(this.bttnFitDel.disabled=!1,this.currentUserFitBttn.disabled=!1,this.panels.function.style.display="",this.panels.parameters.style.display="")},p.prototype.updateCurrentFitName=function(t){var e=t.getCurrentUserFit();e?this.currentUserFit.textContent=e.name:this.currentUserFit.textContent=""},p.prototype.addUserFit=function(t){var e=h(t.name);return this.userFits.push(e),this.userFitVariants.appendChild(e),this.currentUserFit.textContent=t.name,e},p.prototype.delUserFit=function(t){var e=d.call(this,t.name);null!==e&&this.userFitVariants.removeChild(e)},p.prototype.warningShow=function(t){t&&(this.warnings+=1,t.classList.add("wrong")),this.warning.style.display="",this.hint.style.display="none"},p.prototype.warningHide=function(t){t&&(this.warnings-=1,t.classList.remove("wrong")),this.warnings<=0&&(this.warnings=0,this.hint.style.display="",this.warning.style.display="none")},p.prototype.showUserFitVariants=function(){this.userFitVariants.style.display=""},p.prototype.hideUserFitVariants=function(){this.userFitVariants.style.display="none"},p.prototype.updateUserFitVarians=function(t,e){for(var i=this.userFits.length;i--;)this.userFits[i].name===t&&(this.userFits[i].name=e,this.userFits[i].textContent=e)},t.exports=p},[233,98],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".tracker>.dtfb{margin:0;padding:0;position:absolute;z-index:3000;box-shadow:1px 1px 2px grey;background:#f0c869;font-family:Arial}.tracker>.dtfb>.dtfb-h{width:100%;height:30px;position:relative;cursor:move}.tracker>.dtfb>.dtfb-h>h1{margin:0;padding:0;font-size:1pc;font-weight:700;padding:8px 0}.tracker>.dtfb>.dtfb-h>button{padding:0;margin:0;border:0;outline:0;position:absolute;top:5px;right:10px;width:24px;height:24px;background:transparent;border-radius:24px;cursor:pointer}.tracker>.dtfb>.dtfb-h>button:before{font-family:Tracker Icons;content:'a';font-size:22px;font-weight:400}.tracker>.dtfb>.dtfb-h>button:hover:before{color:#cd5c5c}.tracker>.dtfb>.dtfb-c{background:#eee;margin:5px;width:calc(100% - 5px - 5px);height:calc(100% - 5px - 5px - 30px);overflow:hidden}.tracker>.dtfb>.dtfb-c .dtfb-panel{margin:2px;padding:2px;padding-top:10px;border:1px solid grey;border-radius:4px;text-align:left;position:relative;font-size:14px}.tracker>.dtfb>.dtfb-c .dtfb-panel.model{padding:5px;font-weight:700;height:26px}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>label{position:relative;top:5px;text-align:left;vertical-align:top;display:inline-block;width:70px}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-bttn-fit-current{border:1px solid grey;margin:0;padding:0;outline:0;width:calc(100% - 70px - 78pt - 2px);height:26px;padding:2px 0 2px 4px;cursor:pointer;text-align:left;position:relative}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-bttn-fit-current:disabled{cursor:default}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-bttn-fit-current>span{position:relative;top:3px}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-bttn-fit-current:after{font-family:Tracker Icons;font-size:18px;float:right;content:'b'}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-bttn-fit-current:disabled:after{color:#b3b3b3}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-bttn-fit-current>.dtfb-menu-fit-variants{position:absolute;width:100%;top:25px;left:-1px;min-height:20px;background:#eee;display:inline-block;box-shadow:1px 1px 2px grey;padding:2px 0;z-index:10;border:1px solid #7a8a99;cursor:default;text-align:left}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-bttn-fit-current>.dtfb-menu-fit-variants>button{width:100%;display:list-item;margin:0;padding:0;text-align:left;background:none;border:0;outline:0;padding:4px 6px;color:#3c3c3c;cursor:pointer}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-bttn-fit-current>.dtfb-menu-fit-variants>button:hover{background:#a3b8cc}.tracker>.dtfb>.dtfb-c .dtfb-panel[name]{margin-top:10px}.tracker>.dtfb>.dtfb-c .dtfb-panel[name]:before{content:attr(name);background:#eee;text-align:left;display:inline-block;font-size:14px;position:absolute;top:-8px;left:10px;padding:0 4px;font-weight:700}.tracker>.dtfb>.dtfb-c .dtfb-panel>.dtfb-panel-buttons{text-align:center}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-panel-buttons{float:right}.tracker>.dtfb>.dtfb-c .dtfb-panel>.dtfb-panel-buttons>button{margin:4px;cursor:pointer;height:26px;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #e2ebf5),color-stop(34%, #ffffff),color-stop(100%, #bed3e7));background:-webkit-linear-gradient(top,#e2ebf5 0,#fff 34%,#bed3e7 100%);background:linear-gradient(to bottom,#e2ebf5 0,#fff 34%,#bed3e7 100%);border:1px solid #7a8a99;padding:2px 10px;outline:0;font-weight:700}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-panel-buttons>button{margin:0 2px;padding:2px 6px}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-panel-buttons>button[name=new]{width:42px}.tracker>.dtfb>.dtfb-c .dtfb-panel.model>.dtfb-panel-buttons>button[name=del]{width:54px}.tracker>.dtfb>.dtfb-c .dtfb-panel>.dtfb-panel-buttons>button:hover{box-shadow:inset 0 0 1px 2px #b8cfe5}.tracker>.dtfb>.dtfb-c .dtfb-panel>.dtfb-panel-buttons>button:disabled{cursor:default;background:#eee;border:1px solid #999;color:#999}.tracker>.dtfb>.dtfb-c .dtfb-panel>.dtfb-panel-buttons>button:disabled:hover{box-shadow:none}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover{width:100%;height:244px;padding-bottom:2px;margin-bottom:4px;overflow-x:hidden;overflow-y:auto;border-top:2px solid #7a8a99;border-bottom:2px solid #7a8a99}.tracker>.dtfb>.dtfb-c>.dtfb-panel.hint,.tracker>.dtfb>.dtfb-c>.dtfb-panel.warning{font-weight:400;padding:5px;font-size:9pt}.tracker>.dtfb>.dtfb-c>.dtfb-panel.warning{color:red}.tracker>.dtfb>.dtfb-c>.dtfb-panel.hint{color:#3600ff}.tracker>.dtfb>.dtfb-c>.dtfb-panel.hint>button{position:absolute;top:4px;width:90pt;height:calc(100% - 8px);font-size:14px;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #e2ebf5),color-stop(34%, #ffffff),color-stop(100%, #bed3e7));background:-webkit-linear-gradient(top,#e2ebf5 0,#fff 34%,#bed3e7 100%);background:linear-gradient(to bottom,#e2ebf5 0,#fff 34%,#bed3e7 100%);border:1px solid #7a8a99;padding:2px 10px;outline:0;font-weight:700;border:2px solid #7a8a99;line-height:1pc;right:4px}.tracker>.dtfb>.dtfb-c>.dtfb-panel.hint>button:not(:disabled):hover{cursor:pointer}",""])},function(t,e,i){"use strict";var n=i(16);i(100);var r=n(i(102)),o=function(t){var e=t.querySelector("tbody > tr");return e.parentNode.removeChild(e),e},s=function(t){var e=this.rowTemplate.cloneNode(!0),i=e.querySelectorAll("td");return t.nameIsEditable?e.name=l(t.name):e.name=a(t.name),e.expression=l(t.expression),i[0].appendChild(e.name),i[1].appendChild(e.expression),e},a=function(t){var e=document.createElement("label");return e.textContent=t,e},l=function(t){var e=document.createElement("input");return e.value=t||0,e.type="text",e},c=function(){for(;this.body.firstChild;)this.body.removeChild(this.body.firstChild)},h=function(t){this.node=r.querySelector("table").cloneNode(!0),this.rowTemplate=o(this.node),this.body=this.node.querySelector("tbody"),t.appendChild(this.node)};h.prototype.createRecord=function(t){var e=s.call(this,t);return this.body.appendChild(e),e},h.prototype.removeRecord=function(t){this.body.removeChild(t)},h.prototype.clear=function(){c.call(this)},t.exports=h},[234,101],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table{padding:0;border-spacing:0;border:1px solid grey;margin:2px;width:calc(100% - 2px - 2px)}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table>thead{background:#ddd}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table>thead>tr>td{width:50%;text-align:center;border-bottom:1px solid #7a8a99}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table>thead>tr>td:not(:first-child){border-left:1px solid #7a8a99}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table>tbody>tr>td{width:50%;border-bottom:1px solid #999}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table>tbody>tr.active{background:#0cf}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table>tbody>tr>td>label{padding:0 2px}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table>tbody>tr>td>input{outline:0;border:1px inset #a9a9a9;width:calc(100% - 1px - 1px)}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table>tbody>tr>td>input.wrong{background:#f3b3b3}.tracker>.dtfb>.dtfb-c>.dtfb-panel-cover>.dtfb-panel>table>tbody>tr>td:not(:first-child){border-left:1px solid #999}",""])},function(t,e){t.exports="<table>\r\n <thead>\r\n <tr>\r\n <td>Name</td>\r\n <td>Expression</td>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td></td>\r\n <td></td>\r\n </tr>\r\n </tbody>\r\n</table>"},function(t,e){"use strict";var i=function(t){this.add=t.querySelector('.dtfb-panel-buttons > button[name="add"]'),this.remove=t.querySelector('.dtfb-panel-buttons > button[name="remove"]')};t.exports=i},function(t,e){t.exports='<div class="dtfb">\r\n <div class="dtfb-h">\r\n <h1>Fit Builder</h1>\r\n </div>\r\n <div class="dtfb-c">\r\n <div class="dtfb-panel model">\r\n <label>Fit Name: </label>\r\n <button class="dtfb-bttn-fit-current">\r\n <span></span>\r\n <div class="dtfb-menu-fit-variants"></div>\r\n </button>\r\n <div class="dtfb-panel-buttons">\r\n <button name="new">New</button>\r\n <button name="del">Delete</button>\r\n </div>\r\n </div>\r\n <div class="dtfb-panel-cover">\r\n <div class="dtfb-panel" name="Parameters">\r\n <div class="dtfb-panel-buttons">\r\n <button name="add">Add</button>\r\n <button name="remove">Remove</button>\r\n </div>\r\n </div>\r\n <div class="dtfb-panel" name="Function">\r\n </div>\r\n </div>\r\n <div class="dtfb-panel warning">\r\n Red cells have invalid expressions.\r\n <br/>\r\n They will not be saved.\r\n </div>\r\n <div class="dtfb-panel hint">\r\n Click (Tap) cell to edit.\r\n <br/>\r\n See help for valid expressions.\r\n\r\n <button class="save-and-close">Save & Close</button>\r\n </div>\r\n </div>\r\n</div>'},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=(n.input.change,i(106)),s=i(107),a=i(108),l=function(t,e,i){t.addEventListener(r,function(r){i.setCurrentUserFit(t.name),e.updateCurrentFitName(i),e.hideUserFitVariants(),c(e,i),n.fire("DATA_TOOL:user-fit-list:current-changed"),r.preventDefault(),r.stopPropagation()},!1)},c=function(t,e){a(t,e),s(t,e)},h=function(t,e){for(var i=t.userFits.length;i--;)l(t.userFits[i],t,e)},d=function(t,e){t.bttnSaveAndClose.addEventListener(r,function(e){t.hide(),n.fire("DATA_TOOL:user-fit-list:current-changed"),e.preventDefault(),e.stopPropagation()},!1),t.bttnFitNew.addEventListener(r,function(i){e.createUserDefinedFit();var r=e.getCurrentUserFit(),o=t.addUserFit(r);l(o,t,e),t.update(e),c(t,e),n.fire("DATA_TOOL:user-fit-list:add",r),i.preventDefault(),i.stopPropagation()},!1),t.bttnFitDel.addEventListener(r,function(i){var r=e.getCurrentUserFit();t.delUserFit(e.delCurrentUserFit()),t.updateCurrentFitName(e),t.update(e),n.fire("DATA_TOOL:user-fit-list:del",r),i.preventDefault(),i.stopPropagation()},!1),t.currentUserFitBttn.addEventListener(r,function(e){t.showUserFitVariants(),e.preventDefault(),e.stopPropagation()},!1),window.addEventListener(r,function(e){t.hideUserFitVariants()},!1),h(t,e),o(t);var i=e.getCurrentUserFit();i&&(c(t,e),isNaN(e.currentFitUser)||(e.currentFit=e.currentFitUser),n.fire("DATA_TOOL:user-fit-list:current-changed"))};t.exports=d},function(t,e,i){"use strict";var n=i(33),r=n.user.mousedown,o=n.user.mousemove,s=n.user.mouseup,a=function(t){var e,i,a,l,c,h={x:0,y:0},d=!1,p=0,u=0,f=function(e){t.node.style.left=e.x+"px",t.node.style.top=e.y+"px"},A=function(t){return c=n.user.position(t),c.x=h.x+c.x-l.x,c.y=h.y+c.y-l.y,c.x=Math.min(e,Math.max(p,c.x)),c.y=Math.min(i,Math.max(u,c.y)),c},b=function(r){a=t.holder.getBoundingClientRect(),l=n.user.position(r),i=a.height-t.height,e=a.width-t.width,d=!0,r.preventDefault(),r.stopPropagation()},m=function(t){return!!d&&(f(A(t)),t.preventDefault(),void t.stopPropagation())},x=function(t){return!!d&&(h=c,void(d=!1))};t.header.addEventListener(r,b,!1),window.addEventListener(o,m,!1),window.addEventListener(s,x,!1),a=t.holder.getBoundingClientRect(),h.x=a.width/2-t.width/2,h.y=a.height/2-t.height/2,f(h)};t.exports=a},function(t,e,i){"use strict";var n=i(33),r=n.user.mousedown,o=(n.user.mouseup,n.input.change),s=n.input.focus,a=n.input.blur,l="active",c=4,h=function(t,e){t.remove.disabled=e},d=function(t,e){t.add.disabled=e},p=function(t,e){f(t,e),u(t,e)},u=function(t,e){var i=function(i){t.classList.remove(l),n.fire("DATA_TOOL:FIT_BUILDER:blur:row",{row:t,param:e})},r=function(i){t.classList.add(l),n.fire("DATA_TOOL:FIT_BUILDER:focus:row",{row:t,param:e})};t.name.addEventListener(a,i,!1),t.name.addEventListener(s,r,!1),t.expression.addEventListener(a,i,!1),t.expression.addEventListener(s,r,!1)},f=function(t,e){t.name.addEventListener(o,function(i){n.fire("DATA_TOOL:FIT_BUILDER:update:param-name",{row:t,param:e})},!1),t.expression.addEventListener(o,function(i){n.fire("DATA_TOOL:FIT_BUILDER:update:param-expression",{row:t,param:e})},!1)},A=function(t,e){for(var i,n,r=0,o=t.length;r<o;r++)n=t[r],i=e.createRecord({name:n.name,expression:n.value,nameIsEditable:!0}),p(i,n)},b=function(t,e){var i=t.controls.parameters,o=e.getCurrentUserFit(),s=t.state.parameters,a=null,l=null;s.clear(),A(o.parameters,s),h(i,null===l),d(i,o.parameters.length>=c),i.add.onclick=function(t){var e=o.addParameter(),r=s.createRecord({name:e.name,expression:e.value,nameIsEditable:!0});p(r,e),h(i,null===l),d(i,o.parameters.length>=c),n.fire("DATA_TOOL:user-fit:parameters-updated"),t.preventDefault(),t.stopPropagation()},i.remove.addEventListener(r,function(t){t.preventDefault(),t.stopPropagation()},!1),i.remove.onclick=function(t){o.delParameter(a),s.removeRecord(l),d(i,o.parameters.length>=c),n.fire("DATA_TOOL:user-fit:parameters-updated"),t.preventDefault(),t.stopPropagation()},n.clear("DATA_TOOL:FIT_BUILDER:blur:row"),n.clear("DATA_TOOL:FIT_BUILDER:focus:row"),n.clear("DATA_TOOL:FIT_BUILDER:update:param-name"),n.clear("DATA_TOOL:FIT_BUILDER:update:param-expression"),n.on("DATA_TOOL:FIT_BUILDER:update:param-name",function(e){o.isParameterNameValid(e.row.name.value)?(e.param.name=e.row.name.value,t.warningHide(e.row.name),n.fire("DATA_TOOL:user-fit:parameters-updated")):t.warningShow(e.row.name)}),n.on("DATA_TOOL:FIT_BUILDER:update:param-expression",function(e){o.isParameterExpressionValid(e.row.expression.value)?(e.param.value=Number(e.row.expression.value),t.warningHide(e.row.expression),n.fire("DATA_TOOL:user-fit:parameters-updated")):t.warningShow(e.row.expression)}),n.on("DATA_TOOL:FIT_BUILDER:focus:row",function(t){l=t.row,a=t.param,h(i,null===l)}),n.on("DATA_TOOL:FIT_BUILDER:blur:row",function(t){l=null,a=null,h(i,null===l)}),h(i,null===l)};t.exports=b},function(t,e,i){"use strict";var n=i(33),r=(n.user.mouseup,n.input.change),o=function(t,e,i){var o=i.getCurrentUserFit();t.name.addEventListener(r,function(r){if(i.isFitNameValid(o,t.name.value)){var s=o.name;o.name=t.name.value,e.updateCurrentFitName(i),e.updateUserFitVarians(s,o.name),n.fire("DATA_TOOL:user-fit:name-updated",{oldName:s,newName:o.name}),e.warningHide(t.name)}else e.warningShow(t.name)},!1),t.expression.addEventListener(r,function(r){if(i.isFitExpressionValid(t.expression.value)){var o=i.getCurrentUserFit();o.setExpression(t.expression.value),n.fire("DATA_TOOL:user-fit:expression-updated"),e.warningHide(t.expression)}else e.warningShow(t.expression)},!1)},s=function(t,e){var i=e.getCurrentUserFit(),n=t.state.function;n.clear();var r=n.createRecord({name:i.name,expression:i.expression,nameIsEditable:!0});o(r,t,e)};t.exports=s},function(t,e,i){"use-strict";var n=i(110),r=i(113),o=function(t,e){var i,n=e.length,r=[];for(window.func=t,i=0;i<n;i++)r.push({x:e[i],y:Number(t.evaluate(e[i]))});return r};t.exports=function(t,e,i,s){var a=new n(t,e),l=new r(i,s),c=l.fit(a);return{rmsDev:c,data:o(a,i)}}},function(t,e,i){"use strict";var n=i(52),r=i(111),o=i(112),s=function(t,e){var i,n,r=t.length;for(i=0;i<r;i++)for(n=i+1;n<r;n++)e[i][n]=e[n][i];var s=new o(e),a=s.inverseMatrixComponents();o.symmetrizeComponents(a);var l=s.solve(t);for(l=l.reverse(),i=l.length;i--;)this.setParameterValue(i,l[i])},a=function(t){var e,i={};for(e=t.length;e--;)i[t[e].name]=t[e].value;return i},l=function(t,e){this.isKnownPolynomial=t.isKnownPolynomial,this.degree=t.degree,this.parameters=t.parameters,this.exp=n.parse(t.expression),this.params=a(this.parameters),this.label_x=e,this.params[e]=0};l.prototype.evaluate=function(t){return this.params[this.label_x]=t,this.exp.evaluate(this.params)},l.prototype.getParameterCount=function(){return this.parameters.length},l.prototype.setParameterValue=function(t,e){var i=this.parameters[t];this.params[i.name]=e,i.value=e},l.prototype.getParameterValue=function(t){return this.parameters[t].value},l.prototype.fitData=function(t,e){var i=this.degree+1;if(t.length<i)return!1;var n,o,a,l,c,h,d,p=r.matrix(i),u=new Array(i);for(n=0,o=u.length;n<o;n++)for(u[n]=0,a=0,l=u.length;a<l;a++)p[n][a]=0;for(n=0,o=t.length;n<o;n++)for(h=1,a=0,l=u.length;a<l;a++){for(u[a]+=h*e[n],d=h,c=0;c<=a;c++)p[a][c]+=d,d*=t[n];h*=t[n]}s.call(this,u,p)},t.exports=l},function(t,e){"use strict";var i=function(t){var e,i=0;for(e=t.length;e--;)i+=t[e];return isNaN(i)?NaN:i},n=function(t,e){var i=new Array(t);e=e||t;for(var n=i.length;n--;)i[n]=new Array(e);return i},r=function(){var t,e,i,n=0,r=0;2===arguments.length?(t=arguments[0],e=arguments[1],i=t.length):3===arguments.length?(t=arguments[0],e=arguments[1],i=arguments[2]):5===arguments.length&&(t=arguments[0],n=arguments[1],e=arguments[2],r=arguments[3],i=arguments[4]);for(var o=n,s=r;o<i+n;o++,s++){if(void 0===e[s])throw"array index out of bounds exception";e[s]=t[o]}};t.exports={sum:i,copy:r,matrix:n}},function(t,e,i){"use strict";var n=i(111),r=function(t){var e,i,n=this.rows.length,r=new Array(n);for(e=0;e<n;e++)for(r[e]=t[this.permutation[e]],i=0;i<=e-1;i++)r[e]-=this.rows[e][i]*r[i];return r},o=function(t){var e,i,n=this.rows.length,r=new Array(n);for(e=n-1;e>=0;e--){for(r[e]=t[e],i=e+1;i<n;i++)r[e]-=this.rows[e][i]*r[i];r[e]/=this.rows[e][e]}return r},s=function(t){var e,i,n=Math.abs(this.rows[t][t]),r=t,o=this.rows.length;for(i=t+1;i<o;i++)e=Math.abs(this.rows[i][t]),e>n&&(n=e,r=i);return r},a=function(t){var e,i,n=1/this.rows[t][t],r=this.rows.length,o=t+1;for(e=o;e<r;e++)for(this.rows[e][t]*=n,i=o;i<r;i++)this.rows[e][i]-=this.rows[e][t]*this.rows[t][i]},l=function(t,e){if(t!==e){var i,n;for(n=0;n<this.rows.length;n++)i=this.rows[t][n],this.rows[t][n]=this.rows[e][n],this.rows[e][n]=i;var r=this.permutation[t];this.permutation[t]=this.permutation[e],this.permutation[e]=r,this.parity=-1*this.parity}},c=function(){var t,e=this.rows.length;for(this.permutation=new Array(e),t=0;t<e;t++)this.permutation[t]=t;this.parity=1;try{for(t=0;t<e;t++)l.call(this,t,s.call(this,t)),a.call(this,t)}catch(t){this.parity=0}},h=function(){return 1===this.parity&&null===this.permutation&&c.call(this),0!==this.parity},d=function(t){var e,i=t.length;for(this.rows=n.matrix(i),e=0;e<i;e++)this.rows[e]=t[e].slice(0);this.permutation=null,this.parity=1},p=function(t){this.rows,this.permutation=null,this.parity=1,d.call(this,t)};p.prototype.solve=function(t){return h.call(this)?o.call(this,r.call(this,t)):null},p.prototype.inverseMatrixComponents=function(){if(!h.call(this))return null;var t,e,i=this.rows.length,r=n.matrix(i),o=new Array(i);for(t=0;t<i;t++){for(e=0;e<i;e++)o[e]=0;for(o[t]=1,o=this.solve(o),e=0;e<i;e++){if(isNaN(o[e]))return null;r[e][t]=o[e]}}return r},p.symmetrizeComponents=function(t){var e,i,n=t.length;for(e=0;e<n;e++)for(i=e+1;i<n;i++)t[e][i]+=t[i][e],t[e][i]*=.5,t[i][e]=t[e][i]},t.exports=p},function(t,e,i){"use strict";var n=i(114),r=i(115),o=i(116),s=function(t,e,i){var n,r=t.length,o=new Array(2),s=NaN;for(n=0;n<o.length;n++)o[n]=NaN;if(r<3)return!1;var a=t[0],l=e[0];for(n=1;n<r;n++)a+=t[n],l+=e[n];a/=r,l/=r;var c=0,h=0,d=0;for(n=0;n<r;n++){var p=t[n]-a,u=e[n]-l;c+=p*p,h+=u*u,d+=p*u}if(0===c||0===h){for(s=NaN,n=0;n<o.length;n++)o[n]=NaN;return!1}var f=c/r,A=h/r,b=d/r;if(s=b*b/(f*A),i){var m=Math.max(0,h-d*d/c),x=m/(r-2);o[0]=Math.sqrt(x/c),o[1]=Math.sqrt(x*(1/r+a*a/c))}return o},a=function(t,e,i){var n,r,o,s=!1,a=0;for(r=0,o=e.length;r<o;r++){var l=t.evaluate(e[r]);if(isNaN(l)){s=!0;break}n=l-i[r],a+=n*n}return s?NaN:a},l=function(t,e){this.uncertainties=new Array(2),this.x=t,this.y=e};l.prototype.fit=function(t){var e,i=0,l=this.x,c=this.y,h=a(t,l,c),d=!1,p=new n,u=new r;if(!isNaN(h))if(t.isKnownPolynomial)t.fitData(l,c),d=1===t.degree;else{var f=new Array(t.getParameterCount());if(f.length>0&&f.length<=l.length){var A=new o(t,l,c),b=new Array(f.length);for(e=0;e<f.length;e++)f[e]=b[e]=t.getParameterValue(e);var m=1e-6,x=20;if(p.minimize(A,f,x,m),i=a(t,l,c),i>h){for(e=0;e<b.length;e++)t.setParameterValue(e,b[e]);u.minimize(A,f,x,m),i=a(t,l,c)}if(i>h){for(e=0;e<b.length;e++)t.setParameterValue(e,b[e]);i=h}}}s(l,c,d),0===i&&(i=a(t,l,c));var g=Math.sqrt(i/l.length);return 0===l.length||0===c.length||isNaN(g),g},t.exports=l},function(t,e,i){"use-strict";var n=i(111),r=i(112),o=function(t,e){var i,n,r,o=e.length,s=5,a=.35,l=0,c=new Array(o);this.xp=new Array(o),this.xm=new Array(o);var h,d;for(h=0;h<o;h++)c[h]=(Math.abs(e[h])+1)/1e3;for(;l<s;)for(l++,h=0;h<o;h++){for(d=0;d<o;d++)d==h?(this.xp[h]=e[h]+c[h],this.xm[h]=e[h]-c[h]):(this.xp[d]=e[d],this.xm[d]=e[d]);i=t.evaluate(this.xp),n=t.evaluate(e),r=t.evaluate(this.xm),e[h]=e[h]-.5*a*c[h]*(i-r)/(i-2*n+r)||e[h],c[h]=.5*c[h]}},s=function(t,e,i,r){isNaN(n.sum(i))?(this.rmsd=this.rmsd_tmp,n.copy(e,0,i,0,r)):(this.rmsd=t.evaluate(i),this.rmsd<=this.rmsd_tmp?(this.rmsd_tmp=this.rmsd,n.copy(i,0,e,0,r)):(this.rmsd=this.rmsd_tmp,n.copy(e,0,i,0,r)))},a=function(t){this.H=n.matrix(t),this.xp=new Array(t),this.xm=new Array(t),this.xpp=new Array(t),this.xpm=new Array(t),this.xmp=new Array(t),this.xmm=new Array(t)},l=function(t){this.xpp=new Array(t),this.xpm=new Array(t),this.xmp=new Array(t),this.xmm=new Array(t)},c=function(t,e,i,n){var r,o,s,c=e.length;for(this.xp&&this.xp.length===c||a.call(this,c),l.call(this,c),r=0;r<c;r++)for(o=r;o<c;o++)if(r===o){for(s=0;s<c;s++)this.xp[s]=e[s],this.xm[s]=e[s];this.xp[r]=e[r]+n[r],this.xm[r]=e[r]-n[r],this.H[r][r]=(t.evaluate(this.xp)-2*t.evaluate(e)+t.evaluate(this.xm))/(n[r]*n[r])}else{for(s=0;s<c;s++)this.xpp[s]=e[s],this.xpm[s]=e[s],this.xmp[s]=e[s],this.xmm[s]=e[s];this.xpp[r]=e[r]+n[r],this.xpp[o]=e[o]+n[o],this.xpm[r]=e[r]+n[r],this.xpm[o]=e[o]-n[o],this.xmp[r]=e[r]-n[r],this.xmp[o]=e[o]+n[o],this.xmm[r]=e[r]-n[r],this.xmm[o]=e[o]-n[o],this.H[r][o]=((t.evaluate(this.xpp)-t.evaluate(this.xpm))/(2*n[o])-(t.evaluate(this.xmp)-t.evaluate(this.xmm))/(2*n[o]))/(2*n[r]),this.H[o][r]=this.H[r][o]}for(r=0;r<c;r++){for(s=0;s<c;s++)this.xp[s]=e[s],this.xm[s]=e[s];this.xp[r]=e[r]+n[r],this.xm[r]=e[r]-n[r],i[r]=-1*(t.evaluate(this.xp)-t.evaluate(this.xm))/(2*n[r])}return this.H},h=function(){this.iterations,this.H,this.xp,this.xm,this.xpp,this.xpm,this.xmp,this.xmm,this.rmsd_tmp,this.rmsd,this.xtmp};h.prototype.minimize=function(t,e,i,a){var l,c=e.length,h=new Array(c),d=new Array(c),p=new Array(c);for(this.xtmp=e.slice(0),this.rmsd_tmp=t.evaluate(e),this.rmsd=0,this.H=n.matrix(c),o.call(this,t,e),s.call(this,t,this.xtmp,e,c),l=0;l<c;l++)p[l]=(Math.abs(e[l])+1)/1e5;var u,f=9999,A=9999;for(this.iterations=0;A>1e-6*a&&f>1e-6*a&&this.iterations<i;){this.iterations++;var b=new r(this.getHessian(t,e,d,p));for(h=b.solve(d),l=0;l<c;l++)h[l]=h[l]+e[l];for(u=e[0]-h[0],A=u*u,f=e[0]*e[0],e[0]=h[0],l=1;l<c;l++)u=e[l]-h[l],A+=u*u,f+=e[l]*e[l],e[l]=h[l];A=Math.sqrt(A),f=A/(f+a)}return s.call(this,t,this.xtmp,e,c),A},h.prototype.getHessian=c,t.exports=h},function(t,e,i){"use strict";var n=i(111),r=i(114),o=i(112),s=function(t,e,i,r){isNaN(n.sum(i))?(this.rmsd=this.rmsd_tmp,n.copy(e,0,i,0,r)):(this.rmsd=t.evaluate(i),this.rmsd<=this.rmsd_tmp?(this.rmsd_tmp=this.rmsd,n.copy(i,0,e,0,r)):(this.rmsd=this.rmsd_tmp,n.copy(e,0,i,0,r)))},a=function(){this.iterations,this.H,this.rmsd,this.rmsd_tmp,this.rmsd_tmp1,this.xtmp,this.xtmp1,this.hessian=new r};a.prototype.minimize=function(t,e,i,r){var a,l=e.length,c=new Array(l),h=new Array(l),d=new Array(l);for(this.rmsd_tmp=t.evaluate(e),this.rmsd_tmp1=this.rmsd_tmp,this.xtmp=e.slice(0),this.xtmp1=e.slice(0),a=0;a<l;a++)h[a]=(Math.abs(e[a])+1)/1e5;var p,u,f=.001,A=9999,b=9999;for(this.iterations=0;b>1e-6*r&&A>1e-6*r&&this.iterations<i&&f>1e-6;){for(this.iterations++,this.H=this.hessian.getHessian(t,e,c,h),a=0;a<l;a++)this.H[a][a]=this.H[a][a]+f;for(p=new o(this.H),d=p.solve(c),a=0;a<l;a++)d[a]=d[a]+e[a];for(A=e[0]*e[0],u=e[0]-d[0],b=u*u,e[0]=d[0],a=1;a<l;a++)A+=e[a]*e[a],u=e[a]-d[a],b+=u*u,e[a]=d[a];this.rmsd=t.evaluate(e),this.rmsd<this.rmsd_tmp1?(this.rmsd_tmp1=this.rmsd,n.copy(e,0,this.xtmp1,0,l),f/=10):(n.copy(this.xtmp1,0,e,0,l),f*=10),b=Math.sqrt(b),A=b/(A+r)}return s.call(this,t,this.xtmp,e,l),b},t.exports=a},function(t,e){"use strict";var i=function(t,e,i){this.f=t,this.x=e,this.y=i};i.prototype.evaluate=function(t){var e,i,n,r=0;for(i=t.length;i--;)this.f.setParameterValue(i,t[i]);for(i=0,n=this.x.length;i<n;i++)e=this.y[i]-this.f.evaluate(this.x[i]),r+=e*e;return r},t.exports=i},function(t,e,i){"use strict";var n=i(110);t.exports=function(t,e,i,r){for(var o,s,a=new n(t,e),l=[],c=0,h=0,d=i.length;h<d;h++)s=a.evaluate(i[h]),o=s-r[h],c+=o*o,l.push({x:i[h],y:s});return{rmsDev:Math.sqrt(c/i.length),data:l}}},function(t,e,i){"use strict";var n=i(33),r=(n.user.mouseup,n.user.mousedown,i(119)),o=i(121),s=function(t,e){var i=t.chart.svg._node.getBoundingClientRect(),n=t.chart.svg._node,r=document.createElement("canvas"),s=r.getContext("2d"),c=i.width+10,h=i.height+10;r.setAttribute("width",c+"px"),r.setAttribute("height",h+"px"),a(s,n),o(s,c,h,e);var d=r.toDataURL();l(t,e,d)},a=function(t,e){var i,n,o,s=e.childNodes;for(n=0,o=s.length;n<o;n++)1===s[n].nodeType&&(i=s[n].nodeName.toLowerCase(),"g"===i?a(t,s[n]):r[i]&&"none"!==s[n].style.display&&r[i](t,s[n]))},l=function(t,e,i){for(var n=atob(i.split(",")[1]),r=new ArrayBuffer(n.length),o=new Uint8Array(r),s=0;s<n.length;s++)o[s]=255&n.charCodeAt(s);var a=new Blob([r],{type:"application/octet-stream"}),i=(window.webkitURL||window.URL).createObjectURL(a),l=c(e),h=t.bttnGetGraphAsImage;h.download=l,h.href=i,h.dataset.downloadurl=["image/png",h.download,h.href].join(":")},c=function(t){return"graph."+t.name+"."+t.y+"-"+t.x+".png"},h=function(t,e){t&&t.chart&&s(t,e)};t.exports=h},function(t,e,i){"use strict";var n=i(120),r=function(t){return parseInt(t,10)},o=function(t,e){var i=e.getCTM(),n=Number(e.getAttribute("x")),r=Number(e.getAttribute("y")),o=window.getComputedStyle(e),s=e.getBoundingClientRect(),a=e.textContent,l=o.fontFamily,c=o.fontSize,h=o.fill;t.save(),t.font=c+" "+l,t.fillStyle=h,i.b&&i.c&&(t.translate(s.width/2,s.height/2),t.transform(i.a,i.b,i.c,i.d,i.e,i.f)),t.fillText(a,n-s.width,r),t.restore()},s=function(t,e){var i=Number(e.getAttribute("x1")),n=Number(e.getAttribute("y1")),o=Number(e.getAttribute("x2")),s=Number(e.getAttribute("y2")),a=window.getComputedStyle(e),l="crispEdges"===a.shapeRendering,c=a.strokeDasharray,h=null;"none"!==c&&(h=c.indexOf(",")>-1?c.split(","):c.split(" "),1===h.length&&h.push(h[0])),t.save(),t.strokeStyle=a.stroke,t.lineCap=a.strokeLinecap,t.lineJoin=a.strokeLinejoin,t.lineWidth=parseInt(a.strokeWidth,10),l&&(t.imageSmoothingEnabled=!1),h&&(h=h.map(r),t.setLineDash(h)),t.beginPath(),t.moveTo(i,n),t.lineTo(o,s),t.stroke(),t.restore()},a=function(t,e){var i,r,o,s,a=window.getComputedStyle(e),l=n(e);for(t.save(),t.strokeStyle=a.stroke,t.lineWidth=parseInt(a.strokeWidth,10),t.beginPath(),i=0,r=l.numberOfItems;i<r;i++)switch(o=l.getItem(i),s=o.pathSegTypeAsLetter){case"M":t.moveTo(o.x,o.y);break;case"L":t.lineTo(o.x,o.y);break;case"H":break;case"V":break;case"C":t.bezierCurveTo(o.x1,o.y1,o.x2,o.y2,o.x,o.y);break;case"S":break;case"Q":break;case"T":break;case"A":break;case"Z":t.closePath()}t.stroke(),t.restore()};t.exports={text:o,line:s,path:a}},function(t,e){"use strict";var i={M:function(){this.x=0,this.y=0},L:function(){this.x=0,this.y=0},C:function(){this.x=0,this.y=0,this.x1=0,this.y1=0,this.x2=0,this.y2=0},Z:function(){}},n={M:["x","y"],L:["x","y"],C:["x1","y1","x2","y2","x","y"]},r=function(t){return this[t]},o=function(t){var e,o,s=[],a=null,l="",c=0;for(e=0,o=t.length;e<o;e++)i[t[e]]?(""!==l&&null!==a&&(a[n[a.pathSegTypeAsLetter][c]]=Number(l),l=""),a=new i[t[e]],a.pathSegTypeAsLetter=t[e],s.push(a),c=0):","===t[e]||" "===t[e]?(a[n[a.pathSegTypeAsLetter][c]]=Number(l),l="",c++):l+=t[e];return""!==l&&null!==a&&(a[n[a.pathSegTypeAsLetter][c]]=Number(l)),s.numberOfItems=s.length,s.getItem=r,s};t.exports=function(t){return o(t.getAttribute("d"))}},function(t,e){"use strict";t.exports=function(t,e,i,n){var r,o,s=n.name+" ("+n.x+", "+n.y+")";t.save();var a=t.measureText(s),l=e/2-a.width/2;o=n.name+" (",t.font="16px Arial",t.fillStyle="rgb(0,0,0)",t.fillText(o,l,16),l+=t.measureText(o).width,r=n.x.split("_"),o=r[0],t.font="16px Arial",t.fillStyle="rgb(0,0,0)",t.fillText(o,l,16),l+=t.measureText(o).width,r[1]&&(o=r[1],t.font="12px Arial",t.fillStyle="rgb(0,0,0)",t.fillText(o,l,20),l+=t.measureText(o).width),o=", ",t.font="16px Arial",t.fillStyle="rgb(0,0,0)",t.fillText(o,l,16),l+=t.measureText(o).width,r=n.y.split("_"),o=r[0],t.font="16px Arial",t.fillStyle="rgb(0,0,0)",t.fillText(o,l,16),l+=t.measureText(o).width,r[1]&&(o=r[1],t.font="12px Arial",t.fillStyle="rgb(0,0,0)",t.fillText(o,l,20),l+=t.measureText(o).width),o=")",t.font="16px Arial",t.fillStyle="rgb(0,0,0)",t.fillText(o,l,16),t.restore()}},function(t,e,i){"use strict";var n=i(33),r=n.user.mousedown,o=n.user.mousemove,s=n.user.mouseup,a="mouseenter",l="mouseleave",c=function(t){return!!this.model.isSlopeVisible&&(this.isVisible=!0,this.bbox=this.view.chart.svg._node.getBoundingClientRect(),void h.call(this,t))},h=function(t){if(!this.isVisible||!this.model.isSlopeVisible)return!1;var e=n.user.position(t);e.x-=this.bbox.left,e.y-=this.bbox.top,this.view.slopeUpdate(this.model,e)},d=function(t){this.isVisible&&(this.view.slopeHide(),this.isVisible=!0)};t.exports=function(t,e,i){var p={bbox:null,model:t,view:e,isVisible:!1},u=c.bind(p),f=d.bind(p),A=h.bind(p);n.user.touch?(window.addEventListener(s,f,!1),window.addEventListener(o,A,!1),e.chart.grid_paper.addEventListener(r,u,!1)):(e.chart.grid_paper.addEventListener(a,u,!1),e.chart.grid_paper.addEventListener(l,f,!1),e.chart.grid_paper.addEventListener(o,A,!1))}},function(t,e,i){"use strict";var n=i(33),r=n.user.mousedown,o=n.user.mousemove,s=n.user.mouseup;t.exports=function(t,e,i){e.coordsHide();var a,l,c=!1,h={x:t.axisX,y:t.axisY},d=function(t){return t.x>=l.left&&t.x<=l.right&&t.y>=l.top&&t.y<=l.bottom},p=function(t){return t.x-=a.left,t.y-=a.top,t},u=function(t){a=e.chart.svg._node.getBoundingClientRect(),l=e.chart.grid_paper.getBoundingClientRect(),e.coordsShow();var i=n.user.position(t);d(i)&&e.coordsUpdate(h,p(i)),c=!0,t.preventDefault(),t.stopPropagation()},f=function(t){if(!c)return!1;var i=n.user.position(t);d(i)?e.coordsUpdate(h,p(i)):e.coordsHide(),t.preventDefault(),t.stopPropagation()},A=function(t){return!!c&&(e.coordsHide(),
c=!1,t.preventDefault(),void t.stopPropagation())};if(i){var b=e.chart.grid_paper.nextSibling;b.setAttribute("pointer-events","none")}window.addEventListener(s,A,!1),window.addEventListener(o,f,!1),e.chart.grid_paper.addEventListener(r,u,!1)}},function(t,e,i){"use strict";var n=i(125),r=i(130),o=i(131),s=function(t,e,i,s){this.model=new r(e,i,s),this.view=new n(t,this.model),new o(this.model,this.view)};t.exports=s},function(t,e,i){"use strict";var n=i(16),r=(document.body||document.querySelector("body"),i(67));i(126);var o=n(i(128)),s=i(68),a=i(129),l=function(){return{axisX:{type:s.AutoScaleAxis,scaleMinSpace:40},axisY:{}}},c="highlight",h=function(t){var e,i,n,r=[],o={},s=t.allParams.length;for(i=0;i<s;i++)for(e=t.allParams[i],n=t.data.length;n--;)t.data[n]&&t.data[n][e]&&(o[e]=!0);for(i=0;i<s;i++)e=t.allParams[i],o[e]&&r.push(e);return r},d=function(t,e,i){var n=t[i],r=e.querySelector(".data-view-graph .bttn-axis-current");this[i].bttnCurrent=new a(r,n);var o=this[i].selectMenu.querySelector(".bttn-axis-select");o=o||this.bttnAxisChangeTemplate,m(this[i].selectMenu);for(var s=h(t),l=0,c=s.length;l<c;l++)n=s[l],r=o.cloneNode(!0),this[i].selectMenu.appendChild(r),this[i].bttnsOption.push(new a(r,n));this.bttnAxisChangeTemplate=o},p=function(t){var e=t.match(/^(\w+)_(\w+)$/);return e&&(t=e[1]+"<sub>"+e[2]+"</sub>"),t||""},u=function(t){this.header.innerHTML=t.object.name+" ("+p(t.axisX)+", "+p(t.axisY)+")"},f=function(t){this.chart.line.style.stroke=t.value,this.chart.line.style.opacity=t.opacity;for(var e=this.chart.points.length;e--;)this.chart.points[e].style.stroke=t.value,this.chart.points[e].style.opacity=t.opacity},A=function(t,e,i){this[i]={},this[i].selectBox=t.querySelector(".menu-axis-current"),this[i].selectMenu=t.querySelector(".menu-axis-current > .select-axis"),this[i].bttnCurrent=null,this[i].bttnsOption=[],d.call(this,e,t,i)},b=function(t){t.style.display="",t.style.top="",this.node.scrollHeight>this.node.clientHeight&&(t.style.top=-t.clientHeight+"px")},m=function(t){for(;t.hasChildNodes();)t.removeChild(t.lastChild)},x=function(){return[{x:0,y:0}]},g=function(t){var e=t.dataSet.length>0?t.dataSet:x();return{series:[e]}},v=function(t){for(var e=0===t.dataSet.length?"none":"",i=this.chart.points.length;i--;)this.chart.points[i].style.display=e},y=function(t,e){this.node=o.querySelector("div").cloneNode(!0),this.header=this.node.querySelector(".dvg-header"),this.axisXTitle=this.node.querySelector(".dvg-axisX-title"),this.axisYTitle=this.node.querySelector(".dvg-axisY-title"),this.holder=t,this.AXIS={axisX:"axisX",axisY:"axisY"},this.container=this.node.querySelector(".dvg-chart"),this.coords=this.node.querySelector(".dvg-coords"),this.coordsHide(),u.call(this,e),this.holder.appendChild(this.node),this.updateSelectBoxes(e)};y.prototype.createChart=function(t){var e=l(),i=t.object.bounds[t.axisY];i&&(e.axisY.low=i.min,e.axisY.high=i.max),this.chart=new s.Line(this.container,g(t),e),this.chart.grid_paper=this.chart.svg._node.querySelector(".ct-grids"),this.chart.points=this.chart.svg._node.querySelectorAll(".ct-point"),this.chart.line=this.chart.svg._node.querySelector(".ct-line"),f.call(this,t.object.color),v.call(this,t),u.call(this,t)},y.prototype.coordsShow=function(){this.coords.style.display=""},y.prototype.coordsHide=function(){this.coords.style.display="none"},y.prototype.coordsUpdate=function(t,e){this.coordsUpdateAsIs(t,this.chart.getCoords(e))},y.prototype.coordsUpdateAsIs=function(t,e){var i=r(t.x),n=r(t.y),o=i.label,s=n.label;i.type&&(o+="<sub>"+i.type+"</sub>"),n.type&&(s+="<sub>"+n.type+"</sub>"),e.x=e.x.toFixed(2),e.y=e.y.toFixed(2),this.coords.innerHTML=o+": "+e.x+" "+s+": "+e.y},y.prototype.updateSelectBoxes=function(t){A.call(this,this.axisXTitle,t,this.AXIS.axisX),A.call(this,this.axisYTitle,t,this.AXIS.axisY),this.setCurrentVariable(t.axisX,this.AXIS.axisX),this.setCurrentVariable(t.axisY,this.AXIS.axisY),b.call(this,this[this.AXIS.axisX].selectMenu),this.hideVariableOptions(this.AXIS.axisX),this.hideVariableOptions(this.AXIS.axisY)},y.prototype.chartUpdate=function(t,e){e?this.chart.update(g(t)):this.chart.update(),this.chart.grid_paper=this.chart.svg._node.querySelector(".ct-grids"),this.chart.points=this.chart.svg._node.querySelectorAll(".ct-point"),this.chart.line=this.chart.svg._node.querySelector(".ct-line"),f.call(this,t.object.color),v.call(this,t),u.call(this,t)},y.prototype.highlightPoint=function(t){for(var e=this.chart.points.length;e--;){var i=this.chart.points[e];e===t?i.classList.add(c):i.classList.remove(c)}},y.prototype.showVariableOptions=function(t){this[t].selectMenu.style.display=""},y.prototype.hideVariableOptions=function(t){this[t].selectMenu.style.display="none"},y.prototype.updateAxisButton=function(t){var e,i,n=h(t),r=this[this.AXIS.axisX],o=this[this.AXIS.axisY];m(r.selectMenu),m(o.selectMenu),r.bttnsOption.length=0,o.bttnsOption.length=0;for(var s=0,l=n.length;s<l;s++)e=n[s],i=this.bttnAxisChangeTemplate.cloneNode(!0),r.selectMenu.appendChild(i),r.bttnsOption.push(new a(i,e)),i=this.bttnAxisChangeTemplate.cloneNode(!0),o.selectMenu.appendChild(i),o.bttnsOption.push(new a(i,e))},y.prototype.setCurrentVariable=function(t,e){return this[e].bttnCurrent.name!==t&&(this[e].bttnCurrent.update(t),this[e].bttnCurrent.name)},y.prototype.hideVariableOptions=function(t){this[t].selectMenu.style.display="none"},y.prototype.updatePointColor=function(t){for(var e=this.chart.points.length;e--;)this.chart.points[e].style.stroke=t;this.chart.points[0].parentNode.firstChild.style.stroke=t},t.exports=y},[233,127],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".data-view-graph .menu-axis-current{display:inline-block;white-space:nowrap;position:relative}.data-view-graph .menu-axis-current>.bttn-axis-current{display:inline-block;border:none;padding:0;margin:0;height:20px;min-width:20px;background:transparent;outline:0;vertical-align:middle;position:relative;overflow:hidden;line-height:9pt;cursor:pointer;color:#3c3c3c;text-align:center}.data-view-graph .menu-axis-current>.bttn-axis-current:hover{color:#fd7f7f;box-shadow:0 0 1px 1px grey}.data-view-graph .menu-axis-current>.select-axis{background:#eee;display:inline-block;min-width:100%;box-shadow:0 0 1px 1px #ccc;position:absolute;top:20px;left:0;padding:2px;z-index:10}.data-view-graph .dvg-axisY-title .menu-axis-current>.select-axis{width:50px;white-space:normal}.data-view-graph .dvg-axisY-title .menu-axis-current>.select-axis:before{content:'';position:absolute;width:0;height:0;border-width:10px;border-style:solid;border-color:transparent #d9d9d9 transparent transparent;top:calc(50% - 10px);left:-20px}.data-view-graph .dvg-axisX-title .menu-axis-current>.select-axis:before{content:'';position:absolute;width:0;height:0;border-width:10px;border-style:solid;border-color:#d9d9d9 transparent transparent;top:24px;left:calc(50% - 10px)}.data-view-graph .dvg-axisX-title .menu-axis-current>.select-axis>button{display:inline-block;width:20px;height:20px}.data-view-graph .menu-axis-current>.select-axis>button{padding:2px 8px 2px 4px;width:100%;display:list-item;margin:0;text-align:left;background:none;border:0;outline:0;color:#3c3c3c;cursor:pointer}.data-view-graph .dvg-axisY-title .menu-axis-current>.select-axis>button{display:inline-block;width:22px}.data-view-graph .menu-axis-current>.select-axis>button:hover{background:#a3b8cc}.data-view-graph .menu-axis-current>.bttn-axis-current>span.index-x:after,.data-view-graph .menu-axis-current>.bttn-axis-current>span.index-y:after,.data-view-graph .menu-axis-current>.select-axis>button>span.index-x:after,.data-view-graph .menu-axis-current>.select-axis>button>span.index-y:after{font-family:Arial;font-size:10px;position:relative;top:4px}.data-view-graph .menu-axis-current>.bttn-axis-current>span.index-x:after,.data-view-graph .menu-axis-current>.select-axis>button>span.index-x:after{content:'x'}.data-view-graph .menu-axis-current>.bttn-axis-current>span.index-y:after,.data-view-graph .menu-axis-current>.select-axis>button>span.index-y:after{content:'y'}.data-view-graph{position:relative;width:100%;height:100%;margin:0;padding:0;border:0}.data-view-graph>.dvg-chart{position:relative;display:inline-block;width:calc(100% - 30px);height:calc(100% - 30px - 30px);vertical-align:top}.data-view-graph>.dvg-header{font-family:Arial;font-size:1pc;font-weight:700;line-height:30px}.data-view-graph>.dvg-axisX-title,.data-view-graph>.dvg-header{position:relative;text-align:center;width:100%;height:30px}.data-view-graph>.dvg-axisY-title{position:relative;display:flex;align-items:center;justify-content:center;float:left;vertical-align:top;width:30px;height:calc(100% - 30px - 30px)}.data-view-graph>.dvg-coords{position:absolute;bottom:0;left:0;background:#ff0;height:1pc;font-family:Arial;font-size:14px;display:inline-block;padding:2px 4px;border:1px solid #000}.data-view-graph>.dvg-chart .ct-point.highlight{stroke-width:15px;opacity:.8;stroke:#4e6dff!important}",""])},function(t,e){t.exports='<div class="data-view-graph">\r\n <div class="dvg-header">Super Graph</div>\r\n <div class="dvg-axisY-title">\r\n <div class="menu-axis-current">\r\n <button class="bttn-axis-current"><span>w_w</span></button>\r\n <div class="select-axis">\r\n <button class="bttn-axis-select"><span></span></button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="dvg-chart"></div>\r\n <div class="dvg-axisX-title">\r\n <div class="menu-axis-current">\r\n <button class="bttn-axis-current"><span>w_w</span></button>\r\n <div class="select-axis">\r\n <button class="bttn-axis-select"><span></span></button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="dvg-coords"></div>\r\n</div>'},function(t,e,i){"use strict";var n=i(67),r="index-",o=function(t,e){this.name=e||"",this.node=t,this.isVisible=!0,this.label=this.node.querySelector("button > span"),this.type="",e&&this.update(e)};o.prototype.show=function(){this.isVisible||(this.isVisible=!0,this.node.style.display="")},o.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this.node.style.display="none")},o.prototype.update=function(t){var e=n(t);""!==this.type&&this.label.classList.remove(r+this.type),this.name=t,this.type=e.type,this.label.textContent=e.label,""!==this.type&&this.label.classList.add(r+this.type)},t.exports=o},function(t,e){"use strict";var i={t:0,x:0,y:0,r:0,"θ":0,v_x:1,v_y:1,v:1,p_x:1,p_y:1,Fx:1,Fy:1,p:1,F:1,K:1,"ω":1,"θp":1,a_x:2,a_y:2,a:2,"α":2,"θa":2,KE:1,PE:0,TE:1,xhead:0,x_tail:0,y_tail:0},n=function(t){return!isNaN(t)&&isFinite(t)},r=function(t,e){return n(t)&&n(e)?{x:t,y:e}:null},o=function(t,e){return e.axisX&&e.axisY?{axisX:e.axisX,axisY:e.axisY}:t.axisIndex.getAxisLabels()},s=function(t,e,i){var n=o(e,i);this.frame=t,this.object=e,this.allParams=e.params,this.data=e.frames,this.dataSet=[],this.isModel=e.isModel,this.axisX=n.axisX,this.axisY=n.axisY,this.start=e.start||0,this.end=e.end||e.frames.length,this.updateDataSet()};s.prototype.updateObject=function(t,e){var i=o(t,e);this.object=t,this.allParams=t.params,this.data=t.frames,this.isModel=t.isModel,this.axisX=i.axisX,this.axisY=i.axisY,this.start=t.start||0,this.end=t.end||t.frames.length,this.updateDataSet()},s.prototype.getStart=function(){return this.isModel?this.start:this.start+Math.max(i[this.axisX],i[this.axisY])},s.prototype.changeAxis=function(t,e){this[t]=e,this.updateDataSet()},s.prototype.updateDataSet=function(){this.dataSet=[];for(var t=0;t<this.data.length;t++)if(this.data[t]){var e=r(this.data[t][this.axisX],this.data[t][this.axisY]);e&&(e.index=t,this.dataSet.push(e))}},s.prototype.getHighlightIndex=function(t){for(var e=this.object.isModel?t:t-this.start,i=NaN,n=this.dataSet.length;n--;)if(this.dataSet[n].index===e){i=n;break}return i},s.prototype.getVideoFrame=function(t){return this.object.isModel?this.dataSet[t]?this.dataSet[t].index:NaN:this.dataSet[t]?this.dataSet[t].index+this.start:NaN},t.exports=s},function(t,e,i){"use strict";var n=i(33),r=(i(68),n.user.mouseup),o=n.user.mousedown,s=i(132),a=i(133),l=i(123),c=i(134),h=function(t,e){s(t,e),a(t,e),l(t,e),c(t,e)},d=function(t,e){n.on("FRAME_CHANGE_DATA:graph:"+t.frame,function(i){t.updateObject(i.object,i.data),e.createChart(t),e.updateSelectBoxes(t),h(t,e)}),e.createChart(t),l(t,e),window.addEventListener("resize",function(){e.chartUpdate(t),setTimeout(function(){e.chartUpdate(t),h(t,e)},15)},!1),n.on("VIDEO_CHANGE_FRAME",function(i){e.highlightPoint(t.getHighlightIndex(i))}),n.on("DATA_TOOL:closed",function(){e.chartUpdate(t),h(t,e)}),n.on("FRAME_UPDATE_DATA",function(i){t.object===i.object&&(t.updateDataSet(),e.chartUpdate(t,!0),e.updateAxisButton(t),h(t,e),e.highlightPoint(t.getHighlightIndex(i.frame)))}),n.on("UPDATE_DATA_ALL",function(i){t.updateDataSet(),e.chartUpdate(t,!0),e.updateAxisButton(t),h(t,e),e.highlightPoint(t.getHighlightIndex(i.frame))}),n.on("POINT_UPDATE:color",function(i){t.object===i.object&&e.updatePointColor(i.object.color.value)}),h(t,e),n.on("GRAPH_CHANGE_AXIS:"+t.frame,function(){s(t,e),c(t,e)});var i=function(t){e.hideVariableOptions(e.AXIS.axisX),e.hideVariableOptions(e.AXIS.axisY)};window.addEventListener(r,i,!1),window.addEventListener(o,i,!1)};t.exports=d},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=(n.user.mousedown,function(t){return function(){n.fire("VIDEO_CHANGE_FRAME:from-graph-point",t)}}),s=function(t,e,i){var n=t.getVideoFrame(i);e.addEventListener(r,o(n),!1)};t.exports=function(t,e){for(var i=(e[e.AXIS.axisX],e[e.AXIS.axisY],0),n=e.chart.points.length;i<n;i++)s(t,e.chart.points[i],i)}},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=n.user.mousedown,s=function(t,e,i,n){for(var r=t.length;r--;)a(t[r],e,i,n)},a=function(t,e,i,s){t.node.addEventListener(o,function(t){t.preventDefault(),t.stopPropagation()},!1),t.node.addEventListener(r,function(r){e.setCurrentVariable(t.name,s),i.changeAxis(s,t.name),e.createChart(i),n.fire("GRAPH_CHANGE_AXIS:"+i.frame)},!1)},l=function(t){var e=t[t.AXIS.axisX],i=e.bttnCurrent.node,n=e.selectMenu;return function(e){t.showVariableOptions(t.AXIS.axisX);var r=i.offsetWidth/2-n.offsetWidth/2;n.style.top=0-n.offsetHeight-10+"px",n.style.left=r+"px",e.preventDefault(),e.stopPropagation()}},c=function(t){var e=t[t.AXIS.axisY],i=e.bttnCurrent.node,n=e.selectMenu;return function(e){t.showVariableOptions(t.AXIS.axisY);var r=i.offsetHeight/2-n.offsetHeight/2;n.style.left=i.offsetWidth+6+"px",n.style.top=r+"px",e.preventDefault(),e.stopPropagation()}};t.exports=function(t,e){var i=e[e.AXIS.axisX],n=e[e.AXIS.axisY];i.bttnCurrent.node.addEventListener(r,l(e),!1),n.bttnCurrent.node.addEventListener(r,c(e),!1),s(i.bttnsOption,e,t,e.AXIS.axisX),s(n.bttnsOption,e,t,e.AXIS.axisY)}},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=350;t.exports=function(t,e){var i=Date.now(),s=function(e){var r=Date.now();r-i<=o&&n.fire("DATA_TOOL:show",t),i=r};e.chart.grid_paper.addEventListener(r,s,!1)}},function(t,e,i){"use strict";var n=i(136),r=i(145),o=i(146),s=function(t,e,i,s){this.model=new r(e,i,s),this.view=new n(t,this.model),new o(this.model,this.view)};t.exports=s},function(t,e,i){"use strict";var n=i(16);document.body||document.querySelector("body");i(137);var r=n(i(139)),o=i(140),s="highlight",a=function(t,e,i,n){if(isNaN(e)&&isNaN(i)){var r=e.match(/^(\w+)_(\w+)$/);r&&(e=r[1]+"<sub>"+r[2]+"</sub>"),t.innerHTML=e||""}else t.textContent=(isNaN(e)?"":e.toFixed(i))+(n?n:"")},l=function(t){for(;t.hasChildNodes();)t.removeChild(t.lastChild)},c=function(t){return t.scrollHeight-t.scrollTop===t.clientHeight},h=function(t,e){var i=t.selectedColumns.indexOf(e);return i===-1&&(i=t.allParams.indexOf(e)),i},d=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},p=function(){d(this.head),d(this.body)},u=function(t,e){this.node=r.querySelector("div").cloneNode(!0),this.holder=t,this.head=this.node.querySelector("thead"),this.body=this.node.querySelector("tbody"),this.cellNodes=[],this.rowNodes=[],this.columnHolder=document.querySelector(".tracker"),this.columnSelector=new o(this.columnHolder,e),this.drawTable(e),this.holder.appendChild(this.node),this.scrollStep=Math.ceil(this.holder.scrollHeight/this.rowNodes.length),this.halfHeight=this.holder.clientHeight/2};u.prototype.drawTable=function(t){this.createRow(t);for(var e=0;e<t.data.length;e++)t.data[e]&&this.createRow(t,e)},u.prototype.changeObject=function(t){this.cellNodes.length=0,this.rowNodes.length=0,l(this.head),l(this.body),p.call(this),this.drawTable(t),this.columnSelector.update(t)},u.prototype.createRow=function(t,e){for(var i,n,r,o=isNaN(e)?this.head:this.body,s=document.createElement("tr"),l=t.selectedColumns,c=!isNaN(e),h=[],d="",p=0;p<l.length;p++)n=document.createElement("td"),i=t.getPrecisionFor(l[p]),r=c?t.data[e][l[p]]:l[p],"θ"===l[p]&&(d="°"),a(n,r,c?i:NaN,d),h.push(n),s.appendChild(n);this.cellNodes.push(h),this.rowNodes.push(s),o.appendChild(s)},u.prototype.addColumn=function(t,e){var i,n,r,o,s=h(t,e),l=0;0===this.rowNodes.length&&this.rowNodes.push(document.createElement("tr")),i=document.createElement("td"),r=NaN,n=e,a(i,n,r),this.cellNodes[0].length===s?this.rowNodes[0].appendChild(i):this.rowNodes[0].insertBefore(i,this.cellNodes[0][s]),this.cellNodes[0].splice(s,0,i);for(var c=0,d=t.data.length;c<d;c++)t.data[c]?(o=c+1-l,n=t.data[c][e],i=document.createElement("td"),r=t.getPrecisionFor(e),a(i,n,r),this.cellNodes[o].length===s?this.rowNodes[o].appendChild(i):this.rowNodes[o].insertBefore(i,this.cellNodes[o][s]),this.cellNodes[o].splice(s,0,i)):l+=1},u.prototype.removeColumn=function(t,e){for(var i=h(t,e),n=this.rowNodes.length;n--;)this.cellNodes[n][i].remove(),this.cellNodes[n].splice(i,1)},u.prototype.highlightRow=function(t){for(var e=this.rowNodes.length;e--;){var i=this.rowNodes[e];e===t+1?i.classList.add(s):i.classList.remove(s)}c(this.holder)||(this.holder.scrollTop=this.scrollStep*t-this.halfHeight)},t.exports=u},[233,138],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".data-view-table{position:relative;width:100%;margin:0;padding:0;border:0;font:9pt Arial}.data-view-table>table{width:100%;height:100%;border-collapse:collapse}.data-view-table>table>thead{background:#d8d8d8}.data-view-table>table>thead td{border:1px solid #838383}.data-view-table>table>tbody td{border:1px solid #0e565a;text-align:right;padding:0 4px 0 0}.data-view-table>table>tbody tr.highlight{background:#73a0b9;color:#fff}",""])},function(t,e){t.exports='<div class="data-view-table">\r\n <table>\r\n <thead>\r\n </thead>\r\n <tbody>\r\n </tbody>\r\n </table>\r\n <div><!-- scroll --></div>\r\n</div>'},function(t,e,i){"use strict";var n=i(16),r=i(67);i(141);var o=n(i(143)),s=n(i(144)),a=310,l=160,c="Selected columns | ",h=function(t){var e,i,n,s;this.selectors.length=0;for(var a=0;a<t.allParams.length;a++)e=o.querySelector("label").cloneNode(!0),i=e.querySelector("input"),n=t.allParams[a],s=r(n),i.setAttribute("id","col"+a),i.setAttribute("value",n),i.nextSibling.textContent=s.label,i.nextSibling.classList.add("index-"+s.type),i.checked=t.selectedColumns.indexOf(n)!==-1,this.selectors.push({column:n,node:e,input:i}),this.selectorsPanelNode.appendChild(e)},d=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},p=function(t,e){this.node=s.querySelector("div").cloneNode(!0),this.node.style.width=a+"px",this.selectorsPanelNode=this.node.querySelector(".tcs-panel-selectors"),this.holder=t,this.selectors=[],this.width=a,this.height=l,this.header=this.node.querySelector(".tcs > .tcs-h"),this.bttnClose=this.node.querySelector(".tcs > .tcs-h > button"),this.title=this.node.querySelector(".tcs > .tcs-c > .tcs-panel"),h.call(this,e)};p.prototype.update=function(t){d(this.selectorsPanelNode),h.call(this,t)},p.prototype.show=function(t){this.holder.contains(this.node)||(this.holder.appendChild(this.node),this.title.setAttribute("name",c+t))},p.prototype.hide=function(){this.holder.contains(this.node)&&this.holder.removeChild(this.node)},t.exports=p},function(t,e,i){var n=i(142);"string"==typeof n&&(n=[[t.id,n,""]]);i(23)(n,{});n.locals&&(t.exports=n.locals)},function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".tracker>.tcs{margin:0;padding:0;position:absolute;z-index:3000;box-shadow:1px 1px 2px grey;background:#f0c869;font-family:Arial}.tracker>.tcs>.tcs-h{width:100%;height:30px;position:relative;cursor:move}.tracker>.tcs>.tcs-h>h1{margin:0;padding:0;font-size:1pc;font-weight:700;padding:8px 0}.tracker>.tcs>.tcs-h>button{padding:0;margin:0;border:0;outline:0;position:absolute;top:5px;right:10px;width:24px;height:24px;background:transparent;border-radius:24px;cursor:pointer}.tracker>.tcs>.tcs-h>button:before{font-family:Tracker Icons;content:'a';font-size:22px;font-weight:400}.tracker>.tcs>.tcs-h>button:hover:before{color:#cd5c5c}.tracker>.tcs>.tcs-c{background:#eee;margin:5px;width:calc(100% - 5px - 5px);height:calc(100% - 5px - 5px - 30px);overflow:hidden}.tracker>.tcs>.tcs-c .tcs-panel{margin:2px;padding:2px;padding-top:10px;border:1px solid grey;border-radius:4px;text-align:left;position:relative;font-size:14px}.tracker>.tcs>.tcs-c .tcs-panel.model{padding:5px;font-weight:700}.tracker>.tcs>.tcs-c .tcs-panel.model>span:last-child{float:right}.tracker>.tcs>.tcs-c .tcs-panel[name]{margin-top:10px;height:calc(100% - 30px)}.tracker>.tcs>.tcs-c .tcs-panel[name]:before{content:attr(name);background:#eee;text-align:left;display:inline-block;font-size:14px;position:absolute;top:-8px;left:10px;padding:0 4px;font-weight:700}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-selectors{width:100%;height:calc(100% - 26px - 2*5px);line-height:30px}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-selectors>label{margin-right:10px;width:3pc;display:inline-block;cursor:pointer;line-height:26px}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-selectors>label>input{cursor:pointer;outline:0;vertical-align:middle}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-selectors>label>span{line-height:1pc;vertical-align:middle}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-selectors>label>span.index-x:after,.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-selectors>label>span.index-y:after{font-family:Arial;font-size:10px;position:relative;top:4px}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-selectors>label>span.index-x:after{content:'x'}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-selectors>label>span.index-y:after{content:'y'}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-selectors>label:hover{background:#ccc;border-radius:6px}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-buttons{text-align:center}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-buttons>button{margin:5px;cursor:pointer;border:1px solid #7a8a99;height:26px;padding:2px 10px;outline:0;font-weight:700;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #e2ebf5),color-stop(34%, #ffffff),color-stop(100%, #bed3e7));background:-webkit-linear-gradient(top,#e2ebf5 0,#fff 34%,#bed3e7 100%);background:linear-gradient(to bottom,#e2ebf5 0,#fff 34%,#bed3e7 100%)}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-buttons>button:hover{box-shadow:inset 0 0 1px 2px #b8cfe5}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-buttons>button:disabled{cursor:default;background:#eee;border:1px solid #999;color:#999}.tracker>.tcs>.tcs-c .tcs-panel>.tcs-panel-buttons>button:disabled:hover{box-shadow:none}.tracker>.tcs>.tcs-c>.tcs-panel-cover{width:100%;height:calc(100% - 5px - 5px - 30px);padding-bottom:2px;margin-bottom:4px;overflow-x:hidden;overflow-y:auto;border-top:2px solid #7a8a99;border-bottom:2px solid #7a8a99}",""])},function(t,e){t.exports='<label><input type="checkbox" id="col1" value="x"><span></span></label>'},function(t,e){t.exports='<div class="tcs">\n <div class="tcs-h">\n <h1>Visible Table Columns</h1>\n <button></button>\n </div>\n <div class="tcs-c">\n <div class="tcs-panel" name="Selected columns">\n <div class="tcs-panel-selectors"></div>\n </div>\n </div>\n</div>'},function(t,e){"use strict";var i=3,n=3,r=function(t,e){if(e.columns&&e.columns.length>0){var i,r=[];for(i=e.columns.length;i--;)t.params.indexOf(e.columns[i])>-1&&r.push(e.columns[i]);return r.reverse()}return t.params.slice(0,Math.min(n,t.params.length))},o=function(t,e,i){this.frame=t,this.updateObject(e,i)};o.prototype.updateObject=function(t,e){this.object=t,this.data=t.frames,this.allParams=t.params,this.precisions=t.precisions||{},this.selectedColumns=r(t,e),this.start=t.start||0},o.prototype.addColumn=function(t){var e=this.allParams.indexOf(t);this.selectedColumns.indexOf(t)===-1&&e!==-1&&this.selectedColumns.splice(e,0,t)},o.prototype.removeColumn=function(t){var e=this.selectedColumns.indexOf(t);e!==-1&&this.selectedColumns.splice(e,1)},o.prototype.getPrecisionFor=function(t){return this.precisions[t]||this.precisions.default||i},o.prototype.getHighlightIndex=function(t){var e=this.object.isModel?t+1:t-this.start+1,i=NaN;if(e<this.data.length&&!this.data[e])return i;for(var n=0;n<e;n++)this.data[n]&&(isNaN(i)?i=0:i+=1);return i},t.exports=o},function(t,e,i){"use strict";var n=i(33),r=(n.user.mouseup,n.input.change,i(147)),o=i(148),s=function(t,e){var i=e.columnSelector;o(i),r(t,i),n.on("FRAME_CHANGE_DATA:table:"+t.frame,function(n){t.updateObject(n.object,n.data),e.changeObject(t),r(t,i)}),n.on("SHOW_DATA_PARAMETERS:table:"+t.frame,function(t){i.show(t.frameName)}),n.on("CHANGE_DATA_PARAMETERS:table:"+t.frame,function(i){i.isChecked?(t.addColumn(i.column),e.addColumn(t,i.column)):(e.removeColumn(t,i.column),t.removeColumn(i.column))}),n.on("VIDEO_CHANGE_FRAME",function(i){i>=t.start?e.highlightRow(t.getHighlightIndex(i)):e.highlightRow()}),n.on("FRAME_UPDATE_DATA",function(n){t.object===n.object&&(e.changeObject(t),r(t,i),e.highlightRow(t.getHighlightIndex(n.frame)))}),n.on("UPDATE_DATA_ALL",function(n){e.changeObject(t),r(t,i),e.highlightRow(t.getHighlightIndex(n.frame))})};t.exports=s},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=function(t,e){e.bttnClose.addEventListener(r,function(t){e.hide(),t.preventDefault(),t.stopPropagation()},!1);for(var i=e.selectors.length;i--;)e.selectors[i].node.addEventListener(n.input.change,function(e){n.fire("CHANGE_DATA_PARAMETERS:table:"+t.frame,{isChecked:e.input.checked,column:e.column})}.bind(e.selectors[i].node,e.selectors[i]))};t.exports=o},106,function(t,e,i){"use strict";var n="000000 000000 000000 003300 006600 009900 00CC00 00FF00 330000 333300 336600 339900 33CC00 33FF00 660000 663300 666600 669900 66CC00 66FF00 333333 000000 000033 003333 006633 009933 00CC33 00FF33 330033 333333 336633 339933 33CC33 33FF33 660033 663333 666633 669933 66CC33 66FF33 666666 000000 000066 003366 006666 009966 00CC66 00FF66 330066 333366 336666 339966 33CC66 33FF66 660066 663366 666666 669966 66CC66 66FF66 999999 000000 000099 003399 006699 009999 00CC99 00FF99 330099 333399 336699 339999 33CC99 33FF99 660099 663399 666699 669999 66CC99 66FF99 CCCCCC 000000 0000CC 0033CC 0066CC 0099CC 00CCCC 00FFCC 3300CC 3333CC 3366CC 3399CC 33CCCC 33FFCC 6600CC 6633CC 6666CC 6699CC 66CCCC 66FFCC FFFFFF 000000 0000FF 0033FF 0066FF 0099FF 00CCFF 00FFFF 3300FF 3333FF 3366FF 3399FF 33CCFF 33FFFF 6600FF 6633FF 6666FF 6699FF 66CCFF 66FFFF FF0000 000000 990000 993300 996600 999900 99CC00 99FF00 CC0000 CC3300 CC6600 CC9900 CCCC00 CCFF00 FF0000 FF3300 FF6600 FF9900 FFCC00 FFFF00 00FF00 000000 990033 993333 996633 999933 99CC33 99FF33 CC0033 CC3333 CC6633 CC9933 CCCC33 CCFF33 FF0033 FF3333 FF6633 FF9933 FFCC33 FFFF33 0000FF 000000 990066 993366 996666 999966 99CC66 99FF66 CC0066 CC3366 CC6666 CC9966 CCCC66 CCFF66 FF0066 FF3366 FF6666 FF9966 FFCC66 FFFF66 FFFF00 000000 990099 993399 996699 999999 99CC99 99FF99 CC0099 CC3399 CC6699 CC9999 CCCC99 CCFF99 FF0099 FF3399 FF6699 FF9999 FFCC99 FFFF99 00FFFF 000000 9900CC 9933CC 9966CC 9999CC 99CCCC 99FFCC CC00CC CC33CC CC66CC CC99CC CCCCCC CCFFCC FF00CC FF33CC FF66CC FF99CC FFCCCC FFFFCC FF00FF 000000 9900FF 9933FF 9966FF 9999FF 99CCFF 99FFFF CC00FF CC33FF CC66FF CC99FF CCCCFF CCFFFF FF00FF FF33FF FF66FF FF99FF FFCCFF FFFFFF";i(150);var r=i(16),o=i(33),s=r(i(152)),a=function(t,e){this.input.value=t,this.label.style.background=t,e.preventDefault(),e.stopPropagation()},l=function(t){t.bttn.node.appendChild(this.node),this.bttn=t.bttn,this.object=t.object,this.input.value=this.bttn.color,this.label.style.background=this.bttn.color},c=function(t,e){this.bttn.node.removeChild(this.node),this.bttn.setColor(t),this.object.color.value=t,o.fire("POINT_UPDATE:color",{color:t,object:this.object}),e.preventDefault(),e.stopPropagation()},h=function(t){var e=document.createElement("a");return e.style.background=t,e.href="#",e.bind(o.user.mouseover,a.bind(this,t),!1),e.bind(o.user.mouseup,c.bind(this,t),!1),e},d=function(){var t,e,i=document.createDocumentFragment(),r=n.split(" ");for(t=0,e=r.length;t<e;t++)i.appendChild(h.call(this,"#"+r[t]));this.grid.appendChild(i)},p=function(t){this.node=s.cloneNode(!0).querySelector("div.tcp"),this.holder=null,this.isVisible=!1,this.selectedCell=null,this.grid=this.node.querySelector(".tcp > .tcp-grid"),this.label=this.node.querySelector(".tcp > .tcp-result > label"),this.input=this.node.querySelector(".tcp > .tcp-result > input"),d.call(this),l.call(this,t)};t.exports=p},function(t,e,i){var n=i(151);"string"==typeof n&&(n=[[t.id,n,""]]);i(23)(n,{});n.locals&&(t.exports=n.locals)},function(t,e,i){e=t.exports=i(19)(),e.push([t.id,"button[widget=color-picker]{width:18px;height:18px;border:2px ridge #ccc;display:inline-block;outline:0;vertical-align:middle;padding:0;box-shadow:0 0 0 0 #c3c3c3 inset;position:relative;cursor:pointer}button[widget=color-picker]:before{content:'';display:block;width:7px;height:4px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-right:none;border-bottom:none;position:absolute;background:#ccc;bottom:0;right:0}button[widget=color-picker]:after{content:'';display:block;position:absolute;bottom:0;right:0;width:0;height:0;border-top:3px solid #000;border-left:3px solid transparent;border-right:3px solid transparent}.tcp{position:absolute;width:225px;height:161px;background:#616161;border:1px solid #616161;box-shadow:0 0 2px 2px #ccc;z-index:100;padding:2px}[widget-position=top-right]>.tcp{top:26px;right:-10px}[widget-position=top-right]>.tcp:before{content:'';display:block;width:0;height:0;border-bottom:8px solid #616161;border-left:8px solid transparent;border-right:8px solid transparent;right:8px;top:-9px;position:absolute}[widget-position=bottom-right]>.tcp{bottom:26px;right:-10px}[widget-position=bottom-right]>.tcp:before{content:'';display:block;width:0;height:0;border-top:8px solid #616161;border-left:8px solid transparent;border-right:8px solid transparent;right:8px;bottom:-9px;position:absolute}.tcp>.tcp-result{width:100%;height:22px;margin-bottom:2px}.tcp>.tcp-result>label{display:inline-block;height:18px;background:red}.tcp>.tcp-result>input,.tcp>.tcp-result>label{width:75pt;border:2px ridge #989898;vertical-align:middle}.tcp>.tcp-result>input{height:14px;padding:2px;margin-left:10px}.tcp>.tcp-grid{padding:3px;height:131px;width:220px;padding-right:2px;background:#000}.tcp>.tcp-grid>a{height:10px;width:10px;display:block;text-indent:-9999px;float:left;margin:0 1px 1px 0}.tcp>.tcp-grid>a:hover{box-shadow:0 0 0 1px #fff}",""])},function(t,e){t.exports='<div class="tcp">\n <div class="tcp-result">\n <label></label><input type="text" />\n </div>\n <div class="tcp-grid"></div>\n</div>'},function(t,e,i){"use strict";var n=i(154),r=i(164),o=function(t,e){this.view=new n(t,e),new r(this.view,e)};o.prototype.hide=function(){this.view.hide()},t.exports=o},function(t,e,i){"use strict";var n=i(16);i(155);var r=i(157),o=i(161),s=n(i(162)),a=i(163),l=360,c=530,h=function(t){return t[0]+t.substr(1).toLowerCase()},d=function(t){var e=this.node.querySelectorAll(".mb > .mb-c > .mb-panel.model > span");e[0].textContent=t.name,e[1].textContent="Frames: "+t.start+" – "+t.end,this.headerTitle.innerHTML="Model Builder - "+h(t.modelType)},p=function(t,e){this.node=s.querySelector("div").cloneNode(!0),this.node.style.height=c+"px",this.node.style.width=l+"px",this.holder=t,this.width=l,this.height=c;
var i=this.node.querySelector('.mb-panel[name="Parameters"]'),n=this.node.querySelector('.mb-panel[name="Initial Values"]'),h=this.node.querySelector('.mb-panel[name="Force Functions"]');this.bttnColor=new a(this.node.querySelector(".mb > .mb-c > .mb-panel.model > button")),this.bttnColor.setColor(e.color.value),this.state={parameters:new r(i),initialValues:new r(n),forceFunctions:new r(h)},this.controls={parameters:new o(i),forceFunctions:new o(h)},this.header=this.node.querySelector(".mb > .mb-h"),this.headerTitle=this.header.querySelector(".mb-h > h1"),this.bttnSaveAndClose=this.node.querySelector(".mb > .mb-c > .mb-panel.hint > button"),this.hint=this.node.querySelector(".mb > .mb-c > .mb-panel.hint"),this.warning=this.node.querySelector(".mb > .mb-c > .mb-panel.warning"),this.calcShatter=this.node.querySelector(".mb > .mb-calculating"),this.bttnCalc=this.node.querySelector(".mb > .mb-c > .mb-panel.hint > button"),h.setAttribute("name",e.functionsName),d.call(this,e),this.calcShatterHide(),this.warningHide(),this.show()};p.prototype.show=function(){this.holder.appendChild(this.node)},p.prototype.hide=function(){this.holder.removeChild(this.node)},p.prototype.warningShow=function(t,e){e&&e.classList.add("wrong"),this.warning.style.display="",this.hint.style.display="none"},p.prototype.warningHide=function(t,e){e&&e.classList.remove("wrong"),t&&!t.isModelStateValid()||(this.hint.style.display="",this.warning.style.display="none")},p.prototype.calcShatterShow=function(){this.calcShatter.style.display=""},p.prototype.calcShatterHide=function(){this.calcShatter.style.display="none"},t.exports=p},[233,156],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".tracker>.mb{margin:0;padding:0;position:absolute;z-index:3000;box-shadow:1px 1px 2px grey;background:#f0c869;font-family:Arial}.tracker>.mb>.mb-h{width:100%;height:30px;position:relative;cursor:move}.tracker>.mb>.mb-h>h1{margin:0;padding:0;font-size:1pc;font-weight:700;padding:8px 0}.tracker>.mb>.mb-h>button{padding:0;margin:0;border:0;outline:0;position:absolute;top:5px;right:10px;width:24px;height:24px;background:transparent;border-radius:24px;cursor:pointer}.tracker>.mb>.mb-h>button:before{font-family:Tracker Icons;content:'a';font-size:22px;font-weight:400}.tracker>.mb>.mb-h>button:hover:before{color:#cd5c5c}.tracker>.mb>.mb-c{background:#eee;margin:5px;width:calc(100% - 5px - 5px);height:calc(100% - 5px - 5px - 30px);overflow:hidden}.tracker>.mb>.mb-c .mb-panel{margin:2px;padding:2px;padding-top:10px;border:1px solid grey;border-radius:4px;text-align:left;position:relative;font-size:14px}.tracker>.mb>.mb-c .mb-panel.model{padding:5px;font-weight:700}.tracker>.mb>.mb-c .mb-panel.model>button[widget]{float:right;position:relative;top:-1px;vertical-align:top;margin-left:9pt}.tracker>.mb>.mb-c .mb-panel.model>span:last-child{float:right}.tracker>.mb>.mb-c .mb-panel[name]{margin-top:10px}.tracker>.mb>.mb-c .mb-panel[name]:before{content:attr(name);background:#eee;text-align:left;display:inline-block;font-size:14px;position:absolute;top:-8px;left:10px;padding:0 4px;font-weight:700}.tracker>.mb>.mb-c .mb-panel>.mb-panel-buttons{text-align:center}.tracker>.mb>.mb-c .mb-panel>.mb-panel-buttons>button{margin:4px;cursor:pointer;height:26px;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #e2ebf5),color-stop(34%, #ffffff),color-stop(100%, #bed3e7));background:-webkit-linear-gradient(top,#e2ebf5 0,#fff 34%,#bed3e7 100%);background:linear-gradient(to bottom,#e2ebf5 0,#fff 34%,#bed3e7 100%);border:1px solid #7a8a99;padding:2px 10px;outline:0;font-weight:700}.tracker>.mb>.mb-c .mb-panel>.mb-panel-buttons>button:hover{box-shadow:inset 0 0 1px 2px #b8cfe5}.tracker>.mb>.mb-c .mb-panel>.mb-panel-buttons>button:disabled{cursor:default;background:#eee;border:1px solid #999;color:#999}.tracker>.mb>.mb-c .mb-panel>.mb-panel-buttons>button:disabled:hover{box-shadow:none}.tracker>.mb>.mb-c>.mb-panel-cover{width:100%;height:405px;padding-bottom:2px;margin-bottom:4px;overflow-x:hidden;overflow-y:auto;border-top:2px solid #7a8a99;border-bottom:2px solid #7a8a99}.tracker>.mb>.mb-c>.mb-panel.hint,.tracker>.mb>.mb-c>.mb-panel.warning{position:relative;font-weight:400;padding:5px;font-size:9pt}.tracker>.mb>.mb-c>.mb-panel.hint>button,.tracker>.mb>.mb-c>.mb-panel.warning>button{position:absolute;top:4px;width:90pt;height:calc(100% - 8px);font-size:14px;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #e2ebf5),color-stop(34%, #ffffff),color-stop(100%, #bed3e7));background:-webkit-linear-gradient(top,#e2ebf5 0,#fff 34%,#bed3e7 100%);background:linear-gradient(to bottom,#e2ebf5 0,#fff 34%,#bed3e7 100%);border:1px solid #7a8a99;padding:2px 10px;outline:0;font-weight:700;border:2px solid #7a8a99;line-height:1pc;right:4px}.tracker>.mb>.mb-c>.mb-panel.hint>button:not(:disabled):hover,.tracker>.mb>.mb-c>.mb-panel.warning>button:not(:disabled):hover{cursor:pointer}.tracker>.mb>.mb-c>.mb-panel.warning{color:red}.tracker>.mb>.mb-c>.mb-panel.hint{color:#3600ff}",""])},function(t,e,i){"use strict";var n=i(16);i(158);var r=n(i(160)),o=function(t){var e=t.querySelector("tbody > tr");return e.parentNode.removeChild(e),e},s=function(t){var e=this.rowTemplate.cloneNode(!0),i=e.querySelectorAll("td");return t.nameIsEditable?e.name=l(t.name):e.name=a(t.name),e.expression=l(t.expression.replace(",",".")),i[0].appendChild(e.name),i[1].appendChild(e.expression),e},a=function(t){var e=document.createElement("label");return e.textContent=t,e},l=function(t){var e=document.createElement("input");return e.value=t||"",e.type="text",e},c=function(t){this.node=r.querySelector("table").cloneNode(!0),this.rowTemplate=o(this.node),this.body=this.node.querySelector("tbody"),t.appendChild(this.node)};c.prototype.createRecord=function(t){var e=s.call(this,t);return this.body.appendChild(e),e},c.prototype.removeRecord=function(t){this.body.removeChild(t)},t.exports=c},[234,159],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table{padding:0;border-spacing:0;border:1px solid grey;margin:2px;width:calc(100% - 2px - 2px)}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>thead{background:#ddd}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>thead>tr>td{text-align:center;border-bottom:1px solid #7a8a99}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>thead>tr>td:not(:first-child){border-left:1px solid #7a8a99}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>tbody>tr>td{width:50%;border-bottom:1px solid #999}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>tbody>tr.active{background:#0cf}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>tbody>tr>td>label{padding:0 2px}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>tbody>tr>td>input{outline:0;border:1px inset #a9a9a9;border-radius:0;padding:0 2px;width:calc(100% - 1px - 1px - 4px)}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>tbody>tr>td>input:disabled{background:#c3c3c3}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>tbody>tr>td>input.wrong{background:#f3b3b3}.tracker>.mb>.mb-c>.mb-panel-cover>.mb-panel>table>tbody>tr>td:not(:first-child){border-left:1px solid #999}.tracker>.mb>.mb-calculating{position:absolute;top:0;left:0;width:100%;height:100%;background:hsla(0,0%,39%,.7);display:flex;align-items:center;justify-content:center}.tracker>.mb>.mb-calculating>label{padding:10px;font-size:30px;font-weight:700;color:blue;text-shadow:0 0 10px #fff}",""])},102,function(t,e){"use strict";var i=function(t){this.add=t.querySelector('.mb-panel-buttons > button[name="add"]'),this.cut=t.querySelector('.mb-panel-buttons > button[name="cut"]'),this.copy=t.querySelector('.mb-panel-buttons > button[name="copy"]'),this.paste=t.querySelector('.mb-panel-buttons > button[name="paste"]'),this.remove=t.querySelector('.mb-panel-buttons > button[name="remove"]')};t.exports=i},function(t,e){t.exports='<div class="mb">\r\n <div class="mb-h">\r\n <h1>Model Builder</h1>\r\n </div>\r\n <div class="mb-c">\r\n <div class="mb-panel model">\r\n Model: <i></i><span></span>\r\n <button widget="color-picker" widget-position="top-right"></button>\r\n <span></span>\r\n </div>\r\n <div class="mb-panel-cover">\r\n <div class="mb-panel" name="Parameters">\r\n <div class="mb-panel-buttons">\r\n <button name="add">Add</button>\r\n <button name="remove">Remove</button>\r\n </div>\r\n </div>\r\n <div class="mb-panel" name="Initial Values">\r\n </div>\r\n <div class="mb-panel" name="Force Functions">\r\n <div class="mb-panel-buttons">\r\n <button name="add">Add</button>\r\n <button name="remove">Remove</button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="mb-panel warning">\r\n Red cells have invalid expressions.\r\n <br/>\r\n They will not be saved.\r\n </div>\r\n <div class="mb-panel hint">\r\n Click (Tap) cell to edit.\r\n <br/>\r\n See help for valid expressions.\r\n \r\n <button name="save-and-close">Save & Close</button>\r\n </div>\r\n </div>\r\n <div class="mb-calculating"><label>Calculating...</label></div>\r\n</div>'},function(t,e){"use strict";var i=function(){return"#"+Math.floor(16777215*Math.random()).toString(16)},n=function(t){var e=t.attr("widget-position").split("-");this.node=t,this.alpha=1,this.color="#fff",this.isTop="top"===e[0],this.isLeft="left"===e[1],this.isRight="right"===e[1],this.isBottom="bottom"===e[0]};n.prototype.setColor=function(t){null===t?this.color=i():this.color=t,this.node.style.background=this.color},n.prototype.bind=function(t,e,i){this.node.bind(t,e,i)},t.exports=n},function(t,e,i){"use strict";var n=i(33),r=(n.user.mousedown,n.user.mousemove,n.user.mouseup),o=i(165),s=i(148),a=function(t,e){t.bttnSaveAndClose.addEventListener(r,function(e){t.hide(),n.fire("MODEL_BUILDER:closed"),e.preventDefault(),e.stopPropagation()},!1),n.on("MODEL_BUILDER:hide",function(e){t.hide()}),t.bttnColor.node.addEventListener(r,function(i){n.fire("COLOR_PICKER:show",{bttn:t.bttnColor,object:e}),i.preventDefault(),i.stopPropagation()},!1),s(t),o(t,e,"parameters"),o(t,e,"initialValues"),o(t,e,"forceFunctions")};t.exports=a},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=n.input.change,s=n.input.focus,a=n.input.blur,l=function(t,e,i){c(t,e,i),h(t,e,i)},c=function(t,e,i){return t.expression.addEventListener(o,function(r){this.value=this.value.replace(/,/g,"."),n.fire("MODEL_BUILDER:update:expression:in:"+i,{row:t,record:e})},!1),!!e.nameIsEditable&&void t.name.addEventListener(o,function(r){n.fire("MODEL_BUILDER:update:name:in:"+i,{row:t,record:e})},!1)},h=function(t,e,i){var r=function(r){t.classList.add("active"),n.fire("MODEL_BUILDER:focus:row:in:"+i,{row:t,record:e})},o=function(e){t.classList.remove("active")};t.name.addEventListener(a,o,!1),t.name.addEventListener(s,r,!1),t.expression.addEventListener(a,o,!1),t.expression.addEventListener(s,r,!1)},d=function(t,e){t.cut&&(t.cut.disabled=e),t.copy&&(t.copy.disabled=e),t.paste&&(t.paste.disabled=e),t.remove&&(t.remove.disabled=e)},p=function(t,e,i){for(var o,s,a=t.controls[i],c=t.state[i],h=e.state[i],p=0,u=h.length;p<u;p++)l(c.createRecord(h[p]),h[p],i);return n.on("MODEL_BUILDER:update:expression:in:"+i,function(i){var r=i.row.expression,o=i.record.getValidExpression(r.value);return null!==o&&e.state.isExpressionValid(i.record.name,o)?(i.record.isValid=!0,i.record.setExpression(r.value,o),t.warningHide(e.state,r),t.calcShatterShow(),void setTimeout(function(){e.reCalcModel(),setTimeout(function(){t.calcShatterHide(),n.fire("MODEL_BUILDER:updated")},40)},40)):(i.record.isValid=!1,t.warningShow(e.state,r),!1)}),!!a&&(d(a,!0),a.add.addEventListener(r,function(t){var e=h.addRecord(),n=c.createRecord(e);l(n,e,i),t.preventDefault(),t.stopPropagation()},!1),a.remove.addEventListener(r,function(t){c.removeRecord(o),h.removeRecord(s),d(a,!0),t.preventDefault(),t.stopPropagation()},!1),n.on("MODEL_BUILDER:update:name:in:"+i,function(i){var n=i.row.name,r=n.value;i.record.isNameValid(r)&&e.state.isNameNotUsed(r)?(i.record.isValid=!0,i.record.setName(r),t.warningHide(e.state,n)):(i.record.isValid=!1,t.warningShow(e.state,n))}),void n.on("MODEL_BUILDER:focus:row:in:"+i,function(t){o=t.row,s=t.record,t.record.nameIsEditable?d(a,!1):d(a,!0)}))};t.exports=p},function(t,e,i){"use strict";var n=i(167),r=i(171),o=function(t){this.view=new n(t),new r(this.view)};t.exports=o},function(t,e,i){"use strict";var n=i(16);i(168);var r=n(i(170)),o=function(t){this.node=r.querySelector("div").cloneNode(!0),this.holder=t,this.header=this.node.querySelector(".help > .help-h"),this.bttnClose=this.node.querySelector(".help > .help-h > button.bttn-close"),this.show()};o.prototype.show=function(){this.holder.appendChild(this.node)},o.prototype.hide=function(){this.holder.removeChild(this.node)},t.exports=o},[233,169],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".tracker>.help{margin:0;padding:0;position:absolute;z-index:3000;box-shadow:1px 1px 2px grey;background:#f0c869;font-family:Arial;width:100%;height:calc(100% - 34px)}.tracker>.help>.help-h{width:100%;height:30px;position:relative}.tracker>.help>.help-h>h1{margin:0;padding:0;font-size:1pc;font-weight:700;padding:8px 0}.tracker>.help>.help-h>button{padding:0;margin:0;border:0;outline:0;position:absolute;top:5px;right:10px;width:24px;height:24px;background:transparent;border-radius:24px;cursor:pointer}.tracker>.help>.help-h>button:before{font-family:Tracker Icons;content:'a';font-size:22px;font-weight:400}.tracker>.help>.help-h>button:hover:before{color:#cd5c5c}.tracker>.help>.help-c{background:#eee;margin:5px;width:calc(100% - 5px - 5px);height:calc(100% - 5px - 5px - 30px)}#help-box{height:calc(100% - 2px - 2px);width:calc(100% - 2px - 2px);border:2px outset #ccc}#help-box>iframe{border:0}",""])},function(t,e){t.exports='<div class="help">\n <div class="help-h">\n <h1>Help</h1>\n <button class="bttn-close"></button>\n </div>\n <div class="help-c">\n <div id="help-box">\n <iframe src="../../tracker/help.html" width="100%" height="100%"></iframe>\n </div>\n </div>\n</div>\n'},function(t,e,i){"use strict";var n=i(33),r=(n.user.mousedown,n.user.mousemove,n.user.mouseup),o=function(t){t.bttnClose.addEventListener(r,function(e){t.hide(),n.fire("HELP:closed"),e.preventDefault(),e.stopPropagation()})};t.exports=o},function(t,e,i){"use strict";var n=i(173),r=i(178),o=function(t,e){this.view=new n(t,e),new r(this.view,e)};t.exports=o},function(t,e,i){"use strict";var n=i(16);i(174);var r=n(i(176)),o=i(177),s=i(163),a=250,l=function(t){for(var e,i=t.objects.length;i--;)"point"===t.objects[i].type&&(t.objects[i].isCenterOfMass||(e=new o(t.objects[i]),this.points.push(e),this.pointsPanel.appendChild(e.node)))},c=function(){for(var t=this.points.length;t--;)if(this.points[t].isChecked)return!0;return!1},h=function(){this.pointNameIsValid===!0&&(this.pointNameIsValid=!1,this.pointNameInput.classList.add("wrong"))},d=function(){this.pointNameIsValid===!1&&(this.pointNameIsValid=!0,this.pointNameInput.classList.remove("wrong"))},p=function(t,e){this.node=r.querySelector("div").cloneNode(!0),this.node.style.width=a+"px",this.holder=t,this.width=a,this.isVisible=!1,this.header=this.node.querySelector(".ccom > .ccom-h"),this.bttnClose=this.node.querySelector(".ccom > .ccom-h > button"),this.bttnCreate=this.node.querySelector(".ccom > .ccom-c > button"),this.pointsPanel=this.node.querySelector(".ccom > .ccom-c > .ccom-panel.points"),this.bttnColor=new s(this.node.querySelector(".ccom > .ccom-c > .ccom-panel > button")),this.points=[],this.pointNameIsValid=!0,this.pointNameInput=this.node.querySelector(".ccom > .ccom-c > .ccom-panel > input"),this.pointNameWarning=this.node.querySelector(".ccom > .ccom-c > .ccom-panel > .warning"),l.call(this,e),this.show(),this.bttnCreateUpdate(),this.bttnColor.setColor(null)};p.prototype.show=function(){this.isVisible||(this.isVisible=!0,this.holder.appendChild(this.node))},p.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this.holder.removeChild(this.node))},p.prototype.pointNameIsGood=function(){d.call(this),this.pointNameWarning.textContent=""},p.prototype.pointNameTooSmall=function(){h.call(this),this.pointNameWarning.textContent="Name must be at least 2 characters"},p.prototype.pointNameExisted=function(){h.call(this),this.pointNameWarning.textContent="Name already exists, choose another one"},p.prototype.bttnCreateUpdate=function(){this.pointNameIsValid&&c.call(this)?this.bttnCreate.removeAttribute("disabled"):this.bttnCreate.setAttribute("disabled","disabled")},p.prototype.getPointName=function(){return this.pointNameInput.value},p.prototype.getSelectedPoints=function(){var t,e=[];for(t=this.points.length;t--;)this.points[t].isChecked&&e.push(this.points[t].name);return e},t.exports=p},[233,175],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".tracker>.ccom{margin:0;padding:0;position:absolute;z-index:3000;box-shadow:1px 1px 2px grey;background:#f0c869;font-family:Arial}.tracker>.ccom>.ccom-h{width:100%;height:30px;position:relative;cursor:move}.tracker>.ccom>.ccom-h>h1{margin:0;padding:0;font-size:1pc;font-weight:700;padding:8px 0}.tracker>.ccom>.ccom-h>button{padding:0;margin:0;border:0;outline:0;position:absolute;top:5px;right:10px;width:24px;height:24px;background:transparent;border-radius:24px;cursor:pointer}.tracker>.ccom>.ccom-h>button:before{font-family:Tracker Icons;content:'a';font-size:22px;font-weight:400}.tracker>.ccom>.ccom-h button:hover:before{color:#cd5c5c}.tracker>.ccom>.ccom-c{background:#eee;margin:5px;width:calc(100% - 5px - 5px);height:calc(100% - 5px - 5px - 30px);overflow:hidden;min-height:220px}.tracker>.ccom>.ccom-c .ccom-panel{margin:2px;padding:2px;margin-top:10px;padding-top:10px;border:1px solid grey;border-radius:4px;text-align:left;font-size:9pt;position:relative}.tracker>.ccom>.ccom-c .ccom-panel:before{content:attr(name);position:absolute;font-size:14px;padding:2px 4px;background:#eee;top:-10px;left:10px;border-radius:4px}.tracker>.ccom>.ccom-c .ccom-panel>input{outline:0;margin-left:10px;font-size:14px;padding:0 4px;width:150px}.tracker>.ccom>.ccom-c .ccom-panel>input.wrong{background:rgba(255,0,0,.3)}.tracker>.ccom>.ccom-c .ccom-panel>button{float:right;margin-right:5px}.tracker>.ccom>.ccom-c .ccom-panel>.warning{margin-top:2px;color:red}.tracker>.ccom>.ccom-c .ccom-panel.points>label{display:block;position:relative;padding-left:14px;width:calc(100% - 14px);height:20px;line-height:20px}.tracker>.ccom>.ccom-c .ccom-panel.points>label.checked:before{font-size:1pc;content:'\\2713';position:absolute;left:5px}.tracker>.ccom>.ccom-c .ccom-panel.points>label:not(.disabled):hover{background:#c3c3c3;cursor:pointer}.tracker>.ccom>.ccom-c .ccom-panel.points>label>i{vertical-align:middle;display:inline-block;width:20px;text-align:center}.tracker>.ccom>.ccom-c .ccom-panel.points>label>i:before{font-family:Panel Controls Icon;font-size:14px;font-style:normal;position:relative}.tracker>.ccom>.ccom-c .ccom-panel.points>label>i[element=point]:before{content:'g';top:1px}.tracker>.ccom>.ccom-c .ccom-panel.points>label>i[element=vector]:before{content:'f';top:1px}.tracker>.ccom>.ccom-c>button{outline:0;background:none;border:0;margin:2px;font-size:1pc;border:1px solid #c3c3c3}.tracker>.ccom>.ccom-c>button:disabled{opacity:.5}.tracker>.ccom>.ccom-c>button:not(:disabled):hover{cursor:pointer;box-shadow:0 0 2px 2px #c3c3c3}",""])},function(t,e){t.exports='<div class="ccom">\n <div class="ccom-h">\n <h1>Create Center of Mass</h1>\n <button></button>\n </div>\n <div class="ccom-c">\n <div class="ccom-panel" name="Name">\n <input type="text" />\n <button widget="color-picker" widget-position="top-right"></button>\n <div class="warning"></div>\n </div>\n <div class="ccom-panel points" name="Select used points"></div>\n <button>Create</button>\n </div>\n</div>'},function(t,e,i){"use strict";var n=i(16),r=n("<label><i></i><span></span></label>"),o=function(t){this.node=r.querySelector("label").cloneNode(!0),this.name=t.name;var e=this.node.querySelector("i"),i=this.node.querySelector("span");this.isChecked=!1,i.textContent=this.name,e.style.color=t.color.value,e.setAttribute("element",t.type)};o.prototype.toggle=function(){this.isChecked=!this.isChecked,this.isChecked?this.node.classList.add("checked"):this.node.classList.remove("checked")},t.exports=o},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=i(179),s=i(180),a=i(181),l=function(t,e){t.bttnCreate.addEventListener(r,function(e){t.hide(),n.fire("CENTER_OF_MASS_BUILDER:create",{name:t.getPointName(),color:t.bttnColor.color,points:t.getSelectedPoints()}),e.preventDefault(),e.stopPropagation()},!1),t.bttnClose.addEventListener(r,function(e){t.hide(),n.fire("CENTER_OF_MASS_BUILDER:closed"),e.preventDefault(),e.stopPropagation()},!1),n.on("CENTER_OF_MASS_BUILDER:hide",function(e){t.hide()}),t.bttnColor.node.addEventListener(r,function(e){n.fire("COLOR_PICKER:show",{bttn:t.bttnColor,object:{color:{value:t.bttnColor.color}}}),e.preventDefault(),e.stopPropagation()},!1),o(t),s(t,e),a(t,e)};t.exports=l},function(t,e,i){"use strict";var n=i(33),r=n.user.mousedown,o=n.user.mousemove,s=n.user.mouseup,a=function(t){var e,i,a,l,c,h,d={x:0,y:0},p=!1,u=0,f=0,A=function(e){t.node.style.left=e.x+"px",t.node.style.top=e.y+"px"},b=function(t){return c=n.user.position(t),c.x=d.x+c.x-l.x,c.y=d.y+c.y-l.y,c.x=Math.min(e,Math.max(u,c.x)),c.y=Math.min(i,Math.max(f,c.y)),c},m=function(r){a=t.holder.getBoundingClientRect(),h=t.node.getBoundingClientRect(),l=n.user.position(r),i=a.height-h.height,e=a.width-h.width,p=!0,r.preventDefault(),r.stopPropagation()},x=function(t){return!!p&&(A(b(t)),t.preventDefault(),void t.stopPropagation())},g=function(t){return!!p&&(d=c,void(p=!1))};t.header.addEventListener(r,m,!1),window.addEventListener(o,x,!1),window.addEventListener(s,g,!1),a=t.holder.getBoundingClientRect(),h=t.node.getBoundingClientRect(),d.x=a.width/2-h.width/2,d.y=a.height/2-h.height/2,A(d)};t.exports=a},function(t,e){"use strict";var i="cm",n=function(t,e){for(var n=i,r=0,o=e.objects.find(n);o;)n=i+(r+=1),o=e.objects.find(n);t.pointNameInput.value=n},r=function(t,e){n(t,e),t.pointNameInput.oninput=function(i){var n=!0;this.value.length<2&&(n=!1,t.pointNameTooSmall()),e.objects.find(this.value)&&(n=!1,t.pointNameExisted()),n===!0&&t.pointNameIsGood(),t.bttnCreateUpdate()}};t.exports=r},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=function(t,e){t.node.addEventListener(r,function(){t.toggle(),e.bttnCreateUpdate()},!1)},s=function(t,e){for(var i=t.points.length;i--;)o(t.points[i],t)};t.exports=s},function(t,e,i){"use strict";var n=i(183),r=i(187),o=function(t){this.view=new n(t),new r(this.view)};t.exports=o},function(t,e,i){"use strict";var n=i(16);i(184);var r=n(i(186)),o=function(t){this.node=r.querySelector("div").cloneNode(!0),this.holder=t,this.title=this.node.querySelector(".pa > .pa-w > .pa-h"),this.content=this.node.querySelector(".pa > .pa-w > .pa-c"),this.bttnClose=this.node.querySelector(".pa > .pa-w > .pa-b > button"),this.isVisible=!1};o.prototype.show=function(t){this.isVisible||(this.title.textContent=t.title,this.content.innerHTML=t.content,this.holder.appendChild(this.node),this.isVisible=!0)},o.prototype.hide=function(){this.isVisible&&(this.holder.removeChild(this.node),this.title.textContent="",this.content.innerHTML="",this.isVisible=!1)},t.exports=o},[233,185],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".pa{margin:0;padding:0;position:absolute;background:hsla(0,0%,100%,0);z-index:5000;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.pa>.pa-w{width:25pc;min-height:75pt;background:#f5f5f5;border-radius:4px;border:1px solid #3c3c3c;box-shadow:0 0 40px 2px #3c3c3c}.pa>.pa-w>.pa-h{width:100%;height:22px;text-align:center;font-family:Arial;font-size:1pc;padding-top:4px;border-top-left-radius:4px;border-top-right-radius:4px;font-weight:700;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #ffffff),color-stop(100%, #dddddd));background:-webkit-linear-gradient(top,#fff 0,#ddd 100%);background:linear-gradient(to bottom,#fff 0,#ddd 100%)}.pa>.pa-w>.pa-c{width:100%;padding:4px 8px;text-align:left}.pa>.pa-w>.pa-b{width:100%;height:24px;text-align:center;padding:4px 0}.pa>.pa-w>.pa-b>button{outline:0;font-size:14px;cursor:pointer;border-radius:4px;border:1px solid #c3c3c3;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #ffffff),color-stop(100%, #dddddd));background:-webkit-linear-gradient(top,#fff 0,#ddd 100%);background:linear-gradient(to bottom,#fff 0,#ddd 100%)}",""])},function(t,e){t.exports='<div class="pa">\n <div class="pa-w">\n <div class="pa-h"></div>\n <div class="pa-c"></div>\n <div class="pa-b">\n <button>Close</button>\n </div>\n </div>\n</div>'},function(t,e){"use strict";var i=function(t){t.bttnClose.addEventListener("click",t.hide.bind(t))};t.exports=i},function(t,e,i){"use strict";var n=(i(16),document.body||document.querySelector("body"),i(189)),r=i(209),o=i(213),s=function(t,e){this.model=new r(e),this.view=new n(t,this.model),new o(this.model,this.view)};t.exports=s},function(t,e,i){"use strict";var n=i(16),r=(document.body||document.querySelector("body"),"has-shift-button");i(190);var o=n(i(194)),s=i(195),a={point:i(196),vector:i(199)},l=i(201),c=i(203),h=i(205),d=i(207),p=function(t){var e=Math.round(100*t.playRate);this.playRateValue.textContent=e+"%",t.isPlayRateMin()?(this.bttnPlayRatePrev.disabled=!0,this.bttnPlayRateNext.disabled=!1):t.isPlayRateMax()?(this.bttnPlayRatePrev.disabled=!1,this.bttnPlayRateNext.disabled=!0):(this.bttnPlayRatePrev.disabled=!1,this.bttnPlayRateNext.disabled=!1)},u=function(t){this.currentState.textContent=t.getCurrentState()},f=function(t){t.isPlaying?(this.bttnPlayStart.style.display="none",this.bttnPlayPause.style.display=""):(this.bttnPlayStart.style.display="",this.bttnPlayPause.style.display="none")},A=function(t){t.isInFirstFrame()?(this.bttnSkipPrev.disabled=!0,this.bttnSkipNext.disabled=!1,this.bttnPlayBack.disabled=!0):t.isInLastFrame()?(this.bttnSkipPrev.disabled=!1,this.bttnSkipNext.disabled=!0,this.bttnPlayBack.disabled=!1):(this.bttnSkipPrev.disabled=!1,this.bttnSkipNext.disabled=!1,this.bttnPlayBack.disabled=!1)},b=function(t,e){this.seekBar.min=0,this.seekBar.max=e,this.seekBar.step=1,this.seekBar.value=t},m=function(t){this.seekBar.value=t.frameCurrent},x=function(t){var e=t.width.toFixed(1)+"px",i=t.height.toFixed(1)+"px";this.videoFrame.style.width=e,this.videoFrame.style.height=i,this.objectsHolder.style.width=e,this.objectsHolder.style.height=i},g=function(t){for(var e,i=parseFloat(t.width.toFixed(1)),n=parseFloat(t.height.toFixed(1)),r=0,o=t.frames.length;r<o;r++)e=new Image,e.src=t.frames[r],e.width=i,e.height=n,this.frames.push(e)},v=function(t){this.currentFrame&&this.videoFrame.removeChild(this.currentFrame),this.currentFrame=this.frames[t.frameCurrent],this.videoFrame.appendChild(this.currentFrame)},y=function(t){for(var e=t.magnification,i=t.frameCurrent,n=this.objects.length;n--;)this.objects[n].setPositionAtFrame(i,e)},w=function(t){for(var e=0,i=t.length;e<i;e++)this.objects.push(new a[t[e].type](this.objectsHolder,t[e]))},k=function(t,e){this.node=o.querySelector("div").cloneNode(!0),this.holder=t,this.currentState=this.node.querySelector(".video-controls > .current-state > span"),this.displayStateMenu=new s(this.node.querySelector(".video-controls > .current-state")),this.videoWrapper=this.node.querySelector(".video > .video-holder"),this.bttnPlayRatePrev=this.node.querySelector(".video-controls > .play-rate > .play-rate-prev"),this.playRateValue=this.node.querySelector(".video-controls > .play-rate > .play-rate-value"),this.bttnPlayRateNext=this.node.querySelector(".video-controls > .play-rate > .play-rate-next"),this.bttnPlayStart=this.node.querySelector(".video-controls > .play-start"),this.bttnPlayPause=this.node.querySelector(".video-controls > .play-pause"),this.bttnPlayBack=this.node.querySelector(".video-controls > .play-back"),this.bttnSkipPrev=this.node.querySelector(".video-controls > .skip-prev"),this.bttnSkipNext=this.node.querySelector(".video-controls > .skip-next"),this.bttnPlayLoop=this.node.querySelector(".video-controls > .play-loop"),this.bttnTouchShift=this.node.querySelector(".video-controls > .touch-shift"),this.seekBar=this.node.querySelector(".video-controls > .seek-bar"),b.call(this,e.frameCurrent,e.frameTotal-1),this.videoFrame=this.node.querySelector(".video > .video-holder > .video-frame"),this.currentFrame=null,this.frames=[],this.objectsHolder=this.videoFrame.querySelector("svg"),this.objects=[],this.videoTools=this.node.querySelector(".video > .video-holder > .video-tools"),this.point=new h(this.objectsHolder),this.axis=new l(this.videoTools,this.videoFrame,e),this.tape=new c(this.videoTools,this.videoFrame,e.tape),this.protractor=new d(this.videoTools,this.videoFrame,e.protractor),x.call(this,e),g.call(this,e),w.call(this,e.objects),this.shiftButtonVisible(!1),this.displayStateMenu.update(e)};k.prototype.draw=function(){this.holder.appendChild(this.node)},k.prototype.update=function(t){this.updateLoopButton(t),m.call(this,t),p.call(this,t),u.call(this,t),v.call(this,t),A.call(this,t),f.call(this,t),y.call(this,t)},k.prototype.updateObjects=function(t){y.call(this,t)},k.prototype.updateButtons=function(t){f.call(this,t)},k.prototype.updatePlayRate=function(t){p.call(this,t)},k.prototype.updateLoopButton=function(t){t.frameLoop===!0?(this.bttnPlayLoop.classList.remove("loop-off"),this.bttnPlayLoop.classList.add("loop-on")):(this.bttnPlayLoop.classList.remove("loop-on"),this.bttnPlayLoop.classList.add("loop-off"))},k.prototype.updateVideoToolsHolder=function(){this.videoTools.style.width=this.videoFrame.style.width,this.videoTools.style.height=this.videoFrame.style.height,this.videoTools.style.left=this.videoFrame.offsetLeft+"px"},k.prototype.shiftButtonVisible=function(t){this.bttnTouchShift.style.display=t?"":"none",t?this.seekBar.classList.add(r):this.seekBar.classList.remove(r)},k.prototype.updateDisplayState=function(t){u.call(this,t)},k.prototype.addNewCreatedObject=function(t){this.objects.push(new a[t.type](this.objectsHolder,t))},k.prototype.videoToolsDisable=function(){this.videoTools.style.pointerEvents="none"},k.prototype.videoToolsEnable=function(){this.videoTools.style.pointerEvents=""},k.prototype.updatePointColor=function(t){for(var e=this.objects.length;e--;)this.objects[e].name===t.name&&this.objects[e].updateColor(t.color.value)},t.exports=k},function(t,e,i){var n=i(191);"string"==typeof n&&(n=[[t.id,n,""]]);i(23)(n,{});n.locals&&(t.exports=n.locals)},function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".video>.video-controls>.seek-bar{-webkit-appearance:none;margin:10px 0;width:100%}.video>.video-controls>.seek-bar:focus{outline:0}.video>.video-controls>.seek-bar::-webkit-slider-runnable-track{width:100%;height:10px;cursor:pointer;animate:.2s;background:#ccc;border-radius:5px;border:1px solid #666}.video>.video-controls>.seek-bar::-webkit-slider-thumb{border:1px solid #fff;height:20px;width:20px;border-radius:20px;background:url("+i(192)+");cursor:pointer;-webkit-appearance:none;margin-top:-6px}.video>.video-controls>.seek-bar:focus::-webkit-slider-runnable-track{background:#d9d9d9}.video>.video-controls>.seek-bar::-moz-range-track{width:100%;height:10px;cursor:pointer;animate:.2s;background:#ccc;border-radius:5px;border:1px solid #666}.video>.video-controls>.seek-bar::-moz-range-thumb{border:1px solid #fff;height:20px;width:20px;border-radius:20px;background:url("+i(192)+");cursor:pointer}.video>.video-controls>.seek-bar::-ms-track{width:100%;height:10px;cursor:pointer;animate:.2s;background:transparent;border-color:transparent;border-width:20px 0;color:transparent}.video>.video-controls>.seek-bar::-ms-fill-lower{background:#bfbfbf;border:1px solid #666;border-radius:10px}.video>.video-controls>.seek-bar::-ms-fill-upper{background:#ccc;border:1px solid #666;border-radius:10px}.video>.video-controls>.seek-bar::-ms-thumb{border:1px solid #fff;height:20px;width:20px;border-radius:20px;background:url("+i(192)+");cursor:pointer}.video>.video-controls>.seek-bar:focus::-ms-fill-lower{background:#ccc}.video>.video-controls>.seek-bar:focus::-ms-fill-upper{background:#d9d9d9}@font-face{font-family:Video Controls Icon;src:url("+i(193)+") format('woff')}.video{height:100%;padding:0;margin:0;border:0;text-align:left}.video .video-holder{height:calc(100% - 34px);text-align:center;position:relative}.video .video-holder .video-frame{border:0;margin:0;padding:0;display:inline-block;position:relative;overflow:hidden}.video .video-holder .video-frame>svg{pointer-events:none;overflow:hidden}.video .video-holder .video-tools{position:absolute;background:none;left:0;top:0;overflow:hidden}.video .video-holder .video-frame>img{border:0;margin:0;padding:0}.video .video-holder .video-frame>.video-objects{position:absolute;z-index:2000;left:0;top:0}.video .video-holder .video-frame>.video-objects .video-object{cursor:pointer}.video .video-controls{position:absolute;bottom:0;left:0;width:100%;height:34px;background:#969696}.video>.video-controls>.play-rate{display:inline-block}.video>.video-controls>.play-rate>.play-rate-value{padding-top:10px;height:24px;font-family:Arial;font-size:14px;width:40px;text-align:center;display:inline-block;color:#fff;vertical-align:bottom}.video>.video-controls>.seek-bar{width:calc(100% - 285px);display:inline-block;height:34px;vertical-align:bottom;margin:0;background:none;padding:0}.video>.video-controls>.seek-bar.has-shift-button{width:calc(100% - 353px)}.video>.video-controls button{width:26px;height:26px;border:none;outline:0;margin:4px;padding:0;cursor:pointer;vertical-align:bottom;font-family:Video Controls Icon;font-size:1pc;background:none}.video>.video-controls>.play-rate>button{margin-left:0;margin-right:0;width:24px}.video>.video-controls button:not(:disabled):hover:before{color:#fddd7f}.video>.video-controls button:before{position:relative;top:4px;color:#fff;font-size:20px}.video>.video-controls button:disabled{cursor:default}.video>.video-controls button:disabled:before{color:#ccc}.video>.video-controls>.play-back:before{content:'c'}.video>.video-controls>.play-start:before{content:'b'}.video>.video-controls>.play-pause:before{content:'a'}.video>.video-controls>.skip-prev:before{content:'g'}.video>.video-controls>.skip-next:before{content:'e'}.video>.video-controls>.play-loop:before{content:'f'}.video>.video-controls>.play-loop.loop-on:before{color:blue}.video>.video-controls>.play-rate>.play-rate-prev:before{content:'h'}.video>.video-controls>.play-rate>.play-rate-next:before{content:'i'}.video>.video-controls>.touch-shift{border:2px solid #fff;vertical-align:top;width:60px}.video>.video-controls>.touch-shift:hover{border:2px solid #fddd7f}.video>.video-controls>.touch-shift.active,.video>.video-controls>.touch-shift:active{border:2px solid #7cfc00}.video>.video-controls>.touch-shift.active:before,.video>.video-controls>.touch-shift:hover.active:before,.video>.video-controls>.touch-shift:hover:active:before{color:#7cfc00}.video>.video-controls>.touch-shift:before{content:'SHIFT';font-family:Arial;font-size:14px;position:relative;top:-1px;font-weight:700}.video>.video-controls>.current-state{margin:4px;height:26px;font-family:Arial;font-size:14px;width:50px;text-align:center;display:inline-block;font-weight:700;color:#fff;vertical-align:bottom}.video>.video-controls>.current-state>.menu-choose-display{position:absolute;bottom:34px;left:25px;text-align:left;width:70px;padding:2px 4px;background:#eee;font-weight:400;color:#000;box-shadow:1px 1px 2px grey;z-index:5000}.video>.video-controls>.current-state>.menu-choose-display>label{display:inline-block;font-size:9pt;width:100%;padding:2px 0}.video>.video-controls>.current-state>.menu-choose-display>label:hover:not(.selected){background:#a3b8cc;cursor:pointer}.video>.video-controls>.current-state>.menu-choose-display>label:before{font-family:Video Controls Icon;font-size:1pc;display:inline-block;content:'';width:20px}.video>.video-controls>.current-state>.menu-choose-display>label.selected:before{position:relative;top:3px;content:'j'}",""]);
},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwOCAxMDgiPg0KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLCAtMikiPg0KICAgIDxwYXRoIGZpbGw9IiNkYmRiZGQiIGQ9Ik0xMTAsNTYuMDAxYzAtMTUuMTUyLTYuMjU5LTI4LjgyNy0xNi4zMTEtMzguNjMzYy0xLjQxMi0xLjM3Ny0yLjkxMS0yLjY2LTQuNDY1LTMuODc4IEM4MC4wNTcsNi4zMTYsNjguNTQzLDIsNTYsMkMyNi4xNzcsMiwyLDI2LjE3OCwyLDU2LjAwMUMyLDg1LjgyNCwyNi4xNzcsMTEwLDU2LDExMGMxMi41NDMsMCwyNC4wNTctNC4zMTQsMzMuMjI0LTExLjQ4OSBjMS41NTUtMS4yMTgsMy4wNTMtMi41LDQuNDY1LTMuODc4QzEwMy43NDEsODQuODI4LDExMCw3MS4xNTMsMTEwLCA1Ni4wMDF6IE01NiwxMDMuMTA3Yy0yNi4wMTYsMC00Ny4xMDYtMjEuMDktNDcuMTA2LTQ3LjEwNiBTMjkuOTg0LDguODk0LDU2LDguODk0YzI2LjAxNywwLDQ3LjEwNiwyMS4wOTEsNDcuMTA2LDQ3LjEwN1M4Mi4wMTcsMTAzLjEwNyw1NiwxMDMuMTA3eiIvPg0KICAgIDxwYXRoIGZpbGw9IiNjY2NkY2YiIGQ9Ik0xMDMuMTA2LDU2LjAwMWMwLTI2LjAxNi0yMS4wODktNDcuMTA3LTQ3LjEwNi00Ny4xMDdjLTI2LjAxNiwwLTQ3LjEwNiwyMS4wOTEtNDcuMTA2LDQ3LjEwNyBTMjkuOTg0LDEwMy4xMDcsNTYsMTAzLjEwN0M4Mi4wMTcsMTAzLjEwNywxMDMuMTA2LDgyLjAxNywxMDMuMTA2LDU2LjAwMXogTTU2LDMzLjg4NGMxMi4yMTUsMCwyMi4xMTcsOS45MDIsMjIuMTE3LDIyLjExNyBjMCwxMi4yMTUtOS45MDIsMjIuMTE2LTIyLjExNywyMi4xMTZzLTIyLjExNy05LjkwMS0yMi4xMTctMjIuMTE2QzMzLjg4Myw0My43ODYsNDMuNzg1LDMzLjg4NCw1NiwzMy44ODR6Ii8+DQogICAgPGNpcmNsZSBmaWxsPSIjYmJiYmJmIiBjeD0iNTYiIGN5PSI1NiIgcj0iMjIuMTE3Ii8+DQogIDwvZz4NCjwvc3ZnPg0K"},function(t,e){t.exports="data:application/x-font-woff;base64,d09GRgABAAAAAAjAAAsAAAAACHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxENZWNtYXAAAAFoAAAAVAAAAFT/9AFSZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAABIAAAASAMRJ4iWhlYWQAAAZEAAAANgAAADYIz+n9aGhlYQAABnwAAAAkAAAAJAeOA89obXR4AAAGoAAAADgAAAA4LgAHp2xvY2EAAAbYAAAAHgAAAB4HNAYUbWF4cAAABvgAAAAgAAAAIAARACxuYW1lAAAHGAAAAYYAAAGGmUoJ+3Bvc3QAAAigAAAAIAAAACAAAwAAAAMD0QGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAQAAAAGoDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIABq//3//wAAAAAAIABh//3//wAB/+P/owADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAgDwAJoDEANmAA0AGwAAATIWFREUBiMiJjURNDYhMhYVERQGIyImNRE0NgK0LS8vLS4uLf7HLi4tLy0vLwNmISH9uiIiISMCRiEhISH9uiIiISMCRiEhAAEBAADQAwADMgAUAAABHgEVFAYHAQ4BJy4BNRE0Njc2FhcC8gcHBgj+SgwVCQkJCQkJFQwCGgQOCAcMBf7wCQMEBhUPAg4PFQYEAggAAAAAAgA+AOYDwgMcABQAKQAAEzQ2NyU+ARceARURFAYHBiYnJS4BJTQ2NyU+ARceARURFAYHBiYnJS4BPgYIAX4KEwkHCQgICRIL/oIHBwHQCAYBcgkTCAkHBwkHFAn+jgYIAgAHDAX+BwMEAxMO/hINFAMEAgj+AwsIBwwF/gcDBAMTDv4SDRQDBAII/gMLAAAAAgA+AOYDwgMcABQAKQAAAR4BFRQGBwUOAScuATURNDY3NhYXBx4BFRQGBwUOAScuATURNDY3NhYXA7QHBwYI/oQMEggHCQgIBxMMVAYICAb+jgkTCAkHBwkHFAkCGAQMCAcMA/4HAwQDEw4B7g0UAwQCCP4EDAgHDAP+BwMEAxMOAe4NFAMEAggAAAACAMwA2AM0AywAFAAiAAABHgEVFAYHBQ4BJy4BNRE0Njc2FhclMhYVERQGIyImNRE0NgJyBwkICP6ODBIGBwkICAYSDAHoJScmJicnJwIYBAwIBgsF6gcDBAYQDgHGDRIFBAIIKh4e/iIeHBweAd4eHgAAAAEANADMA8wDNAAmAAABMhYXHgEVERQGBw4BIyEiJicuATURNDY3PgEzITUXBzUjFSE1IzUDZhYlDw0PDg4PJBf9NBUkDw8PDw8PJBUBAMzM2AJ8mgLCDw8NJhX+2BUkDw8REQ8PJBUBKBUlDg8Pcrq4ctjYjgAAAAIAzADYAzQDLAAUACIAAAE0NjclPgEXHgEVERQGBwYmJyUuASc0NjMyFhURFAYjIiY1AX4ICAF0ChIGBwkICAYRC/6MBwmyJycnJSUnJycCAAcMBeoHAwQEEg7+Og0RBgQCCOoEDPYeHh4e/iIeHBweAAAAAQFSANgCnAMsAB8AAAE+ATMyFhcWFA8BFxYUBw4BIyImLwEuATU0Njc+AwJKBhQODBUJExPAwBMTCRUMDBQI6AkHBwk0UjojAxoJCQkJEikXyMYWKhIJBwcJ8gcTDAwUCDdWPCQAAAABAWQA2AKuAywAGwAAARceARUUBg8BDgEjIiYnJjQ/AScmNDc+ATMyFgG26AcJCAjoBxUMDRQJEhK+vhISCRUMDRMDGvIHFQwMEgjyCQcHCRIpF8bIFioSCQkJAAEAuQBnA0sDKAAZAAAlIiYvASY2NzYWHwEBPgEXHgEHAQ4BIyoBMQGpER4KtxIIGBc7EngBLw86GRkOEP6aCR4SAQJnDg7yFzsREggXnwHmGQ0QDzoZ/cIPEgAAAQAAAAAAAAAm5GlfDzz1AAsEAAAAAADS81LNAAAAANLzUs0AAAAAA8wDZgAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADzAABAAAAAAAAAAAAAAAAAAAADgQAAAAAAAAAAAAAAAIAAAAEAADwBAABAAQAAD4EAAA+BAAAzAQAADQEAADMBAABUgQAAWQEAAC5AAAAAAAKABQAHgBKAHIAugEAAToBdgGwAeQCEgJAAAAAAQAAAA4AKgACAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(t,e){t.exports='<div class="video">\r\n <div class="video-holder">\r\n <div class="video-frame">\r\n <svg class="video-objects" version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>\r\n </div>\r\n <svg class="video-tools" version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>\r\n </div>\r\n <div class="video-controls">\r\n <button class="touch-shift" title="Shift button"></button>\r\n <button class="current-state" title="Time in seconds">\r\n <span></span>\r\n <div class="menu-choose-display">\r\n <label class="display-time">Time</label>\r\n <label class="display-frame">Frame</label>\r\n </div>\r\n </button>\r\n <div class="play-rate">\r\n <button class="play-rate-prev"></button><label class="play-rate-value"></label><button class="play-rate-next"></button>\r\n </div>\r\n <button class="play-back" title="Reset to step 0"></button>\r\n <button class="play-start" title="Play"></button>\r\n <button class="play-pause" title="Pause"></button>\r\n <input type="range" class="seek-bar"></input>\r\n <button class="skip-prev" title="Step back"></button>\r\n <button class="skip-next" title="Step forward"></button>\r\n <button class="play-loop" title="Looping"></button>\r\n </div>\r\n</div>'},function(t,e){"use strict";var i="selected",n={time:"Time in seconds",frame:"Frame number"},r="(click to change)",o=function(t){this.node=t.querySelector(".menu-choose-display"),this.holder=t,this.selected=null,this.labels={time:this.node.querySelector(".display-time"),frame:this.node.querySelector(".display-frame")},this.hide()};o.prototype.show=function(){this.node.style.display=""},o.prototype.hide=function(){this.node.style.display="none"},o.prototype.update=function(t){var e=t.currentDisplayState;this.selected&&this.selected.classList.remove(i),this.selected=this.labels[e],this.selected.classList.add(i),this.holder.setAttribute("title",n[e]+" "+r)},t.exports=o},function(t,e,i){"use strict";var n=i(197),r=n(i(198)),o=r.querySelector("svg > g"),s=5,a=function(t,e,i){if(this.model.hidden)return A(t),!1;if(e<this.start)return A(t),!1;if(this.model.isModel||(e-=this.start),e>=this.frames.length||!this.frames[e])return A(t),!1;var n=this.frames[e].position.x,r=this.frames[e].position.y;isNaN(n)||isNaN(r)?A(t):(b(t),t._x=n,t._y=r,t.setAttribute("transform","scale("+i+","+i+") translate("+n+", "+r+")"))},l=function(t,e){var i,n=this.tracks.length;for(t=Math.min(Math.max(t-this.start,-1),n),i=0;i<n;i++)i>t?A(this.tracks[i]):i===t?b(this.tracks[i]):(b(this.tracks[i]),"Circle"!==this.trackType&&this.tracks[i]._circle.hide());this.scale!==e&&(this.scale=e,h.call(this))},c=function(t,e){a.call(this,this.node,t,e)},h=function(){for(var t,e=0,i=this.frames.length;e<i;e++)t=this.node.cloneNode(!0),t.isVisible=!0,A(t),a.call(this,t,e+this.start,this.scale)},d=function(t,e,i,n){var r,a=o.cloneNode(!0),l=a.querySelector("g > text"),c=a.querySelectorAll("g > line"),h=a.querySelectorAll("g > circle");for(r=h.length;r--;)h[r].setAttribute("stroke",t.value);for(r=c.length;r--;)c[r].setAttribute("stroke",t.value);if(l.setAttribute("fill",t.value),n!==!0&&l.hide(),t.opacity<1&&(a.style.opacity=t.opacity),e&&(h[0].setAttribute("r",e),h[2].setAttribute("r",e+1)),"VerticalLine"===i){var d=e||s;c[0].setAttribute("x1",-1*d),c[0].setAttribute("x2",1*d),c[0].show(),c[1].setAttribute("y1",-500),c[1].setAttribute("y2",500),c[1].show()}if("HorizontalLine"===i){var d=e||s;c[0].setAttribute("y1",-1*d),c[0].setAttribute("y2",1*d),c[0].show(),c[1].setAttribute("x1",-500),c[1].setAttribute("x2",500),c[1].show()}return a._line=c,a._circle=h,a._text=l,a},p=function(t){for(var e,i=0,n=this.frames.length;i<n;i++)e=this.node.cloneNode(!0),e._text=e.querySelector("g > text"),e._line=e.querySelectorAll("g > line"),e._circle=e.querySelectorAll("g > circle"),e.isVisible=!0,A(e),e._text.textContent=i+1,a.call(this,e,i+this.start,this.scale),t.appendChild(e),this.tracks.push(e)},u=function(t){t.appendChild(this.node),this.node.isVisible=!0,this.model.hidden&&A(this.node)},f=function(t){this.withTrack?p.call(this,t):u.call(this,t)},A=function(t){t.isVisible&&(t.style.display="none",t.isVisible=!1)},b=function(t){t.isVisible||(t.style.display="",t.isVisible=!0)},m=function(t,e,i){this.node=d(e.color,e.radius,e.trackType,e.trackNumber),this.model=e,this.name=e.name,this.frames=e.frames,this.start=e.start,this.hidden=e.hidden,this.trackShowNumber=e.trackNumber,this.trackType=e.trackType,this.withTrack=e.track,this.tracks=[],this.scale=1,f.call(this,t)};m.prototype.setPositionAtFrame=function(t,e){this.withTrack?l.call(this,t,e):c.call(this,t,e)},m.prototype.updateColor=function(t){this.node._text.setAttribute("fill",t);for(var e=this.node._line.length;e--;)this.node._line[e].setAttribute("stroke",t);for(var i=this.node._circle.length;i--;)this.node._circle[i].setAttribute("stroke",t)},t.exports=m},function(t,e){"use strict";var i=new DOMParser;t.exports=function(t){return i.parseFromString(t,"image/svg+xml")}},function(t,e){t.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg">\r\n <g class="video-object">\r\n <line x1="0" y1="0" x2="0" y2="0" stroke="#00ff00" stroke-width="2" shape-rendering="geometricPrecision"></line>\r\n <line x1="0" y1="0" x2="0" y2="0" stroke="#00ff00" stroke-width="2" shape-rendering="geometricPrecision"></line>\r\n <circle cx="0" cy="0" r="5" stroke="#00ff00" stroke-width="2" fill="none"></circle>\r\n <circle cx="0" cy="0" r="1" stroke="#00ff00" stroke-width="1" fill="none"></circle>\r\n <circle cx="0" cy="0" r="6" stroke="#fff" stroke-width="1" fill="#fff" fill-opacity="0" stroke-opacity="0"></circle>\r\n <text x="-10" y="-10" font-family="Arial" fill="#00ff00" font-size="14" font-weight="normal" text-anchor="middle">6</text>\r\n </g>\r\n</svg>'},function(t,e,i){"use strict";var n=i(197),r=n(i(200)),o=r.querySelector("svg > g"),s=function(t,e,i){if(e<this.start)return d(t),!1;if(e-=this.start,e>=this.frames.length)return d(t),!1;p(t);var n=this.frames[e].position.x1,r=this.frames[e].position.y1,o=this.frames[e].position.x2,s=this.frames[e].position.y2;t._x1=n,t._y1=r,t._x2=o,t._y2=s,t.line.setAttribute("x1",n),t.line.setAttribute("y1",r),t.line.setAttribute("x2",o),t.line.setAttribute("y2",s)},a=function(t,e){s.call(this,this.node,t,e)},l=function(t){var e=o.cloneNode(!0),i=e.querySelector("g > line"),n=e.querySelector("g > defs > marker > path");return i.setAttribute("stroke",t.value),n.setAttribute("stroke",t.value),t.opacity<1&&(e.style.opacity=t.opacity),e.line=i,e},c=function(t){this.node.isVisible=!0,t.appendChild(this.node)},h=function(t){this.withTrack?c.call(this,t):c.call(this,t)},d=function(t){t.isVisible&&(t.style.display="none",t.isVisible=!1)},p=function(t){t.isVisible||(t.style.display="",t.isVisible=!0)},u=function(t,e){this.node=l(e.color),this.name=e.name,this.frames=e.frames,this.start=e.start,this.withTrack=e.track,this.tracks=[],this.scale=1,h.call(this,t)};u.prototype.setPositionAtFrame=function(t,e){this.withTrack?a.call(this,t,e):a.call(this,t,e)},t.exports=u},function(t,e){t.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg">\r\n <g class="video-object">\r\n <defs>\r\n <marker refY="50" refX="50" markerHeight="6" markerWidth="10" viewBox="0 0 100 100" orient="auto" markerUnits="strokeWidth" id=":arrow">\r\n <path stroke-width="20" stroke="#000000" fill="none" d="m115,50l-100,40l30,-40l-30,-40z"></path>\r\n </marker>\r\n </defs>\r\n <line x1="0" y1="0" x2="100" y2="100" stroke="red" stroke-width="2" marker-end="url(#:arrow)"></line>\r\n </g>\r\n</svg>'},function(t,e,i){"use strict";var n=i(197),r=n(i(202)),o=r.querySelector("svg > g"),s=function(){this.holder.appendChild(this.node),a.call(this)},a=function(){this.node.style.display=this.isVisible?"":"none"},l=function(t,e,i){this.node=o.cloneNode(!0),this.holder=t,this.target=e,this.axisX=this.node.querySelector('[name="axis-x"]'),this.axisY=this.node.querySelector('[name="axis-y"]'),this.axisX_hit=this.node.querySelector('[name="axis-x-hit"]'),this.axisY_hit=this.node.querySelector('[name="axis-y-hit"]'),this.isVisible=i.axis.visible,s.call(this)};l.prototype.toggle=function(t){this.isVisible=t,a.call(this)},l.prototype.update=function(t){var e,i=this.holder.getBoundingClientRect(),n=t.axis,r=i.width,o=i.height,s=Math.sqrt(r*r+o*o),a=n.x0*t.magnification,l=n.y0*t.magnification;e=n.getCoords(a,l,-s,0),this.axisX.setAttribute("x1",e.x),this.axisX.setAttribute("y1",e.y),this.axisX_hit.setAttribute("x1",e.x),this.axisX_hit.setAttribute("y1",e.y),e=n.getCoords(a,l,+s,0),this.axisX.setAttribute("x2",e.x),this.axisX.setAttribute("y2",e.y),this.axisX_hit.setAttribute("x2",e.x),this.axisX_hit.setAttribute("y2",e.y),e=n.getCoords(a,l,0,-s),this.axisY.setAttribute("x1",e.x),this.axisY.setAttribute("y1",e.y),this.axisY_hit.setAttribute("x1",e.x),this.axisY_hit.setAttribute("y1",e.y),e=n.getCoords(a,l,0,+s),this.axisY.setAttribute("x2",e.x),this.axisY.setAttribute("y2",e.y),this.axisY_hit.setAttribute("x2",e.x),this.axisY_hit.setAttribute("y2",e.y)},l.prototype.highlight=function(t){var e=t===!0?.1:0;this.axisX_hit.setAttribute("opacity",e),this.axisY_hit.setAttribute("opacity",e)},t.exports=l},function(t,e){t.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg">\r\n <g class="tools-axis">\r\n <line name="axis-x" x1="0" y1="0" x2="20" y2="20" stroke="#c800c8" stroke-width="2" shape-rendering="geometricPresicion"></line>\r\n <line name="axis-y" x1="0" y1="0" x2="20" y2="20" stroke="#c800c8" stroke-width="2" shape-rendering="geometricPresicion"></line>\r\n <line name="axis-x-hit" x1="0" y1="0" x2="20" y2="20" stroke="#ff0000" stroke-width="16" opacity="0" shape-rendering="geometricPresicion"></line>\r\n <line name="axis-y-hit" x1="0" y1="0" x2="20" y2="20" stroke="#ff0000" stroke-width="16" opacity="0" shape-rendering="geometricPresicion"></line>\r\n </g>\r\n</svg>'},function(t,e,i){"use strict";var n=i(197),r=n(i(204)),o=r.querySelector("svg > g"),s=function(t){if(t.color){var e=this.node.querySelector("text");e.setAttribute("fill",t.color),e=this.node.querySelector('line[name="line"]'),e.setAttribute("stroke",t.color),e=this.node.querySelector('circle[name="line-l"]'),e.setAttribute("stroke",t.color),e=this.node.querySelector('circle[name="line-r"]'),e.setAttribute("stroke",t.color)}this.holder.appendChild(this.node),a.call(this)},a=function(){this.node.style.display=this.isVisible?"":"none"},l=function(t){this.move_m(t)},c=function(t){this.title.textContent=t.value,this.title.setAttribute("x",t.posT.x),this.title.setAttribute("y",t.posT.y)},h=function(t,e,i){this.node=o.cloneNode(!0),this.holder=t,this.target=e,this.line=this.node.querySelector('[name="line"]'),this.title=this.node.querySelector('[name="title"]'),this.circleL=this.node.querySelector('[name="line-l"]'),this.circleR=this.node.querySelector('[name="line-r"]'),this.hitL=this.node.querySelector('[name="hit-l"]'),this.hitR=this.node.querySelector('[name="hit-r"]'),this.hitM=this.node.querySelector('[name="hit-m"]'),this.isVisible=i.visible,this.hidePoint("l"),this.hidePoint("r"),s.call(this,i)};h.prototype.move_l=function(t){this.line.x1.baseVal.value=t.posL.x,this.line.y1.baseVal.value=t.posL.y,this.hitM.x1.baseVal.value=t.posL.x,this.hitM.y1.baseVal.value=t.posL.y,this.circleL.cx.baseVal.value=t.posL.x,this.circleL.cy.baseVal.value=t.posL.y,this.hitL.cx.baseVal.value=t.posL.x,this.hitL.cy.baseVal.value=t.posL.y,c.call(this,t)},h.prototype.move_r=function(t){this.line.x2.baseVal.value=t.posR.x,this.line.y2.baseVal.value=t.posR.y,this.hitM.x2.baseVal.value=t.posR.x,this.hitM.y2.baseVal.value=t.posR.y,this.circleR.cx.baseVal.value=t.posR.x,this.circleR.cy.baseVal.value=t.posR.y,this.hitR.cx.baseVal.value=t.posR.x,this.hitR.cy.baseVal.value=t.posR.y,c.call(this,t)},h.prototype.move_m=function(t){this.move_l(t),this.move_r(t)},h.prototype.toggle=function(t){this.isVisible=t,a.call(this)},h.prototype.update=function(t){l.call(this,t)},h.prototype.showPoint=function(t){this["circle"+t.toUpperCase()].style.display=""},h.prototype.hidePoint=function(t){this["circle"+t.toUpperCase()].style.display="none"},t.exports=h},function(t,e){t.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg">\r\n <g class="tools-tape">\r\n <style>\r\n circle[name="hit-l"], circle[name="hit-r"], line[name="hit-m"] {\r\n pointer-events: all; cursor: pointer;\r\n }\r\n </style>\r\n <line name="line" x1="50" y1="50" x2="100" y2="50" stroke="#ff0000" stroke-width="2" shape-rendering="geometricPrecision"></line>\r\n <line name="hit-m" x1="50" y1="50" x2="100" y2="50" stroke="#ffffff" stroke-width="10" stroke-opacity="0" shape-rendering="geometricPrecision"></line>\r\n <text name="title" x="200" y="200" font-family="Arial" font-size="12px" fill="red" font-weight="bold" text-anchor="middle" dominant-baseline="middle">2.253E-2</text>\r\n <circle name="line-l" cx="50" cy="50" r="4" stroke="#ff0000" stroke-width="2" fill="none" shape-rendering="geometricPrecision"></circle>\r\n <circle name="line-r" cx="100" cy="50" r="4" stroke="#ff0000" stroke-width="2" fill="none" shape-rendering="geometricPrecision"></circle>\r\n <circle name="hit-l" cx="50" cy="50" r="8" stroke="none" fill="#ffffff" fill-opacity="0" shape-rendering="geometricPrecision"></circle>\r\n <circle name="hit-r" cx="100" cy="50" r="8" stroke="none" fill="#ffffff" fill-opacity="0" shape-rendering="geometricPrecision"></circle>\r\n </g>\r\n</svg>'},function(t,e,i){"use strict";var n=i(197),r=n(i(206)),o=r.querySelector("svg > g"),s=function(){this.holder.appendChild(this.node)},a=function(t){this.node=o.cloneNode(!0),this.holder=t,s.call(this),this.display(!1)};a.prototype.display=function(t){this.node.style.display=t?"":"none"},a.prototype.setPosition=function(t){this.node.setAttribute("transform","translate("+t.x+","+t.y+")")},t.exports=a},function(t,e){t.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg">\r\n <g class="point-place">\r\n <circle cx="0" cy="0" r="4" stroke="#c800c8" stroke-width="2" shape-rendering="geometricPresicion" stroke-opacity="0.3" fill="none"></circle>\r\n <line x1="-6" y1="-6" x2="6" y2="6" stroke="#c800c8" stroke-width="1" shape-rendering="crispEdges"></line>\r\n <line x1="-6" y1="6" x2="6" y2="-6" stroke="#c800c8" stroke-width="1" shape-rendering="crispEdges"></line>\r\n </g>\r\n</svg>'},function(t,e,i){"use strict";var n=i(197),r=n(i(208)),o=r.querySelector("svg > g"),s=function(t){this.holder.appendChild(this.node),a.call(this),c.call(this,t)},a=function(){this.node.style.display=this.isVisible?"":"none"},l=function(t){this.lineL.setAttribute("stroke",t),this.lineR.setAttribute("stroke",t),this.circleL.setAttribute("stroke",t),this.circleR.setAttribute("stroke",t),this.circleM.setAttribute("stroke",t),this.arcAng.setAttribute("stroke",t),this.arcAngMarker[0].setAttribute("stroke",t),this.arcAngMarker[1].setAttribute("stroke",t),this.arcTitle.setAttribute("fill",t)},c=function(t){this.move_l(t),this.move_r(t),this.move_m(t)},h=function(t){var e=t.ang>180?360-t.ang:-1*t.ang,i="M"+t.arcL.x+" "+t.arcL.y;i+=" A"+t.arcRad+" "+t.arcRad,i+=" 0 0 "+t.arcD+" ",i+=t.arcR.x+" "+t.arcR.y,this.arcAng.setAttribute("d",i),Math.abs(e)>=20?this.arcAng.setAttribute("marker-end","url(#:angle-arrow-"+t.arcD+")"):this.arcAng.removeAttribute("marker-end"),this.arcTitle.setAttribute("x",t.arcT.x),this.arcTitle.setAttribute("y",t.arcT.y),this.arcTitle.textContent=e.toFixed(1)+decodeURI("%C2%B0")},d=function(t,e,i){this.node=o.cloneNode(!0),this.holder=t,this.target=e,this.arcAng=this.node.querySelector('path[name="arc-ang"]'),this.arcAngMarker=[this.node.querySelector('path[name="arc-ang-marker-0"]'),this.node.querySelector('path[name="arc-ang-marker-1"]')],this.arcTitle=this.node.querySelector('text[name="arc-title"]'),this.lineL=this.node.querySelector('line[name="line-l"]'),this.lineR=this.node.querySelector('line[name="line-r"]'),this.circleL=this.node.querySelector('circle[name="line-l"]'),this.circleR=this.node.querySelector('circle[name="line-r"]'),this.circleM=this.node.querySelector('circle[name="middle"]'),this.hitL=this.node.querySelector('circle[name="line-l-hit"]'),this.hitR=this.node.querySelector('circle[name="line-r-hit"]'),this.hitM=this.node.querySelector('circle[name="middle-hit"]'),this.isVisible=i.visible,this.hideMiddlePoint(),s.call(this,i),l.call(this,i.color)};d.prototype.toggle=function(t){this.isVisible=t,a.call(this)},d.prototype.update=function(t){c.call(this,t)},d.prototype.move_l=function(t){this.lineL.x1.baseVal.value=t.posL.x,this.lineL.y1.baseVal.value=t.posL.y,this.circleL.cx.baseVal.value=t.posL.x,this.circleL.cy.baseVal.value=t.posL.y,this.hitL.cx.baseVal.value=t.posL.x,this.hitL.cy.baseVal.value=t.posL.y,h.call(this,t)},d.prototype.move_r=function(t){this.lineR.x1.baseVal.value=t.posR.x,this.lineR.y1.baseVal.value=t.posR.y,this.circleR.cx.baseVal.value=t.posR.x,this.circleR.cy.baseVal.value=t.posR.y,this.hitR.cx.baseVal.value=t.posR.x,this.hitR.cy.baseVal.value=t.posR.y,h.call(this,t)},d.prototype.move_m=function(t){this.lineL.x2.baseVal.value=t.posM.x,this.lineL.y2.baseVal.value=t.posM.y,this.lineR.x2.baseVal.value=t.posM.x,this.lineR.y2.baseVal.value=t.posM.y,this.hitM.cx.baseVal.value=t.posM.x,this.hitM.cy.baseVal.value=t.posM.y,this.circleM.cx.baseVal.value=t.posM.x,this.circleM.cy.baseVal.value=t.posM.y,h.call(this,t)},d.prototype.showMiddlePoint=function(){this.circleM.style.display=""},d.prototype.hideMiddlePoint=function(){this.circleM.style.display="none"},t.exports=d},function(t,e){t.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg">\r\n <g class="tools-protractor">\r\n <style>\r\n circle[name="line-l-hit"], circle[name="line-r-hit"], circle[name="middle-hit"] {\r\n pointer-events: all; cursor: pointer;\r\n }\r\n </style>\r\n <defs>\r\n <marker id=":angle-arrow-0" markerWidth="12" markerHeight="12" refX="10" refY="5" orient="auto">\r\n <path name="arc-ang-marker-0" d="M2,7 L10,5 L2,1" fill="none" stroke="#00ff00" />\r\n </marker>\r\n <marker id=":angle-arrow-1" markerWidth="12" markerHeight="12" refX="10" refY="5" orient="auto">\r\n <path name="arc-ang-marker-1" d="M2,9 L10,5 L2,3" fill="none" stroke="#00ff00" />\r\n </marker>\r\n </defs>\r\n <line name="line-l" x1="0" y1="0" x2="20" y2="20" stroke="#c800c8" stroke-width="2" shape-rendering="geometricPrecision"></line>\r\n <line name="line-r" x1="0" y1="0" x2="20" y2="20" stroke="#c800c8" stroke-width="2" shape-rendering="geometricPrecision"></line>\r\n <circle name="line-l" cx="0" cy="0" r="4" stroke="#00ff00" stroke-width="2" fill="none" shape-rendering="geometricPrecision"></circle>\r\n <circle name="line-r" cx="0" cy="0" r="4" stroke="#00ff00" stroke-width="2" fill="none" shape-rendering="geometricPrecision"></circle>\r\n <circle name="middle" cx="0" cy="0" r="4" stroke="#00ff00" stroke-width="2" fill="none" shape-rendering="geometricPrecision"></circle>\r\n <path name="arc-ang" d="M200 175 A 25 25 0 0 0 182.322 217.678" fill="none" stroke="#00ff00" stroke-width="1" shape-rendering="geometricPrecision" marker-end="url(#:angle-arrow-0)"></path>\r\n <text name="arc-title" x="200" y="200" font-family="Arial" font-size="12px" fill="red" text-anchor="middle" dominant-baseline="middle"></text>\r\n <circle name="line-l-hit" cx="0" cy="0" r="8" stroke="none" fill="#ffffff" fill-opacity="0" shape-rendering="geometricPrecision"></circle>\r\n <circle name="line-r-hit" cx="0" cy="0" r="8" stroke="none" fill="#ffffff" fill-opacity="0" shape-rendering="geometricPrecision"></circle>\r\n <circle name="middle-hit" cx="0" cy="0" r="8" stroke="none" fill="#ffffff" fill-opacity="0" shape-rendering="geometricPrecision"></circle>\r\n </g>\r\n</svg>'},function(t,e,i){"use strict";var n=i(210),r=i(211),o=i(212),s=5,a=.1,l=.1,c=function(t){var e=t.video;this.magnification=e.magnification,this.frameCurrent=e.frameCurrent||0,this.frameLoop=e.frameLoop||!1,this.frameStart=e.frameStart||0,this.frameTotal=e.frames.length,this.frameStep=e.frameStep||.1,this.frameRate=e.frameRate,this.width=e.width*e.magnification,this.height=e.height*e.magnification,this.playRate=e.playRate||1,this.frames=e.frames,this.isPlaying=!1,this.axis=new n(t),this.tape=new r(t.tape,t.matrix),this.protractor=new o(t.protractor),this.shiftKeyDown=!1,this.objects=t.objects,this.scale=1,this.currentTrack=null,this.currentDisplayState=e.displayState||"time"};c.prototype.play=function(){this.isPlaying=!0},c.prototype.stop=function(){this.isPlaying=!1},c.prototype.gotoAndStop=function(t){this.frameCurrent=t,this.isPlaying=!1},c.prototype.goto=function(t){this.frameCurrent=t},c.prototype.clearScale=function(){this.scale=1},c.prototype.updateScale=function(t){this.scale=t},c.prototype.getCurrentState=function(){if("time"===this.currentDisplayState){var t=this.frameCurrent-this.frameStart;return(t*this.frameStep).toFixed(3)}if("frame"===this.currentDisplayState){for(var t=this.frameCurrent.toString(),e=3;e>=t.length;e--)t="0"+t;return t}},c.prototype.stepInTime=function(){this.frameCurrent+1===this.frameTotal?this.frameLoop?this.frameCurrent=0:this.isPlaying=!1:this.frameCurrent+=1},c.prototype.changeFrame=function(t){this.frameCurrent+=t},c.prototype.isInFirstFrame=function(){return 0===this.frameCurrent},c.prototype.isInLastFrame=function(){return this.frameCurrent===this.frameTotal-1},c.prototype.isPlayRateMin=function(){return this.playRate===a},c.prototype.isPlayRateMax=function(){return this.playRate===s},c.prototype.changePlayRate=function(t){this.playRate+=l*t,this.playRate=parseFloat(this.playRate.toFixed(1))},c.prototype.toogleLoop=function(){this.frameLoop=!this.frameLoop},c.prototype.setCurrentTrack=function(t){this.currentTrack=this.objects.find(t)},t.exports=c},function(t,e){"use strict";var i=function(t){this.x0=t.matrix.x0,this.y0=t.matrix.y0,this.ang=-1*Math.toRadians(t.matrix.ang),this.visible=t.axis.visible,this.draggable=t.axis.draggable};i.prototype.getCoords=function(t,e,i,n){return{x:t+(i*Math.cos(this.ang)+n*Math.sin(this.ang)),y:e-(-i*Math.sin(this.ang)+n*Math.cos(this.ang))}},t.exports=i},function(t,e){"use strict";var i=8,n=30,r=function(){var t,e,r,o,s,a,l;s={x:this.posR.x-this.posL.x,y:this.posR.y-this.posL.y},a=i+Math.abs(Math.sin(Math.atan2(s.y,s.x))*(n-i)),l=Math.sqrt(s.x*s.x+s.y*s.y)/this.scale,l=l.toExponential(3),l=l.replace(/\+/,""),l=l.replace(/e0/,""),l=l.toUpperCase(),0===s.x&&0===s.y?(s.x=this.posR.x-a,s.y=this.posR.y):0!==s.y?(t=a/Math.sqrt(1+s.x*s.x/(s.y*s.y)),e=-1*t,r=-1*t*s.x/s.y,o=-1*e*s.x/s.y):0!==s.x&&(r=a/Math.sqrt(1+s.y*s.y/(s.x*s.x)),o=-1*r,t=-1*r*s.y/s.x,e=-1*o*s.y/s.x),s=Math.sign(s.x)===Math.sign(t)?{x:t,y:r}:{x:e,y:o},this.value=l,this.posT.x=s.x+(this.posR.x+this.posL.x)/2,this.posT.y=s.y+(this.posR.y+this.posL.y)/2},o=function(t,e){this.visible=t.visible,this.color=t.color,this.scale=e.sX,this.value=0,this.posO={x:0,y:0},this.posT={x:0,y:0},this.posL={x:t.points[0].x,y:t.points[0].y},this.posR={x:t.points[1].x,y:t.points[1].y},r.call(this)};o.prototype.update=function(t){var e=t.x-this.posO.x,i=t.y-this.posO.y;this.posL.x+=e,this.posL.y+=i,this.posR.x+=e,this.posR.y+=i,this.posO=t,r.call(this)},o.prototype.move_l=function(t){this.posL.x=t.x,this.posL.y=t.y,r.call(this)},o.prototype.move_r=function(t){this.posR.x=t.x,this.posR.y=t.y,r.call(this)},o.prototype.move_m=function(t){this.posL.x+=t.dx,this.posL.y+=t.dy,this.posR.x+=t.dx,this.posR.y+=t.dy,r.call(this)},t.exports=o},function(t,e){"use strict";var i=25,n=20,r=function(t){var e=t.x-this.posM.x,i=t.y-this.posM.y;return Math.sqrt(e*e+i*i)},o=function(t,e){return this.arcRad*(e.x-this.posM.x)/t+this.posM.x},s=function(t,e){return this.arcRad*(e.y-this.posM.y)/t+this.posM.y},a=function(){l.call(this),c.call(this),h.call(this)},l=function(){var t={x:this.posL.x-this.posM.x,y:this.posL.y-this.posM.y},e={x:this.posR.x-this.posM.x,y:this.posR.y-this.posM.y},i=Math.toDegrees(Math.atan2(t.y,t.x)),n=Math.toDegrees(Math.atan2(e.y,e.x));i<0&&(i+=360),n<0&&(n+=360),n>i?this.ang=n-i:this.ang=360+n-i},c=function(){var t=r.call(this,this.posL),e=r.call(this,this.posR);this.arcL={x:o.call(this,t,this.posL),y:s.call(this,t,this.posL)},this.arcR={x:o.call(this,e,this.posR),y:s.call(this,e,this.posR)},this.arcD=this.ang>180?0:1},h=function(){var t=r.call(this,this.posL),e=r.call(this,this.posR),i={x:(this.posL.x-this.posM.x)/t,y:(this.posL.y-this.posM.y)/t},o={x:(this.posR.x-this.posM.x)/e,y:(this.posR.y-this.posM.y)/e},s={x:-1*(i.x+o.x),y:-1*(i.y+o.y)},a=Math.sqrt(s.x*s.x+s.y*s.y);this.arcT={x:this.posM.x+n*s.x/a,y:this.posM.y+n*s.y/a}},d=function(t){this.visible=t.visible,this.color=t.color,this.ang=0,this.posO={x:0,y:0},this.posL={x:t.points[0].x,y:t.points[0].y},this.posM={x:t.points[1].x,y:t.points[1].y},this.posR={x:t.points[2].x,y:t.points[2].y},this.arcL={x:0,y:0},this.arcR={x:0,y:0},this.arcT={x:0,y:0},this.arcD=0,this.arcRad=i,a.call(this)};d.prototype.update=function(t){var e=t.x-this.posO.x,i=t.y-this.posO.y;this.posL.x+=e,this.posL.y+=i,this.posR.x+=e,this.posR.y+=i,this.posM.x+=e,this.posM.y+=i,this.posO=t,a.call(this)},d.prototype.move_l=function(t){this.posL.x=t.x,this.posL.y=t.y,a.call(this)},d.prototype.move_r=function(t){this.posR.x=t.x,this.posR.y=t.y,a.call(this)},d.prototype.move_m=function(t){this.posM.x=t.x,this.posM.y=t.y,a.call(this)},t.exports=d},function(t,e,i){"use strict";var n=i(33),r=(i(34),i(214)),o=i(215),s=i(216),a=i(217),l=i(218),c=i(219),h=n.user.mouseup,d=n.input.change,p=function(t,e){e.bttnPlayStart.addEventListener(h,function(i){return!this.disabled&&(t.play(),void e.updateButtons(t))},!1),e.bttnPlayPause.addEventListener(h,function(i){return!this.disabled&&(t.stop(),void e.updateButtons(t))},!1),e.bttnPlayBack.addEventListener(h,function(i){return!this.disabled&&(t.gotoAndStop(0),e.update(t),void n.fire("VIDEO_CHANGE_FRAME",t.frameCurrent))},!1),e.bttnPlayRatePrev.addEventListener(h,function(i){return!this.disabled&&(t.changePlayRate(-1),void e.updatePlayRate(t))},!1),e.bttnPlayRateNext.addEventListener(h,function(i){return!this.disabled&&(t.changePlayRate(1),void e.updatePlayRate(t))},!1),e.bttnPlayLoop.addEventListener(h,function(i){return!this.disabled&&(t.toogleLoop(),void e.updateLoopButton(t))},!1),e.bttnSkipPrev.addEventListener(h,function(i){return!this.disabled&&(t.stop(),t.changeFrame(-1),e.update(t),void n.fire("VIDEO_CHANGE_FRAME",t.frameCurrent))},!1),e.bttnSkipNext.addEventListener(h,function(i){return!this.disabled&&(t.stop(),t.changeFrame(1),e.update(t),void n.fire("VIDEO_CHANGE_FRAME",t.frameCurrent))},!1),e.seekBar.addEventListener(d,function(i){var r=parseInt(this.value,10);t.goto(r),e.update(t),n.fire("VIDEO_CHANGE_FRAME",t.frameCurrent)},!1);var i=e.updateVideoToolsHolder.bind(e);n.on("VIDEO_SIZE_UPDATED",i),window.addEventListener("resize",i,!1),r(t,e),o(t,t.tape,e.tape),s(t,t.protractor,e.protractor),l(t,e),c(t,e),a.init(e,t),n.on("CURRENT_TRACK_CHANGED",function(i){t.setCurrentTrack(i),a.update(e,t)}),n.on("VIDEO_CHANGE_FRAME",function(){a.update(e,t)}),n.on("VIDEO_CHANGE_FRAME:from-graph-point",function(i){t.gotoAndStop(i),e.update(t),n.fire("VIDEO_CHANGE_FRAME",i)}),n.on("OBJECT_CHANGE_VISIBILITY",function(){e.updateObjects(t)}),n.on("NEW_OBJECT_CREATED",function(t){e.addNewCreatedObject(t)}),n.on("POINT_UPDATE:color",function(t){e.updatePointColor(t.object)}),e.draw(),e.update(t),n.fire("VIDEO_CHANGE_FRAME",t.frameCurrent)};t.exports=p},function(t,e,i){
"use strict";var n=i(33),r="keydown",o=n.user.mouseup,s=n.user.mousemove,a=n.user.mousedown,l=n.user.mouseout,c=n.user.mouseover,h=function(t,e){var i={x0:t.axis.x0,y0:t.axis.y0,isSelected:!1,isMoving:!1,axis:e.axis,model:t,pos0:0};e.axis.axisX_hit.addEventListener(c,d.bind(i),!1),e.axis.axisY_hit.addEventListener(c,d.bind(i),!1),e.axis.axisX_hit.addEventListener(l,p.bind(i),!1),e.axis.axisY_hit.addEventListener(l,p.bind(i),!1),e.axis.axisX_hit.addEventListener(a,f.bind(i),!1),e.axis.axisY_hit.addEventListener(a,f.bind(i),!1),document.addEventListener(r,u.bind(i),!1),window.addEventListener(s,A.bind(i),!1),window.addEventListener(o,b.bind(i),!1)},d=function(t){this.axis.axisX_hit.style.cursor="move",this.axis.axisY_hit.style.cursor="move"},p=function(t){this.axis.axisX_hit.style.cursor="default",this.axis.axisY_hit.style.cursor="default"},u=function(t){if(!this.isSelected)return!1;var e=event.keyCode,i=0,r=0;37===e?i=.5:38===e?r=.5:39===e?i=-.5:40===e&&(r=-.5),this.model.axis.x0=this.x0-i,this.model.axis.y0=this.y0-r,this.axis.update(this.model),this.x0=this.model.axis.x0,this.y0=this.model.axis.y0,n.fire("AXIS_CHANGE_ORIGIN",{xorigin:this.model.axis.x0,yorigin:this.model.axis.y0,frame:this.model.frameCurrent})},f=function(t){this.isMoving=!0,this.isSelected=!0,this.axis.highlight(!0),this.pos0=n.user.position(t),t.preventDefault(),t.stopPropagation()},A=function(t){if(!this.isMoving)return!1;var e=n.user.position(t);this.model.axis.x0=this.x0-(this.pos0.x-e.x),this.model.axis.y0=this.y0-(this.pos0.y-e.y),this.axis.update(this.model)},b=function(t){this.isMoving?(this.isMoving=!1,this.x0=this.model.axis.x0,this.y0=this.model.axis.y0,n.fire("AXIS_CHANGE_ORIGIN",{xorigin:this.model.axis.x0,yorigin:this.model.axis.y0,frame:this.model.frameCurrent})):(this.isSelected=!1,this.axis.highlight(!1))};t.exports=function(t,e){var i=e.axis.update.bind(e.axis,t);t.axis.draggable&&h(t,e),n.on("VIDEO_SIZE_UPDATED",i),window.addEventListener("resize",i,!1),n.on("STATE_CHANGE:axis",e.axis.toggle.bind(e.axis))}},function(t,e,i){"use strict";var n=i(33),r=i(34),o=n.user.mousedown,s=n.user.mousemove,a=n.user.mouseup,l=n.user.mouseover,c=n.user.mouseout,h="l",d="r",p="m";t.exports=function(t,e,i){var u=i.update.bind(i,e);n.on("VIDEO_SIZE_UPDATED",u),window.addEventListener("resize",u,!1),n.on("STATE_CHANGE:tape",i.toggle.bind(i));var f,A="",b=null,m=function(e){e.x/=t.scale,e.y/=t.scale},x=function(t){return function(e){f=i.holder.getBoundingClientRect(),A=t,t!==p&&i.showPoint(t),b=n.user.position(e),b.x-=f.left,b.y-=f.top,m(b),e.preventDefault(),e.stopPropagation()}},g=function(t){if(""===A)return!1;var r=n.user.position(t);r.x-=f.left,r.y-=f.top,m(r),r.dx=r.x-b.x,r.dy=r.y-b.y,e["move_"+A](r),i["move_"+A](e),b=r,t.preventDefault(),t.stopPropagation()},v=function(t){""!==A&&(A!==p&&i.hidePoint(A),A="")};i.hitL.addEventListener(o,x(h),!1),i.hitR.addEventListener(o,x(d),!1),i.hitM.addEventListener(o,x(p),!1),window.addEventListener(s,g,!1),window.addEventListener(a,v,!1),r.platform.PC&&(i.hitL.addEventListener(l,function(){i.showPoint(h)},!1),i.hitL.addEventListener(c,function(){A!==h&&i.hidePoint(h)},!1),i.hitR.addEventListener(l,function(){i.showPoint(d)},!1),i.hitR.addEventListener(c,function(){A!==d&&i.hidePoint(d)},!1))}},function(t,e,i){"use strict";var n=i(33),r=i(34),o=n.user.mousedown,s=n.user.mousemove,a=n.user.mouseup,l=n.user.mouseover,c=n.user.mouseout,h="l",d="r",p="m";t.exports=function(t,e,i){var u=i.update.bind(i,e);n.on("VIDEO_SIZE_UPDATED",u),window.addEventListener("resize",u,!1),n.on("STATE_CHANGE:protractor",i.toggle.bind(i));var f,A="",b=function(e){e.x/=t.scale,e.y/=t.scale},m=function(t){return function(e){f=i.holder.getBoundingClientRect(),A=t,t===p&&i.showMiddlePoint(),e.preventDefault(),e.stopPropagation()}},x=function(t){if(""===A)return!1;var r=n.user.position(t);r.x-=f.left,r.y-=f.top,b(r),e["move_"+A](r),i["move_"+A](e),t.preventDefault(),t.stopPropagation()},g=function(t){""!==A&&(i.hideMiddlePoint(),A="")};i.hitL.addEventListener(o,m(h),!1),i.hitR.addEventListener(o,m(d),!1),i.hitM.addEventListener(o,m(p),!1),window.addEventListener(s,x,!1),window.addEventListener(a,g,!1),r.platform.PC&&(i.hitM.addEventListener(l,function(){i.showMiddlePoint()},!1),i.hitM.addEventListener(c,function(){A!==p&&i.hideMiddlePoint()},!1))}},function(t,e,i){"use strict";var n=i(33),r=i(34),o=n.user.mousedown,s=n.user.mousemove,a=n.user.mouseup,l=(n.input.change,"keydown"),c="keyup",h="active",d={x:r.platform.PC?0:-12,y:r.platform.PC?0:-12},p=!1,u=function(t){if(!p)for(var e=0;e<t.frames.length;e++)if(!t.frames[e]){n.fire("ALERT:show",{title:"Caution",content:"Caution: skipping steps when marking positions leaves gaps in the data set. Velocities and accelerations around the gaps cannot be determined until all steps are marked."}),p=!0;break}},f=function(t,e){var i=t.currentTrack,r=t.frameCurrent;i.updateFrameData(r,e),n.fire("FRAME_UPDATE_DATA",{frame:r,object:i})},A=function(t,e,i){return function(n){!n.shiftKey&&!i||t.shiftKeyDown||(t.shiftKeyDown=!0,e.videoToolsDisable(),e.bttnTouchShift.classList.add(h))}},b=function(t,e){return function(i){t.shiftKeyDown&&(t.shiftKeyDown=!1,e.videoToolsEnable(),e.bttnTouchShift.classList.remove(h))}},m=function(t,e){var i,r=t.videoFrame,h=!1,p=function(t){var r=n.user.position(t);return r.x-=i.left-d.x,r.y-=i.top-d.y,r.x/=e.scale,r.y/=e.scale,r},m=function(n){if(h||!e.shiftKeyDown||!e.currentTrack||!e.currentTrack.isModelPlace)return!1;var o=e.currentTrack,s=e.frameCurrent;if(s<o.placeStart||s>o.placeEnd)return!1;i=r.getBoundingClientRect();var a=p(n);h=!0,t.point.display(!0),t.point.setPosition(a),n.preventDefault()},x=function(e){if(!h)return!1;var i=p(e);t.point.setPosition(i),e.preventDefault(),e.stopPropagation()},g=function(r){if(!h)return!1;h=!1,t.point.display(!1);var o=n.user.position(r);o.x-=i.left,o.y-=i.top,f(e,o),u(e.currentTrack),e.changeFrame(1),t.update(e),n.fire("VIDEO_CHANGE_FRAME",e.frameCurrent)};t.bttnTouchShift.addEventListener(o,A(e,t,!0),!1),document.addEventListener(l,A(e,t),!1),document.addEventListener(c,b(e,t),!1),t.videoFrame.addEventListener(o,m,!1),t.videoFrame.addEventListener(s,x,!1),t.videoFrame.addEventListener(a,g,!1)},x=function(t,e){if(t.shiftButtonVisible(!1),!e.currentTrack)return!1;if(!e.currentTrack.isModelPlace)return!1;var i=e.currentTrack,n=e.frameCurrent;n>=i.placeStart&&n<=i.placeEnd&&t.shiftButtonVisible(!0)};t.exports={init:m,update:x}},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=n.user.mousedown,s=function(t,e,i){var n=e.displayStateMenu;n.labels[i].addEventListener(o,function(t){t.preventDefault(),t.stopPropagation()}),n.labels[i].addEventListener(r,function(r){t.currentDisplayState!==i&&(t.currentDisplayState=i,e.displayStateMenu.update(t),e.updateDisplayState(t)),n.hide()})};t.exports=function(t,e){e.currentState.addEventListener(o,function(t){t.preventDefault(),t.stopPropagation()}),e.currentState.addEventListener(r,function(){e.displayStateMenu.show()}),window.addEventListener(o,function(){e.displayStateMenu.hide()});for(var i=Object.keys(e.displayStateMenu.labels),n=i.length;n--;)s(t,e,i[n])}},function(t,e,i){"use strict";var n=i(33);t.exports=function(t,e){var i=Date.now(),r=function(){var o=Date.now(),s=o-i,a=1e3/(t.frameRate*t.playRate);s>=a&&(t.isPlaying&&(t.stepInTime(),e.update(t),n.fire("VIDEO_CHANGE_FRAME",t.frameCurrent)),i=o),requestAnimationFrame(r)};requestAnimationFrame(r)}},function(t,e,i){"use strict";var n=i(221),r=i(232),o=function(t,e,i){this.view=new n(t,e,i),new r(this.view,i)};t.exports=o},function(t,e,i){"use strict";var n=i(16);i(222);var r=n(i(229)),o=i(230),s=i(231),a=function(t){this.title.textContent=t.name},l=function(t){for(;this.node.firstChild;)t.appendChild(this.node.firstChild);this.node=t},c=function(t){t.parentNode.removeChild(t)},h=function(t,e){var i=t.application.current?t.application.current:"",n=""!==i?e.objects.find(i):e.objects[0],r=this.node.querySelector(".section-h .bttn-existing-track-model > button"),s=this.node.querySelector(".section-h .bttn-existing-track-model > div"),a=this.node.querySelectorAll(".section-h .bttn-existing-track-model > div > button"),l=this.selectTrackMenu.querySelector("hr");if(0===e.objects.length)return c(r),c(this.bttnSelectTrackMenu),!1;this.currentTrackMenu=s,this.currentTrackName=n.name,this.bttnCurrentTrack=new o(r,n);var h=this.selectTrackMenu.querySelector(".bttn-option-track");this.selectTrackMenu.removeChild(h);for(var d=0,p=e.objects.length;d<p;d++)n=e.objects[d],r=h.cloneNode(!0),this.selectTrackMenu.insertBefore(r,l),this.bttnsOptionTrack.push(new o(r,n));this.currentTrackMenuButtons={visible:a[0],define:a[1]},this.bttnTrackTemplate=h,this.bttnTrackTemplate.hr=l},d=function(t,e,i){this.node=r.querySelector("div").cloneNode(!0),this.title=this.node.querySelector(".section-h > h1"),this.toggleButtons=[new s(this.node.querySelector(".section-h > h5 > .bttn-axes"),"axis",i.axis.visible),new s(this.node.querySelector(".section-h > h5 > .bttn-tape"),"tape",i.tape.visible),new s(this.node.querySelector(".section-h > h5 > .bttn-protractor"),"protractor",i.protractor.visible)],this.bttnSelectTrackMenu=this.node.querySelector(".section-h .bttn-existing-track"),this.selectTrackMenu=this.node.querySelector(".section-h .select-track"),this.currentTrackMenuButtons=null,this.currentTrackMenu=null,this.bttnCurrentTrack=null,this.currentTrackName="",this.bttnsOptionTrack=[],this.bttnHelp=this.node.querySelector(".section-h > h5 > .bttn-help"),this.bttnTrackTemplate=null,this.bttnCreateCenterOfMass=this.node.querySelector(".section-h .select-track > .bttn-center-of-mass"),this.bttnCreateModelDynamic=this.node.querySelector(".section-h .select-track > .bttn-create-model-dynamic"),this.bttnCreateModelAnalytic=this.node.querySelector(".section-h .select-track > .bttn-create-model-analytic"),h.call(this,e,i),a.call(this,i),l.call(this,t),this.hideTrackOptions(),this.hideTrackMenu()};d.prototype.setCurrentTrack=function(t,e){if(this.bttnCurrentTrack.name===e)return!1;var i=t.objects.find(e);return this.bttnCurrentTrack.update(i),this.currentTrackName=e,this.bttnCurrentTrack.name},d.prototype.showTrackOptions=function(){this.selectTrackMenu.style.display=""},d.prototype.hideTrackOptions=function(){this.selectTrackMenu.style.display="none"},d.prototype.showTrackMenu=function(t){t.isModel?this.currentTrackMenuButtons.define.classList.remove("disabled"):this.currentTrackMenuButtons.define.classList.add("disabled"),t.hidden?this.currentTrackMenuButtons.visible.classList.remove("checked"):this.currentTrackMenuButtons.visible.classList.add("checked"),this.currentTrackMenu.style.display=""},d.prototype.hideTrackMenu=function(){this.currentTrackMenu&&(this.currentTrackMenu.style.display="none")},d.prototype.addNewCreatedObject=function(t){var e=this.bttnTrackTemplate.cloneNode(!0),i=new o(e,t),n=this.bttnTrackTemplate.hr;return this.selectTrackMenu.insertBefore(e,n),this.bttnsOptionTrack.push(i),i},d.prototype.updatePointColor=function(t){this.bttnCurrentTrack.name===t.name&&this.bttnCurrentTrack.updateColor(t.color.value);for(var e=this.bttnsOptionTrack.length;e--;)if(this.bttnsOptionTrack[e].name===t.name){this.bttnsOptionTrack[e].updateColor(t.color.value);break}},t.exports=d},[233,223],function(t,e,i){e=t.exports=i(19)(),e.push([t.id,".tracker>.section-h .menu-existing-track{height:34px;display:inline-block;vertical-align:middle;position:relative;white-space:nowrap}.tracker>.section-h .menu-existing-track>.bttn-existing-track{width:22px;height:20px;margin:0;position:relative;top:6px;border:0;outline:0;background:transparent;cursor:pointer;margin:0 4px}.tracker>.section-h .menu-existing-track>.bttn-existing-track:hover{box-shadow:0 0 1px 1px #9b9b9b}.tracker>.section-h .menu-existing-track>.bttn-existing-track:before{content:url("+i(224)+");position:relative;top:0}.tracker>.section-h .menu-existing-track>.select-track{background:#eee;display:inline-block;min-width:100%;box-shadow:1px 1px 2px grey;position:absolute;top:36px;left:0;padding:2px 0;z-index:10}.tracker>.section-h .menu-existing-track>.select-track>button{width:100%;display:list-item;list-style:none;margin:0;padding:0;text-align:left;background:none;border:0;outline:0;padding:4px 0;color:#3c3c3c;cursor:pointer}.tracker>.section-h .menu-existing-track>.select-track>button:hover{background:#a3b8cc}.tracker>.section-h .menu-existing-track>.select-track>button{margin-right:8px}.tracker>.section-h>h5>.bttn-existing-track-model{position:relative;padding:0;border:0;background:transparent;white-space:nowrap;border-radius:2px;width:auto;padding-right:5px;margin-left:0;cursor:default;display:inline-block}.tracker>.section-h>h5>.bttn-existing-track-model>button{background:transparent;border-radius:2px;padding:5px;border:0;cursor:pointer;font-size:9pt;font-weight:700;vertical-align:middle;outline:0}.tracker>.section-h>h5>.bttn-existing-track-model>button:hover{box-shadow:0 0 1px 1px #9b9b9b}.tracker>.section-h .menu-existing-track>.select-track>button>i,.tracker>.section-h>h5>.bttn-existing-track-model>button>i{vertical-align:middle;display:inline-block;width:20px;text-align:center}.tracker>.section-h .menu-existing-track>.select-track>button>i:before,.tracker>.section-h>h5>.bttn-existing-track-model>button>i:before{font-family:Panel Controls Icon;font-size:14px;font-style:normal;position:relative}.tracker>.section-h .menu-existing-track>.select-track>button>i[element=point]:before,.tracker>.section-h>h5>.bttn-existing-track-model>button>i[element=point]:before{content:'g'}.tracker>.section-h .menu-existing-track>.select-track>button>i[element=vector]:before,.tracker>.section-h>h5>.bttn-existing-track-model>button>i[element=vector]:before{content:'f';top:1px}.tracker>.section-h>h5>.bttn-existing-track-model>div{position:absolute;left:0;top:30px;margin:0;cursor:default;z-index:100;list-style-type:none;padding:4px 0;text-align:left;background:#eee;display:inline-block;box-shadow:1px 1px 2px grey;font-weight:400;width:75pt}.tracker>.section-h>h5>.bttn-existing-track-model>div>hr{margin:2px 4px}.tracker>.section-h>h5>.bttn-existing-track-model>div>button{padding:0 4px 0 1pc;height:20px;line-height:20px;position:relative;background:none;border:0;width:100%;text-align:left;outline:0}.tracker>.section-h>h5>.bttn-existing-track-model>div>button.disabled{opacity:.4}.tracker>.section-h>h5>.bttn-existing-track-model>div>button:not(.disabled):hover{background:#c3c3c3;cursor:pointer}.tracker>.section-h>h5>.bttn-existing-track-model>div>button.checked:before{content:'\\2713';position:absolute;left:5px}.tracker>.section-h .menu-existing-track>.select-track>hr{margin:4px 2px}.tracker>.section-h{width:100%;height:33px;font-family:Arial;text-align:left;position:relative;border-bottom:1px solid grey;background:-webkit-gradient(linear,left top,left bottom,color-stop(0, #ffffff),color-stop(100%, #dddddd));background:-webkit-linear-gradient(top,#fff 0,#ddd 100%);background:linear-gradient(to bottom,#fff 0,#ddd 100%)}.tracker>.section-h>h1{vertical-align:middle;display:inline-block;padding:0;margin:0;color:#000;font-size:18px;font-weight:700;margin-left:10px;position:relative;top:8px}.tracker>.section-h>h1:before{content:'Tracker: '}.tracker>.section-h .splitter{display:inline-block;background:url("+i(225)+");width:2px;height:20px;position:relative;top:7px}.tracker>.section-h>h5{vertical-align:middle;display:inline-block;padding:0;margin:0;float:right;height:34px}.tracker>.section-h>h5>button{width:26px;height:26px;margin:4px;border:0;padding:0;outline:0;border-radius:26px;vertical-align:middle;cursor:pointer;background:transparent;font-weight:700}.tracker>.section-h>h5>button:hover{box-shadow:0 0 1px 1px #9b9b9b}.tracker>.section-h>h5>button.on{background:#80fba7;box-shadow:0 0 1px 1px #d9ffe5}.tracker>.section-h>h5>button.on:hover{box-shadow:0 0 1px 1px #40fb7b}.tracker>.section-h>h5>.bttn-protractor:before{content:url("+i(226)+");width:20px;height:20px}.tracker>.section-h>h5>.bttn-axes:before{content:url("+i(227)+");width:20px;height:20px}.tracker>.section-h>h5>.bttn-tape:before{content:url("+i(228)+");width:20px;height:20px}.tracker>.section-h>h5>.bttn-help{text-align:center;font-size:20px}.tracker>.section-h .menu-existing-track>.select-track>button{padding-left:4px}",""])},function(t,e){t.exports="data:image/gif;base64,R0lGODlhCgAJAPcEADNmzMFb/47B/2YAzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAQALAAAAAAKAAkAAAg0AAEMEAiA4EACAAIICKAwAAACBAYsFDBxAMSICxVavJiQosOLEBN+BIlRwEaSA06SLAgyIAA7"},65,function(t,e){t.exports="data:image/gif;base64,R0lGODlhEAAQAJEDAABmAGbMZiSzJP///yH5BAEAAAMALAAAAAAQABAAAAIinI+py+0WwINyxjmurU93yTFemETBGQgCGiDAC8cwRtdMAQA7"},function(t,e){t.exports="data:image/gif;base64,R0lGODlhEAAQAIABAMgAyP///yH5BAEAAAEALAAAAAAQABAAAAIejAOne8mP4HNS0Wou1pVLD4FTMwHmiaYW2WGrm2EFADs="},function(t,e){t.exports="data:image/gif;base64,R0lGODlhEAAQAJEAAAAAzAAAALOy/////yH5BAEAAAMALAAAAAAQABAAAAIonI+JoG3sFphwwJmqZXfZwz0KIIhdInRnVl4akkbjJ3v1Rt20/upIAQA7"},function(t,e){t.exports='<div class="section-h">\r\n <h1></h1>\r\n <h5>\r\n <div class="menu-existing-track">\r\n <button class="bttn-existing-track" title="Select an existing track"></button>\r\n <div class="select-track">\r\n <button class="bttn-option-track"><i></i><span></span></button>\r\n <hr/>\r\n <button class="bttn-center-of-mass">Create Center of Mass</button>\r\n <button class="bttn-create-model-analytic">Analytic Particle Model</button>\r\n <button class="bttn-create-model-dynamic">Dynamic Particle Model</button>\r\n </div>\r\n </div>\r\n <div class="bttn-existing-track-model">\r\n <button><i></i><span></span></button>\r\n <div>\r\n <button><span>Visible</span></button>\r\n <hr/>\r\n <button><span>Model Builder</span></button>\r\n </div>\r\n </div>\r\n <span class="splitter"></span>\r\n <button class="bttn-axes"></button>\r\n <button class="bttn-tape"></button>\r\n <button class="bttn-protractor"></button>\r\n <span class="splitter"></span>\r\n <button class="bttn-help">?</button>\r\n </h5>\r\n</div>'},function(t,e){"use strict";var i=function(t,e){this.name=e?e.name:"",this.node=t,this.isVisible=!0,this.isModel=e.isModel,this.icon=this.node.querySelector("button > i"),this.label=this.node.querySelector("button > span"),e&&this.update(e)};i.prototype.show=function(){this.isVisible||(this.isVisible=!0,this.node.style.display="")},i.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this.node.style.display="none")},i.prototype.update=function(t){this.name=t.name,this.label.textContent=this.name,this.icon.style.color=t.color.value,this.icon.setAttribute("element",t.type),this.isModel=t.isModel,this.isModel?this.node.classList.remove("not-model"):this.node.classList.add("not-model")},i.prototype.updateColor=function(t){this.icon.style.color=t},t.exports=i},function(t,e){"use strict";var i=function(){this.value===!0?this.node.classList.add("on"):this.node.classList.remove("on")},n=function(t,e,n){this.value=n,this.name=e,this.node=t,i.call(this)};n.prototype.toggle=function(){return this.value=!this.value,i.call(this),this.value},t.exports=n},function(t,e,i){"use strict";var n=i(33),r=n.user.mouseup,o=function(t,e){for(var i=e.toggleButtons.length;i--;)s(e.toggleButtons[i])},s=function(t){t.node.addEventListener(r,function(e){n.fire("STATE_CHANGE:"+t.name,t.toggle())},!1)},a=function(t,e,i){e.node.addEventListener(r,function(r){t.setCurrentTrack(i,e.name),n.fire("CURRENT_TRACK_CHANGED",e.name)},!1)},l=function(t,e){t.bttnCurrentTrack.node.addEventListener(r,function(i){t.showTrackMenu(e.objects.find(t.currentTrackName)),i.preventDefault(),i.stopPropagation()},!1),t.currentTrackMenuButtons.visible.addEventListener(r,function(i){var r=e.objects.find(t.currentTrackName);t.hideTrackMenu(),r.hidden=!r.hidden,n.fire("OBJECT_CHANGE_VISIBILITY",r),i.preventDefault(),i.stopPropagation()},!1),t.currentTrackMenuButtons.define.addEventListener(r,function(i){var r=e.objects.find(t.currentTrackName);r.isModel&&n.fire("MODEL_BUILDER:show",t.bttnCurrentTrack.name),i.preventDefault(),i.stopPropagation()},!1)},c=function(t,e){t.bttnSelectTrackMenu.addEventListener(r,function(e){t.showTrackOptions(),e.preventDefault(),e.stopPropagation()},!1),t.bttnHelp.addEventListener(r,function(t){n.fire("HELP:show")},!1),window.addEventListener(r,function(e){t.hideTrackOptions(),t.hideTrackMenu()},!1);for(var i=t.bttnsOptionTrack.length;i--;)a(t,t.bttnsOptionTrack[i],e);t.bttnCurrentTrack&&t.bttnCurrentTrack.name&&n.fire("CURRENT_TRACK_CHANGED",t.bttnCurrentTrack.name),n.on("CURRENT_TRACK_CHANGE:force",function(i){t.setCurrentTrack(e,i)}),o(e,t),t.bttnCreateCenterOfMass.addEventListener(r,function(t){n.fire("CENTER_OF_MASS_BUILDER:show")},!1),null!==t.bttnCurrentTrack&&l(t,e),t.bttnCreateModelDynamic.addEventListener(r,function(t){n.fire("PARTICLE_MODEL_DYNAMIC:create")},!1),t.bttnCreateModelAnalytic.addEventListener(r,function(t){n.fire("PARTICLE_MODEL_ANALYTIC:create")},!1),n.on("NEW_OBJECT_CREATED",function(i){var n=t.addNewCreatedObject(i);a(t,n,e)}),n.on("POINT_UPDATE:color",function(e){t.updatePointColor(e.object)})};t.exports=c},function(t,e,i,n){var r=i(n);"string"==typeof r&&(r=[[t.id,r,""]]);i(23)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,i,n){var r=i(n);"string"==typeof r&&(r=[[t.id,r,""]]);i(23)(r,{});r.locals&&(t.exports=r.locals)}]));