All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.webjars.bycdao-ui.cdao.DUI.js Maven / Gradle / Ivy

///
///
/*!
 * iCheck v1.0.2, http://git.io/arlzeA
 * ===================================
 * Powerful jQuery and Zepto plugin for checkboxes and radio buttons customization
 *
 * (c) 2013 Damir Sultanov, http://fronteed.com
 * MIT Licensed
 *////
/*!
 * fancyBox - jQuery Plugin
 * version: 2.1.5 (Fri, 14 Jun 2013)
 * @requires jQuery v1.6 or later
 *
 * Examples at http://fancyapps.com/fancybox/
 * License: www.fancyapps.com/fancybox/#license
 *
 * Copyright 2012 Janis Skarnelis - [email protected]
 *
 *////
/*!
 * jQuery Form Plugin
 * version: 3.51.0-2014.06.20
 * Requires jQuery v1.5 or later
 * Copyright (c) 2014 M. Alsup
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Project repository: https://github.com/malsup/form
 * Dual licensed under the MIT and GPL licenses.
 * https://github.com/malsup/form#copyright-and-license
 */
/*global ActiveXObject */

// AMD support
///
/*!
 * Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/
 * Dual-licensed under the BSD or MIT licenses
 *////
/* jquery.nicescroll 3.5.0 InuYaksa*2013 MIT http://areaaperta.com/nicescroll *////
/*

	jQuery Tags Input Plugin 1.3.3
	
	Copyright (c) 2011 XOXCO, Inc
	
	Documentation for this plugin lives here:
	http://xoxco.com/clickable/jquery-tags-input
	
	Licensed under the MIT license:
	http://www.opensource.org/licenses/mit-license.php

	[email protected]

*////
/*!
 * strength.js
 * Original author: @aaronlumsden
 * Further changes, comments: @aaronlumsden
 * Licensed under the MIT license
 *////
/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */
/*

  The MIT License (MIT)

  Copyright (c) 2007-2013 Einar Lielmanis and contributors.

  Permission is hereby granted, free of charge, to any person
  obtaining a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be
  included in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.


 Style HTML
---------------

  Written by Nochum Sossonko, ([email protected])

  Based on code initially developed by: Einar Lielmanis, 
    http://jsbeautifier.org/

  Usage:
    style_html(html_source);

    style_html(html_source, options);

  The options are:
    indent_size (default 4)          — indentation size,
    indent_char (default space)      — character to indent with,
    max_char (default 250)            -  maximum amount of characters per line (0 = disable)
    brace_style (default "collapse") - "collapse" | "expand" | "end-expand"
            put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line.
    unformatted (defaults to inline tags) - list of tags, that shouldn't be reformatted
    indent_scripts (default normal)  - "keep"|"separate"|"normal"

    e.g.

    style_html(html_source, {
      'indent_size': 2,
      'indent_char': ' ',
      'max_char': 78,
      'brace_style': 'expand',
      'unformatted': ['a', 'sub', 'sup', 'b', 'i', 'u']
    });
*////
/* ===========================================================
 * bootstrap-inputmask.js j2
 * http://twitter.github.com/bootstrap/javascript.html#tooltips
 * Based on Masked Input plugin by Josh Bush (digitalbush.com)
 * ===========================================================
 * Copyright 2012 Jasny BV, Netherlands.
 *
 * Licensed under the Apache License, Version 2.0 (the "License")
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== *////
/* ========================================================================
 * bootstrap-switch - v3.3.2
 * http://www.bootstrap-switch.org
 * ========================================================================
 * Copyright 2012-2013 Mattia Larentis
 *
 * ========================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================================
 *////
/* =========================================================
 * bootstrap-treeview.js v1.0.0
 * =========================================================
 * Copyright 2013 Jonathan Miles 
 * Project URL : http://www.jondmiles.com/bootstrap-treeview
 *	
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================= *////
/*! 
 * jQuery Steps v1.0.6 - 04/27/2014
 * Copyright (c) 2014 Rafael Staib (http://www.jquery-steps.com)
 * Licensed under MIT http://www.opensource.org/licenses/MIT
 *////
/*! jQuery Validation Plugin - v1.13.0 - 7/1/2014
 * http://jqueryvalidation.org/
 * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT *////
/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014
 * http://jqueryvalidation.org/
 * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT *////
/*!
 * FullCalendar v1.6.4
 * Docs & License: http://arshaw.com/fullcalendar/
 * (c) 2013 Adam Shaw
 *////
/*! layer-v2.4 弹层组件 License LGPL  http://layer.layui.com/ By 贤心 *//*
 FastClick: polyfill to remove click delays on browsers with touch UIs.

 @version 0.6.11
 @codingstandard ftlabs-jsv2
 @copyright The Financial Times Limited [All Rights Reserved]
 @license MIT License (see LICENSE.txt)
*/
(function(){function c(){this.Diff_Timeout=1;this.Diff_EditCost=4;this.Match_Threshold=.5;this.Match_Distance=1E3;this.Patch_DeleteThreshold=.5;this.Patch_Margin=4;this.Match_MaxBits=32}c.prototype.diff_main=function(c,b,h,l){"undefined"==typeof l&&(l=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==c||null==b)throw Error("Null input. (diff_main)");if(c==b)return c?[[0,c]]:[];"undefined"==typeof h&&(h=!0);var e=h,n=this.diff_commonPrefix(c,b);h=c.substring(0,n);c=c.substring(n);b=b.substring(n);var n=this.diff_commonSuffix(c,b),d=c.substring(c.length-n);c=c.substring(0,c.length-n);b=b.substring(0,b.length-n);c=this.diff_compute_(c,b,e,l);h&&c.unshift([0,h]);d&&c.push([0,d]);this.diff_cleanupMerge(c);return c};c.prototype.diff_compute_=function(c,b,h,l){if(!c)return[[1,b]];if(!b)return[[-1,c]];var e=c.length>b.length?c:b,n=c.length>b.length?b:c,d=e.indexOf(n);return-1!=d?(h=[[1,e.substring(0,d)],[0,n],[1,e.substring(d+n.length)]],c.length>b.length&&(h[0][0]=h[2][0]=-1),h):1==n.length?[[-1,c],[1,b]]:(e=this.diff_halfMatch_(c,b))?(n=e[0],c=e[1],d=e[2],b=e[3],e=e[4],n=this.diff_main(n,d,h,l),h=this.diff_main(c,b,h,l),n.concat([[0,e]],h)):h&&100h);t++){for(var w=-t+u;w<=t-x;w+=2){var y=n+w,z;z=w==-t||w!=t&&m[y-1]l)x+=2;else if(D>e)u+=2;else if(k&&(y=n+f-w,0<=y&&y=A)return this.diff_bisectSplit_(c,b,z,D,h)}}for(w=-t+v;w<=t-g;w+=2){y=n+w;A=w==-t||w!=t&&r[y-1]l)g+=2;else if(z>e)v+=2;else if(!k&&(y=n+f-w,0<=y&&y=A)))return this.diff_bisectSplit_(c,b,z,D,h)}}return[[-1,c],[1,b]]};c.prototype.diff_bisectSplit_=function(c,b,h,l,e){var n=c.substring(0,h),d=b.substring(0,l);c=c.substring(h);b=b.substring(l);n=this.diff_main(n,d,!1,e);e=this.diff_main(c,b,!1,e);return n.concat(e)};c.prototype.diff_linesToChars_=function(c,b){function h(d){for(var b="",f=0,k=-1,u=l.length;kl?c=c.substring(h-l):h=f.length?[t,w,b,r,g]:null}if(0>=this.Diff_Timeout)return null;var l=c.length>b.length?c:b,e=c.length>b.length?b:c;if(4>l.length||2*e.lengthl[4].length?d:l:l:d;var r;c.length>b.length?(d=m[0],l=m[1],e=m[2],r=m[3]):(e=m[0],r=m[1],d=m[2],l=m[3]);m=m[4];return[d,l,e,r,m]};c.prototype.diff_cleanupSemantic=function(c){for(var b=!1,h=[],l=0,e=null,n=0,d=0,m=0,r=0,f=0;n=e){if(l>=b.length/2||l>=h.length/2)c.splice(n,0,[0,h.substring(0,l)]),c[n-1][1]=b.substring(0,b.length-l),c[n+1][1]=h.substring(l),n++}else if(e>=b.length/2||e>=h.length/2)c.splice(n,0,[0,b.substring(0,e)]),c[n-1][0]=1,c[n-1][1]=h.substring(0,h.length-e),c[n+1][0]=-1,c[n+1][1]=b.substring(e),n++;n++}n++}};c.prototype.diff_cleanupSemanticLossless=function(p){function b(f,k){if(!f||!k)return 6;var d=f.charAt(f.length-1),g=k.charAt(0),t=d.match(c.nonAlphaNumericRegex_),w=g.match(c.nonAlphaNumericRegex_),m=t&&d.match(c.whitespaceRegex_),e=w&&g.match(c.whitespaceRegex_),d=m&&d.match(c.linebreakRegex_),g=e&&g.match(c.linebreakRegex_),b=d&&f.match(c.blanklineEndRegex_),r=g&&k.match(c.blanklineStartRegex_);return b||r?5:d||g?4:t&&!m&&e?3:m||e?2:t||w?1:0}for(var h=1;h=f&&(f=k,d=l,m=e,r=n)}p[h-1][1]!=d&&(d?p[h-1][1]=d:(p.splice(h-1,1),h--),p[h][1]=m,r?p[h+1][1]=r:(p.splice(h+1,1),h--))}h++}};c.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;c.whitespaceRegex_=/\s/;c.linebreakRegex_=/[\r\n]/;c.blanklineEndRegex_=/\n\r?\n$/;c.blanklineStartRegex_=/^\r?\n\r?\n/;c.prototype.diff_cleanupEfficiency=function(c){for(var b=!1,h=[],l=0,e=null,n=0,d=!1,m=!1,r=!1,f=!1;nb)break;e=h;n=l}return c.length!=d&&-1===c[d][0]?n:n+(b-e)};c.prototype.diff_prettyHtml=function(c){for(var b=[],h=/&/g,l=//g,n=/\n/g,d=0;dr)throw Error("Invalid number in diff_fromDelta: "+m);m=c.substring(e,e+=r);"\x3d"==n[d].charAt(0)?h[l++]=[0,m]:h[l++]=[-1,m];break;default:if(n[d])throw Error("Invalid diff operation in diff_fromDelta: "+n[d]);}}if(e!=c.length)throw Error("Delta length ("+e+") does not equal source text length ("+c.length+").");return h};c.prototype.match_main=function(c,b,h){if(null==c||null==b||null==h)throw Error("Null input. (match_main)");h=Math.max(0,Math.min(h,c.length));return c==b?0:c.length?c.substring(h,h+b.length)==b?h:this.match_bitap_(c,b,h):-1};c.prototype.match_bitap_=function(c,b,h){function l(g,f){var t=g/b.length,k=Math.abs(h-f);return n.Match_Distance?t+k/n.Match_Distance:k?1:t}if(b.length>this.Match_MaxBits)throw Error("Pattern too long for this browser.");var e=this.match_alphabet_(b),n=this,d=this.Match_Threshold,m=c.indexOf(b,h);-1!=m&&(d=Math.min(l(0,m),d),m=c.lastIndexOf(b,h+b.length),-1!=m&&(d=Math.min(l(0,m),d)));for(var r=1<=f;g--){var t=e[c.charAt(g-1)];k[g]=0===v?(k[g+1]<<1|1)&t:(k[g+1]<<1|1)&t|(x[g+1]|x[g])<<1|1|x[g+1];if(k[g]&r&&(t=l(v,g-1),t<=d))if(d=t,m=g-1,m>h)f=Math.max(1,2*h-m);else break}if(l(v+1,h)>d)break;x=k}return m};c.prototype.match_alphabet_=function(c){for(var b={},h=0;h=2*this.Patch_Margin&&e&&(this.patch_addContext_(p,m),h.push(p),p=new c.patch_obj,e=0,m=l,n=d)}1!==f&&(n+=k.length);-1!==f&&(d+=k.length)}e&&(this.patch_addContext_(p,m),h.push(p));return h};c.prototype.patch_deepCopy=function(p){for(var b=[],h=0;hthis.Match_MaxBits){if(r=this.match_main(b,m.substring(0,this.Match_MaxBits),d),-1!=r&&(f=this.match_main(b,m.substring(m.length-this.Match_MaxBits),d+m.length-this.Match_MaxBits),-1==f||r>=f))r=-1}else r=this.match_main(b,m,d);if(-1==r)e[n]=!1,l-=c[n].length2-c[n].length1;else if(e[n]=!0,l=r-d,d=-1==f?b.substring(r,r+m.length):b.substring(r,f+this.Match_MaxBits),m==d)b=b.substring(0,r)+this.diff_text2(c[n].diffs)+b.substring(r+m.length);else if(d=this.diff_main(m,d,!1),m.length>this.Match_MaxBits&&this.diff_levenshtein(d)/m.length>this.Patch_DeleteThreshold)e[n]=!1;else{this.diff_cleanupSemanticLossless(d);for(var m=0,k,f=0;fe[0][1].length){var n=b-e[0][1].length;e[0][1]=h.substring(e[0][1].length)+e[0][1];l.start1-=n;l.start2-=n;l.length1+=n;l.length2+=n}l=c[c.length-1];e=l.diffs;0==e.length||0!=e[e.length-1][0]?(e.push([0,h]),l.length1+=b,l.length2+=b):b>e[e.length-1][1].length&&(n=b-e[e.length-1][1].length,e[e.length-1][1]+=h.substring(0,n),l.length1+=n,l.length2+=n);return h};c.prototype.patch_splitMax=function(p){for(var b=this.Match_MaxBits,h=0;h2*b?(m.length1+=f.length,e+=f.length,r=!1,m.diffs.push([d,f]),l.diffs.shift()):(f=f.substring(0,b-m.length1-this.Patch_Margin),m.length1+=f.length,e+=f.length,0===d?(m.length2+=f.length,n+=f.length):r=!1,m.diffs.push([d,f]),f==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(f.length))}d=this.diff_text2(m.diffs);d=d.substring(d.length-this.Patch_Margin);f=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);""!==f&&(m.length1+=f.length,m.length2+=f.length,0!==m.diffs.length&&0===m.diffs[m.diffs.length-1][0]?m.diffs[m.diffs.length-1][1]+=f:m.diffs.push([0,f]));r||p.splice(++h,0,m)}}};c.prototype.patch_toText=function(c){for(var b=[],h=0;hf.get("hoverLayerThreshold")&&!y.node&&t.traverse(function(g){g.isGroup||(g.useHoverLayer=!0)})}function g(g,f){var t=0;f.group.traverse(function(g){"group"===g.type||g.ignore||t++});var k=+g.get("progressive"),w=t>g.get("progressiveThreshold")&&k&&!y.node;w&&f.group.traverse(function(g){g.isGroup||(g.progressive=w?Math.floor(t++/k):-1,w&&g.stopAnimation(!0))});var d=g.get("blendMode")||null;!y.canvasSupported&&d&&"source-over"!==d&&console.warn("Only canvas support blendMode");f.group.traverse(function(g){g.isGroup||g.setStyle("blend",d)})}function t(g,f){var t=g.get("z"),k=g.get("zlevel");f.group.traverse(function(g){"group"!==g.type&&(null!=t&&(g.z=t),null!=k&&(g.zlevel=k))})}function w(g){function f(g,t){for(var k=0;kr.indexOf(this._seriesIndices,g.componentIndex)},filterSeries:function(g,f){m(this);var t=x(this._componentsMap.series,g,f);this._seriesIndices=n(t)},restoreData:function(){var g=this._componentsMap;this._seriesIndices=n(g.series);var f=[];u(g,function(g,t){f.push(t)});y.topologicalTravel(f,y.getAllClassMainTypes(),function(f,t){u(g[f],function(g){g.restoreData()})})}});r.mixin(D,b(24));c.exports=D},function(c,p){function b(g){if("object"==typeof g&&null!==g){var f=g;if(g instanceof Array)for(var f=[],t=0,k=g.length;t=f.length&&f.push({option:k})}});return f};d.isIdInner=function(d){return n.isObject(d)&&d.id&&0===(d.id+"").indexOf("\x00_ec_\x00")};d.compressBatches=function(m,e){function f(f,g,t){for(var k=0,m=f.length;kd?"0"+d:d}var l=b(4),e=b(7);p=b(8);var n="abcdefg".split("");c.exports={normalizeCssArray:function(d){var m=d.length;return"number"===typeof d?[d,d,d,d]:2===m?[d[0],d[1],d[0],d[1]]:3===m?[d[0],d[1],d[2],d[1]]:d},addCommas:function(d){if(isNaN(d))return"-";d=(d+"").split(".");return d[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#39;")},formatTpl:function(d,m){l.isArray(m)||(m=[m]);var e=m.length;if(!e)return"";for(var f=m[0].$vars||[],k=0;k=c[1])return e[1]}else{if(b>=c[0])return e[0];if(b<=c[1])return e[1]}else{if(b===c[0])return e[0];if(b===c[1])return e[1]}return(b-c[0])/d*m+e[0]},parsePercent:function(b,c){switch(b){case "center":case "middle":b="50%";break;case "left":case "top":b="0%";break;case "right":case "bottom":b="100%"}return"string"===typeof b?b.replace(/^\s+/,"").replace(/\s+$/,"").match(/%$/)?parseFloat(b)/100*c:parseFloat(b):null==b?NaN:+b},round:function(b){return+(+b).toFixed(10)},asc:function(b){b.sort(function(b,e){return b-e});return b},getPrecision:function(b){b=+b;if(isNaN(b))return 0;for(var c=1,e=0;Math.round(b*c)/c!==b;)c*=10,e++;return e},getPixelPrecision:function(b,c){var e=Math.log,n=Math.LN10,d=Math.floor(e(b[1]-b[0])/n),e=Math.round(e(Math.abs(c[1]-c[0]))/n);return Math.max(-d+e,0)},MAX_SAFE_INTEGER:9007199254740991,remRadian:function(b){var c=2*Math.PI;return(b%c+c)%c},isRadianAroundZero:function(b){return-1E-4b},parseDate:function(b){return b instanceof Date?b:new Date("string"===typeof b?new Date(b.replace(/-/g,"/"))-new Date("1970/01/01"):Math.round(b))},quantity:function(b){return Math.pow(10,Math.floor(Math.log(b)/Math.LN10))},nice:function(c,l){var e=b.quantity(c),n=c/e;return(l?1.5>n?1:2.5>n?2:4>n?3:7>n?5:10:1>n?1:2>n?2:3>n?3:5>n?5:10)*e}};c.exports=b},function(c,p,b){function h(f,k){var d=f+":"+k;if(l[d])return l[d];for(var m=(f+"").split("\n"),b=0,g=0,t=m.length;g=y;c++)r-=y;c=h(e);c>r&&(e="",c=0);r=k-c;f=(f+"").split("\n");c=0;for(t=f.length;c=g){n+=e;break}if(0===F){for(var l=n,N=r,E=y,p=w,q=0,H=0,L=l.length;H=I?E:p);l=H}else l=0=this.x&&d<=this.x+this.width&&f>=this.y&&f<=this.y+this.height},clone:function(){return new h(this.x,this.y,this.width,this.height)},copy:function(d){this.x=d.x;this.y=d.y;this.width=d.width;this.height=d.height}};c.exports=h},function(c,p){var b="undefined"===typeof Float32Array?Array:Float32Array,h={create:function(c,e){var n=new b(2);null==c&&(c=0);null==e&&(e=0);n[0]=c;n[1]=e;return n},copy:function(b,e){b[0]=e[0];b[1]=e[1];return b},clone:function(c){var e=new b(2);e[0]=c[0];e[1]=c[1];return e},set:function(b,e,c){b[0]=e;b[1]=c;return b},add:function(b,e,c){b[0]=e[0]+c[0];b[1]=e[1]+c[1];return b},scaleAndAdd:function(b,e,c,d){b[0]=e[0]+c[0]*d;b[1]=e[1]+c[1]*d;return b},sub:function(b,e,c){b[0]=e[0]-c[0];b[1]=e[1]-c[1];return b},len:function(b){return Math.sqrt(this.lenSquare(b))},lenSquare:function(b){return b[0]*b[0]+b[1]*b[1]},mul:function(b,e,c){b[0]=e[0]*c[0];b[1]=e[1]*c[1];return b},div:function(b,e,c){b[0]=e[0]/c[0];b[1]=e[1]/c[1];return b},dot:function(b,e){return b[0]*e[0]+b[1]*e[1]},scale:function(b,e,c){b[0]=e[0]*c;b[1]=e[1]*c;return b},normalize:function(b,e){var c=h.len(e);0===c?(b[0]=0,b[1]=0):(b[0]=e[0]/c,b[1]=e[1]/c);return b},distance:function(b,e){return Math.sqrt((b[0]-e[0])*(b[0]-e[0])+(b[1]-e[1])*(b[1]-e[1]))},distanceSquare:function(b,e){return(b[0]-e[0])*(b[0]-e[0])+(b[1]-e[1])*(b[1]-e[1])},negate:function(b,e){b[0]=-e[0];b[1]=-e[1];return b},lerp:function(b,e,c,d){b[0]=e[0]+d*(c[0]-e[0]);b[1]=e[1]+d*(c[1]-e[1]);return b},applyTransform:function(b,e,c){var d=e[0];e=e[1];b[0]=c[0]*d+c[2]*e+c[4];b[1]=c[1]*d+c[3]*e+c[5];return b},min:function(b,e,c){b[0]=Math.min(e[0],c[0]);b[1]=Math.min(e[1],c[1]);return b},max:function(b,e,c){b[0]=Math.max(e[0],c[0]);b[1]=Math.max(e[1],c[1]);return b}};h.length=h.len;h.lengthSquare=h.lenSquare;h.dist=h.distance;h.distSquare=h.distanceSquare;c.exports=h},function(c,p){var b="undefined"===typeof Float32Array?Array:Float32Array,h={create:function(){var c=new b(6);h.identity(c);return c},identity:function(b){b[0]=1;b[1]=0;b[2]=0;b[3]=1;b[4]=0;b[5]=0;return b},copy:function(b,e){b[0]=e[0];b[1]=e[1];b[2]=e[2];b[3]=e[3];b[4]=e[4];b[5]=e[5];return b},mul:function(b,e,c){var d=e[1]*c[0]+e[3]*c[1],m=e[0]*c[2]+e[2]*c[3],r=e[1]*c[2]+e[3]*c[3],f=e[0]*c[4]+e[2]*c[5]+e[4],k=e[1]*c[4]+e[3]*c[5]+e[5];b[0]=e[0]*c[0]+e[2]*c[1];b[1]=d;b[2]=m;b[3]=r;b[4]=f;b[5]=k;return b},translate:function(b,e,c){b[0]=e[0];b[1]=e[1];b[2]=e[2];b[3]=e[3];b[4]=e[4]+c[0];b[5]=e[5]+c[1];return b},rotate:function(b,e,c){var d=e[0],m=e[2],r=e[4],f=e[1],k=e[3];e=e[5];var u=Math.sin(c);c=Math.cos(c);b[0]=d*c+f*u;b[1]=-d*u+f*c;b[2]=m*c+k*u;b[3]=-m*u+c*k;b[4]=c*r+u*e;b[5]=c*e-u*r;return b},scale:function(b,e,c){var d=c[0];c=c[1];b[0]=e[0]*d;b[1]=e[1]*c;b[2]=e[2]*d;b[3]=e[3]*c;b[4]=e[4]*d;b[5]=e[5]*c;return b},invert:function(b,e){var c=e[0],d=e[2],m=e[4],r=e[1],f=e[3],k=e[5],u=c*f-r*d;if(!u)return null;u=1/u;b[0]=f*u;b[1]=-r*u;b[2]=-d*u;b[3]=c*u;b[4]=(d*k-f*m)*u;b[5]=(r*m-c*k)*u;return b}};c.exports=h},function(c,p,b){function h(b,d,m){this.parentModel=d;this.ecModel=m;this.option=b}var l=b(4),e=b(13);h.prototype={constructor:h,init:null,mergeOption:function(b){l.merge(this.option,b,!0)},get:function(b,d){if(!b)return this.option;"string"===typeof b&&(b=b.split("."));for(var m=this.option,e=this.parentModel,f=0;fh.indexOf(g.predecessor,f)&&g.predecessor.push(f);var t=e(b,f);0>h.indexOf(t.successor,f)&&t.successor.push(c)})});return{graph:b,noEntryList:m}}function e(f,d){f[d]||(f[d]={predecessor:[],successor:[]});return f[d]}function f(f,d){var b=[];h.each(f,function(f){0<=h.indexOf(d,f)&&b.push(f)});return b}b.topologicalTravel=function(f,d,b,e){function g(g){w[g].entryCount--;0===w[g].entryCount&&y.push(g)}function t(f){r[f]=!0;g(f)}if(f.length){d=m(d);var w=d.graph,y=d.noEntryList,r={};for(h.each(f,function(g){r[g]=!0});y.length;){f=y.pop();d=w[f];var c=!!r[f];c&&(b.call(e,f,d.originalDeps.slice()),delete r[f]);h.each(d.successor,c?t:g)}h.each(r,function(){throw Error("Circle dependency may exists");})}}}}},function(c,p,b){function h(f,d,b,m,g){var t=0,w=0;null==m&&(m=Infinity);null==g&&(g=Infinity);var e=0;d.eachChild(function(r,c){var n=r.position,h=r.getBoundingRect(),l=d.childAt(c+1),l=l&&l.getBoundingRect(),N,E;"horizontal"===f?(l=h.width+(l?-l.x+h.x:0),N=t+l,N>m||r.newline?(t=0,N=l,w+=e+b,e=h.height):e=Math.max(e,h.height)):(l=h.height+(l?-l.y+h.y:0),E=w+l,E>g||r.newline?(t+=e+b,w=0,E=l,e=h.width):e=Math.max(e,h.width));r.newline||(n[0]=t,n[1]=w,"horizontal"===f?t=N+b:w=E+b)})}var l=b(4),e=b(9);p=b(7);var n=b(6),d=p.parsePercent,m=l.each,r={},f="left right top bottom width height".split(" ");r.box=h;r.vbox=l.curry(h,"vertical");r.hbox=l.curry(h,"horizontal");r.getAvailableSize=function(f,b,m){var e=b.width;b=b.height;var g=d(f.x,e),t=d(f.y,b),w=d(f.x2,e),y=d(f.y2,b);(isNaN(g)||isNaN(parseFloat(f.x)))&&(g=0);(isNaN(w)||isNaN(parseFloat(f.x2)))&&(w=e);(isNaN(t)||isNaN(parseFloat(f.y)))&&(t=0);(isNaN(y)||isNaN(parseFloat(f.y2)))&&(y=b);m=n.normalizeCssArray(m||0);return{width:Math.max(w-g-m[1]-m[3],0),height:Math.max(y-t-m[0]-m[2],0)}};r.getLayoutRect=function(f,b,m){m=n.normalizeCssArray(m||0);var r=b.width;b=b.height;var g=d(f.left,r),t=d(f.top,b),w=d(f.right,r),y=d(f.bottom,b),c=d(f.width,r),h=d(f.height,b),l=m[2]+m[0],B=m[1]+m[3],F=f.aspect;isNaN(c)&&(c=r-w-B-g);isNaN(h)&&(h=b-y-l-t);isNaN(c)&&isNaN(h)&&(F>r/b?c=.8*r:h=.8*b);null!=F&&(isNaN(c)&&(c=F*h),isNaN(h)&&(h=c/F));isNaN(g)&&(g=r-w-c-B);isNaN(t)&&(t=b-y-h-l);switch(f.left||f.right){case "center":g=r/2-c/2-m[3];break;case "right":g=r-c-B}switch(f.top||f.bottom){case "middle":case "center":t=b/2-h/2-m[0];break;case "bottom":t=b-h-l}g=g||0;t=t||0;isNaN(c)&&(c=r-g-(w||0));isNaN(h)&&(h=b-t-(y||0));f=new e(g+m[3],t+m[0],c,h);f.margin=m;return f};r.positionGroup=function(f,d,b,m){var g=f.getBoundingRect();d=l.extend(l.clone(d),{width:g.width,height:g.height});d=r.getLayoutRect(d,b,m);f.attr("position",[d.x-g.x,d.y-g.y])};r.mergeLayoutParam=function(f,d,b){function e(g){var t={},w=0,y={},r=0,c=b.ignoreSize?1:2;m(g,function(g){y[g]=f[g]});m(g,function(g){d.hasOwnProperty(g)&&(t[g]=y[g]=d[g]);null!=t[g]&&"auto"!==t[g]&&w++;null!=y[g]&&"auto"!==y[g]&&r++});if(r!==c&&w){if(!(w>=c))for(c=0;c=f:"max"===b?t<=f:t===f)||(e=!1)}});return e}function n(g,f){return g.join(",")===f.join(",")}function d(g,d){d=d||{};k(d,function(d,b){if(null!=d){var k=g[b];f.hasClass(b)?(d=r.normalizeToArray(d),k=r.normalizeToArray(k),k=r.mappingToExists(k,d),g[b]=x(k,function(g){return g.option&&g.exist?v(g.exist,g.option,!0):g.exist||g.option})):g[b]=v(k,d,!0)}})}var m=b(4),r=b(5),f=b(19),k=m.each,u=m.clone,x=m.map,v=m.merge,g=/^(min|max)?(.+)$/;h.prototype={constructor:h,setOption:function(g,f){g=u(g,!0);var b=this._optionBackup,k=l.call(this,g,f,!b);this._newBaseOption=k.baseOption;b?(d(b.baseOption,k.baseOption),k.timelineOptions.length&&(b.timelineOptions=k.timelineOptions),k.mediaList.length&&(b.mediaList=k.mediaList),k.mediaDefault&&(b.mediaDefault=k.mediaDefault)):this._optionBackup=k},mountOption:function(g){var f=this._optionBackup;this._timelineOptions=x(f.timelineOptions,u);this._mediaList=x(f.mediaList,u);this._mediaDefault=u(f.mediaDefault);this._currentMediaIndices=[];return u(g?f.baseOption:this._newBaseOption)},getTimelineOption:function(g){var f,d=this._timelineOptions;d.length&&(g=g.getComponent("timeline"))&&(f=u(d[g.getCurrentIndex()],!0));return f},getMediaOption:function(g){g=this._api.getWidth();var f=this._api.getHeight(),d=this._mediaList,b=this._mediaDefault,k=[],m=[];if(!d.length&&!b)return m;for(var r=0,c=d.length;rthis.getShallow("animationThreshold")&&(f=!1);return f},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(f,d){var b=this.ecModel,m=n.getColorFromPalette.call(this,f,d);m||(m=b.getColorFromPalette(f,d));return m},getAxisTooltipDataIndex:null});h.mixin(b,e.dataFormatMixin);h.mixin(b,n);c.exports=b},function(c,p,b){var h=b(30),l=b(20);p=b(13);b=function(){this.group=new h;this.uid=l.getUID("viewComponent")};b.prototype={constructor:b,init:function(b,d){},render:function(b,d,m,e){},dispose:function(){}};var e=b.prototype;e.updateView=e.updateLayout=e.updateVisual=function(b,d,m,e){};p.enableClassExtend(b);p.enableClassManagement(b,{registerWhenExtend:!0});c.exports=b},function(c,p,b){var h=b(4),l=b(31),e=b(9),n=function(d){d=d||{};l.call(this,d);for(var b in d)this[b]=d[b];this._children=[];this.__storage=null;this.__dirty=!0};n.prototype={constructor:n,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(d){return this._children[d]},childOfName:function(d){for(var b=this._children,e=0;ek)return this;f.splice(k,1);d.parent=null;e&&(e.delFromMap(d.id),d instanceof n&&d.delChildrenFromStorage(e));b&&b.refresh();return this},removeAll:function(){var d=this._children,b=this.__storage,e,f;for(f=0;fd}var l=b(11),e=b(10),n=l.identity;p=function(d){d=d||{};d.position||(this.position=[0,0]);null==d.rotation&&(this.rotation=0);d.scale||(this.scale=[1,1]);this.origin=this.origin||null};b=p.prototype;b.transform=null;b.needLocalTransform=function(){return h(this.rotation)||h(this.position[0])||h(this.position[1])||h(this.scale[0]-1)||h(this.scale[1]-1)};b.updateTransform=function(){var d=this.parent,b=d&&d.transform,f=this.needLocalTransform(),k=this.transform;f||b?(k=k||l.create(),f?this.getLocalTransform(k):n(k),b&&(f?l.mul(k,d.transform,k):l.copy(k,d.transform)),this.transform=k,this.invTransform=this.invTransform||l.create(),l.invert(this.invTransform,k)):k&&n(k)};b.getLocalTransform=function(d){d=d||[];n(d);var b=this.origin,f=this.scale,k=this.rotation,e=this.position;b&&(d[4]-=b[0],d[5]-=b[1]);l.scale(d,d,f);k&&l.rotate(d,d,k);b&&(d[4]+=b[0],d[5]+=b[1]);d[4]+=e[0];d[5]+=e[1];return d};b.setTransform=function(d){var b=this.transform;b&&d.transform(b[0],b[1],b[2],b[3],b[4],b[5])};b.restoreTransform=function(d){var b=this.invTransform;b&&d.transform(b[0],b[1],b[2],b[3],b[4],b[5])};var d=[];b.decomposeTransform=function(){if(this.transform){var b=this.parent,e=this.transform;b&&b.transform&&(l.mul(d,b.invTransform,e),e=d);var b=e[0]*e[0]+e[1]*e[1],f=e[2]*e[2]+e[3]*e[3],k=this.position,c=this.scale;h(b-1)&&(b=Math.sqrt(b));h(f-1)&&(f=Math.sqrt(f));0>e[0]&&(b=-b);0>e[3]&&(f=-f);k[0]=e[4];k[1]=e[5];c[0]=b;c[1]=f;this.rotation=Math.atan2(-e[1]/f,e[0]/b)}};b.getGlobalScale=function(){var d=this.transform;if(!d)return[1,1];var b=Math.sqrt(d[0]*d[0]+d[1]*d[1]),f=Math.sqrt(d[2]*d[2]+d[3]*d[3]);0>d[0]&&(b=-b);0>d[3]&&(f=-f);return[b,f]};b.transformCoordToLocal=function(d,b){var f=[d,b],k=this.invTransform;k&&e.applyTransform(f,f,k);return f};b.transformCoordToGlobal=function(d,b){var f=[d,b],k=this.transform;k&&e.applyTransform(f,f,k);return f};c.exports=p},function(c,p,b){var h=b(36),l=b(4),e=l.isString,n=l.isFunction,d=l.isObject,m=b(40);p=function(){this.animators=[]};p.prototype={constructor:p,animate:function(d,f){var b,e=!1,c=this,v=this.__zr;if(d){for(var g=d.split("."),t=c,e="shape"===g[0],w=0,y=g.length;wk)g.length=k;else for(;bf);d++);d=Math.min(d-1,E-2)}R=d;Q=f;var b=K[d+1]-K[d];if(0!==b)if(V=(f-K[d])/b,N)if(Z=O[d],W=O[0===d?d:d-1],ba=O[d>E-2?E-1:d+1],ga=O[d>E-3?E-1:d+2],q)m(W,Z,ba,ga,V,V*V,V*V*V,h(g,u),I);else{if(H)m(W,Z,ba,ga,V,V*V,V*V*V,fa,1),d=k(fa);else{if(L)return.5b)){b=Math.min(b,1);var c=this.easing,c="string"==typeof c?l[c]:c,c="function"===typeof c?c(b):b;this.fire("frame",c);if(1==b){if(this.loop)return this.restart(),"restart";this._needsRemove=!0;return"destroy"}return null}},restart:function(){var b=((new Date).getTime()-this._startTime)%this._life;this._startTime=(new Date).getTime()-b+this.gap;this._needsRemove=!1},fire:function(b,c){b="on"+b;if(this[b])this[b](this._target,c)}};c.exports=h},function(c,p){var b={linear:function(b){return b},quadraticIn:function(b){return b*b},quadraticOut:function(b){return b*(2-b)},quadraticInOut:function(b){return 1>(b*=2)?.5*b*b:-.5*(--b*(b-2)-1)},cubicIn:function(b){return b*b*b},cubicOut:function(b){return--b*b*b+1},cubicInOut:function(b){return 1>(b*=2)?.5*b*b*b:.5*((b-=2)*b*b+2)},quarticIn:function(b){return b*b*b*b},quarticOut:function(b){return 1- --b*b*b*b},quarticInOut:function(b){return 1>(b*=2)?.5*b*b*b*b:-.5*((b-=2)*b*b*b-2)},quinticIn:function(b){return b*b*b*b*b},quinticOut:function(b){return--b*b*b*b*b+1},quinticInOut:function(b){return 1>(b*=2)?.5*b*b*b*b*b:.5*((b-=2)*b*b*b*b+2)},sinusoidalIn:function(b){return 1-Math.cos(b*Math.PI/2)},sinusoidalOut:function(b){return Math.sin(b*Math.PI/2)},sinusoidalInOut:function(b){return.5*(1-Math.cos(Math.PI*b))},exponentialIn:function(b){return 0===b?0:Math.pow(1024,b-1)},exponentialOut:function(b){return 1===b?1:1-Math.pow(2,-10*b)},exponentialInOut:function(b){return 0===b?0:1===b?1:1>(b*=2)?.5*Math.pow(1024,b-1):.5*(-Math.pow(2,-10*(b-1))+2)},circularIn:function(b){return 1-Math.sqrt(1-b*b)},circularOut:function(b){return Math.sqrt(1- --b*b)},circularInOut:function(b){return 1>(b*=2)?-.5*(Math.sqrt(1-b*b)-1):.5*(Math.sqrt(1-(b-=2)*b)+1)},elasticIn:function(b){var c,e=.1;if(0===b)return 0;if(1===b)return 1;!e||1>e?(e=1,c=.1):c=.4*Math.asin(1/e)/(2*Math.PI);return-(e*Math.pow(2,10*--b)*Math.sin(2*(b-c)*Math.PI/.4))},elasticOut:function(b){var c,e=.1;if(0===b)return 0;if(1===b)return 1;!e||1>e?(e=1,c=.1):c=.4*Math.asin(1/e)/(2*Math.PI);return e*Math.pow(2,-10*b)*Math.sin(2*(b-c)*Math.PI/.4)+1},elasticInOut:function(b){var c,e=.1;if(0===b)return 0;if(1===b)return 1;!e||1>e?(e=1,c=.1):c=.4*Math.asin(1/e)/(2*Math.PI);return 1>(b*=2)?-.5*e*Math.pow(2,10*--b)*Math.sin(2*(b-c)*Math.PI/.4):e*Math.pow(2,-10*--b)*Math.sin(2*(b-c)*Math.PI/.4)*.5+1},backIn:function(b){return b*b*(2.70158*b-1.70158)},backOut:function(b){return--b*b*(2.70158*b+1.70158)+1},backInOut:function(b){return 1>(b*=2)?.5*b*b*(3.5949095*b-2.5949095):.5*((b-=2)*b*(3.5949095*b+2.5949095)+2)},bounceIn:function(c){return 1-b.bounceOut(1-c)},bounceOut:function(b){return b<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+.9375:7.5625*(b-=2.625/2.75)*b+.984375},bounceInOut:function(c){return.5>c?.5*b.bounceIn(2*c):.5*b.bounceOut(2*c-1)+.5}};c.exports=b},function(c,p){function b(b){b=Math.round(b);return 0>b?0:255b?0:1d?d+=1:16*d?b+(f-b)*d*6:1>2*d?f:2>3*d?b+(f-b)*(2/3-d)*6:b}function d(b,f,d){return b+(f-b)*d}function m(b){if(b){var f=(b+"").replace(/ /g,"").toLowerCase();if(f in k)return k[f].slice();if("#"===f.charAt(0))if(4===f.length){if(b=parseInt(f.substr(1),16),0<=b&&4095>=b)return[(b&3840)>>4|(b&3840)>>8,b&240|(b&240)>>4,b&15|(b&15)<<4,1]}else{if(7===f.length&&(b=parseInt(f.substr(1),16),0<=b&&16777215>=b))return[(b&16711680)>>16,(b&65280)>>8,b&255,1]}else{var d=f.indexOf("("),g=f.indexOf(")");if(-1!==d&&g+1===f.length)switch(b=f.substr(0,d),f=f.substr(d+1,g-(d+1)).split(","),d=1,b){case "rgba":if(4!==f.length)break;d=e(f.pop());case "rgb":if(3!==f.length)break;return[l(f[0]),l(f[1]),l(f[2]),d];case "hsla":if(4!==f.length)break;f[3]=e(f[3]);return r(f);case "hsl":if(3===f.length)return r(f)}}}}function r(f){var d=(parseFloat(f[0])%360+360)%360/360,k=e(f[1]),g=e(f[2]),k=.5>=g?g*(k+1):g+k-g*k,g=2*g-k,d=[b(255*n(g,k,d+1/3)),b(255*n(g,k,d)),b(255*n(g,k,d-1/3))];4===f.length&&(d[3]=f[3]);return d}function f(b,f){var d=b[0]+","+b[1]+","+b[2];if("rgba"===f||"hsva"===f||"hsla"===f)d+=","+b[3];return f+"("+d+")"}var k={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};c.exports={parse:m,lift:function(b,d){var k=m(b);if(k){for(var g=0;3>g;g++)k[g]=0>d?k[g]*(1-d)|0:(255-k[g])*d+k[g]|0;return f(k,4===k.length?"rgba":"rgb")}},toHex:function(b,f){var d=m(b);if(d)return(16777216+(d[0]<<16)+(d[1]<<8)+ +d[2]).toString(16).slice(1)},fastMapToColor:function(f,k,e){if(k&&k.length&&0<=f&&1>=f){e=e||[0,0,0,0];var g=f*(k.length-1),t=Math.floor(g);f=k[t];k=k[Math.ceil(g)];g-=t;e[0]=b(d(f[0],k[0],g));e[1]=b(d(f[1],k[1],g));e[2]=b(d(f[2],k[2],g));e[3]=b(d(f[3],k[3],g));return e}},mapToColor:function(k,e,c){if(e&&e.length&&0<=k&&1>=k){k*=e.length-1;var g=Math.floor(k),t=Math.ceil(k),w=m(e[g]);e=m(e[t]);var y=k-g,w=f([b(d(w[0],e[0],y)),b(d(w[1],e[1],y)),b(d(w[2],e[2],y)),h(d(w[3],e[3],y))],"rgba");return c?{color:w,leftIndex:g,rightIndex:t,value:k}:w}},modifyHSL:function(b,d,k,g){if(b=m(b)){if(b){var t=b[0]/255,w=b[1]/255,c=b[2]/255,z=Math.min(t,w,c),n=Math.max(t,w,c),l=n-z,h=(n+z)/2,F;if(0===l)z=F=0;else{var z=.5>h?l/(n+z):l/(2-n-z),N=((n-t)/6+l/2)/l,p=((n-w)/6+l/2)/l,l=((n-c)/6+l/2)/l;t===n?F=l-p:w===n?F=1/3+N-l:c===n&&(F=2/3+p-N);0>F&&(F+=1);1d?0:360Math.abs(g[1])?0=g(d,p)&&(L=v);1<=g(d,p)&&(L=0);0===c&&0L&&(L+=2*v);q.addData(h,b,f,r,n,e,L,l,c)}function l(g){if(!g)return[];var b=g.replace(/-/g," -").replace(/  /g," ").replace(/ /g,",").replace(/,,/g,",");for(g=0;gthis._ux||y(b-this._yi)>this._uy||5>this._len;this.addData(m.L,g,b);this._ctx&&d&&(this._needsDash()?this._dashedLineTo(g,b):this._ctx.lineTo(g,b));d&&(this._xi=g,this._yi=b);return this},bezierCurveTo:function(g,b,d,f,t,k){this.addData(m.C,g,b,d,f,t,k);this._ctx&&(this._needsDash()?this._dashedBezierTo(g,b,d,f,t,k):this._ctx.bezierCurveTo(g,b,d,f,t,k));this._xi=t;this._yi=k;return this},quadraticCurveTo:function(g,b,d,f){this.addData(m.Q,g,b,d,f);this._ctx&&(this._needsDash()?this._dashedQuadraticTo(g,b,d,f):this._ctx.quadraticCurveTo(g,b,d,f));this._xi=d;this._yi=f;return this},arc:function(b,d,f,k,e,w){this.addData(m.A,b,d,f,f,k,e-k,0,w?0:1);this._ctx&&this._ctx.arc(b,d,f,k,e,w);this._xi=g(e)*f+b;this._xi=t(e)*f+b;return this},arcTo:function(g,b,d,f,t){this._ctx&&this._ctx.arcTo(g,b,d,f,t);return this},rect:function(g,b,d,f){this._ctx&&this._ctx.rect(g,b,d,f);this.addData(m.R,g,b,d,f);return this},closePath:function(){this.addData(m.Z);var g=this._ctx,b=this._x0,d=this._y0;g&&(this._needsDash()&&this._dashedLineTo(b,d),g.closePath());this._xi=b;this._yi=d;return this},fill:function(g){g&&g.fill();this.toStatic()},stroke:function(g){g&&g.stroke();this.toStatic()},setLineDash:function(g){if(g instanceof Array){this._lineDash=g;for(var b=this._dashIdx=0,d=0;db.length&&(this._expandData(),b=this.data);for(var d=0;df&&(f=d+f);f%=d;d=e-f*c;for(f=m-f*y;0c&&d>=g||0==c&&(0y&&f>=b);)if(z=this._dashIdx,u=t[z],d+=c*u,f+=y*u,this._dashIdx=(z+1)%r,!(0c&&d>e||0y&&f>m))k[z%2?"moveTo":"lineTo"](0<=c?x(d,g):v(d,g),0<=y?x(f,b):v(f,b));c=d-g;y=f-b;this._dashOffset=-w(c*c+y*y)},_dashedBezierTo:function(g,b,d,f,t,k){var e=this._dashSum,m=this._dashOffset,c=this._lineDash,y=this._ctx,u=this._xi,v=this._yi,r,x,z=h.cubicAt,n=0,l=this._dashIdx,p=c.length,R,Q,U=0;0>m&&(m=e+m);m%=e;for(e=0;1>e;e+=.1)r=z(u,g,d,t,e+.1)-z(u,g,d,t,e),x=z(v,b,f,k,e+.1)-z(v,b,f,k,e),n+=w(r*r+x*x);for(;lm);l++);for(e=(U-m)/n;1>=e;)R=z(u,g,d,t,e),Q=z(v,b,f,k,e),l%2?y.moveTo(R,Q):y.lineTo(R,Q),e+=c[l]/n,l=(l+1)%p;0!==l%2&&y.lineTo(t,k);r=t-R;x=k-Q;this._dashOffset=-w(r*r+x*x)},_dashedQuadraticTo:function(g,b,d,f){var t=d,k=f;d=(d+2*g)/3;f=(f+2*b)/3;g=(this._xi+2*g)/3;b=(this._yi+2*b)/3;this._dashedBezierTo(g,b,d,f,t,k)},toStatic:function(){var g=this.data;g instanceof Array&&(g.length=this._len,z&&(this.data=new Float32Array(g)))},getBoundingRect:function(){r[0]=r[1]=k[0]=k[1]=Number.MAX_VALUE;f[0]=f[1]=u[0]=u[1]=-Number.MAX_VALUE;for(var b=this.data,d=0,w=0,c=0,y=0,v=0;vv||y(u-w)>r||z===x-1)b.lineTo(c,u),e=c,w=u;break;case m.C:b.bezierCurveTo(d[z++],d[z++],d[z++],d[z++],d[z++],d[z++]);e=d[z-2];w=d[z-1];break;case m.Q:b.quadraticCurveTo(d[z++],d[z++],d[z++],d[z++]);e=d[z-2];w=d[z-1];break;case m.A:e=d[z++];w=d[z++];u=d[z++];c=d[z++];var n=d[z++],l=d[z++],h=d[z++],p=d[z++],T=u>c?u:c,S=u>c?1:u/c,R=u>c?c/u:1,l=n+l;.001k&&-1E-8f)-1E-8g?e[0]=0:(k=-c/g,0<=k&&1>=k&&(e[b++]=k));else if(c=f*f-4*k*(c*c-3*g*u),-1E-8c)f/=k,k=-g/t+f,f=-f/2,0<=k&&1>=k&&(e[b++]=k),0<=f&&1>=f&&(e[b++]=f);else if(0c?-n(-c,r):n(c,r),k=0>k?-n(-k,r):n(k,r),k=(-g-(c+k))/(3*t),0<=k&&1>=k&&(e[b++]=k);else{f=(2*k*g-3*t*f)/(2*d(k*k*k));var c=Math.acos(f)/3,u=d(k),l=Math.cos(c);k=(-g-2*u*l)/(3*t);f=(-g+u*(l+m*Math.sin(c)))/(3*t);t=(-g+u*(l-m*Math.sin(c)))/(3*t);0<=k&&1>=k&&(e[b++]=k);0<=f&&1>=f&&(e[b++]=f);0<=t&&1>=t&&(e[b++]=t)}return b},cubicExtrema:function(b,f,g,t,k){var e=6*g-12*f+6*b;g=9*f+3*t-3*b-9*g;f=3*f-3*b;b=0;if(-1E-8g){if(1E-8e)f=-f/e,0<=f&&1>=f&&(k[b++]=f)}else f=e*e-4*g*f,-1E-8f?k[0]=-e/(2*g):0=f&&(k[b++]=f),0<=e&&1>=e&&(k[b++]=e));return b},cubicSubdivide:function(b,d,g,f,k,e){var m=(d-b)*k+b,c=(g-d)*k+d;g=(f-g)*k+g;d=(c-m)*k+m;c=(g-c)*k+c;k=(c-d)*k+d;e[0]=b;e[1]=m;e[2]=d;e[3]=k;e[4]=k;e[5]=c;e[6]=g;e[7]=f},cubicProjectPoint:function(b,m,g,t,c,y,r,n,l,B,F){var N,p=.005,G=Infinity,q;f[0]=l;f[1]=B;for(l=0;1>l;l+=.05)k[0]=h(b,g,c,r,l),k[1]=h(m,t,y,n,l),B=e(f,k),BH&&!(1E-4>p);H++)q=N-p,l=N+p,k[0]=h(b,g,c,r,q),k[1]=h(m,t,y,n,q),B=e(k,f),0<=q&&B=l&&Bg){if(1E-8f)t=-t/f,0<=t&&1>=t&&(k[b++]=t)}else if(t=f*f-4*g*t,-1E-8t)t=-f/(2*g),0<=t&&1>=t&&(k[b++]=t);else if(0=t&&(k[b++]=t);0<=g&&1>=g&&(k[b++]=g)}return b},quadraticExtremum:function(b,d,g){g=b+g-2*d;return 0===g?.5:(b-d)/g},quadraticSubdivide:function(b,d,g,f,k){var e=(d-b)*f+b;d=(g-d)*f+d;f=(d-e)*f+e;k[0]=b;k[1]=e;k[2]=f;k[3]=f;k[4]=d;k[5]=g},quadraticProjectPoint:function(b,m,g,t,c,y,r,n,h){var B,F=.005,N=Infinity;f[0]=r;f[1]=n;for(n=0;1>n;n+=.05)k[0]=l(b,g,c,n),k[1]=l(m,t,y,n),r=e(f,k),rn&&!(1E-4>F);n++){var p=B-F,G=B+F;k[0]=l(b,g,c,p);k[1]=l(m,t,y,p);r=e(k,f);0<=p&&r=G&&rG%u&&1E-4v&&(v+=u),x%=u,0>x&&(x+=u),v>x&&!n?x+=u:vv&&(k[0]=m(n)*e+g,k[1]=d(n)*c+b,p(l,k,l),E(F,k,F))};c.exports=p},function(c,p,b){function h(g,b,c,y,z){for(var h=0,A=0,B=0,F=0,p=0,E=0;EH&&z>I&&z>B&&z>h||zP&&(P=r.cubicExtrema(H,I,B,h,v),v[1]H&&z>M&&z>K||z=h){O=0;M=r.quadraticAt(H,M,K,h);for(J=0;JL||P<-L)A=0;else if(S=Math.sqrt(L*L-P*P),x[0]=-S,x[1]=S,S=Math.abs(h-O),1E-4>S)A=0;else if(1E-4>S%u)A=J>=x[0]+A&&J<=x[1]+A?M?1:-1:0;else{M?(S=h,h=m(O),O=m(S)):(h=m(h),O=m(O));h>O&&(O+=u);for(R=S=0;2>R;R++)if(Q=x[R],Q+A>J&&(U=Math.atan2(P,Q),Q=M?1:-1,0>U&&(U=u+U),U>=h&&U<=O||U+u>=h&&U+u<=O))U>Math.PI/2&&U<1.5*Math.PI&&(Q=-Q),S+=Q;A=S}h=B+A}A=Math.cos(I+K)*H+G;B=Math.sin(I+K)*L+q;break;case l.R:F=A=g[E++];p=B=g[E++];q=g[E++];G=g[E++];O=F+q;J=p+G;if(c){if(k(F,p,O,p,b,y,z)||k(O,p,O,J,b,y,z)||k(O,J,F,J,b,y,z)||k(F,J,F,p,b,y,z))return!0}else h+=f(O,p,O,J,y,z),h+=f(F,J,F,p,y,z);break;case l.Z:if(c){if(k(A,B,F,p,b,y,z))return!0}else h+=f(A,B,F,p,y,z);A=F;B=p}}c||1E-4>Math.abs(B-p)||(h+=f(A,B,F,p,y,z)||0);return 0!==h}var l=b(49).CMD;p=b(53);var e=b(54),n=b(55),d=b(56),m=b(57).normalizeRadian,r=b(50),f=b(58),k=p.containStroke,u=2*Math.PI,x=[-1,-1,-1],v=[-1,-1];c.exports={contain:function(g,b,d){return h(g,0,!1,b,d)},containStroke:function(g,b,d,f){return h(g,b,!0,d,f)}}},function(c,p){c.exports={containStroke:function(b,c,l,e,n,d,m){if(0===n)return!1;var r;if(m>c+n&&m>e+n||mb+n&&d>l+n||de+u&&v>d+u&&v>r+u&&v>k+u||vb+u&&x>c+u&&x>m+u&&x>f+u||xe+f&&u>d+f&&u>r+f||ub+f&&k>c+f&&k>m+f||kd||b+kMath.abs(m-r)%l)return!0;f?(d=m,m=h(r),r=h(d)):(m=h(m),r=h(r));m>r&&(r+=l);u=Math.atan2(x,u);0>u&&(u+=l);return u>=m&&u<=r||u+l>=m&&u+l<=r}}},function(c,p){var b=2*Math.PI;c.exports={normalizeRadian:function(c){c%=b;0>c&&(c+=b);return c}}},function(c,p){c.exports=function(b,c,l,e,n,d){if(d>c&&d>e||dn?m:0}},function(c,p){var b=function(b,c){this.image=b;this.repeat=c;this.type="pattern"};b.prototype.getCanvasPattern=function(b){return this._canvasPattern||(this._canvasPattern=b.createPattern(this.image,this.repeat))};c.exports=b},function(c,p,b){var h=b(49).CMD,l=b(10).applyTransform,e=[[],[],[]],n=Math.sqrt,d=Math.atan2;c.exports=function(b,c){var f=b.data,k,u,x,v,g,t=h.M,w=h.C,y=h.L,z=h.R,D=h.A,A=h.Q;for(x=0;x=this._maxSize&&0d-2?d-1:u+1],u=b[u>d-3?d-1:u+2]);var t=k*k,w=k*t;m.push([h(x[0],v[0],g[0],u[0],k,t,w),h(x[1],v[1],g[1],u[1],k,t,w)])}return m}},function(c,p,b){var h=b(10),l=h.min,e=h.max,n=h.scale,d=h.distance,m=h.add;c.exports=function(b,f,k,c){var x=[],v=[],g=[],t=[],w,y,z,D;if(c){z=[Infinity,Infinity];D=[-Infinity,-Infinity];for(var A=0,B=b.length;An&&(l+=n,n=-n);0>d&&(e+=d,d=-d);"number"===typeof m?r=f=k=u=m:m instanceof Array?1===m.length?r=f=k=u=m[0]:2===m.length?(r=k=m[0],f=u=m[1]):3===m.length?(r=m[0],f=u=m[1],k=m[2]):(r=m[0],f=m[1],k=m[2],u=m[3]):r=f=k=u=0;r+f>n&&(m=r+f,r*=n/m,f*=n/m);k+u>n&&(m=k+u,k*=n/m,u*=n/m);f+k>d&&(m=f+k,f*=d/m,k*=d/m);r+u>d&&(m=r+u,r*=d/m,u*=d/m);b.moveTo(l+r,e);b.lineTo(l+n-f,e);0!==f&&b.quadraticCurveTo(l+n,e,l+n,e+f);b.lineTo(l+n,e+d-k);0!==k&&b.quadraticCurveTo(l+n,e+d,l+n-k,e+d);b.lineTo(l+u,e+d);0!==u&&b.quadraticCurveTo(l,e+d,l,e+d-u);b.lineTo(l,e+r);0!==r&&b.quadraticCurveTo(l,e,l+r,e)}}},function(c,p,b){c.exports=b(45).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(b,c){var e=c.x1,n=c.y1,d=c.x2,m=c.y2,r=c.percent;0!==r&&(b.moveTo(e,n),1>r&&(d=e*(1-r)+d*r,m=n*(1-r)+m*r),b.lineTo(d,m))},pointAt:function(b){var c=this.shape;return[c.x1*(1-b)+c.x2*b,c.y1*(1-b)+c.y2*b]}})},function(c,p,b){function h(b,k,e){var g=b.cpy2;return null===b.cpx2||null===g?[(e?f:m)(b.x1,b.cpx1,b.cpx2,b.x2,k),(e?f:m)(b.y1,b.cpy1,b.cpy2,b.y2,k)]:[(e?r:d)(b.x1,b.cpx1,b.x2,k),(e?r:d)(b.y1,b.cpy1,b.y2,k)]}p=b(50);var l=b(10),e=p.quadraticSubdivide,n=p.cubicSubdivide,d=p.quadraticAt,m=p.cubicAt,r=p.quadraticDerivativeAt,f=p.cubicDerivativeAt,k=[];c.exports=b(45).extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(b,d){var f=d.x1,g=d.y1,t=d.x2,c=d.y2,m=d.cpx1,r=d.cpy1,l=d.cpx2,h=d.cpy2,B=d.percent;0!==B&&(b.moveTo(f,g),null==l||null==h?(1>B&&(e(f,m,t,B,k),m=k[1],t=k[2],e(g,r,c,B,k),r=k[1],c=k[2]),b.quadraticCurveTo(m,r,t,c)):(1>B&&(n(f,m,l,t,B,k),m=k[1],l=k[2],t=k[3],n(g,r,h,c,B,k),r=k[1],h=k[2],c=k[3]),b.bezierCurveTo(m,r,l,h,t,c)))},pointAt:function(b){return h(this.shape,b,!1)},tangentAt:function(b){b=h(this.shape,b,!0);return l.normalize(b,b)}})},function(c,p,b){c.exports=b(45).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(b,c){var e=c.cx,n=c.cy,d=Math.max(c.r,0),m=c.startAngle,r=c.endAngle,f=c.clockwise;b.moveTo(Math.cos(m)*d+e,Math.sin(m)*d+n);b.arc(e,n,d,m,r,!f)}})},function(c,p,b){var h=b(45);c.exports=h.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var b=this.__dirtyPath,e=this.shape.paths,c=0;cf(b[k++],b[e])){for(;kf(b[k],b[k-1]);)k++;c=e;f=k;for(f--;c>>1,0>k(u,b[g])?v=g:x=g+1;v=f-x;switch(v){case 3:b[x+3]=b[x+2];case 2:b[x+2]=b[x+1];case 1:b[x+1]=b[x];break;default:for(;0=v&&(v=f);v>f&&(v=f);x+=k;v+=k}else{for(f=k+1;v=u(b,e[c+k-v]);)x=v,v=(v<<1)+1,0>=v&&(v=f);v>f&&(v=f);f=x;x=k-v;v=k-f}for(x++;x>>1),0u(b,e[c+k])){for(f=k+1;vu(b,e[c+k-v]);)x=v,v=(v<<1)+1,0>=v&&(v=f);v>f&&(v=f);f=x;x=k-v;v=k-f}else{for(f-=k;v=v&&(v=f);v>f&&(v=f);x+=k;v+=k}for(x++;x>>1),0>u(b,e[c+k])?v=k:x=k+1;return v}function n(b,c){function r(g){var t=k[g],w=u[g],y=k[g+1],r=u[g+1];u[g]=w+r;g===x-3&&(k[g+1]=k[g+2],u[g+1]=u[g+2]);x--;g=e(b[y],b,t,w,0,c);t+=g;w-=g;if(0!==w&&(r=l(b[t+w-1],b,y,r,r-1,c),0!==r))if(w<=r){for(var n=t,t=w,w=r,r=0;rc(b[y],v[g])){if(b[n++]=b[y++],F++,B=0,0===--w){p=!0;break}}else if(b[n++]=v[g++],B++,F=0,1===--t){p=!0;break}while((B|F)=t){p=!0;break}}b[n++]=b[y++];if(0===--w){p=!0;break}F=l(v[g],b,y,w,0,c);if(0!==F){for(r=0;rh&&(h=0);h+=2}f=h;1>f&&(f=1);if(1===t){for(r=0;rc(v[h],b[n])){if(b[y--]=b[n--],E++,G=0,0===--w){q=!0;break}}else if(b[y--]=v[h--],G++,E=0,1===--r){q=!0;break}while((E|G)=r){q=!0;break}}b[y--]=b[n--];if(0===--w){q=!0;break}p--}while(7<=E||7<=G);if(q)break;0>p&&(p=0);p+=2}f=p;1>f&&(f=1);if(1===r){y-=w;F=y+1;B=n-w+1;for(g=w-1;0<=g;g--)b[F+g]=b[B+g];b[y]=v[h]}else{if(0===r)throw Error();B=y-(r-1);for(g=0;gu[b+1])break;r(b)}};this.forceMergeRuns=function(){for(;1k)){var u;if(32>k)u=b(d,c,f,e),h(d,c,f,c+u,e);else{var x=new n(d,e),v;u=k;for(v=0;32<=u;)v|=u&1,u>>=1;v=u+v;do{u=b(d,c,f,e);if(uv&&(g=v);h(d,c,c+g,c+u,e);u=g}x.pushRun(c,u);x.mergeRuns();k-=u;c+=u}while(0!==k);x.forceMergeRuns()}}}},function(c,p,b){var h=b(4),l=b(87).Dispatcher,e=b(88),n=b(36);p=function(b){b=b||{};this.stage=b.stage||{};this.onframe=b.onframe||function(){};this._clips=[];this._running=!1;this._time=0;l.call(this)};p.prototype={constructor:p,addClip:function(b){this._clips.push(b)},addAnimator:function(b){b.animation=this;b=b.getClips();for(var e=0;e+new Date-this._lastTouchMoment&&w.click.call(this,b);e(this)}};m.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(b){w[b]=function(g){g=v(this.dom,g);this.trigger(b,g)}});b=d.prototype;b.dispose=function(){for(var b=g.concat(t),d=0;dL&&r&&(g(r),r=null);c!==p&&(e&&e.restore(),m={},c=p,k=this.getLayer(c),k.isBuildin||d("ZLevel "+c+" has been used by unkown layer "+k.id),e=k.ctx,e.save(),k.__unusedCount=0,(k.__dirty||f)&&k.clear());if(k.__dirty||f){if(0<=L){if(!r){r=this._progressiveLayers[Math.min(u++,4)];r.ctx.save();r.renderScope={};if(r&&r.__progress>r.__maxProgress){G=r.__nextIdxNotProg-1;continue}p=r.__progress;r.__dirty||(E=p);r.__progress=E+1}L===E&&this._doPaintEl(H,r,!0,r.renderScope)}else this._doPaintEl(H,k,f,m);H.__dirty=!1}}r&&g(r);e&&e.restore();this._furtherProgressive=!1;n.each(this._progressiveLayers,function(b){b.__maxProgress>=b.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(b,d,g,f){var e=d.ctx;if(g=(d.__dirty||g)&&!b.invisible&&0!==b.style.opacity&&b.scale[0]&&b.scale[1]){if(g=b.culling){g=this._width;var c=this._height;k.copy(b.getBoundingRect());b.transform&&k.applyTransform(b.transform);u.width=g;u.height=c;g=!k.intersect(u)}g=!g}if(g){g=b.__clipPaths;if(!(c=f.prevClipLayer!==d))a:if(c=f.prevElClipPaths,g==c)c=!1;else if(g&&c&&g.length===c.length){for(var m=0;mk[0]){for(m=0;mb);m++);e=g[k[m]]}k.splice(m+1,0,b);e?(k=e.dom,k.nextSibling?u.insertBefore(f.dom,k.nextSibling):u.appendChild(f.dom)):u.firstChild?u.insertBefore(f.dom,u.firstChild):u.appendChild(f.dom);g[b]=f}else d("Layer of zlevel "+b+" is not valid")},eachLayer:function(b,d){var g=this._zlevelList,f,k;for(k=0;k=e.__progress&&(E.__dirty=!0)}else p.__frame=-1,e&&(e.__nextIdxNotProg=h,c++,e=null)}e&&(c++,e.__nextIdxNotProg=h);this.eachBuildinLayer(function(b,g){f[g]!==b.elCount&&(b.__dirty=!0)});g.length=Math.min(c,5);n.each(g,function(b,g){k[g]!==b.elCount&&(p.__dirty=!0);b.__dirty&&(b.__progress=0)})},clear:function(){this.eachBuildinLayer(this._clearLayer);return this},_clearLayer:function(b){b.clear()},configLayer:function(b,d){if(d){var g=this._layerConfig;g[b]?n.merge(g[b],d,!0):g[b]=d;var f=this._layers[b];f&&n.merge(f,g[b],!0)}},delLayer:function(b){var d=this._layers,g=this._zlevelList,f=d[b];f&&(f.dom.parentNode.removeChild(f.dom),delete d[b],g.splice(n.indexOf(g,b),1))},resize:function(b,d){var g=this._domRoot;g.style.display="none";b=b||this._getWidth();d=d||this._getHeight();g.style.display="";if(this._width!=b||d!=this._height){g.style.width=b+"px";g.style.height=d+"px";for(var f in this._layers)this._layers[f].resize(b,d);this.refresh(!0)}this._width=b;this._height=d;return this},clearLayer:function(b){(b=this._layers[b])&&b.clear()},dispose:function(){this.root.innerHTML="";this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(b){b=b||{};if(this._singleCanvas)return this._layers[0].dom;var d=new r("image",this,b.pixelRatio||this.dpr);d.initContext();d.clearColor=b.backgroundColor;d.clear();b=this.storage.getDisplayList(!0);for(var g={},f=0;f=f&&0>k)f+=k;d=d.stackedOn}return f};h.getValues=function(b,g,d){var f=[];r.isArray(b)||(d=g,g=b,b=this.dimensions);for(var k=0,c=b.length;kk&&(k=d);return this._extent[b+!!g]=[f,k]}return[Infinity,-Infinity]};h.getSum=function(b,g){var d=0;if(this._storage[b])for(var f=0,k=this.count();fb)f=k-1;else return k}return-1};h.indexOfNearest=function(b,g,d,f){var k=this._storage[b];null==f&&(f=Infinity);var c=-1;if(k)for(var k=Number.MAX_VALUE,e=0,m=this.count();ex-n&&(g=x-n,v.length=g);for(c=0;ck&&!isNaN(k)&&(k=+k));return k};F.hasItemOption=!1;F.initData(b,c,e);return F}},function(c,p,b){function h(b,c,r,f){if(!c)return b;var k=l(c[0]),k=e.isArray(k)&&k.length||1;r=r||[];f=f||"extra";for(var u=0;ug[0]?1:-1;g[0]+=d*b;g[1]-=d*b}return g}function n(b){return 0<=b?1:-1}function d(b,g){var d=b.getBaseAxis(),f=b.getOtherAxis(d),k=d.onZero?0:f.scale.getExtent()[0],c=f.dim,e="x"===c||"radius"===c?1:0;return g.mapArray([c],function(f,t){for(var m,w=g.stackedOn;w&&n(w.get(c,t))===n(f);){m=w;break}w=[];w[e]=g.get(d.dim,t);w[1-e]=m?m.get(c,t,!0):k;return b.dataToPoint(w)},!0)}function m(b,g){if(null!=g.dataIndex)return g.dataIndex;if(null!=g.name)return b.indexOfName(g.name)}function r(b,g,d){if("polar"===b.type){var f=b.getAngleAxis(),k=b.getRadiusAxis().getExtent(),c=f.getExtent(),t=Math.PI/180;b=new w.Sector({shape:{cx:b.cx,cy:b.cy,r0:k[0],r:k[1],startAngle:-c[0]*t,endAngle:-c[1]*t,clockwise:f.inverse}});g&&(b.shape.endAngle=-c[0]*t,w.initProps(b,{shape:{endAngle:-c[1]*t}},d));g=b}else{f=e(b.getAxis("x"));k=e(b.getAxis("y"));b=b.getBaseAxis().isHorizontal();var c=Math.min(f[0],f[1]),t=Math.min(k[0],k[1]),f=Math.max(f[0],f[1])-c,k=Math.max(k[0],k[1])-t,m=d.get("lineStyle.normal.width")||2,m=d.get("clipOverflow")?m/2:Math.max(f,k);b?(t-=m,k+=2*m):(c-=m,f+=2*m);c=new w.Rect({shape:{x:c,y:t,width:f,height:k}});g&&(c.shape[b?"width":"height"]=0,w.initProps(c,{shape:{width:f,height:k}},d));g=c}return g}function f(b,g,d){g=g.getBaseAxis();g="x"===g.dim||"radius"===g.dim?0:1;for(var f=[],k=0;kd[c].dimension){f=d[c];break}if(f&&"cartesian2d"===g.type){var d=b.dimensions[f.dimension],e=b.getDataExtent(d),t=f.stops,m=[];t[0].interval&&t.sort(function(b,g){return b.interval[0]-g.interval[0]});f=t[0];var u=t[t.length-1];f=f.interval?k(f.interval[0],e):f.value;var u=u.interval?k(u.interval[1],e):u.value,r=u-f;if(0===r)return b.getItemVisual(0,"color");for(c=0;c=y||0>G)break;if(h(H)){if(N){G+=l;continue}break}if(G===c)b[0f[0]&&(f[0]=k[0]);k[1]>f[1]&&(f[1]=k[1])}return{min:g?d:f,max:g?f:d}}p=b(45);var n=b(10),d=n.min,m=n.max,r=n.scaleAndAdd,f=n.copy,k=[],u=[],x=[];c.exports={Polyline:p.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(b,g){var d=g.points,f=0,c=d.length,k=e(d,g.smoothConstraint);if(g.connectNulls){for(;0c&&(c=b[h]);return c},min:function(b){for(var c=Infinity,h=0;he&&0>g&&!l&&(g=0));return[e,g]},niceScaleExtent:function(b,d){var c=b.scale,e=r.getScaleExtent(b,d),m=null!=(d.getMin?d.getMin():d.get("min")),g=null!=(d.getMax?d.getMax():d.get("max")),t=d.get("splitNumber");c.setExtent(e[0],e[1]);c.niceExtent(t,m,g);e=d.get("minInterval");!isFinite(e)||m||g||"interval"!==c.type||(m=c.getInterval(),m=Math.max(Math.abs(m),e)/m,e=c.getExtent(),c.setExtent(m*e[0],e[1]*m),c.niceExtent(t));m=d.get("interval");null!=m&&c.setInterval&&c.setInterval(m)},createScaleByModel:function(b,d){if(d=d||b.get("type"))switch(d){case "category":return new h(b.getCategories(),[Infinity,-Infinity]);case "value":return new l;default:return(e.getClass(d)||l).create(b)}},ifAxisCrossZero:function(b){var d=b.scale.getExtent();b=d[0];d=d[1];return!(0b&&0>d)},getAxisLabelInterval:function(b,d,c,e){var r,g=0,t=0,w=1;40=c[0]&&b<=c[1]};b.normalize=function(b){var c=this._extent;return c[1]===c[0]?.5:(b-c[0])/(c[1]-c[0])};b.scale=function(b){var c=this._extent;return b*(c[1]-c[0])+c[0]};b.unionExtent=function(b){var c=this._extent;b[0]c[1]&&(c[1]=b[1])};b.getExtent=function(){return this._extent.slice()};b.setExtent=function(b,c){var h=this._extent;isNaN(b)||(h[0]=b);isNaN(c)||(h[1]=c)};b.getTicksLabels=function(){for(var b=[],c=this.getTicks(),h=0;hc[1]&&(c[1]=b[1]);d.prototype.setExtent.call(this,c[0],c[1])},getInterval:function(){this._interval||this.niceTicks();return this._interval},setInterval:function(b){this._interval=b;this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var b=this._interval,d=this._extent,f=[];if(b){var c=this._niceExtent;d[0]c[1]&&f.push(d[1])}return f},getTicksLabels:function(){for(var b=[],d=this.getTicks(),f=0;ff&&(f=-f,d.reverse()),b=h.nice(f/b,!0),d=[h.round(n(d[0]/b)*b),h.round(e(d[1]/b)*b)],this._interval=b,this._niceExtent=d)},niceExtent:function(b,d,f){var c=this._extent;if(c[0]===c[1])if(0!==c[0]){var u=c[0];f||(c[1]+=u/2);c[0]-=u/2}else c[1]=1;isFinite(c[1]-c[0])||(c[0]=0,c[1]=1);this.niceTicks(b);b=this._interval;d||(c[0]=h.round(e(c[0]/b)*b));f||(c[1]=h.round(n(c[1]/b)*b))}});d.create=function(){return new d};c.exports=d},function(c,p,b){p=b(4);var h=b(7),l=b(6);b=b(117);var e=b.prototype,n=Math.ceil,d=Math.floor,m=b.extend({type:"time",getLabel:function(b){return l.formatTime(this._stepLvl[0],new Date(b))},niceExtent:function(b,c,e){var m=this._extent;m[0]===m[1]&&(m[0]-=864E5,m[1]+=864E5);if(-Infinity===m[1]&&Infinity===m[0]){var r=new Date;m[1]=new Date(r.getFullYear(),r.getMonth(),r.getDate());m[0]=m[1]-864E5}this.niceTicks(b);b=this._interval;c||(m[0]=h.round(d(m[0]/b)*b));e||(m[1]=h.round(n(m[1]/b)*b))},niceTicks:function(b){b=b||10;for(var c=this._extent,e=c[1]-c[0],m=r.length,l=0,g=m;l>>1;r[t][2]=k)){var g=r(10,d(f(k/b)/Math.LN10));.5>=b/k*g&&(g*=10);b=[l.round(m(c[0]/g)*g),l.round(d(c[1]/g)*g)];this._interval=g;this._niceExtent=b}},niceExtent:n.niceExtent});h.each(["contain","normalize"],function(b){k.prototype[b]=function(d){d=f(d)/f(10);return e[b].call(this,d)}});k.create=function(){return new k};c.exports=k},function(c,p,b){function h(b){l.call(this,b)}p=b(4);var l=b(121);h.prototype={constructor:h,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(b){var c=this.getAxis("x"),d=this.getAxis("y");return c.contain(c.toLocalCoord(b[0]))&&d.contain(d.toLocalCoord(b[1]))},containData:function(b){return this.getAxis("x").containData(b[0])&&this.getAxis("y").containData(b[1])},dataToPoints:function(b,c){return b.mapArray(["x","y"],function(b,c){return this.dataToPoint([b,c])},c,this)},dataToPoint:function(b,c){var d=this.getAxis("x"),m=this.getAxis("y");return[d.toGlobalCoord(d.dataToCoord(b[0],c)),m.toGlobalCoord(m.dataToCoord(b[1],c))]},pointToData:function(b,c){var d=this.getAxis("x"),m=this.getAxis("y");return[d.coordToData(d.toLocalCoord(b[0]),c),m.coordToData(m.toLocalCoord(b[1]),c)]},getOtherAxis:function(b){return this.getAxis("x"===b.dim?"y":"x")}};p.inherits(h,l);c.exports=h},function(c,p,b){function h(b){return this._axes[b]}var l=b(4);p=function(b){this._axes={};this._dimList=[];this.name=b||""};p.prototype={constructor:p,type:"cartesian",getAxis:function(b){return this._axes[b]},getAxes:function(){return l.map(this._dimList,h,this)},getAxesByScale:function(b){b=b.toLowerCase();return l.filter(this.getAxes(),function(c){return c.scale.type===b})},addAxis:function(b){var c=b.dim;this._axes[c]=b;this._dimList.push(c)},dataToCoord:function(b){return this._dataCoordConvert(b,"dataToCoord")},coordToData:function(b){return this._dataCoordConvert(b,"coordToData")},_dataCoordConvert:function(b,c){for(var d=this._dimList,m=b instanceof Array?[]:{},r=0;r=Math.min(d[0],d[1])&&b<=f},containData:function(b){return this.contain(this.dataToCoord(b))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(b){return l.getPixelPrecision(b||this.scale.getExtent(),this._extent)},setExtent:function(b,d){var f=this._extent;f[0]=b;f[1]=d},dataToCoord:function(b,c){var f=this._extent,k=this.scale;b=k.normalize(b);this.onBand&&"ordinal"===k.type&&(f=f.slice(),h(f,k.count()));return e(b,d,f,c)},coordToData:function(b,c){var f=this._extent,k=this.scale;this.onBand&&"ordinal"===k.type&&(f=f.slice(),h(f,k.count()));f=e(b,f,d,c);return this.scale.scale(f)},getTicksCoords:function(b){if(this.onBand&&!b){b=this.getBands();for(var d=[],f=0;fc[1];c="start"===d&&!c||"start"!==d&&c;u(b-g/2)?(d=c?"bottom":"top",c="center"):u(b-1.5*g)?(d=c?"top":"bottom",c="center"):(d="middle",c=b<1.5*g&&b>g/2?c?"left":"right":c?"right":"left");return{rotation:b,textAlign:c,verticalAlign:d}}function n(b){var g=b.get("tooltip");return b.get("silent")||!(b.get("triggerEvent")||g&&g.show)}var d=b(4),m=b(6),r=b(43),f=b(12);p=b(7);var k=p.remRadian,u=p.isRadianAroundZero,x=b(10).applyTransform,v=d.retrieve,g=Math.PI;b=function(b,g){this.opt=g;this.axisModel=b;d.defaults(g,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0});this.group=new r.Group;var f=new r.Group({position:g.position.slice(),rotation:g.rotation});f.updateTransform();this._transform=f.transform;this._dumbGroup=f};b.prototype={constructor:b,hasBuilder:function(b){return!!t[b]},add:function(b){t[b].call(this)},getGroup:function(){return this.group}};var t={axisLine:function(){var b=this.opt,g=this.axisModel;if(g.get("axisLine.show")){var f=this.axisModel.axis.getExtent(),c=this._transform,k=[f[0],0],f=[f[1],0];c&&(x(k,k,c),x(f,f,c));this.group.add(new r.Line(r.subPixelOptimizeLine({anid:"line",shape:{x1:k[0],y1:k[1],x2:f[0],y2:f[1]},style:d.extend({lineCap:"round"},g.getModel("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:b.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var b=this.axisModel;if(b.get("axisTick.show"))for(var g=b.axis,f=b.getModel("axisTick"),c=this.opt,k=f.getModel("lineStyle"),e=f.get("length"),t=y(f,c.labelInterval),f=g.getTicksCoords(f.get("alignWithLabel")),m=g.scale.getTicks(),u=[],h=[],l=this._transform,n=0;ny[1]?-1:1,u=["start"===k?y[0]-q*u:"end"===k?y[1]+q*u:(y[0]+y[1])/2,"middle"===k?b.labelOffset+t*u:0],q=f.get("nameRotate");null!=q&&(q=q*g/180);var x;"middle"===k?k=l(b,null!=q?q:b.rotation,t):(k=e(b,k,q||0,y),x=b.axisNameAvailableWidth,null!=x&&(x=Math.abs(x/Math.sin(k.rotation)),!isFinite(x)&&(x=null)));b=w.getFont();t=f.get("nameTruncate",!0)||{};y=t.ellipsis;x=v(t.maxWidth,x);x=null!=y&&null!=x?m.truncateText(c,x,b,y,{minChar:2,placeholder:t.placeholder}):c;t=f.get("tooltip",!0);y=f.mainType;q={componentType:y,name:c,$vars:["name"]};q[y+"Index"]=f.componentIndex;w=new r.Text({anid:"name",__fullText:c,__truncatedText:x,style:{text:x,textFont:b,fill:w.getTextColor()||f.get("axisLine.lineStyle.color"),textAlign:k.textAlign,textVerticalAlign:k.verticalAlign},position:u,rotation:k.rotation,silent:n(f),z2:1,tooltip:t&&t.show?d.extend({content:c,formatter:function(){return c},formatterParams:q},t):null});f.get("triggerEvent")&&(w.eventData=h(f),w.eventData.targetType="axisName",w.eventData.name=c);this._dumbGroup.add(w);w.updateTransform();this.group.add(w);w.decomposeTransform()}}},w=b.ifIgnoreOnTick=function(b,g,d){var f;b=b.scale;return"ordinal"===b.type&&("function"===typeof d?(f=b.getTicks()[g],!d(f,b.getLabel(f))):g%(d+1))},y=b.getInterval=function(b,g){var d=b.get("interval");if(null==d||"auto"==d)d=g;return d};c.exports=b},function(c,p,b){c=b(4);b(113);b(134);b(135);p=b(137);var h=b(1);h.registerLayout(c.curry(p,"bar"));h.registerVisual(function(b){b.eachSeriesByType("bar",function(b){b.getData().setVisual("legendSymbol","roundRect")})});b(112)},function(c,p,b){p=b(28);var h=b(101);c.exports=p.extend({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(b,c){if("cartesian2d"!==b.coordinateSystem)throw Error("Bar only support cartesian2d coordinateSystem");return h(b.data,this,c)},getMarkerPosition:function(b){var c=this.coordinateSystem;if(c){b=c.dataToPoint(b,!0);var h=this.getData(),d=h.getLayout("offset"),h=h.getLayout("size"),c=c.getBaseAxis().isHorizontal()?0:1;b[c]+=d+h/2;return b}return[NaN,NaN]},brushSelector:"rect",defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,itemStyle:{normal:{},emphasis:{}}}})},function(c,p,b){function h(b,d){var c=0h?-1:1)*A),k[e][g][f]+=h):(w=c[0]+r,u=m,h=l,c=c[1]-m,Math.abs(c)=c?-1:1)*A),k[e][g][f]+=c);d.setItemLayout(g,{x:w,y:u,width:h,height:c})}},!0)},this)}},function(c,p,b){c=b(4);p=b(1);b(139);b(141);b(142)("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]);p.registerVisual(c.curry(b(143),"pie"));p.registerLayout(c.curry(b(144),"pie"));p.registerProcessor(c.curry(b(146),"pie"))},function(c,p,b){var h=b(97);p=b(4);var l=b(5),e=b(102),n=b(140),d=b(1).extendSeriesModel({type:"series.pie",init:function(b){d.superApply(this,"init",arguments);this.legendDataProvider=function(){return this._dataBeforeProcessed};this.updateSelectedMap(b.data);this._defaultLabelLine(b)},mergeOption:function(b){d.superCall(this,"mergeOption",b);this.updateSelectedMap(this.option.data)},getInitialData:function(b,d){var f=e(["value"],b.data),f=new h(f,this);f.initData(b.data);return f},getDataParams:function(b){var c=this._data,f=d.superCall(this,"getDataParams",b),k=c.getSum("value");f.percent=k?+(c.get("value",b)/k*100).toFixed(2):0;f.$vars.push("percent");return f},_defaultLabelLine:function(b){l.defaultEmphasis(b.labelLine,["show"]);var d=b.labelLine.normal,f=b.labelLine.emphasis;d.show=d.show&&b.label.normal.show;f.show=f.show&&b.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationEasing:"cubicOut",data:[]}});p.mixin(d,n);c.exports=d},function(c,p,b){var h=b(4);c.exports={updateSelectedMap:function(b){this._selectTargetMap=h.reduce(b||[],function(b,c){b[c.name]=c;return b},{})},select:function(b){var c=this._selectTargetMap;b=c[b];"single"===this.get("selectedMode")&&h.each(c,function(b){b.selected=!1});b&&(b.selected=!0)},unSelect:function(b){(b=this._selectTargetMap[b])&&(b.selected=!1)},toggleSelected:function(b){var c=this._selectTargetMap[b];if(null!=c)return this[c.selected?"unSelect":"select"](b),c.selected},isSelected:function(b){return(b=this._selectTargetMap[b])&&b.selected}}},function(c,p,b){function h(b,d,c,e){var m=d.getData(),h=m.getName(this.dataIndex),g=d.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:b,name:h,seriesId:d.id});m.each(function(b){l(m.getItemGraphicEl(b),m.getItemLayout(b),d.isSelected(m.getName(b)),g,c)})}function l(b,d,c,e,m){d=(d.startAngle+d.endAngle)/2;c=c?e:0;c=[Math.cos(d)*c,Math.sin(d)*c];m?b.animate().when(200,{position:c}).start("bounceOut"):b.attr("position",c)}function e(b,f){function c(){h.ignore=h.hoverIgnore;g.ignore=g.hoverIgnore}function e(){h.ignore=h.normalIgnore;g.ignore=g.normalIgnore}d.Group.call(this);var m=new d.Sector({z2:2}),h=new d.Polyline,g=new d.Text;this.add(m);this.add(h);this.add(g);this.updateData(b,f,!0);this.on("emphasis",c).on("normal",e).on("mouseover",c).on("mouseout",e)}function n(b,d,c,e,h){e=e.getModel("textStyle");h="inside"===h||"inner"===h;return{fill:e.getTextColor()||(h?"#fff":b.getItemVisual(d,"color")),opacity:b.getItemVisual(d,"opacity"),textFont:e.getFont(),text:m.retrieve(b.hostModel.getFormattedLabel(d,c),b.getName(d))}}var d=b(43),m=b(4);p=e.prototype;p.updateData=function(b,f,c){function e(){n.stopAnimation(!0);n.animateTo({shape:{r:w.r+10}},300,"elasticOut")}function h(){n.stopAnimation(!0);n.animateTo({shape:{r:w.r}},300,"elasticOut")}var n=this.childAt(0),g=b.hostModel,t=b.getItemModel(f),w=b.getItemLayout(f),y=m.extend({},w);y.label=null;c?(n.setShape(y),n.shape.endAngle=w.startAngle,d.updateProps(n,{shape:{endAngle:w.endAngle}},g,f)):d.updateProps(n,{shape:y},g,f);c=t.getModel("itemStyle");y=b.getItemVisual(f,"color");n.useStyle(m.defaults({lineJoin:"bevel",fill:y},c.getModel("normal").getItemStyle()));n.hoverStyle=c.getModel("emphasis").getItemStyle();l(this,b.getItemLayout(f),t.get("selected"),g.get("selectedOffset"),g.get("animation"));n.off("mouseover").off("mouseout").off("emphasis").off("normal");if(t.get("hoverAnimation")&&g.ifEnableAnimation())n.on("mouseover",e).on("mouseout",h).on("emphasis",e).on("normal",h);this._updateLabel(b,f);d.setHoverStyle(this)};p._updateLabel=function(b,f){var c=this.childAt(1),e=this.childAt(2),m=b.hostModel,h=b.getItemModel(f),g=b.getItemLayout(f).label,t=b.getItemVisual(f,"color");d.updateProps(c,{shape:{points:g.linePoints||[[g.x,g.y],[g.x,g.y],[g.x,g.y]]}},m,f);d.updateProps(e,{style:{x:g.x,y:g.y}},m,f);e.attr({style:{textVerticalAlign:g.verticalAlign,textAlign:g.textAlign,textFont:g.font},rotation:g.rotation,origin:[g.x,g.y],z2:10});var m=h.getModel("label.normal"),g=h.getModel("label.emphasis"),w=h.getModel("labelLine.normal"),h=h.getModel("labelLine.emphasis"),y=m.get("position")||g.get("position");e.setStyle(n(b,f,"normal",m,y));e.ignore=e.normalIgnore=!m.get("show");e.hoverIgnore=!g.get("show");c.ignore=c.normalIgnore=!w.get("show");c.hoverIgnore=!h.get("show");c.setStyle({stroke:t,opacity:b.getItemVisual(f,"opacity")});c.setStyle(w.getModel("lineStyle").getLineStyle());e.hoverStyle=n(b,f,"emphasis",g,y);c.hoverStyle=h.getModel("lineStyle").getLineStyle();(e=w.get("smooth"))&&!0===e&&(e=.4);c.setShape({smooth:e})};m.inherits(e,d.Group);b=b(42).extend({type:"pie",init:function(){this._sectorGroup=new d.Group},render:function(b,d,c,u){if(!u||u.from!==this.uid){var l=b.getData(),n=this._data,g=this.group;d=d.get("animation");var t=!n,w=m.curry(h,this.uid,b,d,c),y=b.get("selectedMode");l.diff(n).add(function(b){var d=new e(l,b);t&&d.eachChild(function(b){b.stopAnimation(!0)});y&&d.on("click",w);l.setItemGraphicEl(b,d);g.add(d)}).update(function(b,d){var f=n.getItemGraphicEl(d);f.updateData(l,b);f.off("click");y&&f.on("click",w);g.add(f);l.setItemGraphicEl(b,f)}).remove(function(b){b=n.getItemGraphicEl(b);g.remove(b)}).execute();d&&t&&0=K){var P=d/F.count();F.each(function(b){var g=F.getItemLayout(b);g.startAngle=N+J*b*P;g.endAngle=N+J*(b+1)*P})}else q=K/O,M=N,F.each("value",function(b,g){var d=F.getItemLayout(g),f=d.angle===E?E:b*q;d.startAngle=M;d.endAngle=M+J*f;M+=f});e(b,B,t,w)})}},function(c,p,b){function h(b,d,c,e,f,k,u){function h(g,d,f,c){for(c=g;cg&&c+1b[c].y+b[c].height){l(c,f/2);return}l(d-1,f/2)}function l(g,d){for(var f=g;0<=f&&!(b[f].y-=d,0b[f-1].y+b[f-1].height);f--);}function g(b,g,d,f,c,k){for(var e=g?Number.MAX_VALUE:0,t=0,m=b.length;t=e&&(w=e-10);!g&&w<=e&&(w=e+10);b[t].x=d+w*k;e=w}}b.sort(function(b,g){return b.y-g.y});var t=0;k=b.length;for(var w=[],y=[],z=0;zt&&h(z,k,-t,f),t=b[z].y+b[z].height;0>u-t&&l(k-1,t-u);for(z=0;z=c?y.push(b[z]):w.push(b[z]);g(w,!1,d,c,e,f);g(y,!0,d,c,e,f)}function l(b,d,c,e,f,k){for(var u=[],l=[],v=0;vB?-1:1)*l;N=I+(0>B?-5:5);E=p;G=[[q,L],[G,p],[I,p]]}q=H?"center":0B?-A+Math.PI:-A:0;g=b.getFormattedLabel(g,"normal")||f.getName(g);g=e.getBoundingRect(g,L,q,"top");v=!!h;c.label={x:N,y:E,position:r,height:g.height,len:m,len2:l,linePoints:G,textAlign:q,verticalAlign:"middle",font:L,rotation:h};H||k.push(c.label)});!v&&b.get("avoidLabelOverlap")&&l(k,u,x,d,c,h)}},function(c,p){c.exports=function(b,c){var l=c.findComponents({mainType:"legend"});l&&l.length&&c.eachSeriesByType(b,function(b){var c=b.getData();c.filterSelf(function(b){b=c.getName(b);for(var e=0;eb.get("largeThreshold")?d:m;b.updateData(c);h.add(b.group);h.remove(b===d?m.group:d.group)},updateLayout:function(b){this._symbolDraw.updateLayout(b)},remove:function(b,c){this._symbolDraw&&this._symbolDraw.remove(c,!0)}})},function(c,p,b){function h(){this.group=new l.Group;this._symbolEl=new n({})}var l=b(43),e=b(106),n=l.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(b,c){for(var e=c.points,f=c.sizes,k=this.symbolProxy,u=k.shape,h=0;hg[0]?b.rect(l[0]-g[0]/2,l[1]-g[1]/2,g[0],g[1]):(u.x=l[0]-g[0]/2,u.y=l[1]-g[1]/2,u.width=g[0],u.height=g[1],k.buildPath(b,u,!0))}},findDataIndex:function(b,c){for(var e=this.shape,f=e.points,e=e.sizes,k=f.length-1;0<=k;k--){var u=f[k],h=e[k],l=u[0]-h[0]/2,u=u[1]-h[1]/2;if(b>=l&&c>=u&&b<=l+h[0]&&c<=u+h[1])return k}return-1}});p=h.prototype;p.updateData=function(b){this.group.removeAll();var c=this._symbolEl,h=b.hostModel;c.setShape({points:b.mapArray(b.getItemLayout),sizes:b.mapArray(function(f){f=b.getItemVisual(f,"symbolSize");f instanceof Array||(f=[f,f]);return f})});c.symbolProxy=e.createSymbol(b.getVisual("symbol"),0,0,0,0);c.setColor=c.symbolProxy.setColor;c.useStyle(h.getModel("itemStyle.normal").getItemStyle(["color"]));var f=b.getVisual("color");f&&c.setColor(f);c.seriesIndex=h.seriesIndex;c.on("mousemove",function(b){c.dataIndex=null;b=c.findDataIndex(b.offsetX,b.offsetY);0e[0]&&isFinite(r)&&isFinite(e[0]))}else u.getTicks().length-1>n&&(h=c(h)),e=Math.round((e[0]+e[1])/2/h)*h,r=Math.round(n/2),u.setExtent(d.round(e-r*h),d.round(e+(n-r)*h)),u.setInterval(h)})};h.dimensions=[];h.create=function(b,d){var c=[];b.eachComponent("radar",function(e){var m=new h(e,b,d);c.push(m);e.coordinateSystem=m});b.eachSeriesByType("radar",function(b){"radar"===b.get("coordinateSystem")&&(b.coordinateSystem=c[b.get("radarIndex")||0])});return c};b(26).register("radar",h);c.exports=h},function(c,p,b){function h(b,c,d){l.call(this,b,c,d);this.type="value";this.angle=0;this.name=""}p=b(4);var l=b(123);p.inherits(h,l);c.exports=h},function(c,p,b){p=b(128).valueAxis;var h=b(12),l=b(4),e=b(129);b=b(1).extendComponentModel({type:"radar",optionUpdated:function(){var b=this.get("boundaryGap"),d=this.get("splitNumber"),c=this.get("scale"),r=this.get("axisLine"),f=this.get("axisTick"),k=this.get("axisLabel"),u=this.get("name.textStyle"),x=this.get("name.show"),v=this.get("name.formatter"),g=this.get("nameGap"),t=l.map(this.get("indicator")||[],function(t){null!=t.max&&0t.min&&(t.max=0);t=l.merge(l.clone(t),{boundaryGap:b,splitNumber:d,scale:c,axisLine:r,axisTick:f,axisLabel:k,name:t.text,nameLocation:"end",nameGap:g,nameTextStyle:u},!1);x||(t.name="");"string"===typeof v?t.name=v.replace("{value}",t.name):"function"===typeof v&&(t.name=v(t.name,t));return l.extend(new h(t,null,this.ecModel),e)},this);this.getIndicatorModels=function(){return t}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:l.merge({lineStyle:{color:"#bbb"}},p.axisLine),axisLabel:l.defaults({show:!1},p.axisLabel),axisTick:l.defaults({show:!1},p.axisTick),splitLine:l.defaults({show:!0},p.splitLine),splitArea:l.defaults({show:!0},p.splitArea),indicator:[]}});c.exports=b},function(c,p,b){var h=b(132),l=b(4),e=b(43),n=["axisLine","axisLabel","axisTick","axisName"];c.exports=b(1).extendComponentView({type:"radar",render:function(b,c,e){this.group.removeAll();this._buildAxes(b);this._buildSplitLineAndArea(b)},_buildAxes:function(b){var c=b.coordinateSystem;b=c.getIndicatorAxes();b=l.map(b,function(b){return new h(b.model,{position:[c.cx,c.cy],rotation:b.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});l.each(b,function(b){l.each(n,b.add,b);this.group.add(b.getGroup())},this)},_buildSplitLineAndArea:function(b){function c(b,g,d){g=d%g.length;b[g]=b[g]||[];return g}var h=b.coordinateSystem,f=b.get("splitNumber"),k=h.getIndicatorAxes();if(k.length){var u=b.get("shape"),n=b.getModel("splitLine"),v=b.getModel("splitArea");b=n.getModel("lineStyle");var g=v.getModel("areaStyle"),n=n.get("show"),v=v.get("show"),t=b.get("color"),w=g.get("color"),t=l.isArray(t)?t:[t],w=l.isArray(w)?w:[w],y=[],z=[];if("circle"===u)for(var f=k[0].getTicksCoords(),k=h.cx,p=h.cy,u=0;u>1^-(l&1),n=n>>1^-(n&1),l=l+f,n=n+k,f=l,k=n;e.push([l/1024,n/1024])}return e}var e=b(4),n=b(166);c.exports=function(b){h(b);return e.map(e.filter(b.features,function(b){return b.geometry&&b.properties}),function(b){var d=b.properties;b=b.geometry;var c=b.coordinates;if("MultiPolygon"===b.type){b=c;for(var c=[],e=0;eMath.abs(m[0]-b[0])&&1E-8>Math.abs(m[1]-b[1])||(d+=h(m[0],m[1],b[0],b[1],c,n));return 0!==d}}},function(c,p,b){function h(){d.call(this)}function l(b){this.name=b;d.call(this);this._roamTransform=new h;this._viewTransform=new h;this._center;this._zoom}var e=b(10),n=b(11),d=b(34);p=b(4);var m=b(9),r=e.applyTransform;p.mixin(h,d);l.prototype={constructor:l,type:"view",dimensions:["x","y"],setBoundingRect:function(b,d,c,e){return this._rect=new m(b,d,c,e)},getBoundingRect:function(){return this._rect},setViewRect:function(b,d,c,e){this.transformTo(b,d,c,e);this._viewRect=new m(b,d,c,e)},transformTo:function(b,d,c,e){var h=this.getBoundingRect(),g=this._viewTransform;g.transform=h.calculateTransform(new m(b,d,c,e));g.decomposeTransform();this._updateTransform()},setCenter:function(b){b&&(this._center=b,this._updateCenterAndZoom())},setZoom:function(b){b=b||1;var d=this.zoomLimit;d&&(null!=d.max&&(b=Math.min(d.max,b)),null!=d.min&&(b=Math.max(d.min,b)));this._zoom=b;this._updateCenterAndZoom()},getDefaultCenter:function(){var b=this.getBoundingRect();return[b.x+b.width/2,b.y+b.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransform},_updateCenterAndZoom:function(){var b=this._viewTransform.getLocalTransform(),d=this._roamTransform,c=this.getDefaultCenter(),m=this.getCenter(),h=this.getZoom(),m=e.applyTransform([],m,b),c=e.applyTransform([],c,b);d.origin=m;d.position=[c[0]-m[0],c[1]-m[1]];d.scale=[h,h];this._updateTransform()},_updateTransform:function(){var b=this._roamTransform,d=this._viewTransform;d.parent=b;b.updateTransform();d.updateTransform();d.transform&&n.copy(this.transform||(this.transform=[]),d.transform);this.transform?(this.invTransform=this.invTransform||[],n.invert(this.invTransform,this.transform)):this.invTransform=null;this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var b=this.getBoundingRect().clone();b.applyTransform(this.transform);return b},dataToPoint:function(b){var d=this.transform;return d?r([],b,d):[b[0],b[1]]},pointToData:function(b){var d=this.invTransform;return d?r([],b,d):[b[0],b[1]]}};p.mixin(l,d);c.exports=l},function(c,p,b){var h=b(166),l=[126,25],e=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(p=0;pe&&(e=0);0<=c?b.value[0]=e:b.value=e}function l(b,c){var f=c.get("color");if(f){b=b||[];var e;d.each(b,function(b){b=new m(b);var d=b.get("color");if(b.get("itemStyle.normal.color")||d&&"none"!==d)e=!0});e||((b[0]||(b[0]={})).color=f.slice());return b}}var e=b(28),n=b(184),d=b(4),m=b(12);p=b(6);var r=p.encodeHTML,f=p.addCommas;c.exports=e.extend({type:"series.treemap",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:Infinity,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",visualDimension:0,zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:"inside",textStyle:{color:"#fff",ellipsis:!0}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(b,c){var f=b.data||[],e=b.name;null==e&&(e=b.name);e={name:e,children:b.data};f=(f[0]||{}).value;h(e,d.isArray(f)?f.length:-1);f=b.levels||[];f=b.levels=l(f,c);return n.createTree(e,this,f).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(b){var c=this.getData(),e=this.getRawValue(b),e=d.isArray(e)?f(e[0]):f(e);b=c.getName(b);return r(b)+": "+e},getDataParams:function(b){for(var d=e.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(b),f=d.treePathInfo=[];c;){var g=c.dataIndex;f.push({name:c.name,dataIndex:g,value:this.getRawValue(g)});c=c.parentNode}f.reverse();return d},setLayoutInfo:function(b){this.layoutInfo=this.layoutInfo||{};d.extend(this.layoutInfo,b)},mapIdToIndex:function(b){var d=this._idIndexMap;d||(d=this._idIndexMap={},this._idIndexMapCount=0);var c=d[b];null==c&&(d[b]=c=this._idIndexMapCount++);return c},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(b){b?this._viewRoot=b:b=this._viewRoot;var d=this.getData().tree.root;if(!b||b!==d&&!d.contains(b))this._viewRoot=d}})},function(c,p,b){function h(b,d){this._nodes=[];this.hostModel=b;this.levelModels=l.map(d||[],function(d){return new e(d,b,b.ecModel)})}var l=b(4),e=b(12),n=b(97),d=b(185),m=b(102),r=function(b,d){this.name=b||"";this.height=this.depth=0;this.parentNode=null;this.dataIndex=-1;this.children=[];this.viewChildren=[];this.hostTree=d};r.prototype={constructor:r,isRemoved:function(){return 0>this.dataIndex},eachNode:function(b,d,c){"function"===typeof b&&(c=d,d=b,b=null);b=b||{};l.isString(b)&&(b={order:b});var e=b.order||"preorder",m=this[b.attr||"children"],g;"preorder"===e&&(g=d.call(c,this));for(var t=0;!g&&td&&(d=e.height)}this.height=d+1},getNodeById:function(b){if(this.getId()===b)return this;for(var d=0,c=this.children,e=c.length;dthis.dataIndex)){var d=this.hostTree,c=d.data.getItemModel(this.dataIndex),e=this.getLevelModel();return c.getModel(b,(e||d.hostModel).getModel(b))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(b,d){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,b,d)},getVisual:function(b,d){return this.hostTree.data.getItemVisual(this.dataIndex,b,d)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)}};h.prototype={constructor:h,type:"tree",eachNode:function(b,d,c){this.root.eachNode(b,d,c)},getNodeByDataIndex:function(b){b=this.data.getRawIndex(b);return this._nodes[b]},getNodeByName:function(b){return this.root.getNodeByName(b)},update:function(){for(var b=this.data,d=this._nodes,c=0,e=d.length;ck?d.text="":d.text=f.width>e?c.get("ellipsis")?c.truncateText(b,e,null,{minChar:2}):"":b}function p(b,g,m,t){var w=null!=Q&&c[b][Q],r=k[b];w?(c[b][Q]=null,g=w,(r[R]={}).old="nodeGroup"===b?g.position.slice():e.extend({},g.shape)):S||(w=10*m+t,w=new g({z:(w-1)/w}),w.__tmDepth=m,w.__tmStorageName=b,r=r[R]={},!(t=h.parentNode)||f&&"drillDown"!==f.direction||(m=g=0,t=k.background[t.getRawIndex()],!f&&t&&t.old&&(g=t.old.width,m=t.old.height),r.old="nodeGroup"===b?[0,m]:{x:g,y:m,width:0,height:0}),r.fadein="nodeGroup"!==b);return d[b][R]=w}if(h){var J=h.getLayout();if(J&&J.isInView){var P=J.width,T=J.height,S=J.invisible,R=h.getRawIndex(),Q=w&&w.getRawIndex();if(w=p("nodeGroup",g)){r.add(w);w.attr("position",[J.x||0,J.y||0]);w.__tmNodeWidth=P;w.__tmNodeHeight=T;if(J.isAboveViewRoot)return w;var U=p("background",t,l,1);U&&(U.setShape({x:0,y:0,width:P,height:T}),v(U,function(){U.setStyle("fill",h.getVisual("borderColor",!0))}),w.add(U));r=h.viewChildren;if(!r||!r.length){var V=p("content",t,l,2);V&&u(w)}return w}}}}var e=b(4),n=b(43),d=b(98),m=b(187),r=b(188),f=b(174),k=b(9),u=b(11),x=b(189),v=e.bind,g=n.Group,t=n.Rect,w=e.each,y=["label","normal"],z=["label","emphasis"];c.exports=b(1).extendChartView({type:"treemap",init:function(b,d){this._storage=h();this._state="ready"},render:function(b,d,g,c){var f=d.findComponents({mainType:"series",subType:"treemap",query:c});if(!(0>e.indexOf(f,b))){this.seriesModel=b;this.api=g;this.ecModel=d;d=m.retrieveTargetInfo(c,b);var f=c&&c.type,k=b.layoutInfo,t=!this._oldTree,h=this._storage;c="treemapRootToNode"===f&&d&&h?{rootNodeGroup:h.nodeGroup[d.node.getRawIndex()],direction:c.direction}:null;k=this._giveContainerGroup(k);h=this._doRender(k,b,c);t||f&&"treemapZoomToNode"!==f&&"treemapRootToNode"!==f?h.renderFinally():this._doAnimation(k,h,b,c);this._resetController(g);this._renderBreadcrumb(b,g,d)}},_giveContainerGroup:function(b){var d=this._containerGroup;d||(d=this._containerGroup=new g,this._initEvents(d),this.group.add(d));d.attr("position",[b.x,b.y]);return d},_doRender:function(b,g,c){function f(b,g,c,k,m){function t(b){return b.getId()}function h(d,e){var t=null!=d?b[d]:null,w=null!=e?g[e]:null,r=y(t,w,c,m);r&&f(t&&t.viewChildren||[],w&&w.viewChildren||[],r,k,m+1)}k?(g=b,w(b,function(b,d){!b.isRemoved()&&h(d,d)})):(new d(g,b,t,t)).add(h).update(h).remove(e.curry(h,null)).execute()}var k=g.getData().tree,m=this._oldTree,t=h(),r=h(),u=this._storage,n=[],y=e.curry(l,g,r,u,c,t,n);f(k.root?[k.root]:[],m&&m.root?[m.root]:[],b,k===m||!m,0);var z=function(b){var d=h();b&&w(b,function(b,g){var c=d[g];w(b,function(b){b&&(c.push(b),b.__tmWillDelete=1)})});return d}(u);this._oldTree=k;this._storage=r;return{lastsForAnimation:t,willDeleteEls:z,renderFinally:function(){w(z,function(b){w(b,function(b){b.parent&&b.parent.remove(b)})});w(n,function(b){b.invisible=!0;b.dirty()})}}},_doAnimation:function(b,d,g,c){if(g.get("animation")){var f=g.get("animationDurationUpdate"),k=g.get("animationEasing"),m=x.createWrap();w(d.willDeleteEls,function(b,d){w(b,function(b,g){if(!b.invisible){var e=b.parent;if(c&&"drillDown"===c.direction)e=e===c.rootNodeGroup?{shape:{x:0,y:0,width:e.__tmNodeWidth,height:e.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var t=0,h=0;e.__tmWillDelete||(t=e.__tmNodeWidth/2,h=e.__tmNodeHeight/2);e="nodeGroup"===d?{position:[t,h],style:{opacity:0}}:{shape:{x:t,y:h,width:0,height:0},style:{opacity:0}}}e&&m.add(b,e,f,k)}})});w(this._storage,function(b,g){w(b,function(b,c){var t=d.lastsForAnimation[g][c],h={};t&&("nodeGroup"===g?t.old&&(h.position=b.position.slice(),b.attr("position",t.old)):(t.old&&(h.shape=e.extend({},b.shape),b.setShape(t.old)),t.fadein?(b.setStyle("opacity",0),h.style={opacity:1}):1!==b.style.opacity&&(h.style={opacity:1})),m.add(b,h,f,k))})},this);this._state="animating";m.done(v(function(){this._state="ready";d.renderFinally()},this)).start()}},_resetController:function(b){var d=this._controller;d||(d=this._controller=new f(b.getZr()),d.enable(this.seriesModel.get("roam")),d.on("pan",v(this._onPan,this)),d.on("zoom",v(this._onZoom,this)));var g=new k(0,0,b.getWidth(),b.getHeight());d.rectProvider=function(){return g}},_clearController:function(){var b=this._controller;b&&b.off("pan").off("zoom")},_onPan:function(b,d){this._mayClick=!1;if("animating"!==this._state&&(3v.width&&(g-=y-x,y=x,z="");this.group.add(new e.Polygon({shape:{points:l(c,0,y,b,t===f.length-1,0===t)},style:d.defaults(k.getItemStyle(),{lineJoin:"bevel",text:z,textFill:h.getTextColor(),textFont:h.getFont()}),z:10,onclick:d.bind(this._onSelect,this,w.node)}));c+=y+8}},remove:function(){this.group.removeAll()}};c.exports=h},function(c,p,b){var h=b(4);c.exports={createWrap:function(){var b=[],c={},n;return{add:function(d,m,r,f,k){h.isString(f)&&(k=f,f=0);if(c[d.id])return!1;c[d.id]=1;b.push({el:d,target:m,time:r,delay:f,easing:k});return!0},done:function(b){n=b;return this},start:function(){function d(){m--;m||(b.length=0,c={},n&&n())}for(var m=b.length,h=0,f=b.length;h=w.length||b===w[b.depth]){var c=k.extend({},B);if(N){var f=N.type,e="color"===f&&N.__drColorMappingBy,e="index"===e?d:"id"===e?r.mapIdToIndex(b.getId()):b.getValue(u.get("visualDimension"));c[f]=N.mapValueToVisual(e)}h(b,c,g,m,w,r)}})}else p=e(B,b),b.setVisual("color",p)}}function l(b,d,g,c){var f=k.extend({},d);k.each(["color","colorAlpha","colorSaturation"],function(e){var k=b.get(e,!0);null==k&&g&&(k=g[e]);null==k&&(k=d[e]);null==k&&(k=c.get(e));null!=k&&(f[e]=k)});return f}function e(b){var d=n(b,"color");if(d){var g=n(b,"colorAlpha");(b=n(b,"colorSaturation"))&&(d=f.modifyHSL(d,null,null,b));g&&(d=f.modifyAlpha(d,g));return d}}function n(b,d){var g=b[d];if(null!=g&&"none"!==g)return g}function d(b,d,g,c,f,e){if(e&&e.length&&(b=m(d,"color")||null!=f.color&&"none"!==f.color&&(m(d,"colorAlpha")||m(d,"colorSaturation"))))return d=d.get("colorMappingBy"),g={type:b.name,dataExtent:g.dataExtent,visual:b.range},"color"!==g.type||"index"!==d&&"id"!==d?g.mappingMethod="linear":(g.mappingMethod="category",g.loop=!0),g=new r(g),g.__drColorMappingBy=d,g}function m(b,d){var g=b.get(d);return u(g)&&g.length?{name:d,range:g}:null}var r=b(192),f=b(39),k=b(4),u=k.isArray;c.exports=function(b,d,g){b.eachComponent({mainType:"series",subType:"treemap",query:g},function(b){var d=b.getData().tree,g=d.root,c=b.getModel("itemStyle.normal");g.isRemoved()||(d=k.map(d.levelModels,function(b){return b?b.get("itemStyle.normal"):null}),h(g,{},d,c,b.getViewRoot().getAncestors(),b))})}},function(c,p,b){function h(b){var d=b.pieceList;b.hasSpecialVisual=!1;v.each(d,function(d,g){d.originIndex=g;null!=d.visual&&(b.hasSpecialVisual=!0)})}function l(b){var d=b.categories,g=b.visual,c=b.categoryMap={};w(d,function(b,d){c[b]=d});if(!v.isArray(g)){var f=[];v.isObject(g)?w(g,function(b,d){var g=c[d];f[null!=g?g:-1]=b}):f[-1]=g;g=b.visual=f}for(b=d.length-1;0<=b;b--)null==g[b]&&(delete c[d[b]],d.pop())}function e(b,d){var g=b.visual,c=[];v.isObject(g)?w(g,function(b){c.push(b)}):null!=g&&c.push(g);g={color:1,symbol:1};d||1!==c.length||b.type in g||(c[1]=c[0]);b.visual=c}function n(b){return{applyVisual:function(d,g,c){d=this.mapValueToVisual(d);c("color",b(g("color"),d))},_doMap:k([0,1])}}function d(b,d){var g=this.option.visual;return g[Math.round(t(d,[0,1],[0,g.length-1],!0))]||{}}function m(b){return function(d,g,c){c(b,this.mapValueToVisual(d))}}function r(b){var d=this.option.visual;return d[this.option.loop&&-1!==b?b%d.length:b]}function f(){return this.option.visual[0]}function k(b){return{linear:function(d){return t(d,b,this.option.visual,!0)},category:r,piecewise:function(d,g){var c=u.call(this,g);null==c&&(c=t(d,b,this.option.visual,!0));return c},fixed:f}}function u(b){var d=this.option,g=d.pieceList;if(d.hasSpecialVisual&&(b=z.findPieceIndex(b,g),(g=g[b])&&g.visual))return g.visual[this.type]}function x(b,d,g){return b?d<=g:dx&&(x=V);p=p.area*p.area;A=A*A*D;x=p?w(A*x/p,p/(A*Q)):Infinity;x<=e?(z++,e=x):(n.area-=n.pop().getLayout().area,m(n,f,r,k,!1),f=y(r.width,r.height),n.length=n.area=0,e=Infinity)}n.length&&m(n,f,r,k,!0);g||(k=u.get("childrenVisibleMin"),null!=k&&tm[1]&&(m[1]=b)})):m=[NaN,NaN];return{sum:c,dataExtent:m}}function m(b,d,g,c,f){var e=d===g.width?0:1,k=1-e,m=["x","y"],t=["width","height"],h=g[m[e]];d=d?b.area/d:0;if(f||d>g[t[k]])d=g[t[k]];f=0;for(var r=b.length;fx.MAX_SAFE_INTEGER&&(k=x.MAX_SAFE_INTEGER);e=b}kthis.dataIndex))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(b)}};l.prototype.getModel=function(b){if(!(0>this.dataIndex))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(b)};b=function(b,d){return{getValue:function(c){var e=this[b][d];return e.get(e.getDimension(c||"value"),this.dataIndex)},setVisual:function(c,e){0<=this.dataIndex&&this[b][d].setItemVisual(this.dataIndex,c,e)},getVisual:function(c,e){return this[b][d].getItemVisual(this.dataIndex,c,e)},setLayout:function(c,e){0<=this.dataIndex&&this[b][d].setItemLayout(this.dataIndex,c,e)},getLayout:function(){return this[b][d].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[b][d].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[b][d].getRawIndex(this.dataIndex)}}};p.mixin(h,b("hostGraph","data"));p.mixin(l,b("hostGraph","edgeData"));e.Node=h;e.Edge=l;c.exports=e},function(c,p,b){function h(b,d){return b.getVisual("opacity")||b.getModel().get(d)}var l=b(104),e=b(199),n=b(174),d=b(43),m=b(202),r=b(4),f=["itemStyle","normal","opacity"],k=["lineStyle","normal","opacity"];b(1).extendChartView({type:"graph",init:function(b,d){var c=new l,g=new e,f=this.group,k=new n(d.getZr(),f);f.add(c.group);f.add(g.group);this._symbolDraw=c;this._lineDraw=g;this._controller=k;this._firstRender=!0},render:function(b,c,f){var g=b.coordinateSystem;this._model=b;this._nodeScaleRatio=b.get("nodeScaleRatio");var e=this._symbolDraw;c=this._lineDraw;var k=this.group;"view"===g.type&&(g={position:g.position,scale:g.scale},this._firstRender?k.attr(g):d.updateProps(k,g,b));m(b.getGraph(),this._getNodeGlobalScale(b));var h=b.getData();e.updateData(h);e=b.getEdgeData();c.updateData(e);this._updateNodeAndLinkScale();this._updateController(b,f);clearTimeout(this._layoutTimeout);var l=b.forceLayout,r=b.get("force.layoutAnimation");l&&this._startForceLayoutIteration(l,r);h.eachItemGraphicEl(function(b,d){var g=h.getItemModel(d);b.off("drag").off("dragend");var c=h.getItemModel(d).get("draggable");if(c)b.on("drag",function(){l&&(l.warmUp(),!this._layouting&&this._startForceLayoutIteration(l,r),l.setFixed(d),h.setItemLayout(d,b.position))},this).on("dragend",function(){l&&l.setUnfixed(d)},this);b.setDraggable(c&&l);b.off("mouseover",this._focusNodeAdjacency);b.off("mouseout",this._unfocusAll);g.get("focusNodeAdjacency")&&(b.on("mouseover",this._focusNodeAdjacency,this),b.on("mouseout",this._unfocusAll,this))},this);this._firstRender=!1},_focusNodeAdjacency:function(b){function d(b,g){var c=h(b,g),f=b.getGraphicEl();null==c&&(c=1);f.traverse(function(b){b.trigger("normal");"group"!==b.type&&b.setStyle("opacity",.1*c)})}function c(b,d){var g=h(b,d);b.getGraphicEl().traverse(function(b){b.trigger("emphasis");"group"!==b.type&&b.setStyle("opacity",g)})}var g=this._model.getData().graph,e=b.target;b=e.dataIndex;e=e.dataType;null!==b&&"edge"!==e&&(g.eachNode(function(b){d(b,f)}),g.eachEdge(function(b){d(b,k)}),g=g.getNodeByIndex(b),c(g,f),r.each(g.edges,function(b){0>b.dataIndex||(c(b,k),c(b.node1,f),c(b.node2,f))}))},_unfocusAll:function(){var b=this._model.getData().graph;b.eachNode(function(b){var d=h(b,f);b.getGraphicEl().traverse(function(b){b.trigger("normal");"group"!==b.type&&b.setStyle("opacity",d)})});b.eachEdge(function(b){var d=h(b,k);b.getGraphicEl().traverse(function(b){b.trigger("normal");"group"!==b.type&&b.setStyle("opacity",d)})})},_startForceLayoutIteration:function(b,d){var c=this;(function t(){b.step(function(b){c.updateLayout(c._model);(c._layouting=!b)&&(d?c._layoutTimeout=setTimeout(t,16):t())})})()},_updateController:function(b,d){var c=this._controller,g=this.group;c.rectProvider=function(){var b=g.getBoundingRect();b.applyTransform(g.transform);return b};"view"!==b.coordinateSystem.type?c.disable():(c.enable(b.get("roam")),c.zoomLimit=b.get("scaleLimit"),c.zoom=b.coordinateSystem.getZoom(),c.off("pan").off("zoom").on("pan",function(g,c){d.dispatchAction({seriesId:b.id,type:"graphRoam",dx:g,dy:c})}).on("zoom",function(g,c,f){d.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:g,originX:c,originY:f});this._updateNodeAndLinkScale();m(b.getGraph(),this._getNodeGlobalScale(b));this._lineDraw.updateLayout()},this))},_updateNodeAndLinkScale:function(){var b=this._model,d=b.getData(),b=this._getNodeGlobalScale(b),c=[b,b];d.eachItemGraphicEl(function(b,d){b.attr("scale",c)})},_getNodeGlobalScale:function(b){b=b.coordinateSystem;if("view"!==b.type)return 1;var d=this._nodeScaleRatio,c=b.scale,c=c&&c[0]||1;return((b.getZoom()-1)*d+1)/c},updateLayout:function(b){m(b.getGraph(),this._getNodeGlobalScale(b));this._symbolDraw.updateLayout();this._lineDraw.updateLayout()},remove:function(b,d){this._symbolDraw&&this._symbolDraw.remove();this._lineDraw&&this._lineDraw.remove()}})},function(c,p,b){function h(b){return isNaN(b[0])||isNaN(b[1])}function l(b){return!h(b[0])&&!h(b[1])}function e(b){this._ctor=b||d;this.group=new n.Group}var n=b(43),d=b(200);p=e.prototype;p.updateData=function(b){var d=this._lineData,c=this.group,e=this._ctor,h=b.hostModel,n={lineStyle:h.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:h.getModel("lineStyle.emphasis").getLineStyle(),labelModel:h.getModel("label.normal"),hoverLabelModel:h.getModel("label.emphasis")};b.diff(d).add(function(d){if(l(b.getItemLayout(d))){var g=new e(b,d,n);b.setItemGraphicEl(d,g);c.add(g)}}).update(function(h,g){var t=d.getItemGraphicEl(g);l(b.getItemLayout(h))?(t?t.updateData(b,h,n):t=new e(b,h,n),b.setItemGraphicEl(h,t),c.add(t)):c.remove(t)}).remove(function(b){c.remove(d.getItemGraphicEl(b))}).execute();this._lineData=b};p.updateLayout=function(){var b=this._lineData;b.eachItemGraphicEl(function(d,c){d.updateLayout(b,c)},this)};p.remove=function(){this.group.removeAll()};c.exports=e},function(c,p,b){function h(b,c,f){var e=c.getItemVisual(f,"color"),m=c.getItemVisual(f,b);c=c.getItemVisual(f,b+"Size");if(m&&"none"!==m)return k.isArray(c)||(c=[c,c]),e=d.createSymbol(m,-c[0]/2,-c[1]/2,c[0],c[1],e),e.name=b,e}function l(b){var d=new r({name:"line"});e(d.shape,b);return d}function e(b,d){var c=d[0],f=d[1],e=d[2];b.x1=c[0];b.y1=c[1];b.x2=f[0];b.y2=f[1];b.percent=1;e&&(b.cpx1=e[0],b.cpy1=e[1])}function n(b,d,c){f.Group.call(this);this._createLine(b,d,c)}var d=b(106),m=b(10),r=b(201),f=b(43),k=b(4),u=b(7),x=["fromSymbol","toSymbol"];p=n.prototype;p.beforeUpdate=function(){var b=this.childOfName("fromSymbol"),d=this.childOfName("toSymbol"),c=this.childOfName("label");if(b||d||!c.ignore){for(var f=1,e=this.parent;e;)e.scale&&(f/=e.scale[0]),e=e.parent;var k=this.childOfName("line");if(this.__dirty||k.__dirty){var h=k.shape.percent,e=k.pointAt(0),l=k.pointAt(h),r=m.sub([],l,e);m.normalize(r,r);if(b){b.attr("position",e);var u=k.tangentAt(0);b.attr("rotation",Math.PI/2-Math.atan2(u[1],u[0]));b.attr("scale",[f*h,f*h])}d&&(d.attr("position",l),u=k.tangentAt(1),d.attr("rotation",-Math.PI/2-Math.atan2(u[1],u[0])),d.attr("scale",[f*h,f*h]));c.ignore||(c.attr("position",l),b=5*f,"end"===c.__position?(k=[r[0]*b+l[0],r[1]*b+l[1]],b=.8r[0]?"right":"center",r=.8r[1]?"bottom":"middle"):"middle"===c.__position?(d=h/2,u=k.tangentAt(d),r=[u[1],-u[0]],k=k.pointAt(d),0r[0]?"left":"center",r=.8r[1]?"top":"middle"),c.attr({style:{textVerticalAlign:c.__verticalAlign||r,textAlign:c.__textAlign||b},position:k,scale:[f,f]}))}}};p._createLine=function(b,d,c){var e=b.hostModel,m=b.getItemLayout(d),m=l(m);m.shape.percent=0;f.initProps(m,{shape:{percent:1}},e,d);this.add(m);e=new f.Text({name:"label"});this.add(e);k.each(x,function(c){var f=h(c,b,d);this.add(f);this["_"+c+"Type"]=b.getItemVisual(d,c)},this);this._updateCommonStl(b,d,c)};p.updateData=function(b,d,c){var m=b.hostModel,l=this.childOfName("line"),r=b.getItemLayout(d),u={shape:{}};e(u.shape,r);f.updateProps(l,u,m,d);k.each(x,function(c){var f=b.getItemVisual(d,c),e="_"+c+"Type";this[e]!==f&&(this.remove(this.childOfName(c)),c=h(c,b,d),this.add(c));this[e]=f},this);this._updateCommonStl(b,d,c)};p._updateCommonStl=function(b,d,c){var e=b.hostModel,m=this.childOfName("line"),h=c&&c.lineStyle,l=c&&c.hoverLineStyle,r=c&&c.labelModel,n=c&&c.hoverLabelModel;if(!c||b.hasItemOption)n=b.getItemModel(d),h=n.getModel("lineStyle.normal").getLineStyle(),l=n.getModel("lineStyle.emphasis").getLineStyle(),r=n.getModel("label.normal"),n=n.getModel("label.emphasis");c=b.getItemVisual(d,"color");isNaN(x)&&(x=b.getName(d));m.useStyle(k.defaults({strokeNoScale:!0,fill:"none",stroke:c},h));m.hoverStyle=l;var m=r.getShallow("show"),h=n.getShallow("show"),x,l=this.childOfName("label"),p;if(m||h)x=u.round(e.getRawValue(d)),p=c||"#000";m?(c=r.getModel("textStyle"),l.setStyle({text:k.retrieve(e.getFormattedLabel(d,"normal",b.dataType),x),textFont:c.getFont(),fill:c.getTextColor()||p}),l.__textAlign=c.get("align"),l.__verticalAlign=c.get("baseline"),l.__position=r.get("position")):l.setStyle("text","");h?(r=n.getModel("textStyle"),l.hoverStyle={text:k.retrieve(e.getFormattedLabel(d,"emphasis",b.dataType),x),textFont:r.getFont(),fill:r.getTextColor()||p}):l.hoverStyle={text:""};l.ignore=!m&&!h;f.setHoverStyle(this)};p.updateLayout=function(b,d){this.setLinePoints(b.getItemLayout(d))};p.setLinePoints=function(b){var d=this.childOfName("line");e(d.shape,b);d.dirty()};k.inherits(n,f.Group);c.exports=n},function(c,p,b){function h(b){return null==b.cpx1||null==b.cpy1}p=b(43);var l=b(10),e=p.Line.prototype,n=p.BezierCurve.prototype;c.exports=p.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(b,c){(h(c)?e:n).buildPath(b,c)},pointAt:function(b){return h(this.shape)?e.pointAt.call(this,b):n.pointAt.call(this,b)},tangentAt:function(b){var c=this.shape;b=h(c)?[c.x2-c.x1,c.y2-c.y1]:n.tangentAt.call(this,b);return l.normalize(b,b)}})},function(c,p,b){function h(b,c,e){var g=b[0],t=b[1];b=b[2];var h=Infinity,l;e*=e;for(var z=.1,p=.1;.9>=p;p+=.1){n[0]=r(g[0],t[0],b[0],p);n[1]=r(g[1],t[1],b[1],p);var A=k(f(n,c)-e);Ah;h++){A=l+z;d[0]=r(g[0],t[0],b[0],l);d[1]=r(g[1],t[1],b[1],l);m[0]=r(g[0],t[0],b[0],A);m[1]=r(g[1],t[1],b[1],A);A=f(d,c)-e;if(.01>k(A))break;p=f(m,c)-e;z/=2;l=0>A?0<=p?l+z:l-z:0<=p?l-z:l+z}return l}var l=b(50),e=b(10),n=[],d=[],m=[],r=l.quadraticAt,f=e.distSquare,k=Math.abs;c.exports=function(b,d){var c=[],g=l.quadraticSubdivide,f=[[],[],[]],k=[[],[]],m=[];d/=2;b.eachEdge(function(b,l){var r=b.getLayout(),u=b.getVisual("fromSymbol"),n=b.getVisual("toSymbol");r.__original||(r.__original=[e.clone(r[0]),e.clone(r[1])],r[2]&&r.__original.push(e.clone(r[2])));var p=r.__original;null!=r[2]?(e.copy(f[0],p[0]),e.copy(f[1],p[2]),e.copy(f[2],p[1]),u&&"none"!=u&&(u=b.node1.getVisual("symbolSize"),u instanceof Array&&(u=(u[0]+u[1])/2),u=h(f,p[0],u*d),g(f[0][0],f[1][0],f[2][0],u,c),f[0][0]=c[3],f[1][0]=c[4],g(f[0][1],f[1][1],f[2][1],u,c),f[0][1]=c[3],f[1][1]=c[4]),n&&"none"!=n&&(u=b.node1.getVisual("symbolSize"),u instanceof Array&&(u=(u[0]+u[1])/2),u=h(f,p[1],u*d),g(f[0][0],f[1][0],f[2][0],u,c),f[1][0]=c[1],f[2][0]=c[2],g(f[0][1],f[1][1],f[2][1],u,c),f[1][1]=c[1],f[2][1]=c[2]),e.copy(r[0],f[0]),e.copy(r[1],f[2]),e.copy(r[2],f[1])):(e.copy(k[0],p[0]),e.copy(k[1],p[1]),e.sub(m,k[1],k[0]),e.normalize(m,m),u&&"none"!=u&&e.scaleAndAdd(k[0],k[0],m,b.node1.getVisual("symbolSize")*d),n&&"none"!=n&&e.scaleAndAdd(k[1],k[1],m,-b.node2.getVisual("symbolSize")*d),e.copy(r[0],k[0]),e.copy(r[1],k[1]))})}},function(c,p,b){c=b(1);var h=b(177);c.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(b,c){c.eachComponent({mainType:"series",query:b},function(c){var d=h.updateCenterAndZoom(c.coordinateSystem,b);c.setCenter&&c.setCenter(d.center);c.setZoom&&c.setZoom(d.zoom)})})},function(c,p){c.exports=function(b){var c=b.findComponents({mainType:"legend"});c&&c.length&&b.eachSeriesByType("graph",function(b){var e=b.getCategoriesData(),n=b.getGraph().data,d=e.mapArray(e.getName);n.filterSelf(function(b){b=n.getItemModel(b).getShallow("category");if(null!=b){"number"===typeof b&&(b=d[b]);for(var e=0;ex)}}}},function(c,p,b){function h(b,c,h){b=b.getBoxLayoutParams();b.aspect=h;return e.getLayoutRect(b,{width:c.getWidth(),height:c.getHeight()})}var l=b(168),e=b(21),n=b(51);c.exports=function(b,c){var e=[];b.eachSeriesByType("graph",function(b){var d=b.get("coordinateSystem");if(!d||"view"===d){var u=new l;e.push(u);var x=b.getData(),v=x.mapArray(function(b){b=x.getItemModel(b);return[+b.get("x"),+b.get("y")]}),d=[],u=[];n.fromPoints(v,d,u);0===u[0]-d[0]&&(u[0]+=1,--d[0]);0===u[1]-d[1]&&(u[1]+=1,--d[1]);var g=(u[0]-d[0])/(u[1]-d[1]),v=h(b,c,g);isNaN(g)&&(d=[v.x,v.y],u=[v.x+v.width,v.y+v.height]);var g=u[0]-d[0],t=u[1]-d[1],w=v.width,y=v.height,u=b.coordinateSystem=new l;u.zoomLimit=b.get("scaleLimit");u.setBoundingRect(d[0],d[1],g,t);u.setViewRect(v.x,v.y,w,y);u.setCenter(b.get("center"));u.setZoom(b.get("zoom"))}});return e}},function(c,p,b){b(216);b(217)},function(c,p,b){var h=b(97);p=b(28);var l=b(4);b=p.extend({type:"series.gauge",getInitialData:function(b,c){var d=new h(["value"],this),m=b.data||[];l.isArray(m)||(m=[m]);d.initData(m);return d},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,textStyle:{color:"auto"}},pointer:{show:!0,length:"80%",width:8},itemStyle:{normal:{color:"auto"}},title:{show:!0,offsetCenter:[0,"-40%"],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:[0,"40%"],textStyle:{color:"auto",fontSize:30}}}});c.exports=b},function(c,p,b){function h(b,d){d&&("string"===typeof d?b=d.replace("{value}",b):"function"===typeof d&&(b=d(b)));return b}var l=b(218),e=b(43),n=b(7),d=n.parsePercent,m=2*Math.PI;p=b(42).extend({type:"gauge",render:function(b,c,e){this.group.removeAll();var m=b.get("axisLine.lineStyle.color"),h=b.get("center"),l=e.getWidth(),g=e.getHeight(),g=Math.min(l,g),l=d(h[0],e.getWidth()),h=d(h[1],e.getHeight()),g=d(b.get("radius"),g/2);this._renderMain(b,c,e,m,{cx:l,cy:h,r:g})},_renderMain:function(b,d,c,h,l){for(var n=this.group,g=b.getModel("axisLine").getModel("lineStyle"),t=b.get("clockwise"),w=-b.get("startAngle")/180*Math.PI,y=-b.get("endAngle")/180*Math.PI,z=(y-w)%m,p=w,A=g.get("width"),B=0;B=b)return h[0][1];for(var d=0;d=b&&(0===d?0:h[d-1][0])K?"top":.4I?"left":.4=d/3?1:2),k=c.y-n(r)*m*(m>=d/3?1:2),r=c.angle-Math.PI/2;b.moveTo(f,k);b.lineTo(c.x+e(r)*m,c.y+n(r)*m);b.lineTo(c.x+e(c.angle)*d,c.y+n(c.angle)*d);b.lineTo(c.x-e(r)*m,c.y-n(r)*m);b.lineTo(f,k)}})},function(c,p,b){c=b(4);p=b(1);b(220);b(221);p.registerVisual(c.curry(b(143),"funnel"));p.registerLayout(b(222));p.registerProcessor(c.curry(b(146),"funnel"))},function(c,p,b){var h=b(97),l=b(5),e=b(102),n=b(1).extendSeriesModel({type:"series.funnel",init:function(b){n.superApply(this,"init",arguments);this.legendDataProvider=function(){return this._dataBeforeProcessed};this._defaultLabelLine(b)},getInitialData:function(b,c){var l=e(["value"],b.data),l=new h(l,this);l.initData(b.data);return l},_defaultLabelLine:function(b){l.defaultEmphasis(b.labelLine,["show"]);var c=b.labelLine.normal,e=b.labelLine.emphasis;c.show=c.show&&b.label.normal.show;e.show=e.show&&b.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}});c.exports=n},function(c,p,b){function h(b,c){function d(){l.ignore=l.hoverIgnore;n.ignore=n.hoverIgnore}function k(){l.ignore=l.normalIgnore;n.ignore=n.normalIgnore}e.Group.call(this);var h=new e.Polygon,l=new e.Polyline,n=new e.Text;this.add(h);this.add(l);this.add(n);this.updateData(b,c,!0);this.on("emphasis",d).on("normal",k).on("mouseover",d).on("mouseout",k)}function l(b,c,d,e){var h=e.getModel("textStyle");e=e.get("position");e="inside"===e||"inner"===e||"center"===e;return{fill:h.getTextColor()||(e?"#fff":b.getItemVisual(c,"color")),textFont:h.getFont(),text:n.retrieve(b.hostModel.getFormattedLabel(c,d),b.getName(c))}}var e=b(43),n=b(4);p=h.prototype;var d=["itemStyle","normal","opacity"];p.updateData=function(b,c,f){var k=this.childAt(0),h=b.hostModel,l=b.getItemModel(c),v=b.getItemLayout(c),g=b.getItemModel(c).get(d),g=null==g?1:g;k.useStyle({});f?(k.setShape({points:v.points}),k.setStyle({opacity:0}),e.initProps(k,{style:{opacity:g}},h,c)):e.updateProps(k,{style:{opacity:g},shape:{points:v.points}},h,c);f=l.getModel("itemStyle");h=b.getItemVisual(c,"color");k.setStyle(n.defaults({lineJoin:"round",fill:h},f.getModel("normal").getItemStyle(["opacity"])));k.hoverStyle=f.getModel("emphasis").getItemStyle();this._updateLabel(b,c);e.setHoverStyle(this)};p._updateLabel=function(b,c){var d=this.childAt(1),k=this.childAt(2),h=b.hostModel,n=b.getItemModel(c),v=b.getItemLayout(c).label,g=b.getItemVisual(c,"color");e.updateProps(d,{shape:{points:v.linePoints||v.linePoints}},h,c);e.updateProps(k,{style:{x:v.x,y:v.y}},h,c);k.attr({style:{textAlign:v.textAlign,textVerticalAlign:v.verticalAlign,textFont:v.font},rotation:v.rotation,origin:[v.x,v.y],z2:10});var h=n.getModel("label.normal"),v=n.getModel("label.emphasis"),t=n.getModel("labelLine.normal"),n=n.getModel("labelLine.emphasis");k.setStyle(l(b,c,"normal",h));k.ignore=k.normalIgnore=!h.get("show");k.hoverIgnore=!v.get("show");d.ignore=d.normalIgnore=!t.get("show");d.hoverIgnore=!n.get("show");d.setStyle({stroke:g});d.setStyle(t.getModel("lineStyle").getLineStyle());k.hoverStyle=l(b,c,"emphasis",v);d.hoverStyle=n.getModel("lineStyle").getLineStyle()};n.inherits(h,e.Group);b=b(42).extend({type:"funnel",render:function(b,c,d){var e=b.getData(),l=this._data,n=this.group;e.diff(l).add(function(b){var c=new h(e,b);e.setItemGraphicEl(b,c);n.add(c)}).update(function(b,c){var d=l.getItemGraphicEl(c);d.updateData(e,b);n.add(d);e.setItemGraphicEl(b,d)}).remove(function(b){b=l.getItemGraphicEl(b);n.remove(b)}).execute();this._data=e},remove:function(){this.group.removeAll();this._data=null}});c.exports=b},function(c,p,b){function h(b,c){return n.getLayoutRect(b.getBoxLayoutParams(),{width:c.getWidth(),height:c.getHeight()})}function l(b,c){for(var d=b.mapArray("value",function(b){return b}),e=[],m="ascending"===c,h=0,g=b.count();h=g.length&&(F=g.length-1,m=Math.max(0,Math.floor(F-b+1)));B=[m,F]}var N=e&&B&&p?function(b,c,d){var g=B[1]-B[0],f=(c-p*g)/(d-1-g);return{position:bk[1]||(e=Math.abs(e[1]),e=v[1])&&(t=!1);t=h.extend({axisLabelShow:t,strokeContainThreshold:m},g);g=new l(b,t);h.each(d,g.add,g);this._axisGroup.add(g.getGroup());this._refreshBrushController(t,c,b,m);n.groupTransition(e,this._axisGroup,b)}},_refreshBrushController:function(b,c,d,e){var m=d.axis;d=h.map(d.activeIntervals,function(b){return{brushType:"lineX",panelId:"pl",range:[m.dataToCoord(b[0],!0),m.dataToCoord(b[1],!0)]}});var l=m.getExtent();e={x:l[0]-30,y:-e/2,width:l[1]-l[0]+60,height:e};this._brushController.mount({enableGlobalPan:!0,rotation:b.rotation,position:b.position}).setPanels([{panelId:"pl",rect:e}]).enableBrush({brushType:"lineX",brushStyle:c,removeOnClick:!0}).updateCovers(d)},_onBrush:function(b,c){var d=this.axisModel,e=d.axis,m=h.map(b,function(b){return[e.coordToData(b.range[0],!0),e.coordToData(b.range[1],!0)]});(!d.option.realtime===c.isEnd||c.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:d.id,intervals:m})},dispose:function(){this._brushController.dispose()}});c.exports=m},function(c,p,b){function h(b){J.assert(b);M.call(this);this._zr=b;this.group=new P.Group;this._track=[];this._covers=[];this._mounted;this._uid="brushController_"+Y++;this._handlers={};Q(ha,function(b,c){this._handlers[c]=J.bind(b,this)},this)}function l(b,c){var d=b._zr;b._enableGlobalPan||T.take(d,"globalPan",b._uid);Q(b._handlers,function(b,c){d.on(c,b)});b._brushType=c.brushType;b._brushOption=J.merge(J.clone(fa),c,!0)}function e(b){var c=b._zr;T.release(c,"globalPan",b._uid);Q(b._handlers,function(b,d){c.off(d,b)});b._brushType=b._brushOption=null}function n(b,c){var d=la[c.brushType].createCover(b,c);m(d);d.__brushOption=c;b.group.add(d);return d}function d(b,c){var d=la[c.__brushOption.brushType];d.endCreating&&(d.endCreating(b,c),m(c));return c}function m(b){b.traverse(function(b){b.z=1E4;b.z2=1E4})}function r(b,c){la[c.__brushOption.brushType].updateCommon(b,c);var d=c.__brushOption;la[c.__brushOption.brushType].updateCoverShape(b,c,d.range,d)}function f(b,c,d){b=b._panels;if(!b)return!0;var g;Q(b,function(b){b.contain(c,d)&&(g=b)});return g}function k(b,c){var d=b._panels;if(!d)return!0;var g=c.__brushOption.panelId;return null!=g?d[g]:!0}function u(b){var c=b._covers,d=c.length;Q(c,function(c){b.group.remove(c)},b);c.length=0;return!!d}function x(b,c){var d=U(b._covers,function(b){b=b.__brushOption;var c=J.clone(b.range);return{brushType:b.brushType,panelId:b.panelId,range:c}});b.trigger("brush",d,{isEnd:!!c.isEnd,removeOnClick:!!c.removeOnClick})}function v(b){var c=b.length-1;0>c&&(c=0);return[b[0],b[c]]}function g(b,c,d,g){var f=new P.Group;f.add(new P.Rect({name:"main",style:z(d),silent:!0,draggable:!0,cursor:"move",drift:R(b,c,f,"nswe"),ondragend:R(x,c,{isEnd:!0})}));Q(g,function(d){f.add(new P.Rect({name:d,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:R(b,c,f,d),ondragend:R(x,c,{isEnd:!0})}))});return f}function t(b,c,d,g){var f=g.brushStyle.lineWidth||0,e=W(f,6),k=d[0][0],m=d[1][0],t=k-f/2,h=m-f/2,w=d[0][1],l=d[1][1];d=w-e+f/2;var r=l-e+f/2,w=w-k,l=l-m,n=w+f,f=l+f;y(b,c,"main",k,m,w,l);g.transformable&&(y(b,c,"w",t,h,e,f),y(b,c,"e",d,h,e,f),y(b,c,"n",t,h,n,e),y(b,c,"s",t,r,n,e),y(b,c,"nw",t,h,e,e),y(b,c,"ne",d,h,e,e),y(b,c,"sw",t,r,e,e),y(b,c,"se",d,r,e,e))}function w(b,c){var d=c.__brushOption,g=d.transformable,f=c.childAt(0);f.useStyle(z(d));f.attr({silent:!g,cursor:g?"move":"default"});Q("w e n s se sw ne nw".split(" "),function(d){var f=c.childOfName(d);d=A(b,d);f&&f.attr({silent:!g,invisible:!g,cursor:g?ga[d]+"-resize":null})})}function y(b,c,d,g,f,e,k){(d=c.childOfName(d))&&d.setShape(G(E(b,c,[[g,f],[g+e,f+k]])))}function z(b){return J.defaults({strokeNoScale:!0},b.brushStyle)}function D(b,c,d,g){var f=[V(b,d),V(c,g)];b=[W(b,d),W(c,g)];return[[f[0],b[0]],[f[1],b[1]]]}function A(b,c){if(1d&&(d=b)});var e=c[0];e&&e.length-1>d&&(d=e.length-1);for(var e=[],h=0;h<=d;h++)e.push("dim"+h);return e}var e=b(97),n=b(4);p=b(28);var d=b(102);c.exports=p.extend({type:"series.parallel",dependencies:["parallel"],getInitialData:function(b,c){var f=c.getComponent("parallel",this.get("parallelIndex")),k=f.parallelAxisIndex,u=b.data,x=f.dimensions,f=l(x,u),f=n.map(f,function(b,g){var f=n.indexOf(x,b),e=0<=f&&c.getComponent("parallelAxis",k[f]);return e&&"category"===e.get("type")?(h(e,b,u),{name:b,type:"ordinal"}):0>f?d.guessOrdinal(u,g)?{name:b,type:"ordinal"}:b:b}),f=new e(f,this);f.initData(u);this.option.progressive&&(this.option.animation=!1);return f},getRawIndicesByActiveState:function(b){var c=this.coordinateSystem,d=this.getData(),e=[];c.eachActiveState(d,function(c,h){b===c&&e.push(d.getRawIndex(h))});return e},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}})},function(c,p,b){function h(b,c,d){var e=b.model;b=b.getRect();var h=new n.Rect({shape:{x:b.x,y:b.y,width:b.width,height:b.height}}),e="horizontal"===e.get("layout")?"width":"height";h.setShape(e,0);n.initProps(h,{shape:{width:b.width,height:b.height}},c,d);return h}function l(b,c,d,e){for(var h=[],l=0;lc?1:b==c?0:NaN}function B(b){return b.getValue()}var F=b(21),N=b(242),E=b(4);c.exports=function(b,c,d){b.eachSeriesByType("sankey",function(b){var d=b.get("nodeWidth"),g=b.get("nodeGap"),f=h(b,c);b.layoutInfo=f;var k=f.width,f=f.height,m=b.getGraph(),t=m.nodes,m=m.edges;e(t);b=0!==t.filter(function(b){return 0===b.getLayout().value}).length?0:b.get("layoutIterations");l(t,m,d,g,k,f,b)})}},function(c,p,b){var h=b(4);c.exports=function(){function b(c,d){if(d>=n.length)return c;for(var f=-1,e=c.length,u=n[d++],x={},v={};++f=n.length)return b;var f=[],k=d[l++];h.each(b,function(b,d){f.push({key:d,values:c(b,l)})});return k?f.sort(function(b,c){return k(b.key,c.key)}):f}var n=[],d=[];return{key:function(b){n.push(b);return this},sortKeys:function(b){d[n.length-1]=b;return this},entries:function(d){return c(b(d,0),0)}}}},function(c,p,b){var h=b(192);c.exports=function(b,c){b.eachSeriesByType("sankey",function(b){var c=b.getGraph().nodes;c.sort(function(b,c){return b.getLayout().value-c.getLayout().value});var e=c[0].getLayout().value,l=c[c.length-1].getLayout().value;c.forEach(function(c){var d=(new h({type:"color",mappingMethod:"linear",dataExtent:[e,l],visual:b.get("color")})).mapValueToVisual(c.getLayout().value);c.setVisual("color",d);d=c.getModel().get("itemStyle.normal.color");null!=d&&c.setVisual("color",d)})})}},function(c,p,b){c=b(1);b(245);b(248);c.registerVisual(b(249));c.registerLayout(b(250))},function(c,p,b){p=b(4);var h=b(28);b=b(246);h=h.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],valueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});p.mixin(h,b.seriesModelMixin,!0);c.exports=h},function(c,p,b){var h=b(97),l=b(102),e=b(247),n=b(4);c.exports={seriesModelMixin:{_baseAxisDim:null,getInitialData:function(b,c){var e,f=c.getComponent("xAxis",this.get("xAxisIndex")),k=c.getComponent("yAxis",this.get("yAxisIndex")),n=f.get("type"),x=k.get("type"),v;"category"===n?(b.layout="horizontal",e=f.getCategories(),v=!0):"category"===x?(b.layout="vertical",e=k.getCategories(),v=!0):b.layout=b.layout||"horizontal";this._baseAxisDim="horizontal"===b.layout?"x":"y";f=b.data;k=this.dimensions=["base"].concat(this.valueDimensions);l(k,f);k=new h(k,this);k.initData(f,e?e.slice():null,function(b,c,d,f){b=null==b.value?b:b.value;return v?"base"===c?d:b[f-1]:b[f]});return k},coordDimToDataDim:function(b){var c=this.valueDimensions.slice(),e=["base"];return{horizontal:{x:e,y:c},vertical:{x:c,y:e}}[this.get("layout")][b]},dataDimToCoordDim:function(b){var c;n.each(["x","y"],function(e,f){var k=this.coordDimToDataDim(e);0<=n.indexOf(k,b)&&(c=e)},this);return c},getBaseAxis:function(){var b=this._baseAxisDim;return this.ecModel.getComponent(b+"Axis",this.get(b+"AxisIndex")).axis}},viewMixin:{init:function(){var b=this._whiskerBoxDraw=new e(this.getStyleUpdater());this.group.add(b.group)},render:function(b,c,e){this._whiskerBoxDraw.updateData(b.getData())},remove:function(b){this._whiskerBoxDraw.remove()}}}},function(c,p,b){function h(b,c,d,e){m.Group.call(this);this.styleUpdater=d;this._createContent(b,c,e);this.updateData(b,c,e)}function l(b,c,e){return d.map(b,function(b){b=b.slice();b[c]=e.initBaseline;return b})}function e(b){var c={};d.each(b,function(b,d){c["ends"+d]=b});return c}function n(b){this.group=new m.Group;this.styleUpdater=b}var d=b(4),m=b(43),r=b(45).extend({type:"whiskerInBox",shape:{},buildPath:function(b,c){for(var d in c)if(0===d.indexOf("ends")){var e=c[d];b.moveTo(e[0][0],e[0][1]);b.lineTo(e[1][0],e[1][1])}}});p=h.prototype;p._createContent=function(b,c,h){var n=b.getItemLayout(c),v="horizontal"===n.chartLayout?1:0;b=0;this.add(new m.Polygon({shape:{points:h?l(n.bodyEnds,v,n):n.bodyEnds},style:{strokeNoScale:!0},z2:100}));this.bodyIndex=b++;c=d.map(n.whiskerEnds,function(b){return h?l(b,v,n):b});this.add(new r({shape:e(c),style:{strokeNoScale:!0},z2:100}));this.whiskerIndex=b++};p.updateData=function(b,c,d){var h=this._seriesModel=b.hostModel,l=b.getItemLayout(c);d=m[d?"initProps":"updateProps"];d(this.childAt(this.bodyIndex),{shape:{points:l.bodyEnds}},h,c);d(this.childAt(this.whiskerIndex),{shape:e(l.whiskerEnds)},h,c);this.styleUpdater.call(null,this,b,c)};d.inherits(h,m.Group);p=n.prototype;p.updateData=function(b){var c=this.group,d=this._data,e=this.styleUpdater;b.diff(d).add(function(d){if(b.hasValue(d)){var g=new h(b,d,e,!0);b.setItemGraphicEl(d,g);c.add(g)}}).update(function(m,g){var t=d.getItemGraphicEl(g);b.hasValue(m)?(t?t.updateData(b,m):t=new h(b,m,e),c.add(t),b.setItemGraphicEl(m,t)):c.remove(t)}).remove(function(b){(b=d.getItemGraphicEl(b))&&c.remove(b)}).execute();this._data=b};p.remove=function(){var b=this.group,c=this._data;this._data=null;c&&c.eachItemGraphicEl(function(c){c&&b.remove(c)})};c.exports=n},function(c,p,b){function h(b,c,f){var k=c.getItemModel(f),h=k.getModel(n);c=c.getItemVisual(f,"color");h=h.getItemStyle(["borderColor"]);f=b.childAt(b.whiskerIndex);f.style.set(h);f.style.stroke=c;f.dirty();f=b.childAt(b.bodyIndex);f.style.set(h);f.style.stroke=c;f.dirty();k=k.getModel(d).getItemStyle();e.setHoverStyle(b,k)}p=b(4);var l=b(42),e=b(43);b=b(246);l=l.extend({type:"boxplot",getStyleUpdater:function(){return h}});p.mixin(l,b.viewMixin,!0);var n=["itemStyle","normal"],d=["itemStyle","emphasis"];c.exports=l},function(c,p){var b=["itemStyle","normal","borderColor"];c.exports=function(c,l){var e=c.get("color");c.eachRawSeriesByType("boxplot",function(l){var d=e[l.seriesIndex%e.length],m=l.getData();m.setVisual({legendSymbol:"roundRect",color:l.get(b)||d});c.isSeriesFiltered(l)||m.each(function(c){var d=m.getItemModel(c);m.setItemVisual(c,{color:d.get(b,!0)})})})}},function(c,p,b){function h(b){var c=[],d=[];b.eachSeriesByType("boxplot",function(b){var e=b.getBaseAxis(),m=n.indexOf(d,e);0>m&&(m=d.length,d[m]=e,c[m]={axis:e,seriesModels:[]});c[m].seriesModels.push(b)});return c}function l(b){var c=b.axis,e=b.seriesModels,h=e.length,l=b.boxWidthList=[],v=b.boxOffsetList=[],g=[],t;if("category"===c.type)t=c.getBandWidth();else{var w=0;m(e,function(b){w=Math.max(w,b.getData().count())});b=c.getExtent();Math.abs(b[1]-b[0])/w}m(e,function(b){b=b.get("boxWidth");n.isArray(b)||(b=[b,b]);g.push([d(b[0],t)||0,d(b[1],t)||0])});b=.8*t-2;var y=b/h*.3,z=(b-y*(h-1))/h,p=z/2-b/2;m(e,function(b,c){v.push(p);p+=y+z;l.push(Math.min(Math.max(z,g[c][0]),g[c][1]))})}function e(b,c,d){var e=b.coordinateSystem,m=b.getData(),h=b.dimensions,g=b.get("layout"),t=d/2;m.each(h,function(){function b(d){var g=[];g[p]=n;g[N]=d;isNaN(n)||isNaN(d)?d=[NaN,NaN]:(d=e.dataToPoint(g),d[p]+=c);return d}function d(b,c){var g=b.slice(),f=b.slice();g[p]+=t;f[p]-=t;c?L.push(g,f):L.push(f,g)}function k(b){b=[b.slice(),b.slice()];b[0][p]-=t;b[1][p]+=t;H.push(b)}var l=arguments,n=l[0],r=l[h.length],p="horizontal"===g?0:1,N=1-p,E=b(l[3]),G=b(l[1]),q=b(l[5]),H=[[G,b(l[2])],[q,b(l[4])]];k(G);k(q);k(E);var L=[];d(H[0][1],0);d(H[1][1],1);m.setItemLayout(r,{chartLayout:g,initBaseline:E[N],median:E,bodyEnds:L,whiskerEnds:H})})}var n=b(4),d=b(7).parsePercent,m=n.each;c.exports=function(b){b=h(b);m(b,function(b){var c=b.seriesModels;c.length&&(l(b),m(c,function(c,d){e(c,b.boxOffsetList[d],b.boxWidthList[d])}))})}},function(c,p,b){c=b(1);b(252);b(253);c.registerPreprocessor(b(254));c.registerVisual(b(255));c.registerLayout(b(256))},function(c,p,b){var h=b(4),l=b(28);p=b(246);b=b(6);var e=b.encodeHTML,n=b.addCommas;b=l.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],valueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},formatTooltip:function(b,c){var l=h.map(this.valueDimensions,function(c){return c+": "+n(this._data.get(c,b))},this);return e(this.name)+"\x3cbr /\x3e"+l.join("\x3cbr /\x3e")},brushSelector:function(b,c){return c.rect(b.brushRect)}});h.mixin(b,p.seriesModelMixin,!0);c.exports=b},function(c,p,b){function h(b,c,f){var k=c.getItemModel(f),h=k.getModel(n),l=c.getItemVisual(f,"color");c=c.getItemVisual(f,"borderColor")||l;h=h.getItemStyle(["color","color0","borderColor","borderColor0"]);f=b.childAt(b.whiskerIndex);f.useStyle(h);f.style.stroke=c;f=b.childAt(b.bodyIndex);f.useStyle(h);f.style.fill=l;f.style.stroke=c;k=k.getModel(d).getItemStyle();e.setHoverStyle(b,k)}p=b(4);var l=b(42),e=b(43);b=b(246);l=l.extend({type:"candlestick",getStyleUpdater:function(){return h}});p.mixin(l,b.viewMixin,!0);var n=["itemStyle","normal"],d=["itemStyle","emphasis"];c.exports=l},function(c,p,b){var h=b(4);c.exports=function(b){b&&h.isArray(b.series)&&h.each(b.series,function(b){h.isObject(b)&&"k"===b.type&&(b.type="candlestick")})}},function(c,p){var b=["itemStyle","normal","borderColor"],h=["itemStyle","normal","borderColor0"],l=["itemStyle","normal","color"],e=["itemStyle","normal","color0"];c.exports=function(c,d){c.eachRawSeriesByType("candlestick",function(d){var r=d.getData();r.setVisual({legendSymbol:"roundRect"});c.isSeriesFiltered(d)||r.each(function(c){var d=r.getItemModel(c),m=r.getItemLayout(c).sign;r.setItemVisual(c,{color:d.get(0y?-1:wy?A[t]:l[t],bodyEnds:F,whiskerEnds:B,brushRect:function(){var c=b(Math.min(w,y,z,p)),d=b(Math.max(w,y,z,p));c[g]-=r/2;d[g]-=r/2;return{x:c[0],y:c[1],width:t?r:d[0]-c[0],height:t?d[1]-c[1]:r}}()})},!0)})}},function(c,p,b){c=b(4);p=b(1);b(258);b(259);p.registerVisual(c.curry(b(109),"effectScatter","circle",null));p.registerLayout(c.curry(b(110),"effectScatter"))},function(c,p,b){var h=b(101);p=b(28);c.exports=p.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(b,c){return h(b.data,this,c)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},xAxisIndex:0,yAxisIndex:0,polarIndex:0,geoIndex:0,symbolSize:10}})},function(c,p,b){var h=b(104),l=b(260);b(1).extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new h(l)},render:function(b,c,d){b=b.getData();c=this._symbolDraw;c.updateData(b);this.group.add(c.group)},updateLayout:function(){this._symbolDraw.updateLayout()},remove:function(b,c){this._symbolDraw&&this._symbolDraw.remove(c)}})},function(c,p,b){function h(b){n.isArray(b)||(b=[+b,+b]);return b}function l(b,c){b.eachChild(function(b){b.attr({z:c.z,zlevel:c.zlevel,style:{stroke:"stroke"===c.brushType?c.color:null,fill:"fill"===c.brushType?c.color:null}})})}function e(b,c){f.call(this);var d=new r(b,c),e=new f;this.add(d);this.add(e);e.beforeUpdate=function(){this.attr(d.getScale())};this.updateData(b,c)}var n=b(4),d=b(106);p=b(43);var m=b(7),r=b(105),f=p.Group;b=e.prototype;b.stopEffectAnimation=function(){this.childAt(1).removeAll()};b.startEffectAnimation=function(b){for(var c=b.symbolType,f=b.color,e=this.childAt(1),g=0;3>g;g++){var m=d.createSymbol(c,-.5,-.5,1,1,f);m.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[1,1]});var h=-g/3*b.period+b.effectOffset;m.animate("",!0).when(b.period,{scale:[b.rippleScale,b.rippleScale]}).delay(h).start();m.animateStyle(!0).when(b.period,{opacity:0}).delay(h).start();e.add(m)}l(e,b)};b.updateEffectAnimation=function(b){for(var c=this._effectCfg,d=this.childAt(1),f=["symbolType","period","rippleScale"],g=0;g=b.get("largeThreshold");v&&t&&console.warn("Large lines not support effect");if(v!==this._hasEffet||g!==this._isPolyline||t!==this._isLarge)x&&x.remove(),x=this._lineDraw=t?new m:new h(g?v?d:n:v?l:e),this._hasEffet=v,this._isPolyline=g,this._isLarge=t;var w=b.get("zlevel"),g=b.get("effect.trailLength");k=k.getZr();k.painter.getLayer(w).clear(!0);null!=this._lastZlevel&&k.configLayer(this._lastZlevel,{motionBlur:!1});if(v&&g){var y=!1;c.eachSeries(function(c){c!==b&&c.get("zlevel")===w&&(y=!0)});y&&console.warn("Lines with trail effect should have an individual zlevel");k.configLayer(w,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(g/10+.9,1),0)})}this.group.add(x.group);x.updateData(u);this._lastZlevel=w},updateLayout:function(b,c,d){this._lineDraw.updateLayout(b);d.getZr().painter.getLayer(this._lastZlevel).clear(!0)},remove:function(b,c){this._lineDraw&&this._lineDraw.remove(c,!0)}})},function(c,p,b){function h(b,c,d){l.Group.call(this);this.add(this.createLine(b,c,d));this._updateEffectSymbol(b,c)}var l=b(43),e=b(200),n=b(4),d=b(106),m=b(10),r=b(50);p=h.prototype;p.createLine=function(b,c,d){return new e(b,c,d)};p._updateEffectSymbol=function(b,c){var e=b.getItemModel(c).getModel("effect"),m=e.get("symbolSize"),h=e.get("symbol");n.isArray(m)||(m=[m,m]);var g=e.get("color")||b.getItemVisual(c,"color"),t=this.childAt(1);this._symbolType!==h&&(this.remove(t),t=d.createSymbol(h,-.5,-.5,1,1,g),t.z2=100,t.culling=!0,this.add(t));t&&(t.setStyle("shadowColor",g),t.setStyle(e.getItemStyle(["color"])),t.attr("scale",m),t.setColor(g),t.attr("scale",m),this._symbolType=h,this._updateEffectAnimation(b,e,c))};p._updateEffectAnimation=function(b,c,d){var e=this.childAt(1);if(e){var m=this,g=b.getItemLayout(d),t=1E3*c.get("period"),h=c.get("loop"),l=c.get("constantSpeed");c=c.get("delay")||function(c){return c/b.count()*t/3};var n="function"===typeof c;e.ignore=!0;this.updateAnimationPoints(e,g);0c);h++);h=Math.min(h-1,k-2)}n.lerp(b.position,e[h],e[h+1],(c-f[h])/(f[h+1]-f[h]));this._lastFrame=h;this._lastFramePercent=c;b.ignore=!1}};p.inherits(h,e);c.exports=h},function(c,p,b){function h(){this.group=new l.Group;this._lineEl=new d}var l=b(43),e=b(55),n=b(53),d=l.extendShape({shape:{polyline:!1,segs:[]},buildPath:function(b,c){for(var d=c.segs,e=c.polyline,h=0;h=c[0]&&b<=c[1]}}function e(b){b=b.dimensions;return"lng"===b[0]&&"lat"===b[1]}var n=b(43),d=b(272),m=b(4);c.exports=b(1).extendChartView({type:"heatmap",render:function(b,c,d){var m;c.eachComponent("visualMap",function(c){c.eachTargetSeries(function(d){d===b&&(m=c)})});if(!m)throw Error("Heatmap must use with visualMap");this.group.removeAll();c=b.coordinateSystem;"cartesian2d"===c.type?this._renderOnCartesian(c,b,d):e(c)&&this._renderOnGeo(c,b,m,d)},_renderOnCartesian:function(b,c,d){d=b.getAxis("x");var e=b.getAxis("y"),h=this.group;if("category"!==d.type||"category"!==e.type)throw Error("Heatmap on cartesian must have two category axes");if(!d.onBand||!e.onBand)throw Error("Heatmap on cartesian must have two axes with boundaryGap true");var l=d.getBandWidth(),g=e.getBandWidth(),t=c.getData(),w=c.getModel("itemStyle.normal").getItemStyle(["color"]),y=c.getModel("itemStyle.emphasis").getItemStyle(),z=c.getModel("label.normal"),p=c.getModel("label.emphasis");t.each(["x","y","z"],function(d,e,k,u){var E=t.getItemModel(u);d=b.dataToPoint([d,e]);isNaN(k)||(k=new n.Rect({shape:{x:d[0]-l/2,y:d[1]-g/2,width:l,height:g},style:{fill:t.getItemVisual(u,"color"),opacity:t.getItemVisual(u,"opacity")}}),t.hasItemOption&&(w=E.getModel("itemStyle.normal").getItemStyle(["color"]),y=E.getModel("itemStyle.emphasis").getItemStyle(),z=E.getModel("label.normal"),p=E.getModel("label.emphasis")),E=c.getRawValue(u),d="-",E&&null!=E[2]&&(d=E[2]),z.getShallow("show")&&(n.setText(w,z),w.text=c.getFormattedLabel(u,"normal")||d),p.getShallow("show")&&(n.setText(y,p),y.text=c.getFormattedLabel(u,"emphasis")||d),k.setStyle(w),n.setHoverStyle(k,t.hasItemOption?y:m.extend({},y)),h.add(k),t.setItemGraphicEl(u,k))})},_renderOnGeo:function(b,c,e,m){var x=e.targetVisuals.inRange,v=e.targetVisuals.outOfRange,g=c.getData(),t=this._hmLayer||this._hmLayer||new d;t.blurSize=c.get("blurSize");t.pointSize=c.get("pointSize");t.minOpacity=c.get("minOpacity");t.maxOpacity=c.get("maxOpacity");c=b.getViewRect().clone();var w=b.getRoamTransform().transform;c.applyTransform(w);var y=Math.max(c.x,0),z=Math.max(c.y,0),w=Math.min(c.width+c.x,m.getWidth());c=Math.min(c.height+c.y,m.getHeight());m=w-y;c-=z;g=g.mapArray(["lng","lat","value"],function(c,d,g){c=b.dataToPoint([c,d]);c[0]-=y;c[1]-=z;c.push(g);return c});w=e.getExtent();e="visualMap.continuous"===e.type?l(w,e.option.range):h(w,e.getPieceList(),e.option.selected);t.update(g,m,c,x.color.getNormalizer(),{inRange:x.color.getColorMapper(),outOfRange:v.color.getColorMapper()},e);x=new n.Image({style:{width:m,height:c,x:y,y:z,image:t.canvas},silent:!0});this.group.add(x)}})},function(c,p,b){function h(){this.canvas=l.createCanvas();this.blurSize=30;this.pointSize=20;this.maxOpacity=1;this.minOpacity=0;this._gradientPixels={}}var l=b(4);h.prototype={update:function(b,c,d,m,h,f){var k=this._getBrush(),l=this._getGradient(b,h,"inRange");h=this._getGradient(b,h,"outOfRange");var x=this.pointSize+this.blurSize,v=this.canvas,g=v.getContext("2d"),t=b.length;v.width=c;v.height=d;for(d=0;df;f++)c[d](f/255,!0,m),b[h++]=m[0],b[h++]=m[1],b[h++]=m[2],b[h++]=m[3];return b}};c.exports=h},function(c,p,b){b(274);b(275);b(276);b(1).registerProcessor(b(278))},function(c,p,b){var h=b(4),l=b(12),e=b(1).extendComponentModel({type:"legend",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(b,c,e){this.mergeDefaultAndTheme(b,e);b.selected=b.selected||{}},mergeOption:function(b){e.superCall(this,"mergeOption",b)},optionUpdated:function(){this._updateData(this.ecModel);var b=this._data;if(b[0]&&"single"===this.get("selectedMode")){for(var c=!1,e=0;eu||(m=m.getItemVisual(u,"color"),this._createItem(r,n,b,"roundRect",null,t,m,g).on("click",f(h,r,d)).on("mouseover",f(l,c,r,d)).on("mouseout",f(e,c,r,d)),w[r]=!0)}},this);w[r]||console.warn(r+" series not exists. Legend data should be same with series name or data name.")}}},this);r.layout(v,b,d);r.addBackground(v,b)}},_createItem:function(b,c,f,e,g,h,l,r){var z=f.get("itemWidth"),p=f.get("itemHeight"),A=f.get("inactiveColor"),B=f.isSelected(b),F=new m.Group,N=c.getModel("textStyle"),E=c.get("icon");c=c.getModel("tooltip");e=E||e;F.add(d.createSymbol(e,0,0,z,p,B?l:A));E||!g||g===e&&"none"!=g||(e=.8*p,"none"===g&&(g="circle"),F.add(d.createSymbol(g,(z-e)/2,(p-e)/2,e,e,B?l:A)));g="left"===h?z+5:-5;l=f.get("formatter");z=b;"string"===typeof l&&l?z=l.replace("{name}",b):"function"===typeof l&&(z=l(b));h=new m.Text({style:{text:z,x:g,y:p/2,fill:B?N.getTextColor():A,textFont:N.getFont(),textAlign:h,textVerticalAlign:"middle"}});F.add(h);f=new m.Rect({shape:F.getBoundingRect(),invisible:!0,tooltip:c.get("show")?n.extend({content:b,formatter:function(){return b},formatterParams:{componentType:"legend",legendIndex:f.componentIndex,name:b,$vars:["name"]}},c.option):null});F.add(f);F.eachChild(function(b){b.silent=!0});f.silent=!r;this.group.add(F);m.setHoverStyle(F);return F}})},function(c,p,b){var h=b(21),l=b(6),e=b(43);c.exports={layout:function(b,c,e){var l=h.getLayoutRect(c.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},c.get("padding"));h.box(c.get("orient"),b,c.get("itemGap"),l.width,l.height);h.positionGroup(b,c.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},c.get("padding"))},addBackground:function(b,c){var h=l.normalizeCssArray(c.get("padding")),r=b.getBoundingRect(),f=c.getItemStyle(["color","opacity"]);f.fill=c.get("backgroundColor");h=new e.Rect({shape:{x:r.x-h[3],y:r.y-h[0],width:r.width+h[1]+h[3],height:r.height+h[0]+h[2]},style:f,silent:!0,z2:-1});e.subPixelOptimizeRect(h);b.add(h)}}},function(c,p){c.exports=function(b){var c=b.findComponents({mainType:"legend"});c&&c.length&&b.filterSeries(function(b){for(var e=0;el?b-(c+20):b+20,m+g+20>n?m-(g+20):m+20];c=b[0];g=b[1]}e.moveTo(c,g)}function l(b){var c=b.coordinateSystem;b=b.get("tooltip.trigger",!0);return!(!c||"cartesian2d"!==c.type&&"polar"!==c.type&&"singleAxis"!==c.type||"item"===b)}var e=b(282),n=b(43),d=b(4),m=b(6),r=b(7),f=r.parsePercent,k=b(2),u=b(12);b(1).extendComponentView({type:"tooltip",_axisPointers:{},init:function(b,c){k.node||(this._tooltipContent=new e(c.getDom(),c),c.on("showTip",this._manuallyShowTip,this),c.on("hideTip",this._manuallyHideTip,this))},render:function(b,c,d){if(!k.node){this.group.removeAll();this._axisPointers={};this._tooltipModel=b;this._ecModel=c;this._api=d;this._lastHover={};d=this._tooltipContent;d.update();d.enterable=b.get("enterable");this._alwaysShowContent=b.get("alwaysShowContent");this._seriesGroupByAxis=this._prepareAxisTriggerData(b,c);(c=this._crossText)&&this.group.add(c);if(null!=this._lastX&&null!=this._lastY){var f=this;clearTimeout(this._refreshUpdateTimeout);this._refreshUpdateTimeout=setTimeout(function(){f._manuallyShowTip({x:f._lastX,y:f._lastY})})}c=this._api.getZr();c.off("click",this._tryShow);c.off("mousemove",this._mousemove);c.off("mouseout",this._hide);c.off("globalout",this._hide);if("click"===b.get("triggerOn"))c.on("click",this._tryShow,this);else c.on("mousemove",this._mousemove,this),c.on("mouseout",this._hide,this),c.on("globalout",this._hide,this)}},_mousemove:function(b){var c=this._tooltipModel.get("showDelay"),d=this;clearTimeout(this._showTimeout);0l;)c+=360*d;return[h,c]},coordToPoint:function(b){var c=b[0];b=b[1]/180*Math.PI;return[Math.cos(b)*c+this.cx,-Math.sin(b)*c+this.cy]}};c.exports=p},function(c,p,b){function h(b,c){l.call(this,"radius",b,c);this.type="category"}p=b(4);var l=b(123);h.prototype={constructor:h,dataToRadius:l.prototype.dataToCoord,radiusToData:l.prototype.coordToData};p.inherits(h,l);c.exports=h},function(c,p,b){function h(b,c){c=c||[0,360];l.call(this,"angle",b,c);this.type="category"}p=b(4);var l=b(123);h.prototype={constructor:h,dataToAngle:l.prototype.dataToCoord,angleToData:l.prototype.coordToData};p.inherits(h,l);c.exports=h},function(c,p,b){b(289);b(1).extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(b){var c,e=this.ecModel;e.eachComponent(b,function(b){e.getComponent("polar",b.getShallow("polarIndex"))===this&&(c=b)},this);return c},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},function(c,p,b){function h(b,c){return c.type||(c.data?"category":"value")}c=b(4);var l=b(19);p=b(127);l=l.extend({type:"polarAxis",axis:null});c.merge(l.prototype,b(129));p("angle",l,h,{polarIndex:0,startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}});p("radius",l,h,{polarIndex:0,splitNumber:5})},function(c,p,b){b(284);b(291)},function(c,p,b){function h(b,c,d,e){c=b.coordToPoint([c,e]);b=b.coordToPoint([d,e]);return{x1:c[0],y1:c[1],x2:b[0],y2:b[1]}}var l=b(4),e=b(43),n=b(12),d=["axisLine","axisLabel","axisTick","splitLine","splitArea"];b(1).extendComponentView({type:"angleAxis",render:function(b,c){this.group.removeAll();if(b.get("show")){var f=c.getComponent("polar",b.get("polarIndex")),e=b.axis,h=f.coordinateSystem,n=h.getRadiusAxis().getExtent(),p=e.getTicksCoords();"category"!==e.type&&p.pop();l.each(d,function(c){if(b.get(c+".show"))this["_"+c](b,h,p,n)},this)}},_axisLine:function(b,c,d,k){b=b.getModel("axisLine.lineStyle");c=new e.Circle({shape:{cx:c.cx,cy:c.cy,r:k[1]},style:b.getLineStyle(),z2:1,silent:!0});c.style.fill=null;this.group.add(c)},_axisTick:function(b,c,d,k){var n=b.getModel("axisTick"),p=(n.get("inside")?-1:1)*n.get("length");d=l.map(d,function(b){return new e.Line({shape:h(c,k[1],k[1]+p,b)})});this.group.add(e.mergePath(d,{style:l.defaults(n.getModel("lineStyle").getLineStyle(),{stroke:b.get("axisLine.lineStyle.color")})}))},_axisLabel:function(b,c,d,k){for(var h=b.axis,l=b.get("data"),p=b.getModel("axisLabel"),g=p.getModel("textStyle"),t=b.getFormattedLabels(),p=p.get("margin"),h=h.getLabelsCoords(),w=0;wMath.abs(z[0]-D)/y?"center":z[0]>D?"left":"right",y=.3>Math.abs(z[1]-A)/y?"middle":z[1]>A?"top":"bottom",A=g;l&&l[w]&&l[w].textStyle&&(A=new n(l[w].textStyle,g));this.group.add(new e.Text({style:{x:z[0],y:z[1],fill:A.getTextColor()||b.get("axisLine.lineStyle.color"),text:t[w],textAlign:D,textVerticalAlign:y,textFont:A.getFont()},silent:!0}))}},_splitLine:function(b,c,d,k){for(var n=b.getModel("splitLine").getModel("lineStyle"),p=n.get("color"),v=0,p=p instanceof Array?p:[p],g=[],t=0;t=c.y&&b[1]<=c.y+c.height:e.contain(e.toLocalCoord(b[1]))&&b[0]>=c.y&&b[0]<=c.y+c.height},pointToData:function(b){var c=this.getAxis();return[c.coordToData(c.toLocalCoord(b["horizontal"===c.orient?0:1]))]},dataToPoint:function(b){var c=this.getAxis(),e=this.getRect(),f=[],k="horizontal"===c.orient?0:1;f[k]=c.toGlobalCoord(c.dataToCoord(+b));f[1-k]=0===k?e.y+e.height/2:e.x+e.width/2;return f}};c.exports=h},function(c,p,b){var h=b(4),l=b(123),e=b(114);p=function(b,c,e,h,f){l.call(this,b,c,e);this.type=h||"value";this.position=f||"bottom";this._labelInterval=this.orient=null};p.prototype={constructor:p,model:null,isHorizontal:function(){var b=this.position;return"top"===b||"bottom"===b},getLabelInterval:function(){var b=this._labelInterval;if(!b){var b=this.model,c=b.getModel("axisLabel"),m=c.get("interval");if("category"!==this.type||"auto"!==m)return b=this._labelInterval="auto"===m?0:m;b=this._labelInterval=e.getAxisLabelInterval(h.map(this.scale.getTicks(),this.dataToCoord,this),b.getFormattedLabels(),c.getModel("textStyle").getFont(),this.isHorizontal())}return b},toGlobalCoord:null,toLocalCoord:null};h.inherits(p,l);c.exports=p},function(c,p,b){var h=b(132),l=b(4),e=b(43),n=h.getInterval,d=h.ifIgnoreOnTick,m=["axisLine","axisLabel","axisTick","axisName"];p=b(1).extendComponentView({type:"singleAxis",render:function(b,c){var d=this.group;d.removeAll();var e=b.axis,n={},p=e.position,g=e.orient,t=b.coordinateSystem.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],w={top:t[2],bottom:t[3]},y={left:t[0],right:t[1]};n.position=["vertical"===g?y[p]:t[0],"horizontal"===g?w[p]:t[3]];n.rotation=Math.PI/2*{horizontal:0,vertical:1}[g];n.labelDirection=n.tickDirection=n.nameDirection={top:-1,bottom:1,right:1,left:-1}[p];b.getModel("axisTick").get("inside")&&(n.tickDirection=-n.tickDirection);b.getModel("axisLabel").get("inside")&&(n.labelDirection=-n.labelDirection);g=b.getModel("axisLabel").get("rotate");n.labelRotation="top"===p?-g:g;n.labelInterval=e.getLabelInterval();n.z2=1;e=new h(b,n);l.each(m,e.add,e);d.add(e.getGroup());b.get("splitLine.show")&&this._splitLine(b,n.labelInterval)},_splitLine:function(b,c){for(var k=b.axis,h=b.getModel("splitLine"),m=h.getModel("lineStyle"),l=m.get("width"),g=m.get("color"),h=n(h,c),g=g instanceof Array?g:[g],t=b.coordinateSystem.getRect(),w=k.isHorizontal(),y=[],z=0,p=k.getTicksCoords(),A=[],B=[],F=0;Fk.indexOf(d,c):c!==d)}function m(b){var c=b.selectors={};k.each(x[b.brushType],function(d,g){c[g]=function(g){return d(g,c,b)}});return b}function r(b){return new u(b[0][0],b[1][0],b[0][1]-b[0][0],b[1][1]-b[1][0])}c=b(1);var f=b(306),k=b(4),u=b(9),x=b(307),v=b(308),g=b(309),t=["inBrush","outOfBrush"];b=c.PRIORITY.VISUAL.BRUSH;c.registerLayout(b,function(b,c,d){b.eachComponent({mainType:"brush"},function(c){d&&"takeGlobalCursor"===d.type&&c.setBrushOption("brush"===d.key?d.brushOption:{brushType:!1});c.coordInfoList=g.makeCoordInfoList(c.option,b);g.parseInputRanges(c,b)})});c.registerVisual(b,function(b,c,l){var r=[],u,p;b.eachComponent({mainType:"brush"},function(c,h){function l(b){return"all"===D||O[b]}function q(b,c){var d=b.coordinateSystem;P|=d.hasAxisbrushed();l(c)&&d.eachActiveState(b.getData(),function(b,c){"active"===b&&(M[c]=1)})}function z(b,f,h){var m=n(b);if(m&&!d(c,f)&&(k.each(T,function(d){m[d.brushType]&&g.controlSeries(d,c,b)&&h.push(d);P|=!!h.length}),l(f)&&h.length)){var t=b.getData();t.each(function(b){e(m,h,t,b)&&(M[b]=1)})}}var v={brushId:c.id,brushIndex:h,brushName:c.name,areas:k.clone(c.areas),selected:[]};r.push(v);var x=c.option,D=x.brushLink,O=[],M=[],J=[],P=0;h||(u=x.throttleType,p=x.throttleDelay);var T=k.map(c.areas,function(b){return m(k.defaults({boundingRect:w[b.brushType](b)},b))}),S=f.createVisualMappings(c.option,t,function(b){b.mappingMethod="fixed"});k.isArray(D)&&k.each(D,function(b){O[b]=1});b.eachSeries(function(b,c){var d=J[c]=[];"parallel"===b.subType?q(b,c,d):z(b,c,d)});b.eachSeries(function(b,c){var d={seriesId:b.id,seriesIndex:c,seriesName:b.name,dataIndex:[]};v.selected.push(d);var g=n(b),k=J[c],h=b.getData(),m=l(c)?function(b){return M[b]?(d.dataIndex.push(h.getRawIndex(b)),"inBrush"):"outOfBrush"}:function(b){return e(g,k,h,b)?(d.dataIndex.push(h.getRawIndex(b)),"inBrush"):"outOfBrush"};(l(c)?P:k.length)&&f.applyVisual(t,S,h,m)})});h(c,u,p,r,l)});var w={lineX:k.noop,lineY:k.noop,rect:function(b){return r(b.range)},polygon:function(b){var c;b=b.range;for(var d=0,g=b.length;dc[0][1]&&(c[0][1]=f[0]);f[1]c[1][1]&&(c[1][1]=f[1])}return c&&r(c)}}},function(c,p,b){function h(b){if(b)for(var c in b)if(b.hasOwnProperty(c))return!0}var l=b(4),e=b(192),n=l.each;c.exports={createVisualMappings:function(b,c,h){function f(){var b=function(){};b.prototype.__hidden=b.prototype;return new b}var k={};n(c,function(c){var m=k[c]=f();n(b[c],function(b,d){if(e.isValidType(d)){var f={type:d,visual:b};h&&h(f,c);m[d]=new e(f);"opacity"===d&&(f=l.clone(f),f.type="colorAlpha",m.__hidden.__alphaForOpacity=new e(f))}})});return k},replaceVisualOption:function(b,c,e){var f;l.each(e,function(b){c.hasOwnProperty(b)&&h(c[b])&&(f=!0)});f&&l.each(e,function(f){c.hasOwnProperty(f)&&h(c[f])?b[f]=l.clone(c[f]):delete b[f]})},applyVisual:function(b,c,h,f,k,n){function p(b){return h.getItemVisual(w,b)}function v(b,c){h.setItemVisual(w,b,c)}function g(b,d){w=null==n?b:d;for(var g=f.call(k,b),e=c[g],g=t[g],h=0,l=g.length;h=g&&-1E-6<=g?l=!1:(F=((A-l)*(B-N)-(A-F)*(B-n))/g,0>F||1l||1e&&(c+=e,e=-e);0>b&&(d+=b,b=-b);return new m(c,d,e,b)}var d=b(167).contain,m=b(9);p={lineX:h(0),lineY:h(1),rect:{point:function(b,c,d){return d.boundingRect.contain(b[0],b[1])},rect:function(b,c,d){return d.boundingRect.intersect(n(b))}},polygon:{point:function(b,c,e){return e.boundingRect.contain(b[0],b[1])&&d(e.range,b[0],b[1])},rect:function(b,c,k){c=k.range;if(1>=c.length)return!1;k=b.x;var h=b.y,m=b.width,l=b.height,g=c[0];if(d(c,k,h)||d(c,k+m,h)||d(c,k,h+l)||d(c,k+m,h+l)||n(b).contain(g[0],g[1])||e(k,h,k+m,h,c)||e(k,h,k,h+l,c)||e(k+m,h,k+m,h+l,c)||e(k,h+l,k+m,h+l,c))return!0}}};c.exports=p},function(c,p){var b={throttle:function(b,c,e){function n(){r=(new Date).getTime();f=null;b.apply(u,p||[])}var d,m=0,r=0,f=null,k,u,p;c=c||0;var v=function(){d=(new Date).getTime();u=this;p=arguments;k=d-(e?m:r)-c;clearTimeout(f);e?f=setTimeout(n,c):0<=k?n():f=setTimeout(n,-k);m=d};v.clear=function(){f&&(clearTimeout(f),f=null)};return v},createOrUpdate:function(c,l,e,n){var d=c[l];if(d){var m=d["\x00__throttleOriginMethod"]||d,r=d["\x00__throttleType"];if(d["\x00__throttleRate"]!==e||r!==n){if(null==e||!n)return c[l]=m;d=c[l]=b.throttle(m,e,"debounce"===n);d["\x00__throttleOriginMethod"]=m;d["\x00__throttleType"]=n;d["\x00__throttleRate"]=e}return d}},clear:function(b,c){var e=b[c];e&&e["\x00__throttleOriginMethod"]&&(b[c]=e["\x00__throttleOriginMethod"])}};c.exports=b},function(c,p,b){function h(b){b[0]>b[1]&&b.reverse();return b}function l(b,c){for(var d=!0,g=0;gn.indexOf(f,c))){var e,k;"xAxis"===g||"yAxis"===g?e=b.axis.grid:k=b.coordinateSystem;for(var h,m=0,l=d.length;ml.indexOf(g,c)&&g.push(c)})},this)},_autoSetOrient:function(){var b;this.eachTargetAxis(function(c){!b&&(b=c.name)},this);this.option.orient="y"===b?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(b,c){var d=!0;r(function(e){var h=b.get(e.axisIndex);(e=this.dependentModels[e.axis][h])&&e.get("type")===c||(d=!1)},this);return d},_setDefaultThrottle:function(b){b.hasOwnProperty("throttle")&&(this._autoThrottle=!1);this._autoThrottle&&(b=this.ecModel.option,this.option.throttle=b.animation&&0d[1]&&(d[1]=b[1])})},this);return d}function l(b,c,h){h=h.getAxisModel();var l=h.axis.scale,n=[0,100],g=[b.start,b.end],t=[];c=c.slice();e(c,h,l);m(["startValue","endValue"],function(c){t.push(null!=b[c]?l.parse(b[c]):null)});m([0,1],function(b){var f=t[b],e=g[b];null!=e||null==f?(null==e&&(e=n[b]),f=l.parse(d.linearMap(e,n,c,!0))):e=d.linearMap(f,c,n,!0);t[b]=f;g[b]=e});return{valueWindow:r(t),percentWindow:r(g)}}function e(b,c,d){m(["min","max"],function(e,h){var g=c.get(e,!0);null!=g&&(g+"").toLowerCase()!=="data"+e&&(b[h]=d.parse(g))});c.get("scale",!0)||(0b[1]&&(b[1]=0));return b}function n(b,c){var e=b.getAxisModel(),h=b._percentWindow,m=b._valueWindow;if(h){var g=c||0===h[0]&&100===h[1],h=!c&&d.getPixelPrecision(m,[0,500]),g=c||g||!c&&!(20>h&&0<=h);e.setRange&&e.setRange(g?null:+m[0].toFixed(h),g?null:+m[1].toFixed(h))}}p=b(4);var d=b(7),m=p.each,r=d.asc;b=function(b,c,d,e){this._dimName=b;this._axisIndex=c;this.ecModel=e;this._dataZoomModel=d};b.prototype={constructor:b,hostedBy:function(b){return this._dataZoomModel===b},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var b=[];this.ecModel.eachSeries(function(c){this._axisIndex===+c.get(this._dimName+"AxisIndex")&&b.push(c)},this);return b},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var b=this._dimName,c=this.ecModel,d=this.getAxisModel(),e;"x"===b||"y"===b?(e="gridIndex",b="x"===b?"y":"x"):(e="polarIndex",b="angle"===b?"radius":"angle");var h;c.eachComponent(b+"Axis",function(b){(b.get(e)||0)===(d.get(e)||0)&&(h=b)});return h},reset:function(b){if(b===this._dataZoomModel){var c=this._dataExtent=h(this._dimName,this.getTargetSeriesModels());b=l(b.option,c,this);this._valueWindow=b.valueWindow;this._percentWindow=b.percentWindow;n(this)}},restore:function(b){b===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,n(this,!0))},filterData:function(b){function c(b){return b>=g[0]&&b<=g[1]}if(b===this._dataZoomModel){var d=this._dimName,e=this.getTargetSeriesModels(),h=b.get("filterMode"),g=this._valueWindow,t=this.getOtherAxisModel();b.get("$fromToolbox")&&t&&"category"===t.get("type")&&(h="empty");m(e,function(b){var g=b.getData();g&&m(b.coordDimToDataDim(d),function(d){"empty"===h?b.setData(g.map(d,function(b){return c(b)?b:NaN})):g.filterSelf(d,c)})})}}};c.exports=b},function(c,p,b){p=b(29);c.exports=p.extend({type:"dataZoom",render:function(b,c,e,n){this.dataZoomModel=b;this.ecModel=c;this.api=e},getTargetInfo:function(){function b(c,d,e,k){for(var h,l=0;lh.indexOf(v,b.get("type")))){var k="x"===e.name?"y":"x",m=g.getComponent(e.axis,f).axis;d={thisAxis:m,series:b,thisDim:e.name,otherDim:k,otherAxisInverse:b.coordinateSystem.getOtherAxis(m).inverse}}},this)},this);return d}},_renderHandle:function(){var b=this._displayables,c=b.handles=[],g=b.handleLabels=[],e=this._displayables.barGroup,f=this._size,k=this.dataZoomModel;e.add(b.filler=new n({draggable:!0,cursor:"move",drift:u(this._onDragMove,this,"all"),ondragstart:u(this._showDataInfo,this,!0),ondragend:u(this._onDragEnd,this),onmouseover:u(this._showDataInfo,this,!0),onmouseout:u(this._showDataInfo,this,!1),style:{fill:k.get("fillerColor"),textPosition:"inside"}}));e.add(new n(l.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:f[0],height:f[1]},style:{stroke:k.get("dataBackgroundColor")||k.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})));var h=k.get("handleIcon");x([0,1],function(b){var f=l.makePath(h,{style:{strokeNoScale:!0},rectHover:!0,cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:u(this._onDragMove,this,b),ondragend:u(this._onDragEnd,this),onmouseover:u(this._showDataInfo,this,!0),onmouseout:u(this._showDataInfo,this,!1)},{x:-.5,y:0,width:1,height:1},"center"),m=f.getBoundingRect();this._handleHeight=d.parsePercent(k.get("handleSize"),this._size[1]);this._handleWidth=m.width/m.height*this._handleHeight;f.setStyle(k.getModel("handleStyle").getItemStyle());m=k.get("handleColor");null!=m&&(f.style.fill=m);e.add(c[b]=f);f=k.textStyleModel;this.group.add(g[b]=new l.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",fill:f.getTextColor(),textFont:f.getFont()},z2:10}))},this)},_resetInterval:function(){var b=this._range=this.dataZoomModel.getPercentRange(),c=this._getViewExtent();this._handleEnds=[m(b[0],[0,100],c,!0),m(b[1],[0,100],c,!0)]},_updateInterval:function(b,c){var d=this._handleEnds,g=this._getViewExtent();f(c,d,g,"all"===b||this.dataZoomModel.get("zoomLock")?"rigid":"cross",b);this._range=k([m(d[0],g,[0,100],!0),m(d[1],g,[0,100],!0)])},_updateView:function(){var b=this._displayables,c=this._handleEnds,d=k(c.slice()),g=this._size;x([0,1],function(d){var e=this._handleHeight;b.handles[d].attr({scale:[e,e],position:[c[d],g[1]/2-e/2]})},this);b.filler.setShape({x:d[0],y:0,width:d[1]-d[0],height:g[1]});this._updateDataInfo()},_updateDataInfo:function(){function b(c){var k=l.getTransform(d.handles[c].parent,this.group),h=l.transformDirection(0===c?"right":"left",k),m=this._handleWidth/2+5,k=l.applyTransform([n[c]+(0===c?-m:m),this._size[1]/2],k);g[c].setStyle({x:k[0],y:k[1],textVerticalAlign:"horizontal"===e?"middle":h,textAlign:"horizontal"===e?h:"center",text:f[c]})}var c=this.dataZoomModel,d=this._displayables,g=d.handleLabels,e=this._orient,f=["",""];if(c.get("showDetail")){var h,m;c.eachTargetAxis(function(b,d){h||(h=c.getAxisProxy(b.name,d).getDataValueWindow(),m=this.ecModel.getComponent(b.axis,d).axis)},this);h&&(f=[this._formatLabel(h[0],m),this._formatLabel(h[1],m)])}var n=k(this._handleEnds.slice());b.call(this,0);b.call(this,1)},_formatLabel:function(b,c){var d=this.dataZoomModel,g=d.get("labelFormatter");if(h.isFunction(g))return g(b);d=d.get("labelPrecision");if(null==d||"auto"===d)d=c.getPixelPrecision();b=null==b&&isNaN(b)?"":"category"===c.type||"time"===c.type?c.scale.getLabel(Math.round(b)):b.toFixed(Math.min(d,20));h.isString(g)&&(b=g.replace("{value}",b));return b},_showDataInfo:function(b){b=this._dragging||b;var c=this._displayables.handleLabels;c[0].attr("invisible",!b);c[1].attr("invisible",!b)},_onDragMove:function(b,c,d){this._dragging=!0;c=this._applyBarTransform([c,d],!0);this._updateInterval(b,c[0]);this._updateView();this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1;this._showDataInfo(!1);this._dispatchZoomAction()},_dispatchZoomAction:function(){var b=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:b[0],end:b[1]})},_applyBarTransform:function(b,c){var d=this._displayables.barGroup.getLocalTransform();return l.applyTransform(b,d,c)},_findCoordRect:function(){var b=this.getTargetInfo();if(b.cartesians.length)b=b.cartesians[0].model.coordinateSystem.getRect();else var b=this.api.getWidth(),c=this.api.getHeight(),b={x:.2*b,y:.2*c,width:.6*b,height:.6*c};return b}});c.exports=g},function(c,p){c.exports=function(b,c,l,e,n){function d(b,c,d){var e=c.length?c.slice():[c,c];c[0]>c[1]&&e.reverse();0>b&&e[0]+bd[1]&&(b=d[1]-e[1]);return b}if(!b)return c;"rigid"===e?(b=d(b,c,l),c[0]+=b,c[1]+=b):(b=d(b,c[n],l),c[n]+=b,"push"===e&&c[0]>c[1]&&(c[1-n]=c[n]));return c}},function(c,p,b){c.exports=b(318).extend({type:"dataZoom.inside",defaultOption:{zoomLock:!1}})},function(c,p,b){function h(b,c,d){c=c.axis;d=d.rectProvider();var e={};"x"===c.dim?(e.pixel=b[0],e.pixelLength=d.width,e.pixelStart=d.x,e.signal=c.inverse?1:-1):(e.pixel=b[1],e.pixelLength=d.height,e.pixelStart=d.y,e.signal=c.inverse?-1:1);return e}p=b(320);var l=b(4),e=b(323),n=b(326),d=l.bind,m=p.extend({type:"dataZoom.inside",init:function(b,c){},render:function(b,c,e,h){m.superApply(this,"render",arguments);n.shouldRecordRange(h,b.id)&&(this._range=b.getPercentRange());var p=this.getTargetInfo().cartesians,v=l.map(p,function(b){return n.generateCoordId(b.model)});l.each(p,function(c){var f=c.model;n.register(e,{coordId:n.generateCoordId(f),allCoordIds:v,coordinateSystem:f.coordinateSystem,dataZoomId:b.id,throttleRate:b.get("throttle",!0),panGetRange:d(this._onPan,this,c),zoomGetRange:d(this._onZoom,this,c)})},this)},dispose:function(){n.unregister(this.api,this.dataZoomModel.id);m.superApply(this,"dispose",arguments);this._range=null},_onPan:function(b,c,d,m){m=[d,m];d=this._range;d=d.slice();(b=b.axisModels[0])?(c=h(m,b,c),e(c.signal*(d[1]-d[0])*c.pixel/c.pixelLength,d,[0,100],"rigid"),c=d):c=void 0;return this._range=c},_onZoom:function(b,c,d,e,m){if(this.dataZoomModel.option.zoomLock)return this._range;d=1/d;m=[e,m];e=this._range;e=e.slice();(b=b.axisModels[0])?(c=h(m,b,c),c=(c.pixel-c.pixelStart)/c.pixelLength*(e[1]-e[0])+e[0],d=Math.max(d,0),e[0]=(e[0]-c)*d+c,e[1]=(e[1]-c)*d+c,d=e,c=[0,100],d[0]<=c[1]||(d[0]=c[1]),d[1]<=c[1]||(d[1]=c[1]),d[0]>=c[0]||(d[0]=c[0]),d[1]>=c[0]||(d[1]=c[0])):d=void 0;return this._range=d}});c.exports=m},function(c,p,b){function h(b){b=b.getZr();return b["\x00_ec_dataZoom_roams"]||(b["\x00_ec_dataZoom_roams"]={})}function l(b,c,e){b=new k(b.getZr());b.enable();b.on("pan",x(n,e));b.on("zoom",x(d,e));return b}function e(b){f.each(b,function(c,d){c.count||(c.controller.off("pan").off("zoom"),delete b[d])})}function n(b,c,d){m(b,function(e){return e.panGetRange(b.controller,c,d)})}function d(b,c,d,e){m(b,function(f){return f.zoomGetRange(b.controller,c,d,e)})}function m(b,c){var d=[];f.each(b.dataZoomInfos,function(b){var e=c(b);e&&d.push({dataZoomId:b.dataZoomId,start:e[0],end:e[1]})});b.dispatchAction(d)}function r(b,c){b.dispatchAction({type:"dataZoom",batch:c})}var f=b(4),k=b(174),u=b(308),x=f.curry;c.exports={register:function(b,c){var d=h(b),k=c.dataZoomId,m=c.coordId;f.each(d,function(b,d){var e=b.dataZoomInfos;e[k]&&0>f.indexOf(c.allCoordIds,m)&&(delete e[k],b.count--)});e(d);var n=d[m];n||(n=d[m]={coordId:m,dataZoomInfos:{},count:0},n.controller=l(b,c,n),n.dispatchAction=f.curry(r,b));var p=c.coordinateSystem.getRect().clone();n.controller.rectProvider=function(){return p};u.createOrUpdate(n,"dispatchAction",c.throttleRate,"fixRate");!n.dataZoomInfos[k]&&n.count++;n.dataZoomInfos[k]=c},unregister:function(b,c){var d=h(b);f.each(d,function(b){var d=b.dataZoomInfos;d[c]&&(delete d[c],b.count--)});e(d)},shouldRecordRange:function(b,c){if(b&&"dataZoom"===b.type&&b.batch)for(var d=0,e=b.batch.length;d=b||d[0]===d[1])return d.slice();c=(d[1]-d[0])/(b-1);for(var e=d[0],h=[],g=0;gc[1]&&c.reverse(),c[0]=Math.max(c[0],b[0]),c[1]=Math.min(c[1],b[1]))},completeVisualOption:function(){e.prototype.completeVisualOption.apply(this,arguments);n.each(this.stateList,function(b){(b=this.option.controller[b].symbolSize)&&b[0]!==b[1]&&(b[0]=0)},this)},setSelected:function(b){this.option.range=b.slice();this._resetRange()},getSelected:function(){var b=this.getExtent(),c=d.asc((this.get("range")||[]).slice());c[0]>b[1]&&(c[0]=b[1]);c[1]>b[1]&&(c[1]=b[1]);c[0]=d[1]||b<=c[1])?"inRange":"outOfRange"},findTargetDataIndices:function(b){var c=[];this.eachTargetSeries(function(d){var e=[],h=d.getData();h.each(this.getDataDimension(h),function(c,d){b[0]<=c&&c<=b[1]&&e.push(d)},!0,this);c.push({seriesId:d.id,dataIndex:e})},this);return c},getStops:function(b,c){var d=[];l(this,"outOfRange",this.getExtent(),d);l(this,"inRange",this.option.range.slice(),d);n.each(d,function(b){b.color=c(this,b.value,b.valueState)},this);return d}});c.exports=r},function(c,p,b){p=b(1);var h=b(4),l=b(2),e=b(336),n=b(192),d=b(306),m=n.mapVisual,r=b(5),f=n.eachVisual;b=b(7);var k=h.isArray,u=h.each,x=b.asc,v=b.linearMap;b=h.noop;var g=["#f6efa6","#d88273","#bf444c"];p=p.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-Infinity,Infinity],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:null,min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(b,c,d){this.targetVisuals={};this.controllerVisuals={};this.textStyleModel;this.mergeDefaultAndTheme(b,d)},optionUpdated:function(b,c){var g=this.option;l.canvasSupported||(g.realtime=!1);!c&&d.replaceVisualOption(g,b,this.replacableOptionKeys);this.textStyleModel=this.getModel("textStyle");this.resetItemSize();this.completeVisualOption()},resetVisual:function(b){var c=this.stateList;b=h.bind(b,this);this.controllerVisuals=d.createVisualMappings(this.option.controller,c,b);this.targetVisuals=d.createVisualMappings(this.option.target,c,b)},resetTargetSeries:function(){var b=this.option,c=null==b.seriesIndex;b.seriesIndex=c?[]:r.normalizeToArray(b.seriesIndex);c&&this.ecModel.eachSeries(function(c,d){b.seriesIndex.push(d)})},eachTargetSeries:function(b,c){h.each(this.option.seriesIndex,function(d){b.call(c,this.ecModel.getSeriesByIndex(d))},this)},isTargetSeries:function(b){var c=!1;this.eachTargetSeries(function(d){d===b&&(c=!0)});return c},formatValueText:function(b,c,d){function g(b){return b===k[0]?"min":b===k[1]?"max":(+b).toFixed(f)}var e=this.option,f=e.precision,k=this.dataBound,e=e.formatter,m;d=d||["\x3c","\x3e"];h.isArray(b)&&(b=b.slice(),m=!0);c=c?b:m?[g(b[0]),g(b[1])]:g(b);return h.isString(e)?e.replace("{value}",m?c[0]:c).replace("{value2}",m?c[1]:c):h.isFunction(e)?m?e(b[0],b[1]):e(b):m?b[0]===k[0]?d[0]+" "+c[1]:b[1]===k[1]?d[1]+" "+c[0]:c[0]+" - "+c[1]:c},resetExtent:function(){var b=this.option;this._dataExtent=x([b.min,b.max])},getDataDimension:function(b){var c=this.option.dimension;return null!=c?c:b.dimensions.length-1},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function b(d){k(c.color)&&!d.inRange&&(d.inRange={color:c.color.slice().reverse()});d.inRange=d.inRange||{color:g};u(this.stateList,function(b){var c=d[b];if(h.isString(c)){var g=e.get(c,"active",p);g?(d[b]={},d[b][c]=g):delete d[b]}},this)}var c=this.option,d={inRange:c.inRange,outOfRange:c.outOfRange},l=c.target||(c.target={}),r=c.controller||(c.controller={});h.merge(l,d);h.merge(r,d);var p=this.isCategory();b.call(this,l);b.call(this,r);(function(b,c,d){c=b[c];var g=b[d];c&&!g&&(g=b[d]={},u(c,function(b,c){if(n.isValidType(c)){var d=e.get(c,"inactive",p);null!=d&&(g[c]=d,"color"!==c||g.hasOwnProperty("opacity")||g.hasOwnProperty("colorAlpha")||(g.opacity=[0,0]))}}))}).call(this,l,"inRange","outOfRange");(function(b){var c=(b.inRange||{}).symbol||(b.outOfRange||{}).symbol,d=(b.inRange||{}).symbolSize||(b.outOfRange||{}).symbolSize,g=this.get("inactiveColor");u(this.stateList,function(e){var k=this.itemSize,l=b[e];l||(l=b[e]={color:p?g:[g]});null==l.symbol&&(l.symbol=c&&h.clone(c)||(p?"roundRect":["roundRect"]));null==l.symbolSize&&(l.symbolSize=d&&h.clone(d)||(p?k[0]:[k[0],k[0]]));l.symbol=m(l.symbol,function(b){return"none"===b||"square"===b?"roundRect":b});e=l.symbolSize;if(null!=e){var t=-Infinity;f(e,function(b){b>t&&(t=b)});l.symbolSize=m(e,function(b){return v(b,[0,t],[0,k[0]],!0)})}},this)}).call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:b,getValueState:b});c.exports=p},function(c,p,b){var h=b(4),l={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};c.exports={get:function(b,c,d){b=h.clone((l[b]||{})[c]);return d?h.isArray(b)?b[b.length-1]:b:b}}},function(c,p,b){function h(b,c,d,g){return new n.Polygon({shape:{points:b},draggable:!!d,cursor:c,drift:d,ondragend:g})}function l(b,c,d,e){return b?[[0,-g(c,t(d,0))],[6,0],[0,g(c,t(e-d,0))]]:[[0,0],[5,-5],[5,5]]}function e(b){return!b.get("realtime")&&b.get("hoverLinkOnHandle")}p=b(338);var n=b(43),d=b(4),m=b(7),r=b(323),f=b(79),k=b(339),u=b(5),x=m.linearMap,v=d.each,g=Math.min,t=Math.max,w=p.extend({type:"visualMap.continuous",init:function(){w.superApply(this,"init",arguments);this._shapes={};this._dataInterval=[];this._handleEnds=[];this._hoverLinkDataIndices=[]},doRender:function(b,c,d,g){g&&"selectDataRange"===g.type&&g.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var b=this.visualMapModel,c=this.group;this._orient=b.get("orient");this._useHandle=b.get("calculable");this._resetInterval();this._renderBar(c);b=b.get("text");this._renderEndsText(c,b,0);this._renderEndsText(c,b,1);this._updateView(!0);this.renderBackground(c);this._updateView();this._enableHoverLinkToSeries();this._enableHoverLinkFromSeries();this.positionGroup(c)},_renderEndsText:function(b,c,d){if(c){b=c[1-d];b=null!=b?b+"":"";var g=this.visualMapModel;c=g.get("textGap");var e=g.itemSize,g=this._shapes.barGroup;c=this._applyTransform([e[0]/2,0===d?-c:e[1]+c],g);d=this._applyTransform(0===d?"bottom":"top",g);g=this._orient;e=this.visualMapModel.textStyleModel;this.group.add(new n.Text({style:{x:c[0],y:c[1],textVerticalAlign:"horizontal"===g?"middle":d,textAlign:"horizontal"===g?d:"center",text:b,textFont:e.getFont(),fill:e.getTextColor()}}))}},_renderBar:function(b){var c=this.visualMapModel,g=this._shapes,e=c.itemSize,f=this._orient,m=this._useHandle,l=k.getItemAlign(c,this.api,e),w=g.barGroup=this._createBarGroup(l);w.add(g.outOfRange=h());w.add(g.inRange=h(null,m?"move":null,d.bind(this._dragHandle,this,"all",!1),d.bind(this._dragHandle,this,"all",!0)));c=c.textStyleModel.getTextRect("\u56fd");c=t(c.width,c.height);m&&(g.handleThumbs=[],g.handleLabels=[],g.handleLabelPoints=[],this._createHandle(w,0,e,c,f,l),this._createHandle(w,1,e,c,f,l));this._createIndicator(w,e,c,f);b.add(w)},_createHandle:function(b,c,g,e,f){var k=d.bind(this._dragHandle,this,c,!1),m=d.bind(this._dragHandle,this,c,!0),l=h(0===c?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]],"move",k,m);l.position[0]=g[0];b.add(l);b=this.visualMapModel.textStyleModel;k=new n.Text({draggable:!0,drift:k,ondragend:m,style:{x:0,y:0,text:"",textFont:b.getFont(),fill:b.getTextColor()}});this.group.add(k);e=["horizontal"===f?e/2:1.5*e,"horizontal"===f?0===c?-(1.5*e):1.5*e:0===c?-e/2:e/2];f=this._shapes;f.handleThumbs[c]=l;f.handleLabelPoints[c]=e;f.handleLabels[c]=k},_createIndicator:function(b,c,d,g){var e=h([[0,0]],"move");e.position[0]=c[0];e.attr({invisible:!0,silent:!0});b.add(e);b=this.visualMapModel.textStyleModel;b=new n.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:b.getFont(),fill:b.getTextColor()}});this.group.add(b);d=["horizontal"===g?d/2:9,0];g=this._shapes;g.indicator=e;g.indicatorLabel=b;g.indicatorLabelPoint=d},_dragHandle:function(b,c,d,g){this._useHandle&&(this._dragging=!c,c||(d=this._applyTransform([d,g],this._shapes.barGroup,!0),this._updateInterval(b,d[1]),this._updateView()),c===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),c?!this._hovering&&this._clearHoverLinkToSeries():e(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[b],!1))},_resetInterval:function(){var b=this.visualMapModel,c=this._dataInterval=b.getSelected(),d=b.getExtent(),b=[0,b.itemSize[1]];this._handleEnds=[x(c[0],d,b,!0),x(c[1],d,b,!0)]},_updateInterval:function(b,c){var d=this.visualMapModel,g=this._handleEnds;r(c||0,g,[0,d.itemSize[1]],"all"===b?"rigid":"push",b);var e=d.getExtent(),d=[0,d.itemSize[1]];this._dataInterval=[x(g[0],d,e,!0),x(g[1],d,e,!0)]},_updateView:function(b){var c=this.visualMapModel,d=c.getExtent(),g=this._shapes,c=[0,c.itemSize[1]];b=b?c:this._handleEnds;var e=this._createBarVisual(this._dataInterval,d,b,"inRange"),d=this._createBarVisual(d,d,c,"outOfRange");g.inRange.setStyle({fill:e.barColor,opacity:e.opacity}).setShape("points",e.barPoints);g.outOfRange.setStyle({fill:d.barColor,opacity:d.opacity}).setShape("points",d.barPoints);this._updateHandle(b,e)},_createBarVisual:function(b,c,d,g){g={forceState:g,convertOpacityToAlpha:!0};c=this._makeColorGradient(b,g);b=[this.getControllerVisual(b[0],"symbolSize",g),this.getControllerVisual(b[1],"symbolSize",g)];d=this._createBarPoints(d,b);return{barColor:new f(0,0,1,1,c),barPoints:d,handlesColor:[c[0].color,c[c.length-1].color]}},_makeColorGradient:function(b,c){var d=[],g=(b[1]-b[0])/100;d.push({color:this.getControllerVisual(b[0],"color",c),offset:0});for(var e=1;100>e;e++){var f=b[0]+g*e;if(f>b[1])break;d.push({color:this.getControllerVisual(f,"color",c),offset:e/100})}d.push({color:this.getControllerVisual(b[1],"color",c),offset:1});return d},_createBarPoints:function(b,c){var d=this.visualMapModel.itemSize;return[[d[0]-c[0],b[0]],[d[0],b[0]],[d[0],b[1]],[d[0]-c[1],b[1]]]},_createBarGroup:function(b){var c=this._orient,d=this.visualMapModel.get("inverse");return new n.Group("horizontal"!==c||d?"horizontal"===c&&d?{scale:"bottom"===b?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==c||d?{scale:"left"===b?[1,1]:[-1,1]}:{scale:"left"===b?[1,-1]:[-1,-1]}:{scale:"bottom"===b?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(b,c){if(this._useHandle){var d=this._shapes,g=this.visualMapModel,e=d.handleThumbs,f=d.handleLabels;v([0,1],function(k){var h=e[k];h.setStyle("fill",c.handlesColor[k]);h.position[1]=b[k];h=n.applyTransform(d.handleLabelPoints[k],n.getTransform(h,this.group));f[k].setStyle({x:h[0],y:h[1],text:g.formatValueText(this._dataInterval[k]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===k?"bottom":"top":"left",d.barGroup)})},this)}},_showIndicator:function(b,c,d,g){var e=this.visualMapModel,f=e.getExtent(),k=e.itemSize,h=x(b,f,[0,k[1]],!0),f=this._shapes,m=f.indicator;m&&(m.position[1]=h,m.attr("invisible",!1),m.setShape("points",l(!!d,g,h,k[1])),b=this.getControllerVisual(b,"color",{convertOpacityToAlpha:!0}),m.setStyle("fill",b),b=n.applyTransform(f.indicatorLabelPoint,n.getTransform(m,this.group)),g=f.indicatorLabel,g.attr("invisible",!1),f=this._applyTransform("left",f.barGroup),k=this._orient,g.setStyle({text:(d?d:"")+e.formatValueText(c),textVerticalAlign:"horizontal"===k?f:"middle",textAlign:"horizontal"===k?"center":f,x:b[0],y:b[1]}))},_enableHoverLinkToSeries:function(){var b=this;this._shapes.barGroup.on("mousemove",function(c){b._hovering=!0;if(!b._dragging){var d=b.visualMapModel.itemSize;c=b._applyTransform([c.offsetX,c.offsetY],b._shapes.barGroup,!0,!0);c[1]=g(t(0,c[1]),d[1]);b._doHoverLinkToSeries(c[1],0<=c[0]&&c[0]<=d[0])}}).on("mouseout",function(){b._hovering=!1;!b._dragging&&b._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var b=this.api.getZr();this.visualMapModel.option.hoverLink?(b.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),b.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(b,c){var d=this.visualMapModel,f=d.itemSize;if(d.option.hoverLink){var f=[0,f[1]],k=d.getExtent();b=g(t(f[0],b),f[1]);var h;h=6;var m=d.get("hoverLinkDataSize");m&&(h=x(m,k,f,!0)/2);var m=[b-h,b+h],l=x(b,f,k,!0),k=[x(m[0],f,k,!0),x(m[1],f,k,!0)];m[0]f[1]&&(k[1]=Infinity);c&&(-Infinity===k[0]?this._showIndicator(l,k[1],"\x3c ",h):Infinity===k[1]?this._showIndicator(l,k[0],"\x3e ",h):this._showIndicator(l,l,"\u2248 ",h));f=this._hoverLinkDataIndices;h=[];if(c||e(d))h=this._hoverLinkDataIndices=d.findTargetDataIndices(k);d=u.compressBatches(f,h);this._dispatchHighDown("downplay",d[0]);this._dispatchHighDown("highlight",d[1])}},_hoverLinkFromSeriesMouseOver:function(b){if((b=b.target)&&null!=b.dataIndex){var c=(b.dataModel||this.ecModel.getSeriesByIndex(b.seriesIndex)).getData(b.dataType),d=c.getDimension(this.visualMapModel.getDataDimension(c));b=c.get(d,b.dataIndex,!0);isNaN(b)||this._showIndicator(b,b)}},_hideIndicator:function(){var b=this._shapes;b.indicator&&b.indicator.attr("invisible",!0);b.indicatorLabel&&b.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var b=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",b);b.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var b=this.api.getZr();b.off("mouseover",this._hoverLinkFromSeriesMouseOver);b.off("mouseout",this._hideIndicator)},_applyTransform:function(b,c,g,e){c=n.getTransform(c,e?null:this.group);return n[d.isArray(b)?"applyTransform":"transformDirection"](b,c,g)},_dispatchHighDown:function(b,c){c&&c.length&&this.api.dispatchAction({type:b,batch:c})},dispose:function(){this._clearHoverLinkFromSeries();this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries();this._clearHoverLinkToSeries()}});c.exports=w},function(c,p,b){var h=b(4),l=b(43),e=b(6),n=b(21);p=b(1);var d=b(192);c.exports=p.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(b,c){this.ecModel=b;this.api=c},render:function(b,c,d,e){this.visualMapModel=b;!1===b.get("show")?this.group.removeAll():this.doRender.apply(this,arguments)},renderBackground:function(b){var c=this.visualMapModel,d=e.normalizeCssArray(c.get("padding")||0),k=b.getBoundingRect();b.add(new l.Rect({z2:-1,silent:!0,shape:{x:k.x-d[3],y:k.y-d[0],width:k.width+d[3]+d[1],height:k.height+d[0]+d[2]},style:{fill:c.get("backgroundColor"),stroke:c.get("borderColor"),lineWidth:c.get("borderWidth")}}))},getControllerVisual:function(b,c,e){function k(b){return g[b]}function l(b,c){g[b]=c}e=e||{};var n=e.forceState,p=this.visualMapModel,g={};"symbol"===c&&(g.symbol=p.get("itemSymbol"));if("color"===c){var t=p.get("contentColor");g.color=t}var w=p.controllerVisuals[n||p.getValueState(b)],n=d.prepareVisualTypes(w);h.each(n,function(g){var h=w[g];e.convertOpacityToAlpha&&"opacity"===g&&(g="colorAlpha",h=w.__alphaForOpacity);d.dependsOn(g,c)&&h&&h.applyVisual(b,k,l)});return g[c]},positionGroup:function(b){var c=this.api;n.positionGroup(b,this.visualMapModel.getBoxLayoutParams(),{width:c.getWidth(),height:c.getHeight()})},doRender:h.noop})},function(c,p,b){var h=b(21);c.exports={getItemAlign:function(b,c,n){b=b.option;var d=b.align;if(null!=d&&"auto"!==d)return d;c={width:c.getWidth(),height:c.getHeight()};for(var m="horizontal"===b.orient?1:0,r=[["left","right","width"],["top","bottom","height"]],d=r[m],f=[0,null,10],k={},u=0;3>u;u++)k[r[1-m][u]]=f[u],k[d[u]]=2===u?n[0]:b[d[u]];n=[["x","width",3],["y","height",0]][m];b=h.getLayoutRect(k,c,b.padding);return d[(b.margin[n[2]]||0)+b[n[0]]+.5*b[n[1]]<.5*c[n[1]]?0:1]}}},function(c,p,b){b(1).registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(b,c){c.eachComponent({mainType:"visualMap",query:b},function(c){c.setSelected(b.selected)})})},function(c,p,b){b(1).registerPreprocessor(b(331));b(332);b(333);b(342);b(343);b(340)},function(c,p,b){function h(b,c){var d=b.inverse;("vertical"===b.orient?!d:d)&&c.reverse()}function l(b){function c(b,d,g){g=g||0;return b.interval[g]d.close[g]||c(b,d,1))}b.sort(function(b,d){return c(b,d)?-1:1});for(var d=-Infinity,e=0;eg;g++)h[g]l&&d({interval:[l,b[0]],valueState:"outOfRange"}),d({interval:b.slice(),valueState:this.getValueState((b[0]+b[1])/2)}),l=b[1]},this);return h}}),m={splitNumber:function(){var b=this.option,c=this._pieceList,d=b.precision,h=this.getExtent(),m=b.splitNumber,m=Math.max(parseInt(m,10),1);b.splitNumber=m;for(var n=(h[1]-h[0])/m;+n.toFixed(d)!==n&&5>d;)d++;b.precision=d;n=+n.toFixed(d);b=0;for(d=h[0];bp;p++){for(var D=[["gte","gt","min"],["lte","lt","max"]][p],A=0;3>A&&null==m[p];A++)m[p]=b[D[A]],g[p]=l[A],r[p]=2===A;null==m[p]&&(m[p]=w[p])}r[0]&&Infinity===m[1]&&(g[0]=0);r[1]&&-Infinity===m[0]&&(g[1]=0);m[0]>m[1]&&console.warn("Piece "+d+"is illegal: "+m+" lower bound should not greater then uppper bound.");m[0]===m[1]&&g[0]&&g[1]&&(h.value=m[0])}h.visual=n.retrieveVisuals(b);c.push(h)},this);h(b,c);l(c);e.each(c,function(b){var c=b.close,c=[["\x3c","\u2264"][c[1]],["\x3e","\u2265"][c[0]]];b.text=b.text||this.formatValueText(null!=b.value?b.value:b.interval,!1,c)},this)}};c.exports=d},function(c,p,b){p=b(338);var h=b(4),l=b(43),e=b(106),n=b(21),d=b(339);b=p.extend({type:"visualMap.piecewise",doRender:function(){var b=this.group;b.removeAll();var c=this.visualMapModel,d=c.get("textGap"),e=c.textStyleModel,u=e.getFont(),p=e.getTextColor(),v=this._getItemAlign(),g=c.itemSize,e=this._getViewData(),t=!e.endsText,w=!t;w&&this._renderEndsText(b,e.endsText[0],g);h.each(e.viewPieceList,function(e){var k=e.piece,w=new l.Group;w.onclick=h.bind(this._onItemClick,this,k);this._enableHoverLink(w,e.indexInModelPieceList);e=c.getRepresentValue(k);this._createItemSymbol(w,e,[0,0,g[0],g[1]]);t&&(e=this.visualMapModel.getValueState(e),w.add(new l.Text({style:{x:"right"===v?-d:g[0]+d,y:g[1]/2,text:k.text,textVerticalAlign:"middle",textAlign:v,textFont:u,fill:p,opacity:"outOfRange"===e?.5:1}})));b.add(w)},this);w&&this._renderEndsText(b,e.endsText[1],g);n.box(c.get("orient"),b,c.get("itemGap"));this.renderBackground(b);this.positionGroup(b)},_enableHoverLink:function(b,c){function d(b){var e=this.visualMapModel;e.option.hoverLink&&this.api.dispatchAction({type:b,batch:e.findTargetDataIndices(c)})}b.on("mouseover",h.bind(d,this,"highlight")).on("mouseout",h.bind(d,this,"downplay"))},_getItemAlign:function(){var b=this.visualMapModel,c=b.option;if("vertical"===c.orient)return d.getItemAlign(b,this.api,b.itemSize);(b=c.align)&&"auto"!==b||(b="left");return b},_renderEndsText:function(b,c,d){if(c){var e=new l.Group,h=this.visualMapModel.textStyleModel;e.add(new l.Text({style:{x:d[0]/2,y:d[1]/2,textVerticalAlign:"middle",textAlign:"center",text:c,textFont:h.getFont(),fill:h.getTextColor()}}));b.add(e)}},_getViewData:function(){var b=this.visualMapModel,c=h.map(b.getPieceList(),function(b,c){return{piece:b,indexInModelPieceList:c}}),d=b.get("text"),e=b.get("orient"),b=b.get("inverse");("horizontal"===e?b:!b)?c.reverse():d&&(d=d.slice().reverse());return{viewPieceList:c,endsText:d}},_createItemSymbol:function(b,c,d){b.add(e.createSymbol(this.getControllerVisual(c,"symbol"),d[0],d[1],d[2],d[3],this.getControllerVisual(c,"color")))},_onItemClick:function(b){var c=this.visualMapModel,d=c.option,e=h.clone(d.selected),l=c.getSelectedMapKey(b);"single"===d.selectedMode?(e[l]=!0,h.each(e,function(b,c){e[c]=c===l})):e[l]=!e[l];this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}});c.exports=b},function(c,p,b){b(345);b(347);b(1).registerPreprocessor(function(b){b.markPoint=b.markPoint||{}})},function(c,p,b){c.exports=b(346).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2}}}})},function(c,p,b){function h(b){l.defaultEmphasis(b.label,l.LABEL_OPTIONS)}var l=b(5),e=b(4),n=b(2);p=b(6);var d=p.addCommas,m=p.encodeHTML;b=b(1).extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(b,c,d,e){if("marker"===this.type)throw Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(b,d);this.mergeOption(b,d,e.createdBySelf,!0)},ifEnableAnimation:function(){if(n.node)return!1;var b=this.__hostSeries;return this.getShallow("animation")&&b&&b.ifEnableAnimation()},mergeOption:function(b,c,d,m){var l=this.constructor,n=this.mainType+"Model";d||c.eachSeries(function(b){var d=b.get(this.mainType),k=b[n];d&&d.data?(k?k.mergeOption(d,c,!0):(m&&h(d),e.each(d.data,function(b){b instanceof Array?(h(b[0]),h(b[1])):h(b)}),k=new l(d,this,c,{mainType:this.mainType,seriesIndex:b.seriesIndex,name:b.name,createdBySelf:!0}),k.__hostSeries=b),b[n]=k):b[n]=null},this)},formatTooltip:function(b){var c=this.getData(),h=this.getRawValue(b),l=e.isArray(h)?e.map(h,d).join(", "):d(h);b=c.getName(b);c=this.name;if(null!=h||b)c+="\x3cbr /\x3e";b&&(c+=m(b),null!=h&&(c+=" : "));null!=h&&(c+=l);return c},getData:function(){return this._data},setData:function(b){this._data=b}});e.mixin(b,l.dataFormatMixin);c.exports=b},function(c,p,b){function h(b,c,e){var h=c.coordinateSystem;b.each(function(m){var g=b.getItemModel(m),l,w=d.parsePercent(g.get("x"),e.getWidth()),g=d.parsePercent(g.get("y"),e.getHeight());if(!isNaN(w)&&!isNaN(g))l=[w,g];else if(c.getMarkerPosition)l=c.getMarkerPosition(b.getValues(b.dimensions,m));else if(h){l=b.get(h.dimensions[0],m);var n=b.get(h.dimensions[1],m);l=h.dataToPoint([l,n])}isNaN(w)||(l[0]=w);isNaN(g)||(l[1]=g);b.setItemLayout(m,l)})}function l(b,c,d){var e;e=b?n.map(b&&b.dimensions,function(b){var d=c.getData().getDimensionInfo(c.coordDimToDataDim(b)[0])||{};d.name=b;return d}):[{name:"value",type:"float"}];e=new m(e,d);d=n.map(d.get("data"),n.curry(r.dataTransform,c));b&&(d=n.filter(d,n.curry(r.dataFilter,b)));e.initData(d,null,b?r.dimValueGetter:function(b){return b.value});return e}var e=b(104),n=b(4),d=b(7),m=b(97),r=b(348);b(349).extend({type:"markPoint",updateLayout:function(b,c,d){c.eachSeries(function(b){var c=b.markPointModel;c&&(h(c.getData(),b,d),this.markerGroupMap[b.name].updateLayout(c))},this)},renderSeries:function(b,c,d,m){d=b.coordinateSystem;var n=b.name,g=b.getData(),t=this.markerGroupMap,w=t[n];w||(w=t[n]=new e);var r=l(d,b,c);c.setData(r);h(c.getData(),b,m);r.each(function(b){var d=r.getItemModel(b),e=d.getShallow("symbolSize");"function"===typeof e&&(e=e(c.getRawValue(b),c.getDataParams(b)));r.setItemVisual(b,{symbolSize:e,color:d.get("itemStyle.normal.color")||g.getVisual("color"),symbol:d.getShallow("symbol")})});w.updateData(r);this.group.add(w.group);r.eachItemGraphicEl(function(b){b.traverse(function(b){b.dataModel=c})});w.__keep=!0;w.group.silent=c.get("silent")||b.get("silent")}})},function(c,p,b){function h(b,c,d,h,m,g){var l=[];b=r(c,h,b);b=c.indexOfNearest(h,b,!0);l[m]=c.get(d,b,!0);l[g]=c.get(h,b,!0);d=-1;do d=Math.max(e.getPrecision(c.get(h,b)),d),c=c.stackedOn;while(c);h=d;0<=h&&(l[g]=+l[g].toFixed(h));return l}var l=b(4),e=b(7),n=l.indexOf;p=l.curry;var d={min:p(h,"min"),max:p(h,"max"),average:p(h,"average")},m=function(b,c,d,e){var h={};null!=b.valueIndex||null!=b.valueDim?(h.valueDataDim=null!=b.valueIndex?c.getDimension(b.valueIndex):b.valueDim,h.valueAxis=d.getAxis(e.dataDimToCoordDim(h.valueDataDim)),h.baseAxis=d.getOtherAxis(h.valueAxis),h.baseDataDim=e.coordDimToDataDim(h.baseAxis.dim)[0]):(h.baseAxis=e.getBaseAxis(),h.valueAxis=d.getOtherAxis(h.baseAxis),h.baseDataDim=e.coordDimToDataDim(h.baseAxis.dim)[0],h.valueDataDim=e.coordDimToDataDim(h.valueAxis.dim)[0]);return h},r=function(b,c,d){if("average"===d){var e=0,h=0;b.each(c,function(b,c){isNaN(b)||(e+=b,h++)},!0);return e/h}return b.getDataExtent(c,!0)["max"===d?1:0]};c.exports={dataTransform:function(b,c){var e=b.getData(),h=b.coordinateSystem,p;if(p=c)p=c,p=!(!isNaN(parseFloat(p.x))&&!isNaN(parseFloat(p.y)));if(p&&!l.isArray(c.coord)&&h)if(p=h.dimensions,h=m(c,e,h,b),c=l.clone(c),c.type&&d[c.type]&&h.baseAxis&&h.valueAxis){var g=n(p,h.baseAxis.dim);p=n(p,h.valueAxis.dim);c.coord=d[c.type](e,h.baseDataDim,h.valueDataDim,g,p);c.value=c.coord[p]}else{h=[null!=c.xAxis?c.xAxis:c.radiusAxis,null!=c.yAxis?c.yAxis:c.angleAxis];for(g=0;2>g;g++)if(d[h[g]]){var t=b.coordDimToDataDim(p[g])[0];h[g]=r(e,t,h[g])}c.coord=h}return c},dataFilter:function(b,c){var d;if(d=b&&b.containData&&c.coord)d=!(!isNaN(parseFloat(c.x))||!isNaN(parseFloat(c.y)));return d?b.containData(c.coord):!0},dimValueGetter:function(b,c,d,e){return 2>e?b.coord&&b.coord[e]:b.value},getAxisInfo:m,numCalculate:r}},function(c,p,b){c.exports=b(1).extendComponentView({type:"marker",init:function(){this.markerGroupMap={}},render:function(b,c,e){b=this.markerGroupMap;for(var n in b)b[n].__keep=!1;var d=this.type+"Model";c.eachSeries(function(b){var h=b[d];h&&this.renderSeries(b,h,c,e)},this);for(n in b)b[n].__keep||this.group.remove(b[n].group)},renderSeries:function(){}})},function(c,p,b){b(351);b(352);b(1).registerPreprocessor(function(b){b.markLine=b.markLine||{}})},function(c,p,b){c.exports=b(346).extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}})},function(c,p,b){function h(b){return!isNaN(b)&&!isFinite(b)}function l(b,c,d,e){var f=1-b,k=e.dimensions[b];return h(c[f])&&h(d[f])&&c[b]===d[b]&&e.getAxis(k).containData(c[b])}function e(b,c){if("cartesian2d"===b.type){var d=c[0].coord,e=c[1].coord;if(d&&e&&(l(1,d,e,b)||l(0,d,e,b)))return!0}return k.dataFilter(b,c[0])&&k.dataFilter(b,c[1])}function n(b,c,d,e,k){var m=e.coordinateSystem,l=b.getItemModel(c),n=f.parsePercent(l.get("x"),k.getWidth());k=f.parsePercent(l.get("y"),k.getHeight());if(isNaN(n)||isNaN(k)){e.getMarkerPosition?l=e.getMarkerPosition(b.getValues(b.dimensions,c)):(e=m.dimensions,l=b.get(e[0],c),e=b.get(e[1],c),l=m.dataToPoint([l,e]));if("cartesian2d"===m.type){var r=m.getAxis("x"),p=m.getAxis("y");e=m.dimensions;h(b.get(e[0],c))?l[0]=r.toGlobalCoord(r.getExtent()[d?0:1]):h(b.get(e[1],c))&&(l[1]=p.toGlobalCoord(p.getExtent()[d?0:1]))}isNaN(n)||(l[0]=n);isNaN(k)||(l[1]=k)}else l=[n,k];b.setItemLayout(c,l)}function d(b,c,d){var f;f=b?m.map(b&&b.dimensions,function(b){var d=c.getData().getDimensionInfo(c.coordDimToDataDim(b)[0])||{};d.name=b;return d}):[{name:"value",type:"float"}];var h=new r(f,d);f=new r(f,d);var l=new r([],d);d=m.map(d.get("data"),m.curry(x,c,b,d));b&&(d=m.filter(d,m.curry(e,b)));b=b?k.dimValueGetter:function(b){return b.value};h.initData(m.map(d,function(b){return b[0]}),null,b);f.initData(m.map(d,function(b){return b[1]}),null,b);l.initData(m.map(d,function(b){return b[2]}));l.hasItemOption=!0;return{from:h,to:f,line:l}}var m=b(4),r=b(97),f=b(7),k=b(348),u=b(199),x=function(b,c,d,e){var f=b.getData(),h=e.type;if(!m.isArray(e)&&("min"===h||"max"===h||"average"===h||null!=e.xAxis||null!=e.yAxis)){var l;null!=e.yAxis||null!=e.xAxis?(l=null!=e.yAxis?"y":"x",c.getAxis(l),c=m.retrieve(e.yAxis,e.xAxis)):(l=k.getAxisInfo(e,f,c,b).valueDataDim,c=k.numCalculate(f,l,h));l="x"===l?0:1;var n=1-l,f=m.clone(e),r={};f.type=null;f.coord=[];r.coord=[];f.coord[n]=-Infinity;r.coord[n]=Infinity;d=d.get("precision");0<=d&&(c=+c.toFixed(d));f.coord[l]=r.coord[l]=c;e=[f,r,{type:h,valueIndex:e.valueIndex,value:c}]}e=[k.dataTransform(b,e[0]),k.dataTransform(b,e[1]),m.extend({},e[2])];e[2].type=e[2].type||"";m.merge(e[2],e[0]);m.merge(e[2],e[1]);return e};b(349).extend({type:"markLine",updateLayout:function(b,c,d){c.eachSeries(function(b){var c=b.markLineModel;if(c){var g=c.getData(),e=c.__from,f=c.__to;e.each(function(c){n(e,c,!0,b,d);n(f,c,!1,b,d)});g.each(function(b){g.setItemLayout(b,[e.getItemLayout(b),f.getItemLayout(b)])});this.markerGroupMap[b.name].updateLayout()}},this)},renderSeries:function(b,c,e,f){function h(c,d,g){var e=c.getItemModel(d);n(c,d,g,b,f);c.setItemVisual(d,{symbolSize:e.get("symbolSize")||q[g?0:1],symbol:e.get("symbol",!0)||G[g?0:1],color:e.get("itemStyle.normal.color")||r.getVisual("color")})}var k=b.coordinateSystem,l=b.name,r=b.getData(),p=this.markerGroupMap;(e=p[l])||(e=p[l]=new u);this.group.add(e.group);var k=d(k,b,c),x=k.from,N=k.to,E=k.line;c.__from=x;c.__to=N;c.setData(E);var G=c.get("symbol"),q=c.get("symbolSize");m.isArray(G)||(G=[G,G]);"number"===typeof q&&(q=[q,q]);k.from.each(function(b){h(x,b,!0);h(N,b,!1)});E.each(function(b){var c=E.getItemModel(b).get("lineStyle.normal.color");E.setItemVisual(b,{color:c||x.getItemVisual(b,"color")});E.setItemLayout(b,[x.getItemLayout(b),N.getItemLayout(b)]);E.setItemVisual(b,{fromSymbolSize:x.getItemVisual(b,"symbolSize"),fromSymbol:x.getItemVisual(b,"symbol"),toSymbolSize:N.getItemVisual(b,"symbolSize"),toSymbol:N.getItemVisual(b,"symbol")})});e.updateData(E);k.line.eachItemGraphicEl(function(b,d){b.traverse(function(b){b.dataModel=c})});e.__keep=!0;e.group.silent=c.get("silent")||b.get("silent")}})},function(c,p,b){b(354);b(355);b(1).registerPreprocessor(function(b){b.markArea=b.markArea||{}})},function(c,p,b){c.exports=b(346).extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{normal:{show:!0,position:"top"},emphasis:{show:!0,position:"top"}},itemStyle:{normal:{borderWidth:0}}}})},function(c,p,b){function h(b){return!isNaN(b)&&!isFinite(b)}function l(b,c){var d=c.coord[0],e=c.coord[1];if("cartesian2d"===b.type){var f;if(f=d&&e)(f=h(d[0])&&h(e[0]))||(f=h(d[1])&&h(e[1]));if(f)return!0}return u.dataFilter(b,{coord:d,x:c.x0,y:c.y0})||u.dataFilter(b,{coord:e,x:c.x1,y:c.y1})}function e(b,c,d,e,f){var k=e.coordinateSystem,m=b.getItemModel(c),l=r.parsePercent(m.get(d[0]),f.getWidth());f=r.parsePercent(m.get(d[1]),f.getHeight());if(isNaN(l)||isNaN(f)){if(e.getMarkerPosition)e=e.getMarkerPosition(b.getValues(d,c));else{var m=b.get(d[0],c),n=b.get(d[1],c);e=k.dataToPoint([m,n],!0)}if("cartesian2d"===k.type){var p=k.getAxis("x"),k=k.getAxis("y"),m=b.get(d[0],c),n=b.get(d[1],c);h(m)?e[0]=p.toGlobalCoord(p.getExtent()["x0"===d[0]?0:1]):h(n)&&(e[1]=k.toGlobalCoord(k.getExtent()["y0"===d[1]?0:1]))}isNaN(l)||(e[0]=l);isNaN(f)||(e[1]=f)}else e=[l,f];return e}function n(b,c,e){var f,h;h=["x0","y0","x1","y1"];b?(f=d.map(b&&b.dimensions,function(b){var d=c.getData().getDimensionInfo(c.coordDimToDataDim(b)[0])||{};d.name=b;return d}),h=new m(d.map(h,function(b,c){return{name:b,type:f[c%2].type}}),e)):(f=[{name:"value",type:"float"}],h=new m(f,e));e=d.map(e.get("data"),d.curry(x,c,b,e));b&&(e=d.filter(e,d.curry(l,b)));h.initData(e,null,b?function(b,c,d,g){return b.coord[Math.floor(g/2)][g%2]}:function(b){return b.value});h.hasItemOption=!0;return h}var d=b(4),m=b(97),r=b(7),f=b(43),k=b(39),u=b(348),x=function(b,c,e,f){c=u.dataTransform(b,f[0]);b=u.dataTransform(b,f[1]);f=d.retrieve;e=c.coord;var h=b.coord;e[0]=f(e[0],-Infinity);e[1]=f(e[1],-Infinity);h[0]=f(h[0],Infinity);h[1]=f(h[1],Infinity);f=d.mergeAll([{},c,b]);f.coord=[c.coord,b.coord];f.x0=c.x;f.y0=c.y;f.x1=b.x;f.y1=b.y;return f},v=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];b(349).extend({type:"markArea",updateLayout:function(b,c,f){c.eachSeries(function(b){var c=b.markAreaModel;if(c){var g=c.getData();g.each(function(c){var h=d.map(v,function(d){return e(g,c,d,b,f)});g.setItemLayout(c,h);g.getItemGraphicEl(c).setShape("points",h)})}},this)},renderSeries:function(b,c,h,m){h=b.coordinateSystem;var l=b.name,r=b.getData(),p=this.markerGroupMap,u=p[l];u||(u=p[l]={group:new f.Group});this.group.add(u.group);u.__keep=!0;var x=n(h,b,c);c.setData(x);x.each(function(c){x.setItemLayout(c,d.map(v,function(d){return e(x,c,d,b,m)}));x.setItemVisual(c,{color:r.getVisual("color")})});x.diff(u.__data).add(function(b){var c=new f.Polygon({shape:{points:x.getItemLayout(b)}});x.setItemGraphicEl(b,c);u.group.add(c)}).update(function(b,d){var g=u.__data.getItemGraphicEl(d);f.updateProps(g,{shape:{points:x.getItemLayout(b)}},c,b);u.group.add(g);x.setItemGraphicEl(b,g)}).remove(function(b){b=u.__data.getItemGraphicEl(b);u.group.remove(b)}).execute();x.eachItemGraphicEl(function(b,g){var e=x.getItemModel(g),h=e.getModel("label.normal"),m=e.getModel("label.emphasis"),l=x.getItemVisual(g,"color");b.useStyle(d.defaults(e.getModel("itemStyle.normal").getItemStyle(),{fill:k.modifyAlpha(l,.4),stroke:l}));b.hoverStyle=e.getModel("itemStyle.normal").getItemStyle();e=x.getName(g)||"";l=l||b.style.fill;f.setText(b.style,h,l);b.style.text=d.retrieve(c.getFormattedLabel(g,"normal"),e);f.setText(b.hoverStyle,m,l);b.hoverStyle.text=d.retrieve(c.getFormattedLabel(g,"emphasis"),e);f.setHoverStyle(b,{});b.dataModel=c});u.__data=x;u.group.silent=c.get("silent")||b.get("silent")}})},function(c,p,b){b(1).registerPreprocessor(b(357));b(358);b(359);b(360);b(362)},function(c,p,b){function h(b){var c=b.type,h={number:"value",time:"time"};h[c]&&(b.axisType=h[c],delete b.type);l(b);b.hasOwnProperty("controlPosition")&&(c=b.controlStyle||(b.controlStyle={}),c.hasOwnProperty("position")||(c.position=b.controlPosition),"none"!==c.position||c.hasOwnProperty("show")||(c.show=!1,delete c.position),delete b.controlPosition);e.each(b.data||[],function(b){e.isObject(b)&&!e.isArray(b)&&(!b.hasOwnProperty("value")&&b.hasOwnProperty("name")&&(b.value=b.name),l(b))})}function l(b){var c=b.itemStyle||(b.itemStyle={}),c=c.emphasis||(c.emphasis={});b=b.label||b.label||{};var h=b.normal||(b.normal={}),l={normal:1,emphasis:1};e.each(b,function(b,c){l[c]||h.hasOwnProperty(c)||(h[c]=b)});c.label&&!b.hasOwnProperty("emphasis")&&(b.emphasis=c.label,delete c.label)}var e=b(4);c.exports=function(b){b=b&&b.timeline;e.isArray(b)||(b=b?[b]:[]);e.each(b,function(b){b&&h(b)})}},function(c,p,b){b(19).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(c,p,b){c=b(1);c.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(b,c){var e=c.getComponent("timeline");e&&null!=b.currentIndex&&(e.setCurrentIndex(b.currentIndex),!e.get("loop",!0)&&e.isIndexMax()&&e.setPlayState(!1));c.resetOption("timeline")});c.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(b,c){var e=c.getComponent("timeline");e&&null!=b.playState&&e.setPlayState(b.playState)})},function(c,p,b){var h=b(361);p=b(4);b=b(5);h=h.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#304654"}},emphasis:{show:!0,textStyle:{color:"#c23531"}}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});p.mixin(h,b.dataFormatMixin);c.exports=h},function(c,p,b){p=b(19);var h=b(97),l=b(4),e=b(5),n=p.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2E3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(b,c,e){this.mergeDefaultAndTheme(b,e);this._initData()},mergeOption:function(b){n.superApply(this,"mergeOption",arguments);this._initData()},setCurrentIndex:function(b){null==b&&(b=this.option.currentIndex);var c=this._data.count();this.option.loop?b=(b%c+c)%c:(b>=c&&(b=c-1),0>b&&(b=0));this.option.currentIndex=b},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(b){this.option.autoPlay=!!b},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var b=this.option,c=b.data||[],b=b.axisType,n=this._names=[];if("category"===b){var f=[];l.each(c,function(b,c){var d=e.getDataItemValue(b),h;l.isObject(b)?(h=l.clone(b),h.value=c):h=c;f.push(h);l.isString(d)||null!=d&&!isNaN(d)||(d="");n.push(d+"")});c=f}(this._data=new h([{name:"value",type:{category:"ordinal",time:"time"}[b]||"number"}],this)).initData(c,n)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});c.exports=n},function(c,p,b){function h(b,c,d,g,f,h){var k=b.get("symbol"),m=c.get("color");b=b.get("symbolSize");var l=b/2;c=c.getItemStyle(["color","symbol","symbolSize"]);f?(f.setStyle(c),f.setColor(m),d.add(f),h&&h.onUpdate(f)):(f=r.createSymbol(k,-l,-l,b,b,m),d.add(f),h&&h.onCreate(f));g=e.merge({rectHover:!0,style:c,z2:100},g,!0);f.attr(g);return f}function l(b,c,d,g,e){if(!b.dragging){var f=g.getModel("checkpointStyle");c=d.dataToCoord(g.getData().get(["value"],c));e||!f.get("animation",!0)?b.attr({position:[c,0]}):(b.stopAnimation(!0),b.animateTo({position:[c,0]},f.get("animationDuration",!0),f.get("animationEasing",!0)))}}var e=b(4),n=b(43),d=b(21);p=b(363);var m=b(364),r=b(106),f=b(114),k=b(9),u=b(11),x=b(7),v=b(6).encodeHTML,g=e.bind,t=e.each,w=Math.PI;c.exports=p.extend({type:"timeline.slider",init:function(b,c){this.api=c},render:function(b,c,d,g){this.model=b;this.api=d;this.ecModel=c;this.group.removeAll();if(b.get("show",!0)){var e=this._layout(b,d),f=this._createGroup("mainGroup");c=this._createGroup("labelGroup");var h=this._axis=this._createAxis(e,b);b.formatTooltip=function(b){return v(h.scale.getLabel(b))};t(["AxisLine","AxisTick","Control","CurrentPointer"],function(c){this["_render"+c](e,f,h,b)},this);this._renderAxisLabel(e,c,h,b);this._position(e,b)}this._doPlayStop()},remove:function(){this._clearTimer();this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(b,c){var g=b.get("label.normal.position"),e=b.get("orient"),f;f=d.getLayoutRect(b.getBoxLayoutParams(),{width:c.getWidth(),height:c.getHeight()},b.get("padding"));null==g||"auto"===g?g="horizontal"===e?f.y+f.height/2g[1]&&(d=g[1]);dh.getHeight()&&(d.textPosition="top",e=!0);b=e?-5-c.height:y+8;g+c.width/2>h.getWidth()?(d.textPosition=["100%",b],d.textAlign="right"):0>g-c.width/2&&(d.textPosition=[0,b],d.textAlign="left")}})}},updateView:function(b,c,d,f){e.each(this._features,function(b){b.updateView&&b.updateView(b.model,c,d,f)})},updateLayout:function(b,c,d,f){e.each(this._features,function(b){b.updateLayout&&b.updateLayout(b.model,c,d,f)})},remove:function(b,c){e.each(this._features,function(d){d.remove&&d.remove(b,c)});this.group.removeAll()},dispose:function(b,c){e.each(this._features,function(d){d.dispose&&d.dispose(b,c)})}})}).call(p,b(368))},function(c,p){function b(){m=!1;r.length?d=r.concat(d):f=-1;d.length&&h()}function h(){if(!m){var c=setTimeout(b);m=!0;for(var e=d.length;e;){r=d;for(d=[];++ff&&(f=b.queryComponents({mainType:"dataZoom",subType:"select",id:h})[0])&&(f=f.getPercentRange(),d[0][h]={dataZoomId:h,start:f[0],end:f[1]})});d.push(c)},pop:function(b){var c=h(b);b=c[c.length-1];1f&&(f+=360);1E-6>f&&(f=0)}else e="gradientradial",r=[g.x*n,g.y*w],q=d.transform,m=d.scale,l=n,h=[(r[0]-t.x)/l,(r[1]-t.y)/w],q&&z(r,r,q),l/=21600*m[0],w/=21600*m[1],l=y(l,w),m=0/l,l=2*g.r/l-m;r=g.colorStops.slice();r.sort(function(b,c){return b.offset-c.offset});t=r.length;q=[];g=[];for(w=0;wMath.abs(ma-G)&&(.01Math.abs(Ea-X)?M=qa&&maE?M-.0125:M+.0125:G=qa&&EaX?G+.0125:G-.0125);p.push(La,x(21600*((E-ja)*I+O)-10800),",",x(21600*((X-oa)*K+J)-10800),",",x(21600*((E+ja)*I+O)-10800),",",x(21600*((X+oa)*K+J)-10800),",",x(21600*(ma*I+O)-10800),",",x(21600*(Ea*K+J)-10800),",",x(21600*(G*I+O)-10800),",",x(21600*(M*K+J)-10800));O=G;J=M;break;case e.R:G=L[0];M=L[1];G[0]=h[N++];G[1]=h[N++];M[0]=G[0]+h[N++];M[1]=G[1]+h[N++];k&&(z(G,G,k),z(M,M,k));G[0]=x(21600*G[0]-10800);M[0]=x(21600*M[0]-10800);G[1]=x(21600*G[1]-10800);M[1]=x(21600*M[1]-10800);p.push(" m ",G[0],",",G[1]," l ",M[0],",",G[1]," l ",M[0],",",M[1]," l ",G[0],",",M[1]);break;case e.Z:p.push(" x ")}if(0h&&(E+=".Alpha(opacity\x3d"+x(100*h)+") ");I.filter=E+("progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d"+d+", SizingMethod\x3dscale)");f.style.zIndex=F(this.zlevel,this.z,this.z2);A(b,f);c.text&&this.drawRectText(b,this.getBoundingRect())}};r.prototype.onRemove=function(b){B(b,this._vmlEl);this._imageEl=this._cropEl=this._vmlEl=null;this.removeRectText(b)};r.prototype.onAdd=function(b){A(b,this._vmlEl);this.appendRectText(b)};var I={},K=0,O=document.createElement("div"),M;d.measureText=function(b,c){var d=u.doc;M||(M=d.createElement("div"),M.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",u.doc.body.appendChild(M));try{M.style.font=c}catch(g){}M.innerHTML="";M.appendChild(d.createTextNode(b));return{width:M.offsetWidth}};var J=new l;b=function(b,c,g,e){var f=this.style,h=f.text;if(h){var k,m=f.textAlign,l,t=f.textFont;k=I[t];if(!k){100b.length?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):b[0].addRule(".zrvml","behavior:url(#default#VML)")}},createNode:h}}},function(c,p,b){function h(b,c){n.initVML();this.root=b;this.storage=c;var d=document.createElement("div"),e=document.createElement("div");d.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;";e.style.cssText="position:absolute;left:0;top:0;";b.appendChild(d);this._vmlRoot=e;this._vmlViewport=d;this.resize();var h=c.delFromMap,l=c.addToMap;c.delFromMap=function(b){var d=c.get(b);h.call(c,b);d&&d.onRemove&&d.onRemove(e)};c.addToMap=function(b){b.onAdd&&b.onAdd(e);l.call(c,b)};this._firstPaint=!0}function l(b){return function(){e('In IE8.0 VML mode painter not support method "'+b+'"')}}var e=b(40),n=b(380);h.prototype={constructor:h,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var b=this.storage.getDisplayList(!0,!0);this._paintList(b)},_paintList:function(b){for(var c=this._vmlRoot,d=0;dA&&(A=-50);x(this);return n.each(function(){var d=c(this);l(d);var g=this,e=g.id,f=-A+"%",k=100+2*A+"%",k={position:"absolute",top:f,left:f,display:"block",width:k,height:k,margin:0,padding:0,background:"#fff",border:0,opacity:0},f=m?{position:"absolute",visibility:"hidden"}:A?k:{position:"absolute",opacity:0},n="checkbox"==g.type?v.checkboxClass||"icheckbox":v.radioClass||"iradio",r=c('label[for\x3d"'+e+'"]').add(d.closest("label")),u=!!v.aria,x="iCheck-"+Math.random().toString(36).substr(2,6),K='\x3cdiv class\x3d"'+n+'" '+(u?'role\x3d"'+g.type+'" ':"");u&&r.each(function(){K+='aria-labelledby\x3d"';this.id?K+=this.id:(this.id=x,K+=x);K+='"'});K=d.wrap(K+"/\x3e").trigger("ifCreated").parent().append(v.insert);k=c('\x3cins class\x3d"iCheck-helper"/\x3e').css(k).appendTo(K);d.data("iCheck",{o:v,s:d.attr("style")}).css(f);v.inheritClass&&K.addClass(g.className||"");v.inheritID&&e&&K.attr("id","iCheck-"+e);"static"==K.css("position")&&K.css("position","relative");p(d,!0,"update");if(r.length)r.on("click.i mouseover.i mouseout.i touchbegin.i touchend.i",function(b){var e=b.type,f=c(this);if(!g.disabled){if("click"==e){if(c(b.target).is("a"))return;p(d,!1,!0)}else z&&(/ut|nd/.test(e)?(K.removeClass(t),f.removeClass(D)):(K.addClass(t),f.addClass(D)));if(m)b.stopPropagation();else return!1}});d.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(c){var e=c.type;c=c.keyCode;if("click"==e)return!1;if("keydown"==e&&32==c)return"radio"==g.type&&g.checked||(g.checked?h(d,"checked"):b(d,"checked")),!1;if("keyup"==e&&"radio"==g.type)!g.checked&&b(d,"checked");else if(/us|ur/.test(e))K["blur"==e?"removeClass":"addClass"](w)});k.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(b){var c=b.type,e=/wn|up/.test(c)?y:t;if(!g.disabled){if("click"==c)p(d,!1,!0);else if(/wn|er|in/.test(c)?K.addClass(e):K.removeClass(e+" "+y),r.length&&z&&e==t)r[/ut|nd/.test(c)?"removeClass":"addClass"](D);if(m)b.stopPropagation();else return!1}})})}})(window.jQuery||window.Zepto);(function(c,p,b,h){var l=b("html"),e=b(c),n=b(p),d=b.fancybox=function(){d.open.apply(this,arguments)},m=navigator.userAgent.match(/msie/i),r=null,f=p.createTouch!==h,k=function(c){return c&&c.hasOwnProperty&&c instanceof b},u=function(c){return c&&"string"===b.type(c)},x=function(b){return u(b)&&0=e.index?"next":"prev"],d.router=g||"jumpto",e.loop&&(0>b&&(b=e.group.length+b%e.group.length),b%=e.group.length),e.group[b]!==h&&(d.cancel(),d._start(b)))},reposition:function(c,g){var e=d.current,f=e?e.wrap:null,h;f&&(h=d._getPosition(g),c&&"scroll"===c.type?(delete h.position,f.stop(!0,!0).animate(h,200)):(f.css(h),e.pos=b.extend({},e.dim,h)))},update:function(b){var c=b&&b.type,g=!c||"orientationchange"===c;g&&(clearTimeout(r),r=null);d.isOpen&&!r&&(r=setTimeout(function(){var e=d.current;e&&!d.isClosing&&(d.wrap.removeClass("fancybox-tmp"),(g||"load"===c||"resize"===c&&e.autoResize)&&d._setDimension(),"scroll"===c&&e.canShrink||d.reposition(b),d.trigger("onUpdate"),r=null)},g&&!f?0:300))},toggle:function(c){d.isOpen&&(d.current.fitToView="boolean"===b.type(c)?c:!d.current.fitToView,f&&(d.wrap.removeAttr("style").addClass("fancybox-tmp"),d.trigger("onUpdate")),d.update())},hideLoading:function(){n.unbind(".loading");b("#fancybox-loading").remove()},showLoading:function(){var c,g;d.hideLoading();c=b('\x3cdiv id\x3d"fancybox-loading"\x3e\x3cdiv\x3e\x3c/div\x3e\x3c/div\x3e').click(d.cancel).appendTo("body");n.bind("keydown.loading",function(b){27===(b.which||b.keyCode)&&(b.preventDefault(),d.cancel())});d.defaults.fixed||(g=d.getViewport(),c.css({position:"absolute",top:.5*g.h+g.y,left:.5*g.w+g.x}))},getViewport:function(){var b=d.current&&d.current.locked||!1,g={x:e.scrollLeft(),y:e.scrollTop()};b?(g.w=b[0].clientWidth,g.h=b[0].clientHeight):(g.w=f&&c.innerWidth?c.innerWidth:e.width(),g.h=f&&c.innerHeight?c.innerHeight:e.height());return g},unbindEvents:function(){d.wrap&&k(d.wrap)&&d.wrap.unbind(".fb");n.unbind(".fb");e.unbind(".fb")},bindEvents:function(){var c=d.current,g;c&&(e.bind("orientationchange.fb"+(f?"":" ../../../../../error/ie.html")+(c.autoCenter&&!c.locked?" ../../../../../error/ie.html":""),d.update),(g=c.keys)&&n.bind("../../../../../error/ie.html",function(e){var f=e.which||e.keyCode,k=e.target||e.srcElement;if(27===f&&d.coming)return!1;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||k&&(k.type||b(k).is("[contenteditable]"))||b.each(g,function(g,k){if(1m.clientWidth||m.clientHeight&&m.scrollHeight>m.clientHeight),k=b(k).parent();0!==e&&!m&&1h||0>f)&&d.next(0>h?"up":"right"),g.preventDefault())}))},trigger:function(c,g){var e,f=g||d.coming||d.current;if(f){b.isFunction(f[c])&&(e=f[c].apply(f,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;f.helpers&&b.each(f.helpers,function(g,e){if(e&&d.helpers[g]&&b.isFunction(d.helpers[g][c]))d.helpers[g][c](b.extend(!0,{},d.helpers[g].defaults,e),f)});n.trigger(c)}},isImage:function(b){return u(b)&&b.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(b){return u(b)&&b.match(/\.(swf)((\?|#).*)?$/i)},_start:function(c){var e={},h,k;c=v(c);h=d.group[c]||null;if(!h)return!1;e=b.extend(!0,{},d.opts,h);h=e.margin;k=e.padding;"number"===b.type(h)&&(e.margin=[h,h,h,h]);"number"===b.type(k)&&(e.padding=[k,k,k,k]);e.modal&&b.extend(!0,e,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});e.autoSize&&(e.autoWidth=e.autoHeight=!0);"auto"===e.width&&(e.autoWidth=!0);"auto"===e.height&&(e.autoHeight=!0);e.group=d.group;e.index=c;d.coming=e;if(!1===d.trigger("beforeLoad"))d.coming=null;else{k=e.type;h=e.href;if(!k)return d.coming=null,d.current&&d.router&&"jumpto"!==d.router?(d.current.index=c,d[d.router](d.direction)):!1;d.isActive=!0;if("image"===k||"swf"===k)e.autoHeight=e.autoWidth=!1,e.scrolling="visible";"image"===k&&(e.aspectRatio=!0);"iframe"===k&&f&&(e.scrolling="scroll");e.wrap=b(e.tpl.wrap).addClass("fancybox-"+(f?"mobile":"desktop")+" fancybox-type-"+k+" fancybox-tmp "+e.wrapCSS).appendTo(e.parent||"body");b.extend(e,{skin:b(".fancybox-skin",e.wrap),outer:b(".fancybox-outer",e.wrap),inner:b(".fancybox-inner",e.wrap)});b.each(["Top","Right","Bottom","Left"],function(b,c){e.skin.css("padding"+c,g(e.padding[b]))});d.trigger("onReady");if("inline"===k||"html"===k){if(!e.content||!e.content.length)return d._error("content")}else if(!h)return d._error("href");"image"===k?d._loadImage():"ajax"===k?d._loadAjax():"iframe"===k?d._loadIframe():d._afterLoad()}},_error:function(c){b.extend(d.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:c,content:d.coming.tpl.error});d._afterLoad()},_loadImage:function(){var b=d.imgPreload=new Image;b.onload=function(){this.onload=this.onerror=null;d.coming.width=this.width/d.opts.pixelRatio;d.coming.height=this.height/d.opts.pixelRatio;d._afterLoad()};b.onerror=function(){this.onload=this.onerror=null;d._error("image")};b.src=d.coming.href;!0!==b.complete&&d.showLoading()},_loadAjax:function(){var c=d.coming;d.showLoading();d.ajaxLoad=b.ajax(b.extend({},c.ajax,{url:c.href,error:function(b,c){d.coming&&"abort"!==c?d._error("ajax",b):d.hideLoading()},success:function(b,g){"success"===g&&(c.content=b,d._afterLoad())}}))},_loadIframe:function(){var c=d.coming,g=b(c.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",f?"auto":c.iframe.scrolling).attr("src",c.href);b(c.wrap).bind("onReset",function(){try{b(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(c){}});c.iframe.preload&&(d.showLoading(),g.one("load",function(){b(this).data("ready",1);f||b(this).bind("../../../../../error/ie.html",d.update);b(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();d._afterLoad()}));c.content=g.appendTo(c.inner);c.iframe.preload||d._afterLoad()},_preloadImages:function(){var b=d.group,c=d.current,g=b.length,e=c.preload?Math.min(c.preload,g-1):0,f,h;for(h=1;h<=e;h+=1)f=b[(c.index+h)%g],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var c=d.coming,g=d.current,e,f,h,m,l;d.hideLoading();if(c&&!1!==d.isActive)if(!1===d.trigger("afterLoad",c,g))c.wrap.stop(!0).trigger("onReset").remove(),d.coming=null;else{g&&(d.trigger("beforeChange",g),g.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());d.unbindEvents();e=c.content;f=c.type;h=c.scrolling;b.extend(d,{wrap:c.wrap,skin:c.skin,outer:c.outer,inner:c.inner,current:c,previous:g});m=c.href;switch(f){case "inline":case "ajax":case "html":c.selector?e=b("\x3cdiv\x3e").html(e).find(c.selector):k(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",b('\x3cdiv class\x3d"fancybox-placeholder"\x3e\x3c/div\x3e').insertAfter(e).hide()),e=e.show().detach(),c.wrap.bind("onReset",function(){b(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=c.tpl.image.replace("{href}",m);break;case "swf":e='\x3cobject id\x3d"fancybox-swf" classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width\x3d"100%" height\x3d"100%"\x3e\x3cparam name\x3d"movie" value\x3d"'+m+'"\x3e\x3c/param\x3e',l="",b.each(c.swf,function(b,c){e+='\x3cparam name\x3d"'+b+'" value\x3d"'+c+'"\x3e\x3c/param\x3e';l+=" "+b+'\x3d"'+c+'"'}),e+='\x3cembed src\x3d"'+m+'" type\x3d"application/x-shockwave-flash" width\x3d"100%" height\x3d"100%"'+l+"\x3e\x3c/embed\x3e\x3c/object\x3e"}k(e)&&e.parent().is(c.inner)||c.inner.append(e);d.trigger("beforeShow");c.inner.css("overflow","yes"===h?"scroll":"no"===h?"hidden":h);d._setDimension();d.reposition();d.isOpen=!1;d.coming=null;d.bindEvents();if(!d.isOpened)b(".fancybox-wrap").not(c.wrap).stop(!0).trigger("onReset").remove();else if(g.prevMethod)d.transitions[g.prevMethod]();d.transitions[d.isOpened?c.nextMethod:c.openMethod]();d._preloadImages()}},_setDimension:function(){var c=d.getViewport(),e=0,f,h=d.wrap,k=d.skin,m=d.inner,l=d.current;f=l.width;var n=l.height,p=l.minWidth,r=l.minHeight,u=l.maxWidth,q=l.maxHeight,H=l.scrolling,L=l.scrollOutside?l.scrollbarWidth:0,I=l.margin,K=v(I[1]+I[3]),O=v(I[0]+I[2]),M,J,P,T,S,R,Q,U,V;h.add(k).add(m).width("auto").height("auto").removeClass("fancybox-tmp");I=v(k.outerWidth(!0)-k.width());M=v(k.outerHeight(!0)-k.height());J=K+I;P=O+M;T=x(f)?(c.w-J)*v(f)/100:f;S=x(n)?(c.h-P)*v(n)/100:n;if("iframe"===l.type){if(V=l.content,l.autoHeight&&1===V.data("ready"))try{V[0].contentWindow.document.location&&(m.width(T).height(9999),R=V.contents().find("body"),L&&R.css("overflow-x","hidden"),S=R.outerHeight(!0))}catch(W){}}else if(l.autoWidth||l.autoHeight)m.addClass("fancybox-tmp"),l.autoWidth||m.width(T),l.autoHeight||m.height(S),l.autoWidth&&(T=m.width()),l.autoHeight&&(S=m.height()),m.removeClass("fancybox-tmp");f=v(T);n=v(S);U=T/S;p=v(x(p)?v(p,"w")-J:p);u=v(x(u)?v(u,"w")-J:u);r=v(x(r)?v(r,"h")-P:r);q=v(x(q)?v(q,"h")-P:q);R=u;Q=q;l.fitToView&&(u=Math.min(c.w-J,u),q=Math.min(c.h-P,q));J=c.w-K;O=c.h-O;l.aspectRatio?(f>u&&(f=u,n=v(f/U)),n>q&&(n=q,f=v(n*U)),fJ||K>O)&&f>p&&n>r&&!(19u&&(f=u,n=v(f/U)),m.width(f).height(n),h.width(f+I),c=h.width(),K=h.height();else f=Math.max(p,Math.min(f,f-(c-J))),n=Math.max(r,Math.min(n,n-(K-O)));L&&"auto"===H&&nJ||K>O)&&f>p&&n>r;f=l.aspectRatio?fr&&nc&&(b=n.width())):n.width()>e.width()&&(b=n.width());this.overlay.width(b).height(n.height())},onReady:function(c,d){var g=this.overlay;b(".fancybox-overlay").stop(!0,!0);g||this.create(c);c.locked&&this.fixed&&d.fixed&&(g||(this.margin=n.height()>e.height()?b("html").css("margin-right").replace("px",""):!1),d.locked=this.overlay.append(d.wrap),d.fixed=!1);!0===c.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(c,d){var g,f;d.locked&&(!1!==this.margin&&(b("*").filter(function(){return"fixed"===b(this).css("position")&&!b(this).hasClass("fancybox-overlay")&&!b(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),g=e.scrollTop(),f=e.scrollLeft(),this.el.addClass("fancybox-lock"),e.scrollTop(g).scrollLeft(f));this.open(c)},onUpdate:function(){this.fixed||this.update()},afterClose:function(c){this.overlay&&!d.coming&&this.overlay.fadeOut(c.speedOut,b.proxy(this.close,this))}};d.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(c){var g=d.current,e=g.title,f=c.type;b.isFunction(e)&&(e=e.call(g.element,g));if(u(e)&&""!==b.trim(e)){g=b('\x3cdiv class\x3d"fancybox-title fancybox-title-'+f+'-wrap"\x3e'+e+"\x3c/div\x3e");switch(f){case "inside":f=d.skin;break;case "outside":f=d.wrap;break;case "over":f=d.inner;break;default:f=d.skin,g.appendTo("body"),m&&g.width(g.width()),g.wrapInner('\x3cspan class\x3d"child"\x3e\x3c/span\x3e'),d.current.margin[2]+=Math.abs(v(g.css("margin-bottom")))}g["top"===c.position?"prependTo":"appendTo"](f)}}};b.fn.fancybox=function(c){var g,e=b(this),f=this.selector||"",h=function(h){var k=b(this).blur(),m=g,l,n;h.ctrlKey||h.altKey||h.shiftKey||h.metaKey||k.is(".fancybox-wrap")||(l=c.groupAttr||"data-fancybox-group",n=k.attr(l),n||(l="rel",n=k.get(0)[l]),n&&""!==n&&"nofollow"!==n&&(k=f.length?b(f):e,k=k.filter("["+l+'\x3d"'+n+'"]'),m=k.index(this)),c.index=m,!1!==d.open(k,c)&&h.preventDefault())};c=c||{};g=c.index||0;f&&!1!==c.live?n.undelegate(f,"click.fb-start").delegate(f+":not('.fancybox-item, .fancybox-nav')","click.fb-start",h):e.unbind("click.fb-start").bind("click.fb-start",h);this.filter("[data-fancybox-start\x3d1]").trigger("click");return this};n.ready(function(){var g,e;b.scrollbarWidth===h&&(b.scrollbarWidth=function(){var c=b('\x3cdiv style\x3d"width:50px;height:50px;overflow:auto"\x3e\x3cdiv/\x3e\x3c/div\x3e').appendTo("body"),d=c.children(),d=d.innerWidth()-d.height(99).innerWidth();c.remove();return d});b.support.fixedPosition===h&&(b.support.fixedPosition=function(){var c=b('\x3cdiv style\x3d"position:fixed;top:20px;"\x3e\x3c/div\x3e').appendTo("body"),d=20===c[0].offsetTop||15===c[0].offsetTop;c.remove();return d}());b.extend(d.defaults,{scrollbarWidth:b.scrollbarWidth(),fixed:b.support.fixedPosition,parent:b("body")});g=b(c).width();l.addClass("fancybox-lock-test");e=b(c).width();l.removeClass("fancybox-lock-test");b("\x3cstyle type\x3d'text/css'\x3e.fancybox-margin{margin-right:"+(e-g)+"px;}\x3c/style\x3e").appendTo("head")})})(window,document,jQuery);(function(c){"function"===typeof define&&define.amd?define(["jquery"],c):c("undefined"!=typeof jQuery?jQuery:window.Zepto)})(function(c){function p(b){var e=b.data;b.isDefaultPrevented()||(b.preventDefault(),c(b.target).ajaxSubmit(e))}function b(b){var e=b.target,h=c(e);if(!h.is("[type\x3dsubmit],[type\x3dimage]")){e=h.closest("[type\x3dsubmit]");if(0===e.length)return;e=e[0]}var f=this;f.clk=e;"image"==e.type&&(void 0!==b.offsetX?(f.clk_x=b.offsetX,f.clk_y=b.offsetY):"function"==typeof c.fn.offset?(h=h.offset(),f.clk_x=b.pageX-h.left,f.clk_y=b.pageY-h.top):(f.clk_x=b.pageX-e.offsetLeft,f.clk_y=b.pageY-e.offsetTop));setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)}function h(){if(c.fn.ajaxSubmit.debug){var b="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(b):window.opera&&window.opera.postError&&window.opera.postError(b)}}var l,e;l=void 0!==c("\x3cinput type\x3d'file'/\x3e").get(0).files;e=void 0!==window.FormData;var n=!!c.fn.prop;c.fn.attr2=function(){if(!n)return this.attr.apply(this,arguments);var b=this.prop.apply(this,arguments);return b&&b.jquery||"string"===typeof b?b:this.attr.apply(this,arguments)};c.fn.ajaxSubmit=function(b){function m(g){g=c.param(g,b.traditional).split("\x26");var e=g.length,f=[],h,k;for(h=0;hv.status||304===v.status?"success":"error");"success"===b?(p.success&&p.success.call(p.context,R,"success",v),D.resolve(v.responseText,"success",v),r&&c.event.trigger("ajaxSuccess",[v,p])):b&&(void 0===d&&(d=v.statusText),p.error&&p.error.call(p.context,v,b,d),D.reject(v,"error",d),r&&c.event.trigger("ajaxError",[v,p,d]));r&&c.event.trigger("ajaxComplete",[v,p]);r&&!--c.active&&c.event.trigger("ajaxStop");p.complete&&p.complete.call(p.context,v,b);V=!0;p.timeout&&clearTimeout(A);setTimeout(function(){p.iframeTarget?y.attr("src",p.iframeSrc):y.remove();v.responseXML=null},100)}}var t=x[0],w,p,r,u,y,z,v,B,A,D=c.Deferred();D.abort=function(b){v.abort(b)};if(e)for(w=0;wl)return null;for(var h=[],k=b.options,n=(f="select-one"==f)?l+1:k.length,l=f?l:0;lthis.dragDepth&&(this.dragDepth=e)},dragStop:function(b){b=this.dragEl.children(this.options.itemNodeName).first();b[0].parentNode.removeChild(b[0]);this.placeEl.replaceWith(b);this.dragEl.remove();this.el.trigger("change");this.hasNewRoot&&this.dragRootEl.trigger("change");this.reset()},dragMove:function(d){var e,f,h,l=this.options,x=this.mouse;this.dragEl.css({left:d.pageX-x.offsetX,top:d.pageY-x.offsetY});x.lastX=x.nowX;x.lastY=x.nowY;x.nowX=d.pageX;x.nowY=d.pageY;x.distX=x.nowX-x.lastX;x.distY=x.nowY-x.lastY;x.lastDirX=x.dirX;x.lastDirY=x.dirY;x.dirX=0===x.distX?0:0Math.abs(x.distY)?1:0;if(x.moving){x.dirAx!==h?(x.distAxX=0,x.distAxY=0):(x.distAxX+=Math.abs(x.distX),0!==x.dirX&&x.dirX!==x.lastDirX&&(x.distAxX=0),x.distAxY+=Math.abs(x.distY),0!==x.dirY&&x.dirY!==x.lastDirY&&(x.distAxY=0));x.dirAx=h;x.dirAx&&x.distAxX>=l.threshold&&(x.distAxX=0,h=this.placeEl.prev(l.itemNodeName),0x.distX&&(h=this.placeEl.next(l.itemNodeName),h.length||(f=this.placeEl.parent(),this.placeEl.closest(l.itemNodeName).after(this.placeEl),f.children().length||this.unsetParent(f.parent()))));e=!1;n||(this.dragEl[0].style.visibility="hidden");this.pointEl=c(b.elementFromPoint(d.pageX-b.body.scrollLeft,d.pageY-(p.pageYOffset||b.documentElement.scrollTop)));n||(this.dragEl[0].style.visibility="visible");this.pointEl.hasClass(l.handleClass)&&(this.pointEl=this.pointEl.parent(l.itemNodeName));if(this.pointEl.hasClass(l.emptyClass))e=!0;else if(!this.pointEl.length||!this.pointEl.hasClass(l.itemClass))return;h=this.pointEl.closest("."+l.rootClass);var v=this.dragRootEl.data("nestable-id")!==h.data("nestable-id");x.dirAx&&!v&&!e||v&&l.group!==h.data("nestable-group")||(f=this.dragDepth-1+this.pointEl.parents(l.listNodeName).length,f>l.maxDepth||(d=d.pageYe){if(q.getScrollTop()>=q.page.maxh)return!0}else if(0>=q.getScrollTop())return!0;q.scrollmom&&q.scrollmom.stop();q.lastdeltay+=e;q.debounced("mousewheely",function(){var b=q.lastdeltay;q.lastdeltay=0;q.rail.drag||q.doScrollBy(b)},120)}b.stopImmediatePropagation();return b.preventDefault()}var q=this;this.version="3.5.0";this.name="nicescroll";this.me=f;this.opt={doc:c("body"),win:!1};c.extend(this.opt,x);this.opt.snapbackspeed=80;if(d)for(var v in q.opt)"undefined"!=typeof d[v]&&(q.opt[v]=d[v]);this.iddoc=(this.doc=q.opt.doc)&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/BODY|HTML/.test(q.opt.win?q.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=!1!==q.opt.win;this.win=q.opt.win||(this.ispage?c(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?c(window):this.win;this.body=c("body");this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent="scroll"!=q.opt.autohidemode;this.page=this.view=this.onzoomout=this.onzoomin=this.onscrollcancel=this.onscrollend=this.onscrollstart=this.onclick=this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.observerremover=this.observer=this.scrollmom=this.scrollrunning=this.checkrtlmode=!1;do this.id="ascrail"+l++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.hidden=this.locked=!1;this.cursoractive=!0;this.overflowx=q.opt.overflowx;this.overflowy=q.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0;this.detected=g();var D=c.extend({},this.detected);this.ishwscroll=(this.canhwscroll=D.hastransform&&q.opt.hwacceleration)&&q.haswrapper;this.istouchcapable=!1;D.cantouch&&D.ischrome&&!D.isios&&!D.isandroid&&(this.istouchcapable=!0,D.cantouch=!1);D.cantouch&&D.ismozilla&&!D.isios&&!D.isandroid&&(this.istouchcapable=!0,D.cantouch=!1);q.opt.enablemouselockapi||(D.hasmousecapture=!1,D.haspointerlock=!1);this.delayed=function(b,c,d,g){var e=q.delaylist[b],f=(new Date).getTime();if(!g&&e&&e.tt)return!1;e&&e.tt&&clearTimeout(e.tt);e&&e.last+d>f&&!e.tt?q.delaylist[b]={last:f+d,tt:setTimeout(function(){q.delaylist[b].tt=0;c.call()},d)}:e&&e.tt||(q.delaylist[b]={last:f,tt:0},setTimeout(function(){c.call()},0))};this.debounced=function(b,c,d){var g=q.delaylist[b];(new Date).getTime();q.delaylist[b]=c;g||setTimeout(function(){var c=q.delaylist[b];q.delaylist[b]=!1;c.call()},d)};this.synched=function(b,c){q.synclist[b]=c;(function(){q.onsync||(m(function(){q.onsync=!1;for(b in q.synclist){var c=q.synclist[b];c&&c.call(q);q.synclist[b]=!1}}),q.onsync=!0)})();return b};this.unsynched=function(b){q.synclist[b]&&(q.synclist[b]=!1)};this.css=function(b,c){for(var d in c)q.saved.css.push([b,d,b.css(d)]),b.css(d,c[d])};this.scrollTop=function(b){return"undefined"==typeof b?q.getScrollTop():q.setScrollTop(b)};this.scrollLeft=function(b){return"undefined"==typeof b?q.getScrollLeft():q.setScrollLeft(b)};BezierClass=function(b,c,d,g,e,f,h){this.st=b;this.ed=c;this.spd=d;this.p1=g||0;this.p2=e||1;this.p3=f||0;this.p4=h||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};BezierClass.prototype={B2:function(b){return 3*b*b*(1-b)},B3:function(b){return 3*b*(1-b)*(1-b)},B4:function(b){return(1-b)*(1-b)*(1-b)},getNow:function(){var b=1-((new Date).getTime()-this.ts)/this.spd,c=this.B2(b)+this.B3(b)+this.B4(b);return 0>b?this.ed:this.st+Math.round(this.df*c)},update:function(b,c){this.st=this.getNow();this.ed=b;this.spd=c;this.ts=(new Date).getTime();this.df=this.ed-this.st;return this}};if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};D.hastranslate3d&&D.isios&&this.doc.css("-webkit-backface-visibility","hidden");var I=function(){var b=q.doc.css(D.trstyle);return b&&"matrix"==b.substr(0,6)?b.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1};this.getScrollTop=function(b){if(!b){if(b=I())return 16==b.length?-b[13]:-b[5];if(q.timerscroll&&q.timerscroll.bz)return q.timerscroll.bz.getNow()}return q.doc.translate.y};this.getScrollLeft=function(b){if(!b){if(b=I())return 16==b.length?-b[12]:-b[4];if(q.timerscroll&&q.timerscroll.bh)return q.timerscroll.bh.getNow()}return q.doc.translate.x};this.notifyScrollEvent=document.createEvent?function(b){var c=document.createEvent("UIEvents");c.initUIEvent("scroll",!1,!0,window,1);b.dispatchEvent(c)}:document.fireEvent?function(b){var c=document.createEventObject();b.fireEvent("onscroll");c.cancelBubble=!0}:function(b,c){};D.hastranslate3d&&q.opt.enabletranslate3d?(this.setScrollTop=function(b,c){q.doc.translate.y=b;q.doc.translate.ty=-1*b+"px";q.doc.css(D.trstyle,"translate3d("+q.doc.translate.tx+","+q.doc.translate.ty+",0px)");c||q.notifyScrollEvent(q.win[0])},this.setScrollLeft=function(b,c){q.doc.translate.x=b;q.doc.translate.tx=-1*b+"px";q.doc.css(D.trstyle,"translate3d("+q.doc.translate.tx+","+q.doc.translate.ty+",0px)");c||q.notifyScrollEvent(q.win[0])}):(this.setScrollTop=function(b,c){q.doc.translate.y=b;q.doc.translate.ty=-1*b+"px";q.doc.css(D.trstyle,"translate("+q.doc.translate.tx+","+q.doc.translate.ty+")");c||q.notifyScrollEvent(q.win[0])},this.setScrollLeft=function(b,c){q.doc.translate.x=b;q.doc.translate.tx=-1*b+"px";q.doc.css(D.trstyle,"translate("+q.doc.translate.tx+","+q.doc.translate.ty+")");c||q.notifyScrollEvent(q.win[0])})}else this.getScrollTop=function(){return q.docscroll.scrollTop()},this.setScrollTop=function(b){return q.docscroll.scrollTop(b)},this.getScrollLeft=function(){return q.docscroll.scrollLeft()},this.setScrollLeft=function(b){return q.docscroll.scrollLeft(b)};this.getTarget=function(b){return b?b.target?b.target:b.srcElement?b.srcElement:!1:!1};this.hasParent=function(b,c){if(!b)return!1;for(var d=b.target||b.srcElement||b||!1;d&&d.id!=c;)d=d.parentNode||!1;return!1!==d};var K={thin:1,medium:3,thick:5};this.getOffset=function(){if(q.isfixed)return{top:parseFloat(q.win.css("top")),left:parseFloat(q.win.css("left"))};if(!q.viewport)return q.win.offset();var b=q.win.offset(),c=q.viewport.offset();return{top:b.top-c.top+q.viewport.scrollTop(),left:b.left-c.left+q.viewport.scrollLeft()}};this.updateScrollBar=function(b){if(q.ishwscroll)q.rail.css({height:q.win.innerHeight()}),q.railh&&q.railh.css({width:q.win.innerWidth()});else{var c=q.getOffset(),d=c.top,g=c.left,d=d+t(q.win,"border-top-width",!0);q.win.outerWidth();q.win.innerWidth();var g=g+(q.rail.align?q.win.outerWidth()-t(q.win,"border-right-width")-q.rail.width:t(q.win,"border-left-width")),e=q.opt.railoffset;e&&(e.top&&(d+=e.top),q.rail.align&&e.left&&(g+=e.left));q.locked||q.rail.css({top:d,left:g,height:b?b.h:q.win.innerHeight()});q.zoom&&q.zoom.css({top:d+1,left:1==q.rail.align?g-20:g+q.rail.width+4});q.railh&&!q.locked&&(d=c.top,g=c.left,b=q.railh.align?d+t(q.win,"border-top-width",!0)+q.win.innerHeight()-q.railh.height:d+t(q.win,"border-top-width",!0),g+=t(q.win,"border-left-width"),q.railh.css({top:b,left:g,width:q.railh.width}))}};this.doRailClick=function(b,c,d){var g;q.locked||(q.cancelEvent(b),c?(c=d?q.doScrollLeft:q.doScrollTop,g=d?(b.pageX-q.railh.offset().left-q.cursorwidth/2)*q.scrollratio.x:(b.pageY-q.rail.offset().top-q.cursorheight/2)*q.scrollratio.y,c(g)):(c=d?q.doScrollLeftBy:q.doScrollBy,g=d?q.scroll.x:q.scroll.y,b=d?b.pageX-q.railh.offset().left:b.pageY-q.rail.offset().top,d=d?q.view.w:q.view.h,g>=b?c(d):c(-d)))};q.hasanimationframe=m;q.hascancelanimationframe=r;q.hasanimationframe?q.hascancelanimationframe||(r=function(){q.cancelAnimationFrame=!0}):(m=function(b){return setTimeout(b,15-Math.floor(+new Date/1E3)%16)},r=clearInterval);this.init=function(){q.saved.css=[];if(D.isie7mobile||D.isoperamini)return!0;D.hasmstouch&&q.css(q.ispage?c("html"):q.win,{"-ms-touch-action":"none"});q.zindex="auto";q.zindex=q.ispage||"auto"!=q.opt.zindex?q.opt.zindex:k()||"auto";!q.ispage&&"auto"!=q.zindex&&q.zindex>e&&(e=q.zindex);q.isie&&0==q.zindex&&"auto"==q.opt.zindex&&(q.zindex="auto");if(!q.ispage||!D.cantouch&&!D.isieold&&!D.isie9mobile){var d=q.docscroll;q.ispage&&(d=q.haswrapper?q.win:q.doc);D.isie9mobile||q.css(d,{"overflow-y":"hidden"});q.ispage&&D.isie7&&("BODY"==q.doc[0].nodeName?q.css(c("html"),{"overflow-y":"hidden"}):"HTML"==q.doc[0].nodeName&&q.css(c("body"),{"overflow-y":"hidden"}));D.isios&&!q.ispage&&!q.haswrapper&&q.css(c("body"),{"-webkit-overflow-scrolling":"touch"});var g=c(document.createElement("div"));g.css({position:"relative",top:0,"float":"right",width:q.opt.cursorwidth,height:"0px","background-color":q.opt.cursorcolor,border:q.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":q.opt.cursorborderradius,"-moz-border-radius":q.opt.cursorborderradius,"border-radius":q.opt.cursorborderradius});g.hborder=parseFloat(g.outerHeight()-g.innerHeight());q.cursor=g;var f=c(document.createElement("div"));f.attr("id",q.id);f.addClass("nicescroll-rails");var l,m,t=["left","right"],r;for(r in t)m=t[r],(l=q.opt.railpadding[m])?f.css("padding-"+m,l+"px"):q.opt.railpadding[m]=0;f.append(g);f.width=Math.max(parseFloat(q.opt.cursorwidth),g.outerWidth())+q.opt.railpadding.left+q.opt.railpadding.right;f.css({width:f.width+"px",zIndex:q.zindex,background:q.opt.background,cursor:"default"});f.visibility=!0;f.scrollable=!0;f.align="left"==q.opt.railalign?0:1;q.rail=f;g=q.rail.drag=!1;q.opt.boxzoom&&!q.ispage&&!D.isieold&&(g=document.createElement("div"),q.bind(g,"click",q.doZoom),q.zoom=c(g),q.zoom.css({cursor:"pointer","z-index":q.zindex,backgroundImage:"url("+n+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),q.opt.dblclickzoom&&q.bind(q.win,"dblclick",q.doZoom),D.cantouch&&q.opt.gesturezoom&&(q.ongesturezoom=function(b){1.5b.scale&&q.doZoomOut(b);return q.cancelEvent(b)},q.bind(q.win,"gestureend",q.ongesturezoom)));q.railh=!1;if(q.opt.horizrailenabled){q.css(d,{"overflow-x":"hidden"});g=c(document.createElement("div"));g.css({position:"relative",top:0,height:q.opt.cursorwidth,width:"0px","background-color":q.opt.cursorcolor,border:q.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":q.opt.cursorborderradius,"-moz-border-radius":q.opt.cursorborderradius,"border-radius":q.opt.cursorborderradius});g.wborder=parseFloat(g.outerWidth()-g.innerWidth());q.cursorh=g;var y=c(document.createElement("div"));y.attr("id",q.id+"-hr");y.addClass("nicescroll-rails");y.height=Math.max(parseFloat(q.opt.cursorwidth),g.outerHeight());y.css({height:y.height+"px",zIndex:q.zindex,background:q.opt.background});y.append(g);y.visibility=!0;y.scrollable=!0;y.align="top"==q.opt.railvalign?0:1;q.railh=y;q.railh.drag=!1}q.ispage?(f.css({position:"fixed",top:"0px",height:"100%"}),f.align?f.css({right:"0px"}):f.css({left:"0px"}),q.body.append(f),q.railh&&(y.css({position:"fixed",left:"0px",width:"100%"}),y.align?y.css({bottom:"0px"}):y.css({top:"0px"}),q.body.append(y))):(q.ishwscroll?("static"==q.win.css("position")&&q.css(q.win,{position:"relative"}),d="HTML"==q.win[0].nodeName?q.body:q.win,q.zoom&&(q.zoom.css({position:"absolute",top:1,right:0,"margin-right":f.width+4}),d.append(q.zoom)),f.css({position:"absolute",top:0}),f.align?f.css({right:0}):f.css({left:0}),d.append(f),y&&(y.css({position:"absolute",left:0,bottom:0}),y.align?y.css({bottom:0}):y.css({top:0}),d.append(y))):(q.isfixed="fixed"==q.win.css("position"),d=q.isfixed?"fixed":"absolute",q.isfixed||(q.viewport=q.getViewport(q.win[0])),q.viewport&&(q.body=q.viewport,0==/fixed|relative|absolute/.test(q.viewport.css("position"))&&q.css(q.viewport,{position:"relative"})),f.css({position:d}),q.zoom&&q.zoom.css({position:d}),q.updateScrollBar(),q.body.append(f),q.zoom&&q.body.append(q.zoom),q.railh&&(y.css({position:d}),q.body.append(y))),D.isios&&q.css(q.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),D.isie&&q.opt.disableoutline&&q.win.attr("hideFocus","true"),D.iswebkit&&q.opt.disableoutline&&q.win.css({outline:"none"}));!1===q.opt.autohidemode?(q.autohidedom=!1,q.rail.css({opacity:q.opt.cursoropacitymax}),q.railh&&q.railh.css({opacity:q.opt.cursoropacitymax})):!0===q.opt.autohidemode||"leave"===q.opt.autohidemode?(q.autohidedom=c().add(q.rail),D.isie8&&(q.autohidedom=q.autohidedom.add(q.cursor)),q.railh&&(q.autohidedom=q.autohidedom.add(q.railh)),q.railh&&D.isie8&&(q.autohidedom=q.autohidedom.add(q.cursorh))):"scroll"==q.opt.autohidemode?(q.autohidedom=c().add(q.rail),q.railh&&(q.autohidedom=q.autohidedom.add(q.railh))):"cursor"==q.opt.autohidemode?(q.autohidedom=c().add(q.cursor),q.railh&&(q.autohidedom=q.autohidedom.add(q.cursorh))):"hidden"==q.opt.autohidemode&&(q.autohidedom=!1,q.hide(),q.locked=!1);if(D.isie9mobile)q.scrollmom=new w(q),q.onmangotouch=function(b){b=q.getScrollTop();var c=q.getScrollLeft();if(b==q.scrollmom.lastscrolly&&c==q.scrollmom.lastscrollx)return!0;var d=b-q.mangotouch.sy,g=c-q.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(g,2)+Math.pow(d,2)))){var e=0>d?-1:1,f=0>g?-1:1,h=+new Date;q.mangotouch.lazy&&clearTimeout(q.mangotouch.lazy);80l?l=Math.round(l/2):l>q.page.maxh&&(l=q.page.maxh+Math.round((l-q.page.maxh)/2)):(0>l&&(f=l=0),l>q.page.maxh&&(l=q.page.maxh,f=0));if(q.railh&&q.railh.scrollable){var m=q.rail.drag.sl-k;q.ishwscroll&&q.opt.bouncescroll?0>m?m=Math.round(m/2):m>q.page.maxw&&(m=q.page.maxw+Math.round((m-q.page.maxw)/2)):(0>m&&(h=m=0),m>q.page.maxw&&(m=q.page.maxw,h=0))}g=!1;if(q.rail.drag.dl)g=!0,"v"==q.rail.drag.dl?m=q.rail.drag.sl:"h"==q.rail.drag.dl&&(l=q.rail.drag.st);else{var e=Math.abs(e),k=Math.abs(k),t=q.opt.directionlockdeadzone;if("v"==q.rail.drag.ck){if(e>t&&k<=.3*e)return q.rail.drag=!1,!0;k>t&&(q.rail.drag.dl="f",c("body").scrollTop(c("body").scrollTop()))}else if("h"==q.rail.drag.ck){if(k>t&&e<=.3*k)return q.rail.drag=!1,!0;e>t&&(q.rail.drag.dl="f",c("body").scrollLeft(c("body").scrollLeft()))}}q.synched("touchmove",function(){q.rail.drag&&2==q.rail.drag.pt&&(q.prepareTransition&&q.prepareTransition(0),q.rail.scrollable&&q.setScrollTop(l),q.scrollmom.update(h,f),q.railh&&q.railh.scrollable?(q.setScrollLeft(m),q.showCursor(l,m)):q.showCursor(l),D.isie10&&document.selection.clear())});D.ischrome&&q.istouchcapable&&(g=!1);if(g)return q.cancelEvent(b)}}}q.onmousedown=function(b,c){if(!q.rail.drag||1==q.rail.drag.pt){if(q.locked)return q.cancelEvent(b);q.cancelScroll();q.rail.drag={x:b.clientX,y:b.clientY,sx:q.scroll.x,sy:q.scroll.y,pt:1,hr:!!c};var d=q.getTarget(b);!q.ispage&&D.hasmousecapture&&d.setCapture();q.isiframe&&!D.hasmousecapture&&(q.saved.csspointerevents=q.doc.css("pointer-events"),q.css(q.doc,{"pointer-events":"none"}));return q.cancelEvent(b)}};q.onmouseup=function(b){if(q.rail.drag&&(D.hasmousecapture&&document.releaseCapture(),q.isiframe&&!D.hasmousecapture&&q.doc.css("pointer-events",q.saved.csspointerevents),1==q.rail.drag.pt))return q.rail.drag=!1,q.cancelEvent(b)};q.onmousemove=function(b){if(q.rail.drag&&1==q.rail.drag.pt){if(D.ischrome&&0==b.which)return q.onmouseup(b);q.cursorfreezed=!0;if(q.rail.drag.hr){q.scroll.x=q.rail.drag.sx+(b.clientX-q.rail.drag.x);0>q.scroll.x&&(q.scroll.x=0);var c=q.scrollvaluemaxw;q.scroll.x>c&&(q.scroll.x=c)}else q.scroll.y=q.rail.drag.sy+(b.clientY-q.rail.drag.y),0>q.scroll.y&&(q.scroll.y=0),c=q.scrollvaluemax,q.scroll.y>c&&(q.scroll.y=c);q.synched("mousemove",function(){q.rail.drag&&1==q.rail.drag.pt&&(q.showCursor(),q.rail.drag.hr?q.doScrollLeft(Math.round(q.scroll.x*q.scrollratio.x),q.opt.cursordragspeed):q.doScrollTop(Math.round(q.scroll.y*q.scrollratio.y),q.opt.cursordragspeed))});return q.cancelEvent(b)}};if(D.cantouch||q.opt.touchbehavior)q.onpreventclick=function(b){if(q.preventclick)return q.preventclick.tg.onclick=q.preventclick.click,q.preventclick=!1,q.cancelEvent(b)},q.bind(q.win,"mousedown",q.ontouchstart),q.onclick=D.isios?!1:function(b){return q.lastmouseup?(q.lastmouseup=!1,q.cancelEvent(b)):!0},q.opt.grabcursorenabled&&D.cursorgrabvalue&&(q.css(q.ispage?q.doc:q.win,{cursor:D.cursorgrabvalue}),q.css(q.rail,{cursor:D.cursorgrabvalue}));else{var v=function(b){if(q.selectiondrag){if(b){var c=q.win.outerHeight();b=b.pageY-q.selectiondrag.top;0=c&&(b-=c);q.selectiondrag.df=b}0!=q.selectiondrag.df&&(q.doScrollBy(2*-Math.floor(q.selectiondrag.df/6)),q.debounced("doselectionscroll",function(){v()},50))}};q.hasTextSelected="getSelection"in document?function(){return 0q.page.maxh?q.doScrollTop(q.page.maxh):(q.scroll.y=Math.round(q.getScrollTop()*(1/q.scrollratio.y)),q.scroll.x=Math.round(q.getScrollLeft()*(1/q.scrollratio.x)),q.cursoractive&&q.noticeCursor());q.scroll.y&&0==q.getScrollTop()&&q.doScrollTo(Math.floor(q.scroll.y*q.scrollratio.y));return q};this.resize=q.onResize;this.lazyResize=function(b){b=isNaN(b)?30:b;q.delayed("resize",q.resize,b);return q};this._bind=function(b,c,d,g){q.events.push({e:b,n:c,f:d,b:g,q:!1});b.addEventListener?b.addEventListener(c,d,g||!1):b.attachEvent?b.attachEvent("on"+c,d):b["on"+c]=d};this.jqbind=function(b,d,g){q.events.push({e:b,n:d,f:g,q:!0});c(b).bind(d,g)};this.bind=function(b,c,d,g){var e="jquery"in b?b[0]:b;"mousewheel"==c?"onwheel"in q.win?q._bind(e,"wheel",d,g||!1):(b="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",y(e,b,d,g||!1),"DOMMouseScroll"==b&&y(e,"MozMousePixelScroll",d,g||!1)):e.addEventListener?(D.cantouch&&/mouseup|mousedown|mousemove/.test(c)&&q._bind(e,"mousedown"==c?"touchstart":"mouseup"==c?"touchend":"touchmove",function(b){if(b.touches){if(2>b.touches.length){var c=b.touches.length?b.touches[0]:b;c.original=b;d.call(this,c)}}else b.changedTouches&&(c=b.changedTouches[0],c.original=b,d.call(this,c))},g||!1),q._bind(e,c,d,g||!1),D.cantouch&&"mouseup"==c&&q._bind(e,"touchcancel",d,g||!1)):q._bind(e,c,function(b){(b=b||window.event||!1)&&b.srcElement&&(b.target=b.srcElement);"pageY"in b||(b.pageX=b.clientX+document.documentElement.scrollLeft,b.pageY=b.clientY+document.documentElement.scrollTop);return!1===d.call(e,b)||!1===g?q.cancelEvent(b):!0})};this._unbind=function(b,c,d,g){b.removeEventListener?b.removeEventListener(c,d,g):b.detachEvent?b.detachEvent("on"+c,d):b["on"+c]=!1};this.unbindAll=function(){for(var b=0;b(q.newscrolly-g)*(c-g)||0>(q.newscrollx-e)*(b-e))&&q.cancelScroll();0==q.opt.bouncescroll&&(0>c?c=0:c>q.page.maxh&&(c=q.page.maxh),0>b?b=0:b>q.page.maxw&&(b=q.page.maxw));if(q.scrollrunning&&b==q.newscrollx&&c==q.newscrolly)return!1;q.newscrolly=c;q.newscrollx=b;q.newscrollspeed=d||!1;if(q.timer)return!1;q.timer=setTimeout(function(){var d=q.getScrollTop(),g=q.getScrollLeft(),e;e=b-g;e=Math.round(Math.sqrt(Math.pow(e,2)+Math.pow(c-d,2)));e=q.newscrollspeed&&1=q.newscrollspeed&&(e*=q.newscrollspeed);q.prepareTransition(e,!0);q.timerscroll&&q.timerscroll.tm&&clearInterval(q.timerscroll.tm);0b?b=0:b>q.page.maxh&&(b=q.page.maxh);0>c?c=0:c>q.page.maxw&&(c=q.page.maxw);if(b!=q.newscrolly||c!=q.newscrollx)return q.doScrollPos(c,b,q.opt.snapbackspeed);q.onscrollend&&q.scrollrunning&&q.onscrollend.call(q,{type:"scrollend",current:{x:c,y:b},end:{x:q.newscrollx,y:q.newscrolly}});q.scrollrunning=!1}):(this.doScrollLeft=function(b,c){var d=q.scrollrunning?q.newscrolly:q.getScrollTop();q.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=q.scrollrunning?q.newscrollx:q.getScrollLeft();q.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){function g(){if(q.cancelAnimationFrame)return!0;q.scrollrunning=!0;if(t=1-t)return q.timer=m(g)||1;var b=0,c=sy=q.getScrollTop();if(q.dst.ay){var c=q.bzscroll?q.dst.py+q.bzscroll.getNow()*q.dst.ay:q.newscrolly,d=c-sy;if(0>d&&cq.newscrolly)c=q.newscrolly;q.setScrollTop(c);c==q.newscrolly&&(b=1)}else b=1;var e=sx=q.getScrollLeft();if(q.dst.ax){e=q.bzscroll?q.dst.px+q.bzscroll.getNow()*q.dst.ax:q.newscrollx;d=e-sx;if(0>d&&eq.newscrollx)e=q.newscrollx;q.setScrollLeft(e);e==q.newscrollx&&(b+=1)}else b+=1;2==b?(q.timer=0,q.cursorfreezed=!1,q.bzscroll=!1,q.scrollrunning=!1,0>c?c=0:c>q.page.maxh&&(c=q.page.maxh),0>e?e=0:e>q.page.maxw&&(e=q.page.maxw),e!=q.newscrollx||c!=q.newscrolly?q.doScrollPos(e,c):q.onscrollend&&q.onscrollend.call(q,{type:"scrollend",current:{x:sx,y:sy},end:{x:q.newscrollx,y:q.newscrolly}})):q.timer=m(g)||1}c="undefined"==typeof c||!1===c?q.getScrollTop(!0):c;if(q.timer&&q.newscrolly==c&&q.newscrollx==b)return!0;q.timer&&r(q.timer);q.timer=0;var e=q.getScrollTop(),f=q.getScrollLeft();(0>(q.newscrolly-e)*(c-e)||0>(q.newscrollx-f)*(b-f))&&q.cancelScroll();q.newscrolly=c;q.newscrollx=b;q.bouncescroll&&q.rail.visibility||(0>q.newscrolly?q.newscrolly=0:q.newscrolly>q.page.maxh&&(q.newscrolly=q.page.maxh));q.bouncescroll&&q.railh.visibility||(0>q.newscrollx?q.newscrollx=0:q.newscrollx>q.page.maxw&&(q.newscrollx=q.page.maxw));q.dst={};q.dst.x=b-f;q.dst.y=c-e;q.dst.px=f;q.dst.py=e;var h=Math.round(Math.sqrt(Math.pow(q.dst.x,2)+Math.pow(q.dst.y,2)));q.dst.ax=q.dst.x/h;q.dst.ay=q.dst.y/h;var k=0,l=h;0==q.dst.x?(k=e,l=c,q.dst.ay=1,q.dst.py=0):0==q.dst.y&&(k=f,l=b,q.dst.ax=1,q.dst.px=0);h=q.getTransitionSpeed(h);d&&1>=d&&(h*=d);q.bzscroll=0=q.page.maxh||f==q.page.maxw&&b>=q.page.maxw)&&q.checkContentSize();var t=1;q.cancelAnimationFrame=!1;q.timer=1;q.onscrollstart&&!q.scrollrunning&&q.onscrollstart.call(q,{type:"scrollstart",current:{x:f,y:e},request:{x:b,y:c},end:{x:q.newscrollx,y:q.newscrolly},speed:h});g();(e==q.page.maxh&&c>=e||f==q.page.maxw&&b>=f)&&q.checkContentSize();q.noticeCursor()}},this.cancelScroll=function(){q.timer&&r(q.timer);q.timer=0;q.bzscroll=!1;q.scrollrunning=!1;return q}):(this.doScrollLeft=function(b,c){var d=q.getScrollTop();q.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=q.getScrollLeft();q.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){var g=b>q.page.maxw?q.page.maxw:b;0>g&&(g=0);var e=c>q.page.maxh?q.page.maxh:c;0>e&&(e=0);q.synched("scroll",function(){q.setScrollTop(e);q.setScrollLeft(g)})},this.cancelScroll=function(){});this.doScrollBy=function(b,c){var d;d=c?Math.floor((q.scroll.y-b)*q.scrollratio.y):(q.timer?q.newscrolly:q.getScrollTop(!0))-b;if(q.bouncescroll){var g=Math.round(q.view.h/2);d<-g?d=-g:d>q.page.maxh+g&&(d=q.page.maxh+g)}q.cursorfreezed=!1;py=q.getScrollTop(!0);if(0>d&&0>=py)return q.noticeCursor();if(d>q.page.maxh&&py>=q.page.maxh)return q.checkContentSize(),q.noticeCursor();q.doScrollTop(d)};this.doScrollLeftBy=function(b,c){var d;d=c?Math.floor((q.scroll.x-b)*q.scrollratio.x):(q.timer?q.newscrollx:q.getScrollLeft(!0))-b;if(q.bouncescroll){var g=Math.round(q.view.w/2);d<-g?d=-g:d>q.page.maxw+g&&(d=q.page.maxw+g)}q.cursorfreezed=!1;px=q.getScrollLeft(!0);if(0>d&&0>=px||d>q.page.maxw&&px>=q.page.maxw)return q.noticeCursor();q.doScrollLeft(d)};this.doScrollTo=function(b,c){c&&Math.round(b*q.scrollratio.y);q.cursorfreezed=!1;q.doScrollTop(b)};this.checkContentSize=function(){var b=q.getContentSize();b.h==q.page.h&&b.w==q.page.w||q.resize(!1,b)};q.onscroll=function(b){q.rail.drag||q.cursorfreezed||q.synched("scroll",function(){q.scroll.y=Math.round(q.getScrollTop()*(1/q.scrollratio.y));q.railh&&(q.scroll.x=Math.round(q.getScrollLeft()*(1/q.scrollratio.x)));q.noticeCursor()})};q.bind(q.docscroll,"scroll",q.onscroll);this.doZoomIn=function(b){if(!q.zoomactive){q.zoomactive=!0;q.zoomrestore={style:{}};var d="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "),g=q.win[0].style,f;for(f in d){var h=d[f];q.zoomrestore.style[h]="undefined"!=typeof g[h]?g[h]:""}q.zoomrestore.style.width=q.win.css("width");q.zoomrestore.style.height=q.win.css("height");q.zoomrestore.padding={w:q.win.outerWidth()-q.win.width(),h:q.win.outerHeight()-q.win.height()};D.isios4&&(q.zoomrestore.scrollTop=c(window).scrollTop(),c(window).scrollTop(0));q.win.css({position:D.isios4?"absolute":"fixed",top:0,left:0,"z-index":e+100,margin:"0px"});d=q.win.css("backgroundColor");(""==d||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(d))&&q.win.css("backgroundColor","#fff");q.rail.css({"z-index":e+101});q.zoom.css({"z-index":e+102});q.zoom.css("backgroundPosition","0px -18px");q.resizeZoom();q.onzoomin&&q.onzoomin.call(q);return q.cancelEvent(b)}};this.doZoomOut=function(b){if(q.zoomactive)return q.zoomactive=!1,q.win.css("margin",""),q.win.css(q.zoomrestore.style),D.isios4&&c(window).scrollTop(q.zoomrestore.scrollTop),q.rail.css({"z-index":q.zindex}),q.zoom.css({"z-index":q.zindex}),q.zoomrestore=!1,q.zoom.css("backgroundPosition","0px 0px"),q.onResize(),q.onzoomout&&q.onzoomout.call(q),q.cancelEvent(b)};this.doZoom=function(b){return q.zoomactive?q.doZoomOut(b):q.doZoomIn(b)};this.resizeZoom=function(){if(q.zoomactive){var b=q.getScrollTop();q.win.css({width:c(window).width()-q.zoomrestore.padding.w+"px",height:c(window).height()-q.zoomrestore.padding.h+"px"});q.onResize();q.setScrollTop(Math.min(q.page.maxh,b))}};this.init();c.nicescroll.push(this)},w=function(b){var c=this;this.nc=b;this.steptime=this.lasttime=this.speedy=this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return+new Date};this.reset=function(b,d){c.stop();var g=c.time();c.steptime=0;c.lasttime=g;c.speedx=0;c.speedy=0;c.lastx=b;c.lasty=d;c.lastscrollx=-1;c.lastscrolly=-1};this.update=function(b,d){var g=c.time();c.steptime=g-c.lasttime;c.lasttime=g;var g=d-c.lasty,e=b-c.lastx,f=c.nc.getScrollTop(),h=c.nc.getScrollLeft(),f=f+g,h=h+e;c.snapx=0>h||h>c.nc.page.maxw;c.snapy=0>f||f>c.nc.page.maxh;c.speedx=e;c.speedy=g;c.lastx=b;c.lasty=d};this.stop=function(){c.nc.unsynched("domomentum2d");c.timer&&clearTimeout(c.timer);c.timer=0;c.lastscrollx=-1;c.lastscrolly=-1};this.doSnapy=function(b,d){var g=!1;0>d?(d=0,g=!0):d>c.nc.page.maxh&&(d=c.nc.page.maxh,g=!0);0>b?(b=0,g=!0):b>c.nc.page.maxw&&(b=c.nc.page.maxw,g=!0);g&&c.nc.doScrollPos(b,d,c.nc.opt.snapbackspeed)};this.doMomentum=function(b){var d=c.time(),g=b?d+b:c.lasttime;b=c.nc.getScrollLeft();var e=c.nc.getScrollTop(),f=c.nc.page.maxh,h=c.nc.page.maxw;c.speedx=0=d-g;if(0>e||e>f||0>b||b>h)g=!1;b=c.speedx&&g?c.speedx:!1;if(c.speedy&&g&&c.speedy||b){var k=Math.max(16,c.steptime);50l||l>h)&&(b=.1);c.speedy&&(m=Math.floor(c.lastscrolly-c.speedy*(1-c.demulxy)),c.lastscrolly=m,0>m||m>f)&&(b=.1);c.demulxy=Math.min(1,c.demulxy+b);c.nc.synched("domomentum2d",function(){c.speedx&&(c.nc.getScrollLeft()!=c.chkx&&c.stop(),c.chkx=l,c.nc.setScrollLeft(l));c.speedy&&(c.nc.getScrollTop()!=c.chky&&c.stop(),c.chky=m,c.nc.setScrollTop(m));c.timer||(c.nc.hideCursor(),c.doSnapy(l,m))});1>c.demulxy?c.timer=setTimeout(t,k):(c.stop(),c.nc.hideCursor(),c.doSnapy(l,m))};t()}else c.doSnapy(c.nc.getScrollLeft(),c.nc.getScrollTop())}},y=c.fn.scrollTop;c.cssHooks.pageYOffset={get:function(b,d,g){return(d=c.data(b,"__nicescroll")||!1)&&d.ishwscroll?d.getScrollTop():y.call(b)},set:function(b,d){var g=c.data(b,"__nicescroll")||!1;g&&g.ishwscroll?g.setScrollTop(parseInt(d)):y.call(b,d);return this}};c.fn.scrollTop=function(b){if("undefined"==typeof b){var d=this[0]?c.data(this[0],"__nicescroll")||!1:!1;return d&&d.ishwscroll?d.getScrollTop():y.call(this)}return this.each(function(){var d=c.data(this,"__nicescroll")||!1;d&&d.ishwscroll?d.setScrollTop(parseInt(b)):y.call(c(this),b)})};var z=c.fn.scrollLeft;c.cssHooks.pageXOffset={get:function(b,d,g){return(d=c.data(b,"__nicescroll")||!1)&&d.ishwscroll?d.getScrollLeft():z.call(b)},set:function(b,d){var g=c.data(b,"__nicescroll")||!1;g&&g.ishwscroll?g.setScrollLeft(parseInt(d)):z.call(b,d);return this}};c.fn.scrollLeft=function(b){if("undefined"==typeof b){var d=this[0]?c.data(this[0],"__nicescroll")||!1:!1;return d&&d.ishwscroll?d.getScrollLeft():z.call(this)}return this.each(function(){var d=c.data(this,"__nicescroll")||!1;d&&d.ishwscroll?d.setScrollLeft(parseInt(b)):z.call(c(this),b)})};var D=function(b){var d=this;this.length=0;this.name="nicescrollarray";this.each=function(b){for(var c=0,g=0;c/g,"\x26gt;"),m.html(n),m=m.width(),b=m+b.comfortZone>=l?m+b.comfortZone:l,m=d.width(),(b=l||b>l&&b=c(b.data.fake_input).val().length)&&c(b.data.real_input).addTag(c(b.data.fake_input).val(),{focus:!0,unique:l.unique}):(c(b.data.fake_input).val(c(b.data.fake_input).attr("data-default")),c(b.data.fake_input).css("color",l.placeholderColor));return!1});c(h.fake_input).bind("keypress",h,function(b){if(b.which==b.data.delimiter.charCodeAt(0)||13==b.which)return b.preventDefault(),b.data.minChars<=c(b.data.fake_input).val().length&&(!b.data.maxChars||b.data.maxChars>=c(b.data.fake_input).val().length)&&c(b.data.real_input).addTag(c(b.data.fake_input).val(),{focus:!0,unique:l.unique}),c(b.data.fake_input).resetAutosize(l),!1;b.data.autosize&&c(b.data.fake_input).doAutosize(l)});h.removeWithBackspace&&c(h.fake_input).bind("keydown",function(b){if(8==b.keyCode&&""==c(this).val()){b.preventDefault();b=c(this).closest(".tagsinput").find(".tag:last").text();var d=c(this).attr("id").replace(/_tag$/,"");b=b.replace(/[\s]+x$/,"");c("#"+d).removeTag(escape(b));c(this).trigger("focus")}});c(h.fake_input).blur();h.unique&&c(h.fake_input).keydown(function(b){(8==b.keyCode||String.fromCharCode(b.which).match(/\w+|[\u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1,/]+/))&&c(this).removeClass("not_valid")})}});return this};c.fn.tagsInput.updateTagsField=function(b,l){var e=c(b).attr("id");c(b).val(l.join(p[e]))};c.fn.tagsInput.importTags=function(h,l){c(h).val("");var e=c(h).attr("id"),n=l.split(p[e]);for(i=0;iC.captions.length-1){C.subcount=C.captions.length-1;break}b=C.media.currentTime.toFixed(1);var c;c=C.captions[C.subcount][0].split(" --\x3e ");c=E(c[0]);b>=c&&C.media.currentTime.toFixed(1)<=A(C.captions[C.subcount][0])?(C.currentCaption=C.captions[C.subcount][1],b=C.currentCaption.trim(),C.captionsContainer.innerHTML!=b&&(C.captionsContainer.innerHTML="",C.captionsContainer.innerHTML=b)):C.captionsContainer.innerHTML=""}}function A(b){b=b.split(" --\x3e ");return E(b[1])}function E(b){if(null===b||void 0===b)return 0;b=b.split(",")[0].split(":");return Math.floor(3600*b[0])+Math.floor(60*b[1])+Math.floor(b[2])}function G(b){return C.container.querySelectorAll(b)[0]}function q(b){for(var c=C.container.querySelectorAll('[id^\x3d"youtube"]'),g=c.length-1;0<=g;g--)d(c[g]);var e=document.createElement("div");e.setAttribute("id","youtube-"+Math.floor(1E4*Math.random()));C.media.appendChild(e);m(C.media,z.classes.videoWrapper,!0);m(C.media,z.classes.embedWrapper,!0);"object"===typeof YT?H(b,e):(l("https://www.youtube.com/iframe_api"),D.youtube.push(function(){H(b,e)}),window.onYouTubeIframeAPIReady=function(){for(var b=D.youtube.length-1;0<=b;b--)D.youtube[b](),D.youtube.splice(b,1)})}function H(b,c){p("YouTube API Ready");"timer"in C||(C.timer={});C.embed=new YT.Player(c.id,{videoId:b,playerVars:{autoplay:0,controls:C.supported.full?0:1,rel:0,showinfo:0,iv_load_policy:3,cc_load_policy:z.captions.defaultActive?1:0,cc_lang_pref:"en",wmode:"transparent",modestbranding:1,disablekb:1},events:{onReady:function(b){var c=b.target;C.media.play=function(){c.playVideo()};C.media.pause=function(){c.pauseVideo()};C.media.stop=function(){c.stopVideo()};C.media.duration=c.getDuration();C.media.paused=!0;C.media.currentTime=c.getCurrentTime();C.media.muted=c.isMuted();k(C.media,"timeupdate");window.clearInterval(C.timer.buffering);C.timer.buffering=window.setInterval(function(){C.media.buffered=c.getVideoLoadedFraction();k(C.media,"progress");1===C.media.buffered&&window.clearInterval(C.timer.buffering)},200);C.supported.full&&(C.container.querySelectorAll(z.selectors.controls).length||Ia(),z.displayDuration&&ga())},onStateChange:function(b){var c=b.target;window.clearInterval(C.timer.playing);switch(b.data){case 0:C.media.paused=!0;k(C.media,"ended");break;case 1:C.media.paused=!1;k(C.media,"play");C.timer.playing=window.setInterval(function(){C.media.currentTime=c.getCurrentTime();k(C.media,"timeupdate")},200);break;case 2:C.media.paused=!0,k(C.media,"pause")}}}})}function L(){if("video"===C.type){C.videoContainer.insertAdjacentHTML("afterbegin",'\x3cdiv class\x3d"'+z.selectors.captions.replace(".","")+'"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/div\x3e');C.captionsContainer=G(z.selectors.captions).querySelector("span");C.usingTextTracks=!1;C.media.textTracks&&(C.usingTextTracks=!0);for(var b="",c,d=C.media.childNodes,g=0;gc?c=0:c>C.media.duration&&(c=C.media.duration);try{C.media.currentTime=c.toFixed(1)}catch(g){}"youtube"==C.type&&(C.embed.seekTo(c),d&&K(),k(C.media,"timeupdate"));p("Seeking to "+C.media.currentTime+" seconds");v(c)}function P(){m(C.container,z.classes.playing,!C.media.paused);m(C.container,z.classes.stopped,C.media.paused)}function T(b){function c(){m(C.container,z.classes.hover,!0);window.clearTimeout(e);h||(e=window.setTimeout(function(){m(C.container,z.classes.hover,!1)},2E3))}function d(b){h="mouseenter"===b.type}var g=y.supportsFullScreen;b&&b.type===y.fullScreenEventName?C.isFullscreen=y.isFullScreen(C.container):g?(y.isFullScreen(C.container)?y.cancelFullScreen():y.requestFullScreen(C.container),C.isFullscreen=y.isFullScreen(C.container)):(C.isFullscreen=!C.isFullscreen,C.isFullscreen?(f(document,"keyup",S),document.body.style.overflow="hidden"):(document&&r(document,"keyup",S,!1),document.body.style.overflow=""));m(C.container,z.classes.fullscreen.active,C.isFullscreen);u(C.buttons.fullscreen,C.isFullscreen);var e,h=!1;z.fullscreen.hideControls&&(m(C.controls,z.classes.hover,!1),r(C.controls,"mouseenter mouseleave",d,C.isFullscreen),r(C.container,"mousemove",c,C.isFullscreen))}function S(b){27===(b.which||b.charCode||b.keyCode)&&C.isFullscreen&&T()}function R(b){"undefined"===typeof b&&(b=z.storage.enabled&&t().supported?window.localStorage[z.storage.key]||z.volume:z.volume);10b&&(b=0);C.media.volume=parseFloat(b/10);"youtube"==C.type&&(C.embed.setVolume(100*C.media.volume),k(C.media,"volumechange"));C.media.muted&&0=d.version,g=/iPhone|iPod/i.test(navigator.userAgent),e=!!document.createElement("audio").canPlayType,f=!!document.createElement("video").canPlayType;switch(c){case "video":d=(c=f)&&!d&&!g;break;case "audio":d=(c=e)&&!d;break;case "youtube":c=!0;d=!d&&!g;break;default:d=(c=e&&f)&&!d}return{basic:c,full:d}};c.setup=function(b){z=v(A,b);if(!z.enabled||!c.supported().basic)return!1;b=document.querySelectorAll(z.selectors.container);for(var d=[],g=b.length-1;0<=g;g--){var e=b[g];if("undefined"===typeof e.plyr){var f=new w(e);e.plyr=Object.keys(f).length?f:!1;"function"===typeof z.onSetup&&z.onSetup.apply(e.plyr)}d.push(e.plyr)}return d}})(this.plyr=this.plyr||{});(function(c,p,b,h){function l(b,d){this.element=b;this.$elem=c(this.element);this.options=c.extend({},e,d);this._defaults=e;this._name="strength";this.init()}var e={strengthClass:"strength",strengthMeterClass:"strength_meter",strengthButtonClass:"button_strength",strengthButtonText:"Show Password",strengthButtonTextToggle:"Hide Password"};l.prototype={init:function(){function e(b,g){d=8=t?(n.removeClass(),n.addClass("veryweak").html("\x3cp\x3e\u5f3a\u5ea6: \u5f88\u5f31\x3c/p\x3e")):2==t?(n.removeClass(),n.addClass("weak").html("\x3cp\x3e\u5f3a\u5ea6: \u8f83\u5f31\x3c/p\x3e")):3==t?(n.removeClass(),n.addClass("medium").html("\x3cp\x3e\u5f3a\u5ea6: \u4e00\u822c\x3c/p\x3e")):(n.removeClass(),n.addClass("strong").html("\x3cp\x3e\u5f3a\u5ea6: \u5f3a\x3c/p\x3e"))}var d=0,h=0,l=0,f=0,k=/[A-Z]/,p=/[a-z]/,x=/[0-9]/,v=!1,g=this.options.strengthButtonText,t=this.options.strengthButtonTextToggle;thisid=this.$elem.attr("id");this.$elem.addClass(this.options.strengthClass).attr("data-password",thisid).after('\x3cinput style\x3d"display:none" class\x3d"'+this.options.strengthClass+'" data-password\x3d"'+thisid+'" type\x3d"text" name\x3d"" value\x3d""\x3e\x3ca data-password-button\x3d"'+thisid+'" href\x3d"" class\x3d"'+this.options.strengthButtonClass+'"\x3e'+this.options.strengthButtonText+'\x3c/a\x3e\x3cdiv class\x3d"'+this.options.strengthMeterClass+'"\x3e\x3cdiv data-meter\x3d"'+thisid+'"\x3e\x3cp\x3e\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e');this.$elem.bind("keyup keydown",function(b){thisval=c("#"+thisid).val();c('input[type\x3d"text"][data-password\x3d"'+thisid+'"]').val(thisval);e(thisval,thisid)});c('input[type\x3d"text"][data-password\x3d"'+thisid+'"]').bind("keyup keydown",function(b){thisval=c('input[type\x3d"text"][data-password\x3d"'+thisid+'"]').val();c('input[type\x3d"password"][data-password\x3d"'+thisid+'"]').val(thisval);e(thisval,thisid)});c(b.body).on("click","."+this.options.strengthButtonClass,function(b){b.preventDefault();thisclass="hide_"+c(this).attr("class");v?(c('input[type\x3d"text"][data-password\x3d"'+thisid+'"]').hide(),c('input[type\x3d"password"][data-password\x3d"'+thisid+'"]').show().focus(),c('a[data-password-button\x3d"'+thisid+'"]').removeClass(thisclass).html(g),v=!1):(c('input[type\x3d"text"][data-password\x3d"'+thisid+'"]').show().focus(),c('input[type\x3d"password"][data-password\x3d"'+thisid+'"]').hide(),c('a[data-password-button\x3d"'+thisid+'"]').addClass(thisclass).html(t),v=!0)})},yourOtherFunction:function(b,c){}};c.fn.strength=function(b){return this.each(function(){c.data(this,"plugin_strength")||c.data(this,"plugin_strength",new l(this,b))})}})(jQuery,window,document);(function(){function c(p,b,h){var l=c.resolve(p);if(null==l)throw h=h||p,b=b||"root",l=Error('Failed to require "'+h+'" from "'+b+'"'),l.path=h,l.parent=b,l.require=!0,l;b=c.modules[l];b._resolving||b.exports||(h={exports:{}},h.client=h.component=!0,b._resolving=!0,b.call(this,h.exports,c.relative(l),h),delete b._resolving,b.exports=h.exports);return b.exports}c.modules={};c.aliases={};c.resolve=function(p){"/"===p.charAt(0)&&(p=p.slice(1));for(var b=[p,p+".js",p+".json",p+"/index.js",p+"/index.json"],h=0;hd.offsetHeight){c=d;b.fastClickScrollParent=d;break}d=d.parentElement}while(d)}c&&(c.fastClickLastScrollTop=c.scrollTop)};l.prototype.getTargetElementFromEventTarget=function(b){return b.nodeType===Node.TEXT_NODE?b.parentNode:b};l.prototype.onTouchStart=function(b){var c,d,h;if(1b.timeStamp-this.lastClickTime&&b.preventDefault();return!0};l.prototype.touchHasMoved=function(b){b=b.changedTouches[0];var c=this.touchBoundary;return Math.abs(b.pageX-this.touchStartX)>c||Math.abs(b.pageY-this.touchStartY)>c?!0:!1};l.prototype.onTouchMove=function(b){if(!this.trackingClick)return!0;if(this.targetElement!==this.getTargetElementFromEventTarget(b.target)||this.touchHasMoved(b))this.trackingClick=!1,this.targetElement=null;return!0};l.prototype.findControl=function(b){return void 0!==b.control?b.control:b.htmlFor?document.getElementById(b.htmlFor):b.querySelector("button, input:not([type\x3dhidden]), keygen, meter, output, progress, select, textarea")};l.prototype.onTouchEnd=function(b){var c,d,h=this.targetElement;if(!this.trackingClick)return!0;if(200>b.timeStamp-this.lastClickTime)return this.cancelNextClick=!0;this.cancelNextClick=!1;this.lastClickTime=b.timeStamp;c=this.trackingClickStart;this.trackingClick=!1;this.trackingClickStart=0;this.deviceIsIOSWithBadTarget&&(d=b.changedTouches[0],h=document.elementFromPoint(d.pageX-window.pageXOffset,d.pageY-window.pageYOffset)||h,h.fastClickScrollParent=this.targetElement.fastClickScrollParent);d=h.tagName.toLowerCase();if("label"===d){if(c=this.findControl(h)){this.focus(h);if(this.deviceIsAndroid)return!1;h=c}}else if(this.needsFocus(h)){if(100=this.input.length)return c.length?c.join(""):["","TK_EOF"];b=this.input.charAt(this.pos);this.pos++;this.line_char_count++;if(this.Utils.in_array(b,this.Utils.whitespace))c.length&&(d=!0),this.line_char_count--;else{if(d){if(this.line_char_count>=this.max_char){c.push("\n");for(d=0;d=this.input.length)return b&&(this.pos=h,this.line_char_count=k),d.length?d.join(""):["","TK_EOF"];c=this.input.charAt(this.pos);this.pos++;this.line_char_count++;if(this.Utils.in_array(c,this.Utils.whitespace))g=!0,this.line_char_count--;else{if("'"===c||'"'===c)d[1]&&"!"===d[1]||(c+=this.get_unformatted(c),g=!0);"\x3d"===c&&(g=!1);d.length&&"\x3d"!==d[d.length-1]&&"\x3e"!==c&&g&&(this.line_char_count>=this.max_char?(this.print_newline(!1,d),this.line_char_count=0):(d.push(" "),this.line_char_count++),g=!1);"\x3c"===c&&(e=this.pos-1);d.push(c)}}while("\x3e"!==c);c=d.join("");g=-1!==c.indexOf(" ")?c.indexOf(" "):c.indexOf("\x3e");g=c.substring(1,g).toLowerCase();"/"===c.charAt(c.length-2)||this.Utils.in_array(g,this.Utils.single_token)?b||(this.tag_type="SINGLE"):"script"===g?b||(this.record_tag(g),this.tag_type="SCRIPT"):"style"===g?b||(this.record_tag(g),this.tag_type="STYLE"):this.is_unformatted(g,f)?(c=this.get_unformatted("\x3c/"+g+"\x3e",c),d.push(c),0=this.input.length)break;d=this.input.charAt(this.pos);this.pos++;if(this.Utils.in_array(d,this.Utils.whitespace)){if(!e){this.line_char_count--;continue}if("\n"===d||"\r"===d){g+="\n";this.line_char_count=0;continue}}g+=d;this.line_char_count++;e=!0}while(-1===g.toLowerCase().indexOf(b));return g};this.get_token=function(){var b;if("TK_TAG_SCRIPT"===this.last_token||"TK_TAG_STYLE"===this.last_token){var c=this.last_token.substr(7);b=this.get_contents_to(c);return"string"!==typeof b?b:[b,"TK_"+c]}if("CONTENT"===this.current_mode)return b=this.get_content(),"string"!==typeof b?b:[b,"TK_CONTENT"];if("TAG"===this.current_mode)return b=this.get_tag(),"string"!==typeof b?b:[b,"TK_TAG_"+this.tag_type]};this.get_full_indent=function(b){b=this.indent_level+b||0;return 1>b?"":Array(b+1).join(this.indent_string)};this.is_unformatted=function(b,c){if(!this.Utils.in_array(b,c))return!1;if("a"!==b.toLowerCase()||!this.Utils.in_array("a",c))return!0;var d=(this.get_tag(!0)||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!d||this.Utils.in_array(d,c)?!0:!1};this.printer=function(b,c,d,g,e){this.input=b||"";this.output=[];this.indent_character=c;this.indent_string="";this.indent_size=d;this.brace_style=e;this.indent_level=0;this.max_char=g;for(b=this.line_char_count=0;bb)){for(var d=b,m=this.seekNext(c);dh)return!0;if(h)return 0!==d.end-d.begin&&(this.clearBuffer(d.begin,d.end),this.shiftL(d.begin,d.end-1)),b=this.seekNext(d.begin-1),bh.length)break}else this.buffer[m]==h.charAt(p)&&m!=this.partialPosition&&(p++,d=m);if(!b&&d+1=this.partialPosition)this.writeBuffer(),b||this.$element.val(this.$element.val().substring(0,d+1));return this.partialPosition?m:this.firstNonMaskPos}};c.fn.inputmask=function(b){return this.each(function(){var e=c(this);e.data("inputmask")||e.data("inputmask",new h(this,b))})};c.fn.inputmask.defaults={mask:"",placeholder:"_",definitions:{9:"[0-9]",a:"[A-Za-z]","?":"[A-Za-z0-9]","*":"."}};c.fn.inputmask.Constructor=h;c(document).on("focus.inputmask.data-api","[data-mask]",function(b){var e=c(this);e.data("inputmask")||(b.preventDefault(),e.inputmask(e.data()))})}(window.jQuery);(function(){var c=[].slice;(function(p,b){var h;h=function(){function c(b,h){null==h&&(h={});this.$element=p(b);this.options=p.extend({},p.fn.bootstrapSwitch.defaults,{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is(":disabled"),readonly:this.$element.is("[readonly]"),indeterminate:this.$element.data("indeterminate"),inverse:this.$element.data("inverse"),radioAllOff:this.$element.data("radio-all-off"),onColor:this.$element.data("on-color"),offColor:this.$element.data("off-color"),onText:this.$element.data("on-text"),offText:this.$element.data("off-text"),labelText:this.$element.data("label-text"),handleWidth:this.$element.data("handle-width"),labelWidth:this.$element.data("label-width"),baseClass:this.$element.data("base-class"),wrapperClass:this.$element.data("wrapper-class")},h);this.prevOptions={};this.$wrapper=p("\x3cdiv\x3e",{"class":function(b){return function(){var c;c=[""+b.options.baseClass].concat(b._getClasses(b.options.wrapperClass));c.push(b.options.state?b.options.baseClass+"-on":b.options.baseClass+"-off");null!=b.options.size&&c.push(b.options.baseClass+"-"+b.options.size);b.options.disabled&&c.push(b.options.baseClass+"-disabled");b.options.readonly&&c.push(b.options.baseClass+"-readonly");b.options.indeterminate&&c.push(b.options.baseClass+"-indeterminate");b.options.inverse&&c.push(b.options.baseClass+"-inverse");b.$element.attr("id")&&c.push(b.options.baseClass+"-id-"+b.$element.attr("id"));return c.join(" ")}}(this)()});this.$container=p("\x3cdiv\x3e",{"class":this.options.baseClass+"-container"});this.$on=p("\x3cspan\x3e",{html:this.options.onText,"class":this.options.baseClass+"-handle-on "+this.options.baseClass+"-"+this.options.onColor});this.$off=p("\x3cspan\x3e",{html:this.options.offText,"class":this.options.baseClass+"-handle-off "+this.options.baseClass+"-"+this.options.offColor});this.$label=p("\x3cspan\x3e",{html:this.options.labelText,"class":this.options.baseClass+"-label"});this.$element.on("init.bootstrapSwitch",function(c){return function(){return c.options.onInit.apply(b,arguments)}}(this));this.$element.on("switchChange.bootstrapSwitch",function(c){return function(h){if(!1===c.options.onSwitchChange.apply(b,arguments))return c.$element.is(":radio")?p("[name\x3d'"+c.$element.attr("name")+"']").trigger("previousState.bootstrapSwitch",!0):c.$element.trigger("previousState.bootstrapSwitch",!0)}}(this));this.$container=this.$element.wrap(this.$container).parent();this.$wrapper=this.$container.wrap(this.$wrapper).parent();this.$element.before(this.options.inverse?this.$off:this.$on).before(this.$label).before(this.options.inverse?this.$on:this.$off);this.options.indeterminate&&this.$element.prop("indeterminate",!0);this._init();this._elementHandlers();this._handleHandlers();this._labelHandlers();this._formHandler();this._externalLabelHandler();this.$element.trigger("init.bootstrapSwitch",this.options.state)}c.prototype._constructor=c;c.prototype.setPrevOptions=function(){return this.prevOptions=p.extend(!0,{},this.options)};c.prototype.state=function(b,c){if("undefined"===typeof b)return this.options.state;if(this.options.disabled||this.options.readonly||this.options.state&&!this.options.radioAllOff&&this.$element.is(":radio"))return this.$element;this.$element.is(":radio")?p("[name\x3d'"+this.$element.attr("name")+"']").trigger("setPreviousOptions.bootstrapSwitch"):this.$element.trigger("setPreviousOptions.bootstrapSwitch");this.options.indeterminate&&this.indeterminate(!1);this.$element.prop("checked",!!b).trigger("change.bootstrapSwitch",c);return this.$element};c.prototype.toggleState=function(b){return this.options.disabled||this.options.readonly?this.$element:this.options.indeterminate?(this.indeterminate(!1),this.state(!0)):this.$element.prop("checked",!this.options.state).trigger("change.bootstrapSwitch",b)};c.prototype.size=function(b){if("undefined"===typeof b)return this.options.size;null!=this.options.size&&this.$wrapper.removeClass(this.options.baseClass+"-"+this.options.size);b&&this.$wrapper.addClass(this.options.baseClass+"-"+b);this._width();this._containerPosition();this.options.size=b;return this.$element};c.prototype.animate=function(b){return"undefined"===typeof b?this.options.animate:!!b===this.options.animate?this.$element:this.toggleAnimate()};c.prototype.toggleAnimate=function(){this.options.animate=!this.options.animate;this.$wrapper.toggleClass(this.options.baseClass+"-animate");return this.$element};c.prototype.disabled=function(b){return"undefined"===typeof b?this.options.disabled:!!b===this.options.disabled?this.$element:this.toggleDisabled()};c.prototype.toggleDisabled=function(){this.options.disabled=!this.options.disabled;this.$element.prop("disabled",this.options.disabled);this.$wrapper.toggleClass(this.options.baseClass+"-disabled");return this.$element};c.prototype.readonly=function(b){return"undefined"===typeof b?this.options.readonly:!!b===this.options.readonly?this.$element:this.toggleReadonly()};c.prototype.toggleReadonly=function(){this.options.readonly=!this.options.readonly;this.$element.prop("readonly",this.options.readonly);this.$wrapper.toggleClass(this.options.baseClass+"-readonly");return this.$element};c.prototype.indeterminate=function(b){return"undefined"===typeof b?this.options.indeterminate:!!b===this.options.indeterminate?this.$element:this.toggleIndeterminate()};c.prototype.toggleIndeterminate=function(){this.options.indeterminate=!this.options.indeterminate;this.$element.prop("indeterminate",this.options.indeterminate);this.$wrapper.toggleClass(this.options.baseClass+"-indeterminate");this._containerPosition();return this.$element};c.prototype.inverse=function(b){return"undefined"===typeof b?this.options.inverse:!!b===this.options.inverse?this.$element:this.toggleInverse()};c.prototype.toggleInverse=function(){var b,c;this.$wrapper.toggleClass(this.options.baseClass+"-inverse");c=this.$on.clone(!0);b=this.$off.clone(!0);this.$on.replaceWith(b);this.$off.replaceWith(c);this.$on=b;this.$off=c;this.options.inverse=!this.options.inverse;return this.$element};c.prototype.onColor=function(b){var c;c=this.options.onColor;if("undefined"===typeof b)return c;null!=c&&this.$on.removeClass(this.options.baseClass+"-"+c);this.$on.addClass(this.options.baseClass+"-"+b);this.options.onColor=b;return this.$element};c.prototype.offColor=function(b){var c;c=this.options.offColor;if("undefined"===typeof b)return c;null!=c&&this.$off.removeClass(this.options.baseClass+"-"+c);this.$off.addClass(this.options.baseClass+"-"+b);this.options.offColor=b;return this.$element};c.prototype.onText=function(b){if("undefined"===typeof b)return this.options.onText;this.$on.html(b);this._width();this._containerPosition();this.options.onText=b;return this.$element};c.prototype.offText=function(b){if("undefined"===typeof b)return this.options.offText;this.$off.html(b);this._width();this._containerPosition();this.options.offText=b;return this.$element};c.prototype.labelText=function(b){if("undefined"===typeof b)return this.options.labelText;this.$label.html(b);this._width();this.options.labelText=b;return this.$element};c.prototype.handleWidth=function(b){if("undefined"===typeof b)return this.options.handleWidth;this.options.handleWidth=b;this._width();this._containerPosition();return this.$element};c.prototype.labelWidth=function(b){if("undefined"===typeof b)return this.options.labelWidth;this.options.labelWidth=b;this._width();this._containerPosition();return this.$element};c.prototype.baseClass=function(b){return this.options.baseClass};c.prototype.wrapperClass=function(b){if("undefined"===typeof b)return this.options.wrapperClass;b||(b=p.fn.bootstrapSwitch.defaults.wrapperClass);this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" "));this.$wrapper.addClass(this._getClasses(b).join(" "));this.options.wrapperClass=b;return this.$element};c.prototype.radioAllOff=function(b){if("undefined"===typeof b)return this.options.radioAllOff;b=!!b;if(b===this.options.radioAllOff)return this.$element;this.options.radioAllOff=b;return this.$element};c.prototype.onInit=function(b){if("undefined"===typeof b)return this.options.onInit;b||(b=p.fn.bootstrapSwitch.defaults.onInit);this.options.onInit=b;return this.$element};c.prototype.onSwitchChange=function(b){if("undefined"===typeof b)return this.options.onSwitchChange;b||(b=p.fn.bootstrapSwitch.defaults.onSwitchChange);this.options.onSwitchChange=b;return this.$element};c.prototype.destroy=function(){var b;b=this.$element.closest("form");b.length&&b.off("reset.bootstrapSwitch").removeData("bootstrap-switch");this.$container.children().not(this.$element).remove();this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch");return this.$element};c.prototype._width=function(){var b,c;b=this.$on.add(this.$off);b.add(this.$label).css("width","");c="auto"===this.options.handleWidth?Math.max(this.$on.width(),this.$off.width()):this.options.handleWidth;b.width(c);this.$label.width(function(b){return function(e,h){return"auto"!==b.options.labelWidth?b.options.labelWidth:h-(b._handleWidth/2),b._dragEnd=!1,b.state(b.options.inverse?!c:c)):b.state(!b.options.state),b._dragStart=!1}}(this),"mouseleave.bootstrapSwitch":function(b){return function(c){return b.$label.trigger("mouseup.bootstrapSwitch")}}(this)})};c.prototype._externalLabelHandler=function(){var b;b=this.$element.closest("label");return b.on("click",function(c){return function(d){d.preventDefault();d.stopImmediatePropagation();if(d.target===b[0])return c.toggleState()}}(this))};c.prototype._formHandler=function(){var c;c=this.$element.closest("form");if(!c.data("bootstrap-switch"))return c.on("reset.bootstrapSwitch",function(){return b.setTimeout(function(){return c.find("input").filter(function(){return p(this).data("bootstrap-switch")}).each(function(){return p(this).bootstrapSwitch("state",this.checked)})},1)}).data("bootstrap-switch",!0)};c.prototype._getClasses=function(b){var c,d,h,l;if(!p.isArray(b))return[this.options.baseClass+"-"+b];d=[];h=0;for(l=b.length;h=d.options.levels&&d._toggleNodes(c);var e=c.nodes?c.nodes:c._nodes?c._nodes:h;if(e)return d._setInitialLevels(e,l)})}},_toggleNodes:function(b){if(b.nodes||b._nodes)b.nodes?(b._nodes=b.nodes,delete b.nodes):(b.nodes=b._nodes,delete b._nodes)},_render:function(){this.initialized||(this.$element.addClass("treeview"),this.$wrapper=c(this._template.list),this._injectStyle(),this.initialized=!0);this.$element.empty().append(this.$wrapper.empty());this.nodes=[];this._buildTree(this.tree,0)},_buildTree:function(b,h){if(b){h+=1;var d=this;c.each(b,function(b,e){e.nodeId=d.nodes.length;d.nodes.push(e);for(var f=c(d._template.item).addClass("node-"+d._elementId).addClass(e===d.selectedNode?"node-selected":"").attr("data-nodeid",e.nodeId).attr("style",d._buildStyleOverride(e)),k=0;kn?b:n)-e-1),this.slideWidth*l,0);b=this.circle(b);this.move(n,this.slideWidth*l,c);this.move(b,0,c);this.options.continuous&&this.move(this.circle(b-l),-(this.slideWidth*l),0)}else b=this.circle(b),this.animate(n*-this.slideWidth,b*-this.slideWidth,c);this.onslide(b)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.indexl?(e.slidesContainer[0].style.left=c+"px",e.ontransitionend(),void window.clearInterval(d)):void(e.slidesContainer[0].style.left=Math.floor(m/l*100)/100*(c-b)+b+"px")},4)},preventDefault:function(b){b.preventDefault?b.preventDefault():b.returnValue=!1},stopPropagation:function(b){b.stopPropagation?b.stopPropagation():b.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onmousedown:function(b){b.which&&1===b.which&&"VIDEO"!==b.target.nodeName&&(b.preventDefault(),(b.originalEvent||b).touches=[{pageX:b.pageX,pageY:b.pageY}],this.ontouchstart(b))},onmousemove:function(b){this.touchStart&&((b.originalEvent||b).touches=[{pageX:b.pageX,pageY:b.pageY}],this.ontouchmove(b))},onmouseup:function(b){this.touchStart&&(this.ontouchend(b),delete this.touchStart)},onmouseout:function(b){if(this.touchStart){var h=b.target,l=b.relatedTarget;l&&(l===h||c.contains(h,l))||this.onmouseup(b)}},ontouchstart:function(b){this.options.stopTouchEventsPropagation&&this.stopPropagation(b);b=(b.originalEvent||b).touches[0];this.touchStart={x:b.pageX,y:b.pageY,time:Date.now()};this.isScrolling=void 0;this.touchDelta={}},ontouchmove:function(b){this.options.stopTouchEventsPropagation&&this.stopPropagation(b);var c,l,e=(b.originalEvent||b).touches[0],n=(b.originalEvent||b).scale,d=this.index;if(!(1c?Math.abs(c)/this.slideWidth+1:1,l=[d],d&&l.push(d-1),dNumber(Date.now()-this.touchStart.time))&&20p/2,k=!b&&0this.touchDelta.x,u=!f&&this.options.closeOnSwipeUpOrDown&&(c&&20this.slideHeight/2);this.options.continuous&&(k=!1);c=0>this.touchDelta.x?-1:1;this.isScrolling?u?this.close():this.translateY(b,0,m):f&&!k?(l=b+c,e=b-c,n=p*c,d=-p*c,this.options.continuous?(this.move(this.circle(l),n,0),this.move(this.circle(b-2*c),d,0)):0<=l&&lthis.container[0].clientHeight&&(l.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===e&&this.play(),this.setTimeout(this.options.onslidecomplete,[h,e]))},onload:function(b){this.oncomplete(b)},onerror:function(b){this.oncomplete(b)},onkeydown:function(b){switch(b.which||b.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(b),this.toggleControls());break;case 27:this.options.closeOnEscape&&(this.close(),b.stopImmediatePropagation());break;case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(b),this.toggleSlideshow());break;case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(b),this.prev());break;case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(b),this.next())}},handleClick:function(b){var h=this.options,l=b.target||b.srcElement,e=l.parentNode,n=function(b){return c(l).hasClass(b)||c(e).hasClass(b)};n(h.toggleClass)?(this.preventDefault(b),this.toggleControls()):n(h.prevClass)?(this.preventDefault(b),this.prev()):n(h.nextClass)?(this.preventDefault(b),this.next()):n(h.closeClass)?(this.preventDefault(b),this.close()):n(h.playPauseClass)?(this.preventDefault(b),this.toggleSlideshow()):e===this.slidesContainer[0]?(this.preventDefault(b),h.closeOnSlideClick?this.close():this.toggleControls()):e.parentNode&&e.parentNode===this.slidesContainer[0]&&(this.preventDefault(b),this.toggleControls())},onclick:function(b){return this.options.emulateTouchEvents&&this.touchDelta&&(20b;b+=1)l+=b*(0===b%2?-1:1),l=this.circle(l),this.loadElement(l)},unloadElements:function(b){var c,l;for(c in this.elements)this.elements.hasOwnProperty(c)&&(l=Math.abs(b-c),l>this.options.preloadRange&&l+this.options.preloadRangeb?-this.slideWidth:this.indexb;b++)this.unloadSlide(b)},toggleControls:function(){var b=this.options.controlsClass;this.container.hasClass(b)?this.container.removeClass(b):this.container.addClass(b)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(b){return parseInt(b.getAttribute("data-index"),10)},getNestedProperty:function(b,c){return c.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(c,e,h,d,m){e=m||e||h||d&&parseInt(d,10);c&&b&&(b=b[e])}),b},getDataProperty:function(b,h){if(b.getAttribute){var l=b.getAttribute("data-"+h.replace(/([A-Z])/g,"-$1").toLowerCase());if("string"==typeof l){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(l))try{return c.parseJSON(l)}catch(e){}return l}}},getItemProperty:function(b,c){var l=b[c];return void 0===l&&(l=this.getDataProperty(b,c),void 0===l&&(l=this.getNestedProperty(b,c))),l},initStartIndex:function(){var b,c=this.options.index,l=this.options.urlProperty;if(c&&"number"!=typeof c)for(b=0;bthis.num&&(this.options.continuous=this.options.continuous?null:!1);this.support.transition||(this.options.emulateTouchEvents=!1);this.options.event&&this.preventDefault(this.options.event)}}),p});(function(c){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],c):c(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)})(function(c,p){c.extend(p.prototype.options,{fullScreen:!1});var b=p.prototype.initialize,h=p.prototype.close;return c.extend(p.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(b){b.requestFullscreen?b.requestFullscreen():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen&&b.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){b.call(this);this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen();h.call(this)}}),p});(function(c){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],c):c(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)})(function(c,p){c.extend(p.prototype.options,{indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0});var b=p.prototype.initSlides,h=p.prototype.addSlide,l=p.prototype.resetSlides,e=p.prototype.handleClick,n=p.prototype.handleSlide,d=p.prototype.handleClose;return c.extend(p.prototype,{createIndicator:function(b){var d,e,h=this.indicatorPrototype.cloneNode(!1),l=this.getItemProperty(b,this.options.titleProperty),n=this.options.thumbnailProperty;return this.options.thumbnailIndicators&&(n&&(d=this.getItemProperty(b,n)),void 0===d&&(e=b.getElementsByTagName&&c(b).find("img")[0],e&&(d=e.src)),d&&(h.style.backgroundImage='url("'+d+'")')),l&&(h.title=l),h},addIndicator:function(b){if(this.indicatorContainer.length){var c=this.createIndicator(this.list[b]);c.setAttribute("data-index",b);this.indicatorContainer[0].appendChild(c);this.indicators.push(c)}},setActiveIndicator:function(b){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=c(this.indicators[b]),this.activeIndicator.addClass(this.options.activeIndicatorClass))},initSlides:function(c){c||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement("li"),this.indicators=this.indicatorContainer[0].children));b.call(this,c)},addSlide:function(b){h.call(this,b);this.addIndicator(b)},resetSlides:function(){l.call(this);this.indicatorContainer.empty();this.indicators=[]},handleClick:function(b){var c=b.target||b.srcElement,d=c.parentNode;if(d===this.indicatorContainer[0])this.preventDefault(b),this.slide(this.getNodeIndex(c));else{if(d.parentNode!==this.indicatorContainer[0])return e.call(this,b);this.preventDefault(b);this.slide(this.getNodeIndex(d))}},handleSlide:function(b){n.call(this,b);this.setActiveIndicator(b)},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass);d.call(this)}}),p});(function(c){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],c):c(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)})(function(c,p){c.extend(p.prototype.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"});var b=p.prototype.handleSlide;return c.extend(p.prototype,{handleSlide:function(c){b.call(this,c);this.playingVideo&&this.playingVideo.pause()},videoFactory:function(b,l,e){var n,d,m,p,f,k=this,u=this.options,x=this.elementPrototype.cloneNode(!1),v=c(x),g=[{type:"error",target:x}],t=e||document.createElement("video"),w=this.getItemProperty(b,u.urlProperty),y=this.getItemProperty(b,u.typeProperty),z=this.getItemProperty(b,u.titleProperty),D=this.getItemProperty(b,u.videoPosterProperty);b=this.getItemProperty(b,u.videoSourcesProperty);if(v.addClass(u.videoContentClass),z&&(x.title=z),t.canPlayType)if(w&&y&&t.canPlayType(y))t.src=w;else for(;b&&b.length;)if(d=b.shift(),w=this.getItemProperty(d,u.urlProperty),y=this.getItemProperty(d,u.typeProperty),w&&y&&t.canPlayType(y)){t.src=w;break}return D&&(t.poster=D,n=this.imagePrototype.cloneNode(!1),c(n).addClass(u.toggleClass),n.src=D,n.draggable=!1,x.appendChild(n)),m=document.createElement("a"),m.setAttribute("target","_blank"),e||m.setAttribute("download",z),m.href=w,t.src&&(t.controls=!0,(e||c(t)).on("error",function(){k.setTimeout(l,g)}).on("pause",function(){p=!1;v.removeClass(k.options.videoLoadingClass).removeClass(k.options.videoPlayingClass);f&&k.container.addClass(k.options.controlsClass);delete k.playingVideo;k.interval&&k.play()}).on("playing",function(){p=!1;v.removeClass(k.options.videoLoadingClass).addClass(k.options.videoPlayingClass);k.container.hasClass(k.options.controlsClass)?(f=!0,k.container.removeClass(k.options.controlsClass)):f=!1}).on("play",function(){window.clearTimeout(k.timeout);p=!0;v.addClass(k.options.videoLoadingClass);k.playingVideo=t}),c(m).on("click",function(b){k.preventDefault(b);p?t.pause():t.play()}),x.appendChild(e&&e.element||t)),x.appendChild(m),this.setTimeout(l,[{type:"load",target:x}]),x}}),p});(function(c){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],c):c(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)})(function(c,p){if(!window.postMessage)return p;c.extend(p.prototype.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"//player.vimeo.com/video/VIDEO_ID?api\x3d1\x26player_id\x3dPLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!0});var b=p.prototype.textFactory||p.prototype.imageFactory,h=function(b,c,d,h){this.url=b;this.videoId=c;this.playerId=d;this.clickToPlay=h;this.element=document.createElement("div");this.listeners={}},l=0;return c.extend(h.prototype,{canPlayType:function(){return!0},on:function(b,c){return this.listeners[b]=c,this},loadAPI:function(){for(var b,h,d=this,l="//"+("https"===location.protocol?"secure-":"")+"a.vimeocdn.com/js/froogaloop2.min.js",p=document.getElementsByTagName("script"),f=p.length,k=function(){!h&&d.playOnReady&&d.play();h=!0};f;)if(--f,p[f].src===l){b=p[f];break}b||(b=document.createElement("script"),b.src=l);c(b).on("load",k);p[0].parentNode.insertBefore(b,p[0]);/loaded|complete/.test(b.readyState)&&k()},onReady:function(){var b=this;this.ready=!0;this.player.addEvent("play",function(){b.hasPlayed=!0;b.onPlaying()});this.player.addEvent("pause",function(){b.onPause()});this.player.addEvent("finish",function(){b.onPause()});this.playOnReady&&this.play()},onPlaying:function(){2>this.playStatus&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause();delete this.playStatus},insertIframe:function(){var b=document.createElement("iframe");b.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId);b.id=this.playerId;this.element.parentNode.replaceChild(b,this.element);this.element=b},play:function(){var b=this;this.playStatus||(this.listeners.play(),this.playStatus=1);this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){b.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),c.extend(p.prototype,{VimeoPlayer:h,textFactory:function(c,n){var d=this.options,m=this.getItemProperty(c,d.vimeoVideoIdProperty);return m?(void 0===this.getItemProperty(c,d.urlProperty)&&(c[d.urlProperty]="//vimeo.com/"+m),l+=1,this.videoFactory(c,n,new h(d.vimeoPlayerUrl,m,d.vimeoPlayerIdPrefix+l,d.vimeoClickToPlay))):b.call(this,c,n)}}),p});(function(c){"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],c):c(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)})(function(c,p){if(!window.postMessage)return p;c.extend(p.prototype.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0});var b=p.prototype.textFactory||p.prototype.imageFactory,h=function(b,c,h){this.videoId=b;this.playerVars=c;this.clickToPlay=h;this.element=document.createElement("div");this.listeners={}};return c.extend(h.prototype,{canPlayType:function(){return!0},on:function(b,c){return this.listeners[b]=c,this},loadAPI:function(){var b,c=this,h=window.onYouTubeIframeAPIReady,d=document.getElementsByTagName("script");b=d.length;for(window.onYouTubeIframeAPIReady=function(){h&&h.apply(this);c.playOnReady&&c.play()};b;)if(--b,"//www.youtube.com/iframe_api"===d[b].src)return;b=document.createElement("script");b.src="//www.youtube.com/iframe_api";d[0].parentNode.insertBefore(b,d[0])},onReady:function(){this.ready=!0;this.playOnReady&&this.play()},onPlaying:function(){2>this.playStatus&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){p.prototype.setTimeout.call(this,this.checkSeek,null,2E3)},checkSeek:function(){this.stateChange!==YT.PlayerState.PAUSED&&this.stateChange!==YT.PlayerState.ENDED||(this.listeners.pause(),delete this.playStatus)},onStateChange:function(b){switch(b.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0;this.onPlaying();break;case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()}this.stateChange=b.data},onError:function(b){this.listeners.error(b)},play:function(){var b=this;this.playStatus||(this.listeners.play(),this.playStatus=1);this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){b.onReady()},onStateChange:function(c){b.onStateChange(c)},onError:function(c){b.onError(c)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),c.extend(p.prototype,{YouTubePlayer:h,textFactory:function(c,e){var n=this.options,d=this.getItemProperty(c,n.youTubeVideoIdProperty);return d?(void 0===this.getItemProperty(c,n.urlProperty)&&(c[n.urlProperty]="//www.youtube.com/watch?v\x3d"+d),void 0===this.getItemProperty(c,n.videoPosterProperty)&&(c[n.videoPosterProperty]="//img.youtube.com/vi/"+d+"/maxresdefault.jpg"),this.videoFactory(c,e,new h(d,n.youTubePlayerVars,n.youTubeClickToPlay))):b.call(this,c,e)}}),p});(function(c){"function"==typeof define&&define.amd?define(["jquery","./blueimp-gallery"],c):c(window.jQuery,window.blueimp.Gallery)})(function(c,p){c(document).on("click","[data-gallery]",function(b){var h=c(this).data("gallery"),l=c(h),e=l.length&&l||c(p.prototype.options.container);b=c.extend(e.data(),{container:e[0],index:this,event:b},{onopen:function(){e.data("gallery",this).trigger("open")},onopened:function(){e.trigger("opened")},onslide:function(){e.trigger("slide",arguments)},onslideend:function(){e.trigger("slideend",arguments)},onslidecomplete:function(){e.trigger("slidecomplete",arguments)},onclose:function(){e.trigger("close")},onclosed:function(){e.trigger("closed").removeData("gallery")}});h=c('[data-gallery\x3d"'+h+'"]');return b.filter&&(h=h.filter(b.filter)),new p(h,b)})});(function(){var c;c=jQuery;c.fn.extend({prettyTextDiff:function(p){var b,h;h={originalContainer:".original",changedContainer:".changed",diffContainer:".diff",cleanup:!0,debug:!1};h=c.extend(h,p);c.fn.prettyTextDiff.debug("Options: ",h,h);b=new diff_match_patch;return this.each(function(){var l,e;h.originalContent&&h.changedContent?(e=c("\x3cdiv /\x3e").html(h.originalContent).text(),l=c("\x3cdiv /\x3e").html(h.changedContent).text()):(e=c(h.originalContainer,this).text(),l=c(h.changedContainer,this).text());c.fn.prettyTextDiff.debug("Original text found: ",e,h);c.fn.prettyTextDiff.debug("Changed  text found: ",l,h);l=b.diff_main(e,l);h.cleanup&&b.diff_cleanupSemantic(l);c.fn.prettyTextDiff.debug("Diffs: ",l,h);l=c.map(l,function(b){return c.fn.prettyTextDiff.createHTML(b)});c(h.diffContainer,this).html(l.join(""));return this})}});c.fn.prettyTextDiff.debug=function(c,b,h){if(h.debug)return console.log(c,b)};c.fn.prettyTextDiff.createHTML=function(c){var b;b=c[0];c=c[1].replace(/&/g,"\x26amp;").replace(//g,"\x26gt;").replace(/\n/g,"\x3cbr\x3e");switch(b){case DIFF_INSERT:return"\x3cins\x3e"+c+"\x3c/ins\x3e";case DIFF_DELETE:return"\x3cdel\x3e"+c+"\x3c/del\x3e";case DIFF_EQUAL:return"\x3cspan\x3e"+c+"\x3c/span\x3e"}}}).call(this);!function(c,p){function b(b,d,g){var e=b.children(d.headerTag),h=b.children(d.bodyTag);e.length>h.length?L(S,"contents"):e.lengthc||c>=d.length)&&L(T),d[c]}function f(b){var c=b.data("uid");return null==c&&(c=b._id(),null==c&&(c="steps-uid-".concat(K),b._id(c)),K++,b.data("uid",c)),c}function k(b,c){if(I("enumType",b),I("keyOrValue",c),"string"==typeof c){var d=b[c];return d===p&&L("The enum key '{0}' does not exist.",c),d}if("number"==typeof c){for(d in b)if(b[d]===c)return c;L("Invalid enum value '{0}'.",c)}else L("Invalid key or value type.")}function u(d){var g=c.extend(!0,{},W,d);return this.each(function(){var d=c(this),f={currentIndex:g.startIndex,currentStep:null,stepCount:0,transitionElement:null};d.data("options",g);d.data("state",f);d.data("steps",[]);b(d,g,f);A(d,g,f);f=l(d);d.bind("canceled"+f,g.onCanceled);d.bind("finishing"+f,g.onFinishing);d.bind("finished"+f,g.onFinished);d.bind("stepChanging"+f,g.onStepChanging);d.bind("stepChanged"+f,g.onStepChanged);g.enableKeyNavigation&&d.bind("keyup"+f,v);d.find(".actions a").bind("click"+f,w);g.autoFocus&&0===K&&e(d,g.startIndex).focus()})}function x(b,d,g,e,f){(0>e||e>g.stepCount)&&L(T);var h=f=c.extend({},V,f);b.data("steps").splice(e,0,h);g.currentIndex!==g.stepCount&&g.currentIndex>=e&&(g.currentIndex++,G(b,d,g));g.stepCount++;var h=b.find(".content"),k=c("\x3c{0}\x3e{1}\x3c/{0}\x3e".format(d.headerTag,f.title)),l=c("\x3c{0}\x3e\x3c/{0}\x3e".format(d.bodyTag));return(null==f.contentMode||f.contentMode===R.html)&&l.html(f.content),0===e?h.prepend(l).prepend(k):n(b,e-1).after(l).after(k),B(b,g,l,e),E(b,d,g,k,e),D(b,d,g,e),e===g.currentIndex&&z(b,d,g),y(b,d,g),b}function v(b){var g=c(this),e=d(g),f=m(g);if(e.suppressPaginationOnFocus&&g.find(":focus").is(":input"))return b.preventDefault(),!1;37===b.keyCode?(b.preventDefault(),t(g,e,f,f.currentIndex-1)):39===b.keyCode&&(b.preventDefault(),t(g,e,f,f.currentIndex+1))}function g(b,d,g){if(0d.currentIndex+1)):(g._showAria(c.enableFinishButton&&d.stepCount>=d.currentIndex+1),e._showAria(0===d.stepCount||d.stepCount>d.currentIndex+1)._enableAria(d.stepCount>d.currentIndex+1||!c.enableFinishButton))}}function z(b,d,g,f){var h=e(b,g.currentIndex),k=c('\x3cspan class\x3d"current-info audible"\x3e'+d.labels.current+" \x3c/span\x3e");d=b.find(".content \x3e .title");null!=f&&(b=e(b,f),b.parent().addClass("done").removeClass("error")._selectAria(!1),d.eq(f).removeClass("current").next(".body").removeClass("current"),k=b.find(".current-info"),h.focus());h.prepend(k).parent()._selectAria().removeClass("done")._enableAria();d.eq(g.currentIndex).addClass("current").next(".body").addClass("current")}function D(b,c,d,g){for(var e=f(b);gh);g.currentIndex>h&&m.addClass("done");e._id(k).attr("tabindex","-1").addClass("title");0===h?q.prepend(m):q.find("li").eq(h-1).after(m);0===h&&q.find("li").removeClass("first").eq(h).addClass("first");h===g.stepCount-1&&q.find("li").removeClass("last").eq(h).addClass("last");m.children("a").bind("click"+l(b),H)}function G(b,d,g){d.saveState&&c.cookie&&c.cookie(O+f(b),g.currentIndex)}function q(b,d,g,e,f){var h=b.find(".content \x3e .body");b=k(U,d.transitionEffect);var l=d.transitionEffectSpeed;d=h.eq(e);h=h.eq(f);switch(b){case U.fade:case U.slide:e=b===U.fade?"fadeOut":"slideUp";var t=b===U.fade?"fadeIn":"slideDown";g.transitionElement=d;h[e](l,function(){var b=c(this)._showAria(!1).parent().parent(),b=m(b);b.transitionElement&&(b.transitionElement[t](l,function(){c(this)._showAria()}),b.transitionElement=null)}).promise();break;case U.slideLeft:g=h.outerWidth(!0);b=e>f?g:-g;h.animate({left:e>f?-g:g},l,function(){c(this)._showAria(!1)}).promise();d.css("left",b+"px")._showAria().animate({left:0},l).promise();break;default:h._showAria(!1),d._showAria()}}function H(b){b.preventDefault();var f=c(this);b=f.parent().parent().parent().parent();var h=d(b),k=m(b),l=k.currentIndex;if(f.parent().is(":not(.disabled):not(.current)")&&(f=f.attr("href"),f=parseInt(f.substring(f.lastIndexOf("-")+1),0),(0>f||f>=k.stepCount)&&L(T),!(h.forceMoveForward&&fb||b>=g.stepCount||g.currentIndex===b)b=!1;else{this.data("steps").splice(b,1);g.currentIndex>b&&(g.currentIndex--,G(this,c,g));g.stepCount--;var h=f(this);b=(this.find("#"+h+P+b).remove(),n(this,b).remove(),e(this,b).parent().remove(),0===b&&this.find(".steps li").first().addClass("first"),b===g.stepCount&&this.find(".steps li").eq(b).addClass("last"),D(this,c,g,b),y(this,c,g),!0)}return b};c.fn.steps.setStep=function(){throw Error("Not yet implemented!");};c.fn.steps.skip=function(){throw Error("Not yet implemented!");};var R=c.fn.steps.contentMode={html:0,iframe:1,async:2},Q=c.fn.steps.stepsOrientation={horizontal:0,vertical:1},U=c.fn.steps.transitionEffect={none:0,fade:1,slide:2,slideLeft:3},V=c.fn.steps.stepModel={title:"",content:"",contentUrl:"",contentMode:R.html,contentLoaded:!1},W=c.fn.steps.defaults={headerTag:"h1",bodyTag:"div",contentContainerTag:"div",actionContainerTag:"div",stepsContainerTag:"div",cssClass:"wizard",clearFixCssClass:"clearfix",stepsOrientation:Q.horizontal,titleTemplate:'\x3cspan class\x3d"number"\x3e#index#.\x3c/span\x3e #title#',loadingTemplate:'\x3cspan class\x3d"spinner"\x3e\x3c/span\x3e #text#',autoFocus:!1,enableAllSteps:!1,enableKeyNavigation:!0,enablePagination:!0,suppressPaginationOnFocus:!0,enableContentCache:!0,enableCancelButton:!0,enableFinishButton:!0,preloadContent:!1,showFinishButtonAlways:!1,forceMoveForward:!1,saveState:!1,startIndex:0,transitionEffect:U.none,transitionEffectSpeed:200,onStepChanging:function(){return!0},onStepChanged:function(){},onCanceled:function(){},onFinishing:function(){return!0},onFinished:function(){},labels:{cancel:"\u53d6\u6d88",current:"\u5f53\u524d\u6b65\u9aa4\uff1a",pagination:"\u5206\u9875",finish:"\u5b8c\u6210",next:"\u4e0b\u4e00\u6b65",previous:"\u4e0a\u4e00\u6b65",loading:"\u52a0\u8f7d\u4e2d ..."}}}(jQuery);!function(c){"function"==typeof define&&define.amd?define(["jquery"],c):c(jQuery)}(function(c){c.extend(c.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var l=c.data(this[0],"validator");return l?l:(this.attr("novalidate","novalidate"),l=new c.validator(b,this[0]),c.data(this[0],"validator",l),l.settings.onsubmit&&(this.validateDelegate(":submit","click",function(b){l.settings.submitHandler&&(l.submitButton=b.target);c(b.target).hasClass("cancel")&&(l.cancelSubmit=!0);void 0!==c(b.target).attr("formnovalidate")&&(l.cancelSubmit=!0)}),this.submit(function(b){function h(){var d;return l.settings.submitHandler?(l.submitButton&&(d=c("\x3cinput type\x3d'hidden'/\x3e").attr("name",l.submitButton.name).val(c(l.submitButton).val()).appendTo(l.currentForm)),l.settings.submitHandler.call(l,l.currentForm,b),l.submitButton&&d.remove(),!1):!0}return l.settings.debug&&b.preventDefault(),l.cancelSubmit?(l.cancelSubmit=!1,h()):l.form()?l.pendingRequest?(l.formSubmitted=!0,!1):h():(l.focusInvalid(),!1)})),l)},valid:function(){var b,l;return c(this[0]).is("form")?b=this.validate().form():(b=!0,l=c(this[0].form).validate(),this.each(function(){b=l.element(this)&&b})),b},removeAttrs:function(b){var l={},e=this;return c.each(b.split(/\s/),function(b,c){l[c]=e.attr(c);e.removeAttr(c)}),l},rules:function(b,l){var e,n,d,m,p,f,k=this[0];if(b)switch(e=c.data(k.form,"validator").settings,n=e.rules,d=c.validator.staticRules(k),b){case "add":c.extend(d,c.validator.normalizeRule(l));delete d.messages;n[k.name]=d;l.messages&&(e.messages[k.name]=c.extend(e.messages[k.name],l.messages));break;case "remove":return l?(f={},c.each(l.split(/\s/),function(b,e){f[e]=d[e];delete d[e];"required"===e&&c(k).removeAttr("aria-required")}),f):(delete n[k.name],d)}return m=c.validator.normalizeRules(c.extend({},c.validator.classRules(k),c.validator.attributeRules(k),c.validator.dataRules(k),c.validator.staticRules(k)),k),m.required&&(p=m.required,delete m.required,m=c.extend({required:p},m),c(k).attr("aria-required","true")),m.remote&&(p=m.remote,delete m.remote,m=c.extend(m,{remote:p})),m}});c.extend(c.expr[":"],{blank:function(b){return!c.trim(""+c(b).val())},filled:function(b){return!!c.trim(""+c(b).val())},unchecked:function(b){return!c(b).prop("checked")}});c.validator=function(b,l){this.settings=c.extend(!0,{},c.validator.defaults,b);this.currentForm=l;this.init()};c.validator.format=function(b,l){return 1===arguments.length?function(){var e=c.makeArray(arguments);return e.unshift(b),c.validator.format.apply(this,e)}:(2this.pendingRequest&&(this.pendingRequest=0);delete this.pending[b.name];l&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(c(this.currentForm).submit(),this.formSubmitted=!1):!l&&0===this.pendingRequest&&this.formSubmitted&&(c(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return c.data(b,"previousValue")||c.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,l){b.constructor===String?this.classRuleSettings[b]=l:c.extend(this.classRuleSettings,b)},classRules:function(b){var l={};b=c(b).attr("class");return b&&c.each(b.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(l,c.validator.classRuleSettings[this])}),l},attributeRules:function(b){var l,e,n={},d=c(b),m=b.getAttribute("type");for(l in c.validator.methods)"required"===l?(e=b.getAttribute(l),""===e&&(e=!0),e=!!e):e=d.attr(l),/min|max/.test(l)&&(null===m||/number|range|text/.test(m))&&(e=Number(e)),e||0===e?n[l]=e:m===l&&"range"!==m&&(n[l]=!0);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(b){var l,e={},n=c(b);for(l in c.validator.methods)b=n.data("rule"+l.charAt(0).toUpperCase()+l.substring(1).toLowerCase()),void 0!==b&&(e[l]=b);return e},staticRules:function(b){var l={},e=c.data(b.form,"validator");return e.settings.rules&&(l=c.validator.normalizeRule(e.settings.rules[b.name])||{}),l},normalizeRules:function(b,l){return c.each(b,function(e,n){if(!1===n)return void delete b[e];if(n.param||n.depends){var d=!0;switch(typeof n.depends){case "string":d=!!c(n.depends,l.form).length;break;case "function":d=n.depends.call(l,l)}d?b[e]=void 0!==n.param?n.param:!0:delete b[e]}}),c.each(b,function(e,n){b[e]=c.isFunction(n)?n(l):n}),c.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),c.each(["rangelength","range"],function(){var e;b[this]&&(c.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(e=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(e[0]),Number(e[1])]))}),c.validator.autoCreateRanges&&(b.min&&b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),b.minlength&&b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var l={};c.each(b.split(/\s/),function(){l[this]=!0});b=l}return b},addMethod:function(b,l,e){c.validator.methods[b]=l;c.validator.messages[b]=void 0!==e?e:c.validator.messages[b];3>l.length&&c.validator.addClassRules(b,c.validator.normalizeRule(b))},methods:{required:function(b,l,e){return this.depend(e,l)?"select"===l.nodeName.toLowerCase()?(b=c(l).val())&&0b.length||19=e},maxlength:function(b,l,e){b=c.isArray(b)?b.length:this.getLength(c.trim(b),l);return this.optional(l)||e>=b},rangelength:function(b,l,e){b=c.isArray(b)?b.length:this.getLength(c.trim(b),l);return this.optional(l)||b>=e[0]&&b<=e[1]},min:function(b,c,e){return this.optional(c)||b>=e},max:function(b,c,e){return this.optional(c)||e>=b},range:function(b,c,e){return this.optional(c)||b>=e[0]&&b<=e[1]},equalTo:function(b,l,e){e=c(e);return this.settings.onfocusout&&e.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){c(l).valid()}),b===e.val()},remote:function(b,l,e){if(this.optional(l))return"dependency-mismatch";var n,d,m=this.previousValue(l);return this.settings.messages[l.name]||(this.settings.messages[l.name]={}),m.originalMessage=this.settings.messages[l.name].remote,this.settings.messages[l.name].remote=m.message,e="string"==typeof e&&{url:e}||e,m.old===b?m.valid:(m.old=b,n=this,this.startRequest(l),d={},d[l.name]=b,c.ajax(c.extend(!0,{url:e,mode:"abort",port:"validate"+l.name,dataType:"json",data:d,context:n.currentForm,success:function(d){var e,k,p,x=!0===d||"true"===d;n.settings.messages[l.name].remote=m.originalMessage;x?(p=n.formSubmitted,n.prepareElement(l),n.formSubmitted=p,n.successList.push(l),delete n.invalid[l.name],n.showErrors()):(e={},k=d||n.defaultMessage(l,"remote"),e[l.name]=m.message=c.isFunction(k)?k(b):k,n.invalid[l.name]=!0,n.showErrors(e));m.valid=x;n.stopRequest(l,x)}},e)),"pending")}}});c.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead.";};var p,b={};c.ajaxPrefilter?c.ajaxPrefilter(function(c,l,e){l=c.port;"abort"===c.mode&&(b[l]&&b[l].abort(),b[l]=e)}):(p=c.ajax,c.ajax=function(h){var l=("port"in h?h:c.ajaxSettings).port;return"abort"===("mode"in h?h:c.ajaxSettings).mode?(b[l]&&b[l].abort(),b[l]=p.apply(this,arguments),b[l]):p.apply(this,arguments)});c.extend(c.fn,{validateDelegate:function(b,l,e){return this.bind(l,function(l){var d=c(l.target);return d.is(b)?e.apply(d,arguments):void 0})}})});(function(c){"function"===typeof define&&define.amd?define(["jquery"],c):"undefined"!==typeof module&&module.exports?module.exports=c(require("jquery")):c(jQuery)})(function(c,p){var b=0,h=!1,l=!1,e=!1,n=[],d=c("script:last").attr("src"),m=window.document,r=m.createElement("LI"),f,k;r.setAttribute("role","treeitem");f=m.createElement("I");f.className="jstree-icon jstree-ocl";f.setAttribute("role","presentation");r.appendChild(f);f=m.createElement("A");f.className="jstree-anchor";f.setAttribute("href","#");f.setAttribute("tabindex","-1");k=m.createElement("I");k.className="jstree-icon jstree-themeicon";k.setAttribute("role","presentation");f.appendChild(k);r.appendChild(f);f=k=null;c.jstree={version:"4.0.0",defaults:{plugins:[]},plugins:{},path:d&&-1!==d.indexOf("/")?d.replace(/\/[^\/]+$/,""):"",idregex:/[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}%?`]/g,root:"#"};c.jstree.create=function(d,e){var f=new c.jstree.core(++b),h=e;e=c.extend(!0,{},c.jstree.defaults,e);h&&h.plugins&&(e.plugins=h.plugins);c.each(e.plugins,function(b,c){"core"!==b&&(f=f.plugin(c,e[c]))});c(d).data("jstree",f);f.init(d,e);return f};c.jstree.destroy=function(){c(".jstree:jstree").jstree("destroy");c(m).off(".jstree")};c.jstree.core=function(b){this._id=b;this._cnt=0;this._wrk=null;this._data={core:{themes:{name:!1,dots:!1,icons:!1},selected:[],last_error:{},working:!1,worker_queue:[],focused:null}}};c.jstree.reference=function(b){var d=null,e=null;!b||!b.id||b.tagName&&b.nodeType||(b=b.id);if(!e||!e.length)try{e=c(b)}catch(f){}if(!e||!e.length)try{e=c("#"+b.replace(c.jstree.idregex,"\\$\x26"))}catch(f){}e&&e.length&&(e=e.closest(".jstree")).length&&(e=e.data("jstree"))?d=e:c(".jstree").each(function(){var e=c(this).data("jstree");if(e&&e._model.data[b])return d=e,!1});return d};c.fn.jstree=function(b){var d="string"===typeof b,e=Array.prototype.slice.call(arguments,1),f=null;if(!0===b&&!this.length)return!1;this.each(function(){var h=c.jstree.reference(this),k=d&&h?h[b]:null;f=d&&k?k.apply(h,e):null;h||d||b!==p&&!c.isPlainObject(b)||c.jstree.create(this,b);if(h&&!d||!0===b)f=h||!1;if(null!==f&&f!==p)return!1});return null!==f&&f!==p?f:this};c.expr[":"].jstree=c.expr.createPseudo(function(b){return function(b){return c(b).hasClass("jstree")&&c(b).data("jstree")!==p}});c.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:c.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,stripes:!1,variant:!1,responsive:!1},expand_selected_onload:!0,worker:!0,force_text:!1,dblclick_toggle:!0};c.jstree.core.prototype={plugin:function(b,d){var e=c.jstree.plugins[b];return e?(this._data[b]={},e.prototype=this,new e(d,this)):this},init:function(b,d){this._model={data:{},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}};this._model.data[c.jstree.root]={id:c.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}};this.element=c(b).addClass("jstree jstree-"+this._id);this.settings=d;this._data.core.ready=!1;this._data.core.loaded=!1;this._data.core.rtl="rtl"===this.element.css("direction");this.element[this._data.core.rtl?"addClass":"removeClass"]("jstree-rtl");this.element.attr("role","tree");this.settings.core.multiple&&this.element.attr("aria-multiselectable",!0);this.element.attr("tabindex")||this.element.attr("tabindex","0");this.bind();this.trigger("init");this._data.core.original_container_html=this.element.find(" \x3e ul \x3e li").clone(!0);this._data.core.original_container_html.find("li").addBack().contents().filter(function(){return 3===this.nodeType&&(!this.nodeValue||/^\s+$/.test(this.nodeValue))}).remove();this.element.html("\x3cul class\x3d'jstree-container-ul jstree-children' role\x3d'group'\x3e\x3cli id\x3d'j"+this._id+"_loading' class\x3d'jstree-initial-node jstree-loading jstree-leaf jstree-last' role\x3d'tree-item'\x3e\x3ci class\x3d'jstree-icon jstree-ocl'\x3e\x3c/i\x3e\x3ca class\x3d'jstree-anchor' href\x3d'#'\x3e\x3ci class\x3d'jstree-icon jstree-themeicon-hidden'\x3e\x3c/i\x3e"+this.get_string("\u52a0\u8f7d\u4e2d ...")+"\x3c/a\x3e\x3c/li\x3e\x3c/ul\x3e");this.element.attr("aria-activedescendant","j"+this._id+"_loading");this._data.core.li_height=this.get_container_ul().children("li").first().height()||24;this.trigger("loading");this.load_node(c.jstree.root)},destroy:function(b){if(this._wrk)try{window.URL.revokeObjectURL(this._wrk),this._wrk=null}catch(c){}b||this.element.empty();this.teardown()},teardown:function(){this.unbind();this.element.removeClass("jstree").removeData("jstree").find("[class^\x3d'jstree']").addBack().attr("class",function(){return this.className.replace(/jstree[^ ]*|$/ig,"")});this.element=null},bind:function(){var b="",d=null,e=0;this.element.on("dblclick.jstree",function(b){if(b.target.tagName&&"input"===b.target.tagName.toLowerCase())return!0;if(m.selection&&m.selection.empty)m.selection.empty();else if(window.getSelection){b=window.getSelection();try{b.removeAllRanges(),b.collapse()}catch(c){}}}).on("mousedown.jstree",c.proxy(function(b){b.target===this.element[0]&&(b.preventDefault(),e=+new Date)},this)).on("mousedown.jstree",".jstree-ocl",function(b){b.preventDefault()}).on("click.jstree",".jstree-ocl",c.proxy(function(b){this.toggle_node(b.target)},this)).on("dblclick.jstree",".jstree-anchor",c.proxy(function(b){if(b.target.tagName&&"input"===b.target.tagName.toLowerCase())return!0;this.settings.core.dblclick_toggle&&this.toggle_node(b.target)},this)).on("click.jstree",".jstree-anchor",c.proxy(function(b){b.preventDefault();b.currentTarget!==m.activeElement&&c(b.currentTarget).focus();this.activate_node(b.currentTarget,b)},this)).on("keydown.jstree",".jstree-anchor",c.proxy(function(b){if(b.target.tagName&&"input"===b.target.tagName.toLowerCase()||32!==b.which&&13!==b.which&&(b.shiftKey||b.ctrlKey||b.altKey||b.metaKey))return!0;var d=null;this._data.core.rtl&&(37===b.which?b.which=39:39===b.which&&(b.which=37));switch(b.which){case 32:b.ctrlKey&&(b.type="click",c(b.currentTarget).trigger(b));break;case 13:b.type="click";c(b.currentTarget).trigger(b);break;case 37:b.preventDefault();this.is_open(b.currentTarget)?this.close_node(b.currentTarget):(d=this.get_parent(b.currentTarget))&&d.id!==c.jstree.root&&this.get_node(d,!0).children(".jstree-anchor").focus();break;case 38:b.preventDefault();(d=this.get_prev_dom(b.currentTarget))&&d.length&&d.children(".jstree-anchor").focus();break;case 39:b.preventDefault();this.is_closed(b.currentTarget)?this.open_node(b.currentTarget,function(b){this.get_node(b,!0).children(".jstree-anchor").focus()}):this.is_open(b.currentTarget)&&(d=this.get_node(b.currentTarget,!0).children(".jstree-children")[0])&&c(this._firstChild(d)).children(".jstree-anchor").focus();break;case 40:b.preventDefault();(d=this.get_next_dom(b.currentTarget))&&d.length&&d.children(".jstree-anchor").focus();break;case 106:this.open_all();break;case 36:b.preventDefault();(d=this._firstChild(this.get_container_ul()[0]))&&c(d).children(".jstree-anchor").filter(":visible").focus();break;case 35:b.preventDefault(),this.element.find(".jstree-anchor").filter(":visible").last().focus()}},this)).on("load_node.jstree",c.proxy(function(b,d){d.status&&(d.node.id!==c.jstree.root||this._data.core.loaded||(this._data.core.loaded=!0,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.trigger("loaded")),this._data.core.ready||setTimeout(c.proxy(function(){if(this.element&&!this.get_container_ul().find(".jstree-loading").length){this._data.core.ready=!0;if(this._data.core.selected.length){if(this.settings.core.expand_selected_onload){var b=[],d,g;d=0;for(g=this._data.core.selected.length;db.children.length&&(e=b.children.length);d.id||(d.id=!0);if(!this.check("create_node",d,b,e))return this.settings.core.error.call(this,this._data.core.last_error),!1;!0===d.id&&delete d.id;d=this._parse_model_from_json(d,b.id,b.parents.concat());if(!d)return!1;h=this.get_node(d);k=[];k.push(d);k=k.concat(h.children_d);this.trigger("model",{nodes:k,parent:b.id});b.children_d=b.children_d.concat(k);l=0;for(m=b.parents.length;l=e?l+1:l]=b.children[l];h[e]=d.id;b.children=h;this.redraw_node(b,!0);f&&f.call(this,this.get_node(d));this.trigger("create_node",{node:this.get_node(d),parent:b.id,position:e});return d.id},rename_node:function(b,d){alert("aaaa");var e,f;if(c.isArray(b)){b=b.slice();e=0;for(f=b.length;er.children.length&&(e=r.children.length);if(!this.check("move_node",b,r,e,{core:!0,origin:l,is_multi:u&&u._id&&u._id!==this._id,is_foreign:!u||!u._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(b.parent===r.id){h=r.children.concat();v=c.inArray(b.id,h);-1!==v&&(h=c.vakata.array_remove(h,v),e>v&&e--);v=[];q=0;for(x=h.length;q=e?q+1:q]=h[q];v[e]=b.id;r.children=v;this._node_changed(r.id);this.redraw(r.id===c.jstree.root)}else{v=b.children_d.concat();v.push(b.id);q=0;for(x=b.parents.length;q=e?q+1:q]=r.children[q];h[e]=b.id;r.children=h;r.children_d.push(b.id);r.children_d=r.children_d.concat(b.children_d);b.parent=r.id;v=r.parents.concat();v.unshift(r.id);K=b.parents.length;b.parents=v;v=v.concat();q=0;for(x=b.children_d.length;qv.children.length&&(e=v.children.length);if(!this.check("copy_node",b,v,e,{core:!0,origin:l,is_multi:q&&q._id&&q._id!==this._id,is_foreign:!q||!q._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;r=q?q.get_json(b,{no_id:!0,no_data:!0,no_state:!0}):b;if(!r)return!1;!0===r.id&&delete r.id;r=this._parse_model_from_json(r,v.id,v.parents.concat());if(!r)return!1;n=this.get_node(r);b&&b.state&&!1===b.state.loaded&&(n.state.loaded=!1);h=[];h.push(r);h=h.concat(n.children_d);this.trigger("model",{nodes:h,parent:v.id});r=0;for(u=v.parents.length;r=e?r+1:r]=v.children[r];h[e]=n.id;v.children=h;v.children_d.push(n.id);v.children_d=v.children_d.concat(n.children_d);v.id===c.jstree.root&&(this._model.force_full_redraw=!0);this._model.force_full_redraw||this._node_changed(v.id);k||this.redraw(v.id===c.jstree.root);f&&f.call(this,n,v,e);this.trigger("copy_node",{node:n,original:b,parent:v.id,position:e,old_parent:m,old_position:q&&q._id&&m&&q._model.data[m]&&q._model.data[m].children?c.inArray(b.id,q._model.data[m].children):-1,is_multi:q&&q._id&&q._id!==this._id,is_foreign:!q||!q._id,old_instance:q,new_instance:this});return n.id},cut:function(b){b||(b=this._data.core.selected.concat());c.isArray(b)||(b=[b]);if(!b.length)return!1;var d=[],f,k,m;k=0;for(m=b.length;kc?b.length+c:c;b.push.apply(b,d);return b};c.vakata.array_remove_item=function(b,d){var e=c.inArray(d,b);return-1!==e?c.vakata.array_remove(b,e):b};c.jstree.plugins.changed=function(b,c){var d=[];this.trigger=function(b,e){var f,g;e||(e={});if("changed"===b.replace(".jstree","")){e.changed={selected:[],deselected:[]};var h={};f=0;for(g=d.length;f<\/li\>$/,"");f&&(h+="\x3c/ul\x3e");f||(l=h,b.vakata.context._trigger("parse"));return 10f-(k+10+d.outerWidth())?"addClass":"removeClass"]("vakata-context-left");else d[f+k+10>m?"addClass":"removeClass"]("vakata-context-right");h+l+10>n&&e.css("bottom","-1px");e.show()}},show:function(m,p,r){var q,u,v,x,K;d&&d.length&&d.width("");switch(!0){case !p&&!m:return!1;case !!p&&!!m:e=m;f=p.x;h=p.y;break;case !p&&!!m:e=m;p=m.offset();f=p.left+m.outerHeight();h=p.top;break;case !!p&&!m:f=p.x,h=p.y}m&&!r&&b(m).data("vakata_contextmenu")&&(r=b(m).data("vakata_contextmenu"));b.vakata.context._parse(r)&&d.html(l);k.length&&(d.appendTo("body"),r=d,p=f,q=h,u=r.width(),v=r.height(),x=b(window).width()+b(window).scrollLeft(),K=b(window).height()+b(window).scrollTop(),c&&(p-=r.outerWidth()-b(m).outerWidth(),px&&(p=x-(u+20)),q+v+20>K&&(q=K-(v+20)),d.css({left:p,top:q}).show().find("a").first().focus().parent().addClass("vakata-context-hover"),n=!0,b.vakata.context._trigger("show"))},hide:function(){n&&(d.hide().find("ul").hide().end().find(":focus").blur().end().detach(),n=!1,b.vakata.context._trigger("hide"))}};b(function(){c="rtl"===b("body").css("direction");var e=!1;d=b("\x3cul class\x3d'vakata-context'\x3e\x3c/ul\x3e");d.on("mouseenter","li",function(c){c.stopImmediatePropagation();b.contains(this,c.relatedTarget)||(e&&clearTimeout(e),d.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),b(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),b.vakata.context._show_submenu(this))}).on("mouseleave","li",function(c){b.contains(this,c.relatedTarget)||b(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")}).on("mouseleave",function(c){b(this).find(".vakata-context-hover").removeClass("vakata-context-hover");b.vakata.context.settings.hide_onmouseleave&&(e=setTimeout(function(c){return function(){b.vakata.context.hide()}}(this),b.vakata.context.settings.hide_onmouseleave))}).on("click","a",function(c){c.preventDefault();b(this).blur().parent().hasClass("vakata-context-disabled")||!1===b.vakata.context._execute(b(this).attr("rel"))||b.vakata.context.hide()}).on("keydown","a",function(c){var e;switch(c.which){case 13:case 32:c.type="mouseup";c.preventDefault();b(c.currentTarget).trigger(c);break;case 37:n&&(d.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").focus(),c.stopImmediatePropagation(),c.preventDefault());break;case 38:n&&(e=d.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first(),e.length||(e=d.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),e.addClass("vakata-context-hover").children("a").focus(),c.stopImmediatePropagation(),c.preventDefault());break;case 39:n&&(d.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").focus(),c.stopImmediatePropagation(),c.preventDefault());break;case 40:n&&(e=d.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first(),e.length||(e=d.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),e.addClass("vakata-context-hover").children("a").focus(),c.stopImmediatePropagation(),c.preventDefault());break;case 27:b.vakata.context.hide(),c.preventDefault()}}).on("keydown",function(b){b.preventDefault();b=d.find(".vakata-contextmenu-shortcut-"+b.which).parent();b.parent().not(".vakata-context-disabled")&&b.click()});b(m).on("mousedown.vakata.jstree",function(c){n&&!b.contains(d[0],c.target)&&b.vakata.context.hide()}).on("context_show.vakata.jstree",function(b,e){d.find("li:has(ul)").children("a").addClass("vakata-context-parent");c&&d.addClass("vakata-context-rtl").css("direction","rtl");d.find("ul").hide().end()})})})(c);c.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0,always_copy:!1,inside_pos:0,drag_selection:!0,touch:!0,large_drop_target:!1,large_drag_target:!1};c.jstree.plugins.dnd=function(b,d){this.bind=function(){d.bind.call(this);this.element.on("mousedown.jstree touchstart.jstree",this.settings.dnd.large_drag_target?".jstree-node":".jstree-anchor",c.proxy(function(b){if(this.settings.dnd.large_drag_target&&c(b.target).closest(".jstree-node")[0]!==b.currentTarget||"touchstart"===b.type&&(!this.settings.dnd.touch||"selected"===this.settings.dnd.touch&&!c(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").hasClass("jstree-clicked")))return!0;var d=this.get_node(b.target),e=this.is_selected(d)&&this.settings.dnd.drag_selection?this.get_top_selected().length:1,f=1v-v/3?["a","i","b"]:r>v/2?["i","a","b"]:["i","b","a"],c.each(K,function(e,k){switch(k){case "b":u=p.left-6;q=p.top;x=m.get_parent(n);I=n.parent().index();break;case "i":R=m.settings.dnd.inside_pos;Q=m.get_node(n.parent());u=p.left-2;q=p.top+v/2+1;x=Q.id;I="first"===R?0:"last"===R?Q.children.length:Math.min(R,Q.children.length);break;case "a":u=p.left-6,q=p.top+v,x=m.get_parent(n),I=n.parent().index()+1}O=!0;M=0;for(J=l.data.nodes.length;Mc.inArray(l.data.nodes[M],S.children)&&--T),O=O&&(m&&m.settings&&m.settings.dnd&&!1===m.settings.dnd.check_while_dragging||m.check(P,l.data.origin&&l.data.origin!==m?l.data.origin.get_node(l.data.nodes[M]):l.data.nodes[M],x,T,{dnd:!0,ref:m.get_node(n.parent()),pos:k,origin:l.data.origin,is_multi:l.data.origin&&l.data.origin!==m,is_foreign:!l.data.origin})),!O){m&&m.last_error&&(d=m.last_error());break}"i"===k&&n.parent().is(".jstree-closed")&&m.settings.dnd.open_timeout&&(f=setTimeout(function(b,c){return function(){b.open_node(c)}}(m,n),m.settings.dnd.open_timeout));if(O)return b={ins:m,par:x,pos:"i"!==k||"last"!==R||0!==I||m.is_loaded(Q)?I:"last"},h.css({left:u+"px",top:q+"px"}).show(),l.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),d={},K=!0,!1}),!0===K))return}else{O=!0;M=0;for(J=l.data.nodes.length;M(x?b.vakata.dnd.settings.threshold_touch:b.vakata.dnd.settings.threshold)||Math.abs(c.pageY-p)>(x?b.vakata.dnd.settings.threshold_touch:b.vakata.dnd.settings.threshold))h&&(h.appendTo("body"),k=h.outerWidth()),f=!0,b.vakata.dnd._trigger("start",c);else return;var d=!1,l=!1,t=!1,v=!1,w=!1,B=l=!1,H=!1,v=d=!1;r=u=0;q=!1;b(b(c.target).parentsUntil("body").addBack().get().reverse()).filter(function(){return/^auto|scroll$/.test(b(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)}).each(function(){var d=b(this),e=d.offset();this.scrollHeight>this.offsetHeight&&(e.top+d.height()-c.pageYthis.offsetWidth&&(e.left+d.width()-c.pageXv&&c.pageY-Bv&&v-(c.pageY-B)l&&c.pageX-Hl&&l-(c.pageX-H)t&&(d=t-50),w&&v+k>w&&(v=w-(k+2)),h.css({left:v+"px",top:d+"px"}));b.vakata.dnd._trigger("move",c);return!1}},stop:function(c){"touchend"===c.type&&c.originalEvent&&c.originalEvent.changedTouches&&c.originalEvent.changedTouches[0]&&(c.pageX=c.originalEvent.changedTouches[0].pageX,c.pageY=c.originalEvent.changedTouches[0].pageY,c.target=m.elementFromPoint(c.originalEvent.changedTouches[0].pageX-window.pageXOffset,c.originalEvent.changedTouches[0].pageY-window.pageYOffset));if(f)b.vakata.dnd._trigger("stop",c);else if("touchend"===c.type&&c.target===d){var e=setTimeout(function(){b(c.target).click()},100);b(c.target).one("click",function(){e&&clearTimeout(e)})}b.vakata.dnd._clean();return!1}}})(c);c.jstree.defaults.massload=null;c.jstree.plugins.massload=function(b,d){this.init=function(b,c){d.init.call(this,b,c);this._data.massload={}};this._load_nodes=function(b,e,f){var g=this.settings.massload;return f&&!c.isEmptyObject(this._data.massload)?d._load_nodes.call(this,b,e,f):c.isFunction(g)?g.call(this,b,c.proxy(function(c){if(c)for(var g in c)c.hasOwnProperty(g)&&(this._data.massload[g]=c[g]);d._load_nodes.call(this,b,e,f)},this)):"object"===typeof g&&g&&g.url?(g=c.extend(!0,{},g),c.isFunction(g.url)&&(g.url=g.url.call(this,b)),c.isFunction(g.data)&&(g.data=g.data.call(this,b)),c.ajax(g).done(c.proxy(function(c,g,h){if(c)for(var k in c)c.hasOwnProperty(k)&&(this._data.massload[k]=c[k]);d._load_nodes.call(this,b,e,f)},this)).fail(c.proxy(function(c){d._load_nodes.call(this,b,e,f)},this))):d._load_nodes.call(this,b,e,f)};this._load_node=function(b,e){var f=this._data.massload[b.id];return f?this["string"===typeof f?"_append_html_data":"_append_json_data"](b,"string"===typeof f?c(c.parseHTML(f)).filter(function(){return 3!==this.nodeType}):f,function(c){e.call(this,c);delete this._data.massload[b.id]}):d._load_node.call(this,b,e)}};c.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1};c.jstree.plugins.search=function(b,d){this.bind=function(){d.bind.call(this);this._data.search.str="";this._data.search.dom=c();this._data.search.res=[];this._data.search.opn=[];this._data.search.som=!1;this._data.search.smc=!1;this._data.search.hdn=[];this.element.on("search.jstree",c.proxy(function(b,d){if(this._data.search.som&&d.res.length){var e=this._model.data,f,g,h=[];f=0;for(g=d.res.length;f=v;g--)if(G=n[b.charAt(g-1)],w[g]=0===d?(w[g+1]<<1|1)&G:(w[g+1]<<1|1)&G|(D[g+1]|D[g])<<1|1|D[g+1],w[g]&m&&(R=p(d,g-1),R<=r))if(r=R,u=g-1,Q.push(u),u>f)v=Math.max(1,2*f-u);else break;if(p(d+1,f)>r)break;D=w}return{isMatch:0<=u,score:R}};return!0===d?{search:r}:r(d)};b.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1}})(c);c.jstree.defaults.sort=function(b,c){return this.get_text(b)>this.get_text(c)?1:-1};c.jstree.plugins.sort=function(b,d){this.bind=function(){d.bind.call(this);this.element.on("model.jstree",c.proxy(function(b,c){this.sort(c.parent,!0)},this)).on("rename_node.jstree create_node.jstree",c.proxy(function(b,c){this.sort(c.parent||c.node.parent,!1);this.redraw_node(c.parent||c.node.parent,!0)},this)).on("move_node.jstree copy_node.jstree",c.proxy(function(b,c){this.sort(c.parent,!1);this.redraw_node(c.parent,!0)},this))};this.sort=function(b,d){var e,f;if((b=this.get_node(b))&&b.children&&b.children.length&&(b.children.sort(c.proxy(this.settings.sort,this)),d))for(e=0,f=b.children_d.length;eb.ttl)return!1;b&&b.state&&(b=b.state);b&&c.isFunction(this.settings.state.filter)&&(b=this.settings.state.filter.call(this,b));return b?(this.element.one("set_state.jstree",function(d,e){e.instance.trigger("restore_state",{state:c.extend(!0,{},b)})}),this.set_state(b),!0):!1};this.clear_state=function(){return c.vakata.storage.del(this.settings.state.key)}};(function(b,c){b.vakata.storage={set:function(b,c){return window.localStorage.setItem(b,c)},get:function(b){return window.localStorage.getItem(b)},del:function(b){return window.localStorage.removeItem(b)}}})(c);c.jstree.defaults.types={"default":{}};c.jstree.defaults.types[c.jstree.root]={};c.jstree.plugins.types=function(b,d){this.init=function(b,e){var f,g;if(e&&e.types&&e.types["default"])for(f in e.types)if("default"!==f&&f!==c.jstree.root&&e.types.hasOwnProperty(f))for(g in e.types["default"])e.types["default"].hasOwnProperty(g)&&e.types[f][g]===p&&(e.types[f][g]=e.types["default"][g]);d.init.call(this,b,e);this._model.data[c.jstree.root].type=c.jstree.root};this.refresh=function(b,e){d.refresh.call(this,b,e);this._model.data[c.jstree.root].type=c.jstree.root};this.bind=function(){this.element.on("model.jstree",c.proxy(function(b,d){var e=this._model.data,f=d.nodes,g=this.settings.types,h,k,l;h=0;for(k=f.length;h=l||l===p)l=1;do{if(k.max_depth!==p&&-1!==k.max_depth&&k.max_depth+b.style.opacity){c=c||16;b.style.opacity=0;b.style.display="block";var d=+new Date,e=function(b){function c(){return b.apply(this,arguments)}return c.toString=function(){return b.toString()},c}(function(){b.style.opacity=+b.style.opacity+(new Date-d)/100;d=+new Date;1>+b.style.opacity&&setTimeout(e,c)});e()}b.style.display="block"};n.fadeOut=function(b,c){c=c||16;b.style.opacity=1;var d=+new Date,e=function(b){function c(){return b.apply(this,arguments)}return c.toString=function(){return b.toString()},c}(function(){b.style.opacity=+b.style.opacity-(new Date-d)/100;d=+new Date;0<+b.style.opacity?setTimeout(e,c):b.style.display="none"});e()};n.fireClick=function(b){if("function"==typeof MouseEvent){var d=new MouseEvent("click",{view:c,bubbles:!1,cancelable:!0});b.dispatchEvent(d)}else p.createEvent?(d=p.createEvent("MouseEvents"),d.initEvent("click",!1,!1),b.dispatchEvent(d)):p.createEventObject?b.fireEvent("onclick"):"function"==typeof b.onclick&&b.onclick()};n.stopEventPropagation=function(b){"function"==typeof b.stopPropagation?(b.stopPropagation(),b.preventDefault()):c.event&&c.event.hasOwnProperty("cancelBubble")&&(c.event.cancelBubble=!0)}},{}],5:[function(b,e,n){Object.defineProperty(n,"__esModule",{value:!0});var d=b("./handle-dom"),m=b("./handle-swal-dom");n["default"]=function(b,e,k){b=b||c.event;var l=b.keyCode||b.which,n=k.querySelector("button.confirm"),p=k.querySelector("button.cancel");k=k.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(l)){for(var g=b.target||b.srcElement,t=-1,w=0;wb.length&&(b=b[0]+b[0]+b[1]+b[1]+b[2]+b[2]);c=c||0;var e,f,k="#";for(f=0;3>f;f++)e=parseInt(b.substr(2*f,2),16),e=Math.round(Math.min(Math.max(0,e+e*c),255)).toString(16),k+=("00"+e).substr(e.length);return k}},{}]},{},[1]);"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document);!function(c){c(["jquery"],function(c){return function(){function b(b,f){b||(b=e());d=c("#"+b.containerId);if(!d.length&&f){var h=b;d=(d=c("\x3cdiv/\x3e").attr("id",h.containerId).addClass(h.positionClass).attr("aria-live","polite").attr("role","alert"),d.appendTo(c(h.target)),d)}return d}function h(b,d){return b&&0===c(":focus",b).length?(b[d.hideMethod]({duration:d.hideDuration,easing:d.hideEasing,complete:function(){n(b)}}),!0):!1}function l(h){function k(b){return!c(":focus",y).length||b?(clearTimeout(F.intervalId),y[g.hideMethod]({duration:g.hideDuration,easing:g.hideEasing,complete:function(){n(y);g.onHidden&&"hidden"!==N.state&&g.onHidden();N.state="hidden";N.endTime=new Date;m&&m(N)}})):void 0}function l(){var b=(F.hideEta-(new Date).getTime())/F.maxHideTime*100;A.width(b+"%")}var g=e(),t=h.iconClass||g.iconClass;if("undefined"!=typeof h.optionsOverride&&(g=c.extend(g,h.optionsOverride),t=h.optionsOverride.iconClass||t),g.preventDuplicates){if(h.message===r)return;r=h.message}f++;d=b(g,!0);var w=null,y=c("\x3cdiv/\x3e"),z=c("\x3cdiv/\x3e"),D=c("\x3cdiv/\x3e"),A=c("\x3cdiv/\x3e"),B=c(g.closeHtml),F={intervalId:null,hideEta:null,maxHideTime:null},N={toastId:f,state:"visible",startTime:new Date,options:g,map:h};h.iconClass&&y.addClass(g.toastClass).addClass(t);h.title&&(z.append(h.title).addClass(g.titleClass),y.append(z));h.message&&(D.append(h.message).addClass(g.messageClass),y.append(D));g.closeButton&&(B.addClass("toast-close-button").attr("role","button"),y.prepend(B));g.progressBar&&(A.addClass("toast-progress"),y.prepend(A));y.hide();g.newestOnTop?d.prepend(y):d.append(y);y[g.showMethod]({duration:g.showDuration,easing:g.showEasing,complete:g.onShown});0U||U>=H.end)&&q()&&u(b)}function u(b){S++;H.start&&(N("viewDestroy",H,H,H.element),I(),F());L();H.render(U,b||0);A();J();(H.afterRender||G)();M.updateTitle(H.title);b=new Date;b>=H.start&&H.end>b?M.disableButton("today"):M.enableButton("today");N("viewRender",H,H,H.element);H.trigger("viewDisplay",ca);S--;!f.lazyFetching||T(H.visStart,H.visEnd)?V(H.visStart,H.visEnd):D()}function x(){q()&&(I(),F(),w(),A(),D())}function w(){Q=f.contentHeight?f.contentHeight:f.height?f.height-(O?O.height():0)-E(ra):Math.round(ra.width()/Math.max(f.aspectRatio,.5))}function A(){Q===p&&w();S++;H.setHeight(Q);H.setWidth(ra.width());S--;P=b.outerWidth()}function B(){if(!S)if(H.start){var c=++da;setTimeout(function(){c==da&&!S&&q()&&P!=(P=b.outerWidth())&&(S++,x(),H.trigger("windowResize",ca),S--)},200)}else m()}function C(b){F();D(b)}function D(b){q()&&(H.setEventData(ea),H.renderEvents(ea,b),H.trigger("eventAfterAllRender"))}function F(){H.triggerEventDestroy();H.clearEvents();H.clearEventData()}function I(){H&&H.unselect()}function L(){ra.css({width:"100%",height:ra.height(),overflow:"hidden"})}function J(){ra.css({width:"",height:"",overflow:""})}function N(b,c){return f[b]?f[b].apply(c||ca,Array.prototype.slice.call(arguments,2)):p}var K=this;K.options=f;K.render=function(d){ra?q()&&(w(),u(d)):(b.addClass("fc"),f.isRTL?b.addClass("fc-rtl"):b.addClass("fc-ltr"),f.theme&&b.addClass("ui-widget"),ra=c("\x3cdiv class\x3d'fc-content' style\x3d'position:relative'/\x3e").prependTo(b),M=new h(K,f),(O=M.render())&&b.prepend(O),r(f.defaultView),f.handleWindowResize&&c(window).resize(B),c("body").is(":visible")||m())};K.destroy=function(){H&&(N("viewDestroy",H,H,H.element),H.triggerEventDestroy());c(window).unbind("resize",B);M.destroy();ra.remove();b.removeClass("fc fc-rtl ui-widget")};K.refetchEvents=function(){F();V(H.visStart,H.visEnd)};K.reportEvents=function(b){ea=b;D()};K.reportEventChange=function(b){C(b)};K.rerenderEvents=C;K.changeView=r;K.select=function(b,c,d){H.select(b,c,d===p?!0:d)};K.unselect=I;K.prev=function(){t(-1)};K.next=function(){t(1)};K.prevYear=function(){e(U,-1);t()};K.nextYear=function(){e(U,1);t()};K.today=function(){U=new Date;t()};K.gotoDate=function(b,c,d){b instanceof Date?U=k(b):v(U,b,c,d);t()};K.incrementDate=function(b,c,f){b!==p&&e(U,b);c!==p&&n(U,c);f!==p&&d(U,f);t()};K.formatDate=function(b,c){return y(b,c,f)};K.formatDates=function(b,c,d){return z(b,c,d,f)};K.getDate=function(){return k(U)};K.getView=function(){return H};K.option=function(b,c){return c===p?f[b]:(("height"==b||"contentHeight"==b||"aspectRatio"==b)&&(f[b]=c,x()),p)};K.trigger=N;l.call(K,f,g);var M,O,ra,H,P,Q,R,T=K.isFetchNeeded,V=K.fetchEvents,ca=b[0],da=0,S=0,U=new Date,ea=[];v(U,f.year,f.month,f.date);f.droppable&&c(document).bind("dragstart",function(b,d){var e=b.target,g=c(e);if(!g.parents(".fc").length){var h=f.dropAccept;(c.isFunction(h)?h.call(e,g):g.is(h))&&(R=e,H.dragStart(R,b,d))}}).bind("dragstop",function(b,c){R&&(H.dragStop(R,b,c),R=null)})}function h(b,d){function e(g){var h=c("\x3ctd class\x3d'fc-header-"+g+"'/\x3e");g=d.header[g];return g&&c.each(g.split(" "),function(e){0f;f++)e[f].source=d,n(e[f]);D=D.concat(e)}B--;B||w(D)}})}function f(d,e){var g,h,n=X.sourceFetchers;for(g=0;n.length>g;g++){if(h=n[g](d,t,u,e),!0===h)return;if("object"==typeof h)return f(h,e),p}if(g=d.events)c.isFunction(g)?(l(),g(k(t),k(u),function(b){e(b);m()})):c.isArray(g)?e(g):e();else if(d.url){var q=d.success,r=d.error,v=d.complete;g=c.isFunction(d.data)?d.data():d.data;g=c.extend({},g||{});h=P(d.startParam,b.startParam);n=P(d.endParam,b.endParam);h&&(g[h]=Math.round(+t/1E3));n&&(g[n]=Math.round(+u/1E3));l();c.ajax(c.extend({},oa,d,{data:g,success:function(b){b=b||[];var d=J(q,this,arguments);c.isArray(d)&&(b=d);e(b)},error:function(){J(r,this,arguments);e()},complete:function(){J(v,this,arguments);m()}}))}else e()}function h(b){c.isFunction(b)||c.isArray(b)?b={events:b}:"string"==typeof b&&(b={url:b});if("object"==typeof b){var d=b;d.className?"string"==typeof d.className&&(d.className=d.className.split(/\s+/)):d.className=[];for(var e=X.sourceNormalizers,f=0;e.length>f;f++)e[f](d);b=(y.push(b),b)}else b=p;return b}function l(){C++||v("loading",null,!0,x())}function m(){--C||v("loading",null,!1,x())}function n(c){var d=c.source||{},e=P(d.ignoreTimezone,b.ignoreTimezone);c._id=c._id||(c.id===p?"_fc"+Da++:c.id+"");c.date&&(c.start||(c.start=c.date),delete c.date);c._start=k(c.start=g(c.start,e));c.end=g(c.end,e);c.end&&c.end<=c.start&&(c.end=null);c._end=c.end?k(c.end):null;c.allDay===p&&(c.allDay=P(d.allDayDefault,b.allDayDefault));c.className?"string"==typeof c.className&&(c.className=c.className.split(/\s+/)):c.className=[]}function q(b,c){return b&&c&&r(b)==r(c)}function r(b){return("object"==typeof b?b.events||b.url:"")||b}this.isFetchNeeded=function(b,c){return!t||t>b||c>u};this.fetchEvents=function(b,c){t=b;u=c;D=[];var d=++A,f=y.length;B=f;for(var g=0;f>g;g++)e(y[g],d)};this.addEventSource=function(b){(b=h(b))&&(B++,e(b,A))};this.removeEventSource=function(b){y=c.grep(y,function(c){return!q(c,b)});D=c.grep(D,function(c){return!q(c.source,b)});w(D)};this.updateEvent=function(b){var c,d,e=D.length,f=x().defaultEventEnd,g=b.start-b._start,h=b.end?b.end-(b._end||f(b)):0;for(c=0;e>c;c++)d=D[c],d._id==b._id&&d!=b&&(d.start=new Date(+d.start+g),d.end=b.end?d.end?new Date(+d.end+h):new Date(+f(d)+h):null,d.title=b.title,d.url=b.url,d.allDay=b.allDay,d.className=b.className,d.editable=b.editable,d.color=b.color,d.backgroundColor=b.backgroundColor,d.borderColor=b.borderColor,d.textColor=b.textColor,n(d));n(b);w(D)};this.renderEvent=function(b,c){n(b);b.source||(c&&(z.events.push(b),b.source=z),D.push(b));w(D)};this.removeEvents=function(b){if(b){if(!c.isFunction(b)){var d=b+"";b=function(b){return b._id==d}}D=c.grep(D,b,!0);for(var e=0;y.length>e;e++)c.isArray(y[e].events)&&(y[e].events=c.grep(y[e].events,b,!0))}else for(D=[],e=0;y.length>e;e++)c.isArray(y[e].events)&&(y[e].events=[]);w(D)};this.clientEvents=function(b){return c.isFunction(b)?c.grep(D,b):b?(b+="",c.grep(D,function(c){return c._id==b})):D};this.normalizeEvent=n;for(var t,u,v=this.trigger,x=this.getView,w=this.reportEvents,z={events:[]},y=[z],A=0,B=0,C=0,D=[],E=0;d.length>E;E++)h(d[E])}function e(b,c,d){return b.setFullYear(b.getFullYear()+c),d||f(b),b}function n(b,c,d){if(+b){c=b.getMonth()+c;var e=k(b);e.setDate(1);e.setMonth(c);b.setMonth(c);for(d||f(b);b.getMonth()!=e.getMonth();)b.setDate(b.getDate()+(e>b?1:-1))}return b}function d(b,c,d){if(+b){c=b.getDate()+c;var e=k(b);e.setHours(9);e.setDate(c);b.setDate(c);d||f(b);m(b,e)}return b}function m(b,c){if(+b)for(;b.getDate()!=c.getDate();)b.setTime(+b+(c>b?1:-1)*ma)}function r(b,c){return b.setMinutes(b.getMinutes()+c),b}function f(b){return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b}function k(b,c){return c?f(new Date(+b)):new Date(+b)}function u(){var b,c=0;do b=new Date(1970,c++,1);while(b.getHours());return b}function x(b,c){return Math.round((k(b,!0)-k(c,!0))/qa)}function v(b,c,d,e){c!==p&&c!=b.getFullYear()&&(b.setDate(1),b.setMonth(0),b.setFullYear(c));d!==p&&d!=b.getMonth()&&(b.setDate(1),b.setMonth(d));e!==p&&b.setDate(e)}function g(b,c){return"object"==typeof b?b:"number"==typeof b?new Date(1E3*b):"string"==typeof b?b.match(/^\d+(\.\d+)?$/)?new Date(1E3*parseFloat(b)):(c===p&&(c=!0),t(b,c)||(b?new Date(b):null)):null}function t(b,c){var d=b.match(/^([0-9]{4})(-([0-9]{2})(-([0-9]{2})([T ]([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?(Z|(([-+])([0-9]{2})(:?([0-9]{2}))?))?)?)?)?$/);if(!d)return null;var e=new Date(d[1],0,1);if(c||!d[13]){var f=new Date(d[1],0,1,9,0);d[3]&&(e.setMonth(d[3]-1),f.setMonth(d[3]-1));d[5]&&(e.setDate(d[5]),f.setDate(d[5]));m(e,f);d[7]&&e.setHours(d[7]);d[8]&&e.setMinutes(d[8]);d[10]&&e.setSeconds(d[10]);d[12]&&e.setMilliseconds(1E3*Number("0."+d[12]));m(e,f)}else if(e.setUTCFullYear(d[1],d[3]?d[3]-1:0,d[5]||1),e.setUTCHours(d[7]||0,d[8]||0,d[10]||0,d[12]?1E3*Number("0."+d[12]):0),d[14])f=60*Number(d[16])+(d[18]?Number(d[18]):0),f*="-"==d[15]?1:-1,e=new Date(+e+6E4*f);return e}function w(b){if("number"==typeof b)return 60*b;if("object"==typeof b)return 60*b.getHours()+b.getMinutes();if(b=b.match(/(\d+)(?::(\d+))?\s*(\w+)?/)){var c=parseInt(b[1],10);return b[3]&&(c%=12,"p"==b[3].toLowerCase().charAt(0)&&(c+=12)),60*c+(b[2]?parseInt(b[2],10):0)}}function y(b,c,d){return z(b,null,c,d)}function z(b,c,d,e){e=e||Ja;var f,g,h,k,l=b,m=c,n=d.length,p="";for(f=0;n>f;f++)if(g=d.charAt(f),"'"==g)for(h=f+1;n>h;h++){if("'"==d.charAt(h)){l&&(p+=h==f+1?"'":d.substring(f+1,h),f=h);break}}else if("("==g)for(h=f+1;n>h;h++){if(")"==d.charAt(h)){f=y(l,d.substring(f+1,h),e);parseInt(f.replace(/\D/,""),10)&&(p+=f);f=h;break}}else if("["==g)for(h=f+1;n>h;h++){if("]"==d.charAt(h)){k=d.substring(f+1,h);f=y(l,k,e);f!=y(m,k,e)&&(p+=f);f=h;break}}else if("{"==g)l=c,m=b;else if("}"==g)l=b,m=c;else{for(h=n;h>f;h--)if(k=La[d.substring(f,h)]){l&&(p+=k(l,e));f=h-1;break}h==f&&l&&(p+=g)}return p}function D(b){if(b.end){var c=b.end;b=b.allDay;b=(c=k(c),b||c.getHours()||c.getMinutes()?d(c,1):f(c))}else b=d(k(b.start),1);return b}function A(b,d,e){b.unbind("mouseover").mouseover(function(b){for(var f,g,h,k=b.target;k!=this;)f=k,k=k.parentNode;(g=f._fci)!==p&&(f._fci=p,h=d[g],e(h.event,h.element,h),c(b.target).trigger(b));b.stopPropagation()})}function B(b,d,e){for(var f,g=0;b.length>g;g++)f=c(b[g]),f.width(Math.max(0,d-N(f,e)))}function F(b,d,e){for(var f,g=0;b.length>g;g++)f=c(b[g]),f.height(Math.max(0,d-E(f,e)))}function N(b,d){var e=(parseFloat(c.css(b[0],"paddingLeft",!0))||0)+(parseFloat(c.css(b[0],"paddingRight",!0))||0),f;f=(parseFloat(c.css(b[0],"borderLeftWidth",!0))||0)+(parseFloat(c.css(b[0],"borderRightWidth",!0))||0);e+=f;f=d?(parseFloat(c.css(b[0],"marginLeft",!0))||0)+(parseFloat(c.css(b[0],"marginRight",!0))||0):0;return e+f}function E(b,d){var e=(parseFloat(c.css(b[0],"paddingTop",!0))||0)+(parseFloat(c.css(b[0],"paddingBottom",!0))||0),f;f=(parseFloat(c.css(b[0],"borderTopWidth",!0))||0)+(parseFloat(c.css(b[0],"borderBottomWidth",!0))||0);e+=f;f=d?(parseFloat(c.css(b[0],"marginTop",!0))||0)+(parseFloat(c.css(b[0],"marginBottom",!0))||0):0;return e+f}function G(){}function q(b,c){return b-c}function H(b){return(10>b?"0":"")+b}function L(b,c){if(b[c]!==p)return b[c];for(var d,e=c.split(/(?=[A-Z])/),f=e.length-1;0<=f;f--)if(d=b[e[f].toLowerCase()],d!==p)return d;return b[""]}function I(b){return b.replace(/&/g,"\x26amp;").replace(//g,"\x26gt;").replace(/'/g,"\x26#039;").replace(/"/g,"\x26quot;").replace(/\n/g,"\x3cbr /\x3e")}function K(b){b.attr("unselectable","on").css("MozUserSelect","none").bind("../../../../../error/ie.html",function(){return!1})}function O(b){b.children().removeClass("fc-first fc-last").filter(":first-child").addClass("fc-first").end().filter(":last-child").addClass("fc-last")}function M(b,c){var d=b.source||{},e=b.color,f=d.color,g=c("eventColor"),h=b.backgroundColor||e||d.backgroundColor||f||c("eventBackgroundColor")||g,e=b.borderColor||e||d.borderColor||f||c("eventBorderColor")||g,d=b.textColor||d.textColor||c("eventTextColor"),f=[];return h&&f.push("background-color:"+h),e&&f.push("border-color:"+e),d&&f.push("color:"+d),f.join(";")}function J(b,d,e){if(c.isFunction(b)&&(b=[b]),b){var f,g;for(f=0;b.length>f;f++)g=b[f].apply(d,e)||g;return g}}function P(){for(var b=0;arguments.length>b;b++)if(arguments[b]!==p)return arguments[b]}function T(b,e,g){function h(){var d=l();r&&r.remove();r=c(d).appendTo(b);u=r.find("thead");v=u.find(".fc-day-header");x=r.find("tbody");w=x.find("tr");y=x.find(".fc-day");z=w.find("td:first-child");A=w.eq(0).find(".fc-day \x3e div");D=w.eq(0).find(".fc-day-content \x3e div");O(u.add(u.find("tr")));O(w);w.eq(0).addClass("fc-first");w.filter(":last").addClass("fc-last");y.each(function(b,d){var e=wa(Math.floor(b/M),b%M);W("dayRender",q,e,c(d))});y.click(m).mousedown(xa)}function l(){var b,c,d=da+"-widget-header",e;e="\x3cthead\x3e\x3ctr\x3e";V&&(e+="\x3cth class\x3d'fc-week-number "+d+"'\x3e"+I(ea)+"\x3c/th\x3e");for(b=0;M>b;b++)c=wa(0,b),e+="\x3cth class\x3d'fc-day-header fc-"+ya[c.getDay()]+" "+d+"'\x3e"+I(Aa(c,T))+"\x3c/th\x3e";b="\x3ctable class\x3d'fc-border-separate' style\x3d'width:100%' cellspacing\x3d'0'\x3e"+(e+"\x3c/tr\x3e\x3c/thead\x3e");var g;e=da+"-widget-content";var h;h="\x3ctbody\x3e";for(c=0;J>c;c++){h+="\x3ctr class\x3d'fc-week'\x3e";V&&(g=wa(c,0),h+="\x3ctd class\x3d'fc-week-number "+e+"'\x3e\x3cdiv\x3e"+I(Aa(g,Y))+"\x3c/div\x3e\x3c/td\x3e");for(d=0;M>d;d++){g=wa(c,d);var k;k=g;var m=da+"-widget-content",n=q.start.getMonth(),p=f(new Date),r="",m=["fc-day","fc-"+ya[k.getDay()],m];k=(k.getMonth()!=n&&m.push("fc-other-month"),+k==+p?m.push("fc-today",da+"-state-highlight"):p>k?m.push("fc-past"):m.push("fc-future"),r+="\x3ctd class\x3d'"+m.join(" ")+"' data-date\x3d'"+Aa(k,"yyyy-MM-dd")+"'\x3e\x3cdiv\x3e",P&&(r+="\x3cdiv class\x3d'fc-day-number'\x3e"+k.getDate()+"\x3c/div\x3e"),r+"\x3cdiv class\x3d'fc-day-content'\x3e\x3cdiv style\x3d'position:relative'\x3e\x26nbsp;\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/td\x3e");h+=k}h+="\x3c/tr\x3e"}return b+(h+"\x3c/tbody\x3e")+"\x3c/table\x3e"}function m(b){if(!ka("selectable")){var d=t(c(this).data("date"));W("dayClick",this,d,!0,b)}}function n(b,c,d){d&&Q.build();b=sa(b,c);for(c=0;b.length>c;c++)d=b[c],p(d.row,d.leftCol,d.row,d.rightCol).click(m).mousedown(xa)}function p(c,d,e,f){c=Q.rect(c,d,e,f,b);return X(c,b)}var q=this;q.renderBasic=function(d,e,f){J=d;M=e;P=f;da=ka("theme")?"ui":"fc";T=ka("columnFormat");V=ka("weekNumbers");ea=ka("weekNumberTitle");Y="iso"!=ka("weekNumberCalculation")?"w":"W";x||(F=c("\x3cdiv class\x3d'fc-event-container' style\x3d'position:absolute;z-index:8;top:0;left:0'/\x3e").appendTo(b));h()};q.setHeight=function(b){G=b;var d,e,f;b=G-u.height();"variable"==ka("weekMode")?d=e=Math.floor(b/(1==J?2:6)):(d=Math.floor(b/J),e=b-d*(J-1));z.each(function(b,g){J>b&&(f=c(g),f.find("\x3e div").css("min-height",(b==J-1?e:d)-E(f)))})};q.setWidth=function(b){H=b;U.clear();ca.clear();N=0;V&&(N=u.find("th.fc-week-number").outerWidth());L=Math.floor((H-N)/M);B(v.slice(0,-1),L)};q.renderDayOverlay=n;q.defaultSelectionEnd=function(b){return k(b)};q.renderSelection=function(b,c){n(b,d(k(c),1),!0)};q.clearSelection=function(){Z()};q.reportDayClick=function(b,c,d){var e=Ga(b);W("dayClick",y[e.row*M+e.col],b,c,d)};q.dragStart=function(b,c){R.start(function(b){Z();b&&p(b.row,b.col,b.row,b.col)},c)};q.dragStop=function(b,c,d){var e=R.stop();if(Z(),e)e=wa(e),W("drop",b,e,!0,c,d)};q.defaultEventEnd=function(b){return k(b.start)};q.getHoverListener=function(){return R};q.colLeft=function(b){return U.left(b)};q.colRight=function(b){return U.right(b)};q.colContentLeft=function(b){return ca.left(b)};q.colContentRight=function(b){return ca.right(b)};q.getIsCellAllDay=function(){return!0};q.allDayRow=function(b){return w.eq(b)};q.getRowCnt=function(){return J};q.getColCnt=function(){return M};q.getColWidth=function(){return L};q.getDaySegmentContainer=function(){return F};ga.call(q,b,e,g);C.call(q);Ia.call(q);S.call(q);var r,u,v,x,w,y,z,A,D,F,H,G,L,N,J,M,P,Q,R,U,ca,da,T,V,ea,Y,ka=q.opt,W=q.trigger,X=q.renderOverlay,Z=q.clearOverlays,xa=q.daySelectionMousedown,wa=q.cellToDate,Ga=q.dateToCell,sa=q.rangeToSegments,Aa=e.formatDate;K(b.addClass("fc-grid"));Q=new Sa(function(b,d){var e,f,g;v.each(function(b,h){e=c(h);f=e.offset().left;b&&(g[1]=f);g=[f];d[b]=g});g[1]=f+e.outerWidth();w.each(function(d,h){J>d&&(e=c(h),f=e.offset().top,d&&(g[1]=f),g=[f],b[d]=g)});g[1]=f+e.outerHeight()});R=new Ta(Q);U=new Ka(function(b){return A.eq(b)});ca=new Ka(function(b){return D.eq(b)})}function S(){var b=this;b.renderEvents=function(c,d){b.renderDayEvents(c,d)};b.clearEvents=function(){b.getDaySegmentContainer().empty()};fa.call(b)}function R(b,e,g){function h(){var d,e,g=Ba+"-widget-header",k;k="\x3cthead\x3e\x3ctr\x3e";Wa?(d=Ha(0,0),e=ma(d,Xa),Ua?e+=Qa:e=Qa+e,k+="\x3cth class\x3d'fc-agenda-axis fc-week-number "+g+"'\x3e"+I(e)+"\x3c/th\x3e"):k+="\x3cth class\x3d'fc-agenda-axis "+g+"'\x3e\x26nbsp;\x3c/th\x3e";for(e=0;sa>e;e++)d=Ha(0,e),k+="\x3cth class\x3d'fc-"+ya[d.getDay()]+" fc-col"+e+" "+g+"'\x3e"+I(ma(d,Va))+"\x3c/th\x3e";d="\x3ctable style\x3d'width:100%' class\x3d'fc-agenda-days fc-border-separate' cellspacing\x3d'0'\x3e"+(k+("\x3cth class\x3d'fc-agenda-gutter "+g+"'\x3e\x26nbsp;\x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e"));var l,m,n,p;e=Ba+"-widget-header";g=Ba+"-widget-content";k=f(new Date);e=""+("\x3ctbody\x3e\x3ctr\x3e\x3cth class\x3d'fc-agenda-axis "+e+"'\x3e\x26nbsp;\x3c/th\x3e");n="";for(m=0;sa>m;m++)l=Ha(0,m),p=["fc-col"+m,"fc-"+ya[l.getDay()],g],+l==+k?p.push(Ba+"-state-highlight","fc-today"):k>l?p.push("fc-past"):p.push("fc-future"),l="\x3ctd class\x3d'"+p.join(" ")+"'\x3e\x3cdiv\x3e\x3cdiv class\x3d'fc-day-content'\x3e\x3cdiv style\x3d'position:relative'\x3e\x26nbsp;\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/td\x3e",n+=l;g=(e+=n,e+("\x3ctd class\x3d'fc-agenda-gutter "+g+"'\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\x3e"));d=d+g+"\x3c/table\x3e";J&&J.remove();J=c(d).appendTo(b);L=J.find("thead");N=L.find("th").slice(1,-1);M=J.find("tbody");P=M.find("td").slice(0,-1);R=P.find("\x3e div");U=P.find(".fc-day-content \x3e div");V=P.eq(0);T=R.eq(0);O(L.add(L.find("tr")));O(M.add(M.find("tr")))}function l(){function b(){ca.scrollTop(e)}var c=u(),d=k(c);d.setHours(aa("firstHour"));var e=z(c,d)+1;b();setTimeout(b,0)}function m(b){if(!aa("selectable")){var c=Math.min(sa-1,Math.floor((b.pageX-J.offset().left-ka)/ba)),d=Ha(0,c),e=this.parentNode.className.match(/fc-slot(\d+)/);e?(e=parseInt(e[1])*aa("slotMinutes"),d.setHours(Math.floor(e/60)),d.setMinutes(e%60+Ca),Pa("dayClick",P[c],d,!1,b)):Pa("dayClick",P[c],d,!0,b)}}function n(b,c,d){d&&za.build();b=qa(b,c);for(c=0;b.length>c;c++)d=b[c],t(d.row,d.leftCol,d.row,d.rightCol).click(m).mousedown(Ya)}function t(b,c,d,e){b=za.rect(b,c,d,e,S);return Za(b,S)}function v(b,c){for(var e=0;sa>e;e++){var f=Ha(0,e),g=d(k(f),1),h=new Date(Math.max(f,b)),l=new Date(Math.min(g,c));l>h&&(g=za.rect(0,e,0,e,da),h=z(f,h),f=z(f,l),g.top=h,g.height=f-h,Za(g,da).click(m).mousedown(H))}}function x(b){return aa("allDaySlot")&&!b.row}function y(b){var c=Ha(0,b.col);b=b.row;return aa("allDaySlot")&&b--,0<=b&&r(c,Ca+b*xa),c}function z(b,c){if(b=k(b,!0),r(k(b),Ca)>c)return 0;if(c>=r(k(b),Oa))return ua.height();var d=aa("slotMinutes"),e=60*c.getHours()+c.getMinutes()-Ca,f=Math.floor(e/d),g=oa[f];return g===p&&(g=oa[f]=ua.find("tr").eq(f).find("td div")[0].offsetTop),Math.max(0,Math.round(g-1+e%d/d*fa))}function A(b,d){var e=aa("selectHelper");if(za.build(),e){var f=$a(b).col;if(0<=f&&sa>f){var f=za.rect(0,f,0,f,da),g=z(b,b),h=z(b,d);h>g&&((f.top=g,f.height=h-g,f.left+=2,f.width-=5,c.isFunction(e))?(e=e(b,d))&&(f.position="absolute",ea=c(e).css(f).appendTo(da)):(f.isStart=!0,f.isEnd=!0,ea=c(ja({title:"",start:b,end:d,className:["fc-select-helper"],editable:!1},f)),ea.css("opacity",aa("dragOpacity"))),ea&&(ea.click(m).mousedown(H),da.append(ea),B(ea,f.width,!0),F(ea,f.height,!0)))}}else v(b,d)}function D(){Ra();ea&&(ea.remove(),ea=null)}function H(b){if(1==b.which&&aa("selectable")){la(b);var d;Fa.start(function(b,c){if(D(),b&&b.col==c.col&&!x(b)){var e=y(c),f=y(b);d=[e,r(k(e),xa),f,r(k(f),xa)].sort(q);A(d[0],d[3])}else d=null},b);c(document).one("mouseup",function(b){Fa.stop();d&&(+d[0]==+d[1]&&G(d[0],!1,b),cb(d[0],d[3],!1,b))})}}function G(b,c,d){Pa("dayClick",P[$a(b).col],b,c,d)}this.renderAgenda=function(d){sa=d;Ba=aa("theme")?"ui":"fc";Ua=aa("isRTL");Ca=w(aa("minTime"));Oa=w(aa("maxTime"));Va=aa("columnFormat");Wa=aa("weekNumbers");Qa=aa("weekNumberTitle");Xa="iso"!=aa("weekNumberCalculation")?"w":"W";xa=aa("snapMinutes")||aa("slotMinutes");if(J)h();else{var e,f,g,l,n=Ba+"-widget-header",p=Ba+"-widget-content",q=0==aa("slotMinutes")%15;h();S=c("\x3cdiv style\x3d'position:absolute;z-index:2;left:0;width:100%'/\x3e").appendTo(b);aa("allDaySlot")?(Y=c("\x3cdiv class\x3d'fc-event-container' style\x3d'position:absolute;z-index:8;top:0;left:0'/\x3e").appendTo(S),d="\x3ctable style\x3d'width:100%' class\x3d'fc-agenda-allday' cellspacing\x3d'0'\x3e\x3ctr\x3e\x3cth class\x3d'"+n+" fc-agenda-axis'\x3e"+aa("allDayText")+"\x3c/th\x3e\x3ctd\x3e\x3cdiv class\x3d'fc-day-content'\x3e\x3cdiv style\x3d'position:relative'/\x3e\x3c/div\x3e\x3c/td\x3e\x3cth class\x3d'"+n+" fc-agenda-gutter'\x3e\x26nbsp;\x3c/th\x3e\x3c/tr\x3e\x3c/table\x3e",W=c(d).appendTo(S),X=W.find("tr"),X.find("td").click(m).mousedown(Ya),S.append("\x3cdiv class\x3d'fc-agenda-divider "+n+"'\x3e\x3cdiv class\x3d'fc-agenda-divider-inner'/\x3e\x3c/div\x3e")):Y=c([]);ca=c("\x3cdiv style\x3d'position:absolute;width:100%;overflow-x:hidden;overflow-y:auto'/\x3e").appendTo(S);da=c("\x3cdiv style\x3d'position:relative;width:100%;overflow:hidden'/\x3e").appendTo(ca);ta=c("\x3cdiv class\x3d'fc-event-container' style\x3d'position:absolute;z-index:8;top:0;left:0'/\x3e").appendTo(da);d="\x3ctable class\x3d'fc-agenda-slots' style\x3d'width:100%' cellspacing\x3d'0'\x3e\x3ctbody\x3e";e=u();g=r(k(e),Oa);r(e,Ca);for(f=Aa=0;g>e;f++)l=e.getMinutes(),d+="\x3ctr class\x3d'fc-slot"+f+" "+(l?"fc-minor":"")+"'\x3e\x3cth class\x3d'fc-agenda-axis "+n+"'\x3e"+(q&&l?"\x26nbsp;":ma(e,aa("axisFormat")))+"\x3c/th\x3e\x3ctd class\x3d'"+p+"'\x3e\x3cdiv style\x3d'position:relative'\x3e\x26nbsp;\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e",r(e,aa("slotMinutes")),Aa++;ua=c(d+"\x3c/tbody\x3e\x3c/table\x3e").appendTo(da);ua.find("td").click(m).mousedown(H)}};this.setWidth=function(b){Ma.clear();Na.clear();b=L.find("th:first");W&&(b=b.add(W.find("th:first")));b=b.add(ua.find("th:first"));ka=0;B(b.width("").each(function(b,d){ka=Math.max(ka,c(d).outerWidth())}),ka);b=J.find(".fc-agenda-gutter");W&&(b=b.add(W.find("th.fc-agenda-gutter")));var d=ca[0].clientWidth;(ha=ca.width()-d)?(B(b,ha),b.show().prev().removeClass("fc-last")):b.hide().prev().addClass("fc-last");ba=Math.floor((d-ka)/sa);B(N.slice(0,-1),ba)};this.setHeight=function(b){b===p&&(b=Z);Z=b;oa={};var c=M.position().top,d=ca.position().top;b=Math.min(b-c,ua.height()+d+1);T.height(b-E(V));S.css("top",c);ca.height(b-d-1);fa=ua.find("tr:first").height()+1;wa=aa("slotMinutes")/xa;Ga=fa/wa};this.afterRender=function(){l()};this.defaultEventEnd=function(b){var c=k(b.start);return b.allDay?c:r(c,aa("defaultEventMinutes"))};this.timePosition=z;this.getIsCellAllDay=x;this.allDayRow=function(){return X};this.getCoordinateGrid=function(){return za};this.getHoverListener=function(){return Fa};this.colLeft=function(b){return Ma.left(b)};this.colRight=function(b){return Ma.right(b)};this.colContentLeft=function(b){return Na.left(b)};this.colContentRight=function(b){return Na.right(b)};this.getDaySegmentContainer=function(){return Y};this.getSlotSegmentContainer=function(){return ta};this.getMinMinute=function(){return Ca};this.getMaxMinute=function(){return Oa};this.getSlotContainer=function(){return da};this.getRowCnt=function(){return 1};this.getColCnt=function(){return sa};this.getColWidth=function(){return ba};this.getSnapHeight=function(){return Ga};this.getSnapMinutes=function(){return xa};this.defaultSelectionEnd=function(b,c){return c?k(b):r(k(b),aa("slotMinutes"))};this.renderDayOverlay=n;this.renderSelection=function(b,c,e){e?aa("allDaySlot")&&n(b,d(k(c),1),!0):A(b,c)};this.clearSelection=D;this.reportDayClick=G;this.dragStart=function(b,c){Fa.start(function(b){if(Ra(),b)if(x(b))t(b.row,b.col,b.row,b.col);else{b=y(b);var c=r(k(b),aa("defaultEventMinutes"));v(b,c)}},c)};this.dragStop=function(b,c,d){var e=Fa.stop();Ra();e&&Pa("drop",b,y(e),x(e),c,d)};ga.call(this,b,e,g);C.call(this);Ia.call(this);Q.call(this);var J,L,N,M,P,R,U,V,T,S,Y,W,X,ca,da,ta,ua,ea,Z,ka,ba,ha,fa,xa,wa,Ga,sa,Aa,za,Fa,Ma,Na,Ba,Ua,Ca,Oa,Va,Wa,Qa,Xa,aa=this.opt,Pa=this.trigger,Za=this.renderOverlay,Ra=this.clearOverlays,cb=this.reportSelection,la=this.unselect,Ya=this.daySelectionMousedown,ja=this.slotSegHtml,Ha=this.cellToDate,$a=this.dateToCell,qa=this.rangeToSegments,ma=e.formatDate,oa={};K(b.addClass("fc-agenda"));za=new Sa(function(b,d){var e,f,g;N.each(function(b,h){e=c(h);f=e.offset().left;b&&(g[1]=f);g=[f];d[b]=g});g[1]=f+e.outerWidth();aa("allDaySlot")&&(e=X,f=e.offset().top,b[0]=[f,f+e.outerHeight()]);for(var h=da.offset().top,k=ca.offset().top,l=k+ca.outerHeight(),m=0;Aa*wa>m;m++)b.push([Math.max(k,Math.min(l,h+Ga*m)),Math.max(k,Math.min(l,h+Ga*(m+1)))])});Fa=new Ta(za);Ma=new Ka(function(b){return R.eq(b)});Na=new Ka(function(b){return U.eq(b)})}function Q(){function b(c){return c.end?k(c.end):r(k(c.start),m("defaultEventMinutes"))}function e(b,c){var d="\x3c",f=b.url,g=M(b,m),h=["fc-event","fc-event-vert"];return q(b)&&h.push("fc-event-draggable"),c.isStart&&h.push("fc-event-start"),c.isEnd&&h.push("fc-event-end"),h=h.concat(b.className),b.source&&(h=h.concat(b.source.className||[])),d+=f?"a href\x3d'"+I(b.url)+"'":"div",d+=" class\x3d'"+h.join(" ")+"' style\x3d'position:absolute;top:"+c.top+"px;left:"+c.left+"px;"+g+"'\x3e\x3cdiv class\x3d'fc-event-inner'\x3e\x3cdiv class\x3d'fc-event-time'\x3e"+I(ga(b.start,b.end,m("timeFormat")))+"\x3c/div\x3e\x3cdiv class\x3d'fc-event-title'\x3e"+I(b.title||"")+"\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'fc-event-bg'\x3e\x3c/div\x3e",c.isEnd&&t(b)&&(d+="\x3cdiv class\x3d'ui-resizable-handle ui-resizable-s'\x3e\x3d\x3c/div\x3e"),d+("\x3c/"+(f?"a":"div")+"\x3e")}function f(b,c,d){var e=c.find("div.fc-event-time");q(b)&&g(b,c,e);d.isEnd&&t(b)&&h(b,c,e);v(b,c)}function g(b,c,e){function f(){X();if(q)if(u)e.hide(),c.draggable("option","grid",null),ea(d(k(b.start),z),d(D(b),z));else{var g=A,h,l=r(k(b.start),g);b.end&&(h=r(k(b.end),g));e.text(ga(l,h,m("timeFormat")));e.css("display","");c.draggable("option","grid",[F,H])}}var h,p,q,t,u,v,w,y,z,A,B,C=l.getCoordinateGrid(),E=P(),F=Q(),H=R(),J=S();c.draggable({scroll:!1,grid:[F,H],axis:1==E?"y":!1,opacity:m("dragOpacity"),revertDuration:m("dragRevertDuration"),start:function(d,e){n("eventDragStart",c,b,d,e);da(b,c);C.build();h=c.position();p=C.cell(d.pageX,d.pageY);q=t=!0;u=v=G(p);A=B=z=w=y=0},drag:function(b,d){var e=C.cell(b.pageX,b.pageY);if(q=!!e){if(u=G(e),w=Math.round((d.position.left-h.left)/F),w!=y){var e=O(0,p.col),g=p.col+w,g=Math.max(0,g),g=Math.min(E-1,g),g=O(0,g);z=x(g,e)}u||(A=Math.round((d.position.top-h.top)/H)*J)}(q!=t||u!=v||w!=y||A!=B)&&(f(),t=q,v=u,y=w,B=A);c.draggable("option","revert",!q)},stop:function(d,e){X();n("eventDragStop",c,b,d,e);q&&(u||z||A)?ta(this,b,z,u?0:A,u,d,e):(q=!0,u=!1,w=0,z=0,A=0,f(),c.css("filter",""),c.css(h),ca(b,c))}})}function h(b,c,d){var e,f,g=R(),k=S();c.resizable({handles:{s:".ui-resizable-handle"},grid:g,start:function(d,g){e=f=0;da(b,c);n("eventResizeStart",this,b,d,g)},resize:function(h,l){e=Math.round((Math.max(g,c.height())-l.originalSize.height)/g);e!=f&&(d.text(ga(b.start,e||b.end?r(u(b),k*e):null,m("timeFormat"))),f=e)},stop:function(d,f){n("eventResizeStop",this,b,d,f);e?ua(this,b,0,k*e,d,f):ca(b,c)}})}var l=this;l.renderEvents=function(d,g){var h,l=d.length,q=[],t=[];for(h=0;l>h;h++)d[h].allDay?q.push(d[h]):t.push(d[h]);m("allDaySlot")&&(ka(q,g),w());var u,v,x,y,q=P(),B=H(),D=C(),F=c.map(t,b);h=[];for(l=0;q>l;l++){u=O(0,l);r(u,B);v=t;x=F;y=u;u=r(k(u),D-B);var G,I,M,ca,Q=void 0,da=void 0,R=void 0,S=void 0,T=[],bb=v.length;for(G=0;bb>G;G++)I=v[G],M=I.start,ca=x[G],ca>y&&u>M&&(y>M?(Q=k(y),R=!1):(Q=M,R=!0),ca>u?(da=k(u),S=!1):(da=ca,S=!0),T.push({event:I,start:Q,end:da,isStart:R,isEnd:S}));v=y=T.sort(ba);G=[];for(x=0;v.length>x;x++){y=v[x];for(u=0;G.length>u&&W(y,G[u]).length;u++);(G[u]||(G[u]=[])).push(y)}v=G;x=v[0];for(y=0;v.length>y;y++)for(u=v[y],G=0;u.length>G;G++)for(I=u[G],I.forwardSegs=[],M=y+1;v.length>M;M++)W(I,v[M],I.forwardSegs);if(x){for(y=0;x.length>y;y++)U(x[y]);for(y=0;x.length>y;y++)V(x[y],0,0)}G=[];for(x=0;v.length>x;x++)for(y=v[x],u=0;y.length>u;u++)G.push(y[u]);y=G;for(v=0;y.length>v;v++)x=y[v],x.col=l,h.push(x)}var na,va,pa,ia,ta,ea,q=h.length;G="";B=z();I=m("isRTL");for(t=0;q>t;t++)l=h[t],na=l.event,D=J(l.start,l.start),F=J(l.start,l.end),v=L(l.col),x=K(l.col),y=x-v,x-=.025*y,y=x-v,u=y*(l.forwardCoord-l.backwardCoord),m("slotEventOverlap")&&(u=Math.max(2*(u-10),u)),I?(pa=x-l.backwardCoord*y,va=pa-u):(va=v+l.backwardCoord*y,pa=va+u),va=Math.max(va,v),pa=Math.min(pa,x),u=pa-va,l.top=D,l.left=va,l.outerWidth=u,l.outerHeight=F-D,G+=e(na,l);B[0].innerHTML=G;va=B.children();for(t=0;q>t;t++)l=h[t],na=l.event,ia=c(va[t]),pa=n("eventRender",na,na,ia),!1===pa?ia.remove():(pa&&!0!==pa&&(ia.remove(),ia=c(pa).css({position:"absolute",top:l.top,left:l.left}).appendTo(B)),l.element=ia,na._id===g?f(na,ia,l):ia[0]._fci=t,Y(na,ia));A(B,h,f);for(t=0;q>t;t++)l=h[t],(ia=l.element)&&(l.vsides=E(ia,!0),l.hsides=N(ia,!0),ta=ia.find(".fc-event-title"),ta.length&&(l.contentTop=ta[0].offsetTop));for(t=0;q>t;t++)l=h[t],(ia=l.element)&&(ia[0].style.width=Math.max(0,l.outerWidth-l.hsides)+"px",ea=Math.max(0,l.outerHeight-l.vsides),ia[0].style.height=ea+"px",na=l.event,l.contentTop!==p&&10>ea-l.contentTop&&(ia.find("div.fc-event-time").text(ha(na.start,m("timeFormat"))+" - "+na.title),ia.find("div.fc-event-title").remove()),n("eventAfterRender",na,na,ia))};l.clearEvents=function(){y().empty();z().empty()};l.slotSegHtml=e;fa.call(l);var m=l.opt,n=l.trigger,q=l.isEventDraggable,t=l.isEventResizable,u=l.eventEnd,v=l.eventElementHandlers,w=l.setHeight,y=l.getDaySegmentContainer,z=l.getSlotSegmentContainer,B=l.getHoverListener,C=l.getMaxMinute,H=l.getMinMinute,J=l.timePosition,G=l.getIsCellAllDay,L=l.colContentLeft,K=l.colContentRight,O=l.cellToDate,P=l.getColCnt,Q=l.getColWidth,R=l.getSnapHeight,S=l.getSnapMinutes,T=l.getSlotContainer,Y=l.reportEventElement,ca=l.showEvents,da=l.hideEvents,ta=l.eventDrop,ua=l.eventResize,ea=l.renderDayOverlay,X=l.clearOverlays,ka=l.renderDayEvents,Z=l.calendar,ha=Z.formatDate,ga=Z.formatDates;l.draggableDayEvent=function(b,c,e){function f(){q||(c.width(g).height("").draggable("option","grid",null),q=!0)}var g,h,l,p=e.isStart,q=!0,r=B(),t=Q(),u=R(),v=S(),w=H();c.draggable({opacity:m("dragOpacity","month"),revertDuration:m("dragRevertDuration"),start:function(e,w){n("eventDragStart",c,b,e,w);da(b,c);g=c.width();r.start(function(e,g){if(X(),e){h=!1;var n=O(0,g.col),r=O(0,e.col);l=x(r,n);e.row?p?q&&(c.width(t-10),F(c,u*Math.round((b.end?(b.end-b.start)/Ea:m("defaultEventMinutes"))/v)),c.draggable("option","grid",[t,1]),q=!1):h=!0:(ea(d(k(b.start),l),d(D(b),l)),f());h=h||q&&!l}else f(),h=!0;c.draggable("option","revert",h)},e,"drag")},stop:function(d,e){if(r.stop(),X(),n("eventDragStop",c,b,d,e),h)f(),c.css("filter",""),ca(b,c);else{var g=0;q||(g=Math.round((c.offset().top-T().offset().top)/u)*v+w-(60*b.start.getHours()+b.start.getMinutes()));ta(this,b,l,g,q,d,e)}}})}}function U(b){var c,d,e=b.forwardSegs,f=0;if(b.forwardPressure===p){for(c=0;e.length>c;c++)d=e[c],U(d),f=Math.max(f,1+d.forwardPressure);b.forwardPressure=f}}function V(b,c,d){var e=b.forwardSegs;if(b.forwardCoord===p)for(e.length?(e.sort(Z),V(e[0],c+1,d),b.forwardCoord=e[0].backwardCoord):b.forwardCoord=1,b.backwardCoord=b.forwardCoord-(b.forwardCoord-d)/(c+1),c=0;e.length>c;c++)V(e[c],0,b.forwardCoord)}function W(b,c,d){d=d||[];for(var e=0;c.length>e;e++){var f=c[e];b.end>f.start&&b.startb;b++)c&&e[b][0]==c[0]||e[b][d]()}function n(b,c,e,f){e=e||0;for(var g,h=b.length,k=0;h>k;k++)g=b[k],f!==p&&(g.allDay=f),r(d(g.start,c,!0),e),g.end&&(g.end=r(d(g.end,c,!0),e)),C(g,H)}function q(b,c,e){e=e||0;for(var f,g=b.length,h=0;g>h;h++)f=b[h],f.end=r(d(l(f),c,!0),e),C(f,H)}function t(b,c){var d=A.getColCnt(),e=O?-1:1,f=O?d-1:0;"object"==typeof b&&(c=b.col,b=b.row);return b*d+(c*e+f)}function u(b){var c=A.visStart.getDay();return b+=M[c],7*Math.floor(b/I)+N[(b%I+I)%I]-c}function v(b){var c=k(A.visStart);return d(c,b),c}function w(b){return x(b,A.visStart)}function y(b){var c=A.visStart.getDay();return b+=c,Math.floor(b/7)*I+M[(b%7+7)%7]-M[c]}function z(b){var c=A.getColCnt();return{row:Math.floor(b/c),col:(b%c+c)%c*(O?-1:1)+(O?c-1:0)}}var A=this;A.element=b;A.calendar=e;A.name=f;A.opt=g;A.trigger=h;A.isEventDraggable=function(b){var c=b.source||{};return P(b.startEditable,c.startEditable,g("eventStartEditable"),b.editable,c.editable,g("editable"))&&!g("disableDragging")};A.isEventResizable=function(b){var c=b.source||{};return P(b.durationEditable,c.durationEditable,g("eventDurationEditable"),b.editable,c.editable,g("editable"))&&!g("disableResizing")};A.setEventData=function(b){E={};var c,d,e=b.length;for(c=0;e>c;c++)d=b[c],E[d._id]?E[d._id].push(d):E[d._id]=[d]};A.clearEventData=function(){E={};F={};G=[]};A.eventEnd=l;A.reportEventElement=function(b,c){G.push({event:b,element:c});F[b._id]?F[b._id].push(c):F[b._id]=[c]};A.triggerEventDestroy=function(){c.each(G,function(b,c){A.trigger("eventDestroy",c.event,c.event,c.element)})};A.eventElementHandlers=function(b,c){c.click(function(d){return c.hasClass("ui-draggable-dragging")||c.hasClass("ui-resizable-resizing")?p:h("eventClick",this,b,d)}).hover(function(c){h("eventMouseover",this,b,c)},function(c){h("eventMouseout",this,b,c)})};A.showEvents=function(b,c){m(b,c,"show")};A.hideEvents=function(b,c){m(b,c,"hide")};A.eventDrop=function(b,c,d,e,f,g,k){var l=c.allDay,m=c._id;n(E[m],d,e,f);h("eventDrop",b,c,d,e,f,function(){n(E[m],-d,-e,l);D(m)},g,k);D(m)};A.eventResize=function(b,c,d,e,f,g){var k=c._id;q(E[k],d,e);h("eventResize",b,c,d,e,function(){q(E[k],-d,-e);D(k)},f,g);D(k)};var B=A.defaultEventEnd,C=e.normalizeEvent,D=e.reportEventChange,E={},F={},G=[],H=e.options;A.isHiddenDay=function(b){return"object"==typeof b&&(b=b.getDay()),K[b]};A.skipHiddenDays=function(b,c,e){for(c=c||1;K[(b.getDay()+(e?c:0)+7)%7];)d(b,c)};A.getCellsPerWeek=function(){return I};A.dateToCell=function(b){b=w(b);b=y(b);return z(b)};A.dateToDayOffset=w;A.dayOffsetToCellOffset=y;A.cellOffsetToCell=z;A.cellToDate=function(){var b=t.apply(null,arguments),b=u(b);return v(b)};A.cellToCellOffset=t;A.cellOffsetToDayOffset=u;A.dayOffsetToDate=v;A.rangeToSegments=function(b,c){for(var d=A.getRowCnt(),e=A.getColCnt(),f=[],g=w(b),h=w(c),k=y(g),l=y(h)-1,m=0;d>m;m++){var n=m*e,p=Math.max(k,n),n=Math.min(l,n+e-1);if(n>=p){var q=z(p),r=z(n),q=[q.col,r.col].sort(),p=u(p)==g,n=u(n)+1==h;f.push({row:m,leftCol:q[0],rightCol:q[1],isStart:p,isEnd:n})}}return f};var I,J=g("hiddenDays")||[],K=[],M=[],N=[],O=g("isRTL");(function(){!1===g("weekends")&&J.push(0,6);for(var b=0,d=0;7>b;b++)M[b]=d,K[b]=-1!=c.inArray(b,J),K[b]||(N[d]=b,d++);if(I=d,!I)throw"invalid hiddenDays";})()}function fa(){function b(c,d,f){c=e([c],!0,!1);var g=[];return ha(c,function(b,c){b.row===d&&c.css("top",f);g.push(c[0])}),g}function e(b,d,k){var n,p,q=T(),t=d?c("\x3cdiv/\x3e"):q;b=f(b);return g(b),n=h(b),t[0].innerHTML=n,p=t.children(),d&&q.append(p),l(b,p),ha(b,function(b,c){b.hsides=N(c,!0)}),ha(b,function(b,c){c.width(Math.max(0,b.outerWidth-b.hsides))}),ha(b,function(b,c){b.outerHeight=c.outerHeight(!0)}),m(b,k),b}function f(b){for(var c=[],d=0;b.length>d;d++){for(var e=b[d],g=e.start,h=D(e),g=ba(g,h),h=0;g.length>h;h++)g[h].event=e;c.push.apply(c,g)}return c}function g(b){for(var c=u("isRTL"),d=0;b.length>d;d++){var e=b[d],f=(c?e.isStart:e.isEnd)?S:Q,h=((c?e.isEnd:e.isStart)?R:P)(e.leftCol),f=f(e.rightCol);e.left=h;e.outerWidth=f-h}}function h(b){for(var c="",d=0;b.length>d;d++){var e;e=b[d];var f="",g=u("isRTL"),k=e.event,l=k.url,m=["fc-event","fc-event-hori"];w(k)&&m.push("fc-event-draggable");e.isStart&&m.push("fc-event-start");e.isEnd&&m.push("fc-event-end");m=m.concat(k.className);k.source&&(m=m.concat(k.source.className||[]));var n=M(k,u);e=(f+=l?"\x3ca href\x3d'"+I(l)+"'":"\x3cdiv",f+=" class\x3d'"+m.join(" ")+"' style\x3d'position:absolute;left:"+e.left+"px;"+n+"'\x3e\x3cdiv class\x3d'fc-event-inner'\x3e",!k.allDay&&e.isStart&&(f+="\x3cspan class\x3d'fc-event-time'\x3e"+I(U(k.start,k.end,u("timeFormat")))+"\x3c/span\x3e"),f+="\x3cspan class\x3d'fc-event-title'\x3e"+I(k.title||"")+"\x3c/span\x3e\x3c/div\x3e",e.isEnd&&y(k)&&(f+="\x3cdiv class\x3d'ui-resizable-handle ui-resizable-"+(g?"w":"e")+"'\x3e\x26nbsp;\x26nbsp;\x26nbsp;\x3c/div\x3e"),f+("\x3c/"+(l?"a":"div")+"\x3e"));c+=e}return c}function l(b,d){for(var e=0;b.length>e;e++){var f=b[e],g=f.event,h=d.eq(e),g=v("eventRender",g,g,h);!1===g?h.remove():(g&&!0!==g&&(g=c(g).css({position:"absolute",left:f.left}),h.replaceWith(g),h=g),f.element=h)}}function m(b,c){var d=n(b),e=p(),f=[];if(c)for(var g=0;e.length>g;g++)e[g].height(d[g]);for(g=0;e.length>g;g++)f.push(e[g].position().top);ha(b,function(b,c){c.css("top",f[b.row]+b.top)})}function n(b){var c=J(),d=L(),e=[],f,g,h,k=J(),l=[];for(f=0;b.length>f;f++)g=b[f],h=g.row,g.element&&(l[h]?l[h].push(g):l[h]=[g]);for(h=0;k>h;h++){b=h;var m=l[h]||[];f=[];m.sort(la);g=[];for(var p=0;m.length>p;p++){for(var q=m[p],t=0;g.length>t&&Y(q,g[t]);t++);g[t]?g[t].push(q):g[t]=[q]}for(m=0;g.length>m;m++)f.push.apply(f,g[m]);l[b]=f}for(h=0;c>h;h++){k=l[h];b=[];for(f=0;d>f;f++)b.push(0);for(g=0;k.length>g;g++)for(m=k[g],m.top=Math.max.apply(Math,b.slice(m.leftCol,m.rightCol+1)),f=m.leftCol;m.rightCol>=f;f++)b[f]=m.top+m.outerHeight;e.push(Math.max.apply(Math,b))}return e}function p(){var b,c=J(),d=[];for(b=0;c>b;b++)d[b]=O(b).find("div.fc-day-content \x3e div");return d}function q(b,c){var d=T();ha(b,function(b,d,e){var f=b.event;f._id===c?r(f,d,b):d[0]._fci=e});A(d,b,r)}function r(b,c,d){w(b)&&t.draggableDayEvent(b,c,d);d.isEnd&&y(b)&&t.resizableDayEvent(b,c,d);C(b,c)}var t=this;t.renderDayEvents=function(b,c){var d=e(b,!1,!0);ha(d,function(b,c){B(b.event,c)});q(d,c);ha(d,function(b,c){v("eventAfterRender",b.event,b.event,c)})};t.draggableDayEvent=function(b,c){var e,f=Z();c.draggable({delay:50,opacity:u("dragOpacity"),revertDuration:u("dragRevertDuration"),start:function(g,h){v("eventDragStart",c,b,g,h);F(b,c);f.start(function(f,g,h,l){(c.draggable("option","revert",!f||!h&&!l),W(),f)?(g=fa(g),f=fa(f),e=x(f,g),V(d(k(b.start),e),d(D(b),e))):e=0},g,"drag")},stop:function(d,g){f.stop();W();v("eventDragStop",c,b,d,g);e?G(this,b,e,0,b.allDay,d,g):(c.css("filter",""),E(b,c))}})};t.resizableDayEvent=function(e,f,g){var h=u("isRTL")?"w":"e",k=f.find(".ui-resizable-"+h),l=!1;K(f);f.mousedown(function(b){b.preventDefault()}).click(function(b){l&&(b.preventDefault(),b.stopImmediatePropagation())});k.mousedown(function(k){function m(b){v("eventResizeStop",this,e,b);c("body").css("cursor","");n.stop();W();p&&H(this,e,p,0,b);setTimeout(function(){l=!1},0)}if(1==k.which){l=!0;var n=Z();J();L();var p,q,t=f.css("top"),r=c.extend({},e),u=oa(ma(e.start));X();c("body").css("cursor",h+"-resize").one("mouseup",m);v("eventResizeStart",this,e,k);n.start(function(f,k){if(f){var l=ga(k),m=ga(f);(m=Math.max(m,u),p=ja(m)-ja(l))?(r.end=d(z(e),p,!0),l=q,q=b(r,g.row,t),q=c(q),q.find("*").css("cursor",h+"-resize"),l&&l.remove(),F(e)):q&&(E(e),q.remove(),q=null);W();V(e.start,d(D(e),p))}},k)}})};var u=t.opt,v=t.trigger,w=t.isEventDraggable,y=t.isEventResizable,z=t.eventEnd,B=t.reportEventElement,C=t.eventElementHandlers,E=t.showEvents,F=t.hideEvents,G=t.eventDrop,H=t.eventResize,J=t.getRowCnt,L=t.getColCnt;t.getColWidth;var O=t.allDayRow,P=t.colLeft,Q=t.colRight,R=t.colContentLeft,S=t.colContentRight;t.dateToCell;var T=t.getDaySegmentContainer,U=t.calendar.formatDates,V=t.renderDayOverlay,W=t.clearOverlays,X=t.clearSelection,Z=t.getHoverListener,ba=t.rangeToSegments,fa=t.cellToDate,ga=t.cellToCellOffset,ja=t.cellOffsetToDayOffset,ma=t.dateToDayOffset,oa=t.dayOffsetToCellOffset}function Y(b,c){for(var d=0;c.length>d;d++){var e=c[d];if(e.leftCol<=b.rightCol&&e.rightCol>=b.leftCol)return!0}return!1}function ha(b,c){for(var d=0;b.length>d;d++){var e=b[d],f=e.element;f&&c(e,f,d)}}function la(b,c){return c.rightCol-c.leftCol-(b.rightCol-b.leftCol)||c.event.allDay-b.event.allDay||b.event.start-c.event.start||(b.event.title||"").localeCompare(c.event.title)}function Ia(){function b(c){m&&(m=!1,l(),g("unselect",null,c))}function d(b,c,e,f){m=!0;g("select",null,b,c,e,f)}var e=this;e.select=function(c,e,f){b();e||(e=h(c,f));k(c,e,f);d(c,e,f)};e.unselect=b;e.reportSelection=d;e.daySelectionMousedown=function(g){var h=e.cellToDate,m=e.getIsCellAllDay,n=e.getHoverListener(),p=e.reportDayClick;if(1==g.which&&f("selectable")){b(g);var t;n.start(function(b,c){l();b&&m(b)?(t=[h(c),h(b)].sort(q),k(t[0],t[1],!0)):t=null},g);c(document).one("mouseup",function(b){n.stop();t&&(+t[0]==+t[1]&&p(t[0],!0,b),d(t[0],t[1],!0,b))})}};var f=e.opt,g=e.trigger,h=e.defaultSelectionEnd,k=e.renderSelection,l=e.clearSelection,m=!1;f("selectable")&&f("unselectAuto")&&c(document).mousedown(function(d){var e=f("unselectCancel");e&&c(d.target).parents(e).length||b(d)})}function C(){this.renderOverlay=function(e,f){var g=d.shift();return g||(g=c("\x3cdiv class\x3d'fc-cell-overlay' style\x3d'position:absolute;z-index:3'/\x3e")),g[0].parentNode!=f[0]&&g.appendTo(f),b.push(g.css(e).show()),g};this.clearOverlays=function(){for(var c;c=b.shift();)d.push(c.hide().unbind())};var b=[],d=[]}function Sa(b){var c,d;this.build=function(){c=[];d=[];b(c,d)};this.cell=function(b,e){var f,g=c.length,h=d.length,k=-1,l=-1;for(f=0;g>f;f++)if(e>=c[f][0]&&c[f][1]>e){k=f;break}for(f=0;h>f;f++)if(b>=d[f][0]&&d[f][1]>b){l=f;break}return 0<=k&&0<=l?{row:k,col:l}:null};this.rect=function(b,e,f,g,h){h=h.offset();return{top:c[b][0]-h.top,left:d[e][0]-h.left,width:d[g][1]-d[e][0],height:c[f][1]-c[b][0]}}}function Ta(b){function d(c){c.pageX===p&&(c.pageX=c.originalEvent.pageX,c.pageY=c.originalEvent.pageY);c=b.cell(c.pageX,c.pageY);(!c!=!h||c&&(c.row!=h.row||c.col!=h.col))&&(c?(g||(g=c),f(c,g,c.row-g.row,c.col-g.col)):f(c,g),h=c)}var e,f,g,h;this.start=function(k,l,m){f=k;g=h=null;b.build();d(l);e=m||"mousemove";c(document).bind(e,d)};this.stop=function(){return c(document).unbind(e,d),h}}function Ka(b){var c=this,d={},e={},f={};c.left=function(c){return e[c]=e[c]===p?(d[c]=d[c]||b(c)).position().left:e[c]};c.right=function(e){return f[e]=f[e]===p?c.left(e)+(d[e]=d[e]||b(e)).width():f[e]};c.clear=function(){d={};e={};f={}}}var Ja={defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"iso",weekNumberTitle:"W",allDayDefault:!0,ignoreTimezone:!0,lazyFetching:!0,startParam:"start",endParam:"end",titleFormat:{month:"MMMM yyyy",week:"MMM d[ yyyy]{ '\x26#8212;'[ MMM] d yyyy}",day:"dddd, MMM d, yyyy"},columnFormat:{month:"ddd",week:"ddd M/d",day:"dddd M/d"},timeFormat:{"":"h(:mm)t"},isRTL:!1,firstDay:0,monthNames:"\u4e00\u6708 \u4e8c\u6708 \u4e09\u6708 \u56db\u6708 \u4e94\u6708 \u516d\u6708 \u4e03\u6708 \u516b\u6708 \u4e5d\u6708 \u5341\u6708 \u5341\u6708 \u5341\u4e8c\u6708".split(" "),monthNamesShort:"\u4e00 \u4e8c \u4e09 \u56db \u4e94 \u516d \u4e03 \u516b \u4e5d \u5341 \u5341\u4e00 \u5341\u4e8c".split(" "),dayNames:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),dayNamesShort:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),buttonText:{prev:"\x3cspan class\x3d'fc-text-arrow'\x3e\x26lsaquo;\x3c/span\x3e",next:"\x3cspan class\x3d'fc-text-arrow'\x3e\x26rsaquo;\x3c/span\x3e",prevYear:"\x3cspan class\x3d'fc-text-arrow'\x3e\x26laquo;\x3c/span\x3e",nextYear:"\x3cspan class\x3d'fc-text-arrow'\x3e\x26raquo;\x3c/span\x3e",today:"\u4eca\u5929",month:"\u6708",week:"\u5468",day:"\u5929"},theme:!1,buttonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e"},unselectAuto:!0,dropAccept:"*",handleWindowResize:!0},ab={header:{left:"next,prev today",center:"",right:"title"},buttonText:{prev:"\x3cspan class\x3d'fc-text-arrow'\x3e\x26rsaquo;\x3c/span\x3e",next:"\x3cspan class\x3d'fc-text-arrow'\x3e\x26lsaquo;\x3c/span\x3e",prevYear:"\x3cspan class\x3d'fc-text-arrow'\x3e\x26raquo;\x3c/span\x3e",nextYear:"\x3cspan class\x3d'fc-text-arrow'\x3e\x26laquo;\x3c/span\x3e"},buttonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w"}},X=c.fullCalendar={version:"1.6.4"},ja=X.views={};c.fn.fullCalendar=function(d){if("string"==typeof d){var e,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var b=c.data(this,"fullCalendar");b&&c.isFunction(b[d])&&(b=b[d].apply(b,f),e===p&&(e=b),"destroy"==d&&c.removeData(this,"fullCalendar"))}),e!==p?e:this}d=d||{};var g=d.eventSources||[];return delete d.eventSources,d.events&&(g.push(d.events),delete d.events),d=c.extend(!0,{},Ja,d.isRTL||d.isRTL===p&&Ja.isRTL?ab:{},d),this.each(function(e,f){var h=c(f),k=new b(h,d,g);h.data("fullCalendar",k);k.render()}),this};X.sourceNormalizers=[];X.sourceFetchers=[];var oa={dataType:"json",cache:!1},Da=1;X.addDays=d;X.cloneDate=k;X.parseDate=g;X.parseISO8601=t;X.parseTime=w;X.formatDate=y;X.formatDates=z;var ya="\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),qa=864E5,ma=36E5,Ea=6E4,La={s:function(b){return b.getSeconds()},ss:function(b){return H(b.getSeconds())},m:function(b){return b.getMinutes()},mm:function(b){return H(b.getMinutes())},h:function(b){return b.getHours()%12||12},hh:function(b){return H(b.getHours()%12||12)},H:function(b){return b.getHours()},HH:function(b){return H(b.getHours())},d:function(b){return b.getDate()},dd:function(b){return H(b.getDate())},ddd:function(b,c){return c.dayNamesShort[b.getDay()]},dddd:function(b,c){return c.dayNames[b.getDay()]},M:function(b){return b.getMonth()+1},MM:function(b){return H(b.getMonth()+1)},MMM:function(b,c){return c.monthNamesShort[b.getMonth()]},MMMM:function(b,c){return c.monthNames[b.getMonth()]},yy:function(b){return(b.getFullYear()+"").substring(2)},yyyy:function(b){return b.getFullYear()},t:function(b){return 12>b.getHours()?"a":"p"},tt:function(b){return 12>b.getHours()?"\u4e0a\u5348":"\u4e0b\u5348"},T:function(b){return 12>b.getHours()?"A":"P"},TT:function(b){return 12>b.getHours()?"\u4e0a\u5348":"\u4e0b\u5348"},u:function(b){return y(b,"yyyy-MM-dd'T'HH:mm:ss'Z'")},S:function(b){b=b.getDate();return 10b?"th":["st","nd","rd"][b%10-1]||"th"},w:function(b,c){return c.weekNumberCalculation(b)},W:function(b){var c;b=new Date(b.getTime());return b.setDate(b.getDate()+4-(b.getDay()||7)),c=b.getTime(),b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864E5)/7)+1}};X.dateFormatters=La;X.applyAll=J;ja.month=function(b,c){var e=this;e.render=function(b,c){c&&(n(b,c),b.setDate(1));var p=f("firstDay"),q=k(b,!0);q.setDate(1);var t=n(k(q),1),r=k(q);d(r,-((r.getDay()-p+7)%7));h(r);var u=k(t);d(u,(7-u.getDay()+p)%7);h(u,-1,!0);var p=l(),v=Math.round(x(u,r)/7);"fixed"==f("weekMode")&&(d(u,7*(6-v)),v=6);e.title=m(q,f("titleFormat"));e.start=q;e.end=t;e.visStart=r;e.visEnd=u;g(v,p,!0)};T.call(e,b,c,"month");var f=e.opt,g=e.renderBasic,h=e.skipHiddenDays,l=e.getCellsPerWeek,m=c.formatDate};ja.basicWeek=function(b,c){var e=this;e.render=function(b,c){c&&d(b,7*c);var n=d(k(b),-((b.getDay()-f("firstDay")+7)%7)),p=d(k(n),7),q=k(n);h(q);var t=k(p);h(t,-1,!0);var r=l();e.start=n;e.end=p;e.visStart=q;e.visEnd=t;e.title=m(q,d(k(t),-1),f("titleFormat"));g(1,r,!1)};T.call(e,b,c,"basicWeek");var f=e.opt,g=e.renderBasic,h=e.skipHiddenDays,l=e.getCellsPerWeek,m=c.formatDates};ja.basicDay=function(b,c){var e=this;e.render=function(b,c){c&&d(b,c);h(b,0>c?-1:1);var m=k(b,!0),n=d(k(m),1);e.title=l(b,f("titleFormat"));e.start=e.visStart=m;e.end=e.visEnd=n;g(1,1,!1)};T.call(e,b,c,"basicDay");var f=e.opt,g=e.renderBasic,h=e.skipHiddenDays,l=c.formatDate};c.extend(!0,Ja,{weekMode:"fixed"});ja.agendaWeek=function(b,c){var e=this;e.render=function(b,c){c&&d(b,7*c);var n=d(k(b),-((b.getDay()-f("firstDay")+7)%7)),p=d(k(n),7),q=k(n);h(q);var t=k(p);h(t,-1,!0);var r=l();e.title=m(q,d(k(t),-1),f("titleFormat"));e.start=n;e.end=p;e.visStart=q;e.visEnd=t;g(r)};R.call(e,b,c,"agendaWeek");var f=e.opt,g=e.renderAgenda,h=e.skipHiddenDays,l=e.getCellsPerWeek,m=c.formatDates};ja.agendaDay=function(b,c){var e=this;e.render=function(b,c){c&&d(b,c);h(b,0>c?-1:1);var m=k(b,!0),n=d(k(m),1);e.title=l(b,f("titleFormat"));e.start=e.visStart=m;e.end=e.visEnd=n;g(1)};R.call(e,b,c,"agendaDay");var f=e.opt,g=e.renderAgenda,h=e.skipHiddenDays,l=c.formatDate};c.extend(!0,Ja,{allDaySlot:!0,allDayText:"\u5168\u5929",firstHour:6,slotMinutes:30,defaultEventMinutes:120,axisFormat:"h(:mm)tt",timeFormat:{agenda:"h:mm{ - h:mm}"},dragOpacity:{agenda:.5},minTime:0,maxTime:24,slotEventOverlap:!0})})(jQuery);$(function(){function c(){$(".cdao-left,.cdao-main").height($(document).height());$(".cdao-main").height($(window).height()-60);800>$(window).width()?($(".cdao-left").addClass("smal-left-nav"),$(".cdao-main").addClass("smal-main")):($(".cdao-left").removeClass("smal-left-nav"),$(".cdao-main").removeClass("smal-main"));$(".cdao-left").click(function(){$(".cdao-left").removeClass("smal-left-nav");$(".cdao-main").removeClass("smal-main")})}$(".cdao-top-nav li").click(function(){$(this).addClass("active").siblings().removeClass("active")});$(".left-nav-btn").click(function(){$(".cdao-left").toggleClass("smal-left-nav");$(".cdao-main").toggleClass("smal-main")});c();$(window).resize(function(){c()})});function iFrameHeight(){var c=document.getElementById("con_iframe"),p=document.frames?document.frames.con_iframe.document:c.contentDocument;null!=c&&null!=p&&(c.height=p.body.scrollHeight,c.width=p.body.scrollWidth,c.style.height=p.body.scrollHeight+"px",c.style.width=p.body.scrollWidth+"px")}function addClass(c,p){c.className?(new RegExp(p)).test(c.className)||(c.className+=" "+p):c.className=p}function deleteClass(c,p){(new RegExp(p,"g")).test(c.className)&&(c.className=c.className.replace(new RegExp("\\b"+p+"\\b","g"),""),(new RegExp(/^ /g)).test(c.className)&&(c.className=c.className.replace(/^ /g,"")),(new RegExp(/ $/g)).test(c.className)&&(c.className=c.className.replace(/ $/g,"")))}function getByClass(c,p){for(var b=c.getElementsByTagName("*"),h=[],l=0;lc;c++)b+='\x3ca class\x3d"'+d[6]+c+'"\x3e'+h.btn[c]+"\x3c/a\x3e";return'\x3cdiv class\x3d"'+d[6]+'"\x3e'+b+"\x3c/div\x3e"}():"")+"\x3c/div\x3e"],g),this};n.pt.creat=function(){var c=this,k=c.config,m=c.index,n=k.content,p="object"==typeof n;if(!b("#"+k.id)[0]){switch("string"==typeof k.area&&(k.area="auto"===k.area?["",""]:[k.area,""]),k.type){case 0:k.btn="btn"in k?k.btn:l.btn[0];e.closeAll("dialog");break;case 2:n=k.content=p?k.content:[k.content||"http://layer.layui.com","auto"];k.content='\x3ciframe scrolling\x3d"'+(k.content[1]||"auto")+'" allowtransparency\x3d"true" id\x3d"'+d[4]+m+'" name\x3d"'+d[4]+m+'" onload\x3d"this.className\x3d\'\';" class\x3d"layui-layer-load" frameborder\x3d"0" src\x3d"'+k.content[0]+'"\x3e\x3c/iframe\x3e';break;case 3:k.title=!1;k.closeBtn=!1;-1===k.icon&&0===k.icon;e.closeAll("loading");break;case 4:p||(k.content=[k.content,"body"]),k.follow=k.content[1],k.content=k.content[0]+'\x3ci class\x3d"layui-layer-TipsG"\x3e\x3c/i\x3e',k.title=!1,k.tips="object"==typeof k.tips?k.tips:[k.tips,!0],k.tipsMore||e.closeAll("tips")}c.vessel(p,function(e,h){b("body").append(e[0]);p?2==k.type||4==k.type?b("body").append(e[1]):n.parents("."+d[0])[0]||(n.show().addClass("layui-layer-wrap").wrap(e[1]),b("#"+d[0]+m).find("."+d[5]).before(h)):b("body").append(e[1]);c.layero=b("#"+d[0]+m);k.scrollbar||d.html.css("overflow","hidden").attr("layer-full",m)}).auto(m);2==k.type&&e.ie6&&c.layero.find("iframe").attr("src",n[0]);b(document).off("keydown",l.enter).on("keydown",l.enter);c.layero.on("keydown",function(c){b(document).off("keydown",l.enter)});4==k.type?c.tips():c.offset();k.fix&&h.on("resize",function(){c.offset();(/^\d+%$/.test(k.area[0])||/^\d+%$/.test(k.area[1]))&&c.auto(m);4==k.type&&c.tips()});0>=k.time||setTimeout(function(){e.close(c.index)},k.time);c.move().callback();d.anim[k.shift]&&c.layero.addClass(d.anim[k.shift])}};n.pt.auto=function(c){function e(b){b=m.find(b);b.height(n[1]-g-p-2*(0|parseFloat(b.css("padding"))))}var l=this.config,m=b("#"+d[0]+c);""===l.area[0]&&0l.maxWidth&&m.width(l.maxWidth));var n=[m.innerWidth(),m.innerHeight()],g=m.find(d[1]).outerHeight()||0,p=m.find("."+d[6]).outerHeight()||0;switch(l.type){case 2:e("iframe");break;default:""===l.area[1]?l.fix&&n[1]>=h.height()&&(n[1]=h.height(),e("."+d[5])):e("."+d[5])}return this};n.pt.offset=function(){var b=this.config,c=this.layero,d=[c.outerWidth(),c.outerHeight()],e="object"==typeof b.offset;this.offsetTop=(h.height()-d[1])/2;this.offsetLeft=(h.width()-d[0])/2;e?(this.offsetTop=b.offset[0],this.offsetLeft=b.offset[1]||this.offsetLeft):"auto"!==b.offset&&(this.offsetTop=b.offset,"rb"===b.offset&&(this.offsetTop=h.height()-d[1],this.offsetLeft=h.width()-d[0]));b.fix||(this.offsetTop=/%$/.test(this.offsetTop)?h.height()*parseFloat(this.offsetTop)/100:parseFloat(this.offsetTop),this.offsetLeft=/%$/.test(this.offsetLeft)?h.width()*parseFloat(this.offsetLeft)/100:parseFloat(this.offsetLeft),this.offsetTop+=h.scrollTop(),this.offsetLeft+=h.scrollLeft());c.css({top:this.offsetTop,left:this.offsetLeft})};n.pt.tips=function(){var c=this.config,e=this.layero,l=[e.outerWidth(),e.outerHeight()],m=b(c.follow);m[0]||(m=b("body"));var n={width:m.outerWidth(),height:m.outerHeight(),top:m.offset().top,left:m.offset().left},g=e.find(".layui-layer-TipsG"),m=c.tips[0];c.tips[1]||g.remove();n.autoLeft=function(){0n.top-(h.scrollTop()+l[1]+16)&&n.where[2]():2===m?0d&&(d=0);d>b&&(d=b);l>g&&(g=l);g>h.height()-e.move.outerHeight()+e.setY&&(g=h.height()-e.move.outerHeight()+e.setY)}e.move.css({left:d,top:g});c.moveType&&e.moveLayer()}}).mouseup(function(){try{e.ismove&&(e.moveLayer(),e.move.remove(),c.moveEnd&&c.moveEnd()),e.ismove=!1}catch(b){e.ismove=!1}}),this};n.pt.callback=function(){var c=this,h=c.layero,m=c.config;c.openLayer();m.success&&(2==m.type?h.find("iframe").on("load",function(){m.success(h,c.index)}):m.success(h,c.index));e.ie6&&c.IE6(h);h.find("."+d[6]).children("a").on("click",function(){var d=b(this).index();0===d?m.yes?m.yes(c.index,h):m.btn1?m.btn1(c.index,h):e.close(c.index):!1===(m["btn"+(d+1)]&&m["btn"+(d+1)](c.index,h))||e.close(c.index)});h.find("."+d[7]).on("click",function(){!1===(m.cancel&&m.cancel(c.index,h))||e.close(c.index)});m.shadeClose&&b("#layui-layer-shade"+c.index).on("click",function(){e.close(c.index)});h.find(".layui-layer-min").on("click",function(){!1===(m.min&&m.min(h))||e.min(c.index,m)});h.find(".layui-layer-max").on("click",function(){b(this).hasClass("layui-layer-maxmin")?(e.restore(c.index),m.restore&&m.restore(h)):(e.full(c.index,m),setTimeout(function(){m.full&&m.full(h)},100))});m.end&&(l.end[c.index]=m.end)};l.reselect=function(){b.each(b("select"),function(c,e){var h=b(this);h.parents("."+d[0])[0]||1==h.attr("layer")&&1>b("."+d[0]).length&&h.removeAttr("layer").show()})};n.pt.IE6=function(c){function e(){c.css({top:m+(l.config.fix?h.scrollTop():0)})}var l=this,m=c.offset().top;e();h.scroll(e);b("select").each(function(c,e){var f=b(this);f.parents("."+d[0])[0]||"none"===f.css("display")||f.attr({layer:"1"}).hide()})};n.pt.openLayer=function(){e.zIndex=this.config.zIndex;e.setTop=function(b){return e.zIndex=parseInt(b[0].style.zIndex),b.on("mousedown",function(){e.zIndex++;b.css("z-index",e.zIndex+1)}),e.zIndex}};l.record=function(b){var c=[b.width(),b.height(),b.position().top,b.position().left+parseFloat(b.css("margin-left"))];b.find(".layui-layer-max").addClass("layui-layer-maxmin");b.attr({area:c})};l.rescollbar=function(b){d.html.attr("layer-full")==b&&(d.html[0].style.removeProperty?d.html[0].style.removeProperty("overflow"):d.html[0].style.removeAttribute("overflow"),d.html.removeAttr("layer-full"))};c.layer=e;e.getChildFrame=function(c,e){return e=e||b("."+d[4]).attr("times"),b("#"+d[0]+e).find("iframe").contents().find(c)};e.getFrameIndex=function(c){return b("#"+c).parents("."+d[4]).attr("times")};e.iframeAuto=function(c){if(c){var h=e.getChildFrame("html",c).outerHeight();c=b("#"+d[0]+c);var l=c.find(d[1]).outerHeight()||0,m=c.find("."+d[6]).outerHeight()||0;c.css({height:h+l+m});c.find("iframe").css({height:h})}};e.iframeSrc=function(c,e){b("#"+d[0]+c).find("iframe").attr("src",e)};e.style=function(c,e){var h=b("#"+d[0]+c),m=h.attr("type"),n=h.find(d[1]).outerHeight()||0,g=h.find("."+d[6]).outerHeight()||0;m!==l.type[1]&&m!==l.type[2]||(h.css(e),m!==l.type[2]||h.find("iframe").css({height:parseFloat(e.height)-n-g}))};e.min=function(c,h){var m=b("#"+d[0]+c),n=m.find(d[1]).outerHeight()||0;l.record(m);e.style(c,{width:180,height:n,overflow:"hidden"});m.find(".layui-layer-min").hide();"page"===m.attr("type")&&m.find(d[4]).hide();l.rescollbar(c)};e.restore=function(c){var h=b("#"+d[0]+c),m=h.attr("area").split(",");h.attr("type");e.style(c,{width:parseFloat(m[0]),height:parseFloat(m[1]),top:parseFloat(m[2]),left:parseFloat(m[3]),overflow:"visible"});h.find(".layui-layer-max").removeClass("layui-layer-maxmin");h.find(".layui-layer-min").show();"page"===h.attr("type")&&h.find(d[4]).show();l.rescollbar(c)};e.full=function(c){var k,m=b("#"+d[0]+c);l.record(m);d.html.attr("layer-full")||d.html.css("overflow","hidden").attr("layer-full",c);clearTimeout(k);k=setTimeout(function(){var b="fixed"===m.css("position");e.style(c,{top:b?0:h.scrollTop(),left:b?0:h.scrollLeft(),width:h.width(),height:h.height()});m.find(".layui-layer-min").hide()},100)};e.title=function(c,h){b("#"+d[0]+(h||e.index)).find(d[1]).html(c)};e.close=function(c){var h=b("#"+d[0]+c),m=h.attr("type");if(h[0]){if(m===l.type[1]&&"object"===h.attr("conType"))for(h.children(":not(."+d[5]+")").remove(),m=0;2>m;m++)h.find(".layui-layer-wrap").unwrap().hide();else{if(m===l.type[2])try{var n=b("#"+d[4]+c)[0];n.contentWindow.document.write("");n.contentWindow.close();h.find("."+d[5])[0].removeChild(n)}catch(p){}h[0].innerHTML="";h.remove()}b("#layui-layer-moves, #layui-layer-shade"+c).remove();e.ie6&&l.reselect();l.rescollbar(c);b(document).off("keydown",l.enter);"function"==typeof l.end[c]&&l.end[c]();delete l.end[c]}};e.closeAll=function(c){b.each(b("."+d[0]),function(){var d=b(this);(c?d.attr("type")===c:1)&&e.close(d.attr("times"))})};var m=e.cache||{},r=function(b){return m.skin?" "+m.skin+" "+m.skin+"-"+b:""};e.prompt=function(c,d){c=c||{};"function"==typeof c&&(d=c);var h;return e.open(b.extend({btn:["\x26#x786E;\x26#x5B9A;","\x26#x53D6;\x26#x6D88;"],content:2==c.formType?'\x3ctextarea class\x3d"layui-layer-input"\x3e'+(c.value||"")+"\x3c/textarea\x3e":'\x3cinput type\x3d"'+(1==c.formType?"password":"text")+'" class\x3d"layui-layer-input" value\x3d"'+(c.value||"")+'"\x3e',skin:"layui-layer-prompt"+r("prompt"),success:function(b){h=b.find(".layui-layer-input");h.focus()},yes:function(b){var l=h.val();""===l?h.focus():l.length>(c.maxlength||500)?e.tips("\x26#x6700;\x26#x591A;\x26#x8F93;\x26#x5165;"+(c.maxlength||500)+"\x26#x4E2A;\x26#x5B57;\x26#x6570;",h,{tips:1}):d&&d(l,b,h)}},c))};e.tab=function(c){c=c||{};var d=c.tab||{};return e.open(b.extend({type:1,skin:"layui-layer-tab"+r("tab"),title:function(){var b=d.length,c=1,e="";if(0c;c++)e+="\x3cspan\x3e"+d[c].title+"\x3c/span\x3e";return e}(),content:'\x3cul class\x3d"layui-layer-tabmain"\x3e'+function(){var b=d.length,c=1,e="";if(0c;c++)e+='\x3cli class\x3d"layui-layer-tabli"\x3e'+(d[c].content||"no  content")+"\x3c/li\x3e";return e}()+"\x3c/ul\x3e",success:function(d){var e=d.find(".layui-layer-title").children(),h=d.find(".layui-layer-tabmain").children();e.on("mousedown",function(d){d.stopPropagation?d.stopPropagation():d.cancelBubble=!0;d=b(this);var e=d.index();d.addClass("layui-layer-tabnow").siblings().removeClass("layui-layer-tabnow");h.eq(e).show().siblings().hide();"function"==typeof c.change&&c.change(e)})}},c))};e.photos=function(d,h,l){function m(b,c,d){var e=new Image;return e.src=b,e.complete?c(e):(e.onload=function(){e.onload=null;c(e)},void(e.onerror=function(b){e.onerror=null;d(b)}))}var n={};if(d=d||{},d.photos){var g=d.photos.constructor===Object,p=g?d.photos:{},w=p.data||[],y=p.start||0;if(n.imgIndex=(0|y)+1,d.img=d.img||"img",g){if(0===w.length)return e.msg("\x26#x6CA1;\x26#x6709;\x26#x56FE;\x26#x7247;")}else{var z=b(d.photos),D=function(){w=[];z.find(d.img).each(function(c){var d=b(this);d.attr("layer-index",c);w.push({alt:d.attr("alt"),pid:d.attr("layer-pid"),src:d.attr("layer-src")||d.attr("src"),thumb:d.attr("src")})})};if((D(),0===w.length)||(h||z.on("click",d.img,function(){var c=b(this).attr("layer-index");e.photos(b.extend(d,{photos:{start:c,data:w,tab:d.tab},full:d.full}),!0);D()}),!h))return}n.imgprev=function(b){n.imgIndex--;1>n.imgIndex&&(n.imgIndex=w.length);n.tabimg(b)};n.imgnext=function(b,c){n.imgIndex++;n.imgIndex>w.length&&(n.imgIndex=1,c)||n.tabimg(b)};n.keyup=function(b){if(!n.end){var c=b.keyCode;b.preventDefault();37===c?n.imgprev(!0):39===c?n.imgnext(!0):27===c&&e.close(n.index)}};n.tabimg=function(b){1>=w.length||(p.start=n.imgIndex-1,e.close(n.index),e.photos(d,!0,b))};n.event=function(){n.bigimg.hover(function(){n.imgsee.show()},function(){n.imgsee.hide()});n.bigimg.find(".layui-layer-imgprev").on("click",function(b){b.preventDefault();n.imgprev()});n.bigimg.find(".layui-layer-imgnext").on("click",function(b){b.preventDefault();n.imgnext()});b(document).on("keyup",n.keyup)};n.loadi=e.load(1,{shade:"shade"in d?!1:.9,scrollbar:!1});m(w[y].src,function(g){e.close(n.loadi);n.index=e.open(b.extend({type:1,area:function(){var e=[g.width,g.height],h=[b(c).width()-50,b(c).height()-50];return!d.full&&e[0]>h[0]&&(e[0]=h[0],e[1]=e[0]*g.height/g.width),[e[0]+"px",e[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,shift:5*Math.random()|0,skin:"layui-layer-photos"+r("photos"),content:'\x3cdiv class\x3d"layui-layer-phimg"\x3e\x3cimg src\x3d"'+w[y].src+'" alt\x3d"'+(w[y].alt||"")+'" layer-pid\x3d"'+w[y].pid+'"\x3e\x3cdiv class\x3d"layui-layer-imgsee"\x3e'+(1




© 2015 - 2024 Weber Informatics LLC | Privacy Policy