/**
 * Copyright (c) 2014, 2016, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
define(['./DvtToolkit'], function(dvt) {
  // Internal use only.  All APIs and functionality are subject to change at any time.

var ga;function ka(a,E){0==a.indexOf("dvt.")&&(a=a.substring(4));var B=a.split("."),q=eval("dvt");B[0]in q||!q.execScript||q.execScript("var "+B[0]);for(var w;B.length&&(w=B.shift());)B.length||void 0===E?q=q[w]?q[w]:q[w]={}:q[w]=E}Math.floor(2147483648*Math.random()).toString(36);
(function(a){function E(a){this.Init(a.a,a.Lf,a);this.Oc=a}function B(a){this.Init(a)}a.Fi={};a.Fi.bj=function(){return a.m.mb()};a.i.v(a.Fi,a.i);a.Fi.Ic=function(a,w,x,h){x=(x-a)*h;a=w-a;return 0==x||0==a?0:x/a};a.Fi.Ph=function(a,w,x,h){w=x*(w-a);return 0==w||0==h?a:w/h+a};a.Bb=function(a,w,x){this.Init(a,w,x)};a.i.v(a.Bb,a.ba);a.Bb.$Oa=10;a.Bb.MNa=40;a.Bb.HNa=20;a.Bb.M7=20;a.Bb.tAa=5;a.Bb.wAa=1;a.Bb.prototype.Init=function(q,w,x){a.Bb.C.Init.call(this,q);this.yb=w;this.ta=x;this.KK=this.aS()?7:
6;if(null!=this.yb||null!=this.ta)this.u=new E(this),this.u.Kf(this),a.Fi.bj()?(this.lb(a.TouchEvent.yj,this.pT,!1,this),this.lb(a.TouchEvent.Gq,this.Zya,!1,this),this.lb(a.TouchEvent.im,this.R7,!1,this),this.lb(a.MouseEvent.Je,this.MM,!1,this)):(this.lb(a.MouseEvent.vj,this.P7,!1,this),this.lb(a.MouseEvent.Th,this.O7,!1,this),this.lb(a.MouseEvent.Je,this.MM,!1,this),this.lb(a.KeyboardEvent.Rm,this.KM,!1,this),this.lb(a.KeyboardEvent.lo,this.yfa,!1,this));this.cna=0};a.Bb.prototype.Md=function(a,
w,x){null==x&&(x=this.Ra);a=this.Ic(a);var h=this.Ic(w);a<this.Jz||h>this.Jba()||(w=Math.max(h-a,this.Kba()),0<w&&0<=a&&h<=x&&(h=this.pt(),this.Xq()?this.aM(h,x-(a+w)):this.aM(h,a),this.ida(h,w),this.E8()))};a.Bb.prototype.$R=function(){return null==this.aDa?!1:-1!=a.Z.Zb(this.aDa,"zoom")};a.Bb.prototype.l5a=function(){return"off"!==this.vUa};a.Bb.prototype.ha=function(q,w,x){if(null==q){var h=this.Wa,d=this.ub,f=this.pt(),b=this.rw(f);null!=f&&0!=b&&(this.YFa=a.Fi.Ph(h,d,b,this.Ra));this.di()}null!=
w&&null!=x&&(this.Ra=w,this.fb=x);q&&(q=this.Av(q),this.Bp(q));q=null!=this.yb||null!=this.ta;this.sHa(w,x);q&&this.N1a(w,x);this.b9a(w,x);this.j6a(w,x);this.V8a(w,x);this.Ava(w,x);q&&(this.z1a(w,x),this.aS()&&(this.LU=this.M1a()),this.a9a());null!=this.BEa&&(this.cna=Math.max(0,a.Fi.Ic(this.Wa,this.ub,this.BEa,this.Sa)));0<this.cna&&this.W5a(this.cna)};a.Bb.prototype.pJa=function(){return new B(this)};a.Bb.prototype.Av=function(a){return this.pJa(a).parse(a)};a.Bb.prototype.Bp=function(a){this.Wa=
a.start;this.ub=a.end;this.Sa=a.width;this.YFa=a.hwa;this.O_=a.currentTime;this.BEa=a.i5a;this.vUa=a.$Ga;this.Jz=Math.max(0,a.U5a);this.MU=Math.max(0,a.V6a);isNaN(this.Jz)&&(this.Jz=0);isNaN(this.MU)&&(this.MU=0);this.DYa=a.orientation;this.GYa=a.SKa;this.ZXa=a.Pua;null!=a.OHa&&(this.aDa=a.OHa.split(" "));null!=a.eva&&0<a.eva&&(this.aFa=a.eva);this.MUa=a.e1a;this.p3=a.rMa;null!=a.rMa&&(this.o3=this.p3.J8a);this.Bla=a.l2a;this.NUa=a.borderTopStyle;this.fka=a.borderTopColor;this.Haa=a.Lxa;this.n0a=
a.zMa;this.v0a=a.Txa;this.t0a=a.Rxa;this.p0a=a.Nxa;this.r0a=a.Pxa;this.u0a=a.Sxa;this.s0a=a.Qxa;this.o0a=a.Mxa;this.q0a=a.Oxa;this.MXa=a.iua;this.H0=a.gua;this.Ima=a.MJa;this.tEa=a.PJa;this.qEa=a.NJa;this.FYa=a.xva;this.SVa=a.wra;this.a0a=a.Gxa;this.Z_a=a.pMa;this.$_a=a.qMa;this.QEa=a.xKa;this.kYa=a.wKa;this.aGa=a.kLa;this.x_a=a.jLa};a.Bb.prototype.Ic=function(q){return Math.max(0,a.Fi.Ic(this.Wa,this.ub,q,this.FL()))+this.Jz};a.Bb.prototype.Ph=function(q){return a.Fi.Ph(this.Wa,this.ub,Math.max(0,
q-this.Jz),this.FL())};a.Bb.prototype.dg=function(){return"true"==this.ZXa};a.Bb.prototype.Xq=function(){return this.dg()&&!this.Ia()};a.Bb.prototype.Ia=function(){return"vertical"==this.DYa};a.Bb.prototype.tca=function(){return"above"==this.GYa};a.Bb.prototype.FL=function(){return this.Ia()?this.fb-this.Jz-this.MU:this.Ra-this.Jz-this.MU};a.Bb.prototype.Jba=function(){return this.Ia()?this.fb-this.MU:this.Ra-this.MU};a.Bb.prototype.Kba=function(){return null!=this.foa?this.foa:null!=this.aFa?this.foa=
a.Fi.Ic(this.Wa,this.ub,this.Wa+this.aFa,this.FL()):a.Bb.$Oa};a.Bb.prototype.xba=function(){return a.Fi.bj()?this.mV()/2:0};a.Bb.prototype.mV=function(){return a.Fi.bj()?30:10};a.Bb.prototype.bS=function(a){var w=a.getId();return"lh"==w||"rh"==w||"lhb"==w||"rhb"==w||"grpy"==w||"lbgrh"==w||"rbgrh"==w||null!=a.getParent()&&"grpy"==a.getParent().getId()};a.Bb.prototype.OR=function(){if(null==this.p3)return 0;if(null==this.r3){var q=parseInt(this.p3.width,10);this.r3=!isNaN(q)&&q<this.Ra?q:a.Bb.MNa}return this.r3};
a.Bb.prototype.uE=function(){if(null==this.p3)return 0;if(null==this.xGa){var q=parseInt(this.p3.height,10);this.xGa=!isNaN(q)&&q<this.fb?q:a.Bb.HNa}return this.xGa};a.Bb.prototype.Pba=function(q){return a.Fi.bj()&&null!=q.targetTouches?0<q.targetTouches.length?q.targetTouches[0].pageX:null:q.pageX};a.Bb.prototype.Qba=function(q){return a.Fi.bj()&&null!=q.targetTouches?0<q.targetTouches.length?q.targetTouches[0].pageY:null:q.pageY};a.Bb.prototype.PC=function(){return!1};a.Bb.prototype.pt=function(){return this.dc(1)};
a.Bb.prototype.Dba=function(){return this.PC()?this.dc(3):null};a.Bb.prototype.m5=function(){return this.PC()?this.dc(4):null};a.Bb.prototype.OIa=function(){return this.PC()&&!this.$R()?this.dc(5):null};a.Bb.prototype.rta=function(){return this.PC()&&!this.$R()?this.dc(6):null};a.Bb.prototype.Rsa=function(){return this.dc(this.Vc()-this.KK)};a.Bb.prototype.sta=function(){return this.dc(this.Vc()-(this.KK-1))};a.Bb.prototype.PIa=function(){return this.dc(this.Vc()-(this.KK-2))};a.Bb.prototype.vJa=
function(){return this.dc(this.Vc()-(this.KK-3))};a.Bb.prototype.gIa=function(){return this.dc(this.Vc()-(this.KK-4))};a.Bb.prototype.IJa=function(){return this.dc(this.Vc()-(this.KK-5))};a.Bb.prototype.hW=function(a,w,x){this.Ia()?(-1!=w&&a.Eh(w),-1!=x&&a.wh(x)):(-1!=w&&a.Pi(w),-1!=x&&a.ni(x))};a.Bb.prototype.S4=function(a){return this.Ia()?a.tl():a.Wk()};a.Bb.prototype.CK=function(a){a=a.target;if(null!=a){var w=a.getId();if(null==w)return null;if("_border"==w.substr(w.length-7))return this.pIa(a);
if("tick"!=w.substr(0,4)&&"ltb"!=w&&"rtb"!=w&&"bb"!=w&&"tab"!=w)return a}return null};a.Bb.prototype.mKa=function(a){return"window"==a.getId()||"ftr"==a.getId()||"sta"==a.getId()||this.bS(a)?!0:!1};a.Bb.prototype.aS=function(){return window&&window.aS};a.Bb.prototype.sHa=function(q,w){var x=new a.Rect(this.a,0,0,q,w,"bg");x.ab(this.FYa);x.dd(!0);this.B(x);return x};a.Bb.prototype.N1a=function(q,w){var x=this.Ia(),h=x?new a.Rect(this.a,0,0,q,0,"window"):new a.Rect(this.a,0,0,0,w,"window");h.ab(this.Haa,
this.n0a);h.dd(!0);if(!this.$R()){var d=this.mV(),f=this.xba();if(x){var b=(q-36)/2,e=a.F.moveTo(b,0)+a.F.Qg(b+3,6,b+8,8)+a.F.lineTo(b+28,8)+a.F.Qg(b+33,6,b+36,0);a.F.closePath();var l=a.F.moveTo(b,0)+a.F.Qg(b+3,-6,b+8,-8)+a.F.lineTo(b+28,-8)+a.F.Qg(b+33,-6,b+36,0);a.F.closePath();var g=new a.Rect(this.a,0,0,q,d,"lhb"),d=new a.Rect(this.a,0,0,q,d,"rhb"),B="row-resize";if(this.Ima)var r=this.Yaa(q,10),b=this.Yaa(q,10);else r=this.Xaa(b),b=this.Xaa(b)}else b=(w-36)/2,e=a.F.moveTo(0,b)+a.F.Qg(6,b+3,
8,b+8)+a.F.lineTo(8,b+28)+a.F.Qg(6,b+33,0,b+36),a.F.closePath(),l=a.F.moveTo(0,b)+a.F.Qg(-6,b+3,-8,b+8)+a.F.lineTo(-8,b+28)+a.F.Qg(-6,b+33,0,b+36),a.F.closePath(),g=new a.Rect(this.a,0-f,0,d,w,"lhb"),d=new a.Rect(this.a,f,0,d,w,"rhb"),B="col-resize",this.Ima?(r=this.Yaa(10,w),b=this.Yaa(10,w)):(r=this.Xaa(b),b=this.Xaa(b));g.ab(this.Haa,0);d.ab(this.Haa,0);g.dd(!0);d.dd(!0);e=new a.Ib(this.a,e,"lh");l=new a.Ib(this.a,l,"rh");e.ab(this.H0);e.wc(this.H0);l.ab(this.H0);l.wc(this.H0);this.Haa==this.H0&&
(e.dd(!0),l.dd(!0));g.setCursor(B);d.setCursor(B);e.setCursor(B);l.setCursor(B);r.setCursor(B);b.setCursor(B);h.B(g);h.B(e);h.B(r);h.B(d);h.B(l);h.B(b)}h.setCursor("move");this.B(h);h=x?this.dg()?new a.Hb(this.a,this.OR(),0,this.OR(),w,"tab"):new a.Hb(this.a,q-this.OR(),0,q-this.OR(),w,"tab"):this.tca()?new a.Hb(this.a,0,this.uE(),q,this.uE(),"tab"):new a.Hb(this.a,0,w-this.uE(),q,w-this.uE(),"tab");h.wc(this.Z_a,this.$_a);h.dd(!0);this.yGa=h;this.B(h);this.PC()&&(x?(h=new a.Rect(this.a,0,0,q,0,"lbg"),
g=new a.Rect(this.a,0,0,q,0,"rbg")):(h=new a.Rect(this.a,0,0,0,w,"lbg"),g=new a.Rect(this.a,0,0,0,w,"rbg")),h.ab(this.QEa,this.kYa),this.B(h),g.ab(this.aGa,this.x_a),this.B(g),a.Fi.bj()&&void 0!=f&&(this.xba(),x?(x=new a.Rect(this.a,0,0,q,f,"lbgrh"),f=new a.Rect(this.a,0,0,q,f,"rbgrh")):(x=new a.Rect(this.a,0,0,f,w,"lbgrh"),f=new a.Rect(this.a,0,0,f,w,"rbgrh")),x.ab(this.QEa,0),this.B(x),f.ab(this.aGa,0),this.B(f)))};a.Bb.prototype.Yaa=function(q,w){var x=new a.Image(this.a,this.Ima,(q-this.tEa)/
2,(w-this.qEa)/2,this.tEa,this.qEa,"grpy");x.Qc(!1);return x};a.Bb.prototype.Xaa=function(q){var w=new a.ba(this.a,"grpy"),x=this.MXa;if(this.Ia()){var h=8+q;q=3;for(var d=0;9>d;d++){var f=new a.Hb(this.a,h+2*d,q,h+2*d+1,q,"dot1"+d);f.wc(x);w.B(f);q+=2;f=new a.Hb(this.a,h+1+2*d,q,h+1+2*d+1,q,"dot2"+d);f.wc(x);w.B(f);q+=2;f=new a.Hb(this.a,h+2*d,q,h+2*d+1,q,"dot3"+d);f.wc(x);w.B(f);q=3}f=new a.Hb(this.a,h+18,q,h+18+1,q,"dot4");f.wc(x);w.B(f);q+=4;f=new a.Hb(this.a,h+18,q,h+18+1,q,"dot5")}else{h=3;
q=8+q;for(d=0;9>d;d++)f=new a.Hb(this.a,h,q+2*d,h,q+2*d+1,"dot1"+d),f.wc(x),w.B(f),h+=2,f=new a.Hb(this.a,h,q+1+2*d,h,q+1+2*d+1,"dot2"+d),f.wc(x),w.B(f),h+=2,f=new a.Hb(this.a,h,q+2*d,h,q+2*d+1,"dot3"+d),f.wc(x),w.B(f),h=3;f=new a.Hb(this.a,h,q+18,h,q+18+1,"dot4");f.wc(x);w.B(f);h+=4;f=new a.Hb(this.a,h,q+18,h,q+18+1,"dot5")}f.wc(x);w.B(f);w.dd(!0);return w};a.Bb.prototype.a9a=function(){var q=this.Ia(),w=this.pt(),x=this.FL(),h=q?this.fb:this.Ra,d=this.Sa,f=this.Wa,b=this.ub,q=this.YFa,e=a.Fi.Ph(f,
b,0,d),d=a.Fi.Ph(f,b,h,d),e=this.Ic(e),h=Math.min(h,this.Ic(d)),q=this.Ic(q),h=h-e;this.Xq()?this.aM(w,x-q-h):this.aM(w,q);this.ida(w,h);this.E8();this.kH=this.m1a(x)};a.Bb.prototype.z1a=function(q,w){var x=this.pt(),h=a.Bb.wAa/2;if(this.Ia())var d=x.zb(),f=d+h,b=d+x.getHeight(),e=b-h,l=0,g=h,B=q-h,h=new a.Hb(this.a,l,f,q,f,"lh"),r=new a.Hb(this.a,l,e,q,e,"rh"),k=new a.Hb(this.a,g,0,g,d,"ltb"),y=new a.Hb(this.a,g,b,g,w,"rtb"),e=new a.Hb(this.a,B,d,B,b,"bb"),d=new a.Hb(this.a,g,d,g,b,"tb");else d=
0,f=d+h,b=w,e=b-h,l=x.ob(),g=l+h,x=l+x.getWidth(),B=x-h,h=new a.Hb(this.a,g,d,g,b,"lh"),r=new a.Hb(this.a,B,d,B,b,"rh"),k=new a.Hb(this.a,0,f,l+1,f,"ltb"),y=new a.Hb(this.a,x-1,f,q,f,"rtb"),e=new a.Hb(this.a,l,e,x,e,"bb"),d=new a.Hb(this.a,l,f,x,f,"tb");h.dd(!0);r.dd(!0);k.dd(!0);y.dd(!0);e.dd(!0);d.dd(!0);"none"!=this.r0a&&h.wc(this.q0a);this.B(h);"none"!=this.t0a&&r.wc(this.s0a);this.B(r);"none"!=this.NUa&&this.fka&&(k.wc(this.fka),y.wc(this.fka));this.B(k);this.B(y);"none"!=this.p0a&&e.wc(this.o0a);
this.B(e);"none"!=this.v0a&&d.wc(this.u0a);this.B(d)};a.Bb.prototype.M1a=function(){var q=this.Ia()?a.F.moveTo(6,0)+a.F.lineTo(0,5)+a.F.lineTo(5,5)+a.F.lineTo(5,17)+a.F.lineTo(0,17)+a.F.lineTo(6,22)+a.F.lineTo(12,17)+a.F.lineTo(7,17)+a.F.lineTo(7,5)+a.F.lineTo(12,5)+a.F.closePath():a.F.moveTo(5,0)+a.F.lineTo(0,6)+a.F.lineTo(5,12)+a.F.lineTo(5,7)+a.F.lineTo(17,7)+a.F.lineTo(17,12)+a.F.lineTo(22,6)+a.F.lineTo(17,0)+a.F.lineTo(17,4)+a.F.lineTo(5,4)+a.F.lineTo(5,0)+a.F.closePath(),q=new a.Ib(this.a,q,
"arr");q.ab("#ffffff");q.wc("#000000");q.Oi(!1);this.B(q);return q};a.Bb.prototype.Hy=function(a){return this.Ia()?a.getHeight():a.getWidth()};a.Bb.prototype.k8a=function(a,w){this.Ia()?a.Tb(w):a.qb(w)};a.Bb.prototype.rw=function(a){return this.Ia()?a.Rb():a.Jb()};a.Bb.prototype.aM=function(q,w){w=Math.max(0,w);this.Ia()?q.wb(w):q.Ja(w);if(this.PC()){this.Dba().qb(w);var x=w+this.o5(q),h=this.m5();h.qa(x);h.qb(Math.max(0,this.Ra-x));a.Fi.bj()&&!this.$R()&&(h=this.xba(),this.OIa().qa(w-h),this.rta().qa(x))}};
a.Bb.prototype.o5=function(a){return this.Hy(a)};a.Bb.prototype.ida=function(q,w){w=Math.max(this.Kba(),w);w=Math.min(this.Ia()?this.fb:this.Ra,w);this.k8a(q,w);if(this.PC()){var x=this.rw(q)+w,h=this.m5();h.qa(x);h.qb(Math.max(0,this.Ra-x));a.Fi.bj()&&!this.$R()&&this.rta().qa(x)}if(!this.$R()){var x=q.dc(3),h=q.dc(4),d=q.dc(5);this.Ia()?(h.wb(w),x.wb(w-this.mV()),d.wb(w-10)):(h.Ja(w),x.Ja(w-this.mV()),d.Ja(w-10))}};a.Bb.prototype.m1a=function(q){var w=this.Sa,x=this.Wa,h=this.ub,d=a.Fi.Ph(x,h,1,
q);q=a.Fi.Ph(x,h,2,q);d=a.Fi.Ic(x,h,d,w);return a.Fi.Ic(x,h,q,w)-d};a.Bb.prototype.b9a=function(q,w){if(null!=this.o3)for(var x=this.Ia(),h=this.FL(),d=0;d<this.o3.length;d++){var f=this.o3[d],b=this.Ic(parseInt(f.time,10)),f=f.label,e=0,e=d+1<this.o3.length?this.Ic(parseInt(this.o3[d+1].time,10))-b:h-b;this.Xq()&&(b=h-b);x&&(e=this.Ra);e-=2*a.Bb.tAa;this.O3(b,q,w,"tick"+d);this.Cqa(b,f,q,w,e,"label"+d)}};a.Bb.prototype.O3=function(q,w,x,h){q=this.Ia()?new a.Hb(this.a,0,q,w,q,h):new a.Hb(this.a,q,
0,q,x,h);w=new a.na(this.a0a);w.Xa(a.sb.sv,3);q.Ga(w);q.dd(!0);this.B(q)};a.Bb.prototype.Cqa=function(q,w,x,h,d,f,b){b=b||new a.j("font-weight:bold");this.Ia()?(w=new a.J(this.a,w,4,q,f),w.tb(b),this.dg()&&(this.B(w),b=w.ga(),this.removeChild(w),w.qa(Math.max(4,this.Ra-b.b-4)))):(h=this.tca()?2:h-this.uE()+2,x=a.Bb.tAa,w=new a.J(this.a,w,q+x,h,f),w.tb(b),this.Xq()&&(this.B(w),b=w.ga(),this.removeChild(w),w.qa(q-Math.min(b.b,d)-x)));a.ea.Xc(w,d,Infinity,this);w.qZa=w.Dm()};a.Bb.prototype.V8a=function(q,
w){if(!(null==this.O_||isNaN(this.O_)||this.O_<this.Wa||this.O_>this.ub)){var x=this.Ic(this.O_);this.Ia()?x=new a.Hb(this.a,0,x,q,x,"ocd"):(this.dg()&&(x=q-x),x=new a.Hb(this.a,x,0,x,w,"ocd"));x.wc(this.SVa);x.dd(!0);this.B(x)}};a.Bb.prototype.j6a=function(a,w){if(null!=this.Bla)for(var x=0;x<this.Bla.length;x++)this.F0a(this.Bla[x],a,w)};a.Bb.prototype.F0a=function(q,w,x){var h=parseInt(q.rs,10),d=parseInt(q.re,10);q=q.c;if(null!=h&&null!=d){var f=this.FL(),h=this.Ic(h),d=this.Ic(d)-h;this.Xq()&&
(h=f-h-d);w=this.Ia()?new a.Rect(this.a,0,h,w-this.OR(),d,"ftr"):new a.Rect(this.a,h,this.tca()?this.uE():0,d,x-this.uE(),"ftr");null!=q&&w.ab(q,.4);w.setCursor("move");w.dd(!0);this.B(w)}};a.Bb.prototype.Ava=function(){};a.Bb.prototype.Qqa=function(q){var w=this.pt();w.dc(3);w.dc(4);w.dc(5);if(q!=this.rw(w)){var x=this.Rsa(),h=this.sta(),d=this.PIa(),f=this.vJa(),b=this.gIa(),e=this.IJa();if(this.Ia())var l=w.Rb,g=w.wb,B=x.tl,r=x.Eh,k=x.Yl,y=x.wh,t=h.tl,F=h.Eh,C=h.Yl,D=h.wh,v=d.Yl,z=d.wh,m=f.tl,
A=f.Eh,J=b.tl,Q=b.Eh,E=b.Yl,ha=b.wh,ia=e.tl,da=e.Eh,ea=e.Yl,aa=e.wh;else l=w.Jb,g=w.Ja,B=x.Wk,r=x.Pi,k=x.sl,y=x.ni,t=h.Wk,F=h.Pi,C=h.sl,D=h.ni,v=d.sl,z=d.ni,m=f.Wk,A=f.Pi,J=b.Wk,Q=b.Pi,E=b.sl,ha=b.ni,ia=e.Wk,da=e.Pi,ea=e.sl,aa=e.ni;var W=this.Jz,Y=this.Jba(),R=this.o5(w);q=Math.max(W,Math.min(Y-R,q));W=this.l5a()?new a.L(this.a,.5,0,a.kc.FE):null;this.bt(W,w,l,g,q);this.bt(W,x,B,r,q);this.bt(W,x,k,y,q);this.bt(W,h,t,F,q+R);this.bt(W,h,C,D,q+R);this.bt(W,d,v,z,q+1);this.bt(W,f,m,A,q+R-1);this.bt(W,
b,J,Q,q);this.bt(W,e,ia,da,q);this.bt(W,b,E,ha,q+R);this.bt(W,e,ea,aa,q+R);this.PC()&&(w=this.Dba(),this.bt(W,w,w.getWidth,w.qb,q),R=q+R,w=this.m5(),x=w.getWidth,h=w.qb,d=w.ob,f=w.qa,b=this.Ia()?this.fb:this.Ra,this.bt(W,w,x,h,b-R),this.bt(W,w,d,f,R),a.Fi.bj()&&!this.$R()&&(w=this.xba(),x=this.OIa(),h=x.ob,d=x.qa,f=this.rta(),b=f.ob,e=f.qa,this.bt(W,x,h,d,q-w),this.bt(W,f,b,e,R)));null!=W&&W.play()}};a.Bb.prototype.bt=function(q,w,x,h,d){null!=q?q.X(a.L.za,w,x,h,d):h.call(w,d)};a.Bb.prototype.P7=
function(q){var w=this.CK(q);if(w&&"bg"!=w.getId()&&"ocd"!=w.getId())if("label"==w.getId().substr(0,5)&&(w instanceof a.J||w instanceof a.Sb))w.ao()&&this.a.ef().NE(q.pageX,q.pageY,w.qZa,"#000000");else if(null!=this.LU&&this.bS(w)&&(q=this.a.$d(q.pageX,q.pageY),q=this.zf(q),this.Ia()?this.LU.rb(q.x+6,q.y-10):this.LU.rb(q.x-6,q.y-20),this.LU.Oi(!0)),"window"==w.getId()||"ftr"==w.getId()||"arr"==w.getId()||this.bS(w))this.aS()&&this.setCursor("move");else return w};a.Bb.prototype.O7=function(a){null==
this.wu&&this.setCursor("default");a=this.CK(a);if(null!=a)return this.bS(a)&&null!=this.LU&&this.LU.Oi(!1),a};a.Bb.prototype.MM=function(q,w,x){q.stopPropagation();var h=this.CK(q);if(h&&"window"!=h.getId()&&!this.bS(h))if("bg"==h.getId()||"label"==h.getId().substr(0,5)||"ocd"==h.getId()||"lbg"==h.getId()||"rbg"==h.getId()){void 0==w&&(w=q.pageX);void 0==x&&(x=q.pageY);q=this.a.$d(w,x);q=this.zf(q);this.Ia()?(x=q.y,h=this.fb):(x=q.x,h=this.Ra);q=this.pt();w=x-this.Hy(q)/2;this.Qqa(w);this.Xq()&&
(x=this.Ra-x);var d=this.Ph(x);x=new a.Tc(a.Tc.aZ);x.setTime(d);w=Math.max(0,Math.min(w,h-this.Hy(q)));this.Xq()?(h=this.Ph(this.Ra-(w+this.Hy(q))),q=this.Ph(this.Ra-w)):(h=this.Ph(w),q=this.Ph(w+this.Hy(q)));x.fda(h);x.eda(q);this.dispatchEvent(x)}else return h};a.Bb.prototype.HQ=function(q,w,x){q=this.CK(q);if(null!=q&&this.mKa(q)){if("ftr"==q.getId()||"sta"==q.getId())q=this.pt();this.z$=w;this.AEa=x;if(this.bS(q)){w=this.pt();this.Xq()?(this.ooa=this.Ra-w.ob(),this.poa=this.ooa-w.getWidth()):
(this.poa=w.ob(),this.ooa=this.poa+w.getWidth());"grpy"==q.getParent().getId()&&(q=q.getParent());x=q.getId();"grpy"==x&&(q=w.qba(q),x=q.getId());if("lh"==x||"rh"==x)q=w.qba(q),x=q.getId();"lbgrh"==x&&(q=w.dc(0));"rbgrh"==x&&(q=w.dc(w.Vc()-3));a.Fi.bj()||(this.Ia()?(q.Za(0-a.Bb.M7),q.Tb(2*(q.getHeight()+a.Bb.M7))):(q.qa(0-a.Bb.M7),q.qb(2*(q.getWidth()+a.Bb.M7))));this.h6a(q.getCursor())}this.wu=q;q=new a.Tc(a.Tc.fha);this.dispatchEvent(q);return!0}return!1};a.Bb.prototype.h6a=function(a){var w=this.pt();
null!=w&&w.setCursor(a);if(this.PC()){var w=this.Dba(),x=this.m5();null!=w&&null!=x&&(w.setCursor(a),x.setCursor(a))}};a.Bb.prototype.Q6a=function(){var a=this.pt();null!=a&&a.setCursor("move");if(this.PC()){var a=this.Dba(),w=this.m5();null!=a&&null!=w&&(a.setCursor("default"),w.setCursor("default"))}};a.Bb.prototype.kE=function(){null!=this.wu&&1==this.mU&&("window"==this.wu.getId()?this.PHa(0,0):this.bS(this.wu)&&(this.Ira(),a.Fi.bj()||(this.Ia()?(this.wu.Za(0),this.wu.Tb(this.mV())):(this.wu.qa(0),
this.wu.qb(this.mV()))),this.Q6a()),this.mU=!1,this.wu=null,this.z$=-1)};a.Bb.prototype.W3=function(a,w,x){if(null!=this.wu&&-1!=this.z$){this.mU=!0;var h=w-this.z$,d=x-this.AEa;this.z$=w;this.AEa=x;"window"==this.wu.getId()?this.QJa(0,h,d):"lh"==this.wu.getId()||"lhb"==this.wu.getId()?this.Z4a(a,h,d):"rh"!=this.wu.getId()&&"rhb"!=this.wu.getId()||this.hua(a,h,d)}};a.Bb.prototype.pT=function(a){var w=a.touches;this.WU=w[0].pageX;this.wQ=w[0].pageY;2==w.length&&(a.preventDefault(),this.XU=w[1].pageX,
this.x3=w[1].pageY,20>Math.abs(this.wQ-this.x3)?this.Ns=0:this.x3=this.XU=this.wQ=this.WU=null)};a.Bb.prototype.Zya=function(a){a.preventDefault();a=a.touches;if(null!=this.XU&&null!=this.x3)50>this.Ns?this.Ns++:(this.hua(null,a[1].pageX-this.XU,0),this.XU=a[1].pageX,this.Ns=0);else{var w=Math.abs(this.wQ-a[0].pageY);if(3<Math.abs(this.WU-a[0].pageX)||3<w)this.wQ=this.WU=null}};a.Bb.prototype.R7=function(a){null!=this.XU&&null!=this.x3?this.Ira():null!=this.WU&&null!=this.wQ&&this.MM(a,this.WU,this.wQ);
this.x3=this.XU=this.wQ=this.WU=null};a.Bb.prototype.KM=function(q){var w=q.keyCode;if(w===a.KeyboardEvent.Te||w===a.KeyboardEvent.Ke)w=w===a.KeyboardEvent.Te?-1:1,(q.shiftKey?this.hua:this.QJa).call(this,q,w,w)};a.Bb.prototype.yfa=function(q){var w=q.keyCode;if(w===a.KeyboardEvent.Te||w===a.KeyboardEvent.Ke)w=w===a.KeyboardEvent.Te?-1:1,(q.shiftKey?this.Ira:this.PHa).call(this,w,w)};a.Bb.prototype.W5a=function(a){a/=this.kH;this.Xq()&&(a=0-a);this.Qqa(a)};a.Bb.prototype.QJa=function(q,w,x){this.QHa(a.Tc.gha,
w,x)};a.Bb.prototype.PHa=function(q,w){this.QHa(a.Tc.Kza,q,w)};a.Bb.prototype.QHa=function(q,w,x){var h=this.pt(),d=this.rw(h),f=this.Hy(h),b=this.Jz,e=this.Jba();w=this.Ia()?x:w;d+w<=b?(this.aM(h,b),f=this.Xq()?a.Tc.B7:a.Tc.s8):d+f+w>=e?(this.aM(h,e-f),f=this.Xq()?a.Tc.s8:a.Tc.B7):(this.aM(h,d+w),f=this.Xq()?(e-f-d-this.Jz)*this.kH:(d-this.Jz)*this.kH);this.E8();q=new a.Tc(q);q.setPosition(f);this.Xq()?(f=this.Ph(this.Ra-(d+this.Hy(h))),h=this.Ph(this.Ra-d)):(f=this.Ph(d),h=this.Ph(d+this.Hy(h)));
q.fda(f);q.eda(h);this.dispatchEvent(q)};a.Bb.prototype.Z4a=function(a,w,x){this.OJa(a,w,x,!0)};a.Bb.prototype.hua=function(a,w,x){this.OJa(a,w,x,!1)};a.Bb.prototype.OJa=function(q,w,x,h){var d=this.FL();x=this.Ia()?x:w;if(0!=x){w=this.pt();var f=this.rw(w),b=this.o5(w);if(h){if(b-x<=this.Kba()||f+x<=this.Jz)return;q=this.Ia()?this.a.$d(this.Pba(q),this.Qba(q)).y:this.a.$d(this.Pba(q),this.Qba(q)).x;q=this.zf(q);if(0<x&&q<=f||0>x&&q>=f)return;this.aM(w,f+x);this.ida(w,b-x)}else{if(b+x<=this.Kba()||
f+b+x>=this.Jba())return;q=this.Ia()?this.a.$d(this.Pba(q),this.Qba(q)).y:this.a.$d(this.Pba(q),this.Qba(q)).x;q=this.zf(q);if(0<x&&q<=f+b||0>x&&q>=f+b)return;this.ida(w,b+x)}this.E8();q=this.Ph(this.o5(w));q=d*(this.ub-this.Wa)/(q-this.Wa);d=new a.Tc(a.Tc.Jza);d.RLa(q);d.J7a(this.Xq()?h:!h);h?d.CLa(0>x):d.CLa(0<x);this.Xq()?(h=this.Ph(this.Ra-(this.rw(w)+this.Hy(w))),w=this.Ph(this.Ra-this.rw(w))):(h=this.Ph(this.rw(w)),w=this.Ph(this.rw(w)+this.Hy(w)));d.fda(h);d.eda(w);this.dispatchEvent(d)}};
a.Bb.prototype.Ira=function(){var q=this.Wa,w=this.ub,x=this.Sa,h=this.FL(),d=this.pt(),f=this.Ph(this.Hy(d)),q=h*(w-q)/(f-q),w=this.Ph(this.poa),h=this.Ph(this.ooa);this.Xq()?(f=this.Ph(this.Ra-(this.rw(d)+this.Hy(d))),d=this.Ph(this.Ra-this.rw(d))):(f=this.Ph(this.rw(d)),d=this.Ph(this.rw(d)+this.Hy(d)));var b=new a.Tc(a.Tc.B8);b.f8a(x);b.RLa(q);b.g8a(w);b.d8a(h);b.fda(f);b.eda(d);this.dispatchEvent(b)};a.Bb.prototype.E8=function(){var q=this.pt(),w=a.Bb.wAa/2,x=this.rw(q),h=x+w,q=x+this.o5(q)-
w,w=this.Rsa(),d=this.sta(),f=this.PIa(),b=this.vJa(),e=this.gIa(),l=this.IJa();this.hW(w,h,h);this.hW(d,q,q);this.hW(f,-1,x);this.hW(b,this.S4(d),-1);this.hW(e,this.S4(w),this.S4(d));this.hW(l,this.S4(w),this.S4(d))};a.Bb.prototype.dispatchEvent=function(q){a.In.dispatchEvent(this.yb,this.ta,this,q)};a.Bb.prototype.vc=function(){this.u&&(this.u.Gm(this),this.u.vc(),this.u=null);a.Fi.bj()?(this.Uc(a.TouchEvent.yj,this.pT,!1,this),this.Uc(a.TouchEvent.Gq,this.Zya,!1,this),this.Uc(a.TouchEvent.im,this.R7,
!1,this),this.Uc(a.MouseEvent.Je,this.MM,!1,this)):(this.Uc(a.MouseEvent.vj,this.P7,!1,this),this.Uc(a.MouseEvent.Th,this.O7,!1,this),this.Uc(a.MouseEvent.Je,this.MM,!1,this),this.Uc(a.KeyboardEvent.Rm,this.KM,!1,this),this.Uc(a.KeyboardEvent.lo,this.yfa,!1,this));a.Bb.C.vc.call(this)};a.i.v(B,a.i);B.prototype.Init=function(a){this.La=a};B.prototype.parse=function(a){return this.AY(a)};B.prototype.AY=function(q){var w={};w.$Ga=q.animationOnClick;null!=q.startTime&&(w.start=q.startTime);null!=q.endTime&&
(w.end=q.endTime);null==w.start&&(w.start=(new Date).getTime());if(null==w.end||w.end<=w.start)w.end=w.start+864E5;null!=q.currentTime&&(w.currentTime=q.currentTime);null!=q.initialFocusTime&&(w.i5a=q.initialFocusTime);w.orientation="horizontal";null!=q.orientation&&(w.orientation=q.orientation);w.OHa=q.featuresOff;w.eva=q.minimumWindowSize;w.U5a=q.leftMargin;w.V6a=q.rightMargin;if(null!=q.viewportEndTime){var x=q.viewportEndTime,h=w.start;null!=q.viewportStartTime&&q.viewportStartTime<x&&(h=q.viewportStartTime);
w.width=null!=q.viewportEndPos?this.mHa(w.start,w.end,h,x,q.viewportEndPos):this.mHa(w.start,w.end,h,x,this.La.Ra);w.hwa=h}else w.hwa=w.start;0==w.width&&(w.width=1E3);w.SKa="below";w.wJ="none";w.Pua=a.m.ca(this.La.a).toString();null!=q.rtl&&(w.Pua=q.rtl.toString());w.gua="#FFFFFF";w.iua="#B3C6DB";w.Lxa="#FFFFFF";w.zMa=1;w.Txa="solid";w.Rxa="solid";w.Nxa="solid";w.Pxa="solid";w.Sxa="#4F4F4F";w.Qxa="#4F4F4F";w.Mxa="#4F4F4F";w.Oxa="#4F4F4F";w.xva="#E6ECF3";w.wra="#C000D1";w.Gxa="#BCC7D2";w.pMa="#e5e5e5";
w.qMa=1;w.xKa="#FFFFFF";w.wKa=.7;w.kLa="#FFFFFF";w.jLa=.7;null!=q.style&&(null!=q.style.handleFillColor&&(w.gua=q.style.handleFillColor),null!=q.style.handleTextureColor&&(w.iua=q.style.handleTextureColor),null!=q.style.handleBackgroundImage&&(w.MJa=q.style.handleBackgroundImage),null!=q.style.handleWidth&&(w.PJa=q.style.handleWidth),null!=q.style.handleHeight&&(w.NJa=q.style.handleHeight),null!=q.style.windowBackgroundColor&&(w.Lxa=q.style.windowBackgroundColor),null!=q.style.windowBackgroundAlpha&&
(w.zMa=q.style.windowBackgroundAlpha),null!=q.style.windowBorderTopStyle&&(w.Txa=q.style.windowBorderTopStyle),null!=q.style.windowBorderRightStyle&&(w.Rxa=q.style.windowBorderRightStyle),null!=q.style.windowBorderBottomStyle&&(w.Nxa=q.style.windowBorderBottomStyle),null!=q.style.windowBorderLeftStyle&&(w.Pxa=q.style.windowBorderLeftStyle),null!=q.style.windowBorderTopColor&&(w.Sxa=q.style.windowBorderTopColor),null!=q.style.windowBorderRightColor&&(w.Qxa=q.style.windowBorderRightColor),null!=q.style.windowBorderBottomColor&&
(w.Mxa=q.style.windowBorderBottomColor),null!=q.style.windowBorderLeftColor&&(w.Oxa=q.style.windowBorderLeftColor),null!=q.style.overviewBackgroundColor&&(w.xva=q.style.overviewBackgroundColor),null!=q.style.currentTimeIndicatorColor&&(w.wra=q.style.currentTimeIndicatorColor),null!=q.style.timeIndicatorColor&&(w.Gxa=q.style.timeIndicatorColor),null!=q.style.leftFilterPanelColor&&(w.xKa=q.style.leftFilterPanelColor),null!=q.style.leftFilterPanelAlpha&&(w.wKa=q.style.leftFilterPanelAlpha),null!=q.style.rightFilterPanelColor&&
(w.kLa=q.style.rightFilterPanelColor),null!=q.style.rightFilterPanelAlpha&&(w.jLa=q.style.rightFilterPanelAlpha));return w};B.prototype.mHa=function(a,w,x,h,d){a=d*(w-a);x=h-x;return 0==a||0==x?0:a/x};a.Tc=function(q){this.Init(a.Tc.Nd);this.vm=q};a.i.v(a.Tc,a.wg);a.Tc.Nd="overview";a.Tc.fha="dropCallback";a.Tc.aZ="scrollTime";a.Tc.gha="scrollPos";a.Tc.Kza="scrollEnd";a.Tc.B8="rangeChange";a.Tc.Jza="rangeChanging";a.Tc.Vza="time";a.Tc.pza="pos";a.Tc.nPa="oldSize";a.Tc.cPa="newSize";a.Tc.oPa="oldStartTime";
a.Tc.lza="newStartTime";a.Tc.mPa="oldEndTime";a.Tc.kza="newEndTime";a.Tc.WNa="expand";a.Tc.VNa="endHandle";a.Tc.s8=-1;a.Tc.B7=-2;a.Tc.prototype.setTime=function(q){this.$s(a.Tc.Vza,q)};a.Tc.prototype.getTime=function(){return this.CR(a.Tc.Vza)};a.Tc.prototype.f8a=function(q){this.$s(a.Tc.nPa,q)};a.Tc.prototype.RLa=function(q){this.$s(a.Tc.cPa,q)};a.Tc.prototype.g8a=function(q){this.$s(a.Tc.oPa,q)};a.Tc.prototype.fda=function(q){this.$s(a.Tc.lza,q)};a.Tc.prototype.a5=function(){return this.CR(a.Tc.lza)};
a.Tc.prototype.d8a=function(q){this.$s(a.Tc.mPa,q)};a.Tc.prototype.eda=function(q){this.$s(a.Tc.kza,q)};a.Tc.prototype.Z4=function(){return this.CR(a.Tc.kza)};a.Tc.prototype.CLa=function(q){this.$s(a.Tc.WNa,q)};a.Tc.prototype.J7a=function(q){this.$s(a.Tc.VNa,q)};a.Tc.prototype.setPosition=function(q){this.$s(a.Tc.pza,q)};a.Tc.prototype.bi=function(){return this.CR(a.Tc.pza)};a.i.v(E,a.u);E.prototype.Kf=function(){a.me.$U(this.Oc,this.EH,this.DH,this.CH,this)};E.prototype.EH=function(q){return a.m.mb()?
this.W1(q):this.P1(q)};E.prototype.DH=function(q){return a.m.mb()?this.V1(q):this.O1(q)};E.prototype.CH=function(q){return a.m.mb()?this.U1(q):this.N1(q)};E.prototype.Ss=function(q,w){this.kC||(this.kC=this.a.av());return new a.N(q-this.kC.x,w-this.kC.y)};E.prototype.P1=function(q){if(q.button!=a.MouseEvent.h8){var w=this.Ss(q.pageX,q.pageY);a.u.Zd(q);this.a.Fc.St.parentNode.focus();return this.Oc.HQ(q,w.x,w.y)}return!1};E.prototype.O1=function(a){var w=this.Ss(a.pageX,a.pageY);a.stopPropagation();
this.Oc.W3(a,w.x,w.y);return!0};E.prototype.N1=function(a){a.stopPropagation();this.Oc.kE();this.kC=null};E.prototype.W1=function(a){var w=a.touches;a.stopPropagation();return 1==w.length?(w=this.Ss(w[0].pageX,w[0].pageY),a.preventDefault(),this.Oc.HQ(a,w.x,w.y)):!1};E.prototype.V1=function(a){var w=a.touches;1==w.length&&(w=this.Ss(w[0].pageX,w[0].pageY),this.Oc.W3(a,w.x,w.y),a.preventDefault());a.stopPropagation()};E.prototype.U1=function(q){this.Oc.kE();a.u.Zd(q);this.kC=null};a.M(a,"Overview",
a.Bb);a.M(a.Bb.prototype,"render",a.Bb.prototype.ha)})(dvt);
  return dvt;
});
