phcthemes_admin_panel_pack 5.0.0 → 5.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/app/assets/javascripts/smarty/core.js +28154 -0
  4. data/app/assets/javascripts/smarty/core.min.js +2 -0
  5. data/app/assets/javascripts/smarty/core.sow_builder.js +84 -0
  6. data/app/assets/javascripts/smarty/core.sow_builder.min.js +1 -0
  7. data/app/assets/javascripts/smarty/phcthemes_admin_panel_pack_smarty.js +3 -0
  8. data/app/assets/javascripts/smarty/vendor.chartjs.js +20776 -0
  9. data/app/assets/javascripts/smarty/vendor.chartjs.min.js +1 -0
  10. data/app/assets/javascripts/smarty/vendor.cocoen.js +1 -0
  11. data/app/assets/javascripts/smarty/vendor.cocoen.min.js +1 -0
  12. data/app/assets/javascripts/smarty/vendor.colorpicker.js +3 -0
  13. data/app/assets/javascripts/smarty/vendor.colorpicker.min.js +1 -0
  14. data/app/assets/javascripts/smarty/vendor.datatables.js +42928 -0
  15. data/app/assets/javascripts/smarty/vendor.datatables.min.js +1 -0
  16. data/app/assets/javascripts/smarty/vendor.datepicker.js +2039 -0
  17. data/app/assets/javascripts/smarty/vendor.datepicker.min.js +1 -0
  18. data/app/assets/javascripts/smarty/vendor.daterangepicker.js +1578 -0
  19. data/app/assets/javascripts/smarty/vendor.daterangepicker.min.js +1 -0
  20. data/app/assets/javascripts/smarty/vendor.easypie.js +364 -0
  21. data/app/assets/javascripts/smarty/vendor.easypie.min.js +1 -0
  22. data/app/assets/javascripts/smarty/vendor.fancybox.js +5632 -0
  23. data/app/assets/javascripts/smarty/vendor.fancybox.min.js +1 -0
  24. data/app/assets/javascripts/smarty/vendor.flickity.js +4597 -0
  25. data/app/assets/javascripts/smarty/vendor.flickity.min.js +1 -0
  26. data/app/assets/javascripts/smarty/vendor.flot.js +11921 -0
  27. data/app/assets/javascripts/smarty/vendor.flot.min.js +1 -0
  28. data/app/assets/javascripts/smarty/vendor.fullcalendar.js +14597 -0
  29. data/app/assets/javascripts/smarty/vendor.fullcalendar.min.js +1 -0
  30. data/app/assets/javascripts/smarty/vendor.leaflet.js +6 -0
  31. data/app/assets/javascripts/smarty/vendor.leaflet.min.js +1 -0
  32. data/app/assets/javascripts/smarty/vendor.markdowneditor.js +7 -0
  33. data/app/assets/javascripts/smarty/vendor.markdowneditor.min.js +1 -0
  34. data/app/assets/javascripts/smarty/vendor.mediumeditor.js +7893 -0
  35. data/app/assets/javascripts/smarty/vendor.mediumeditor.min.js +1 -0
  36. data/app/assets/javascripts/smarty/vendor.pdfmake.js +79493 -0
  37. data/app/assets/javascripts/smarty/vendor.pdfmake.min.js +1 -0
  38. data/app/assets/javascripts/smarty/vendor.photoswipe.js +4595 -0
  39. data/app/assets/javascripts/smarty/vendor.photoswipe.min.js +1 -0
  40. data/app/assets/javascripts/smarty/vendor.prismjs.js +7219 -0
  41. data/app/assets/javascripts/smarty/vendor.prismjs.min.js +1 -0
  42. data/app/assets/javascripts/smarty/vendor.quilleditor.js +11562 -0
  43. data/app/assets/javascripts/smarty/vendor.quilleditor.min.js +1 -0
  44. data/app/assets/javascripts/smarty/vendor.sparkline.js +3068 -0
  45. data/app/assets/javascripts/smarty/vendor.sparkline.min.js +1 -0
  46. data/app/assets/javascripts/smarty/vendor.summernoteeditor.js +10235 -0
  47. data/app/assets/javascripts/smarty/vendor.summernoteeditor.min.js +1 -0
  48. data/app/assets/javascripts/smarty/vendor.swiper.js +9899 -0
  49. data/app/assets/javascripts/smarty/vendor.swiper.min.js +1 -0
  50. data/app/assets/javascripts/smarty/vendor_bundle.js +30514 -0
  51. data/app/assets/javascripts/smarty/vendor_bundle.min.js +2 -0
  52. data/app/assets/stylesheets/coloradmin/apple/phcthemes_admin_panel_pack_coloradmin.scss +3 -0
  53. data/app/assets/stylesheets/coloradmin/default/phcthemes_admin_panel_pack_coloradmin.scss +5 -2
  54. data/app/assets/stylesheets/coloradmin/facebook/phcthemes_admin_panel_pack_coloradmin.scss +5 -2
  55. data/app/assets/stylesheets/coloradmin/google/phcthemes_admin_panel_pack_coloradmin.scss +5 -2
  56. data/app/assets/stylesheets/coloradmin/material/phcthemes_admin_panel_pack_coloradmin.scss +5 -2
  57. data/app/assets/stylesheets/coloradmin/transparent/phcthemes_admin_panel_pack_coloradmin.scss +5 -2
  58. data/app/assets/stylesheets/common/fontawesome/css/all.css +12785 -0
  59. data/app/assets/stylesheets/common/fontawesome/css/all.min.css +5 -0
  60. data/app/assets/stylesheets/common/fontawesome/css/brands.css +15 -0
  61. data/app/assets/stylesheets/common/fontawesome/css/brands.min.css +5 -0
  62. data/app/assets/stylesheets/common/fontawesome/css/duotone.css +5609 -0
  63. data/app/assets/stylesheets/common/fontawesome/css/duotone.min.css +5 -0
  64. data/app/assets/stylesheets/common/fontawesome/css/fontawesome.css +7135 -0
  65. data/app/assets/stylesheets/common/fontawesome/css/fontawesome.min.css +5 -0
  66. data/app/assets/stylesheets/common/fontawesome/css/light.css +15 -0
  67. data/app/assets/stylesheets/common/fontawesome/css/light.min.css +5 -0
  68. data/app/assets/stylesheets/common/fontawesome/css/regular.css +15 -0
  69. data/app/assets/stylesheets/common/fontawesome/css/regular.min.css +5 -0
  70. data/app/assets/stylesheets/common/fontawesome/css/solid.css +16 -0
  71. data/app/assets/stylesheets/common/fontawesome/css/solid.min.css +5 -0
  72. data/app/assets/stylesheets/common/fontawesome/css/svg-with-js.css +371 -0
  73. data/app/assets/stylesheets/common/fontawesome/css/svg-with-js.min.css +5 -0
  74. data/app/assets/stylesheets/common/fontawesome/css/v4-shims.css +2172 -0
  75. data/app/assets/stylesheets/common/fontawesome/css/v4-shims.min.css +5 -0
  76. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-brands-400.eot +0 -0
  77. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-brands-400.svg +3717 -0
  78. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-brands-400.ttf +0 -0
  79. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-brands-400.woff +0 -0
  80. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  81. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-duotone-900.eot +0 -0
  82. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-duotone-900.svg +15328 -0
  83. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-duotone-900.ttf +0 -0
  84. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-duotone-900.woff +0 -0
  85. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-duotone-900.woff2 +0 -0
  86. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-light-300.eot +0 -0
  87. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-light-300.svg +12423 -0
  88. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-light-300.ttf +0 -0
  89. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-light-300.woff +0 -0
  90. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-light-300.woff2 +0 -0
  91. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-regular-400.eot +0 -0
  92. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-regular-400.svg +11323 -0
  93. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-regular-400.ttf +0 -0
  94. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-regular-400.woff +0 -0
  95. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  96. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-solid-900.eot +0 -0
  97. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-solid-900.svg +9653 -0
  98. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-solid-900.ttf +0 -0
  99. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-solid-900.woff +0 -0
  100. data/app/assets/stylesheets/common/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  101. data/app/assets/stylesheets/smarty/default/phcthemes_admin_panel_pack_smarty.scss +10 -0
  102. data/app/assets/stylesheets/smarty/theme/css/core.css +20170 -0
  103. data/app/assets/stylesheets/smarty/theme/css/core.min.css +2 -0
  104. data/app/assets/stylesheets/smarty/theme/css/vendor.chartjs.css +55 -0
  105. data/app/assets/stylesheets/smarty/theme/css/vendor.chartjs.min.css +1 -0
  106. data/app/assets/stylesheets/smarty/theme/css/vendor.cocoen.css +59 -0
  107. data/app/assets/stylesheets/smarty/theme/css/vendor.cocoen.min.css +1 -0
  108. data/app/assets/stylesheets/smarty/theme/css/vendor.colorpicker.css +1196 -0
  109. data/app/assets/stylesheets/smarty/theme/css/vendor.colorpicker.min.css +1 -0
  110. data/app/assets/stylesheets/smarty/theme/css/vendor.datatables.css +1258 -0
  111. data/app/assets/stylesheets/smarty/theme/css/vendor.datatables.min.css +1 -0
  112. data/app/assets/stylesheets/smarty/theme/css/vendor.datepicker.css +173 -0
  113. data/app/assets/stylesheets/smarty/theme/css/vendor.datepicker.min.css +1 -0
  114. data/app/assets/stylesheets/smarty/theme/css/vendor.daterangepicker.css +545 -0
  115. data/app/assets/stylesheets/smarty/theme/css/vendor.daterangepicker.min.css +1 -0
  116. data/app/assets/stylesheets/smarty/theme/css/vendor.fancybox.css +927 -0
  117. data/app/assets/stylesheets/smarty/theme/css/vendor.fancybox.min.css +1 -0
  118. data/app/assets/stylesheets/smarty/theme/css/vendor.flickity.css +263 -0
  119. data/app/assets/stylesheets/smarty/theme/css/vendor.flickity.min.css +1 -0
  120. data/app/assets/stylesheets/smarty/theme/css/vendor.flot.css +17 -0
  121. data/app/assets/stylesheets/smarty/theme/css/vendor.flot.min.css +1 -0
  122. data/app/assets/stylesheets/smarty/theme/css/vendor.fullcalendar.css +1685 -0
  123. data/app/assets/stylesheets/smarty/theme/css/vendor.fullcalendar.min.css +1 -0
  124. data/app/assets/stylesheets/smarty/theme/css/vendor.leaflet.css +653 -0
  125. data/app/assets/stylesheets/smarty/theme/css/vendor.leaflet.min.css +1 -0
  126. data/app/assets/stylesheets/smarty/theme/css/vendor.markdowneditor.css +7 -0
  127. data/app/assets/stylesheets/smarty/theme/css/vendor.markdowneditor.min.css +1 -0
  128. data/app/assets/stylesheets/smarty/theme/css/vendor.mediumeditor.css +308 -0
  129. data/app/assets/stylesheets/smarty/theme/css/vendor.mediumeditor.min.css +1 -0
  130. data/app/assets/stylesheets/smarty/theme/css/vendor.photoswipe.css +436 -0
  131. data/app/assets/stylesheets/smarty/theme/css/vendor.photoswipe.min.css +1 -0
  132. data/app/assets/stylesheets/smarty/theme/css/vendor.prismjs.css +364 -0
  133. data/app/assets/stylesheets/smarty/theme/css/vendor.prismjs.min.css +1 -0
  134. data/app/assets/stylesheets/smarty/theme/css/vendor.quilleditor.css +953 -0
  135. data/app/assets/stylesheets/smarty/theme/css/vendor.quilleditor.min.css +1 -0
  136. data/app/assets/stylesheets/smarty/theme/css/vendor.summernoteeditor.css +710 -0
  137. data/app/assets/stylesheets/smarty/theme/css/vendor.summernoteeditor.min.css +1 -0
  138. data/app/assets/stylesheets/smarty/theme/css/vendor.swiper.css +762 -0
  139. data/app/assets/stylesheets/smarty/theme/css/vendor.swiper.min.css +1 -0
  140. data/app/assets/stylesheets/smarty/theme/css/vendor_bundle.css +168 -0
  141. data/app/assets/stylesheets/smarty/theme/css/vendor_bundle.min.css +2 -0
  142. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.eot +0 -0
  143. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.svg +250 -0
  144. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.ttf +0 -0
  145. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.woff +0 -0
  146. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.woff2 +0 -0
  147. data/app/assets/stylesheets/smarty/theme/fonts/summernote.eot +0 -0
  148. data/app/assets/stylesheets/smarty/theme/fonts/summernote.hash +1 -0
  149. data/app/assets/stylesheets/smarty/theme/fonts/summernote.ttf +0 -0
  150. data/app/assets/stylesheets/smarty/theme/fonts/summernote.woff +0 -0
  151. data/app/assets/stylesheets/smarty/theme/fonts/summernote.woff2 +0 -0
  152. data/app/assets/stylesheets/smarty/theme/images/credit_card/2co.svg +1 -0
  153. data/app/assets/stylesheets/smarty/theme/images/credit_card/amazon.svg +1 -0
  154. data/app/assets/stylesheets/smarty/theme/images/credit_card/amazon_pay_logo.svg +1 -0
  155. data/app/assets/stylesheets/smarty/theme/images/credit_card/american_express.svg +1 -0
  156. data/app/assets/stylesheets/smarty/theme/images/credit_card/apple_pay.svg +1 -0
  157. data/app/assets/stylesheets/smarty/theme/images/credit_card/bitcoin.svg +1 -0
  158. data/app/assets/stylesheets/smarty/theme/images/credit_card/dinners_club.svg +1 -0
  159. data/app/assets/stylesheets/smarty/theme/images/credit_card/discover.svg +1 -0
  160. data/app/assets/stylesheets/smarty/theme/images/credit_card/ebay.svg +1 -0
  161. data/app/assets/stylesheets/smarty/theme/images/credit_card/jcb.svg +1 -0
  162. data/app/assets/stylesheets/smarty/theme/images/credit_card/mastercard.svg +1 -0
  163. data/app/assets/stylesheets/smarty/theme/images/credit_card/paypal.svg +1 -0
  164. data/app/assets/stylesheets/smarty/theme/images/credit_card/paypal_logo.svg +1 -0
  165. data/app/assets/stylesheets/smarty/theme/images/credit_card/shopify.svg +1 -0
  166. data/app/assets/stylesheets/smarty/theme/images/credit_card/skrill.svg +1 -0
  167. data/app/assets/stylesheets/smarty/theme/images/credit_card/switch.svg +1 -0
  168. data/app/assets/stylesheets/smarty/theme/images/credit_card/visa.svg +1 -0
  169. data/app/assets/stylesheets/smarty/theme/images/credit_card/western_union.svg +1 -0
  170. data/app/assets/stylesheets/smarty/theme/images/flags.png +0 -0
  171. data/app/assets/stylesheets/smarty/theme/images/logo/logo_dark.svg +2 -0
  172. data/app/assets/stylesheets/smarty/theme/images/logo/logo_light.svg +2 -0
  173. data/app/assets/stylesheets/smarty/theme/images/logo/logo_sm.svg +1 -0
  174. data/app/assets/stylesheets/smarty/theme/images/manifest/icon_192x192.png +0 -0
  175. data/app/assets/stylesheets/smarty/theme/images/manifest/icon_512x512.png +0 -0
  176. data/app/assets/stylesheets/smarty/theme/images/manifest/manifest.json +20 -0
  177. data/app/assets/stylesheets/smarty/theme/images/masks/shape-line-lense.svg +1 -0
  178. data/lib/phcthemes_admin_panel_pack/version.rb +1 -1
  179. metadata +171 -2
