t |
Q)?Q:(amQ)?\"max\":(am Y)?Y:(am Y)?\"max\":(am 0.5||am<-0.5){ac(c+am);requestAnimationFrame(U)}else{ac(c)}}}function N(){var al,am;if(S){al=Date.now()-v;am=-S*Math.exp(-al/o);if(am>0.5||am<-0.5){m(E+am);requestAnimationFrame(N)}else{m(E)}}}var y=function(al){if(!G.enableScrolling[H]){return true}if(!G.scrolling[H]){return true}if(C){al.preventDefault();al.stopPropagation()}var aq=G.getTouches(al);if(aq.length>1){return true}var am=aq[0].pageY;var ao=aq[0].pageX;if(G.simulatetouches){if(aq[0]._pageY!=undefined){am=aq[0]._pageY;ao=aq[0]._pageX}}var au=am-r;var av=ao-t;J=am;var at=ao;g=au-f;j=av-i;k=true;f=au;i=av;var an=x!=null?x[0].style.visibility!=\"hidden\":true;var ar=n!=null?n[0].style.visibility!=\"hidden\":true;function ap(ay){var aA,az,ax;if(F){aA=A(ay);ax=ae(ay);az=d-aA;V=ag-ax;var aw=\"value\";if(az>2||az<-2){d=aA;aw=ac(aa+az,ay);I();if(aw==\"min\"&&T===0){return true}if(aw==\"max\"&&T===Q){return true}if(!ar){return true}ay.preventDefault();ay.stopPropagation();C=true;return false}else{if(V>2||V<-2){ag=ax;aw=m(h+V,ay);I();if(aw==\"min\"&&ai===0){return true}if(aw==\"max\"&&ai===Y){return true}if(!an){return true}C=true;ay.preventDefault();ay.stopPropagation();return false}}ay.preventDefault()}}if(an||ar){if((an)||(ar)){ap(al)}}};if(p.on){p.on(ab,y)}else{p.bind(ab,y)}var s=function(am){if(!G.enableScrolling[H]){return true}var an=G.getTouches(am)[0];if(!G.scrolling[H]){return true}F=false;clearInterval(u);if(af>10||af<-10){S=0.8*af;c=Math.round(aa+S);v=Date.now();requestAnimationFrame(U)}else{if(O>10||O<-10){S=0.8*O;E=Math.round(h+S);v=Date.now();requestAnimationFrame(N)}else{}}G.scrolling[H]=false;if(k){G.dispatchMouseEvent(\"mouseup\",an,am.target)}else{var an=G.getTouches(am)[0],al=G.getRootNode(an.target);G.dispatchMouseEvent(\"mouseup\",an,al);G.dispatchMouseEvent(\"click\",an,al);return true}};if(this.simulatetouches){var q=b(window).on!=undefined||b(window).bind;var P=function(al){try{s(al)}catch(am){}G.scrolling[H]=false};b(window).on!=undefined?b(document).on(\"mouseup.touchScroll\",P):b(document).bind(\"mouseup.touchScroll\",P);if(window.frameElement){if(window.top!=null){var L=function(al){try{s(al)}catch(am){}G.scrolling[H]=false};if(window.top.document){b(window.top.document).on?b(window.top.document).on(\"mouseup\",L):b(window.top.document).bind(\"mouseup\",L)}}}var ak=b(document).on!=undefined||b(document).bind;var K=function(al){if(!G.scrolling[H]){return true}G.scrolling[H]=false;var an=G.getTouches(al)[0],am=G.getRootNode(an.target);G.dispatchMouseEvent(\"mouseup\",an,am);G.dispatchMouseEvent(\"click\",an,am)};b(document).on!=undefined?b(document).on(\"touchend\",K):b(document).bind(\"touchend\",K)}if(p.on){p.on(\"dragstart\",function(al){al.preventDefault()});p.on(\"selectstart\",function(al){al.preventDefault()})}p.on?p.on(D+\" touchcancel.touchScroll\",s):p.bind(D+\" touchcancel.touchScroll\",s)}});b.jqx.cookie=b.jqx.cookie||{};b.extend(b.jqx.cookie,{cookie:function(f,g,d){if(arguments.length>1&&String(g)!==\"[object Object]\"){d=b.extend({},d);if(g===null||g===undefined){d.expires=-1}if(typeof d.expires===\"number\"){var i=d.expires,e=d.expires=new Date();e.setDate(e.getDate()+i)}g=String(g);return(document.cookie=[encodeURIComponent(f),\"=\",d.raw?g:encodeURIComponent(g),d.expires?\"; expires=\"+d.expires.toUTCString():\"\",d.path?\"; path=\"+d.path:\"\",d.domain?\"; domain=\"+d.domain:\"\",d.secure?\"; secure\":\"\"].join(\"\"))}d=g||{};var c,h=d.raw?function(j){return j}:decodeURIComponent;return(c=new RegExp(\"(?:^|; )\"+encodeURIComponent(f)+\"=([^;]*)\").exec(document.cookie))?h(c[1]):null}});b.jqx.string=b.jqx.string||{};b.extend(b.jqx.string,{replace:function(g,e,f){if(e===f){return this}var c=g;var d=c.indexOf(e);while(d!=-1){c=c.replace(e,f);d=c.indexOf(e)}return c},contains:function(c,d){if(c==null||d==null){return false}return c.indexOf(d)!=-1},containsIgnoreCase:function(c,d){if(c==null||d==null){return false}return c.toString().toUpperCase().indexOf(d.toString().toUpperCase())!=-1},equals:function(c,d){if(c==null||d==null){return false}c=this.normalize(c);if(d.length==c.length){return c.slice(0,d.length)==d}return false},equalsIgnoreCase:function(c,d){if(c==null||d==null){return false}c=this.normalize(c);if(d.length==c.length){return c.toUpperCase().slice(0,d.length)==d.toUpperCase()}return false},startsWith:function(c,d){if(c==null||d==null){return false}return c.slice(0,d.length)==d},startsWithIgnoreCase:function(c,d){if(c==null||d==null){return false}return c.toUpperCase().slice(0,d.length)==d.toUpperCase()},normalize:function(c){if(c.charCodeAt(c.length-1)==65279){c=c.substring(0,c.length-1)}return c},endsWith:function(c,d){if(c==null||d==null){return false}c=this.normalize(c);return c.slice(-d.length)==d},endsWithIgnoreCase:function(c,d){if(c==null||d==null){return false}c=this.normalize(c);return c.toUpperCase().slice(-d.length)==d.toUpperCase()}});b.extend(b.easing,{easeOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*((g=g/i-1)*g*((h+1)*g+h)+1)+e},easeInQuad:function(f,g,e,i,h){return i*(g/=h)*g+e},easeInOutCirc:function(f,g,e,i,h){if((g/=h/2)<1){return -i/2*(Math.sqrt(1-g*g)-1)+e}return i/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e},easeInCubic:function(f,g,e,i,h){return i*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,i,h){return i*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g+e}return i/2*((g-=2)*g*g+2)+e},easeInSine:function(f,g,e,i,h){return -i*Math.cos(g/h*(Math.PI/2))+i+e},easeOutSine:function(f,g,e,i,h){return i*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e}})})(jqxBaseFramework);(function(b){if(b.event&&b.event.special){b.extend(b.event.special,{close:{noBubble:true},open:{noBubble:true},cellclick:{noBubble:true},rowclick:{noBubble:true},tabclick:{noBubble:true},selected:{noBubble:true},expanded:{noBubble:true},collapsed:{noBubble:true},valuechanged:{noBubble:true},expandedItem:{noBubble:true},collapsedItem:{noBubble:true},expandingItem:{noBubble:true},collapsingItem:{noBubble:true}})}if(b.fn.extend){b.fn.extend({ischildof:function(g){if(!b(this).parents){var c=g.element.contains(this.element);return c}var e=b(this).parents().get();for(var d=0;d =0){var c=b(this).find(\".jqx-widget\").data().jqxWidget;if(c&&c.val){return c.val()}}return a.call(this)}else{if(b(this).hasClass(\"jqx-widget\")){var c=b(this).data().jqxWidget;if(c&&c.val){if(arguments.length!=2){return c.val(d)}else{return c.val(d,arguments[1])}}}if(this[0]&&this[0].tagName.toLowerCase().indexOf(\"angular\")>=0){var c=b(this).find(\".jqx-widget\").data().jqxWidget;if(c&&c.val){if(arguments.length!=2){return c.val(d)}else{return c.val(d,arguments[1])}}}return a.call(this,d)}};if(b.fn.modal&&b.fn.modal.Constructor){b.fn.modal.Constructor.prototype.enforceFocus=function(){b(document).off(\"focusin.bs.modal\").on(\"focusin.bs.modal\",b.proxy(function(c){if(this.$element[0]!==c.target&&!this.$element.has(c.target).length){if(b(c.target).parents().hasClass(\"jqx-popup\")){return true}this.$element.trigger(\"focus\")}},this))}}b.fn.coord=function(n){var e,j,i={top:0,left:0},f=this[0],l=f&&f.ownerDocument;if(!l){return}e=l.documentElement;if(!b.contains(e,f)){return i}if(typeof f.getBoundingClientRect!==undefined){i=f.getBoundingClientRect()}var d=function(o){return b.isWindow(o)?o:o.nodeType===9?o.defaultView||o.parentWindow:false};j=d(l);var h=0;var c=0;var g=navigator.userAgent.toLowerCase();var m=g.indexOf(\"ipad\")!=-1||g.indexOf(\"iphone\")!=-1;if(m){h=2}if(true==n){if(document.body.style.position!=\"static\"&&document.body.style.position!=\"\"){var k=b(document.body).coord();h=-k.left;c=-k.top}}return{top:c+i.top+(j.pageYOffset||e.scrollTop)-(e.clientTop||0),left:h+i.left+(j.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}};b.jqx.ripplers=[];b.jqx.ripple=function(f,e,o){if(!e){e=f}var h=b(f);var j=false;h.append(\"\");var p=h.find(\".ink\");var c=false;for(var g=0;g \")}var r=d.find(\".ink\");r.removeClass(\"animate\");if(!r.height()&&!r.width()){var s=Math.max(d.outerWidth(),d.outerHeight());r.css({height:s,width:s})}if(o===\"checkbox\"||o===\"radiobutton\"){if(o===\"checkbox\"){if(e.jqxCheckBox(\"disabled\")){return}}if(o===\"radiobutton\"){if(e.jqxRadioButton(\"disabled\")){return}}var q=d.width()/2-r.width()/2;var t=d.height()/2-r.height()/2;r.css({top:t+\"px\",left:q+\"px\"}).addClass(\"animate\");r.on(\"animationend\",function(){if(b.jqx.ripple.mouseCaptured){r.removeClass(\"animate\");r.addClass(\"active\");f.addClass(\"active\")}});return}var q=i.pageX-d.offset().left-r.width()/2;var t=i.pageY-d.offset().top-r.height()/2;r.css({top:t+\"px\",left:q+\"px\"}).addClass(\"animate\")})})}})(jqxBaseFramework);\r\n\r\n","/*\r\njQWidgets v9.1.4 (2020-Apr)\r\nCopyright (c) 2011-2020 jQWidgets.\r\nLicense: https://jqwidgets.com/license/\r\n*/\r\n/* eslint-disable */\r\n\r\n(function(i){i.jqx.observableArray=function(e,J){if(typeof(e)==\"string\"){e=i.parseJSON(e)}if(!Object.defineProperty||!(function(){try{Object.defineProperty({},\"x\",{});return true}catch(M){return false}}())){var L=Object.defineProperty;Object.defineProperty=function(O,P,N){if(L){try{return L(O,P,N)}catch(M){}}if(O!==Object(O)){throw TypeError(\"Object.defineProperty called on non-object\")}if(Object.prototype.__defineGetter__&&(\"get\" in N)){Object.prototype.__defineGetter__.call(O,P,N.get)}if(Object.prototype.__defineSetter__&&(\"set\" in N)){Object.prototype.__defineSetter__.call(O,P,N.set)}if(\"value\" in N){O[P]=N.value}else{if(!O[P]){O[P]=N}}return O}}if(!Array.prototype.forEach){Array.prototype.forEach=function(N){if(this===void 0||this===null){throw TypeError()}var Q=Object(this);var M=Q.length>>>0;if(typeof N!==\"function\"){throw TypeError()}var P=arguments[1],O;for(O=0;O =0){if(N K.length){I.push.apply(I,new Array(N-K.length))}}}else{throw new RangeError(\"Invalid array length\")}return M}});i.jqx.observableArray.prototype.fromArray=function(O,N){var M=new i.jqx.observableArray(O,N);return M};i.jqx.observableArray.prototype.clone=function(){var M=new i.jqx.observableArray(K,J);M.observing=I.observing;M.changes=I.changes;M.notifier=I.notifier;return M};I.remove=function(N){if(N<0||N>=I.length){throw new Error(\"Invalid index : \"+N)}if(I.hasOwnProperty(N)){var M=I[N];I[N]=undefined;K[N]=undefined;if(typeof H===\"function\"){H({object:I,type:\"delete\",index:N,name:\"index\",newValue:undefined,oldValue:M})}return true}return false};I.concat=function(N,P){var M=K.concat(N);var O=new i.jqx.observableArray(M,P);return O};Object.getOwnPropertyNames(Array.prototype).forEach(function(M){if(!(M in I)){var N=function(){var Q=I.observing;I.observing=false;var P=K[M];var O=P.apply(K,arguments);I.observing=Q;return O};Object.defineProperty(I,M,{configurable:false,enumerable:true,writeable:false,value:N})}});I.set=function(N,P){if(i.type(N)==\"string\"&&N.split(\".\").length>1){var M=N.split(\".\");var Q=I;for(var O=0;O =I.length){throw new Error(\"Invalid Index: \"+N)}}if(O =I.length){I.push(P)}else{I[N]=P}return true};I.get=function(M){return I[M]};if(e instanceof Array){I.push.apply(I,e)}H=function(){if(!I.observing){return}if(arguments&&arguments[0]){I.changes.push(arguments[0])}if(J){J.apply(I,arguments)}if(I.notifier){I.notifier.apply(I,arguments)}};return I};i.jqx.formatDate=function(H,J,I){var e=i.jqx.dataFormat.formatdate(H,J,I);return e};i.jqx.formatNumber=function(H,J,I){var e=i.jqx.dataFormat.formatnumber(H,J,I);return e};i.jqx.dataAdapter=function(J,e){if(J!=undefined){if(J.dataFields!==undefined){J.datafields=J.dataFields}if(J.dataType!==undefined){J.datatype=J.dataType}if(J.localData!==undefined){J.localdata=J.localData}if(J.sortColumn!==undefined){J.sortcolumn=J.sortColumn}if(J.sortDirection!==undefined){J.sortdirection=J.sortDirection}if(J.sortColumns!==undefined){J.sortcolumns=J.sortColumns}if(J.sortDirections!==undefined){J.sortdirections=J.sortDirections}if(J.sortOrder!==undefined){J.sortdirection=J.sortOrder}if(J.formatData!==undefined){J.formatdata=J.formatData}if(J.processData!==undefined){J.processdata=J.processData}if(J.pageSize!==undefined){J.pagesize=J.pageSize}if(J.pageNum!==undefined){J.pagenum=J.pageNum}if(J.updateRow!==undefined){J.updaterow=J.updateRow}if(J.addRow!==undefined){J.addrow=J.addRow}if(J.deleteRow!==undefined){J.deleterow=J.deleteRow}if(J.contentType!==undefined){J.contenttype=J.contentType}if(J.totalRecords!=undefined){J.totalrecords=J.totalRecords}if(J.loadError!=undefined){J.loadError=J.loadError}if(J.sortComparer!=undefined){J.sortcomparer=J.sortComparer}}this._source=J;this._options=e||{};if(J.beforeLoadComplete!=undefined){this._options.beforeLoadComplete=this._source.beforeLoadComplete}if(J.downloadComplete!=undefined){this._options.downloadComplete=this._source.downloadComplete}if(J.loadComplete!=undefined){this._options.loadComplete=this._source.loadComplete}if(J.autoBind!=undefined){this._options.downloadComplete=this._source.autoBind}if(J.formatData!=undefined){this._options.formatData=this._source.formatData}if(J.loadError!=undefined){this._options.loadError=this._source.loadError}if(J.beforeSend!=undefined){this._options.beforeSend=this._source.beforeSend}if(J.contentType!=undefined){this._options.contentType=this._source.contentType}if(J.async!=undefined){this._options.async=this._source.async}if(J.loadServerData!=undefined){this._options.loadServerData=this._source.loadServerData}if(J.uniqueDataFields!=undefined){this._options.uniqueDataFields=this._source.uniqueDataFields}this.records=new Array();this._downloadComplete=new Array();this._bindingUpdate=new Array();if(J!=undefined&&J.localdata!=null&&typeof J.localdata==\"function\"){var I=J.localdata();if(I!=null){J._localdata=J.localdata;var H=this;if(J._localdata.subscribe){H._oldlocaldata=[];J._localdata.subscribe(function(K){var L=function(M){if(i.isArray(M)){return i.makeArray(L(i(M)))}return i.extend(true,{},M)};if(H.suspendKO==false||H.suspendKO==undefined||H._oldlocaldata.length==0){H._oldlocaldata=L(K)}},J._localdata,\"beforeChange\");J._localdata.subscribe(function(L){if(H.suspendKO==false||H.suspendKO==undefined){var K=\"\";H._oldrecords=H.records;if(H._oldlocaldata.length==0){J.localdata=J._localdata()}if(H._oldlocaldata.length==0){K=\"change\"}else{if(L){if(H._oldlocaldata.length==L.length){K=\"update\"}if(H._oldlocaldata.length>L.length){K=\"remove\"}if(H._oldlocaldata.length 0){this.callBindingUpdate(\"update\");this._changedrecords=[]}else{this.dataBind(null,\"\")}}},formatDate:function(H,J,I){var e=i.jqx.dataFormat.formatdate(H,J,I);return e},formatNumber:function(H,J,I){var e=i.jqx.dataFormat.formatnumber(H,J,I);return e},dataBind:function(R,aa){if(this.isUpdating==true){return}var W=this._source;if(!W){return}if(W.generatedfields){W.datafields=null;W.generatedfields=null}i.jqx.dataFormat.datescache=new Array();if(W.dataFields!=null){W.datafields=W.dataFields}if(W.recordstartindex==undefined){W.recordstartindex=0}if(W.recordendindex==undefined){W.recordendindex=0}if(W.loadallrecords==undefined){W.loadallrecords=true}if(W.root==undefined){W.root=\"\"}if(W.record==undefined){W.record=\"\"}if(W.sort!=undefined){this.sort=W.sort}if(W.filter!=undefined){this.filter=W.filter}else{this.filter=null}if(W.sortcolumn!=undefined){this.sortcolumn=W.sortcolumn}if(W.sortdirection!=undefined){this.sortdirection=W.sortdirection}if(W.sortcolumns!=undefined){this.sortcolumns=W.sortcolumns}if(W.sortdirections!=undefined){this.sortdirections=W.sortdirections}if(W.sortcomparer!=undefined){this.sortcomparer=W.sortcomparer}this.records=new Array();var K=this._options||{};this.virtualmode=K.virtualmode!=undefined?K.virtualmode:false;this.totalrecords=K.totalrecords!=undefined?K.totalrecords:0;this.pageable=K.pageable!=undefined?K.pageable:false;this.pagesize=K.pagesize!=undefined?K.pagesize:0;this.pagenum=K.pagenum!=undefined?K.pagenum:0;this.cachedrecords=K.cachedrecords!=undefined?K.cachedrecords:new Array();this.originaldata=new Array();this.recordids=new Array();this.updaterow=K.updaterow!=undefined?K.updaterow:null;this.addrow=K.addrow!=undefined?K.addrow:null;this.deleterow=K.deleterow!=undefined?K.deleterow:null;this.cache=K.cache!=undefined?K.cache:false;this.unboundmode=false;if(W.formatdata!=undefined){K.formatData=W.formatdata}if(W.data!=undefined){if(K.data==undefined){K.data={}}i.extend(K.data,W.data)}if(W.mapChar!=undefined){W.mapchar=W.mapChar}if(W.mapchar!=undefined){this.mapChar=W.mapchar?W.mapchar:\">\"}else{this.mapChar=K.mapChar?K.mapChar:\">\"}if(K.unboundmode||W.unboundmode){this.unboundmode=K.unboundmode||W.unboundmode}if(W.cache!=undefined){this.cache=W.cache}if(this.koSubscriptions){for(var ac=0;ac 0){for(var Z=0;Z 0){var an=ao;for(var ak=0;ak 0){var aG=false;var aB=false;for(var ax=0;ax =0)){aG=true;at=aw.map;aE=aw.type;aC=aw.name;aB=true;var aF=an[ay];if(at!=null){var ar=at.split(ah.mapChar);if(ar.length>0){var az=an;for(var au=0;au 0){var az=an;for(var au=0;au 0){var aj=this;var am=H(aj,ad);am.uid=ak;ah.records[ah.records.length]=am}else{this.uid=ak;ah.records[ah.records.length]=this}})}else{if(ad==0){var V=0;var T=new Array();i.each(W.localdata,function(al,an){var aj=new Object(this);if(typeof an===\"string\"){ah.records=W.localdata;return false}else{var ak=ah.getid(W.id,aj,al);if(typeof(ak)===\"object\"){ak=al}aj.uid=ak;if(al==0){for(var ao in this){V++;var ap=i.type(this[ao]);T.push({name:ao,type:ap})}ad=V;W.datafields=T;W.generatedfields=T}if(ad>0){var am=H(aj,ad);am.uid=ak;ah.records[ah.records.length]=am}else{ah.records[ah.records.length]=aj}}})}else{i.each(W.localdata,function(al){var aj=this;var am=H(aj,ad);var ak=ah.getid(W.id,am,al);if(typeof(ak)===\"object\"){ak=al}var aj=new Object(am);aj.uid=ak;ah.records[ah.records.length]=aj})}}}this.originaldata=W.localdata;this.cachedrecords=this.records;this.addForeignValues(W);if(K.uniqueDataFields){var S=this.getUniqueRecords(this.records,K.uniqueDataFields);this.records=S;this.cachedrecords=S}if(K.beforeLoadComplete){var ae=K.beforeLoadComplete(ah.records,this.originaldata);if(ae!=undefined){ah.records=ae;ah.cachedrecords=ae}}if(K.autoSort&&K.autoSortField){var O=Object.prototype.toString;Object.prototype.toString=(typeof field==\"function\")?field:function(){return this[K.autoSortField]};ah.records.sort(function(ak,aj){if(ak===undefined){ak=null}if(aj===undefined){aj=null}if(ak===null&&aj===null){return 0}if(ak===null&&aj!==null){return 1}if(ak!==null&&aj===null){return -1}ak=ak.toString();aj=aj.toString();if(ak===null&&aj===null){return 0}if(ak===null&&aj!==null){return 1}if(ak!==null&&aj===null){return -1}if(i.jqx.dataFormat.isNumber(ak)&&i.jqx.dataFormat.isNumber(aj)){if(ak aj){return 1}return 0}else{if(i.jqx.dataFormat.isDate(ak)&&i.jqx.dataFormat.isDate(aj)){if(ak aj){return 1}return 0}else{if(!i.jqx.dataFormat.isNumber(ak)&&!i.jqx.dataFormat.isNumber(aj)){ak=String(ak).toLowerCase();aj=String(aj).toLowerCase()}}}try{if(ak aj){return 1}}catch(al){var am=al}return 0});Object.prototype.toString=O}ah.loadedData=W.localdata;ah.buildHierarchy();if(i.isFunction(K.loadComplete)){K.loadComplete(W.localdata,ah.records)}break;case\"json\":case\"jsonp\":case\"xml\":case\"xhtml\":case\"script\":case\"text\":case\"ics\":if(W.localdata!=null&&!W.url){if(i.isFunction(W.beforeprocessing)){W.beforeprocessing(W.localdata)}if(W.datatype===\"xml\"){ah.loadxml(W.localdata,W.localdata,W)}else{if(Q===\"text\"){ah.loadtext(W.localdata,W)}else{if(Q===\"ics\"){ah.loadics(W.localdata,W)}else{ah.loadjson(W.localdata,W.localdata,W)}}}ah.addForeignValues(W);if(K.uniqueDataFields){var S=ah.getUniqueRecords(ah.records,K.uniqueDataFields);ah.records=S;ah.cachedrecords=S}if(K.beforeLoadComplete){var ae=K.beforeLoadComplete(ah.records,this.originaldata);if(ae!=undefined){ah.records=ae;ah.cachedrecords=ae}}ah.loadedData=W.localdata;ah.buildHierarchy.call(ah);if(i.isFunction(K.loadComplete)){K.loadComplete(W.localdata,ah.records)}ah.callBindingUpdate(aa);return}var af=K.data!=undefined?K.data:{};if(W.processdata){W.processdata(af)}if(i.isFunction(K.processData)){K.processData(af)}if(i.isFunction(K.formatData)){var e=K.formatData(af);if(e!=undefined){af=e}}var ab=\"application/x-www-form-urlencoded\";if(K.contentType){ab=K.contentType}var J=\"GET\";if(W.type){J=W.type}if(K.type){J=K.type}var X=Q;if(Q==\"ics\"){X=\"text\"}if(W.url&&W.url.length>0){if(i.isFunction(K.loadServerData)){ah._requestData(af,W,K)}else{this.xhr=i.jqx.data.ajax({dataType:X,cache:this.cache,type:J,url:W.url,async:N,timeout:W.timeout,contentType:ab,data:af,success:function(am,aj,ap){if(i.isFunction(W.beforeprocessing)){var ao=W.beforeprocessing(am,aj,ap);if(ao!=undefined){am=ao}}if(i.isFunction(K.downloadComplete)){var ao=K.downloadComplete(am,aj,ap);if(ao!=undefined){am=ao}}if(am==null){ah.records=new Array();ah.cachedrecords=new Array();ah.originaldata=new Array();ah.callDownloadComplete();if(i.isFunction(K.loadComplete)){K.loadComplete(new Array())}return}var ak=am;if(am.records){ak=am.records}if(am.totalrecords!=undefined){W.totalrecords=am.totalrecords}else{if(am.totalRecords!=undefined){W.totalrecords=am.totalRecords}}if(W.datatype===\"xml\"){ah.loadxml(null,ak,W)}else{if(Q===\"text\"){ah.loadtext(ak,W)}else{if(Q===\"ics\"){ah.loadics(ak,W)}else{ah.loadjson(null,ak,W)}}}ah.addForeignValues(W);if(K.uniqueDataFields){var al=ah.getUniqueRecords(ah.records,K.uniqueDataFields);ah.records=al;ah.cachedrecords=al}if(K.beforeLoadComplete){var an=K.beforeLoadComplete(ah.records,am);if(an!=undefined){ah.records=an;ah.cachedrecords=an}}ah.loadedData=am;ah.buildHierarchy.call(ah);ah.callDownloadComplete();if(i.isFunction(K.loadComplete)){K.loadComplete(am,aj,ap,ah.records)}},error:function(al,aj,ak){if(i.isFunction(W.loaderror)){W.loaderror(al,aj,ak)}if(i.isFunction(K.loadError)){K.loadError(al,aj,ak)}al=null;ah.callDownloadComplete()},beforeSend:function(ak,aj){if(i.isFunction(K.beforeSend)){K.beforeSend(ak,aj)}if(i.isFunction(W.beforesend)){W.beforesend(ak,aj)}}})}}else{ah.buildHierarchy(new Array());ah.callDownloadComplete();if(i.isFunction(K.loadComplete)){if(!ai){var ai={}}K.loadComplete(ai)}}break}this.callBindingUpdate(aa)},buildHierarchy:function(K){var e=this._source;var P=new Array();if(!e.datafields){return}if(e.hierarchy&&!e.hierarchy.reservedNames){e.hierarchy.reservedNames={leaf:\"leaf\",parent:\"parent\",expanded:\"expanded\",checked:\"checked\",selected:\"selected\",level:\"level\",icon:\"icon\",data:\"data\"}}else{if(e.hierarchy){var O=e.hierarchy.reservedNames;if(!O.leaf){O.leaf=\"leaf\"}if(!O.parent){O.parent=\"parent\"}if(!O.expanded){O.expanded=\"expanded\"}if(!O.checked){O.checked=\"checked\"}if(!O.selected){O.selected=\"selected\"}if(!O.level){O.level=\"level\"}if(!O.data){O.data=\"data\"}}}if(!e.hierarchy){return}var N=this;var O=e.hierarchy.reservedNames;if(e.hierarchy.root){if(e.dataType==\"xml\"){var P=this.getRecordsHierarchy(\"uid\",\"parentuid\",\"records\",null,K);this.hierarchy=P;return P}else{this.hierarchy=this.records;var R=e.hierarchy.root;for(var L=0;L 1){var W=S;for(var V=0;V 0){var K=function(O){if(O){for(var P=0;P =0&&(this._source.hierarchy||I)){var L=(J._source&&J._source.hierarchy)?J._source.hierarchy.reservedNames:null;if(L==null){L=N()}H[L.level]=0;if(e==\"last\"){this.hierarchy.push(H)}else{if(typeof e===\"number\"&&isFinite(e)){this.hierarchy.splice(e,0,H)}else{this.hierarchy.splice(0,0,H)}}}else{if(e==\"last\"){this.records.push(H)}else{if(typeof e===\"number\"&&isFinite(e)){this.records.splice(e,0,H)}else{this.records.splice(0,0,H)}}}return true}}return false},deleteRecord:function(H){var J=this;if(this.hierarchy.length>0){var K=function(L){if(L){for(var O=0;O Q.totalrecords){M=Q.totalrecords}}else{if(Q.virtualmode){K=H.recordstartindex;M=H.recordendindex;if(M>Q.totalrecords){M=Q.totalrecords}}else{K=0;M=Q.records.length}}for(var O=K;O 0){V(af+1,ae)}else{if(!P){ac[ad].leaf=true}else{ac[ad][P.leaf]=true}}}else{if(!P){ac[ad].leaf=true}else{ac[ad][P.leaf]=true}}}};V(0,e)}return e},bindBindingUpdate:function(H,e){this._bindingUpdate[this._bindingUpdate.length]={id:H,func:e}},unbindBindingUpdate:function(H){for(var e=0;e 0){return e}else{if(N.map){try{var e=i(H).attr(N.map);if(e!=null&&e.toString().length>0){return e}else{if(i(N.map,H).length>0){return i(N.map,H).text()}else{if(i(N.name,H).length>0){return i(N.name,H).text()}}}}catch(J){return K}}}return}}if(i(N,H).length>0){return i(N,H).text()}if(N){if(N.toString().length>0){var e=i(H).attr(N);if(e!=null&&e.toString().length>0){return i.trim(e).split(\" \").join(\"\").replace(/([ #;?%&,.+*~\\':\"!^$[\\]()=>|\\/\\\\@])/g,\"\")}else{var I=N.split(this.mapChar);if(I.length>1){var M=H;for(var L=0;L 1){var ab=af;for(var R=0;R 0){var ab=af;for(var R=0;R 0){var aa=I;for(var R=0;R 0){var am=an;for(var ai=0;ai 0){X=ah[0]}}}else{var ae=Q.map.substring(0,M-1);var O=Q.map.indexOf(\"]\");var R=Q.map.substring(M+1,O);X=i(ae,I).attr(R);if(X==undefined){X=i(I).attr(R)}if(X==undefined){X=\"\"}}if(X==\"\"){X=i(I).attr(Q.map);if(X==undefined){X=\"\"}}}}if(X==\"\"){X=i(Q.name,I);if(X.length==1){X=X.text()}else{var ah=new Array();for(var ac=0;ac 0){X=ah[0]}}if(X==\"\"){X=i(I).attr(Q.name);if(X==undefined){X=\"\"}}if(X==\"\"){if(I.nodeName&&I.nodeName==Q.name&&I.firstChild){X=i(I.firstChild).text()}}}var W=X;X=this.getvaluebytype(X,Q);if(Q.displayname!=undefined){L[Q.displayname]=X}else{L[Q.name]=X}}if(V.recordendindex<=0||Y 0){var ai=this.getid(V.id,i(I).parents(V.hierarchy.record+\":first\"));N.parentuid=ai}else{N.parentuid=null}}}this.records=ab;this.cachedrecords=this.records},loadics:function(N,H){if(N==null){return}var S=H.rowDelimiter||this.rowDelimiter||\"\\n\";var R=N.split(S);var K=R.length;var Q=N.split(\"\\r\");if(K==1&&Q.length>1){R=Q;K=R.length}this.records=new Array();this.originaldata=new Array();var L=this.records;this.recordids=new Array();var I=0;var P=function(V){var T=/^(\\d{4})(\\d{2})(\\d{2})(T(\\d{2})(\\d{2})(\\d{2})Z)?$/;var U=T.exec(V);if(!U){throw new Error(\"Invalid UNTIL value: \"+V)}return new Date(Date.UTC(U[1],U[2]-1,U[3],U[5]||0,U[6]||0,U[7]||0))};for(var M=0;M =0){e.SUMMARY=O.substring(O.indexOf(\"SUMMARY\")+8);continue}if(O.indexOf(\"LOCATION\")>=0){e.LOCATION=O.substring(O.indexOf(\"LOCATION\")+9);continue}if(O.indexOf(\"DESCRIPTION\")>=0){e.DESCRIPTION=O.substring(O.indexOf(\"DESCRIPTION\")+12);continue}if(O.indexOf(\"RRULE\")>=0){e.RRULE=O.substring(O.indexOf(\"RRULE\")+6);continue}if(O.indexOf(\"EXDATE\")>=0){var J=O.substring(O.indexOf(\"EXDATE\")+7);e.EXDATE=J;continue}if(O.indexOf(\"DTEND\")>=0){e.DTEND=P(O.substring(O.indexOf(\"DTEND\")+6));continue}if(O.indexOf(\"DTSTART\")>=0){e.DTSTART=P(O.substring(O.indexOf(\"DTSTART\")+8));continue}if(O.indexOf(\"UID\")>=0){e.uid=e.UID=O.substring(O.indexOf(\"UID\")+4);continue}if(O.indexOf(\"STATUS\")>=0){e.STATUS=O.substring(O.indexOf(\"STATUS\")+7);continue}if(O==\"END:VEVENT\"){L.push(e);continue}}this.records=L;this.cachedrecords=this.records},loadtext:function(Y,P){if(Y==null){return}var e=P.rowDelimiter||this.rowDelimiter||\"\\n\";var L=Y.split(e);var J=L.length;var X=Y.split(\"\\r\");if(J==1&&X.length>1){L=X;J=L.length}this.totalrecords=this.virtualmode?(P.totalrecords||J):J;this.records=new Array();this.originaldata=new Array();var U=this.records;var R=!this.pageable?P.recordstartindex:this.pagesize*this.pagenum;this.recordids=new Array();if(P.loadallrecords){R=0;J=this.totalrecords}var N=0;if(this.virtualmode){R=!this.pageable?P.recordstartindex:this.pagesize*this.pagenum;N=R;R=0;J=this.totalrecords}var V=P.datafields.length;var O=P.columnDelimiter||this.columnDelimiter;if(!O){O=(P.datatype===\"tab\"||P.datatype===\"tsv\")?\"\\t\":\",\"}for(var T=R;T =H.length){continue}var M=P.datafields[S];var Q=H[S];if(M.map&&i.isFunction(M.map)){Q=M.map(I)}if(M.type){Q=this.getvaluebytype(Q,M)}var Z=M.map||M.name||S.toString();K[Z]=Q;if(P.id!=null){if(P.id===M.name){W=Q;this.recordids[W]=I}}}if(W==null){W=T}U[N+T]=i.extend({},K);U[N+T].uid=W;this.originaldata[N+T]=i.extend({},U[T])}}this.records=U;this.cachedrecords=this.records},getvaluebytype:function(L,H){var J=L;if(L==null){return L}if(i.isArray(L)&&H.type!=\"array\"){for(var I=0;I =L){return J}}return 0},toUpper:function(e){return e.split(\"\\u00A0\").join(\" \").toUpperCase()},toUpperArray:function(e){var J=[];for(var I=0,H=e.length;I '+e+\"\"}return''+e+\"\"},formatemail:function(e){return''+e+\"\"},formatNumber:function(e,I,H){return this.formatnumber(e,I,H)},formatnumber:function(T,S,O){if(O==undefined||O==null||O==\"\"){O=this.defaultcalendar()}if(S===\"\"||S===null){return T}if(!this.isNumber(T)){T*=1}var P;if(S.length>1){P=parseInt(S.slice(1),10)}var V={};var Q=S.charAt(0).toUpperCase();V.thousandsSeparator=O.thousandsseparator;V.decimalSeparator=O.decimalseparator;switch(Q){case\"D\":case\"d\":case\"F\":case\"f\":V.decimalPlaces=P;break;case\"N\":case\"n\":V.decimalPlaces=0;break;case\"C\":case\"c\":V.decimalPlaces=P;if(O.currencysymbolposition==\"before\"){V.prefix=O.currencysymbol}else{V.suffix=O.currencysymbol}break;case\"P\":case\"p\":V.suffix=O.percentsymbol;V.decimalPlaces=P;break;default:throw\"Bad number format specifier: \"+Q}if(this.isNumber(T)){var K=(T<0);var I=T+\"\";var R=(V.decimalSeparator)?V.decimalSeparator:\".\";var e;if(this.isNumber(V.decimalPlaces)){var L=V.decimalPlaces;var N=Math.pow(10,L);I=(T*N).toFixed(0)/N+\"\";e=I.lastIndexOf(\".\");if(L>0){if(e<0){I+=R;e=I.length-1}else{if(R!==\".\"){I=I.replace(\".\",R)}}while((I.length-1-e) 0&&L==undefined){if(R!==\".\"){I=I.replace(\".\",R)}}}if(V.thousandsSeparator){var U=V.thousandsSeparator;e=I.lastIndexOf(R);e=(e>-1)?e:I.length;var J=I.substring(e);var H=-1;for(var M=e;M>0;M--){H++;if((H%3===0)&&(M!==e)&&(!K||(M>1))){J=U+J}J=I.charAt(M-1)+J}I=J}I=(V.prefix)?V.prefix+I:I;I=(V.suffix)?I+V.suffix:I;return I}else{return T}},tryparsedate:function(ak,al){if(al==undefined||al==null){al=this.defaultcalendar()}var P=this;if(ak==\"\"){return null}if(ak!=null&&!ak.substring){ak=ak.toString()}if(ak!=null&&ak.substring(0,6)==\"/Date(\"){var au=/^\\/Date\\((-?\\d+)(\\+|-)?(\\d+)?\\)\\/$/;var ar=new Date(+ak.replace(/\\/Date\\((\\d+)\\)\\//,\"$1\"));if(ar==\"Invalid Date\"){var an=ak.match(/^\\/Date\\((\\d+)([-+]\\d\\d)(\\d\\d)\\)\\/$/);var ar=null;if(an){ar=new Date(1*an[1]+3600000*an[2]+60000*an[3])}}if(ar==null||ar==\"Invalid Date\"||isNaN(ar)){var Q=au.exec(ak);if(Q){var T=new Date(parseInt(Q[1]));if(Q[2]){var Z=parseInt(Q[3]);if(Q[2]===\"-\"){Z=-Z}var V=T.getUTCMinutes();T.setUTCMinutes(V-Z)}if(!isNaN(T.valueOf())){return T}}}return ar}var N=al.patterns;for(var S in N){ar=P.parsedate(ak,N[S],al);if(ar){if(S==\"ISO\"){var ac=P.parsedate(ak,N.ISO2,al);if(ac){return ac}}return ar}}if(ak!=null){var ac=null;var L=[\":\",\"/\",\"-\"];var ap=true;for(var O=0;O =0){I=ak.substring(ak.indexOf(\":\")-2);I=ag.trim(I);Y=ak.substring(0,ak.indexOf(\":\")-2)}else{if(ak.toUpperCase().indexOf(\"AM\")>=0){I=ak.substring(ak.toUpperCase().indexOf(\"AM\")-2);I=ag.trim(I);Y=ak.substring(0,ak.toUpperCase().indexOf(\"AM\")-2)}else{if(ak.toUpperCase().indexOf(\"PM\")>=0){I=ak.substring(ak.toUpperCase().indexOf(\"PM\")-2);I=ag.trim(I);Y=ak.substring(0,ak.toUpperCase().indexOf(\"PM\")-2)}}}var e=new Date();var aj=false;if(Y){for(var aq=0;aq =0){L=Y.split(am[aq]);break}}var H=new Array();var W=new Array();var ae=new Array();var R=null;var aw=null;for(var aq=0;aq 2){aw=aq;break}}}for(var aq=0;aq 0){e=ao[0];aj=true}}if(I){var ah=I.indexOf(\":\")>=0?I.split(\":\"):I;var K=ag.parsedate(I,\"h:mm tt\",al)||ag.parsedate(I,\"h:mm:ss tt\",al)||ag.parsedate(I,\"HH:mm:ss.fff\",al)||ag.parsedate(I,\"HH:mm:ss.ff\",al)||ag.parsedate(I,\"HH:mm:ss.tttt\",al)||ag.parsedate(I,\"HH:mm:ss\",al)||ag.parsedate(I,\"HH:mm\",al)||ag.parsedate(I,\"HH\",al);var X=0,J=0,aa=0,ab=0;if(K&&K.getTime()!=NaN){X=K.getHours();J=K.getMinutes();aa=K.getSeconds();ab=K.getMilliseconds()}else{if(ah.length==1){X=parseInt(ah[0])}if(ah.length==2){X=parseInt(ah[0]);J=parseInt(ah[1])}if(ah.length==3){X=parseInt(ah[0]);J=parseInt(ah[1]);if(ah[2].indexOf(\".\")>=0){aa=parseInt(ah[2].toString().split(\".\")[0]);ab=parseInt(ah[2].toString().split(\".\")[1])}else{aa=parseInt(ah[2])}}if(ah.length==4){X=parseInt(ah[0]);J=parseInt(ah[1]);aa=parseInt(ah[2]);ab=parseInt(ah[3])}}if(e&&!isNaN(X)&&!isNaN(J)&&!isNaN(aa)&&!isNaN(ab)){e.setHours(X,J,aa,ab);aj=true}}if(aj){return e}}return null},getparseregexp:function(e,R){var T=e._parseRegExp;if(!T){e._parseRegExp=T={}}else{var K=T[R];if(K){return K}}var Q=this.expandFormat(e,R).replace(/([\\^\\$\\.\\*\\+\\?\\|\\[\\]\\(\\)\\{\\}])/g,\"\\\\\\\\$1\"),O=[\"^\"],H=[],N=0,J=0,W=this.getTokenRegExp(),L;while((L=W.exec(Q))!==null){var V=Q.slice(N,L.index);N=W.lastIndex;J+=this.appendPreOrPostMatch(V,O);if(J%2){O.push(L[0]);continue}var I=L[0],M=I.length,S;switch(I){case\"dddd\":case\"ddd\":case\"MMMM\":case\"MMM\":case\"gg\":case\"g\":S=\"(\\\\D+)\";break;case\"tt\":case\"t\":S=\"(\\\\D*)\";break;case\"yyyy\":case\"fff\":case\"ff\":case\"f\":S=\"(\\\\d{\"+M+\"})\";break;case\"dd\":case\"d\":case\"MM\":case\"M\":case\"yy\":case\"y\":case\"HH\":case\"H\":case\"hh\":case\"h\":case\"mm\":case\"m\":case\"ss\":case\"s\":S=\"(\\\\d\\\\d?)\";break;case\"zzz\":S=\"([+-]?\\\\d\\\\d?:\\\\d{2})\";break;case\"zz\":case\"z\":S=\"([+-]?\\\\d\\\\d?)\";break;case\"/\":S=\"(\\\\\"+e[\"/\"]+\")\";break;default:throw\"Invalid date format pattern '\"+I+\"'.\";break}if(S){O.push(S)}H.push(L[0])}this.appendPreOrPostMatch(Q.slice(N),O);O.push(\"$\");var U=O.join(\"\").replace(/\\s+/g,\"\\\\s+\"),P={regExp:U,groups:H};return T[R]=P},outOfRange:function(I,e,H){return I H},expandYear:function(L,J){var H=new Date(),e=this.getEra(H);if(J<100){var I=L.twoDigitYearMax;I=typeof I===\"string\"?new Date().getFullYear()%100+parseInt(I,10):I;var K=this.getEraYear(H,L,e);J+=K-(K%100);if(J>I){J-=100}}return J},parsedate:function(ab,ai,W){if(W==undefined||W==null){W=this.defaultcalendar()}ab=this.trim(ab);var T=W,an=this.getparseregexp(T,ai),N=new RegExp(an.regExp).exec(ab);if(N===null){return null}var aj=an.groups,Z=null,R=null,am=null,al=null,S=null,L=0,ae,ad=0,ak=0,e=0,I=null,U=false;for(var af=0,ah=aj.length;af 1&&ah.length )<[^<]*)*<\\/script>/gi,d=/([?&])_=[^&]*/,h=/^([\\w\\+\\.\\-]+:)(?:\\/\\/([^\\/?#:]*)(?::(\\d+)|)|)/,t=/\\s+/,F=i.fn.load,G={},C={},q=[\"*/\"]+[\"*\"];try{E=location.href}catch(A){E=document.createElement(\"a\");E.href=\"\";E=E.href}l=h.exec(E.toLowerCase())||[];function r(e){return function(K,M){if(typeof K!==\"string\"){M=K;K=\"*\"}var H,N,O,J=K.toLowerCase().split(t),I=0,L=J.length;if(i.isFunction(M)){for(;I 0?4:0;if(al){aj=B(Q,W,al)}if(ak>=200&&ak<300||ak===304){if(Q.ifModified){an=W.getResponseHeader(\"Last-Modified\");if(an){i.lastModified[P]=an}an=W.getResponseHeader(\"Etag\");if(an){i.etag[P]=an}}if(ak===304){ah=\"notmodified\";e=true}else{e=c(Q,aj);ah=e.state;ao=e.data;am=e.error;e=!am}}else{am=ah;if(!ah||ak){ah=\"error\";if(ak<0){ak=0}}}W.status=ak;W.statusText=(ag||ah)+\"\";if(e){ae.resolveWith(af,[ao,ah,W])}else{ae.rejectWith(af,[W,ah,am])}W.statusCode(N);N=undefined;if(I){T.trigger(\"ajax\"+(e?\"Success\":\"Error\"),[W,Q,e?ao:am])}aa.fireWith(af,[W,ah]);if(I){T.trigger(\"ajaxComplete\",[W,Q]);if(!(--i.active)){i.event.trigger(\"ajaxStop\")}}}ae.promise(W);W.success=W.done;W.error=W.fail;W.complete=aa.add;W.statusCode=function(ag){if(ag){var e;if(L<2){for(e in ag){N[e]=[N[e],ag[e]]}}else{e=ag[W.status];W.always(e)}}return this};Q.url=((M||Q.url)+\"\").replace(p,\"\").replace(o,l[1]+\"//\");Q.dataTypes=i.trim(Q.dataType||\"*\").toLowerCase().split(t);if(Q.crossDomain==null){V=h.exec(Q.url.toLowerCase());Q.crossDomain=!!(V&&(V[1]!==l[1]||V[2]!==l[2]||(V[3]||(V[1]===\"http:\"?80:443))!=(l[3]||(l[1]===\"http:\"?80:443))))}if(Q.data&&Q.processData&&typeof Q.data!==\"string\"){Q.data=i.param(Q.data,Q.traditional)}v(G,Q,J,W);if(L===2){return W}I=Q.global;Q.type=Q.type.toUpperCase();Q.hasContent=!j.test(Q.type);if(I&&i.active++===0){i.event.trigger(\"ajaxStart\")}if(!Q.hasContent){if(Q.data){Q.url+=(k.test(Q.url)?\"&\":\"?\")+Q.data;delete Q.data}P=Q.url;if(Q.cache===false){var H=(new Date()).getTime(),ac=Q.url.replace(d,\"$1_=\"+H);Q.url=ac+((ac===Q.url)?(k.test(Q.url)?\"&\":\"?\")+\"_=\"+H:\"\")}}if(Q.data&&Q.hasContent&&Q.contentType!==false||J.contentType){W.setRequestHeader(\"Content-Type\",Q.contentType)}if(Q.ifModified){P=P||Q.url;if(i.lastModified[P]){W.setRequestHeader(\"If-Modified-Since\",i.lastModified[P])}if(i.etag[P]){W.setRequestHeader(\"If-None-Match\",i.etag[P])}}W.setRequestHeader(\"Accept\",Q.dataTypes[0]&&Q.accepts[Q.dataTypes[0]]?Q.accepts[Q.dataTypes[0]]+(Q.dataTypes[0]!==\"*\"?\", \"+q+\"; q=0.01\":\"\"):Q.accepts[\"*\"]);for(X in Q.headers){W.setRequestHeader(X,Q.headers[X])}if(Q.beforeSend&&(Q.beforeSend.call(af,W,Q)===false||L===2)){return W.abort()}O=\"abort\";for(X in {success:1,error:1,complete:1}){W[X](Q[X])}Y=v(C,Q,J,W);if(!Y){S(-1,\"No Transport\")}else{W.readyState=1;if(I){T.trigger(\"ajaxSend\",[W,Q])}if(Q.async&&Q.timeout>0){R=setTimeout(function(){W.abort(\"timeout\")},Q.timeout)}try{L=1;Y.send(U,S)}catch(Z){if(L<2){S(-1,Z)}else{throw Z}}}return W},active:0,lastModified:{},etag:{}});function B(P,O,L){var K,M,J,e,H=P.contents,N=P.dataTypes,I=P.responseFields;for(M in I){if(M in L){O[I[M]]=L[M]}}while(N[0]===\"*\"){N.shift();if(K===undefined){K=P.mimeType||O.getResponseHeader(\"content-type\")}}if(K){for(M in H){if(H[M]&&H[M].test(K)){N.unshift(M);break}}}if(N[0] in L){J=N[0]}else{for(M in L){if(!N[0]||P.converters[M+\" \"+N[0]]){J=M;break}if(!e){e=M}}J=J||e}if(J){if(J!==N[0]){N.unshift(J)}return L[J]}}function c(R,J){var P,H,N,L,O=R.dataTypes.slice(),I=O[0],Q={},K=0;if(R.dataFilter){J=R.dataFilter(J,R.dataType)}if(O[1]){for(P in R.converters){Q[P.toLowerCase()]=R.converters[P]}}for(;(N=O[++K]);){if(N!==\"*\"){if(I!==\"*\"&&I!==N){P=Q[I+\" \"+N]||Q[\"* \"+N];if(!P){for(H in Q){L=H.split(\" \");if(L[1]===N){P=Q[I+\" \"+L[0]]||Q[\"* \"+L[0]];if(P){if(P===true){P=Q[H]}else{if(Q[H]!==true){N=L[0];O.splice(K--,0,N)}}break}}}}if(P!==true){if(P&&R[\"throws\"]){J=P(J)}else{try{J=P(J)}catch(M){return{state:\"parsererror\",error:P?M:\"No conversion from \"+I+\" to \"+N}}}}}I=N}}return{state:\"success\",data:J}}var y=[],n=/\\?/,D=/(=)\\?(?=&|$)|\\?\\?/,z=(new Date()).getTime();i.jqx.data.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var e=y.pop()||(i.expando+\"_\"+(z++));this[e]=true;return e}});i.jqx.data.ajaxPrefilter(\"json jsonp\",function(Q,L,P){var O,e,N,J=Q.data,H=Q.url,I=Q.jsonp!==false,M=I&&D.test(H),K=I&&!M&&typeof J===\"string\"&&!(Q.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&D.test(J);if(Q.dataTypes[0]===\"jsonp\"||M||K){O=Q.jsonpCallback=i.isFunction(Q.jsonpCallback)?Q.jsonpCallback():Q.jsonpCallback;e=window[O];if(M){Q.url=H.replace(D,\"$1\"+O)}else{if(K){Q.data=J.replace(D,\"$1\"+O)}else{if(I){Q.url+=(n.test(H)?\"&\":\"?\")+Q.jsonp+\"=\"+O}}}Q.converters[\"script json\"]=function(){if(!N){i.error(O+\" was not called\")}return N[0]};Q.dataTypes[0]=\"json\";window[O]=function(){N=arguments};P.always(function(){window[O]=e;if(Q[O]){Q.jsonpCallback=L.jsonpCallback;y.push(O)}if(N&&i.isFunction(e)){e(N[0])}N=e=undefined});return\"script\"}});i.jqx.data.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/javascript|ecmascript/},converters:{\"text script\":function(e){i.globalEval(e);return e}}});i.jqx.data.ajaxPrefilter(\"script\",function(e){if(e.cache===undefined){e.cache=false}if(e.crossDomain){e.type=\"GET\";e.global=false}});i.jqx.data.ajaxTransport(\"script\",function(I){if(I.crossDomain){var e,H=document.head||document.getElementsByTagName(\"head\")[0]||document.documentElement;return{send:function(J,K){e=document.createElement(\"script\");e.async=\"async\";if(I.scriptCharset){e.charset=I.scriptCharset}e.src=I.url;e.onload=e.onreadystatechange=function(M,L){if(L||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(H&&e.parentNode){H.removeChild(e)}e=undefined;if(!L){K(200,\"success\")}}};H.insertBefore(e,H.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var w,x=window.ActiveXObject?function(){for(var e in w){w[e](0,1)}}:false,m=0;function g(){try{return new window.XMLHttpRequest()}catch(H){}}function s(){try{return new window.ActiveXObject(\"Microsoft.XMLHTTP\")}catch(H){}}i.jqx.data.ajaxSettings.xhr=window.ActiveXObject?function(){return !this.isLocal&&g()||s()}:g;(function(e){i.extend(i.support,{ajax:!!e,cors:!!e&&(\"withCredentials\" in e)})})(i.jqx.data.ajaxSettings.xhr());if(!i.support){i.support={ajax:true}}if(i.support.ajax){i.jqx.data.ajaxTransport(function(e){if(!e.crossDomain||i.support.cors){var H;return{send:function(N,I){var L,K,M=e.xhr();if(e.username){M.open(e.type,e.url,e.async,e.username,e.password)}else{M.open(e.type,e.url,e.async)}if(e.xhrFields){for(K in e.xhrFields){M[K]=e.xhrFields[K]}}if(e.mimeType&&M.overrideMimeType){M.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!N[\"X-Requested-With\"]){N[\"X-Requested-With\"]=\"XMLHttpRequest\"}try{for(K in N){M.setRequestHeader(K,N[K])}}catch(J){}M.send((e.hasContent&&e.data)||null);H=function(W,Q){var R,P,O,U,T;try{if(H&&(Q||M.readyState===4)){H=undefined;if(L){M.onreadystatechange=function(){};if(x){delete w[L]}}if(Q){if(M.readyState!==4){M.abort()}}else{R=M.status;O=M.getAllResponseHeaders();U={};T=M.responseXML;if(T&&T.documentElement){U.xml=T}try{U.text=M.responseText}catch(V){}try{P=M.statusText}catch(V){P=\"\"}if(!R&&e.isLocal&&!e.crossDomain){R=U.text?200:404}else{if(R===1223){R=204}}}}}catch(S){if(!Q){I(-1,S)}}if(U){I(R,P,U,O)}};if(!e.async){H()}else{if(M.readyState===4){setTimeout(H,0)}else{L=++m;if(x){if(!w){w={};i(window).unload(x)}w[L]=H}M.onreadystatechange=H}}},abort:function(){if(H){H(0,1)}}}}})}i.jqx.filter=function(){this.operator=\"and\";var M=0;var J=1;var P=[\"EMPTY\",\"NOT_EMPTY\",\"CONTAINS\",\"CONTAINS_CASE_SENSITIVE\",\"DOES_NOT_CONTAIN\",\"DOES_NOT_CONTAIN_CASE_SENSITIVE\",\"STARTS_WITH\",\"STARTS_WITH_CASE_SENSITIVE\",\"ENDS_WITH\",\"ENDS_WITH_CASE_SENSITIVE\",\"EQUAL\",\"EQUAL_CASE_SENSITIVE\",\"NULL\",\"NOT_NULL\"];var R=[\"EQUAL\",\"NOT_EQUAL\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL\",\"NULL\",\"NOT_NULL\"];var S=[\"EQUAL\",\"NOT_EQUAL\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL\",\"NULL\",\"NOT_NULL\"];var L=[\"EQUAL\",\"NOT_EQUAL\"];var K=new Array();var Q=new Array();this.evaluate=function(X){var V=true;for(var W=0;W K.length){return null}return Q[U]};this.setoperatorat=function(V,U){if(V==undefined||V==null){return null}if(V<0||V>K.length){return null}Q[U]=U};this.getfilterat=function(U){if(U==undefined||U==null){return null}if(U<0||U>K.length){return null}return K[U]};this.setfilterat=function(U,V){if(U==undefined||U==null){return null}if(U<0||U>K.length){return null}V.key=O();K[U]=V};this.clear=function(){K=new Array();Q=new Array()};var T=function(V,U){this.filtervalue=V;this.comparisonoperator=U;this.type=\"stringfilter\";this.evaluate=function(af){var ae=this.filtervalue;var al=this.comparisonoperator;if(af==null||af==undefined||af==\"\"){if(al==\"NULL\"){return true}if(al==\"NOT_NULL\"){return false}if(al==\"EQUAL\"&&af==ae){return true}if(al==\"NOT_EQUAL\"&&af!=ae){return true}if(al!=\"EMPTY\"){return false}else{if(af==\"\"){return true}}}var an=\"\";try{an=af.toString()}catch(ag){return true}var am=function(ap,ao){switch(al){case\"EQUAL\":return i.jqx.string.equalsIgnoreCase(ap,ao);case\"EQUAL_CASE_SENSITIVE\":return i.jqx.string.equals(ap,ao);case\"NOT_EQUAL\":return !i.jqx.string.equalsIgnoreCase(ap,ao);case\"NOT_EQUAL_CASE_SENSITIVE\":return !i.jqx.string.equals(ap,ao);case\"CONTAINS\":return i.jqx.string.containsIgnoreCase(ap,ao);case\"CONTAINS_CASE_SENSITIVE\":return i.jqx.string.contains(ap,ao);case\"DOES_NOT_CONTAIN\":return !i.jqx.string.containsIgnoreCase(ap,ao);case\"DOES_NOT_CONTAIN_CASE_SENSITIVE\":return !i.jqx.string.contains(ap,ao);case\"EMPTY\":return ap==\"\";case\"NOT_EMPTY\":return ap!=\"\";case\"NOT_NULL\":return ap!=null;case\"STARTS_WITH\":return i.jqx.string.startsWithIgnoreCase(ap,ao);case\"ENDS_WITH\":return i.jqx.string.endsWithIgnoreCase(ap,ao);case\"ENDS_WITH_CASE_SENSITIVE\":return i.jqx.string.endsWith(ap,ao);case\"STARTS_WITH_CASE_SENSITIVE\":return i.jqx.string.startsWith(ap,ao);default:return false}};var Z=new Array();if(ae&&ae.indexO&&al!==\"NOT_EQUAL\"){if(ae.indexOf(\"|\")>=0||ae.indexOf(\" AND \")>=0||ae.indexOf(\" OR \")>=0||ae.indexOf(\" and \")>=0||ae.indexOf(\" or \")>=0){var aa=am(an,ae);if(aa){return aa}var ab=ae.indexOf(\" AND \")>=0?ae.split(\" AND \"):new Array();var Y=ae.indexOf(\" OR \")>=0?ae.split(\" OR \"):new Array();var X=ae.indexOf(\" and \")>=0?ae.split(\" and \"):new Array();var ac=ae.indexOf(\" or \")>=0?ae.split(\" or \"):new Array();var W=ae.indexOf(\"|\")>=0?ae.split(\"|\"):new Array();if(W.length>0){for(var ak=0;ak =0?ae.split(\" \"):new Array();if(aj.length>0){for(var ak=0;ak 0){for(var ak=0;ak =0){Z.push(ab[ak])}}}if(Y.length>0){for(var ak=0;ak =0){Z.push(Y[ak])}}}var ai=undefined;for(var ah=0;ah ao;case\"GREATER_THAN_OR_EQUAL\":return ap>=ao;case\"LESS_THAN\":return ap =0||af.indexOf(\" AND \")>=0||af.indexOf(\" OR \")>=0||af.indexOf(\" and \")>=0||af.indexOf(\" or \")>=0)){var ab=am(an,af);if(ab){return ab}af=af.toString();var ac=af.indexOf(\" AND \")>=0?af.split(\" AND \"):new Array();var Z=af.indexOf(\" OR \")>=0?af.split(\" OR \"):new Array();var Y=af.indexOf(\" and \")>=0?af.split(\" and \"):new Array();var ad=af.indexOf(\" or \")>=0?af.split(\" or \"):new Array();ac=ac.concat(Y);Z=Z.concat(ad);var X=af.indexOf(\"|\")>=0?af.split(\"|\"):new Array();if(X.length>0){for(var ak=0;ak 0){for(var ak=0;ak =0){aa.push(ac[ak])}}}if(Z.length>0){for(var ak=0;ak =0){aa.push(Z[ak])}}}var aj=undefined;for(var ai=0;ai =0){var W=ag.toString().split(\"..\");if(W.length==2){ab=an>=W[0]&&an<=W[1]}}else{var ab=am(an,ag)}var ae=ai =0){aa=af.toString().split(\"..\");if(aa.length==2){return an>=aa[0]&&an<=aa[1]}}return am(an,af)}};var H=function(X,V,W,ab){this.filtervalue=X;this.type=\"datefilter\";var Z=this;if(W!=undefined&&ab!=undefined){var Y=i.jqx.dataFormat.parsedate(X,W,ab);if(Y!=null){this.filterdate=Y}else{var U=i.jqx.dataFormat.tryparsedate(X,ab);if(U!=null){this.filterdate=U}}}else{var aa=new Date(X);if(aa.toString()==\"NaN\"||aa.toString()==\"Invalid Date\"){this.filterdate=i.jqx.dataFormat.tryparsedate(X)}else{this.filterdate=aa}}if(!this.filterdate){var aa=new Date(X);if(aa.toString()==\"NaN\"||aa.toString()==\"Invalid Date\"){this.filterdate=i.jqx.dataFormat.tryparsedate(X)}else{this.filterdate=aa}}this.comparisonoperator=V;this.evaluate=function(ao){var an=this.filtervalue;var aw=this.comparisonoperator;if(ao==null||ao==undefined||ao==\"\"){if(aw==\"NOT_NULL\"){return false}if(aw==\"NULL\"){return true}else{switch(aw){case\"EQUAL\":return ao==an;case\"NOT_EQUAL\":return ao!=an}return false}}else{if(aw==\"NULL\"){return false}if(aw==\"NOT_NULL\"){return true}}var ay=new Date();ay.setFullYear(1900,0,1);ay.setHours(12,0,0,0);try{var av=new Date(ao);if(av.toString()==\"NaN\"||av.toString()==\"Invalid Date\"){ao=i.jqx.dataFormat.tryparsedate(ao)}else{ao=av}ay=ao;var at=false;if(W!=undefined&&ab!=undefined){if(W.indexOf(\"t\")>=0||W.indexOf(\"T\")>=0||W.indexOf(\":\")>=0||W.indexOf(\"f\")>=0){at=true;if(an&&an.toString().indexOf(\":\")==-1){var aj=i.jqx.dataFormat.tryparsedate(an.toString()+\":00\",ab);if(aj!=null){Z.filterdate=aj}}}}if(W!=undefined){if(W.indexOf(\"hh\")>=0||W.indexOf(\"t\")>=0){at=true}}if(!at){ay.setHours(0);ay.setMinutes(0);ay.setSeconds(0)}}catch(ap){if(ao.toString()!=\"\"){return false}}if(Z.filterdate!=null){an=Z.filterdate}else{if(an&&an.indexOf){if(an.indexOf(\":\")!=-1||!isNaN(parseInt(an))){var ai=new Date(ay);ai.setHours(12,0,0,0);var ah=an.split(\":\");for(var au=0;au az;case\"GREATER_THAN_OR_EQUAL\":return aA>=az;case\"LESS_THAN\":return aA =0||an.indexOf(\" AND \")>=0||an.indexOf(\" OR \")>=0||an.indexOf(\" and \")>=0||an.indexOf(\" or \")>=0){var aj=ax(ay,an);if(aj){return aj}var ak=an.indexOf(\" AND \")>=0?an.split(\" AND \"):new Array();var af=an.indexOf(\" OR \")>=0?an.split(\" OR \"):new Array();var ae=an.indexOf(\" and \")>=0?an.split(\" and \"):new Array();var al=an.indexOf(\" or \")>=0?an.split(\" or \"):new Array();ak=ak.concat(ae);af=af.concat(al);var ad=an.indexOf(\"|\")>=0?an.split(\"|\"):new Array();if(ad.length>0){for(var au=0;au 0){for(var au=0;au =0){ag.push(ak[au])}}}if(af.length>0){for(var au=0;au =0){ag.push(af[au])}}}var ar=undefined;for(var aq=0;aq =0){var ac=ao.toString().split(\"..\");if(ac.length==2){aj=ay>=ac[0]&&ay<=ac[1]}}else{var aj=ax(ay,ao)}var am=aq =0){ag=an.toString().split(\"..\");if(ag.length==2){return ay>=ag[0]&&ay<=ag[1]}}return ax(ay,an)}};var e=function(V,U,W){this.filtervalue=V;this.comparisonoperator=U;this.evaluate=function(Y,X){return W(this.filtervalue,Y,this.comparisonoperator)}}}})(jqxBaseFramework);\r\n\r\n","/*\r\njQWidgets v9.1.4 (2020-Apr)\r\nCopyright (c) 2011-2020 jQWidgets.\r\nLicense: https://jqwidgets.com/license/\r\n*/\r\n/* eslint-disable */\r\n\r\n(function(a){a.jqx.jqxWidget(\"jqxDraw\",\"\",{});a.extend(a.jqx._jqxDraw.prototype,{defineInstance:function(){var c={renderEngine:\"\"};a.extend(true,this,c);var d=[\"clear\",\"on\",\"off\",\"removeElement\",\"attr\",\"getAttr\",\"line\",\"circle\",\"rect\",\"path\",\"pieslice\",\"text\",\"measureText\"];for(var b in d){this._addFn(a.jqx._jqxDraw.prototype,d[b])}if(this===a.jqx._jqxDraw.prototype){return c}return c},_addFn:function(c,b){if(c[b]){return}c[b]=function(){return this.renderer[b].apply(this.renderer,arguments)}},createInstance:function(b){},_initRenderer:function(b){return a.jqx.createRenderer(this,b)},_internalRefresh:function(){var b=this;if(a.jqx.isHidden(b.host)){return}if(!b.renderer){b.host.empty();b._initRenderer(b.host)}var d=b.renderer;if(!d){return}var c=d.getRect();b._render({x:1,y:1,width:c.width,height:c.height});if(d instanceof a.jqx.HTML5Renderer){d.refresh()}},_saveAsImage:function(d,e,b,c){return a.jqx._widgetToImage(this,d,e,b,c)},_render:function(c){var b=this;var d=b.renderer;b._plotRect=c},refresh:function(){this._internalRefresh()},getSize:function(){var b=this._plotRect;return{width:b.width,height:b.height}},saveAsPNG:function(d,b,c){return this._saveAsImage(\"png\",d,b,c)},saveAsJPEG:function(d,b,c){return this._saveAsImage(\"jpeg\",d,b,c)}})})(jqxBaseFramework);(function(a){a.jqx.toGreyScale=function(b){if(b.indexOf(\"#\")==-1){return b}var c=a.jqx.cssToRgb(b);c[0]=c[1]=c[2]=Math.round(0.3*c[0]+0.59*c[1]+0.11*c[2]);var d=a.jqx.rgbToHex(c[0],c[1],c[2]);return\"#\"+d[0]+d[1]+d[2]},a.jqx.adjustColor=function(e,d){if(typeof(e)!=\"string\"){return\"#000000\"}if(e.indexOf(\"#\")==-1){return e}var f=a.jqx.cssToRgb(e);var b=a.jqx.rgbToHsl(f);b[2]=Math.min(1,b[2]*d);b[1]=Math.min(1,b[1]*d*1.1);f=a.jqx.hslToRgb(b);var e=\"#\";for(var g=0;g<3;g++){var h=Math.round(f[g]);h=a.jqx.decToHex(h);if(h.toString().length==1){e+=\"0\"}e+=h}return e.toUpperCase()};a.jqx.decToHex=function(b){return b.toString(16)};a.jqx.hexToDec=function(b){return parseInt(b,16)};a.jqx.rgbToHex=function(e,d,c){return[a.jqx.decToHex(e),a.jqx.decToHex(d),a.jqx.decToHex(c)]};a.jqx.hexToRgb=function(c,d,b){return[a.jqx.hexToDec(c),a.jqx.hexToDec(d),a.jqx.hexToDec(b)]};a.jqx.cssToRgb=function(b){if(b.indexOf(\"rgb\")<=-1){return a.jqx.hexToRgb(b.substring(1,3),b.substring(3,5),b.substring(5,7))}return b.substring(4,b.length-1).split(\",\")};a.jqx.hslToRgb=function(m){var i=parseFloat(m[0]);var n=parseFloat(m[1]);var f=parseFloat(m[2]);if(n==0){var c,j,k;c=j=k=f}else{var d=f<0.5?f*(1+n):f+n-f*n;var e=2*f-d;var c=a.jqx.hueToRgb(e,d,i+1/3);var j=a.jqx.hueToRgb(e,d,i);var k=a.jqx.hueToRgb(e,d,i-1/3)}return[c*255,j*255,k*255]};a.jqx.hueToRgb=function(d,c,b){if(b<0){b+=1}if(b>1){b-=1}if(b<1/6){return d+(c-d)*6*b}else{if(b<1/2){return c}else{if(b<2/3){return d+(c-d)*(2/3-b)*6}}}return d};a.jqx.rgbToHsl=function(j){var c=parseFloat(j[0])/255;var i=parseFloat(j[1])/255;var k=parseFloat(j[2])/255;var m=Math.max(c,i,k),e=Math.min(c,i,k);var f,o,d=(m+e)/2;if(m==e){f=o=0}else{var n=m-e;o=d>0.5?n/(2-m-e):n/(m+e);switch(m){case c:f=(i-k)/n+(i c?b-0.5:b+0.5}return b};a.jqx._ptRotate=function(d,i,c,h,f){var b=Math.sqrt(Math.pow(Math.abs(d-c),2)+Math.pow(Math.abs(i-h),2));var e=Math.asin((d-c)/b);var g=e+f;d=c+Math.cos(g)*b;i=h+Math.sin(g)*b;return{x:d,y:i}};a.jqx._rup=function(c){var b=Math.round(c);if(c>b){b++}return b};a.jqx.log=function(c,b){return Math.log(c)/(b?Math.log(b):1)};a.jqx._mod=function(d,c){var e=Math.abs(d>c?c:d);var f=1;if(e!=0){while(e*f<100){f*=10}}d=d*f;c=c*f;return(d%c)/f};a.jqx._rnd=function(d,f,e,c){if(isNaN(d)){return d}if(undefined===c){c=true}var b=d-((c==true)?d%f:a.jqx._mod(d,f));if(d==b){return b}if(e){if(d>b){b+=f}}else{if(b>d){b-=f}}return(f==1)?Math.round(b):b};a.jqx.commonRenderer={pieSlicePath:function(k,j,h,r,A,B,d){if(!r){r=1}var m=Math.abs(A-B);var p=m>180?1:0;if(m>=360){B=A+359.99}var q=A*Math.PI*2/360;var i=B*Math.PI*2/360;var w=k,v=k,f=j,e=j;var n=!isNaN(h)&&h>0;if(n){d=0}if(d+h>0){if(d>0){var l=m/2+A;var z=l*Math.PI*2/360;k+=d*Math.cos(z);j-=d*Math.sin(z)}if(n){var u=h;w=k+u*Math.cos(q);f=j-u*Math.sin(q);v=k+u*Math.cos(i);e=j-u*Math.sin(i)}}var t=k+r*Math.cos(q);var s=k+r*Math.cos(i);var c=j-r*Math.sin(q);var b=j-r*Math.sin(i);var o=\"\";var g=(Math.abs(Math.abs(B-A)-360)>0.02);if(n){o=\"M \"+v+\",\"+e;o+=\" a\"+h+\",\"+h;o+=\" 0 \"+p+\",1 \"+(w-v)+\",\"+(f-e);if(g){o+=\" L\"+t+\",\"+c}else{o+=\" M\"+t+\",\"+c}o+=\" a\"+r+\",\"+r;o+=\" 0 \"+p+\",0 \"+(s-t)+\",\"+(b-c);if(g){o+=\" Z\"}}else{o=\"M \"+s+\",\"+b;o+=\" a\"+r+\",\"+r;o+=\" 0 \"+p+\",1 \"+(t-s)+\",\"+(c-b);if(g){o+=\" L\"+k+\",\"+j;o+=\" Z\"}}return o},measureText:function(o,f,g,n,l){var e=l._getTextParts(o,f,g);var i=e.width;var b=e.height;if(false==n){b/=0.6}var c={};if(isNaN(f)){f=0}if(f==0){c={width:a.jqx._rup(i),height:a.jqx._rup(b)}}else{var k=f*Math.PI*2/360;var d=Math.abs(Math.sin(k));var j=Math.abs(Math.cos(k));var h=Math.abs(i*d+b*j);var m=Math.abs(i*j+b*d);c={width:a.jqx._rup(m),height:a.jqx._rup(h)}}if(n){c.textPartsInfo=e}return c},alignTextInRect:function(q,n,b,r,m,o,i,p,e,d){var k=e*Math.PI*2/360;var c=Math.sin(k);var j=Math.cos(k);var l=m*c;var h=m*j;if(i==\"center\"||i==\"\"||i==\"undefined\"){q=q+b/2}else{if(i==\"right\"){q=q+b}}if(p==\"center\"||p==\"middle\"||p==\"\"||p==\"undefined\"){n=n+r/2}else{if(p==\"bottom\"){n+=r-o/2}else{if(p==\"top\"){n+=o/2}}}d=d||\"\";var f=\"middle\";if(d.indexOf(\"top\")!=-1){f=\"top\"}else{if(d.indexOf(\"bottom\")!=-1){f=\"bottom\"}}var g=\"center\";if(d.indexOf(\"left\")!=-1){g=\"left\"}else{if(d.indexOf(\"right\")!=-1){g=\"right\"}}if(g==\"center\"){q-=h/2;n-=l/2}else{if(g==\"right\"){q-=h;n-=l}}if(f==\"top\"){q-=o*c;n+=o*j}else{if(f==\"middle\"){q-=o*c/2;n+=o*j/2}}q=a.jqx._rup(q);n=a.jqx._rup(n);return{x:q,y:n}}};a.jqx.svgRenderer=function(){};a.jqx.svgRenderer.prototype={_svgns:\"http://www.w3.org/2000/svg\",init:function(f){var d=\" \";f.append(d);this.host=f;var b=f.find(\".chartContainer\");b[0].style.width=f.width()+\"px\";b[0].style.height=f.height()+\"px\";var h;try{var c=document.createElementNS(this._svgns,\"svg\");c.setAttribute(\"id\",\"svgChart\");c.setAttribute(\"version\",\"1.1\");c.setAttribute(\"width\",\"100%\");c.setAttribute(\"height\",\"100%\");c.setAttribute(\"overflow\",\"hidden\");b[0].appendChild(c);this.canvas=c}catch(g){return false}this._id=new Date().getTime();this.clear();this._layout();this._runLayoutFix();return true},getType:function(){return\"SVG\"},refresh:function(){},_runLayoutFix:function(){var b=this;this._fixLayout()},_fixLayout:function(){var f=this.canvas.getBoundingClientRect();var d=(parseFloat(f.left)==parseInt(f.left));var b=(parseFloat(f.top)==parseInt(f.top));if(a.jqx.browser.msie){var d=true,b=true;var e=this.host;var c=0,g=0;while(e&&e.position&&e[0].parentNode){var h=e.position();c+=parseFloat(h.left)-parseInt(h.left);g+=parseFloat(h.top)-parseInt(h.top);e=e.parent()}d=parseFloat(c)==parseInt(c);b=parseFloat(g)==parseInt(g)}if(!d){this.host.find(\".tdLeft\")[0].style.width=\"0.5px\"}if(!b){this.host.find(\".tdTop\")[0].style.height=\"0.5px\"}},_layout:function(){var b=this.host.find(\".chartContainer\");this._width=Math.max(a.jqx._rup(this.host.width())-1,0);this._height=Math.max(a.jqx._rup(this.host.height())-1,0);b[0].style.width=this._width;b[0].style.height=this._height;this._fixLayout()},getRect:function(){return{x:0,y:0,width:this._width,height:this._height}},getContainer:function(){var b=this.host.find(\".chartContainer\");return b},clear:function(){while(this.canvas.childElementCount>0){this.removeElement(this.canvas.firstElementChild)}this._defaultParent=undefined;this._defs=document.createElementNS(this._svgns,\"defs\");this._gradients={};this.canvas.appendChild(this._defs)},removeElement:function(d){if(undefined==d){return}this.removeHandler(d);try{while(d.firstChild){this.removeElement(d.firstChild)}if(d.parentNode){d.parentNode.removeChild(d)}else{this.canvas.removeChild(d)}}catch(c){var b=c}},_openGroups:[],beginGroup:function(){var b=this._activeParent();var c=document.createElementNS(this._svgns,\"g\");b.appendChild(c);this._openGroups.push(c);return c},endGroup:function(){if(this._openGroups.length==0){return}this._openGroups.pop()},_activeParent:function(){return this._openGroups.length==0?this.canvas:this._openGroups[this._openGroups.length-1]},createClipRect:function(d){var e=document.createElementNS(this._svgns,\"clipPath\");var b=document.createElementNS(this._svgns,\"rect\");this.attr(b,{x:d.x,y:d.y,width:d.width,height:d.height,fill:\"none\"});this._clipId=this._clipId||0;e.id=\"cl\"+this._id+\"_\"+(++this._clipId).toString();e.appendChild(b);this._defs.appendChild(e);return e},getWindowHref:function(){var c=a.jqx.browser;if(c&&c.browser==\"msie\"&&c.version<10){return\"\"}var b=window.location.href;if(!b){return b}b=b.replace(/([\\('\\)])/g,\"\\\\$1\");b=b.replace(/#.*$/,\"\");return b},setClip:function(d,c){var b=\"url(\"+this.getWindowHref()+\"#\"+c.id+\")\";return this.attr(d,{\"clip-path\":b})},_clipId:0,addHandler:function(b,d,c){if(a(b).on){a(b).on(d,c)}else{a(b).bind(d,c)}},removeHandler:function(b,d,c){if(a(b).off){a(b).off(d,c)}else{a(b).unbind(d,c)}},on:function(b,d,c){this.addHandler(b,d,c)},off:function(b,d,c){this.removeHandler(b,d,c)},shape:function(b,e){var c=document.createElementNS(this._svgns,b);if(!c){return undefined}for(var d in e){if(e[d]!==undefined&&e[d].toString()===\"NaN\"){c.setAttribute(d,0)}else{c.setAttribute(d,e[d])}}this._activeParent().appendChild(c);return c},_getTextParts:function(q,g,h){var f={width:0,height:0,parts:[]};if(undefined===q){return f}var m=0.6;var r=q.toString().split(\"
\");var o=this._activeParent();var k=document.createElementNS(this._svgns,\"text\");this.attr(k,h);for(var j=0;j0?4:0);f.parts.push({width:l,height:b,text:c})}o.removeChild(k);return f},_measureText:function(e,d,c,b){return a.jqx.commonRenderer.measureText(e,d,c,b,this)},measureText:function(d,c,b){return this._measureText(d,c,b,false)},text:function(t,q,p,B,z,H,J,I,s,k,c){var v=this._measureText(t,H,J,true);var j=v.textPartsInfo;var f=j.parts;var A;if(!s){s=\"center\"}if(!k){k=\"center\"}if(f.length>1||I){A=this.beginGroup()}if(I){var g=this.createClipRect({x:a.jqx._rup(q)-1,y:a.jqx._rup(p)-1,width:a.jqx._rup(B)+2,height:a.jqx._rup(z)+2});this.setClip(A,g)}var o=this._activeParent();var L=0,l=0;var b=0.6;L=j.width;l=j.height;if(isNaN(B)||B<=0){B=L}if(isNaN(z)||z<=0){z=l}var r=B||0;var G=z||0;if(!H||H==0){p+=l;if(k==\"center\"||k==\"middle\"){p+=(G-l)/2}else{if(k==\"bottom\"){p+=G-l}}if(!B){B=L}if(!z){z=l}var o=this._activeParent();var n=0;for(var F=f.length-1;F>=0;F--){var u=document.createElementNS(this._svgns,\"text\");this.attr(u,J);this.attr(u,{cursor:\"default\"});var E=u.ownerDocument.createTextNode(f[F].text);u.appendChild(E);var M=q;var m=f[F].width;var e=f[F].height;if(s==\"center\"){M+=(r-m)/2}else{if(s==\"right\"){M+=(r-m)}}this.attr(u,{x:a.jqx._rup(M),y:a.jqx._rup(p+n),width:a.jqx._rup(m),height:a.jqx._rup(e)});o.appendChild(u);n-=f[F].height+4}if(A){this.endGroup();return A}return u}var C=a.jqx.commonRenderer.alignTextInRect(q,p,B,z,L,l,s,k,H,c);q=C.x;p=C.y;var D=this.shape(\"g\",{transform:\"translate(\"+q+\",\"+p+\")\"});var d=this.shape(\"g\",{transform:\"rotate(\"+H+\")\"});D.appendChild(d);var n=0;for(var F=f.length-1;F>=0;F--){var K=document.createElementNS(this._svgns,\"text\");this.attr(K,J);this.attr(K,{cursor:\"default\"});var E=K.ownerDocument.createTextNode(f[F].text);K.appendChild(E);var M=0;var m=f[F].width;var e=f[F].height;if(s==\"center\"){M+=(j.width-m)/2}else{if(s==\"right\"){M+=(j.width-m)}}this.attr(K,{x:a.jqx._rup(M),y:a.jqx._rup(n),width:a.jqx._rup(m),height:a.jqx._rup(e)});d.appendChild(K);n-=e+4}o.appendChild(D);if(A){this.endGroup()}return D},line:function(d,f,c,e,g){var b=this.shape(\"line\",{x1:d,y1:f,x2:c,y2:e});this.attr(b,g);return b},path:function(c,d){var b=this.shape(\"path\");b.setAttribute(\"d\",c);if(d){this.attr(b,d)}return b},rect:function(b,g,c,e,f){b=a.jqx._ptrnd(b);g=a.jqx._ptrnd(g);c=Math.max(1,a.jqx._rnd(c,1,false));e=Math.max(1,a.jqx._rnd(e,1,false));var d=this.shape(\"rect\",{x:b,y:g,width:c,height:e});if(f){this.attr(d,f)}return d},circle:function(b,f,d,e){var c=this.shape(\"circle\",{cx:b,cy:f,r:d});if(e){this.attr(c,e)}return c},pieSlicePath:function(c,h,g,e,f,d,b){return a.jqx.commonRenderer.pieSlicePath(c,h,g,e,f,d,b)},pieslice:function(j,h,g,d,f,b,i,c){var e=this.pieSlicePath(j,h,g,d,f,b,i);var k=this.shape(\"path\");k.setAttribute(\"d\",e);if(c){this.attr(k,c)}return k},attr:function(b,d){if(!b||!d){return}for(var c in d){if(c==\"textContent\"){b.textContent=d[c]}else{b.setAttribute(c,d[c])}}},removeAttr:function(b,d){if(!b||!d){return}for(var c in d){if(c==\"textContent\"){b.textContent=\"\"}else{b.removeAttribute(d[c])}}},getAttr:function(c,b){return c.getAttribute(b)},_gradients:{},_toLinearGradient:function(e,h,j){var c=\"grd\"+this._id+e.replace(\"#\",\"\")+(h?\"v\":\"h\");var b=\"url(\"+this.getWindowHref()+\"#\"+c+\")\";if(this._gradients[b]){return b}var d=document.createElementNS(this._svgns,\"linearGradient\");this.attr(d,{x1:\"0%\",y1:\"0%\",x2:h?\"0%\":\"100%\",y2:h?\"100%\":\"0%\",id:c});for(var f=0;f