@@ -0,0 +1 @@
1
+ !function(t,e,i){var s;s=function(s){"use strict";var r,n,a,h,o,l,g,p,u,c,d,f,v,m,x,y,C,w,b,R,S,k,M,_,H,W,T,q,I,j={},P=0;r=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:i,normalRangeMax:i,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:i,chartRangeMax:i,chartRangeMinX:i,chartRangeMaxX:i,tooltipFormat:new a('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:i,nullColor:i,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:i,chartRangeMin:i,chartRangeClip:!1,colorMap:i,tooltipFormat:new a('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new a('<span style="color: {{color}}">&#9679;</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:i,thresholdValue:0,chartRangeMax:i,chartRangeMin:i,chartRangeClip:!1,tooltipFormat:new a("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:i,tooltipFormat:new a("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new a('<span style="color: {{color}}">&#9679;</span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:i,targetColor:"#4a2",chartRangeMax:i,chartRangeMin:i,tooltipFormat:new a("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},n=function(){var t,e;return t=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(t.prototype=s.extend(new arguments[0],arguments[arguments.length-1]),t._super=arguments[0].prototype):t.prototype=arguments[arguments.length-1],arguments.length>2&&((e=Array.prototype.slice.call(arguments,1,-1)).unshift(t.prototype),s.extend.apply(s,e))):t.prototype=arguments[0],t.prototype.cls=t,t},s.SPFormatClass=a=n({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(t,e){this.format=t,this.fclass=e},render:function(t,e,s){var r,n,a,h,o,l=this,g=t;return this.format.replace(this.fre,(function(){return n=arguments[1],a=arguments[3],(r=l.precre.exec(n))?(o=r[2],n=r[1]):o=!1,(h=g[n])===i?"":a&&e&&e[a]?e[a].get?e[a].get(h)||h:e[a][h]||h:(u(h)&&(h=s.get("numberFormatter")?s.get("numberFormatter")(h):v(h,o,s.get("numberDigitGroupCount"),s.get("numberDigitGroupSep"),s.get("numberDecimalMark"))),h)}))}}),s.spformat=function(t,e){return new a(t,e)},h=function(t,e,i){return t<e?e:t>i?i:t},o=function(t,i){var s;return 2===i?(s=e.floor(t.length/2),t.length%2?t[s]:(t[s-1]+t[s])/2):t.length%2?(s=(t.length*i+i)/4)%1?(t[e.floor(s)]+t[e.floor(s)-1])/2:t[s-1]:(s=(t.length*i+2)/4)%1?(t[e.floor(s)]+t[e.floor(s)-1])/2:t[s-1]},l=function(t){var e;switch(t){case"undefined":t=i;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:t==(e=parseFloat(t))&&(t=e)}return t},g=function(t){var e,i=[];for(e=t.length;e--;)i[e]=l(t[e]);return i},p=function(t,e){var i,s,r=[];for(i=0,s=t.length;i<s;i++)t[i]!==e&&r.push(t[i]);return r},u=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},v=function(t,e,i,r,n){var a,h;for(t=(!1===e?parseFloat(t).toString():t.toFixed(e)).split(""),(a=(a=s.inArray(".",t))<0?t.length:a)<t.length&&(t[a]=n),h=a-i;h>0;h-=i)t.splice(h,0,r);return t.join("")},c=function(t,e,i){var s;for(s=e.length;s--;)if((!i||null!==e[s])&&e[s]!==t)return!1;return!0},f=function(t){return s.isArray(t)?t:[t]},d=function(e){var i,s;if(t.createStyleSheet)try{return void(t.createStyleSheet().cssText=e)}catch(t){s=!0}(i=t.createElement("style")).type="text/css",t.getElementsByTagName("head")[0].appendChild(i),s?t.styleSheets[t.styleSheets.length-1].cssText=e:i["string"==typeof t.body.style.WebkitAppearance?"innerText":"innerHTML"]=e},s.fn.simpledraw=function(e,r,n,a){var h,o;if(n&&(h=this.data("_jqs_vcanvas")))return h;if(!1===s.fn.sparkline.canvas)return!1;if(s.fn.sparkline.canvas===i){var l=t.createElement("canvas");if(l.getContext&&l.getContext("2d"))s.fn.sparkline.canvas=function(t,e,i,s){return new T(t,e,i,s)};else{if(!t.namespaces||t.namespaces.v)return s.fn.sparkline.canvas=!1,!1;t.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),s.fn.sparkline.canvas=function(t,e,i,s){return new q(t,e,i)}}}return e===i&&(e=s(this).innerWidth()),r===i&&(r=s(this).innerHeight()),h=s.fn.sparkline.canvas(e,r,this,a),(o=s(this).data("_jqs_mhandler"))&&o.registerCanvas(h),h},s.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},s.RangeMapClass=m=n({init:function(t){var e,i,s=[];for(e in t)t.hasOwnProperty(e)&&"string"==typeof e&&e.indexOf(":")>-1&&((i=e.split(":"))[0]=0===i[0].length?-1/0:parseFloat(i[0]),i[1]=0===i[1].length?1/0:parseFloat(i[1]),i[2]=t[e],s.push(i));this.map=t,this.rangelist=s||!1},get:function(t){var e,s,r,n=this.rangelist;if((r=this.map[t])!==i)return r;if(n)for(e=n.length;e--;)if((s=n[e])[0]<=t&&s[1]>=t)return s[2];return i}}),s.range_map=function(t){return new m(t)},x=n({init:function(t,e){var i=s(t);this.$el=i,this.options=e,this.currentPageX=0,this.currentPageY=0,this.el=t,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!e.get("disableTooltips"),this.highlightEnabled=!e.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(t){var e=s(t.canvas);this.canvas=t,this.$canvas=e,e.mouseenter(s.proxy(this.mouseenter,this)),e.mouseleave(s.proxy(this.mouseleave,this)),e.click(s.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=i)},mouseclick:function(t){var e=s.Event("sparklineClick");e.originalEvent=t,e.sparklines=this.splist,this.$el.trigger(e)},mouseenter:function(e){s(t.body).unbind("mousemove.jqs"),s(t.body).bind("mousemove.jqs",s.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=e.pageX,this.currentPageY=e.pageY,this.currentEl=e.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new y(this.options),this.tooltip.updatePosition(e.pageX,e.pageY)),this.updateDisplay()},mouseleave:function(){s(t.body).unbind("mousemove.jqs");var e,i=this.splist,r=i.length,n=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),e=0;e<r;e++)i[e].clearRegionHighlight()&&(n=!0);n&&this.canvas.render()},mousemove:function(t){this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,this.tooltip&&this.tooltip.updatePosition(t.pageX,t.pageY),this.updateDisplay()},updateDisplay:function(){var t,e,i,r,n=this.splist,a=n.length,h=!1,o=this.$canvas.offset(),l=this.currentPageX-o.left,g=this.currentPageY-o.top;if(this.over){for(e=0;e<a;e++)(i=n[e].setRegionHighlight(this.currentEl,l,g))&&(h=!0);if(h){if((r=s.Event("sparklineRegionChange")).sparklines=this.splist,this.$el.trigger(r),this.tooltip){for(t="",e=0;e<a;e++)t+=n[e].getCurrentRegionTooltip();this.tooltip.setContent(t)}this.disableHighlight||this.canvas.render()}null===i&&this.mouseleave()}}}),y=n({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(e){var i,r=e.get("tooltipClassname","jqstooltip"),n=this.sizeStyle;this.container=e.get("tooltipContainer")||t.body,this.tooltipOffsetX=e.get("tooltipOffsetX",10),this.tooltipOffsetY=e.get("tooltipOffsetY",12),s("#jqssizetip").remove(),s("#jqstooltip").remove(),this.sizetip=s("<div/>",{id:"jqssizetip",style:n,class:r}),this.tooltip=s("<div/>",{id:"jqstooltip",class:r}).appendTo(this.container),i=this.tooltip.offset(),this.offsetLeft=i.left,this.offsetTop=i.top,this.hidden=!0,s(window).unbind("resize.jqs scroll.jqs"),s(window).bind("resize.jqs scroll.jqs",s.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=s(window).scrollTop(),this.scrollLeft=s(window).scrollLeft(),this.scrollRight=this.scrollLeft+s(window).width(),this.updatePosition()},getSize:function(t){this.sizetip.html(t).appendTo(this.container),this.width=this.sizetip.width()+1,this.height=this.sizetip.height(),this.sizetip.remove()},setContent:function(t){if(!t)return this.tooltip.css("visibility","hidden"),void(this.hidden=!0);this.getSize(t),this.tooltip.html(t).css({width:this.width,height:this.height,visibility:"visible"}),this.hidden&&(this.hidden=!1,this.updatePosition())},updatePosition:function(t,e){if(t===i){if(this.mousex===i)return;t=this.mousex-this.offsetLeft,e=this.mousey-this.offsetTop}else this.mousex=t-=this.offsetLeft,this.mousey=e-=this.offsetTop;this.height&&this.width&&!this.hidden&&(e-=this.height+this.tooltipOffsetY,t+=this.tooltipOffsetX,e<this.scrollTop&&(e=this.scrollTop),t<this.scrollLeft?t=this.scrollLeft:t+this.width>this.scrollRight&&(t=this.scrollRight-this.width),this.tooltip.css({left:t,top:e}))},remove:function(){this.tooltip.remove(),this.sizetip.remove(),this.sizetip=this.tooltip=i,s(window).unbind("resize.jqs scroll.jqs")}}),s((function(){d('.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;box-sizing: content-box;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}')})),I=[],s.fn.sparkline=function(e,r){return this.each((function(){var n,a,h=new s.fn.sparkline.options(this,r),o=s(this);if(n=function(){var r,n,a,l,g,p,u;"html"===e||e===i?((u=this.getAttribute(h.get("tagValuesAttribute")))!==i&&null!==u||(u=o.html()),r=u.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):r=e,n="auto"===h.get("width")?r.length*h.get("defaultPixelsPerValue"):h.get("width"),"auto"===h.get("height")?h.get("composite")&&s.data(this,"_jqs_vcanvas")||((l=t.createElement("span")).innerHTML="a",o.html(l),a=s(l).innerHeight()||s(l).height(),s(l).remove(),l=null):a=h.get("height"),h.get("disableInteraction")?g=!1:(g=s.data(this,"_jqs_mhandler"))?h.get("composite")||g.reset():(g=new x(this,h),s.data(this,"_jqs_mhandler",g)),!h.get("composite")||s.data(this,"_jqs_vcanvas")?((p=new(s.fn.sparkline[h.get("type")])(this,r,h,n,a)).render(),g&&g.registerSparkline(p)):s.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),s.data(this,"_jqs_errnotify",!0))},s(this).html()&&!h.get("disableHiddenCheck")&&s(this).is(":hidden")||!s(this).parents("body").length){if(!h.get("composite")&&s.data(this,"_jqs_pending"))for(a=I.length;a;a--)I[a-1][0]==this&&I.splice(a-1,1);I.push([this,n]),s.data(this,"_jqs_pending",!0)}else n.call(this)}))},s.fn.sparkline.defaults=r(),s.sparkline_display_visible=function(){var t,e,i,r=[];for(e=0,i=I.length;e<i;e++)t=I[e][0],s(t).is(":visible")&&!s(t).parents().is(":hidden")?(I[e][1].call(t),s.data(I[e][0],"_jqs_pending",!1),r.push(e)):s(t).closest("html").length||s.data(t,"_jqs_pending")||(s.data(I[e][0],"_jqs_pending",!1),r.push(e));for(e=r.length;e;e--)I.splice(r[e-1],1)},s.fn.sparkline.options=n({init:function(t,e){var i,r,n,a;this.userOptions=e=e||{},this.tag=t,this.tagValCache={},n=(r=s.fn.sparkline.defaults).common,this.tagOptionsPrefix=e.enableTagOptions&&(e.tagOptionsPrefix||n.tagOptionsPrefix),i=(a=this.getTagSetting("type"))===j?r[e.type||n.type]:r[a],this.mergedOptions=s.extend({},n,i,e)},getTagSetting:function(t){var e,s,r,n,a=this.tagOptionsPrefix;if(!1===a||a===i)return j;if(this.tagValCache.hasOwnProperty(t))e=this.tagValCache.key;else{if((e=this.tag.getAttribute(a+t))===i||null===e)e=j;else if("["===e.substr(0,1))for(s=(e=e.substr(1,e.length-2).split(",")).length;s--;)e[s]=l(e[s].replace(/(^\s*)|(\s*$)/g,""));else if("{"===e.substr(0,1))for(r=e.substr(1,e.length-2).split(","),e={},s=r.length;s--;)e[(n=r[s].split(":",2))[0].replace(/(^\s*)|(\s*$)/g,"")]=l(n[1].replace(/(^\s*)|(\s*$)/g,""));else e=l(e);this.tagValCache.key=e}return e},get:function(t,e){var s,r=this.getTagSetting(t);return r!==j?r:(s=this.mergedOptions[t])===i?e:s}}),s.fn.sparkline._base=n({disabled:!1,init:function(t,e,r,n,a){this.el=t,this.$el=s(t),this.values=e,this.options=r,this.width=n,this.height=a,this.currentRegion=i},initTarget:function(){var t=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),t))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0},render:function(){return!this.disabled||(this.el.innerHTML="",!1)},getRegion:function(t,e){},setRegionHighlight:function(t,e,s){var r,n=this.currentRegion,a=!this.options.get("disableHighlight");return e>this.canvasWidth||s>this.canvasHeight||e<0||s<0?null:n!==(r=this.getRegion(t,e,s))&&(n!==i&&a&&this.removeHighlight(),this.currentRegion=r,r!==i&&a&&this.renderHighlight(),!0)},clearRegionHighlight:function(){return this.currentRegion!==i&&(this.removeHighlight(),this.currentRegion=i,!0)},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var t,e,r,n,h,o,l,g,p,u,c,d,f,v,m=this.options,x="",y=[];if(this.currentRegion===i)return"";if(t=this.getCurrentRegionFields(),c=m.get("tooltipFormatter"))return c(this,m,t);if(m.get("tooltipChartTitle")&&(x+='<div class="jqs jqstitle">'+m.get("tooltipChartTitle")+"</div>\n"),!(e=this.options.get("tooltipFormat")))return"";if(s.isArray(e)||(e=[e]),s.isArray(t)||(t=[t]),l=this.options.get("tooltipFormatFieldlist"),g=this.options.get("tooltipFormatFieldlistKey"),l&&g){for(p=[],o=t.length;o--;)u=t[o][g],-1!=(v=s.inArray(u,l))&&(p[v]=t[o]);t=p}for(r=e.length,f=t.length,o=0;o<r;o++)for("string"==typeof(d=e[o])&&(d=new a(d)),n=d.fclass||"jqsfield",v=0;v<f;v++)t[v].isNull&&m.get("tooltipSkipNull")||(s.extend(t[v],{prefix:m.get("tooltipPrefix"),suffix:m.get("tooltipSuffix")}),h=d.render(t[v],m.get("tooltipValueLookups"),m),y.push('<div class="'+n+'">'+h+"</div>"));return y.length?x+y.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(t,i){var s,r,n,a,o=i.get("highlightColor"),l=i.get("highlightLighten");if(o)return o;if(l&&(s=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t))){for(n=[],r=4===t.length?16:1,a=0;a<3;a++)n[a]=h(e.round(parseInt(s[a+1],16)*r*l),0,255);return"rgb("+n.join(",")+")"}return t}}),C={changeHighlight:function(t){var e,i=this.currentRegion,r=this.target,n=this.regionShapes[i];n&&(e=this.renderRegion(i,t),s.isArray(e)||s.isArray(n)?(r.replaceWithShapes(n,e),this.regionShapes[i]=s.map(e,(function(t){return t.id}))):(r.replaceWithShape(n,e),this.regionShapes[i]=e.id))},render:function(){var t,e,i,r,n=this.values,a=this.target,h=this.regionShapes;if(this.cls._super.render.call(this)){for(i=n.length;i--;)if(t=this.renderRegion(i))if(s.isArray(t)){for(e=[],r=t.length;r--;)t[r].append(),e.push(t[r].id);h[i]=e}else t.append(),h[i]=t.id;else h[i]=null;a.render()}}},s.fn.sparkline.line=w=n(s.fn.sparkline._base,{type:"line",init:function(t,e,i,s,r){w._super.init.call(this,t,e,i,s,r),this.vertices=[],this.regionMap=[],this.xvalues=[],this.yvalues=[],this.yminmax=[],this.hightlightSpotId=null,this.lastShapeId=null,this.initTarget()},getRegion:function(t,e,s){var r,n=this.regionMap;for(r=n.length;r--;)if(null!==n[r]&&e>=n[r][0]&&e<=n[r][1])return n[r][2];return i},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:null===this.yvalues[t],x:this.xvalues[t],y:this.yvalues[t],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:t}},renderHighlight:function(){var t,e,s=this.currentRegion,r=this.target,n=this.vertices[s],a=this.options,h=a.get("spotRadius"),o=a.get("highlightSpotColor"),l=a.get("highlightLineColor");n&&(h&&o&&(t=r.drawCircle(n[0],n[1],h,i,o),this.highlightSpotId=t.id,r.insertAfterShape(this.lastShapeId,t)),l&&(e=r.drawLine(n[0],this.canvasTop,n[0],this.canvasTop+this.canvasHeight,l),this.highlightLineId=e.id,r.insertAfterShape(this.lastShapeId,e)))},removeHighlight:function(){var t=this.target;this.highlightSpotId&&(t.removeShapeId(this.highlightSpotId),this.highlightSpotId=null),this.highlightLineId&&(t.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){var t,i,s,r,n,a=this.values,h=a.length,o=this.xvalues,l=this.yvalues,g=this.yminmax;for(t=0;t<h;t++)i=a[t],s="string"==typeof a[t],r="object"==typeof a[t]&&a[t]instanceof Array,n=s&&a[t].split(":"),s&&2===n.length?(o.push(Number(n[0])),l.push(Number(n[1])),g.push(Number(n[1]))):r?(o.push(i[0]),l.push(i[1]),g.push(i[1])):(o.push(t),null===a[t]||"null"===a[t]?l.push(null):(l.push(Number(i)),g.push(Number(i))));this.options.get("xvalues")&&(o=this.options.get("xvalues")),this.maxy=this.maxyorg=e.max.apply(e,g),this.miny=this.minyorg=e.min.apply(e,g),this.maxx=e.max.apply(e,o),this.minx=e.min.apply(e,o),this.xvalues=o,this.yvalues=l,this.yminmax=g},processRangeOptions:function(){var t=this.options,e=t.get("normalRangeMin"),s=t.get("normalRangeMax");e!==i&&(e<this.miny&&(this.miny=e),s>this.maxy&&(this.maxy=s)),t.get("chartRangeMin")!==i&&(t.get("chartRangeClip")||t.get("chartRangeMin")<this.miny)&&(this.miny=t.get("chartRangeMin")),t.get("chartRangeMax")!==i&&(t.get("chartRangeClip")||t.get("chartRangeMax")>this.maxy)&&(this.maxy=t.get("chartRangeMax")),t.get("chartRangeMinX")!==i&&(t.get("chartRangeClipX")||t.get("chartRangeMinX")<this.minx)&&(this.minx=t.get("chartRangeMinX")),t.get("chartRangeMaxX")!==i&&(t.get("chartRangeClipX")||t.get("chartRangeMaxX")>this.maxx)&&(this.maxx=t.get("chartRangeMaxX"))},drawNormalRange:function(t,s,r,n,a){var h=this.options.get("normalRangeMin"),o=this.options.get("normalRangeMax"),l=s+e.round(r-r*((o-this.miny)/a)),g=e.round(r*(o-h)/a);this.target.drawRect(t,l,n,g,i,this.options.get("normalRangeColor")).append()},render:function(){var t,r,n,a,h,o,l,g,p,u,c,d,f,v,x,y,C,b,R,S,k,M,_,H,W=this.options,T=this.target,q=this.canvasWidth,I=this.canvasHeight,j=this.vertices,P=W.get("spotRadius"),L=this.regionMap;if(w._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),M=this.xvalues,_=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(a=h=0,t=this.maxx-this.minx==0?1:this.maxx-this.minx,r=this.maxy-this.miny==0?1:this.maxy-this.miny,n=this.yvalues.length-1,P&&(q<4*P||I<4*P)&&(P=0),P&&(((S=W.get("highlightSpotColor")&&!W.get("disableInteraction"))||W.get("minSpotColor")||W.get("spotColor")&&_[n]===this.miny)&&(I-=e.ceil(P)),(S||W.get("maxSpotColor")||W.get("spotColor")&&_[n]===this.maxy)&&(I-=e.ceil(P),a+=e.ceil(P)),(S||(W.get("minSpotColor")||W.get("maxSpotColor"))&&(_[0]===this.miny||_[0]===this.maxy))&&(h+=e.ceil(P),q-=e.ceil(P)),(S||W.get("spotColor")||W.get("minSpotColor")||W.get("maxSpotColor")&&(_[n]===this.miny||_[n]===this.maxy))&&(q-=e.ceil(P))),I--,W.get("normalRangeMin")===i||W.get("drawNormalOnTop")||this.drawNormalRange(h,a,I,q,r),g=[l=[]],f=v=null,x=_.length,H=0;H<x;H++)p=M[H],c=M[H+1],u=_[H],v=(d=h+e.round((p-this.minx)*(q/t)))+((H<x-1?h+e.round((c-this.minx)*(q/t)):q)-d)/2,L[H]=[f||0,v,H],f=v,null===u?H&&(null!==_[H-1]&&(l=[],g.push(l)),j.push(null)):(u<this.miny&&(u=this.miny),u>this.maxy&&(u=this.maxy),l.length||l.push([d,a+I]),o=[d,a+e.round(I-I*((u-this.miny)/r))],l.push(o),j.push(o));for(y=[],C=[],b=g.length,H=0;H<b;H++)(l=g[H]).length&&(W.get("fillColor")&&(l.push([l[l.length-1][0],a+I]),C.push(l.slice(0)),l.pop()),l.length>2&&(l[0]=[l[0][0],l[1][1]]),y.push(l));for(b=C.length,H=0;H<b;H++)T.drawShape(C[H],W.get("fillColor"),W.get("fillColor")).append();for(W.get("normalRangeMin")!==i&&W.get("drawNormalOnTop")&&this.drawNormalRange(h,a,I,q,r),b=y.length,H=0;H<b;H++)T.drawShape(y[H],W.get("lineColor"),i,W.get("lineWidth")).append();if(P&&W.get("valueSpots"))for((R=W.get("valueSpots")).get===i&&(R=new m(R)),H=0;H<x;H++)(k=R.get(_[H]))&&T.drawCircle(h+e.round((M[H]-this.minx)*(q/t)),a+e.round(I-I*((_[H]-this.miny)/r)),P,i,k).append();P&&W.get("spotColor")&&null!==_[n]&&T.drawCircle(h+e.round((M[M.length-1]-this.minx)*(q/t)),a+e.round(I-I*((_[n]-this.miny)/r)),P,i,W.get("spotColor")).append(),this.maxy!==this.minyorg&&(P&&W.get("minSpotColor")&&(p=M[s.inArray(this.minyorg,_)],T.drawCircle(h+e.round((p-this.minx)*(q/t)),a+e.round(I-I*((this.minyorg-this.miny)/r)),P,i,W.get("minSpotColor")).append()),P&&W.get("maxSpotColor")&&(p=M[s.inArray(this.maxyorg,_)],T.drawCircle(h+e.round((p-this.minx)*(q/t)),a+e.round(I-I*((this.maxyorg-this.miny)/r)),P,i,W.get("maxSpotColor")).append())),this.lastShapeId=T.getLastShapeId(),this.canvasTop=a,T.render()}}}),s.fn.sparkline.bar=b=n(s.fn.sparkline._base,C,{type:"bar",init:function(t,r,n,a,o){var u,c,d,f,v,x,y,C,w,R,S,k,M,_,H,W,T,q,I,j,P,L=parseInt(n.get("barWidth"),10),A=parseInt(n.get("barSpacing"),10),F=n.get("chartRangeMin"),B=n.get("chartRangeMax"),O=n.get("chartRangeClip"),V=1/0,X=-1/0;for(b._super.init.call(this,t,r,n,a,o),x=0,y=r.length;x<y;x++)((u="string"==typeof(j=r[x])&&j.indexOf(":")>-1)||s.isArray(j))&&(H=!0,u&&(j=r[x]=g(j.split(":"))),j=p(j,null),(c=e.min.apply(e,j))<V&&(V=c),(d=e.max.apply(e,j))>X&&(X=d));this.stacked=H,this.regionShapes={},this.barWidth=L,this.barSpacing=A,this.totalBarWidth=L+A,this.width=a=r.length*L+(r.length-1)*A,this.initTarget(),O&&(M=F===i?-1/0:F,_=B===i?1/0:B),v=[],f=H?[]:v;var z=[],N=[];for(x=0,y=r.length;x<y;x++)if(H)for(W=r[x],r[x]=I=[],z[x]=0,f[x]=N[x]=0,T=0,q=W.length;T<q;T++)null!==(j=I[T]=O?h(W[T],M,_):W[T])&&(j>0&&(z[x]+=j),V<0&&X>0?j<0?N[x]+=e.abs(j):f[x]+=j:f[x]+=e.abs(j-(j<0?X:V)),v.push(j));else j=O?h(r[x],M,_):r[x],null!==(j=r[x]=l(j))&&v.push(j);this.max=k=e.max.apply(e,v),this.min=S=e.min.apply(e,v),this.stackMax=X=H?e.max.apply(e,z):k,this.stackMin=V=H?e.min.apply(e,v):S,n.get("chartRangeMin")!==i&&(n.get("chartRangeClip")||n.get("chartRangeMin")<S)&&(S=n.get("chartRangeMin")),n.get("chartRangeMax")!==i&&(n.get("chartRangeClip")||n.get("chartRangeMax")>k)&&(k=n.get("chartRangeMax")),this.zeroAxis=w=n.get("zeroAxis",!0),R=S<=0&&k>=0&&w?0:0==w||S>0?S:k,this.xaxisOffset=R,C=H?e.max.apply(e,f)+e.max.apply(e,N):k-S,this.canvasHeightEf=w&&S<0?this.canvasHeight-2:this.canvasHeight-1,S<R?(P=((H&&k>=0?X:k)-R)/C*this.canvasHeight)!==e.ceil(P)&&(this.canvasHeightEf-=2,P=e.ceil(P)):P=this.canvasHeight,this.yoffset=P,s.isArray(n.get("colorMap"))?(this.colorMapByIndex=n.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=n.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===i&&(this.colorMapByValue=new m(this.colorMapByValue))),this.range=C},getRegion:function(t,s,r){var n=e.floor(s/this.totalBarWidth);return n<0||n>=this.values.length?i:n},getCurrentRegionFields:function(){var t,e,i=this.currentRegion,s=f(this.values[i]),r=[];for(e=s.length;e--;)t=s[e],r.push({isNull:null===t,value:t,color:this.calcColor(e,t,i),offset:i});return r},calcColor:function(t,e,r){var n,a,h=this.colorMapByIndex,o=this.colorMapByValue,l=this.options;return n=this.stacked?l.get("stackedBarColor"):e<0?l.get("negBarColor"):l.get("barColor"),0===e&&l.get("zeroColor")!==i&&(n=l.get("zeroColor")),o&&(a=o.get(e))?n=a:h&&h.length>r&&(n=h[r]),s.isArray(n)?n[t%n.length]:n},renderRegion:function(t,r){var n,a,h,o,l,g,p,u,d,f,v=this.values[t],m=this.options,x=this.xaxisOffset,y=[],C=this.range,w=this.stacked,b=this.target,R=t*this.totalBarWidth,S=this.canvasHeightEf,k=this.yoffset;if(p=(v=s.isArray(v)?v:[v]).length,u=v[0],o=c(null,v),f=c(x,v,!0),o)return m.get("nullColor")?(h=r?m.get("nullColor"):this.calcHighlightColor(m.get("nullColor"),m),n=k>0?k-1:k,b.drawRect(R,n,this.barWidth-1,0,h,h)):i;for(l=k,g=0;g<p;g++){if(u=v[g],w&&u===x){if(!f||d)continue;d=!0}a=C>0?e.floor(S*(e.abs(u-x)/C))+1:1,u<x||u===x&&0===k?(n=l,l+=a):(n=k-a,k-=a),h=this.calcColor(g,u,t),r&&(h=this.calcHighlightColor(h,m)),y.push(b.drawRect(R,n,this.barWidth-1,a-1,h,h))}return 1===y.length?y[0]:y}}),s.fn.sparkline.tristate=R=n(s.fn.sparkline._base,C,{type:"tristate",init:function(t,e,r,n,a){var h=parseInt(r.get("barWidth"),10),o=parseInt(r.get("barSpacing"),10);R._super.init.call(this,t,e,r,n,a),this.regionShapes={},this.barWidth=h,this.barSpacing=o,this.totalBarWidth=h+o,this.values=s.map(e,Number),this.width=n=e.length*h+(e.length-1)*o,s.isArray(r.get("colorMap"))?(this.colorMapByIndex=r.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=r.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===i&&(this.colorMapByValue=new m(this.colorMapByValue))),this.initTarget()},getRegion:function(t,i,s){return e.floor(i/this.totalBarWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===i,value:this.values[t],color:this.calcColor(this.values[t],t),offset:t}},calcColor:function(t,e){var i,s=this.values,r=this.options,n=this.colorMapByIndex,a=this.colorMapByValue;return a&&(i=a.get(t))?i:n&&n.length>e?n[e]:s[e]<0?r.get("negBarColor"):s[e]>0?r.get("posBarColor"):r.get("zeroBarColor")},renderRegion:function(t,i){var s,r,n,a,h,o,l=this.values,g=this.options,p=this.target;if(s=p.pixelHeight,n=e.round(s/2),a=t*this.totalBarWidth,l[t]<0?(h=n,r=n-1):l[t]>0?(h=0,r=n-1):(h=n-1,r=2),null!==(o=this.calcColor(l[t],t)))return i&&(o=this.calcHighlightColor(o,g)),p.drawRect(a,h,this.barWidth-1,r-1,o,o)}}),s.fn.sparkline.discrete=S=n(s.fn.sparkline._base,C,{type:"discrete",init:function(t,r,n,a,h){S._super.init.call(this,t,r,n,a,h),this.regionShapes={},this.values=r=s.map(r,Number),this.min=e.min.apply(e,r),this.max=e.max.apply(e,r),this.range=this.max-this.min,this.width=a="auto"===n.get("width")?2*r.length:this.width,this.interval=e.floor(a/r.length),this.itemWidth=a/r.length,n.get("chartRangeMin")!==i&&(n.get("chartRangeClip")||n.get("chartRangeMin")<this.min)&&(this.min=n.get("chartRangeMin")),n.get("chartRangeMax")!==i&&(n.get("chartRangeClip")||n.get("chartRangeMax")>this.max)&&(this.max=n.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===n.get("lineHeight")?e.round(.3*this.canvasHeight):n.get("lineHeight"))},getRegion:function(t,i,s){return e.floor(i/this.itemWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===i,value:this.values[t],offset:t}},renderRegion:function(t,i){var s,r,n,a,o=this.values,l=this.options,g=this.min,p=this.max,u=this.range,c=this.interval,d=this.target,f=this.canvasHeight,v=this.lineHeight,m=f-v;return r=h(o[t],g,p),a=t*c,s=e.round(m-m*((r-g)/u)),n=l.get("thresholdColor")&&r<l.get("thresholdValue")?l.get("thresholdColor"):l.get("lineColor"),i&&(n=this.calcHighlightColor(n,l)),d.drawLine(a,s,a,s+v,n)}}),s.fn.sparkline.bullet=k=n(s.fn.sparkline._base,{type:"bullet",init:function(t,s,r,n,a){var h,o,l;k._super.init.call(this,t,s,r,n,a),this.values=s=g(s),(l=s.slice())[0]=null===l[0]?l[2]:l[0],l[1]=null===s[1]?l[2]:l[1],h=e.min.apply(e,s),o=e.max.apply(e,s),h=r.get("base")===i?h<0?h:0:r.get("base"),this.min=h,this.max=o,this.range=o-h,this.shapes={},this.valueShapes={},this.regiondata={},this.width=n="auto"===r.get("width")?"4.0em":n,this.target=this.$el.simpledraw(n,a,r.get("composite")),s.length||(this.disabled=!0),this.initTarget()},getRegion:function(t,e,s){var r=this.target.getShapeAt(t,e,s);return r!==i&&this.shapes[r]!==i?this.shapes[r]:i},getCurrentRegionFields:function(){var t=this.currentRegion;return{fieldkey:t.substr(0,1),value:this.values[t.substr(1)],region:t}},changeHighlight:function(t){var e,i=this.currentRegion,s=this.valueShapes[i];switch(delete this.shapes[s],i.substr(0,1)){case"r":e=this.renderRange(i.substr(1),t);break;case"p":e=this.renderPerformance(t);break;case"t":e=this.renderTarget(t)}this.valueShapes[i]=e.id,this.shapes[e.id]=i,this.target.replaceWithShape(s,e)},renderRange:function(t,i){var s=this.values[t],r=e.round(this.canvasWidth*((s-this.min)/this.range)),n=this.options.get("rangeColors")[t-2];return i&&(n=this.calcHighlightColor(n,this.options)),this.target.drawRect(0,0,r-1,this.canvasHeight-1,n,n)},renderPerformance:function(t){var i=this.values[1],s=e.round(this.canvasWidth*((i-this.min)/this.range)),r=this.options.get("performanceColor");return t&&(r=this.calcHighlightColor(r,this.options)),this.target.drawRect(0,e.round(.3*this.canvasHeight),s-1,e.round(.4*this.canvasHeight)-1,r,r)},renderTarget:function(t){var i=this.values[0],s=e.round(this.canvasWidth*((i-this.min)/this.range)-this.options.get("targetWidth")/2),r=e.round(.1*this.canvasHeight),n=this.canvasHeight-2*r,a=this.options.get("targetColor");return t&&(a=this.calcHighlightColor(a,this.options)),this.target.drawRect(s,r,this.options.get("targetWidth")-1,n-1,a,a)},render:function(){var t,e,i=this.values.length,s=this.target;if(k._super.render.call(this)){for(t=2;t<i;t++)e=this.renderRange(t).append(),this.shapes[e.id]="r"+t,this.valueShapes["r"+t]=e.id;null!==this.values[1]&&(e=this.renderPerformance().append(),this.shapes[e.id]="p1",this.valueShapes.p1=e.id),null!==this.values[0]&&(e=this.renderTarget().append(),this.shapes[e.id]="t0",this.valueShapes.t0=e.id),s.render()}}}),s.fn.sparkline.pie=M=n(s.fn.sparkline._base,{type:"pie",init:function(t,i,r,n,a){var h,o=0;if(M._super.init.call(this,t,i,r,n,a),this.shapes={},this.valueShapes={},this.values=i=s.map(i,Number),"auto"===r.get("width")&&(this.width=this.height),i.length>0)for(h=i.length;h--;)o+=i[h];this.total=o,this.initTarget(),this.radius=e.floor(e.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(t,e,s){var r=this.target.getShapeAt(t,e,s);return r!==i&&this.shapes[r]!==i?this.shapes[r]:i},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===i,value:this.values[t],percent:this.values[t]/this.total*100,color:this.options.get("sliceColors")[t%this.options.get("sliceColors").length],offset:t}},changeHighlight:function(t){var e=this.currentRegion,i=this.renderSlice(e,t),s=this.valueShapes[e];delete this.shapes[s],this.target.replaceWithShape(s,i),this.valueShapes[e]=i.id,this.shapes[i.id]=e},renderSlice:function(t,s){var r,n,a,h,o,l=this.target,g=this.options,p=this.radius,u=g.get("borderWidth"),c=g.get("offset"),d=2*e.PI,f=this.values,v=this.total,m=c?2*e.PI*(c/360):0;for(h=f.length,a=0;a<h;a++){if(r=m,n=m,v>0&&(n=m+d*(f[a]/v)),t===a)return o=g.get("sliceColors")[a%g.get("sliceColors").length],s&&(o=this.calcHighlightColor(o,g)),l.drawPieSlice(p,p,p-u,r,n,i,o);m=n}},render:function(){var t,s,r=this.target,n=this.values,a=this.options,h=this.radius,o=a.get("borderWidth"),l=a.get("donutWidth");if(M._super.render.call(this)){for(o&&r.drawCircle(h,h,e.floor(h-o/2),a.get("borderColor"),i,o).append(),s=n.length;s--;)n[s]&&(t=this.renderSlice(s).append(),this.valueShapes[s]=t.id,this.shapes[t.id]=s);l&&r.drawCircle(h,h,h-l,a.get("donutColor"),a.get("donutColor"),0).append(),r.render()}}}),s.fn.sparkline.box=_=n(s.fn.sparkline._base,{type:"box",init:function(t,e,i,r,n){_._super.init.call(this,t,e,i,r,n),this.values=s.map(e,Number),this.width="auto"===i.get("width")?"4.0em":r,this.initTarget(),this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var t=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return this.loutlier!==i&&t.push({field:"lo",value:this.loutlier}),this.routlier!==i&&t.push({field:"ro",value:this.routlier}),this.lwhisker!==i&&t.push({field:"lw",value:this.lwhisker}),this.rwhisker!==i&&t.push({field:"rw",value:this.rwhisker}),t},render:function(){var t,s,r,n,a,h,l,g,p,u,c,d=this.target,f=this.values,v=f.length,m=this.options,x=this.canvasWidth,y=this.canvasHeight,C=m.get("chartRangeMin")===i?e.min.apply(e,f):m.get("chartRangeMin"),w=m.get("chartRangeMax")===i?e.max.apply(e,f):m.get("chartRangeMax"),b=0;if(_._super.render.call(this)){if(m.get("raw"))m.get("showOutliers")&&f.length>5?(s=f[0],t=f[1],n=f[2],a=f[3],h=f[4],l=f[5],g=f[6]):(t=f[0],n=f[1],a=f[2],h=f[3],l=f[4]);else if(f.sort((function(t,e){return t-e})),n=o(f,1),a=o(f,2),r=(h=o(f,3))-n,m.get("showOutliers")){for(t=l=i,p=0;p<v;p++)t===i&&f[p]>n-r*m.get("outlierIQR")&&(t=f[p]),f[p]<h+r*m.get("outlierIQR")&&(l=f[p]);s=f[0],g=f[v-1]}else t=f[0],l=f[v-1];this.quartiles=[n,a,h],this.lwhisker=t,this.rwhisker=l,this.loutlier=s,this.routlier=g,c=x/(w-C+1),m.get("showOutliers")&&(b=e.ceil(m.get("spotRadius")),c=(x-=2*e.ceil(m.get("spotRadius")))/(w-C+1),s<t&&d.drawCircle((s-C)*c+b,y/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append(),g>l&&d.drawCircle((g-C)*c+b,y/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append()),d.drawRect(e.round((n-C)*c+b),e.round(.1*y),e.round((h-n)*c),e.round(.8*y),m.get("boxLineColor"),m.get("boxFillColor")).append(),d.drawLine(e.round((t-C)*c+b),e.round(y/2),e.round((n-C)*c+b),e.round(y/2),m.get("lineColor")).append(),d.drawLine(e.round((t-C)*c+b),e.round(y/4),e.round((t-C)*c+b),e.round(y-y/4),m.get("whiskerColor")).append(),d.drawLine(e.round((l-C)*c+b),e.round(y/2),e.round((h-C)*c+b),e.round(y/2),m.get("lineColor")).append(),d.drawLine(e.round((l-C)*c+b),e.round(y/4),e.round((l-C)*c+b),e.round(y-y/4),m.get("whiskerColor")).append(),d.drawLine(e.round((a-C)*c+b),e.round(.1*y),e.round((a-C)*c+b),e.round(.9*y),m.get("medianColor")).append(),m.get("target")&&(u=e.ceil(m.get("spotRadius")),d.drawLine(e.round((m.get("target")-C)*c+b),e.round(y/2-u),e.round((m.get("target")-C)*c+b),e.round(y/2+u),m.get("targetColor")).append(),d.drawLine(e.round((m.get("target")-C)*c+b-u),e.round(y/2),e.round((m.get("target")-C)*c+b+u),e.round(y/2),m.get("targetColor")).append()),d.render()}}}),H=n({init:function(t,e,i,s){this.target=t,this.id=e,this.type=i,this.args=s},append:function(){return this.target.appendShape(this),this}}),W=n({_pxregex:/(\d+)(px)?\s*$/i,init:function(t,e,i){t&&(this.width=t,this.height=e,this.target=i,this.lastShapeId=null,i[0]&&(i=i[0]),s.data(i,"_jqs_vcanvas",this))},drawLine:function(t,e,i,s,r,n){return this.drawShape([[t,e],[i,s]],r,n)},drawShape:function(t,e,i,s){return this._genShape("Shape",[t,e,i,s])},drawCircle:function(t,e,i,s,r,n){return this._genShape("Circle",[t,e,i,s,r,n])},drawPieSlice:function(t,e,i,s,r,n,a){return this._genShape("PieSlice",[t,e,i,s,r,n,a])},drawRect:function(t,e,i,s,r,n){return this._genShape("Rect",[t,e,i,s,r,n])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(t,e){s(e).html(t)},_calculatePixelDims:function(t,e,i){var r;r=this._pxregex.exec(e),this.pixelHeight=r?r[1]:s(i).height(),r=this._pxregex.exec(t),this.pixelWidth=r?r[1]:s(i).width()},_genShape:function(t,e){var i=P++;return e.unshift(i),new H(this,i,t,e)},appendShape:function(t){alert("appendShape not implemented")},replaceWithShape:function(t,e){alert("replaceWithShape not implemented")},insertAfterShape:function(t,e){alert("insertAfterShape not implemented")},removeShapeId:function(t){alert("removeShapeId not implemented")},getShapeAt:function(t,e,i){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}}),T=n(W,{init:function(e,r,n,a){T._super.init.call(this,e,r,n),this.canvas=t.createElement("canvas"),n[0]&&(n=n[0]),s.data(n,"_jqs_vcanvas",this),s(this.canvas).css({display:"inline-block",width:e,height:r,verticalAlign:"top"}),this._insert(this.canvas,n),this._calculatePixelDims(e,r,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=a,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=i,s(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(t,e,s){var r=this.canvas.getContext("2d");return t!==i&&(r.strokeStyle=t),r.lineWidth=s===i?1:s,e!==i&&(r.fillStyle=e),r},reset:function(){this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=i},_drawShape:function(t,e,s,r,n){var a,h,o=this._getContext(s,r,n);for(o.beginPath(),o.moveTo(e[0][0]+.5,e[0][1]+.5),a=1,h=e.length;a<h;a++)o.lineTo(e[a][0]+.5,e[a][1]+.5);s!==i&&o.stroke(),r!==i&&o.fill(),this.targetX!==i&&this.targetY!==i&&o.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawCircle:function(t,s,r,n,a,h,o){var l=this._getContext(a,h,o);l.beginPath(),l.arc(s,r,n,0,2*e.PI,!1),this.targetX!==i&&this.targetY!==i&&l.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t),a!==i&&l.stroke(),h!==i&&l.fill()},_drawPieSlice:function(t,e,s,r,n,a,h,o){var l=this._getContext(h,o);l.beginPath(),l.moveTo(e,s),l.arc(e,s,r,n,a,!1),l.lineTo(e,s),l.closePath(),h!==i&&l.stroke(),o&&l.fill(),this.targetX!==i&&this.targetY!==i&&l.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawRect:function(t,e,i,s,r,n,a){return this._drawShape(t,[[e,i],[e+s,i],[e+s,i+r],[e,i+r],[e,i]],n,a)},appendShape:function(t){return this.shapes[t.id]=t,this.shapeseq.push(t.id),this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i,s=this.shapeseq;for(this.shapes[e.id]=e,i=s.length;i--;)s[i]==t&&(s[i]=e.id);delete this.shapes[t]},replaceWithShapes:function(t,e){var i,s,r,n=this.shapeseq,a={};for(s=t.length;s--;)a[t[s]]=!0;for(s=n.length;s--;)a[i=n[s]]&&(n.splice(s,1),delete this.shapes[i],r=s);for(s=e.length;s--;)n.splice(r,0,e[s].id),this.shapes[e[s].id]=e[s]},insertAfterShape:function(t,e){var i,s=this.shapeseq;for(i=s.length;i--;)if(s[i]===t)return s.splice(i+1,0,e.id),void(this.shapes[e.id]=e)},removeShapeId:function(t){var e,i=this.shapeseq;for(e=i.length;e--;)if(i[e]===t){i.splice(e,1);break}delete this.shapes[t]},getShapeAt:function(t,e,i){return this.targetX=e,this.targetY=i,this.render(),this.currentTargetShapeId},render:function(){var t,e,i=this.shapeseq,s=this.shapes,r=i.length;for(this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),e=0;e<r;e++)this["_draw"+(t=s[i[e]]).type].apply(this,t.args);this.interact||(this.shapes={},this.shapeseq=[])}}),q=n(W,{init:function(e,i,r){var n;q._super.init.call(this,e,i,r),r[0]&&(r=r[0]),s.data(r,"_jqs_vcanvas",this),this.canvas=t.createElement("span"),s(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:e,height:i,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,r),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,n='<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"></v:group>',this.canvas.insertAdjacentHTML("beforeEnd",n),this.group=s(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,s,r,n){var a,h,o,l,g,p,u=[];for(p=0,g=e.length;p<g;p++)u[p]=e[p][0]+","+e[p][1];return a=u.splice(0,1),n=n===i?1:n,h=s===i?' stroked="false" ':' strokeWeight="'+n+'px" strokeColor="'+s+'" ',o=r===i?' filled="false"':' fillColor="'+r+'" filled="true" ',l=u[0]===u[u.length-1]?"x ":"",'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+h+o+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+a+" l "+u.join(", ")+" "+l+'e"> </v:shape>'},_drawCircle:function(t,e,s,r,n,a,h){return'<v:oval id="jqsshape'+t+'" '+(n===i?' stroked="false" ':' strokeWeight="'+h+'px" strokeColor="'+n+'" ')+(a===i?' filled="false"':' fillColor="'+a+'" filled="true" ')+' style="position:absolute;top:'+(s-=r)+"px; left:"+(e-=r)+"px; width:"+2*r+"px; height:"+2*r+'px"></v:oval>'},_drawPieSlice:function(t,s,r,n,a,h,o,l){var g,p,u,c,d,f,v;if(a===h)return"";if(h-a==2*e.PI&&(a=0,h=2*e.PI),p=s+e.round(e.cos(a)*n),u=r+e.round(e.sin(a)*n),c=s+e.round(e.cos(h)*n),d=r+e.round(e.sin(h)*n),p===c&&u===d){if(h-a<e.PI)return"";p=c=s+n,u=d=r}return p===c&&u===d&&h-a<e.PI?"":(g=[s-n,r-n,s+n,r+n,p,u,c,d],f=o===i?' stroked="false" ':' strokeWeight="1px" strokeColor="'+o+'" ',v=l===i?' filled="false"':' fillColor="'+l+'" filled="true" ','<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+f+v+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+s+","+r+" wa "+g.join(", ")+' x e"> </v:shape>')},_drawRect:function(t,e,i,s,r,n,a){return this._drawShape(t,[[e,i],[e,i+r],[e+s,i+r],[e+s,i],[e,i]],n,a)},reset:function(){this.group.innerHTML=""},appendShape:function(t){var e=this["_draw"+t.type].apply(this,t.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",e):this.prerender+=e,this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i=s("#jqsshape"+t),r=this["_draw"+e.type].apply(this,e.args);i[0].outerHTML=r},replaceWithShapes:function(t,e){var i,r=s("#jqsshape"+t[0]),n="",a=e.length;for(i=0;i<a;i++)n+=this["_draw"+e[i].type].apply(this,e[i].args);for(r[0].outerHTML=n,i=1;i<t.length;i++)s("#jqsshape"+t[i]).remove()},insertAfterShape:function(t,e){var i=s("#jqsshape"+t),r=this["_draw"+e.type].apply(this,e.args);i[0].insertAdjacentHTML("afterEnd",r)},removeShapeId:function(t){var e=s("#jqsshape"+t);this.group.removeChild(e[0])},getShapeAt:function(t,e,i){return t.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})},"function"==typeof define&&define.amd?define(["jquery"],s):jQuery&&!jQuery.fn.sparkline&&s(jQuery)}(document,Math);